/* polices */
/* latin-ext */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_theme/fonts/hanken-grotesk-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_theme/fonts/hanken-grotesk-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_theme/fonts/hanken-grotesk-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_theme/fonts/hanken-grotesk-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/_theme/fonts/hanken-grotesk-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/_theme/fonts/hanken-grotesk-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/_theme/fonts/hanken-grotesk-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/_theme/fonts/hanken-grotesk-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/_theme/fonts/inter-300-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/_theme/fonts/inter-300-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_theme/fonts/inter-300-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_theme/fonts/inter-300-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_theme/fonts/inter-300-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_theme/fonts/inter-300-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ---- /assets/site.css ---- */
/*
 * alpha & omédia · site.css
 * DA fondation CLAIRE · version 2026-06-23 rebrand alpha-omédia
 * Territoire : Corporate cinematique clair · fond blanc casse, dominante carmin, accent orange brule
 * Reference DA : brand board V2 alpha-omédia
 * Stack : PHP + CDN + CSS vanilla · ZERO build/npm/framework
 * Polices : Hanken Grotesk (titres 600/700/800 display) + Inter (corps) Google Fonts CDN
 * --------------------------------------------------------
 * IMPORT dans chaque public/*.php :
 *   <link rel="preconnect" href="https://fonts.googleapis.com">
 *   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
 *   <link href="https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@600;700;800;900&family=Inter:wght@300;400;500&display=swap" rel="stylesheet">
 *   <link rel="stylesheet" href="/assets/site.css">
 *   <link rel="stylesheet" href="/assets/identity.css">
 */

/* ================================================================
   1. TOKENS :root · Yanaweb sur fond CLAIR
   Tokens canoniques transmis par Nicolas (a utiliser tels quels).
   Les autres sheets consomment via var() sans redefinir.
   ================================================================ */

:root {
  /* --- Fond et surfaces (brand board V2 alpha-omédia) --- */
  --bg: #f2f2f0; /* blanc casse, fond principal */
  --bg-alt: #e9e9e7; /* blanc casse soutenu, sections alternees */

  /* --- Encre (noir graphique brand board) --- */
  --ink: #111111; /* noir graphique titres/corps fort */
  --ink-2: oklch(0.38 0.008 250); /* encre secondaire */

  /* --- Couleurs marque alpha-omédia --- */
  --carmin: #8b0628; /* carmin : couleur de BASE, dominante marque */
  --carmin-l: oklch(
    0.75 0.14 10
  ); /* carmin clair : sur fond sombre (ex-terra-l) */
  --carmin-d: oklch(0.28 0.16 10); /* carmin sombre : hover CTA */
  --carmin-bg: oklch(
    0.97 0.018 10
  ); /* teinté carmin leger : badge, fond highlight */
  --carmin-border: oklch(0.82 0.09 10); /* bordure teintee carmin */

  --orange: #ff6b1a; /* orange brule : ACCENT (CTA, hover, highlights) */
  --orange-l: oklch(0.8 0.13 45); /* orange clair : variante douce */
  --orange-d: oklch(0.5 0.18 40); /* orange sombre : hover accent */
  --orange-bg: oklch(0.97 0.022 55); /* teinté orange leger */
  --orange-border: oklch(0.85 0.1 50); /* bordure teintee orange */

  /* Aliases semantiques (les composants utilisent --terra/* pour la couleur marque
     et --accent/* pour le punch interactif) */
  --terra: var(--carmin);
  --terra-l: var(--orange);
  --terra-d: var(--carmin-d);
  --terra-bg: var(--carmin-bg);
  --terra-border: var(--carmin-border);
  /* teal supprime : remonte sur carmin */
  --teal: var(--carmin);
  --teal-l: var(--carmin-l);

  /* --- Filets / bordures --- */
  --line: oklch(0.9 0.004 60);

  /* --- Tokens complementaires (computed) --- */
  --ink-3: oklch(0.6 0.006 250); /* muted : legendes, labels */
  --ink-4: oklch(0.74 0.004 250); /* tres muted : placeholders */
  --ink-inv: oklch(0.96 0.003 60); /* texte sur fond sombre */
  --ink-inv-2: oklch(0.72 0.006 240); /* secondaire sur fond sombre */
  --bg-dark: #111111; /* footer / blocs sombres (noir graphique) */
  --bg-card: #ffffff; /* cartes : blanc pur */
  --line-m: oklch(0.83 0.006 60); /* bordures cartes */
  --line-dark: oklch(0.22 0.008 250); /* hairline sur fond sombre */

  /* Alias --accent -> orange brule (CTA, punch interactif) */
  --accent: var(--orange);
  --accent-bg: var(--orange-bg);
  --accent-border: var(--orange-border);

  /* Alias --r-md : entre --r et --r-lg (20px) */
  --r-md: 20px;

  /* Ombres douces */
  --shadow-xs: 0 1px 3px oklch(0.11 0.006 250 / 0.06);
  --shadow-sm: 0 2px 8px oklch(0.11 0.006 250 / 0.08);
  --shadow-md: 0 6px 24px oklch(0.11 0.006 250 / 0.1);
  --shadow-lg: 0 16px 48px oklch(0.11 0.006 250 / 0.12);
  --shadow-card:
    0 2px 12px oklch(0.11 0.006 250 / 0.07),
    0 1px 3px oklch(0.11 0.006 250 / 0.05);

  /* --- Typographie --- */
  --ff-title:
    "Hanken Grotesk", "Arial Black", sans-serif; /* titrage : humaniste geometrique, proche Agenda */
  --ff-body: "Inter", "Arial", sans-serif; /* corps 300/400/500 */

  /* Echelle (clamp mobile -> desktop) */
  --t-display: clamp(44px, 6vw, 88px);
  --t-h1: clamp(34px, 4.5vw, 64px);
  --t-h2: clamp(28px, 3.2vw, 48px);
  --t-h3: clamp(20px, 2.2vw, 30px);
  --t-h4: clamp(16px, 1.4vw, 20px);
  --t-body: clamp(15px, 1vw, 17px);
  --t-small: 14px;
  --t-label: 12px;
  --t-micro: 11px;

  /* --- Layout --- */
  --pad-x: clamp(20px, 6vw, 100px);
  --max-w: 1200px;
  --nav-h: 72px;

  /* --- Radius Yanaweb (DA arrondie generreuse) --- */
  --r-none: 0px;
  --r-xs: 4px; /* reserve : micro-details */
  --r-sm: 10px; /* petits elements */
  --r: 16px; /* elements standards */
  --r-lg: 24px; /* cartes, encarts, panneaux */
  --r-xl: 32px; /* hero visuels, grandes sections */
  --r-pill: 999px; /* boutons, chips, nav, badges, inputs */

  /* --- Transitions 300ms (facon yalp) --- */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --dur: 0.3s;

  /* --- Z-index --- */
  --z-nav: 100;
  --z-modal: 200;
  --z-toast: 300;
}

/* ================================================================
   2. RESET DOUX
   ================================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto; /* Lenis gere le smooth vertical ; 'smooth' ici se battait avec Lenis et figeait le scroll */
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

/* ── Lenis (smooth scroll JS) : neutraliser les conflits qui bloquent le scroll ── */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
/* Les iframes (carrousel video du hero) ne doivent pas capter la molette */
.lenis.lenis-smooth iframe {
  pointer-events: none;
}
/* Le fond video du hero est decoratif : la molette/le clic passent a travers (le contenu .hero-copy reste cliquable) */
.hero-visual,
.hero-visual * {
  pointer-events: none;
}

