/* =============================================================================
   MARKETING BY N AGENCY
   Design system : Exaggerated Minimalism + grille suisse + motion éditoriale
   Palette       : encre / papier / bone + un seul accent ocre, réservé
                   aux éléments interactifs
   Typographie   : Syne (display) + Manrope (texte)
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs — surfaces claires */
  --paper:      #ffffff;
  --bone:       #f3f1ee;
  --ink:        #0a0a0a;
  --ink-2:      #4a4a4a;   /* 8.7:1 sur blanc */
  --ink-3:      #767676;   /* 4.6:1 sur blanc */
  --line:       #e2dedb;
  --line-soft:  #efecea;

  /* Couleurs — surfaces sombres */
  --night:      #0a0a0a;
  --night-2:    #141414;
  --on-night:   #fafafa;
  --on-night-2: #a8a8a8;   /* 8.3:1 sur encre */
  --night-line: #2a2a2a;

  /* Accent — unique, réservé aux repères et aux états interactifs.
     Pour un site strictement noir et blanc : passer --accent à #0a0a0a
     et --accent-lt à #fafafa. Rien d’autre à changer. */
  --accent:     #a16207;   /* 4.9:1 sur blanc */
  --accent-lt:  #d9a441;   /* 8.8:1 sur encre */

  /* Rôles courants (basculés par .is-night) */
  --bg:      var(--paper);
  --fg:      var(--ink);
  --fg-2:    var(--ink-2);
  --fg-3:    var(--ink-3);
  --rule:    var(--line);
  --hi:      var(--accent);

  /* Typographie */
  --f-display: 'Syne', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-body:    'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --t-hero: clamp(1.75rem, 9.3cqw, 8.4rem);
  --t-xxl:  clamp(2.25rem, 6.4vw, 5.75rem);
  --t-xl:   clamp(1.85rem, 4.4vw, 3.75rem);
  --t-lg:   clamp(1.4rem, 2.5vw, 2.15rem);
  --t-md:   clamp(1.0625rem, 1.35vw, 1.3rem);
  --t-base: 1.0625rem;
  --t-sm:   0.9375rem;
  --t-xs:   0.75rem;

  /* Espacement — base 8 */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 40px; --s-6: 56px; --s-7: 72px; --s-8: 96px;
  --sec:    clamp(88px, 11vw, 176px);
  --gutter: clamp(20px, 5vw, 88px);
  --maxw:   1560px;

  /* Motion */
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:  cubic-bezier(0.55, 0, 1, 0.45);
  --d-fast:   180ms;
  --d-base:   320ms;
  --d-slow:   720ms;

  /* Couches */
  --z-base: 1;  --z-sticky: 20;  --z-header: 40;
  --z-menu: 60; --z-cursor: 90;  --z-transition: 100;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

/* Sections sur fond sombre */
.is-night {
  --bg:   var(--night);
  --fg:   var(--on-night);
  --fg-2: var(--on-night-2);
  --fg-3: var(--on-night-2);
  --rule: var(--night-line);
  --hi:   var(--accent-lt);
}

/* -----------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-base);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;   /* filet de sécurité : jamais de mot rogné */
}

p  { margin: 0 0 1.15em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

img, video, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--d-fast) var(--ease), opacity var(--d-fast) var(--ease);
}

button { font: inherit; color: inherit; }

ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--ink); color: var(--paper); }
.is-night ::selection { background: var(--on-night); color: var(--night); }

:focus-visible {
  outline: 2px solid var(--hi);
  outline-offset: 4px;
  border-radius: 1px;
}

.skip-link {
  position: fixed;
  top: -100px; left: var(--gutter);
  z-index: 200;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--t-sm);
  font-weight: 600;
  transition: top var(--d-base) var(--ease);
}
.skip-link:focus { top: 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* -----------------------------------------------------------------------------
   3. LAYOUT
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  /* Contexte de conteneur : les titres se dimensionnent sur la largeur
     réellement disponible, pas sur celle du viewport. */
  container-type: inline-size;
}

.section {
  position: relative;
  padding-block: var(--sec);
  background: var(--bg);
  color: var(--fg);
}
.section--tight { padding-block: clamp(64px, 7vw, 112px); }
.section--flush-top { padding-top: 0; }

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2.2vw, 40px);
}

.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

/* Étiquette de section : 01 / NOTRE MÉTIER */
.eyebrow {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  font-family: var(--f-body);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
  transform: translateY(-3px);
}
.eyebrow__num { color: var(--hi); font-variant-numeric: tabular-nums; }

.lead {
  font-size: var(--t-md);
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 60ch;
}

