/* ==========================================================================
   RG Vision V4 — full-width cinematic system, stable responsive layout
   Fichier réorganisé et formaté pour édition dans VS Code
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. Design tokens / variables globales
   -------------------------------------------------------------------------- */

:root {
  --bg: #050506;
  --bg-2: #0b0b0d;
  --panel: #101012;
  --panel-2: #17171a;
  --text: #f7f4ef;
  --muted: #aaa39b;
  --soft: #746e68;
  --line: rgba(247, 244, 239, 0.14);
  --line-strong: rgba(247, 244, 239, 0.28);
  --red-rg: #e10600;
  --red-rg-2: #ff1a14;
  --radius: 28px;
  --radius-lg: 46px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 34px 110px rgba(0, 0, 0, 0.52);
  --font-display: "Archivo", Inter, system-ui, sans-serif;
  --font-text: "Inter", system-ui, sans-serif;
  --page-gutter: clamp(18px, 3.4vw, 92px);
  --container: clamp(0px, calc(100vw - (var(--page-gutter) * 2)), 2320px);
  --container-reading: min(1040px, calc(100vw - (var(--page-gutter) * 2)));
  --header-height: 76px;
  --z-header: 1000;
  --z-panel: 970;
  --z-modal: 1800;
  --z-cookie: 1900;
  --z-loader: 9998;
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #f7f4ee;
  --bg-2: #fffdfa;
  --panel: #ffffff;
  --panel-2: #eee8df;
  --text: #050505;
  --muted: #57514b;
  --soft: #847b72;
  --line: rgba(5, 5, 5, 0.13);
  --line-strong: rgba(5, 5, 5, 0.25);
  --shadow: 0 34px 100px rgba(5, 5, 5, 0.13);
  color-scheme: light;
}
/* --------------------------------------------------------------------------
   02. Reset / base HTML
   -------------------------------------------------------------------------- */

* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  font-family: var(--font-text);
  color: var(--text);
  background:
    radial-gradient(
      circle at 14% -10%,
      rgba(225, 6, 0, 0.18),
      transparent 34vw
    ),
    radial-gradient(circle at 95% 12%, rgba(225, 6, 0, 0.08), transparent 28vw),
    linear-gradient(180deg, var(--bg), var(--bg-2) 48%, var(--bg));
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 0.45s var(--ease),
    color 0.45s var(--ease);
}
body.menu-open,
body.modal-open {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  border: 0;
  background: none;
  cursor: pointer;
}
::selection {
  background: var(--red-rg);
  color: #fff;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 10000;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 900;
  transition: top 0.22s var(--ease);
}
.skip-link:focus {
  top: 20px;
}
/* --------------------------------------------------------------------------
   03. Fonds globaux / conteneurs / sections
   -------------------------------------------------------------------------- */