body {
  font-family: var(--ff-body);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ================================================================
   3. CONTENEUR
   ================================================================ */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.container--narrow {
  /* Meme boite que .container : le bord gauche s'aligne sur les autres sections.
     La largeur de lecture est limitee sur le contenu (aligne a gauche, pas centre). */
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.container--narrow > * {
  max-width: 780px;
}

/* ================================================================
   4. TYPOGRAPHIE EDITORIALE
   ================================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ff-title);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: var(--t-h1);
}
h2 {
  font-size: var(--t-h2);
}
h3 {
  font-size: var(--t-h3);
  font-weight: 700;
}
h4 {
  font-size: var(--t-h4);
  font-weight: 700;
}

/* Eyebrow : label uppercase avant un titre, accent terra */
.eyebrow {
  font-family: var(--ff-body);
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--terra);
  flex-shrink: 0;
}

p {
  margin-bottom: 1em;
}
p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: var(--t-h4);
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.65;
}

strong {
  font-weight: 700;
  color: var(--ink);
}

/* ================================================================
   5. SECTIONS · RYTHME VERTICAL (facon yalp 72-96px)
   ================================================================ */

.section {
  padding-block: clamp(72px, 10vw, 120px);
}

.section--sm {
  padding-block: clamp(48px, 6vw, 80px);
}

.section--lg {
  padding-block: clamp(96px, 12vw, 160px);
}

/* Fond alternatif creme soutenu */
.section--alt {
  background: var(--bg-alt);
}

/* Fond sombre : footer, manifeste, CTA final */
.section--dark {
  background: var(--bg-dark);
  color: var(--ink-inv);
  position: relative;
}
.section--dark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      var(--bg-dark) 0%,
      rgba(0, 0, 0, 0) 40%,
      rgba(0, 0, 0, 0) 60%,
      var(--bg-dark) 100%
    ),
    url("/assets/logo/picto-white.svg");
  background-size: 200%;
  background-position: 100% center;
  background-repeat: no-repeat;
  opacity: 0.06;
}
.section--dark > * {
  position: relative;
  z-index: 1;
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--ink-inv);
}

.section--dark .eyebrow {
  color: var(--terra-l);
}

.section--dark .eyebrow::before {
  background: var(--terra-l);
}

/* En-tete de section */
.sec-header {
  margin-bottom: clamp(48px, 6vw, 72px);
}

.sec-header--center {
  text-align: center;
}

.sec-header--center .eyebrow {
  justify-content: center;
}

.sec-header--center .eyebrow::before {
  display: none;
}

/* ================================================================
   6. NAV · fond creme par defaut + variante nav-over-hero (toutes pages)
   .nav-over-hero : nav fixed transparent sur hero sombre -> creme au scroll.
   Mecanique identique home et pages contenu.
   ================================================================ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  /* Par defaut : fond blanc casse solide (etat scrolle ou sans hero) */
  background: oklch(0.95 0.003 60 / 0.96);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

/* ── nav-over-hero : fixed, transparent, flotte sur le hero sombre ── */
.site-nav.nav-over-hero {
  position: fixed;
  width: 100%;
}

/* Etat initial : transparent, sans fond ni bordure */
.site-nav.nav-over-hero:not(.scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}

/* Liens clairs sur le hero sombre */
.site-nav.nav-over-hero:not(.scrolled) .nav-list a {
  color: oklch(0.88 0.008 70);
}

.site-nav.nav-over-hero:not(.scrolled) .nav-list a:hover,
.site-nav.nav-over-hero:not(.scrolled) .nav-list a[aria-current="page"] {
  color: oklch(0.99 0.004 70);
}

/* Burger clair sur le hero sombre */
.site-nav.nav-over-hero:not(.scrolled) .nav-burger span {
  background: oklch(0.92 0.005 70);
}

/* Swap logos : inv visible au depart, def cache */
.site-nav.nav-over-hero .nav-logo__def {
  display: none;
}
.site-nav.nav-over-hero .nav-logo__inv {
  display: block;
}

/* Etat scrolle : fond blanc casse solide */
.site-nav.nav-over-hero.scrolled {
  background: oklch(0.95 0.003 60 / 0.97);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-xs);
}

/* Swap logos apres scroll */
.site-nav.nav-over-hero.scrolled .nav-logo__inv {
  display: none;
}
.site-nav.nav-over-hero.scrolled .nav-logo__def {
  display: block;
}

/* Liens sombres quand scrolle */
.site-nav.nav-over-hero.scrolled .nav-list a {
  color: var(--ink-2);
}
.site-nav.nav-over-hero.scrolled .nav-list a:hover,
.site-nav.nav-over-hero.scrolled .nav-list a[aria-current="page"] {
  color: var(--ink);
}

/* Burger sombre quand scrolle */
.site-nav.nav-over-hero.scrolled .nav-burger span {
  background: var(--ink-2);
}

/* ── page-hero des pages contenu : remonte sous le nav fixed ── */
/* Identique au #hero de la home : margin-top negatif + padding compense */
.page-hero {
  margin-top: calc(-1 * var(--nav-h));
  padding-top: calc(clamp(72px, 10vw, 110px) + var(--nav-h));
  /* padding-bottom : le texte du hero ne doit pas coller le bas de la bande sombre (etait absent -> texte colle) */
  padding-bottom: clamp(56px, 7vw, 96px);
  /* Le contenu est dans un .container interne qui gere deja --pad-x.
     On annule le padding-inline inline du <header><meta charset="utf-8"> -> plus de double padding,
     le hero s'aligne sur le bord gauche des sections en dessous. */
  padding-inline: 0 !important;
}

.site-nav .container {
  display: flex;
  align-items: center;
  gap: 24px;
  /* Aligne le nav sur les bords du hero (meme marge laterale que #hero) */
  max-width: none;
  padding-inline: clamp(16px, 2.5vw, 32px);
}

/* Logo image */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo img {
  height: 30px; /* ratio 7.44:1 : ~224px de large a 30px de haut */
  width: auto;
  display: block;
  transition: opacity var(--dur) var(--ease);
}

@media (max-width: 600px) {
  .nav-logo img {
    height: 24px; /* mobile : ~179px de large, tient dans le nav burger */
  }
}

/* Liens nav : sombres par defaut */
.nav-list {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.5vw, 36px);
  list-style: none;
}

.nav-list a {
  font-family: var(--ff-body);
  font-size: var(--t-small);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--terra);
  transition: width var(--dur) var(--ease);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--ink);
}

.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after {
  width: 100%;
}

/* CTA nav terra */
.nav-cta {
  font-family: var(--ff-body);
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg) !important;
  background: var(--terra);
  padding: 11px 26px;
  border-radius: var(--r-pill);
  flex-shrink: 0;
  text-decoration: none;
  transition:
    background var(--dur) var(--ease),
    transform var(--dur) var(--ease);
  white-space: nowrap;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--terra-d);
  transform: translateY(-1px);
}

/* Burger mobile : sombre par defaut */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink-2);
  transition:
    all 0.25s var(--ease),
    background var(--dur) var(--ease);
}

.nav-burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}
.nav-burger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

@media (max-width: 768px) {
  .nav-list {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    /* Dropdown mobile : blanc casse solide dans tous les cas */
    background: oklch(0.95 0.003 60 / 0.98);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid var(--line);
    padding: 20px var(--pad-x) 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    box-shadow: var(--shadow-md);
    border-radius: 0 0 var(--r-lg) var(--r-lg);
  }
  .nav-list.open {
    display: flex;
  }
  /* Liens du menu mobile : sombres */
  .nav-list a {
    font-size: 16px;
    padding: 10px 0;
    width: 100%;
    color: var(--ink-2);
  }
  .nav-list a:hover,
  .nav-list a[aria-current="page"] {
    color: var(--ink);
  }
  .nav-list a::after {
    bottom: 0;
  }
  .nav-cta {
    margin-left: auto;
    margin-right: 4px;
    padding: 8px 15px;
    font-size: 11px;
  }
  .nav-burger {
    display: flex;
  }
}