/* -----------------------------------------------------------------------------
   4. HEADER / NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  height: 84px;
  color: var(--ink);
  transition: background var(--d-base) var(--ease),
              color var(--d-base) var(--ease),
              height var(--d-base) var(--ease),
              border-color var(--d-base) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--paper);
  opacity: 0;
  transition: opacity var(--d-base) var(--ease);
  z-index: -1;
}

/* Au-dessus d'un hero sombre */
body[data-hdr='light'] .site-header { color: var(--on-night); }

/* Après défilement : barre pleine */
body[data-hdr='solid'] .site-header {
  height: 68px;
  color: var(--ink);
  border-bottom-color: var(--line);
}
body[data-hdr='solid'] .site-header::before { opacity: 1; }

.site-header__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

.wordmark {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: 0.12em;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  min-height: 44px;
}
.wordmark__dot {
  width: 6px; height: 6px;
  background: var(--hi);
  border-radius: 50%;
  transition: transform var(--d-base) var(--ease);
}
.wordmark:hover .wordmark__dot { transform: scale(1.8); }
body[data-hdr='light'] .wordmark__dot { background: var(--accent-lt); }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 44px); }

.nav__link {
  position: relative;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-block: 6px;
  white-space: nowrap;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--d-base) var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current='page']::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav__link[aria-current='page'] { color: inherit; }

.nav__cta {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 1px solid currentColor;
  transition: background var(--d-base) var(--ease), color var(--d-base) var(--ease);
}
.nav__cta:hover { background: currentColor; }
.nav__cta:hover span { color: var(--paper); }
.nav__cta[aria-current='page'] { background: currentColor; }
.nav__cta[aria-current='page'] span { color: var(--paper); }
body[data-hdr='light'] .nav__cta[aria-current='page'] span { color: var(--night); }
body[data-hdr='light'] .nav__cta:hover span { color: var(--night); }

/* Bouton menu (mobile) */
.burger {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  background: none;
  border: 0;
  padding: 12px 0 12px 12px;
  cursor: pointer;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.burger__bars { display: grid; gap: 5px; width: 26px; }
.burger__bars i {
  display: block; height: 1.5px; width: 100%;
  background: currentColor;
  transition: transform var(--d-base) var(--ease), opacity var(--d-fast) var(--ease);
}
body.menu-open .burger__bars i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .burger__bars i:nth-child(2) { opacity: 0; }
body.menu-open .burger__bars i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Menu plein écran */
.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--night);
  color: var(--on-night);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--gutter) var(--s-6);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 620ms var(--ease);
  visibility: hidden;
}
body.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }

.menu__list { display: grid; gap: clamp(4px, 1vw, 12px); }
.menu__item { overflow: hidden; }
.menu__link {
  display: block;
  padding-block: 6px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 9vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  transform: translateY(105%);
  transition: transform 640ms var(--ease), color var(--d-fast) var(--ease);
}
body.menu-open .menu__link { transform: translateY(0); }
body.menu-open .menu__item:nth-child(1) .menu__link { transition-delay: 90ms; }
body.menu-open .menu__item:nth-child(2) .menu__link { transition-delay: 140ms; }
body.menu-open .menu__item:nth-child(3) .menu__link { transition-delay: 190ms; }
body.menu-open .menu__item:nth-child(4) .menu__link { transition-delay: 240ms; }
body.menu-open .menu__item:nth-child(5) .menu__link { transition-delay: 290ms; }
.menu__link:hover { color: var(--accent-lt); }
.menu__link[aria-current='page'] { color: var(--accent-lt); }

.menu__foot {
  margin-top: clamp(40px, 6vw, 80px);
  padding-top: var(--s-4);
  border-top: 1px solid var(--night-line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-6);
  font-size: var(--t-sm);
  color: var(--on-night-2);
}
.menu__foot a { display: inline-block; padding-block: 10px; }
.menu__foot a:hover { color: var(--accent-lt); }