.site-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}
.container {
  width: var(--container);
  margin-inline: auto;
}
.section,
.section-tight {
  position: relative;
  isolation: isolate;
  padding-block: clamp(82px, 9vw, 168px);
}
.section-tight {
  padding-block: clamp(58px, 6.6vw, 118px);
}
.section::before,
.section-tight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: clamp(48px, 4.5vw, 84px) clamp(48px, 4.5vw, 84px);
  opacity: 0.22;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 16%,
    #000 84%,
    transparent
  );
}
.grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.26;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 16%,
    #000 75%,
    transparent
  );
}
/* --------------------------------------------------------------------------
   04. Typographie / composants génériques
   -------------------------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--red-rg-2);
  font-size: clamp(0.66rem, 0.48vw + 0.55rem, 0.78rem);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 900;
}
.eyebrow::before {
  content: "";
  flex: 0 0 clamp(20px, 2.4vw, 44px);
  height: 1px;
  background: currentColor;
}
.display,
.headline,
.headline-small {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 0;
  color: var(--text);
}
.display {
  font-size: clamp(3.25rem, 8.4vw, 11rem);
  line-height: 0.84;
  letter-spacing: -0.078em;
  max-width: 10.5ch;
}
.headline {
  font-size: clamp(2.35rem, 5.6vw, 7.4rem);
  line-height: 0.99;
  letter-spacing: -0.064em;
  max-width: 12ch;
}
.headline-small {
  font-size: clamp(1.8rem, 3.05vw, 4.4rem);
  line-height: 0.94;
  letter-spacing: -0.052em;
  max-width: 15ch;
}
.outline {
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--text) 58%, transparent);
  text-shadow: none;
}
.lead {
  margin: 0;
  font-size: clamp(1.02rem, 0.55vw + 0.9rem, 1.32rem);
  line-height: 1.58;
  color: var(--text);
  max-width: 68ch;
}
.muted {
  color: var(--muted);
}
.kicker {
  color: var(--muted);
  line-height: 1.65;
  max-width: 70ch;
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 19px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(247, 244, 239, 0.045);
  backdrop-filter: blur(14px);
  overflow: hidden;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    background 0.35s var(--ease),
    color 0.35s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  transform: translateX(-120%);
  transition: transform 0.62s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--red-rg-2) 60%, transparent);
  background: rgba(225, 6, 0, 0.1);
}
.btn:hover::before {
  transform: translateX(120%);
}
.btn-primary {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--red-rg);
  border-color: var(--red-rg);
  color: #fff;
}
.btn-arrow::after {
  content: "↗";
  font-size: 1rem;
}
.focusable:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--red-rg-2);
  outline-offset: 4px;
}
/* --------------------------------------------------------------------------
   05. Loader
   -------------------------------------------------------------------------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  display: grid;
  place-items: center;
  background: var(--bg);
  transition:
    opacity 0.62s var(--ease),
    visibility 0.62s var(--ease);
}
.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-mark {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}
.loader-mark::before {
  content: "REC";
  position: absolute;
  right: 8px;
  top: -30px;
  color: var(--red-rg-2);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}
.loader-mark::after {
  content: "";
  position: absolute;
  right: -10px;
  top: -28px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red-rg-2);
  box-shadow: 0 0 24px rgba(255, 26, 20, 0.78);
  animation: recPulse 1s steps(2, end) infinite;
}
.loader-logo {
  width: clamp(96px, 10vw, 148px);
  max-height: 120px;
  object-fit: contain;
}
.loader-line {
  width: min(260px, 60vw);
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.loader-line span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--red-rg);
  animation: loadLine 1s var(--ease) forwards;
}
.loader-text {
  max-width: 76vw;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.4;
}
@keyframes recPulse {
  50% {
    opacity: 0.25;
  }
}
@keyframes loadLine {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}
/* --------------------------------------------------------------------------
   06. Header / navigation desktop & mobile
   -------------------------------------------------------------------------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  padding: clamp(10px, 1.3vw, 18px) 0;
  border-bottom: 1px solid transparent;
  transition:
    padding 0.35s var(--ease),
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.58), transparent);
  pointer-events: none;
}
.header.is-scrolled {
  padding: 8px 0;
  background: rgba(5, 5, 6, 0.76);
  backdrop-filter: blur(22px);
  border-color: var(--line);
}
html[data-theme="light"] .header::before {
  background: linear-gradient(
    to bottom,
    rgba(247, 244, 238, 0.72),
    transparent
  );
}
html[data-theme="light"] .header.is-scrolled {
  background: rgba(247, 244, 238, 0.82);
}
.nav-wrap {
  width: min(1960px, calc(100vw - clamp(20px, 3vw, 64px)));
  min-height: 54px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 1.4vw, 24px);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}
.brand img {
  width: clamp(54px, 4.6vw, 76px);
  height: clamp(38px, 3.6vw, 54px);
  object-fit: contain;
  flex: 0 0 auto;
}
.brand-text {
  display: grid;
  gap: 2px;
  line-height: 1;
  min-width: 0;
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.brand-text span {
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  min-width: 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 18, 20, 0.52);
  backdrop-filter: blur(18px);
}
html[data-theme="light"] .nav {
  background: rgba(255, 255, 255, 0.62);
}
.nav a {
  position: relative;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 900;
  white-space: nowrap;
  transition:
    color 0.28s var(--ease),
    background 0.28s var(--ease);
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(247, 244, 239, 0.09);
}
html[data-theme="light"] .nav a:hover,
html[data-theme="light"] .nav a[aria-current="page"] {
  background: rgba(5, 5, 5, 0.07);
}
.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
.theme-toggle,
.menu-toggle {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(247, 244, 239, 0.052);
  backdrop-filter: blur(14px);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}
.theme-toggle:hover,
.menu-toggle:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--red-rg-2) 55%, transparent);
  background: rgba(225, 6, 0, 0.1);
}
.theme-toggle-icon {
  position: relative;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 6px rgba(225, 6, 0, 0.12);
  transition:
    transform 0.42s var(--ease),
    background 0.42s var(--ease);
}
.theme-toggle-icon::after {
  content: "";
  position: absolute;
  right: -7px;
  top: -5px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--bg);
  transition: transform 0.42s var(--ease);
}
html[data-theme="light"] .theme-toggle-icon {
  background: var(--red-rg);
  transform: rotate(120deg);
  box-shadow:
    0 0 0 6px rgba(225, 6, 0, 0.14),
    0 0 26px rgba(225, 6, 0, 0.22);
}
html[data-theme="light"] .theme-toggle-icon::after {
  transform: scale(0);
}
.menu-toggle {
  display: none;
}
.menu-toggle span {
  width: 18px;
  height: 1px;
  background: var(--text);
  margin: 3px 0;
  transition:
    transform 0.3s var(--ease),
    opacity 0.3s var(--ease);
}
.menu-open .menu-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.menu-open .menu-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}
.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: var(--z-panel);
  display: none;
  padding: calc(var(--header-height) + 36px) var(--page-gutter) 34px;
  background: rgba(5, 5, 6, 0.97);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity 0.35s var(--ease),
    visibility 0.35s var(--ease),
    transform 0.35s var(--ease);
}
html[data-theme="light"] .mobile-panel {
  background: rgba(247, 244, 238, 0.97);
}
.mobile-panel a {
  display: block;
  padding: clamp(14px, 3vw, 20px) 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 4.3rem);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.06em;
}
.menu-open .mobile-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.mobile-theme-toggle {
  width: 100%;
  min-height: 52px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 900;
  background: rgba(247, 244, 239, 0.045);
}
/* --------------------------------------------------------------------------
   07. Hero home
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: clamp(124px, 10vw, 172px) 0 clamp(54px, 6vw, 92px);
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: clamp(88px, 7vw, 126px) var(--page-gutter) clamp(16px, 2.2vw, 34px);
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: clamp(20px, 2.2vw, 38px);
  pointer-events: none;
}
.hero::after {
  content: "FRAME 01 / RG VISION";
  position: absolute;
  right: calc(var(--page-gutter) + 18px);
  top: clamp(108px, 8.5vw, 152px);
  z-index: 2;
  color: var(--soft);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  font-weight: 900;
  writing-mode: vertical-rl;
  pointer-events: none;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: var(--bg);
}
.hero-media img,
.hero-fallback,
.youtube-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.youtube-bg {
  overflow: hidden;
  z-index: -2;
}
.youtube-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 177.78vh);
  height: max(56.25vw, 100vh);
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%) scale(1.08);
  border: 0;
  opacity: 0.58;
  pointer-events: none;
}
.hero-fallback {
  z-index: -3;
  opacity: 0.85;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.88),
      rgba(0, 0, 0, 0.32) 38%,
      rgba(0, 0, 0, 0.72)
    ),
    linear-gradient(0deg, var(--bg), transparent 46%, rgba(5, 5, 6, 0.74));
}
.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.58fr);
  align-items: end;
  gap: clamp(28px, 5vw, 96px);
}
.hero-content::before {
  content: "";
  position: absolute;
  right: clamp(20px, 2vw, 42px);
  top: clamp(-98px, -6vw, -60px);
  width: clamp(56px, 7vw, 120px);
  height: clamp(56px, 7vw, 120px);
  border-radius: 50%;
  background: var(--red-rg);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 60px rgba(225, 6, 0, 0.55);
  animation: heroRec 2.4s steps(2, end) infinite;
  pointer-events: none;
}
.hero h1 {
  max-width: 9.4ch;
}
.hero-copy {
  position: relative;
  z-index: 2;
  justify-self: end;
  max-width: 560px;
  padding: clamp(18px, 2.4vw, 34px);
  border: 1px solid var(--line);
  border-radius: clamp(22px, 2vw, 34px);
  background: linear-gradient(135deg, rgba(5, 5, 6, 0.64), rgba(5, 5, 6, 0.28));
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
html[data-theme="light"] .hero-copy {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.78),
    rgba(255, 255, 255, 0.38)
  );
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(247, 244, 239, 0.045);
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 900;
}
.hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-meta {
  position: absolute;
  left: var(--page-gutter);
  bottom: clamp(24px, 3vw, 48px);
  z-index: 3;
  color: var(--soft);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-indicator {
  position: absolute;
  right: var(--page-gutter);
  bottom: clamp(24px, 3vw, 48px);
  z-index: 3;
  display: grid;
  place-items: center;
  width: clamp(60px, 5vw, 78px);
  height: clamp(60px, 5vw, 78px);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 5, 6, 0.4);
  backdrop-filter: blur(14px);
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.scroll-indicator::after {
  content: "";
  position: absolute;
  bottom: 16px;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
  transform: rotate(45deg);
  animation: bounce 1.6s infinite;
}
@keyframes heroRec {
  50% {
    opacity: 0.32;
    transform: scale(0.96);
  }
}
@keyframes bounce {
  50% {
    transform: translateY(5px) rotate(45deg);
  }
}
/* --------------------------------------------------------------------------
   08. Sections home / contenus / grilles
   -------------------------------------------------------------------------- */