/* Menu mobile ouvert : le nav passe en SOLIDE sombre (sinon le nav transparent laisse voir le menu derriere = superposition du header) */
.site-nav:has(.nav-burger.open) {
  background: oklch(0.13 0.01 250 / 0.98) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border-bottom-color: transparent !important;
}
.site-nav:has(.nav-burger.open) .nav-logo__def {
  display: none !important;
}
.site-nav:has(.nav-burger.open) .nav-logo__inv {
  display: block !important;
}
.site-nav:has(.nav-burger.open) .nav-list a {
  color: oklch(0.92 0.005 70) !important;
}
.site-nav:has(.nav-burger.open) .nav-burger span {
  background: oklch(0.92 0.005 70) !important;
}

/* ── OVERLAY MENU MOBILE ──────────────────────────────────────────── */
#mobileMenu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) - 1);
  background: oklch(0.13 0.01 250 / 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow-y: auto;
  padding: var(--nav-h) 0 48px;
}

#mobileMenu.open {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: menuFadeIn 0.22s var(--ease) both;
}

@keyframes menuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu__inner {
  width: 100%;
  max-width: 420px;
  padding: clamp(32px, 8vw, 64px) clamp(24px, 6vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.mobile-menu__links a {
  font-family: var(--ff-title);
  font-size: clamp(28px, 8vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: oklch(0.88 0.008 70);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid oklch(1 0 0 / 0.08);
  display: block;
  transition:
    color 0.2s var(--ease),
    padding-left 0.2s var(--ease);
}

.mobile-menu__links a:last-child {
  border-bottom: none;
}

.mobile-menu__links a:hover,
.mobile-menu__links a:focus {
  color: var(--terra-l);
  padding-left: 8px;
  outline: none;
}

.mobile-menu__cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--ff-body);
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(0.13 0.01 250);
  background: var(--terra-l);
  padding: 14px 32px;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition:
    background 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.mobile-menu__cta:hover {
  background: var(--terra);
  color: #fff;
  transform: translateY(-1px);
}

@media (min-width: 769px) {
  #mobileMenu {
    display: none !important;
  }
}

/* ================================================================
   7. BOUTONS · terra primaire, teal secondaire
   ================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff-body);
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--r-pill);
  padding: 14px 32px;
  min-height: 48px;
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}

/* Primaire : fond carmin (terra / couleur marque) ; texte --bg (blanc casse) : contraste WCAG AA */
.btn--primary {
  background: var(--terra);
  color: var(--bg);
  box-shadow: 0 2px 16px oklch(0.35 0.16 10 / 0.3);
}

.btn--primary:hover {
  background: var(--terra-d);
  box-shadow: 0 4px 24px oklch(0.35 0.16 10 / 0.38);
}

/* Secondaire : contour encre */
.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-m);
}

.btn--outline:hover {
  border-color: var(--ink);
  background: oklch(0.18 0.012 250 / 0.04);
}

/* Ghost : contour terra */
.btn--ghost {
  background: transparent;
  color: var(--terra);
  border: 1.5px solid var(--terra-border);
}

.btn--ghost:hover {
  background: var(--terra-bg);
  border-color: var(--terra);
}

/* Variante outline sur fond sombre (FAQ cta-block, cta-final) */
.btn--outline-inv {
  border-color: oklch(0.35 0.01 250);
  color: var(--ink-inv);
}

.btn--outline-inv:hover {
  border-color: oklch(0.55 0.01 250);
  background: oklch(1 0 0 / 0.06);
  color: var(--ink-inv);
}

/* Lien texte fleche */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-body);
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--terra);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: gap var(--dur) var(--ease);
}

.link-arrow:hover {
  gap: 10px;
}

/* ================================================================
   8. CARTES COVER (composant identity.css etend ce systeme)
   Poster-card : vignette 16/9 avec corps sous l'image
   ================================================================ */

.poster-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
  box-shadow: var(--shadow-card);
}

.poster-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--line-m);
  transform: translateY(-2px);
}

.poster-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: opacity var(--dur) var(--ease);
}

.poster-card:hover .poster-card__img {
  opacity: 0.92;
}

.poster-card__placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  color: var(--ink-4);
}

.poster-card__placeholder svg {
  width: 32px;
  height: 32px;
  opacity: 0.4;
}

.poster-card__body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.poster-card__cat {
  font-family: var(--ff-body);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
}

.poster-card__title {
  font-family: var(--ff-title);
  font-size: var(--t-small);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poster-card__meta {
  font-size: var(--t-micro);
  color: var(--ink-3);
  margin-top: 4px;
}

/* ================================================================
   9. EMBED VIDEO RESPONSIVE
   ================================================================ */

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--bg-alt);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ================================================================
   10. GRILLES PORTFOLIO
   ================================================================ */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   11. STATS / CHIFFRES CLES · grille diviseur
   ================================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.stat-item {
  background: var(--bg);
  padding: clamp(28px, 3.5vw, 48px) 24px;
  text-align: center;
}

.section--alt .stat-item {
  background: var(--bg-alt);
}

.stat-num {
  font-family: var(--ff-title);
  font-size: clamp(38px, 4.5vw, 60px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 8px;
}

.stat-num .stat-num__accent {
  color: var(--terra);
}

.stat-label {
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ================================================================
   12. LOGOS CLIENTS · strip + carrousel infini
   ================================================================ */

/* Strip grille classique */
/* Bandeau deroulant des logos (plein largeur, fondu sur les bords) */
.logos-strip {
  overflow: hidden;
  border-top: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
}

.logos-strip__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: logosStripScroll 80s linear infinite;
}

.logos-strip:hover .logos-strip__track {
  animation-play-state: paused;
}

/* Moins de 8 logos : bande fixe centree (une boucle animee defile a vide).
   Le defilement reprend automatiquement a partir de 8 logos. */
.logos-strip--static {
  -webkit-mask-image: none;
  mask-image: none;
}

.logos-strip--static .logos-strip__track {
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  animation: none;
}

.logo-slot {
  flex: 0 0 auto;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px clamp(18px, 2.5vw, 36px);
  background: var(--bg-alt);
}

.logo-slot img {
  /* hauteur FIXE : reserve l'espace meme avant chargement -> le lazy-load se declenche.
     (sans attribut width/height, height:auto restait a 0 et l'image ne chargeait jamais) */
  height: 100px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.45;
  filter: grayscale(1);
  mix-blend-mode: multiply;
  transition:
    opacity var(--dur) var(--ease),
    filter var(--dur) var(--ease);
}

.logo-slot:hover img {
  opacity: 0.85;
  filter: grayscale(0.1);
}

.logo-slot-text {
  font-family: var(--ff-title);
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  white-space: nowrap;
}

@keyframes logosStripScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logos-strip__track {
    animation: none;
  }
}

/* ================================================================
   13. FORMULAIRES
   ================================================================ */

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.field input,
.field textarea,
.field select {
  background: #fff;
  border: 1.5px solid var(--line-m);
  border-radius: var(--r-pill);
  padding: 13px 20px;
  font-size: var(--t-small);
  color: var(--ink);
  outline: none;
  resize: vertical;
  width: 100%;
  min-height: 48px;
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--terra);
  box-shadow: 0 0 0 3px oklch(0.52 0.22 30 / 0.12);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
  border-radius: var(--r-lg);
}

.field--error input,
.field--error textarea {
  border-color: oklch(0.5 0.22 25);
}

.field-hint {
  font-size: var(--t-micro);
  color: var(--ink-3);
}

/* ================================================================
   14. FOOTER SOMBRE · 3 colonnes + barre legale
   ================================================================ */

.site-footer {
  background: var(--bg-dark);

  color: var(--ink-inv-2);

  position: relative;
}