/* -----------------------------------------------------------------------------
   5. BOUTONS & LIENS
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 20px 34px;
  border: 1px solid var(--fg);
  background: transparent;
  color: var(--fg);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  min-height: 56px;
  transition: color var(--d-base) var(--ease), border-color var(--d-base) var(--ease);
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--fg);
  transform: translateY(101%);
  transition: transform 420ms var(--ease);
  z-index: -1;
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover, .btn:focus-visible { color: var(--bg); }
.btn__arrow { transition: transform 420ms var(--ease); }
.btn:hover .btn__arrow { transform: translateX(6px); }

.btn--solid { background: var(--fg); color: var(--bg); }
.btn--solid::before { background: var(--hi); }
.btn--solid:hover, .btn--solid:focus-visible { color: var(--night); border-color: var(--hi); }

.btn--lg { padding: 26px 44px; font-size: var(--t-sm); letter-spacing: 0.12em; }

.link-u {
  position: relative;
  display: inline-block;
  font-weight: 600;
  padding-bottom: 2px;
}
.link-u::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 420ms var(--ease);
}
.link-u:hover { color: var(--hi); }
.link-u:hover::after { transform: scaleX(0); }

/* -----------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background: var(--night);
  color: var(--on-night);
  overflow: hidden;
  padding-block: 140px var(--s-6);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

/* Fond de substitution (aucune vidéo fournie) : lumière lente + grain */
.hero__fallback {
  position: absolute; inset: -20%;
  background:
    radial-gradient(58% 48% at 22% 18%, rgba(255,255,255,0.16), transparent 62%),
    radial-gradient(46% 40% at 82% 72%, rgba(217,164,65,0.13), transparent 66%),
    radial-gradient(70% 60% at 50% 110%, rgba(255,255,255,0.07), transparent 70%),
    var(--night);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1.02); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.1); }
}
.hero__grain {
  position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: 0.16;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.72) 0%, rgba(10,10,10,0.22) 42%, rgba(10,10,10,0.9) 100%);
}

.hero__inner { position: relative; z-index: 2; width: 100%; }

.hero__kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-night-2);
  margin-bottom: clamp(24px, 3vw, 44px);
}
.hero__kicker span { display: inline-flex; align-items: center; gap: 22px; }
.hero__kicker span::after {
  content: '';
  width: 4px; height: 4px;
  background: var(--accent-lt);
  border-radius: 50%;
}
.hero__kicker span:last-child::after { display: none; }

.hero__title {
  font-size: var(--t-hero);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.045em;
  margin-bottom: clamp(20px, 2.6vw, 36px);
}
.hero__signature {
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 3.2vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--on-night);
  max-width: 20ch;
  margin-bottom: clamp(36px, 4vw, 60px);
}

.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-5);
  flex-wrap: wrap;
  padding-top: var(--s-4);
  border-top: 1px solid var(--night-line);
}
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-night-2);
}
.hero__scroll i {
  display: block;
  width: 1px; height: 34px;
  background: linear-gradient(180deg, var(--on-night-2), transparent);
  animation: scrollpulse 2.4s var(--ease) infinite;
}
@keyframes scrollpulse {
  0%   { transform: scaleY(0.2); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1);   transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0.2); transform-origin: bottom; opacity: 0; }
}

/* Masque d'apparition ligne par ligne */
.mask { display: block; overflow: hidden; }
.mask > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1000ms var(--ease);
}
.is-in .mask > span,
.hero.is-in .mask > span { transform: translateY(0); }
.mask:nth-child(2) > span { transition-delay: 80ms; }
.mask:nth-child(3) > span { transition-delay: 160ms; }

/* -----------------------------------------------------------------------------
   7. BANDEAU DÉFILANT
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: clamp(18px, 2vw, 30px);
  border-block: 1px solid var(--rule);
  background: var(--bg);
  color: var(--fg);
  user-select: none;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: slide 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding-right: clamp(28px, 4vw, 64px);
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.marquee__group i {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--hi);
  border-radius: 50%;
  flex: none;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* -----------------------------------------------------------------------------
   8. MÉTIER (texte manifeste)
   -------------------------------------------------------------------------- */
.manifesto__title {
  grid-column: 1 / -1;
  font-size: var(--t-xxl);
  margin-bottom: clamp(32px, 4vw, 56px);
  max-width: 16ch;
}
.manifesto__body { grid-column: 6 / -1; }
.manifesto__body p { font-size: var(--t-md); line-height: 1.62; color: var(--fg-2); }
.manifesto__aside {
  grid-column: 1 / 5;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* -----------------------------------------------------------------------------
   9. EXPERTISES — 4 familles, exploration au survol
   -------------------------------------------------------------------------- */
.families { border-top: 1px solid var(--rule); }

.family {
  position: relative;
  display: block;
  width: 100%;
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(28px, 3.4vw, 52px);
  cursor: pointer;
  overflow: hidden;
  background: none;
  border-inline: 0;
  border-top: 0;
  text-align: left;
}
.family::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--fg);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 520ms var(--ease);
}
.family:hover::before, .family:focus-visible::before { transform: scaleY(1); transform-origin: top; }

.family__row {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.1fr) 2.5rem;
  align-items: baseline;
  gap: clamp(12px, 2vw, 32px);
  transition: color 420ms var(--ease), transform 520ms var(--ease);
}
.family:hover .family__row, .family:focus-visible .family__row { color: var(--bg); }