.manifesto {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 7vw, 132px);
}
.manifesto-aside {
  position: sticky;
  top: 110px;
  padding-left: clamp(16px, 2vw, 32px);
  border-left: 2px solid var(--red-rg);
  display: grid;
  gap: 20px;
}
.manifesto-text {
  margin: 0 0 0 auto;
  max-width: 14.8ch;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.3rem, 5.7vw, 8.8rem);
  line-height: 0.99;
  letter-spacing: -0.07em;
  text-transform: uppercase;
  text-wrap: balance;
}
.manifesto-text span {
  color: var(--red-rg-2);
}
.split-feature {
  width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.86fr);
  align-items: center;
  gap: clamp(28px, 5.8vw, 118px);
}
.split-feature.reverse {
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.05fr);
}
.split-feature.reverse .media-card {
  order: 2;
}
.media-card {
  position: relative;
  min-height: clamp(420px, 36vw, 760px);
  border: 1px solid var(--line);
  border-radius: clamp(24px, 2.7vw, 52px);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.media-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 1.1s var(--ease),
    filter 1.1s var(--ease);
}
.media-card:hover img {
  transform: scale(1.035);
  filter: contrast(1.05);
}
.media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.76),
    transparent 46%,
    rgba(255, 255, 255, 0.03)
  );
  pointer-events: none;
}
.media-label {
  position: absolute;
  left: clamp(14px, 1.7vw, 26px);
  right: clamp(14px, 1.7vw, 26px);
  bottom: clamp(14px, 1.7vw, 26px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(5, 5, 6, 0.58);
  backdrop-filter: blur(14px);
  color: #eee;
  font-size: 0.68rem;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 900;
}
.feature-copy {
  display: grid;
  gap: clamp(18px, 2vw, 28px);
  max-width: 780px;
}
.feature-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.point {
  min-height: 126px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(247, 244, 239, 0.035);
  display: grid;
  align-content: start;
  gap: 9px;
}
.point strong {
  display: block;
  color: var(--text);
}
.point span {
  color: var(--muted);
  line-height: 1.45;
}
.works-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 62px);
}
.works-head .headline {
  max-width: 11ch;
}
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: clamp(24px, 2.5vw, 42px);
  overflow: hidden;
  background: rgba(247, 244, 239, 0.025);
}
.expertise-card {
  min-height: clamp(240px, 19vw, 360px);
  padding: clamp(20px, 2.1vw, 34px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  background: rgba(247, 244, 239, 0.016);
  transition:
    background 0.35s var(--ease),
    transform 0.35s var(--ease);
}
.expertise-card:nth-child(4n) {
  border-right: 0;
}
.expertise-card:nth-last-child(-n + 4) {
  border-bottom: 0;
}
.expertise-card:hover {
  background: rgba(225, 6, 0, 0.08);
}
.expertise-card .num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 3.5vw, 4.6rem);
  line-height: 0.8;
  color: var(--red-rg-2);
}
.expertise-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.25vw, 1.7rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}
.expertise-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 28px);
}
.work-card {
  position: relative;
  min-height: clamp(390px, 34vw, 660px);
  border: 1px solid var(--line);
  border-radius: clamp(24px, 2.4vw, 44px);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
  cursor: pointer;
  isolation: isolate;
}
.work-card:nth-child(4n + 1) {
  min-height: clamp(460px, 41vw, 760px);
}
.work-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 1s var(--ease),
    filter 1s var(--ease);
}
.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88),
    rgba(0, 0, 0, 0.08) 62%,
    rgba(0, 0, 0, 0.24)
  );
  pointer-events: none;
}
.work-card:hover img {
  transform: scale(1.035);
  filter: contrast(1.05);
}
.work-info {
  position: absolute;
  z-index: 2;
  left: clamp(16px, 1.9vw, 32px);
  right: clamp(16px, 1.9vw, 32px);
  bottom: clamp(16px, 1.9vw, 32px);
  display: grid;
  gap: 12px;
}
.work-info h3 {
  margin: 0;
  max-width: 10ch;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 5rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  text-wrap: balance;
  color: #fff;
}
.work-info p {
  margin: 0;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.48;
}
.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.work-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(5, 5, 6, 0.38);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 900;
}
.process {
  display: grid;
  grid-template-columns: minmax(260px, 0.46fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 120px);
  align-items: start;
}
.steps {
  display: grid;
  border-left: 1px solid var(--line);
}
.step {
  display: grid;
  grid-template-columns: clamp(70px, 7vw, 120px) minmax(0, 1fr);
  gap: 20px;
  padding: clamp(24px, 2.7vw, 44px);
  border-bottom: 1px solid var(--line);
}
.step::before {
  content: "0" counter(step);
  counter-increment: step;
  color: var(--red-rg-2);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 4rem);
  font-weight: 900;
  line-height: 0.85;
}
.steps {
  counter-reset: step;
}
.step h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.24rem, 1.4vw, 1.75rem);
  text-transform: uppercase;
  letter-spacing: -0.035em;
}
.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: clamp(24px, 2.5vw, 48px);
  overflow: hidden;
  background: rgba(247, 244, 239, 0.035);
}
.proof {
  padding: clamp(22px, 2.7vw, 44px);
  border-right: 1px solid var(--line);
}
.proof:last-child {
  border-right: 0;
}
.proof strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4vw, 6.2rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
  color: var(--text);
}
.proof span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 900;
}
.contact-band {
  position: relative;
  isolation: isolate;
  width: var(--container);
  margin-inline: auto;
  padding: clamp(30px, 5.4vw, 94px);
  border: 1px solid var(--line);
  border-radius: clamp(26px, 3vw, 58px);
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(225, 6, 0, 0.22),
    rgba(247, 244, 239, 0.05) 42%,
    rgba(247, 244, 239, 0.02)
  );
  box-shadow: var(--shadow);
}
.contact-band::before {
  content: "";
  position: absolute;
  right: clamp(20px, 5vw, 110px);
  top: 50%;
  z-index: -1;
  width: clamp(90px, 15vw, 270px);
  height: clamp(90px, 15vw, 270px);
  border-radius: 50%;
  background: var(--red-rg);
  filter: blur(22px);
  opacity: 0.18;
  transform: translateY(-50%);
}
.contact-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(24px, 4vw, 68px);
}
/* --------------------------------------------------------------------------
   09. Footer
   -------------------------------------------------------------------------- */