/* Grille principale : marque / nav / contact */
.site-footer__grid {
  padding-block: clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

/* --- Colonne marque --- */
.site-footer__logo {
  margin-bottom: 20px;
}

.site-footer__logo img {
  height: 38px;
  width: auto;
  opacity: 0.85;
  filter: brightness(0) invert(1);
}

.site-footer__pitch {
  font-size: var(--t-small);
  font-weight: 300;
  color: var(--ink-inv-2);
  line-height: 1.75;
  max-width: 320px;
  margin-bottom: 16px;
}

.site-footer__signature {
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra-l);
}

/* --- Titres de colonne --- */
.site-footer__col-title {
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(0.48 0.008 250);
  margin-bottom: 20px;
}

/* --- Colonne navigation --- */
.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__nav a {
  font-size: var(--t-small);
  font-weight: 400;
  color: var(--ink-inv-2);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
  width: fit-content;
}

.site-footer__nav a:hover {
  color: var(--terra-l);
}

/* --- Colonne contact --- */
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__contact-line {
  font-size: var(--t-small);
  font-weight: 400;
  color: var(--ink-inv-2);
  line-height: 1.5;
}

.site-footer__contact-line a {
  color: var(--ink-inv-2);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.site-footer__contact-line a:hover {
  color: var(--terra-l);
}

.site-footer__socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-inv-2);
  text-decoration: none;
  border: 1px solid oklch(0.3 0.01 250);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  transition:
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.site-footer__social-link:hover {
  color: var(--terra-l);
  border-color: var(--terra-l);
}

/* Liens reseaux sur fond clair (page Contact) - meme densite que le footer */
.contact-socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-socials__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  transition:
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.contact-socials__link:hover {
  color: var(--terra);
  border-color: var(--terra);
}

/* --- Bloc CTA interne --- */
.site-footer__cta {
  border-top: 1px solid var(--line-dark);
  padding-block: clamp(28px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer__cta-label {
  font-family: var(--ff-title);
  font-size: var(--t-h4);
  font-weight: 700;
  color: var(--ink-inv);
  letter-spacing: -0.01em;
}

/* --- Barre legale --- */
.site-footer__bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer__copy {
  font-size: var(--t-micro);
  color: oklch(0.4 0.006 240);
  line-height: 1.6;
}

/* Credit du studio dans la barre legale */
.site-footer__copy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--dur) var(--ease);
}

.site-footer__copy a:hover {
  color: var(--ink-inv-2);
}

.site-footer__legal-links {
  display: flex;
  gap: 16px;
}

.site-footer__legal-links a {
  font-size: var(--t-micro);
  color: oklch(0.4 0.006 240);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.site-footer__legal-links a:hover {
  color: var(--ink-inv-2);
}

/* Responsive */
@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .site-footer__cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .site-footer__legal-links {
    gap: 12px;
  }
}

/* ================================================================
   15. UTILITAIRES
   ================================================================ */

.text-muted {
  color: var(--ink-3);
}

/* Badge accent */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--terra-bg);
  color: var(--terra-d);
  border: 1px solid var(--terra-border);
}

/* Barre decorative terra */
.accent-bar {
  display: block;
  width: 32px;
  height: 3px;
  background: var(--terra);
  margin-bottom: 20px;
}

/* Overrides mobiles generiques */
@media (max-width: 680px) {
  #main-content article:is(.cv-s3,.cv-s8,.cv-s26,.cv-s39) {
    grid-template-columns: 1fr !important;
  }
}

/* ================================================================
   16. PAGE-HEAD · en-tete uniforme des pages internes (fond clair)
   Structure HTML :
     <header class="page-head [page-head--grid]" role="banner">
       <span class="page-head__watermark" aria-hidden="true"></span>
       <div class="container">
         <p class="eyebrow page-head__eyebrow">Label</p>
         <h1 class="page-head__title">Titre <span class="accent-word">accent</span></h1>
         <p class="page-head__sub">Sous-titre optionnel</p>
         <div class="page-head__stat">43 <span>Productions</span></div>  <!-- page-head--grid -->
       </div>
     </header>
   ================================================================ */

.page-head {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 5vw, 64px);
  padding-inline: 0 !important;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Eyebrow : terra + trait */
.page-head .page-head__eyebrow {
  color: var(--terra);
}
.page-head .page-head__eyebrow::before {
  background: var(--terra);
}

/* Titre principal */
.page-head__title {
  font-family: var(--ff-title);
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 16px;
}

.page-head__title .accent-word {
  color: var(--terra);
  display: block;
}

/* Sous-titre / chapeau */
.page-head__sub {
  font-family: var(--ff-body);
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-3);
  max-width: 680px;
}

/* Caption legale (mentions legales, politique) */
.page-head__caption {
  font-size: var(--t-small);
  color: var(--ink-3);
  margin-top: 10px;
  line-height: 1.5;
}

/* Modificateur grille (portfolio : titre + compteur) */
.page-head--grid > .container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
}

.page-head__stat {
  font-family: var(--ff-title);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  text-align: right;
}

.page-head__stat span {
  display: block;
  font-family: var(--ff-body);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
}

/* ---- Filigrane picto ------------------------------------------- */
.page-head__watermark {
  position: absolute;
  display: block;
  pointer-events: none;
  user-select: none;
  width: 100%;
  height: 100%;
  top: 0;
  background-image: url("/assets/logo/picto-black.svg");
  background-repeat: no-repeat;
  background-size: clamp(1000px, 2000vw, 3000px);
  background-position: center;
  opacity: 0.06;
  z-index: 0;
}

/* Le contenu passe au-dessus du filigrane */
.page-head > .container {
  position: relative;
  z-index: 1;
}

/* ---- Responsive : mobile ---------------------------------------- */
@media (max-width: 768px) {
  .page-head {
    min-height: 400px;
  }
  .page-head__title {
    font-size: clamp(36px, 10vw, 60px);
  }
}

@media (max-width: 640px) {
  .page-head--grid > .container {
    grid-template-columns: 1fr;
  }
  .page-head__stat {
    text-align: left;
  }
}

/* Ligne legale du pied de page (SIRET + declaration d'activite), au-dessus du copyright */
.site-footer__legal-line {
  display: block;
  margin-bottom: 4px;
}

/* Barre legale : le texte legal (long) prend la largeur, les liens passent dessous si besoin */
.site-footer__copy { flex: 1 1 560px; max-width: 980px; }
.site-footer__legal-line { color: oklch(0.62 0.006 240); }


/* ---- /assets/identity.css ---- */
/*
 * alpha & omédia · identity.css
 * Composants identite : covers projets + patterns de fond
 * Charge APRES site.css (les var() --bg, --ink, --carmin, --orange, --line sont definies la-bas).
 * Stack : PHP + CDN + CSS vanilla. Zero build, zero framework.
 * Polices : Hanken Grotesk (titres 600/700/800) + Inter (corps) - Google Fonts CDN
 *   Ajouter dans <head> AVANT identity.css :
 *   <link href="https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@600;700;800;900&family=Inter:wght@300;400;500&display=swap" rel="stylesheet">
 * ---------------------------------------------------------------
 * SECTIONS :
 *   1. Variables identite locales
 *   2. Composant .cover (vignette projet 16:9)
 * ---------------------------------------------------------------
 */

/* ================================================================
   1. VARIABLES IDENTITE LOCALES
   Consomment les tokens Yanaweb definis dans site.css (:root).
   Ne pas redefinir --bg, --ink, --terra, --teal ici.
   ================================================================ */