.family__num {
  font-family: var(--f-display);
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--hi);
  font-variant-numeric: tabular-nums;
}
.family:hover .family__num { color: var(--accent-lt); }

.family__title {
  font-size: clamp(1.45rem, 3.4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}
.family__lead {
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 46ch;
  transition: color 420ms var(--ease);
}
.family:hover .family__lead,
.family:focus-visible .family__lead { color: var(--bg); opacity: 0.68; }

.family__plus {
  justify-self: end;
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 520ms var(--ease);
}
.family:hover .family__plus { transform: rotate(90deg); }

.family__items {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 560ms var(--ease), opacity 380ms var(--ease), margin-top 560ms var(--ease);
}
.family:hover .family__items,
.family:focus-visible .family__items,
.family.is-open .family__items {
  max-height: 220px;
  opacity: 1;
  margin-top: clamp(18px, 2vw, 30px);
}
.family__items li {
  padding: 9px 16px;
  border: 1px solid var(--rule);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
  transition: color 420ms var(--ease), border-color 420ms var(--ease);
}
.family:hover .family__items li,
.family:focus-visible .family__items li {
  color: var(--bg);
  border-color: rgba(127,127,127,0.45);
}

/* -----------------------------------------------------------------------------
   10. VISUELS — système de substitution graphique
   -----------------------------------------------------------------------------
   Aucune photo n'est fournie pour les projets : chaque visuel est composé
   en CSS (dégradés monochromes + grain + trame). Dès qu'une image réelle est
   renseignée dans content.js, elle remplace automatiquement la composition.
   -------------------------------------------------------------------------- */
.visual {
  position: relative;
  width: 100%; height: 100%;
  background: var(--night);
  overflow: hidden;
  isolation: isolate;
}
.visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.visual__gen { position: absolute; inset: 0; }
.visual__gen::after {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: 0.2;
  mix-blend-mode: overlay;
}
.visual__mark {
  position: absolute;
  inset: auto auto 8% 7%;
  font-family: var(--f-display);
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.8;
  color: rgba(250,250,250,0.09);
  pointer-events: none;
}

.visual--v1 .visual__gen {
  background:
    radial-gradient(60% 70% at 20% 15%, rgba(255,255,255,0.2), transparent 60%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 22px),
    linear-gradient(150deg, #1b1b1b, #060606);
}
.visual--v2 .visual__gen {
  background:
    radial-gradient(50% 50% at 78% 26%, rgba(217,164,65,0.24), transparent 62%),
    radial-gradient(70% 80% at 12% 88%, rgba(255,255,255,0.13), transparent 65%),
    linear-gradient(20deg, #101010, #232323);
}
.visual--v3 .visual__gen {
  background:
    conic-gradient(from 210deg at 65% 40%, rgba(255,255,255,0.16), transparent 38%, rgba(255,255,255,0.08) 70%, transparent),
    linear-gradient(200deg, #0d0d0d, #1e1e1e);
}
.visual--v4 .visual__gen {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.055) 0 1px, transparent 1px 14px),
    radial-gradient(55% 60% at 50% 105%, rgba(255,255,255,0.2), transparent 60%),
    linear-gradient(140deg, #171717, #050505);
}
.visual--v5 .visual__gen {
  background:
    radial-gradient(38% 55% at 30% 30%, rgba(255,255,255,0.22), transparent 58%),
    radial-gradient(45% 45% at 82% 78%, rgba(217,164,65,0.18), transparent 60%),
    linear-gradient(75deg, #0b0b0b, #202020);
}
.visual--v6 .visual__gen {
  background:
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,0.04) 0deg 6deg, transparent 6deg 14deg),
    radial-gradient(60% 60% at 50% 40%, rgba(255,255,255,0.16), transparent 62%),
    linear-gradient(190deg, #141414, #070707);
}

/* -----------------------------------------------------------------------------
   11. WORK — grille éditoriale
   -------------------------------------------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2.4vw, 44px);
  row-gap: clamp(40px, 6vw, 104px);
}

.work-card {
  position: relative;
  display: block;
  grid-column: span 6;
}
.work-card--wide { grid-column: span 7; }
.work-card--tall { grid-column: span 5; }
.work-card--std  { grid-column: span 6; }
.work-card:nth-child(even) { margin-top: clamp(0px, 5vw, 88px); }

.work-card__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--night);
}
.work-card--tall .work-card__frame { aspect-ratio: 3 / 4; }
.work-card--wide .work-card__frame { aspect-ratio: 16 / 10; }

.work-card__frame .visual {
  transition: transform 900ms var(--ease), filter 700ms var(--ease);
  transform: scale(1.001);
}
.work-card:hover .work-card__frame .visual { transform: scale(1.06); }

.work-card__veil {
  position: absolute; inset: 0;
  background: rgba(10,10,10,0.28);
  opacity: 0;
  transition: opacity 520ms var(--ease);
  z-index: 2;
}
.work-card:hover .work-card__veil { opacity: 1; }

.work-card__cta {
  position: absolute;
  z-index: 3;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  padding: 16px 26px;
  border: 1px solid rgba(250,250,250,0.7);
  color: #fafafa;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: opacity 420ms var(--ease), transform 520ms var(--ease);
  white-space: nowrap;
}
.work-card:hover .work-card__cta,
.work-card:focus-visible .work-card__cta { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.work-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-2);
  padding-top: var(--s-2);
  border-top: 1px solid var(--rule);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.work-card__title {
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 12px;
  color: var(--fg);
  transition: color var(--d-base) var(--ease);
}
.work-card:hover .work-card__title { color: var(--hi); }
.work-card__obj {
  margin-top: 8px;
  font-size: var(--t-sm);
  color: var(--fg-2);
  max-width: 44ch;
}

/* Filtres */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.filter {
  padding: 12px 20px;
  min-height: 44px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--fg-2);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--d-base) var(--ease), border-color var(--d-base) var(--ease),
              background var(--d-base) var(--ease);
}
.filter:hover { color: var(--fg); border-color: var(--fg); }
.filter[aria-pressed='true'] {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

.empty-state {
  grid-column: 1 / -1;
  padding: clamp(48px, 8vw, 110px) 0;
  text-align: center;
  color: var(--fg-3);
  border: 1px dashed var(--rule);
}

/* -----------------------------------------------------------------------------
   12. MÉTHODE — 4 étapes
   -------------------------------------------------------------------------- */
.method {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.step {
  position: relative;
  background: var(--bg);
  padding: clamp(28px, 3vw, 48px) clamp(22px, 2.4vw, 40px) clamp(48px, 6vw, 88px);
  overflow: hidden;
}
.step::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--hi);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 620ms var(--ease);
}
.step:hover::after { transform: scaleX(1); }
.step__num {
  font-family: var(--f-display);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--hi);
  display: block;
  margin-bottom: clamp(40px, 6vw, 88px);
  font-variant-numeric: tabular-nums;
}
.step__title {
  font-size: clamp(1.25rem, 2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.step__text { font-size: var(--t-sm); color: var(--fg-2); max-width: 30ch; }

/* -----------------------------------------------------------------------------
   13. FONDATRICE
   -------------------------------------------------------------------------- */
.founder { align-items: start; row-gap: clamp(32px, 4vw, 56px); }
.founder__media { grid-column: 1 / 6; position: relative; }
.founder__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--night);
}
.founder__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  filter: grayscale(1) contrast(1.06);
  transition: filter 900ms var(--ease), transform 1200ms var(--ease);
}
.founder__frame:hover img { filter: grayscale(0.15) contrast(1.02); transform: scale(1.03); }
.founder__caption {
  margin-top: var(--s-2);
  padding-top: var(--s-2);
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: var(--s-2);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.founder__body { grid-column: 7 / -1; }
.founder__intro {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: clamp(28px, 3vw, 44px);
  max-width: 22ch;
}
.founder__body p { color: var(--fg-2); }

.quote {
  margin: clamp(32px, 4vw, 56px) 0;
  padding-left: clamp(20px, 2.4vw, 36px);
  border-left: 2px solid var(--hi);
  font-family: var(--f-display);
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.quote p { max-width: 54ch; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: clamp(36px, 4vw, 60px);
}
.fact { background: var(--bg); padding: clamp(20px, 2.4vw, 32px); }
.fact__value {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
}
.fact__label {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* -----------------------------------------------------------------------------
   14. CTA FINAL
   -------------------------------------------------------------------------- */
.cta { text-align: center; }
.cta__title {
  font-size: var(--t-xxl);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.94;
  margin: 0 auto clamp(32px, 4vw, 52px);
  max-width: 16ch;
}
.cta__title em { font-style: italic; font-weight: 400; }

/* -----------------------------------------------------------------------------
   15. PAGES INTÉRIEURES
   -------------------------------------------------------------------------- */
.page-head {
  position: relative;
  background: var(--night);
  color: var(--on-night);
  padding-block: clamp(160px, 20vh, 260px) clamp(56px, 7vw, 104px);
  overflow: hidden;
}
.page-head__bg {
  position: absolute; inset: -10%;
  background:
    radial-gradient(52% 46% at 78% 12%, rgba(255,255,255,0.12), transparent 62%),
    radial-gradient(40% 40% at 14% 92%, rgba(217,164,65,0.12), transparent 66%),
    var(--night);
}
.page-head__grain {
  position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: 0.14;
  mix-blend-mode: overlay;
}
.page-head__inner { position: relative; z-index: 2; }
.page-head__title {
  font-size: var(--t-hero);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.045em;
  margin-bottom: clamp(20px, 2.4vw, 32px);
}
.page-head__title--sm { font-size: clamp(1.6rem, 6.9cqw, 6.2rem); line-height: 0.94; }

.page-head__lead {
  font-size: var(--t-md);
  color: var(--on-night-2);
  max-width: 52ch;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-night-2);
  margin-bottom: clamp(24px, 3vw, 40px);
}
.breadcrumb a:hover { color: var(--accent-lt); }
.breadcrumb span[aria-hidden] { opacity: 0.5; }

/* Liste des expertises (page Expertises) */
.exp-block { border-top: 1px solid var(--rule); }
.exp {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2.4vw, 40px);
  row-gap: var(--s-3);
  padding-block: clamp(36px, 4.4vw, 72px);
  border-bottom: 1px solid var(--rule);
}
.exp__side { grid-column: 1 / 5; }
.exp__num {
  font-family: var(--f-display);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--hi);
  display: block;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.exp__title {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.exp__family {
  margin-top: 12px;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.exp__main { grid-column: 6 / -1; }
.exp__lead {
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.28;
  margin-bottom: var(--s-2);
  max-width: 34ch;
}
.exp__detail { font-size: var(--t-sm); color: var(--fg-2); max-width: 62ch; }
.exp__devices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: var(--s-3);
}
.exp__devices li {
  padding: 8px 14px;
  border: 1px solid var(--rule);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
  transition: border-color var(--d-base) var(--ease), color var(--d-base) var(--ease);
}
.exp:hover .exp__devices li { border-color: var(--fg-2); }

/* Page projet */
.case-hero {
  position: relative;
  height: clamp(58vh, 72vh, 88vh);
  min-height: 420px;
  overflow: hidden;
  background: var(--night);
}
.case-hero .visual { position: absolute; inset: 0; }
.case-hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.78) 0%, rgba(10,10,10,0.15) 45%, rgba(10,10,10,0.85) 100%);
  z-index: 2;
}
.case-hero__inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: 120px clamp(36px, 5vw, 64px);
  color: var(--on-night);
}
.case-hero__title {
  font-size: clamp(1.9rem, 8cqw, 6.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
.case-fact { background: var(--bg); padding: clamp(20px, 2.4vw, 34px); }
.case-fact__label {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 10px;
}
.case-fact__value {
  font-family: var(--f-display);
  font-size: var(--t-md);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.chapter {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2.4vw, 40px);
  row-gap: var(--s-3);
  padding-block: clamp(40px, 5vw, 80px);
  border-bottom: 1px solid var(--rule);
}
.chapter:last-of-type { border-bottom: 0; }
.chapter__label { grid-column: 1 / 5; }
.chapter__label h3 {
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.chapter__label span {
  display: block;
  font-family: var(--f-display);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--hi);
  margin-bottom: 12px;
}
.chapter__body { grid-column: 6 / -1; }
.chapter__body p { font-size: var(--t-md); line-height: 1.6; color: var(--fg-2); }

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 2vw, 28px);
}
.gallery__cell { position: relative; overflow: hidden; }
.gallery__cell:nth-child(1) { grid-column: span 7; aspect-ratio: 4/3; }
.gallery__cell:nth-child(2) { grid-column: span 5; aspect-ratio: 4/3; }
.gallery__cell:nth-child(3) { grid-column: span 12; aspect-ratio: 21/9; }