.footer {
  position: relative;
  padding: clamp(56px, 7vw, 110px) 0 28px;
  border-top: 1px solid var(--line);
  background: rgba(5, 5, 6, 0.62);
}
html[data-theme="light"] .footer {
  background: rgba(247, 244, 238, 0.78);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) repeat(3, minmax(132px, 0.42fr));
  gap: clamp(28px, 4vw, 72px);
}
.footer img[data-theme-logo] {
  width: min(230px, 70vw);
  max-height: 128px;
  object-fit: contain;
  margin-bottom: 18px;
}
.footer-title {
  margin: 0 0 14px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.footer-links {
  display: grid;
  gap: 10px;
  color: var(--muted);
}
.footer-links a:hover {
  color: var(--red-rg-2);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(36px, 5vw, 70px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.82rem;
}
/* --------------------------------------------------------------------------
   10. Pages internes / filtres / services
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  isolation: isolate;
  min-height: min(76svh, 780px);
  padding: clamp(136px, 12vw, 204px) 0 clamp(62px, 7vw, 110px);
  display: grid;
  align-items: end;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 16%, rgba(225, 6, 0, 0.2), transparent 32vw),
    linear-gradient(to bottom, rgba(5, 5, 6, 0.22), var(--bg) 92%);
}
.page-hero::after {
  content: "RG VISION / FIELD NOTES";
  position: absolute;
  right: var(--page-gutter);
  bottom: clamp(24px, 3vw, 48px);
  color: var(--soft);
  font-size: 0.62rem;
  letter-spacing: 0.21em;
  font-weight: 900;
  writing-mode: vertical-rl;
}
.page-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.62fr);
  align-items: end;
  gap: clamp(28px, 5vw, 98px);
}
.page-intro .display {
  max-width: 10.5ch;
}
.filters {
  position: sticky;
  top: 92px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin-bottom: 28px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 5, 6, 0.62);
  backdrop-filter: blur(16px);
}
html[data-theme="light"] .filters {
  background: rgba(255, 255, 255, 0.76);
}
.filter-btn {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 900;
}
.filter-btn.is-active,
.filter-btn:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.service-list {
  display: grid;
  gap: 12px;
}
.service {
  border: 1px solid var(--line);
  border-radius: clamp(22px, 2vw, 34px);
  background: rgba(247, 244, 239, 0.035);
  overflow: hidden;
}
.service button {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2.2vw, 34px);
  padding: clamp(20px, 2.7vw, 38px);
  text-align: left;
}
.service-index {
  color: var(--red-rg-2);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.2rem, 1.6vw, 2rem);
}
.service h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  text-wrap: balance;
}
.service-content {
  display: grid;
  grid-template-columns: 1fr 1fr 0.7fr;
  gap: clamp(18px, 3vw, 48px);
  max-height: 0;
  overflow: hidden;
  padding: 0 clamp(20px, 2.7vw, 38px);
  transition:
    max-height 0.45s var(--ease),
    padding 0.45s var(--ease);
}
.service.is-open .service-content {
  max-height: 520px;
  padding: 0 clamp(20px, 2.7vw, 38px) clamp(22px, 2.8vw, 40px);
}
.service-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
/* --------------------------------------------------------------------------
   11. Contact / formulaires / contenus légaux
   -------------------------------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.74fr) minmax(0, 1.08fr);
  gap: clamp(30px, 5.6vw, 108px);
  align-items: start;
}
.index-list {
  display: grid;
  border-top: 1px solid var(--line);
}
.index-item {
  display: grid;
  grid-template-columns: clamp(54px, 5vw, 86px) minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.index-item strong {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 2.5rem);
  line-height: 0.9;
  color: var(--red-rg-2);
  letter-spacing: -0.05em;
}
.index-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.form {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2.4vw, 36px);
  border: 1px solid var(--line);
  border-radius: clamp(24px, 2.5vw, 42px);
  background: rgba(247, 244, 239, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
html[data-theme="light"] .form {
  background: rgba(255, 255, 255, 0.68);
}
.two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field {
  display: grid;
  gap: 8px;
}
.field label {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 900;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 54px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(247, 244, 239, 0.045);
  outline: 0;
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}
.field textarea {
  min-height: 150px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--red-rg-2);
  background: rgba(225, 6, 0, 0.06);
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.checkbox input {
  margin-top: 3px;
}
.legal-content {
  width: var(--container-reading);
  margin-inline: auto;
}
.legal-content h2 {
  margin: 42px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.5vw, 2.9rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.legal-content p,
.legal-content li {
  max-width: 78ch;
  color: var(--muted);
  line-height: 1.72;
}
.legal-box {
  margin: 20px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(247, 244, 239, 0.035);
}
/* --------------------------------------------------------------------------
   12. Modales / cookies / animations
   -------------------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2vw, 28px);
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(16px);
}
.modal.is-open {
  display: flex;
}
.modal-close {
  position: absolute;
  right: clamp(12px, 2vw, 24px);
  top: clamp(12px, 2vw, 24px);
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 900;
}
.modal-card {
  width: min(1420px, 100%);
  max-height: calc(100svh - clamp(20px, 4vw, 56px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: clamp(22px, 2.4vw, 38px);
  background: var(--bg-2);
  box-shadow: var(--shadow);
}
.modal-media {
  aspect-ratio: 16/8;
  min-height: 220px;
  background: var(--panel);
  overflow: hidden;
}
.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.55fr);
  gap: clamp(22px, 4vw, 60px);
  padding: clamp(22px, 4vw, 42px);
}
.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.gallery-row img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.placeholder-note {
  display: block;
  margin-top: 18px;
  color: var(--red-rg-2);
  font-size: 0.83rem;
  line-height: 1.45;
  border: 1px solid rgba(225, 6, 0, 0.28);
  border-radius: 18px;
  padding: 14px;
  background: rgba(225, 6, 0, 0.06);
}
.cookie-banner {
  position: fixed;
  left: var(--page-gutter);
  right: var(--page-gutter);
  bottom: clamp(14px, 2vw, 26px);
  z-index: var(--z-cookie);
  display: none;
}
.cookie-banner.is-visible {
  display: block;
}
.cookie-inner {
  width: min(860px, 100%);
  margin-left: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}
html[data-theme="light"] .cookie-inner {
  background: rgba(255, 255, 255, 0.88);
}
.cookie-inner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.cookie-actions {
  display: flex;
  gap: 10px;
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.72s var(--ease),
    transform 0.72s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.magnetic {
  will-change: transform;
}
/* --------------------------------------------------------------------------
   13. Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 2200px) {
  :root {
    --page-gutter: clamp(92px, 5vw, 240px);
    --container: min(78vw, 3920px);
  }
  .display {
    font-size: clamp(8rem, 6.6vw, 15rem);
  }
  .headline {
    font-size: clamp(5rem, 4.7vw, 10.5rem);
  }
  .hero-copy {
    max-width: 680px;
  }
  .work-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .work-card,
  .work-card:nth-child(4n + 1) {
    min-height: clamp(520px, 24vw, 780px);
  }
  .expertise-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .media-card {
    min-height: clamp(560px, 29vw, 940px);
  }
}
@media (max-width: 1320px) {
  .nav-actions > .btn {
    display: none;
  }
  .brand-text span {
    display: none;
  }
  .expertise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .expertise-card:nth-child(2n) {
    border-right: 0;
  }
  .expertise-card:nth-child(4n) {
    border-right: 0;
  }
  .expertise-card:nth-last-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }
  .expertise-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
  .service h2 {
    font-size: clamp(1.7rem, 4.6vw, 4.8rem);
  }
}
@media (max-width: 1180px) {
  :root {
    --page-gutter: clamp(16px, 4vw, 40px);
  }
  .nav {
    display: none;
  }
  .menu-toggle {
    display: grid;
  }
  .mobile-panel {
    display: block;
  }
  .nav-wrap {
    grid-template-columns: auto 1fr auto;
  }
  .hero {
    padding-top: 126px;
  }
  .hero-content,
  .page-intro,
  .manifesto,
  .split-feature,
  .split-feature.reverse,
  .process,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .split-feature.reverse .media-card {
    order: initial;
  }
  .manifesto-aside {
    position: static;
  }
  .manifesto-text {
    margin-left: 0;
    max-width: 13ch;
  }
  .hero-copy {
    justify-self: stretch;
    max-width: 720px;
  }
  .hero-content::before {
    right: 20px;
    top: -74px;
  }
  .feature-copy {
    max-width: none;
  }
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .proof:nth-child(2n) {
    border-right: 0;
  }
  .proof:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-hero::after {
    display: none;
  }
  .filters {
    position: relative;
    top: auto;
    width: 100%;
    border-radius: 22px;
  }
  .service-content {
    grid-template-columns: 1fr;
  }
  .service.is-open .service-content {
    max-height: 780px;
  }
  .modal-body {
    grid-template-columns: 1fr;
  }
  .contact-band-inner {
    grid-template-columns: 1fr;
  }
  .contact-band-inner .btn {
    width: max-content;
  }
}
@media (max-width: 760px) {
  :root {
    --page-gutter: 14px;
    --header-height: 68px;
    --container: calc(100vw - 28px);
  }
  body {
    overflow-x: hidden;
  }
  .section,
  .section-tight {
    padding-block: clamp(62px, 16vw, 88px);
  }
  .header {
    padding: 10px 0;
  }
  .nav-wrap {
    width: calc(100vw - 20px);
    gap: 8px;
    min-height: 48px;
  }
  .brand img {
    width: 50px;
    height: 36px;
  }
  .brand-text strong {
    font-size: 0.9rem;
  }
  .theme-toggle,
  .menu-toggle {
    width: 42px;
    height: 42px;
  }
  .mobile-panel {
    padding: 94px 18px 28px;
  }
  .hero {
    min-height: 100svh;
    padding-top: 112px;
    padding-bottom: 72px;
  }
  .hero::before {
    inset: 78px 10px 12px;
    border-radius: 20px;
  }
  .hero::after,
  .hero-meta,
  .scroll-indicator {
    display: none;
  }
  .hero-content {
    width: calc(100vw - 28px);
    gap: 20px;
  }
  .hero-content::before {
    width: 52px;
    height: 52px;
    right: 4px;
    top: -60px;
  }
  .hero-copy {
    padding: 16px;
    border-radius: 20px;
  }
  .display {
    font-size: clamp(3rem, 16.5vw, 5.6rem);
    line-height: 0.84;
    letter-spacing: -0.08em;
    max-width: 9.5ch;
  }
  .headline {
    font-size: clamp(2.25rem, 11.8vw, 4.7rem);
    line-height: 0.9;
    max-width: 11ch;
  }
  .headline-small {
    font-size: clamp(1.65rem, 8vw, 3rem);
    max-width: 13ch;
  }
  .lead {
    font-size: 1rem;
    line-height: 1.55;
  }
  .eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
  }
  .eyebrow::before {
    flex-basis: 22px;
  }
  .hero-tags {
    gap: 7px;
    margin: 20px 0;
  }
  .tag {
    font-size: 0.62rem;
    min-height: 30px;
    padding: 7px 8px;
  }
  .hero-ctas,
  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .btn {
    width: 100%;
    white-space: normal;
  }
  .manifesto,
  .split-feature,
  .process {
    gap: 26px;
  }
  .manifesto-text {
    font-size: clamp(2.35rem, 12vw, 4.6rem);
  }
  .media-card {
    min-height: 390px;
    border-radius: 24px;
  }
  .media-label {
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: grid;
    gap: 6px;
    font-size: 0.62rem;
  }
  .feature-points,
  .work-grid,
  .proof-strip,
  .footer-grid,
  .two-cols,
  .gallery-row {
    grid-template-columns: 1fr;
  }
  .expertise-grid {
    grid-template-columns: 1fr;
  }
  .expertise-card {
    min-height: auto;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }
  .expertise-card:last-child {
    border-bottom: 0 !important;
  }
  .works-head {
    grid-template-columns: 1fr;
  }
  .works-head .btn {
    width: 100%;
  }
  .work-card,
  .work-card:nth-child(4n + 1) {
    min-height: 400px;
  }
  .work-info h3 {
    font-size: clamp(1.9rem, 10.5vw, 3.7rem);
    max-width: 11ch;
  }
  .work-info p {
    font-size: 0.94rem;
  }
  .steps {
    border-left: 0;
  }
  .step {
    grid-template-columns: 1fr;
    padding: 24px 0;
  }
  .proof {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .proof:last-child {
    border-bottom: 0;
  }
  .contact-band {
    padding: 24px;
    border-radius: 24px;
  }
  .contact-band-inner .btn {
    width: 100%;
  }
  .footer-bottom {
    display: grid;
  }
  .page-hero {
    min-height: 58svh;
    padding-top: 112px;
    padding-bottom: 58px;
  }
  .page-intro .display {
    max-width: 9.6ch;
  }
  .service button {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 20px 16px;
  }
  .service h2 {
    font-size: clamp(1.55rem, 8.6vw, 3.25rem);
  }
  .service.is-open .service-content {
    max-height: 920px;
  }
  .contact-layout {
    gap: 28px;
  }
  .index-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .form {
    padding: 16px;
    border-radius: 22px;
  }
  .field input,
  .field textarea,
  .field select {
    border-radius: 15px;
  }
  .modal {
    padding: 10px;
  }
  .modal-card {
    max-height: calc(100svh - 20px);
    border-radius: 20px;
  }
  .modal-media {
    aspect-ratio: 16/10;
    min-height: 180px;
  }
  .modal-body {
    padding: 18px;
  }
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
  .cookie-inner {
    grid-template-columns: 1fr;
    padding: 16px;
    border-radius: 20px;
  }
  .legal-content {
    width: calc(100vw - 28px);
  }
}
@media (max-width: 380px) {
  .brand-text {
    display: none;
  }
  .display {
    font-size: clamp(2.75rem, 15.8vw, 4.8rem);
  }
  .headline {
    font-size: clamp(2rem, 10.8vw, 4rem);
  }
  .hero-copy {
    padding: 14px;
  }
  .mobile-panel a {
    font-size: clamp(1.8rem, 8.8vw, 3.6rem);
  }
  .work-card,
  .work-card:nth-child(4n + 1) {
    min-height: 360px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .loader {
    display: none;
  }
  .youtube-bg iframe {
    display: none;
  }
  .hero-fallback {
    opacity: 1;
  }
}
/* --------------------------------------------------------------------------
   14. Overrides finaux hero / thèmes
   -------------------------------------------------------------------------- */

/* Hero keeps cinematic contrast in both themes */
.hero .display,
.hero .lead {
  color: #fff;
}
.hero .outline {
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.58);
}
html[data-theme="light"] .hero-media::after {
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.82),
      rgba(0, 0, 0, 0.28) 38%,
      rgba(0, 0, 0, 0.7)
    ),
    linear-gradient(
      0deg,
      rgba(5, 5, 6, 0.98),
      transparent 46%,
      rgba(5, 5, 6, 0.7)
    );
}
html[data-theme="light"] .hero-copy {
  background: linear-gradient(135deg, rgba(5, 5, 6, 0.64), rgba(5, 5, 6, 0.32));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}
html[data-theme="light"] .hero-copy .lead {
  color: #fff;
}
html[data-theme="light"] .hero-copy .tag {
  color: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}