:root {
  /* Polices identite alpha & omédia */
  --ff-title-id: "Hanken Grotesk", "Arial Black", sans-serif;
  --ff-body-id: "Inter", "Arial", sans-serif;

  /* Cover : degrade bas-vers-haut sur l'image */
  --cover-grad-base: linear-gradient(
    to top,
    oklch(0.06 0.01 240 / 0.92) 0%,
    oklch(0.06 0.01 240 / 0.55) 40%,
    oklch(0.06 0.01 240 / 0.1) 75%,
    transparent 100%
  );
  --cover-grad-hover: linear-gradient(
    to top,
    oklch(0.06 0.01 240 / 0.97) 0%,
    oklch(0.06 0.01 240 / 0.72) 50%,
    oklch(0.06 0.01 240 / 0.2) 80%,
    transparent 100%
  );

  /* Cover : ombre externe douce */
  --cover-shadow:
    0 4px 20px oklch(0.1 0.012 240 / 0.18), 0 1px 4px oklch(0.1 0.012 240 / 0.1);
  --cover-shadow-hover:
    0 10px 40px oklch(0.1 0.012 240 / 0.28),
    0 2px 8px oklch(0.1 0.012 240 / 0.14);

  /* Cover : rayon de bordure (Yanaweb arrondi genereux) */
  --cover-radius: var(--r-lg); /* 24px */

  /* Transitions */
  --cover-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --cover-dur: 0.35s;
}

/* ================================================================
   2. COMPOSANT .cover : VIGNETTE PROJET 16:9
   ================================================================

   STRUCTURE HTML :
   ----------------
   <article class="cover" data-cat="documentaire">
     <a href="/portfolio/mon-projet/" class="cover__link">
       <div class="cover__img-wrap">
         <img
           class="cover__img"
           src="/uploads/projets/mon-projet.jpg"
           alt="Titre du projet"
           width="800" height="450"
           loading="lazy"
         >
         <div class="cover__overlay"></div>
       </div>
       <div class="cover__body">
         <span class="cover__chip">Documentaire</span>
         <h3 class="cover__title">Titre du projet</h3>
         <p class="cover__sub">Sous-titre ou annee · Diffuseur</p>
       </div>
     </a>
   </article>

   CHIP COULEURS :
   - [data-cat="documentaire"] -> --carmin (via alias --teal)
   - [data-cat="fiction"]      -> --carmin (via alias --terra)
   - [data-cat="institutionnel"] -> couleur neutre (--ink-2 approx)
   - [data-cat="spot"]         -> --carmin-l / --orange (via alias --terra-l)

   ================================================================ */

/* Conteneur article */
.cover {
  position: relative;
  display: block;
  border-radius: var(--cover-radius);
  overflow: hidden;
  background: oklch(0.1 0.01 240); /* fond fallback si image absente */
  box-shadow: var(--cover-shadow);
  transition:
    box-shadow var(--cover-dur) var(--cover-ease),
    transform var(--cover-dur) var(--cover-ease);
  /* Pas de will-change par defaut : evite les layer GPU inutiles */
}

.cover:hover {
  transform: scale(1.03);
  box-shadow: var(--cover-shadow-hover);
}

/* Lien wrappeur : couvre toute la carte */
.cover__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Wrapper image : force le ratio 16:9 */
.cover__img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* Image : couvre, ne deforme pas */
.cover__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%; /* cadrage cinema : sujet en haut, pas centré */
  transition: transform var(--cover-dur) var(--cover-ease);
}

.cover:hover .cover__img {
  transform: scale(1.04); /* legere respiration image sous le scale global */
}

/* Degrade lisibilite texte, bas-vers-haut */
.cover__overlay {
  position: absolute;
  inset: 0;
  background: var(--cover-grad-base);
  transition: background var(--cover-dur) var(--cover-ease);
  pointer-events: none;
}

.cover:hover .cover__overlay {
  background: var(--cover-grad-hover);
}

/* Bloc texte : bas-gauche, par-dessus le degrade */
.cover__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 18px 20px 16px;
  pointer-events: none;
}

/* CHIP categorie : haut-gauche */
.cover__chip {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-family: var(--ff-title-id);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #fff;
  background: var(--terra); /* defaut : terra */
  pointer-events: none;
  line-height: 1.6;
}

/* Chip par categorie */
.cover[data-cat="documentaire"] .cover__chip {
  background: var(--terra);
}
.cover[data-cat="fiction"] .cover__chip {
  background: var(--terra);
}
.cover[data-cat="institutionnel"] .cover__chip {
  background: oklch(0.3 0.01 240 / 0.8);
  backdrop-filter: blur(4px);
}
.cover[data-cat="spot"] .cover__chip {
  background: var(--terra);
}

/* TITRE projet : bas-gauche, blanc, Hanken Grotesk 800 */
.cover__title {
  margin: 0 0 4px;
  font-family: var(--ff-title-id);
  font-weight: 800;
  font-size: clamp(15px, 2vw, 20px);
  line-height: 1.2;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px oklch(0 0 0 / 0.35);
}

/* Sous-titre : annee, diffuseur */
.cover__sub {
  margin: 0;
  font-family: var(--ff-body-id);
  font-weight: 400;
  font-size: 12px;
  color: oklch(1 0 0 / 0.65);
  letter-spacing: 0.03em;
}