.next-case {
  display: block;
  padding-block: clamp(48px, 7vw, 104px);
  border-top: 1px solid var(--rule);
  text-align: center;
}
.next-case__label {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: var(--s-2);
}
.next-case__title {
  font-size: var(--t-xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  transition: color var(--d-base) var(--ease);
}
.next-case:hover .next-case__title { color: var(--hi); }

/* -----------------------------------------------------------------------------
   16. CONTACT
   -------------------------------------------------------------------------- */
.contact-grid { align-items: start; row-gap: clamp(48px, 6vw, 80px); }
.contact-form { grid-column: 1 / 8; }
.contact-side { grid-column: 9 / -1; }

.field { margin-bottom: clamp(20px, 2.4vw, 30px); }
.field__label {
  display: block;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 10px;
}
.field__req { color: var(--hi); margin-left: 4px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 56px;
  padding: 16px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: var(--t-md);
  border-radius: 0;
  transition: border-color var(--d-base) var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 12px) calc(50% + 2px), calc(100% - 6px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--hi);
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); opacity: 0.8; }

.field__help { margin-top: 8px; font-size: var(--t-sm); color: var(--fg-3); }
.field__error {
  display: none;
  margin-top: 8px;
  font-size: var(--t-sm);
  font-weight: 600;
  color: #b3261e;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-bottom-color: #b3261e; }
.field.has-error .field__error { display: flex; align-items: center; gap: 8px; }

.form-status {
  margin-top: var(--s-3);
  padding: 18px 22px;
  border: 1px solid var(--rule);
  font-size: var(--t-sm);
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-ok { border-color: var(--hi); }

.contact-list { border-top: 1px solid var(--rule); }
.contact-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--rule);
}
.contact-item__k {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  flex: none;
}
.contact-item__v { text-align: right; font-weight: 500; word-break: break-word; }
.contact-item__v a { display: inline-block; padding-block: 6px; }
.contact-item__v a:hover { color: var(--hi); }