/* ---- utilitaires : anciens styles en ligne ---- */
.cv-s1 { padding-top: clamp(24px,3vw,40px) !important; }
.cv-s2 { max-width:520px !important; margin-top:14px !important; }
.cv-s3 { grid-template-columns: 1fr !important; }
.cv-s4 { justify-content:center !important; }
.cv-s5 { color:var(--line-dark) !important; }
.cv-s6 { font-style:normal !important; }
.cv-s7 { display:block !important; margin-top:6px !important; color:oklch(0.38 0.006 240) !important; }
.cv-s8 { display:grid !important; grid-template-columns: 1fr 1.8fr !important; gap: clamp(40px,6vw,96px) !important; align-items:start !important; }
.cv-s9 { font-size:var(--t-h3) !important; }
.cv-s10 { font-style:normal !important; display:flex !important; flex-direction:column !important; gap:20px !important; }
.cv-s11 { margin-bottom:6px !important; }
.cv-s12 { font-size: var(--t-body) !important; color: var(--ink-2) !important; line-height:1.65 !important; }
.cv-s13 { font-size: var(--t-body) !important; color: var(--ink-2) !important; display:flex !important; flex-direction:column !important; gap:6px !important; }
.cv-s14 { color:inherit !important; text-decoration:none !important; transition: color .2s !important; }
.cv-s15 { font-size:13px !important; color:var(--ink-3) !important; }
.cv-s16 { font-size: var(--t-body) !important; color: var(--ink-2) !important; }
.cv-s17 { font-size: var(--t-small) !important; color: var(--ink-3) !important; }
.cv-s18 { font-size: 12px !important; color: var(--ink-4) !important; margin-top:4px !important; }
.cv-s19 { margin-bottom:8px !important; }
.cv-s20 { color:var(--accent) !important; }
.cv-s21 { font-size: var(--t-micro) !important; color: var(--ink-3) !important; line-height:1.6 !important; }
.cv-s22 { padding-block: clamp(20px,2.5vw,32px) !important; border-bottom: 1px solid var(--line) !important; }
.cv-s23 { display:flex !important; align-items:center !important; gap:clamp(12px,2vw,24px) !important; flex-wrap:wrap !important; }
.cv-s24 { font-size:11px !important; font-weight:600 !important; letter-spacing:.16em !important; text-transform:uppercase !important; color:var(--ink-3) !important; white-space:nowrap !important; }
.cv-s25 { display:flex !important; flex-direction:column !important; gap: clamp(32px,4vw,56px) !important; }
.cv-s26 { display:grid !important; grid-template-columns:280px 1fr !important; gap: clamp(20px,3vw,48px) !important; align-items:start !important; border-top: 1px solid var(--line) !important; padding-top: clamp(28px,3vw,44px) !important; }
.cv-s27 { font-family:var(--ff-title) !important; font-size:var(--t-h3) !important; color:var(--ink) !important; line-height:1.1 !important; letter-spacing:-0.02em !important; }
.cv-s28 { font-size: var(--t-body) !important; color: var(--ink-2) !important; line-height:1.85 !important; }
.cv-s29 { margin-bottom:.9em !important; }
.cv-s30 { display:none !important; }
.cv-s31 { text-align:center !important; margin-top:clamp(32px,4vw,48px) !important; }
.cv-s32 { text-align:center !important; }
.cv-s33 { color:var(--ink-inv) !important; margin-bottom:24px !important; }
.cv-s34 { color:var(--ink-inv-2) !important; margin-bottom:36px !important; max-width:520px !important; margin-inline:auto !important; }
.cv-s35 { font-family:var(--ff-title) !important; font-size:var(--t-h3) !important; font-weight:700 !important; color:var(--ink) !important; letter-spacing:-0.02em !important; margin-top: clamp(32px,4vw,48px) !important; margin-bottom:12px !important; padding-bottom:10px !important; border-bottom:1px solid var(--line) !important; }
.cv-s36 { font-size:var(--t-body) !important; color:var(--ink-2) !important; line-height:1.85 !important; margin-bottom:1em !important; }
.cv-s37 { margin-top: clamp(48px,6vw,72px) !important; padding-top: 24px !important; border-top: 1px solid var(--line) !important; }
.cv-s38 { display:flex !important; flex-direction:column !important; gap: clamp(40px,5vw,64px) !important; }
.cv-s39 { display:grid !important; grid-template-columns:1fr 2fr !important; gap: clamp(24px,4vw,56px) !important; align-items:start !important; border-top: 1px solid var(--line) !important; padding-top: clamp(32px,4vw,48px) !important; }
.cv-s40 { font-family: var(--ff-title) !important; font-size: var(--t-h3) !important; color: var(--ink) !important; line-height:1.1 !important; letter-spacing:-0.02em !important; }
.cv-s41 { font-size: var(--t-body) !important; color: var(--ink-2) !important; line-height:1.8 !important; }
.cv-s42 { margin-bottom:1em !important; }
.cv-s43 { margin-top:16px !important; color:var(--ink-2) !important; }
.cv-s44 { display:flex !important; justify-content:center !important; flex-wrap:wrap !important; gap:32px !important; margin-top:clamp(32px,4vw,48px) !important; }
.cv-s45 { font-family:var(--ff-title) !important; font-size:var(--t-h3) !important; font-weight:700 !important; color:var(--ink) !important; letter-spacing:-0.02em !important; margin-top: clamp(36px,4vw,52px) !important; margin-bottom:14px !important; padding-bottom:10px !important; border-bottom:1px solid var(--line) !important; }
.cv-s46 { font-size: var(--t-small) !important; color: var(--ink-3) !important; line-height:1.7 !important; }

/* pot de miel du noyau (lead_form_fields) : hors écran */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- portfolio ---- */

    /* ============================================================
       PORTFOLIO INDEX : composants specifiques
       Tokens via var() depuis site.css. Zero redefinition :root.
       ============================================================ */

    /* BARRE FILTRES */
    .filters-bar {
      background: var(--bg);
      border-bottom: 1px solid var(--line);
      position: sticky;
      top: var(--nav-h);
      z-index: 50;
      overflow-x: auto;
      scrollbar-width: none;
    }
    .filters-bar::-webkit-scrollbar { display: none; }
    .filters-inner {
      max-width: var(--max-w);
      margin: 0 auto;
      padding-inline: var(--pad-x);
      display: flex;
      gap: 0;
    }
    .filter-btn {
      font-family: var(--ff-body);
      font-size: var(--t-label);
      font-weight: 600;
      letter-spacing: 0.10em;
      text-transform: uppercase;
      color: var(--ink-3);
      background: none;
      border: none;
      border-bottom: 2px solid transparent;
      padding: 16px 20px;
      margin-bottom: -1px;
      cursor: pointer;
      white-space: nowrap;
      min-height: 48px;
      transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
      display: flex;
      align-items: center;
      gap: 7px;
    }
    .filter-btn:hover { color: var(--ink); }
    .filter-btn.is-active {
      color: var(--ink);
      border-bottom-color: var(--terra);
    }
    .filter-count-badge {
      font-size: 10px;
      font-weight: 400;
      color: var(--ink-4);
      background: var(--bg-alt);
      border: 1px solid var(--line);
      border-radius: 20px;
      padding: 1px 7px;
      line-height: 1.6;
    }
    .filter-btn.is-active .filter-count-badge {
      background: var(--terra-bg);
      border-color: var(--terra-border);
      color: var(--terra-d);
    }

    /* SECTION CATEGORIE */
    .cat-section {
      padding: clamp(48px, 6vw, 72px) var(--pad-x);
      border-bottom: 1px solid var(--line);
    }
    .cat-section:last-of-type { border-bottom: none; }
    .cat-section.is-hidden { display: none; }

    .cat-section__header {
      max-width: var(--max-w);
      margin: 0 auto 28px;
      display: flex;
      align-items: center;
      gap: 14px;
    }
    .cat-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      flex-shrink: 0;
    }
    .cat-section__name {
      font-family: var(--ff-title);
      font-size: var(--t-h4);
      font-weight: 700;
      letter-spacing: -0.01em;
      color: var(--ink);
    }
    .cat-section__total {
      font-size: var(--t-micro);
      color: var(--ink-4);
      font-weight: 400;
      margin-left: 2px;
    }
    .cat-section__line {
      flex: 1;
      height: 1px;
      background: var(--line);
    }

    /* GRILLE CARTES : 4 col desktop, responsive */
    .cat-grid {
      max-width: var(--max-w);
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: clamp(12px, 1.5vw, 20px);
    }
    @media (max-width: 1100px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
    @media (max-width: 760px)  { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 480px)  { .cat-grid { grid-template-columns: 1fr; } }

    /* Reveal GSAP : etat initial avant animation */
    .gsap-reveal {
      opacity: 0;
      transform: translateY(24px);
    }

    /* CTA bottom */
    .portfolio-cta {
      background: var(--bg-dark);
      padding: clamp(56px, 7vw, 88px) var(--pad-x);
      text-align: center;
    }
    .portfolio-cta h2 {
      font-family: var(--ff-title);
      font-size: clamp(28px, 3.5vw, 48px);
      font-weight: 800;
      letter-spacing: -0.025em;
      color: var(--ink-inv);
      margin-bottom: 24px;
    }
    .portfolio-cta .eyebrow {
      color: var(--terra-l);
      justify-content: center;
    }
    .portfolio-cta .eyebrow::before { background: var(--terra-l); display: none; }
  
/* ---- fiche projet ---- */

    /* ============================================================
       FICHE PROJET : overrides sur fond clair, tokens site.css.
       Zero :root sombre. FIX bug video : .video-embed section 9.
       ============================================================ */

    /* Breadcrumb */
    .breadcrumb {
      padding: 20px var(--pad-x);
      border-bottom: 1px solid var(--line);
      background: var(--bg);
    }
    .breadcrumb-inner {
      max-width: var(--max-w);
      margin: 0 auto;
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
    .breadcrumb a {
      font-size: var(--t-label);
      font-weight: 500;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--ink-3);
      text-decoration: none;
      transition: color var(--dur) var(--ease);
    }
    .breadcrumb a:hover { color: var(--terra); }
    .breadcrumb-sep { color: var(--line-m); font-size: 12px; }
    .breadcrumb-current {
      font-size: var(--t-label);
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--terra);
    }

    /* HERO titre projet : styles complementaires (base dans site.css .page-head) */
    .page-head--projet {
      padding-bottom: 0;
    }
    .page-head--projet .page-head__sub {
      font-size: clamp(17px, 1.8vw, 20px);
      font-weight: 300;
      max-width: 560px;
    }

    /* MEDIA : embed Vimeo ou image de couverture.
       .video-embed (site.css section 9) : aspect-ratio 16/9 + iframe inset:0.
       Aucun debordement possible : fix definitif bug video zoomee. */
    .projet-media {
      background: var(--bg);
      padding: clamp(36px, 5vw, 56px) var(--pad-x);
    }
    .projet-media-inner {
      max-width: var(--max-w);
      margin: 0 auto;
    }
    /* Accent cinematique terra sur le media */
    .projet-media-inner .video-embed,
    .projet-media-inner .projet-cover {
      border-top: 3px solid var(--terra);
    }
    .projet-cover {
      width: 100%;
      aspect-ratio: 16 / 9;
      object-fit: cover;
      display: block;
      border-radius: var(--r-md);
    }

    /* CORPS : description + fiche technique */
    .projet-body {
      background: var(--bg);
      padding: clamp(56px, 7vw, 88px) var(--pad-x);
    }
    .projet-body-inner {
      max-width: var(--max-w);
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 290px;
      gap: clamp(40px, 5vw, 72px);
      align-items: start;
    }
    @media (max-width: 900px) {
      .projet-body-inner { grid-template-columns: 1fr; }
    }

    /* Description */
    .projet-desc {
      font-size: clamp(16px, 1.4vw, 18px);
      line-height: 1.8;
      color: var(--ink-2);
    }
    .projet-desc p { margin-bottom: 18px; }
    .projet-desc p:last-child { margin-bottom: 0; }
    .projet-desc strong { font-weight: 600; color: var(--ink); }

    /* Fiche technique : fond sombre = contraste editorial */
    .fiche {
      background: var(--bg-dark);
      padding: clamp(24px, 3vw, 36px);
      border-top: 3px solid var(--terra);
      border-radius: 0 0 var(--r-sm) var(--r-sm);
      position: sticky;
      top: calc(var(--nav-h) + 20px);
    }
    @media (max-width: 900px) {
      .fiche { position: static; }
    }
    .fiche-title {
      font-family: var(--ff-title);
      font-size: var(--t-h4);
      font-weight: 700;
      letter-spacing: -0.01em;
      color: var(--ink-inv);
      margin-bottom: 20px;
    }
    .fiche-row {
      display: flex;
      flex-direction: column;
      gap: 3px;
      padding: 12px 0;
      border-bottom: 1px solid var(--line-dark);
    }
    .fiche-row:last-child { border-bottom: none; padding-bottom: 0; }
    .fiche-label {
      font-size: var(--t-micro);
      font-weight: 600;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: #9a9ea4; /* RGAA 3.2 : 7:1 sur fond sombre */
    }
    .fiche-val {
      font-size: var(--t-small);
      color: var(--ink-inv);
      line-height: 1.4;
    }

    /* Galerie */
    .projet-galerie {
      background: var(--bg-alt);
      padding: 0 var(--pad-x) clamp(56px, 7vw, 88px);
      border-top: 1px solid var(--line);
    }
    .galerie-grid {
      max-width: var(--max-w);
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: var(--line);
      border: 1px solid var(--line);
    }
    .galerie-item { aspect-ratio: 16/9; overflow: hidden; }
    .galerie-item img {
      width: 100%; height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.4s var(--ease);
    }
    .galerie-item:hover img { transform: scale(1.03); }
    @media (max-width: 900px) { .galerie-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 560px) { .galerie-grid { grid-template-columns: 1fr; } }

    /* Navigation prev/next */
    .projet-nav {
      background: var(--bg-dark);
      border-top: 1px solid var(--line-dark);
    }
    .projet-nav-inner {
      max-width: var(--max-w);
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
    }
    @media (max-width: 640px) {
      .projet-nav-inner { grid-template-columns: 1fr; }
    }
    .nav-proj-link {
      padding: clamp(28px, 4vw, 44px) var(--pad-x);
      text-decoration: none;
      display: flex;
      flex-direction: column;
      gap: 7px;
      border-right: 1px solid var(--line-dark);
      transition: background var(--dur) var(--ease);
    }
    .nav-proj-link:last-child { border-right: none; text-align: right; }
    .nav-proj-link:hover { background: oklch(0.18 0.012 240); }
    @media (max-width: 640px) {
      .nav-proj-link { border-right: none; border-bottom: 1px solid var(--line-dark); }
      .nav-proj-link:last-child { border-bottom: none; text-align: left; }
    }
    .nav-dir {
      font-size: var(--t-micro);
      font-weight: 600;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: #9a9ea4; /* RGAA 3.2 */
    }
    .nav-titre {
      font-family: var(--ff-title);
      font-size: clamp(16px, 2vw, 22px);
      font-weight: 700;
      letter-spacing: -0.01em;
      color: var(--ink-inv);
      line-height: 1.1;
    }
    .nav-cat {
      font-size: var(--t-micro);
      color: var(--terra-l);
      font-weight: 500;
    }

    /* Retour portfolio */
    .retour-bar {
      background: oklch(0.10 0.010 240);
      padding: clamp(32px, 4vw, 48px) var(--pad-x);
      text-align: center;
    }

    /* Reveal GSAP : etat initial */
    .gsap-reveal {
      opacity: 0;
      transform: translateY(24px);
    }
  
/* ---- expérience ---- */

/* ================================================================
   STYLES PAGE : experience.php · prefixe exp-
   Scopes a cette page, ne modifient pas site.css. Tokens via var()
   depuis site.css (aucune redefinition :root).
================================================================ */