.wa {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--s-4);
  padding: 18px 26px;
  min-height: 56px;
  border: 1px solid var(--rule);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: border-color var(--d-base) var(--ease), color var(--d-base) var(--ease);
}
.wa:hover { border-color: var(--fg); color: var(--hi); }

/* -----------------------------------------------------------------------------
   17. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--night);
  color: var(--on-night);
  padding-block: clamp(64px, 8vw, 120px) var(--s-5);
}
.footer__mark {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2rem, 9.3cqw, 9rem);
  letter-spacing: -0.05em;
  line-height: 0.85;
  margin-bottom: clamp(40px, 5vw, 72px);
  color: var(--on-night);
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2.4vw, 40px);
  row-gap: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--night-line);
}
.footer__col { grid-column: span 3; }
.footer__col h4 {
  font-family: var(--f-body);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-night-2);
  margin-bottom: var(--s-2);
}
.footer__col li { margin-bottom: 4px; font-size: var(--t-sm); }
.footer__col li a { display: inline-block; padding-block: 9px; }
.footer__col a:hover { color: var(--accent-lt); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: var(--s-3);
  border-top: 1px solid var(--night-line);
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  color: var(--on-night-2);
}
.footer__top-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer__top-link:hover { color: var(--accent-lt); }

/* -----------------------------------------------------------------------------
   18. RÉVÉLATIONS AU SCROLL
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

[data-reveal-line] {
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1000ms var(--ease);
}
[data-reveal-line].is-in { transform: scaleX(1); }

/* -----------------------------------------------------------------------------
   19. TRANSITION DE PAGE
   -------------------------------------------------------------------------- */