/* ---- 02 Equipe : masthead en grille, sans carte (distinct de .qsn-card) */
.exp-equipe__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.exp-member {
  padding: clamp(26px, 3vw, 38px) clamp(20px, 2.4vw, 30px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.exp-equipe__grid .exp-member:nth-child(4n) { border-right: none; }
@media (max-width: 900px) {
  .exp-equipe__grid { grid-template-columns: repeat(2, 1fr); }
  .exp-equipe__grid .exp-member:nth-child(4n) { border-right: 1px solid var(--line); }
  .exp-equipe__grid .exp-member:nth-child(2n) { border-right: none; }
}
@media (max-width: 560px) {
  .exp-equipe__grid { grid-template-columns: 1fr; }
  .exp-member { border-right: none !important; }
}
.exp-member .accent-bar { margin-bottom: 14px; }
.exp-member__nom {
  font-family: var(--ff-title);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  line-height: 1.2;
}
.exp-member__roles {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  line-height: 1.55;
}

/* ---- 03 References : liste editoriale façon generique de film, PAS de vignettes */
.exp-refs {
  border-top: 1px solid var(--line-m);
}
.exp-ref--more { display: none; }
.exp-refs.is-open .exp-ref--more { display: block; }

.exp-ref__link {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2vw, 28px);
  padding: clamp(15px, 1.8vw, 21px) 0;
  border-bottom: 1px solid var(--line-m);
  text-decoration: none;
  color: inherit;
}
.exp-ref__num {
  font-family: var(--ff-title);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-4);
  flex-shrink: 0;
  min-width: 24px;
}
.exp-ref__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.exp-ref__title {
  font-family: var(--ff-title);
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
  transition: color .15s;
}
.exp-ref__link:hover .exp-ref__title,
.exp-ref__link:focus-visible .exp-ref__title {
  color: var(--terra);
}
.exp-ref__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}
.exp-ref__meta-item {
  font-size: 12.5px;
  color: var(--ink-3);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.exp-ref__meta-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.exp-ref__arrow {
  flex-shrink: 0;
  align-self: center;
  color: var(--ink-4);
  transition: transform .15s, color .15s;
}
.exp-ref__link:hover .exp-ref__arrow,
.exp-ref__link:focus-visible .exp-ref__arrow {
  color: var(--terra);
  transform: translate(2px, -2px);
}

.exp-refs__more-wrap {
  margin-top: clamp(28px, 3vw, 40px);
}
.exp-refs__mention {
  margin-top: clamp(22px, 2.6vw, 30px);
  font-size: 12px;
  color: var(--ink-4);
  line-height: 1.65;
  max-width: 560px;
}

/* ---- 04 Collaborations : chips (distinct des cartes/listes ci-dessus) */
.exp-chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.exp-chip {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 9px 18px;
  border: 1px solid var(--line-m);
  border-radius: var(--r-pill);
  background: var(--bg-card);
}

/* ---- 05 Domaines : ligne typographique (différencié des chips 04) */
.exp-domaines__line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 18px;
  max-width: 900px;
}
.exp-domaines__item {
  font-family: var(--ff-title);
  font-size: clamp(20px, 2.6vw, 32px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.exp-domaines__dot {
  color: var(--terra);
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 32px);
}

/* ---- 06 CTA final : fond sombre, 2 actions ---------------------------- */
.exp-cta__inner {
  text-align: center;
}
.exp-cta__inner h2 {
  margin-bottom: 16px;
}
.exp-cta__inner .lead {
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 32px;
  color: var(--ink-inv-2);
}
.exp-cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- ajouts du passage au CMS (remplacent des style="" que la politique de sécurité bloque) ---- */
.cat-dot--pf-doc{background:var(--teal)} .cat-dot--pf-fic{background:var(--terra)} .cat-dot--pf-inst{background:var(--ink-3)} .cat-dot--pf-spot{background:var(--terra-l)} .cat-dot--pf-autre{background:var(--ink-4)}
.cover__ph{width:100%;height:100%;background:var(--bg-alt)}
.portfolio-home__all{padding-top:clamp(24px,3vw,40px)}
.btn--retour{color:var(--ink-inv);border-color:oklch(0.35 0.008 240)}
.exp-cta__eyebrow{justify-content:center}
.aeo-liens{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.aeo-blog{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:2px;margin-top:24px}
.aeo-blog__card{background:var(--bg-card);padding:clamp(18px,2.5vw,28px)} .aeo-blog__card img{width:100%;height:auto;display:block;margin-bottom:14px}
.aeo-blog__card h2{font-family:var(--ff-title);font-size:var(--t-h3);line-height:1.15;margin-bottom:8px} .aeo-blog__card a{color:var(--ink);text-decoration:none}
.aeo-blog__meta{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
.aeo-blog__image{width:100%;height:auto;display:block;margin-bottom:28px}
.aeo-blog__corps{font-size:var(--t-body);color:var(--ink-2);line-height:1.85} .aeo-blog__corps p,.aeo-blog__corps ul,.aeo-blog__corps ol{margin-bottom:1em} .aeo-blog__corps h2,.aeo-blog__corps h3{font-family:var(--ff-title);color:var(--ink);margin:1.6em 0 .6em} .aeo-blog__corps a{color:var(--ink);text-decoration:underline;text-underline-offset:2px}
.aeo-retour-site{margin-top:clamp(48px,6vw,72px);padding-top:24px;border-top:1px solid var(--line)}
.hp{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* ---- RGAA 3.2 / 3.3 : contrastes (surcharges du 05/11/2026) ---- */
:root { --ink-3: #5f6368; --ink-4: #62666b; --accent-text: #ad3f0e; }
.site-footer__col-title, .site-footer__copy, .site-footer__legal-links a { color: #9a9ea4; }
.site-footer__legal-line { color: #a3a7ac; }
.field input, .field textarea, .field select { border-color: #7e8287; }
.field [aria-invalid="true"] { border-color: #b00020; }
.form p a { color: var(--carmin) !important; text-decoration: underline; text-underline-offset: 2px; }
.contact-address small { color: #9a9ea4 !important; }
.fmt-table thead th, .fmt-facts dt, .res-card__titre, .fmt-card__eyebrow, .fmt-section-label, .fmt-meta__label { color: var(--accent-text); }
@media (max-width: 700px) { .fmt-table td::before { color: var(--accent-text); } }
.form-required-note .req, .field .req { color: var(--carmin); font-weight: 700; }
/* ================================================================
   ACCESSIBILITE (RGAA 4.1) · ajoute le 2026-11-05
   Lien d'evitement, focus visible, texte reserve aux lecteurs d'ecran,
   liens reconnaissables dans le texte, contenus replies vraiment masques.
   ================================================================ */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10000;
  padding: 12px 20px;
  background: #111;
  color: #fff;
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: underline;
}
.skip-link:focus { top: 12px; outline: 3px solid var(--orange); outline-offset: 2px; }

/* Focus clavier visible partout (le style natif etait supprime sur les champs et le menu mobile) */
:focus-visible { outline: 3px solid var(--carmin); outline-offset: 3px; }
.site-footer :focus-visible,
.section--dark :focus-visible,
.page-hero :focus-visible,
.contact-aside :focus-visible,
.faq-float-panel :focus-visible,
#mobileMenu :focus-visible,
.retour-bar :focus-visible,
.projet-nav :focus-visible { outline-color: var(--orange); }
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible { outline: 3px solid var(--carmin); outline-offset: 2px; }
.mobile-menu__links a:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

/* Texte lu par les lecteurs d'ecran, invisible a l'ecran */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Liens dans un paragraphe : soulignes (pas seulement la couleur) */
.form p a, .text-link { text-decoration: underline; text-underline-offset: 2px; }

/* Champs : indication d'obligation et messages d'erreur */
.form-required-note { font-size: var(--t-micro); color: var(--ink-3); margin: 0 0 4px; }
.field .req { color: var(--carmin); font-weight: 700; }
.field-error-msg { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; color: #b00020; }
.field [aria-invalid="true"] { border-color: #b00020; }

/* Mouvement reduit : pas d'animation d'entree */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Grille coordonnees / formulaire de la page Contact (sortie du <style> en body, RGAA 8.2) */
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr !important; gap: clamp(32px, 6vw, 56px) !important; }
}

/* Menu principal dans un <nav> (RGAA 12.6) : le <nav> prend la place flexible de la liste */
.nav-primary { flex: 1; display: flex; justify-content: center; min-width: 0; }
/* Liens du pied de page en listes (RGAA 9.3) : la liste reprend la mise en page du conteneur */
.site-footer__nav > ul,
.site-footer__legal-links > ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: inherit; flex-wrap: wrap; gap: inherit;
}
.site-footer__legal-links { flex-wrap: wrap; }

/* Pages de texte : declaration d'accessibilite, plan du site */
.doc-h2 { font-family: var(--ff-title); font-size: var(--t-h3); font-weight: 700; color: var(--ink); letter-spacing: -0.02em; margin-top: clamp(32px, 4vw, 48px); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.doc-h3 { font-family: var(--ff-title); font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 28px 0 8px; }
.doc-txt { font-size: var(--t-body); color: var(--ink-2); line-height: 1.85; margin-bottom: 1em; }
.doc-txt a, .doc-list a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.doc-txt a:hover, .doc-list a:hover { color: var(--carmin); }
.doc-list { margin: 0 0 1.2em; padding-left: 1.3em; color: var(--ink-2); line-height: 1.8; font-size: var(--t-body); }
.doc-list li { margin-bottom: 6px; }
.doc-list ul { margin-top: 6px; padding-left: 1.3em; }
.doc-status { display: inline-block; padding: 6px 14px; border-radius: var(--r-pill); background: var(--carmin-bg); border: 1px solid var(--carmin-border); color: var(--carmin); font-weight: 700; }