.transition {
  position: fixed;
  inset: 0;
  z-index: var(--z-transition);
  background: var(--night);
  color: var(--on-night);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(100%);
  pointer-events: none;
}
.transition.is-covering {
  animation: cover 460ms var(--ease) forwards;
}
.transition.is-revealing {
  animation: reveal 620ms var(--ease) forwards;
}
@keyframes cover  { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes reveal { from { transform: translateY(0); }    to { transform: translateY(-100%); } }

.transition__mark {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1rem, 2.4vw, 1.6rem);
  letter-spacing: 0.24em;
  opacity: 0;
  animation: markin 460ms var(--ease) 120ms forwards;
}
@keyframes markin { to { opacity: 1; } }

/* Écran de chargement initial */
.boot {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--night);
  color: var(--on-night);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 620ms var(--ease), visibility 620ms;
}
body.is-booted .boot { opacity: 0; visibility: hidden; }
.boot__mark {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1rem, 2.6vw, 1.7rem);
  letter-spacing: 0.28em;
  overflow: hidden;
  display: block;
}
.boot__mark span {
  display: block;
  animation: bootin 900ms var(--ease) forwards;
  transform: translateY(110%);
}
@keyframes bootin { to { transform: translateY(0); } }

/* -----------------------------------------------------------------------------
   20. CURSEUR PERSONNALISÉ (souris fine uniquement)
   -------------------------------------------------------------------------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 28px; height: 28px;
  margin: -14px 0 0 -14px;
  border: 1px solid #fafafa;
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 260ms var(--ease), width 260ms var(--ease),
              height 260ms var(--ease), margin 260ms var(--ease),
              background 260ms var(--ease);
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
  body.cursor-ready .cursor { opacity: 1; }
  body.cursor-hot .cursor {
    width: 64px; height: 64px;
    margin: -32px 0 0 -32px;
    background: #fafafa;
  }
}

/* -----------------------------------------------------------------------------
   21. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .manifesto__body { grid-column: 5 / -1; }
  .manifesto__aside { grid-column: 1 / 4; }
  .founder__media { grid-column: 1 / 6; }
  .founder__body  { grid-column: 6 / -1; }
  .footer__col { grid-column: span 4; }
}

@media (max-width: 1024px) {
  /* Sans survol possible, les sous-expertises sont affichées en permanence. */
  .family__items { max-height: 260px; opacity: 1; margin-top: 18px; }
  .family::before { display: none; }
  .nav { display: none; }
  .burger { display: inline-flex; }
  .method { grid-template-columns: repeat(2, 1fr); }
  .case-facts { grid-template-columns: repeat(2, 1fr); }
  .contact-form { grid-column: 1 / -1; }
  .contact-side { grid-column: 1 / -1; }
  .family__row { grid-template-columns: 3rem minmax(0, 1fr) 2rem; }
  .family__lead { grid-column: 2 / 3; margin-top: 12px; max-width: none; }
  .family__plus { grid-column: 3; }
}

@media (max-width: 860px) {
  :root { --t-base: 1rem; }
  .manifesto__title { max-width: none; }
  .manifesto__aside, .manifesto__body { grid-column: 1 / -1; }
  .manifesto__aside { margin-bottom: var(--s-2); }
  .founder__media, .founder__body { grid-column: 1 / -1; }
  .founder__frame { aspect-ratio: 3 / 4; max-width: 460px; }
  .exp__side, .exp__main { grid-column: 1 / -1; }
  .chapter__label, .chapter__body { grid-column: 1 / -1; }
  .work-card, .work-card--wide, .work-card--tall, .work-card--std { grid-column: span 12; }
  .work-card:nth-child(even) { margin-top: 0; }
  .work-card--tall .work-card__frame,
  .work-card--wide .work-card__frame,
  .work-card__frame { aspect-ratio: 4 / 3; }
  .gallery__cell:nth-child(1),
  .gallery__cell:nth-child(2),
  .gallery__cell:nth-child(3) { grid-column: span 12; aspect-ratio: 4/3; }
  .facts { grid-template-columns: 1fr; }
  .footer__col { grid-column: span 6; }
  .hero { min-height: 92svh; }
  .site-header { height: 72px; }
  body[data-hdr='solid'] .site-header { height: 62px; }
}

@media (max-width: 560px) {
  .method { grid-template-columns: 1fr; }
  .case-facts { grid-template-columns: 1fr; }
  .footer__col { grid-column: span 12; }
  .contact-item { flex-direction: column; align-items: flex-start; gap: 6px; }
  .contact-item__v { text-align: left; }
  .hero__foot { align-items: flex-start; }
  .btn { width: 100%; justify-content: space-between; }
  .cta .btn { width: auto; }
}

/* -----------------------------------------------------------------------------
   22. MOUVEMENT RÉDUIT
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  [data-reveal-line] { transform: scaleX(1); }
  .mask > span { transform: none; }
  .marquee__track { animation: none; }
  .hero__fallback { animation: none; }
  .cursor { display: none !important; }
  .boot { display: none; }
}

/* -----------------------------------------------------------------------------
   23. IMPRESSION
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .menu, .cursor, .transition, .boot, .marquee { display: none !important; }
  body { color: #000; background: #fff; }
  .hero, .page-head, .site-footer { background: #fff !important; color: #000 !important; }
}

/* -----------------------------------------------------------------------------
   24. SÉLECTEUR DE LANGUE
   -------------------------------------------------------------------------- */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: clamp(4px, 1vw, 16px);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
}
.lang__opt {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 3px;
  /* 0.6 : la langue inactive reste sous les 4.5:1 en dessous de cette valeur
     quand l'en-tete passe en blanc. Ne pas descendre. */
  opacity: 0.6;
  position: relative;
  transition: opacity var(--d-base) var(--ease), color var(--d-base) var(--ease);
}
.lang__opt:hover { opacity: 1; }
.lang__opt[aria-current='true'] { opacity: 1; }
.lang__opt[aria-current='true']::after {
  content: '';
  position: absolute;
  left: 3px; right: 3px; bottom: 12px;
  height: 1px;
  background: var(--hi);
}
.lang__sep { opacity: 0.4; }

/* Dans le menu plein écran, le sélecteur ouvre la ligne de contact. */
.menu__foot .lang { margin-left: 0; margin-right: var(--s-2); }
.menu__foot .lang__opt:hover,
.menu__foot .lang__opt[aria-current='true'] { color: var(--accent-lt); }

/* En-tête étroit : le sélecteur vit dans le menu, pas dans la barre. */
@media (max-width: 1024px) {
  .site-header .lang { display: none; }
}
