/* ==========================================================================
   VIRAGE 19 — Motor Culture · Corrèze
   Feuille de style unique. Aucune dépendance externe.
   Sommaire :
   1. Polices        2. Tokens          3. Base           4. Typographie
   5. Utilitaires    6. Boutons/liens   7. Header/nav     8. Hero vidéo
   9. Héros internes 10. Sections       11. Composants    12. Footer
   13. Animations    14. Responsive
   ========================================================================== */

/* 1. Polices auto-hébergées (OFL) ----------------------------------------- */
@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-500-italic.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2-variations"),
       url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 300 600; font-stretch: 100% 125%; font-style: normal; font-display: swap;
}
/* Repli métrique pour limiter le décalage au chargement */
@font-face {
  font-family: "Cormorant Fallback";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 88%; ascent-override: 98%; descent-override: 30%;
}
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("Helvetica");
  size-adjust: 104%; ascent-override: 88%; descent-override: 22%;
}

/* 2. Tokens ----------------------------------------------------------------- */
:root {
  /* Couleurs — issues du logo Virage 19 */
  --noir: #070707;
  --asphalte: #0f0e0d;
  --graphite: #181715;
  --carbone: #22201d;
  --creme: #ece8dc;          /* crème du logo */
  --creme-80: rgba(236, 232, 220, .8);
  --pierre: #a39e93;          /* texte secondaire, contraste 6,6:1 sur asphalte */
  --ligne: rgba(236, 232, 220, .14);
  --ligne-forte: rgba(236, 232, 220, .28);
  --rouge: #e00a16;           /* rouge du logo */
  --rouge-vif: #f2333d;       /* rouge pour petits textes sur fond noir (AA) */
  --rouge-sombre: #a8070f;
  --bordeaux: #43060b;        /* sections rouges profondes */
  --bordeaux-nuit: #2a0407;
  --bleu: #044c98;            /* bleu du filet tricolore du logo */

  /* Typographie */
  --f-display: "Cormorant", "Cormorant Fallback", Georgia, "Times New Roman", serif;
  --f-texte: "Archivo", "Archivo Fallback", "Helvetica Neue", Arial, sans-serif;

  --t-display: clamp(3rem, 1rem + 5vw, 7.25rem);
  --t-h1: clamp(2.6rem, 1.5rem + 4.4vw, 6.25rem);
  --t-h2: clamp(2.2rem, 1.45rem + 3vw, 4.6rem);
  --t-h2-s: clamp(1.9rem, 1.4rem + 1.9vw, 3.25rem);
  --t-h3: clamp(1.5rem, 1.25rem + .9vw, 2.15rem);
  --t-lead: clamp(1.08rem, 1rem + .35vw, 1.28rem);
  --t-body: 1.0625rem;
  --t-small: .9375rem;
  --t-tech: .72rem;

  /* Espacements */
  --gutter: clamp(20px, 5vw, 88px);
  --max: 1520px;
  --section: clamp(88px, 6rem + 5vw, 176px);
  --section-s: clamp(64px, 4rem + 3vw, 120px);
  --header-h: 84px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* 3. Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--asphalte);
  color: var(--creme);
  font-family: var(--f-texte);
  font-size: var(--t-body);
  font-weight: 350;
  line-height: 1.7;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul[role="list"], ol[role="list"] { list-style: none; }
::selection { background: var(--rouge); color: #fff; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--creme);
  outline-offset: 4px;
}

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 1000;
  padding: 14px 20px;
  background: var(--creme); color: var(--noir);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); outline-color: var(--rouge); }

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

/* 4. Typographie ------------------------------------------------------------ */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  color: var(--creme);
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); line-height: .98; letter-spacing: -.012em; }
h2 { font-size: var(--t-h2); line-height: 1; letter-spacing: -.01em; }
h3 { font-size: var(--t-h3); line-height: 1.12; letter-spacing: -.004em; }

.h2-s { font-size: var(--t-h2-s); line-height: 1.04; }

/* Voix « technique » : écho au « MOTOR CULTURE » du logo */
.tech {
  font-family: var(--f-texte);
  font-size: var(--t-tech);
  font-weight: 500;
  font-stretch: 125%;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1.5;
}
.tech--rouge { color: var(--rouge-vif); }
.tech--pierre { color: var(--pierre); }

.lead {
  font-size: var(--t-lead);
  line-height: 1.62;
  font-weight: 300;
  color: var(--creme-80);
  max-width: 38em;
}
.texte { color: var(--creme-80); max-width: 36em; }
.texte strong, .lead strong { font-weight: 500; color: var(--creme); }

/* Grand énoncé éditorial (manifeste) */
.statement {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2rem, 1.2rem + 3.1vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--creme);
  text-wrap: balance;
}
.statement em { font-style: italic; }

/* 5. Utilitaires ------------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: calc(1180px + var(--gutter) * 2); }

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

.stack > * + * { margin-top: var(--stack, 1.5rem); }

.rule { border: 0; border-top: 1px solid var(--ligne); margin: 0; }

/* Filet tricolore — reprise exacte du détail du logo */
.tricolore {
  display: inline-flex; gap: 6px; width: 96px; height: 3px;
}
.tricolore span { flex: 1; }
.tricolore span:nth-child(1) { background: var(--bleu); }
.tricolore span:nth-child(2) { background: #f8f8f8; }
.tricolore span:nth-child(3) { background: var(--rouge); }

/* Images */
.media { position: relative; overflow: hidden; background: var(--graphite); }
.media picture, .media img { width: 100%; height: 100%; }
.media img { object-fit: cover; }
.media--contain { background: none; overflow: visible; }
.media--contain img { object-fit: contain; height: auto; }

.legende {
  display: flex; gap: 14px; align-items: baseline;
  margin-top: 14px;
  color: var(--pierre);
}
.legende::before {
  content: ""; flex: none; width: 22px; height: 1px; background: var(--rouge); transform: translateY(-3px);
}

/* 6. Boutons et liens --------------------------------------------------------- */
.btn {
  --btn-bg: var(--rouge);
  --btn-fg: #fff;
  --btn-bd: var(--rouge);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px;
  padding: 0 28px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  font-family: var(--f-texte);
  font-size: .75rem;
  font-weight: 600;
  font-stretch: 125%;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: color .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-hover, var(--rouge-sombre));
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn svg { width: 12px; height: 12px; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }

.btn--ligne {
  --btn-bg: transparent; --btn-fg: var(--creme); --btn-bd: var(--ligne-forte);
  --btn-hover: var(--creme);
}
.btn--ligne:hover { color: var(--noir); border-color: var(--creme); }

.btn--creme {
  --btn-bg: var(--creme); --btn-fg: var(--noir); --btn-bd: var(--creme);
  --btn-hover: #fff;
}
.btn--petit { min-height: 46px; padding: 0 20px; font-size: .6875rem; }

/* Lien éditorial souligné */
.lien {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 0;
  font-family: var(--f-texte);
  font-size: .75rem; font-weight: 500; font-stretch: 125%;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--creme);
  background-image: linear-gradient(var(--rouge), var(--rouge));
  background-size: 28px 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .5s var(--ease-out), color .3s var(--ease);
}
.lien:hover { background-size: 100% 1px; }
.lien-texte {
  color: var(--creme);
  text-decoration: underline;
  text-decoration-color: var(--rouge);
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
  transition: text-decoration-color .3s var(--ease), color .3s var(--ease);
}
.lien-texte:hover { text-decoration-color: var(--creme); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }

/* 7. Header & navigation ------------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background-color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header::before {
  /* voile discret pour lisibilité au-dessus de la vidéo */
  content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,7,7,.62), rgba(7,7,7,0));
  transition: opacity .45s var(--ease);
}
.site-header.is-solid {
  background: rgba(10, 10, 9, .94);
  border-bottom-color: var(--ligne);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header.is-solid { background: rgba(10, 10, 9, .86); backdrop-filter: saturate(1.1) blur(12px); }
}
.site-header.is-solid::before { opacity: 0; }

.nav-bar {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.brand { display: block; flex: none; }
.brand img { width: 156px; height: auto; }

.nav { display: flex; align-items: center; gap: clamp(28px, 3vw, 52px); }
.nav__list { display: flex; align-items: center; gap: clamp(22px, 2.6vw, 44px); list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: inline-block; padding: 10px 0;
  font-size: .72rem; font-weight: 500; font-stretch: 125%;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--creme-80);
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--rouge);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.nav__link:hover { color: var(--creme); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--creme); }

.nav-toggle {
  display: none;
  position: relative; width: 48px; height: 48px; margin-right: -12px;
  align-items: center; justify-content: center;
}
.nav-toggle__bars { position: relative; width: 26px; height: 12px; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--creme);
  transition: transform .45s var(--ease-out), top .45s var(--ease-out), width .45s var(--ease-out);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 10.5px; width: 70%; left: auto; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 5px; width: 100%; transform: rotate(-45deg); }

/* 8. Hero vidéo (accueil) ----------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(40px, 6vh, 72px);
  background: var(--noir);
  isolation: isolate;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__video, .hero__poster {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 45%;
}
.hero__poster img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero__video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__video.is-playing { opacity: 1; }
.no-js .hero__video { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,7,7,.92) 0%, rgba(7,7,7,.72) 36%, rgba(7,7,7,.3) 66%, rgba(7,7,7,.4) 100%),
    linear-gradient(0deg, rgba(7,7,7,.96) 0%, rgba(7,7,7,.76) 28%, rgba(7,7,7,0) 58%),
    linear-gradient(180deg, rgba(7,7,7,.55) 0%, rgba(7,7,7,0) 22%);
}
.hero__grain {
  /* très léger grain cinéma */
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.hero__content { position: relative; }
.hero__title { margin: 0; font-weight: 500; }
.hero__kicker {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: clamp(18px, 2.4vh, 30px);
  color: var(--creme);
}
.hero__kicker::before { content: ""; width: 40px; height: 1px; background: var(--rouge); flex: none; }
.hero__display {
  display: block;
  font-family: var(--f-display);
  font-size: var(--t-display);
  line-height: .9;
  letter-spacing: -.018em;
  color: var(--creme);
}
.hero__line { display: block; }
/* Les trois lignes dessinent une trajectoire : on entre dans le virage */
.hero__line:nth-child(2) { padding-left: .42em; }
.hero__line:nth-child(3) { padding-left: .84em; }
.hero__line:nth-child(3) .hero__point { color: var(--rouge); }

.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 30rem) auto;
  align-items: end; justify-content: space-between;
  gap: 32px 48px;
  margin-top: clamp(26px, 4vh, 48px);
}
.hero__intro { color: var(--creme-80); font-size: var(--t-lead); font-weight: 300; line-height: 1.6; max-width: 34rem; }
.hero__intro + .actions { margin-top: 28px; }

.hero__facts {
  display: grid; grid-template-columns: repeat(3, auto); gap: 0;
  border-top: 1px solid var(--ligne-forte);
  padding-top: 18px;
}
.hero__facts div { padding: 0 clamp(18px, 2vw, 34px); border-left: 1px solid var(--ligne); }
.hero__facts div:first-child { padding-left: 0; border-left: 0; }
.hero__facts dt { color: var(--pierre); margin-bottom: 6px; }
.hero__facts dd { font-family: var(--f-display); font-size: 1.32rem; line-height: 1.2; color: var(--creme); }

.hero__control {
  position: absolute; right: var(--gutter); top: calc(var(--header-h) + 24px); z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 4px;
  color: var(--creme-80);
  transition: color .3s var(--ease);
}
.hero__control:hover { color: var(--creme); }
.hero__control svg { width: 10px; height: 10px; }
.hero__control .icon-play { display: none; }
.hero__control[aria-pressed="true"] .icon-play { display: block; }
.hero__control[aria-pressed="true"] .icon-pause { display: none; }

@media (min-width: 1025px), (min-width: 860px) and (orientation: landscape) {
  .hero__media {
    left: 24%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.4) 20%, #000 46%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.4) 20%, #000 46%);
  }
  .hero__shade {
    background:
      linear-gradient(0deg, rgba(7,7,7,.95) 0%, rgba(7,7,7,.55) 24%, rgba(7,7,7,0) 50%),
      linear-gradient(180deg, rgba(7,7,7,.6) 0%, rgba(7,7,7,0) 20%),
      linear-gradient(270deg, rgba(7,7,7,.35) 0%, rgba(7,7,7,0) 18%);
  }
}

/* 9. Héros des pages internes -------------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(48px, 8vh, 110px));
  padding-bottom: clamp(56px, 8vh, 110px);
  background: var(--noir);
  isolation: isolate;
  overflow: hidden;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; color: var(--pierre); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumb li + li::before { content: ""; width: 14px; height: 1px; background: var(--ligne-forte); }
.breadcrumb a { transition: color .3s var(--ease); }
.breadcrumb a:hover { color: var(--creme); }
.breadcrumb [aria-current="page"] { color: var(--creme); }

/* À propos : texte à gauche, pilote pleine hauteur à droite */
.page-hero--about { min-height: min(100svh, 980px); display: flex; align-items: flex-end; padding-bottom: clamp(56px, 9vh, 120px); }
.page-hero--about .page-hero__inner { position: relative; z-index: 1; width: 100%; }
.page-hero--about .page-hero__text { grid-column: 1 / span 7; }
.page-hero__media--side {
  position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; width: 46%;
}
.page-hero__media--side picture, .page-hero__media--side img { width: 100%; height: 100%; }
.page-hero__media--side img { object-fit: cover; object-position: 50% 30%; }
.page-hero__media--side::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--noir) 0%, rgba(7,7,7,.55) 28%, rgba(7,7,7,0) 60%),
    linear-gradient(0deg, rgba(7,7,7,.85) 0%, rgba(7,7,7,0) 40%);
}
.page-hero h1 { margin-top: clamp(28px, 4vh, 44px); }
.page-hero .lead { margin-top: 28px; }
.page-hero .actions { margin-top: 40px; }
.signature {
  display: flex; align-items: center; gap: 18px; margin-top: 44px; color: var(--pierre);
}

/* Solutions : voiture de face détourée */
.page-hero--solutions { padding-bottom: 0; }
.page-hero--solutions .page-hero__text { grid-column: 1 / span 10; }
.h1--long { font-size: clamp(2.35rem, 1.3rem + 3.5vw, 5.1rem); line-height: 1.02; }
.page-hero--solutions .lead { max-width: 40em; }
.page-hero__car {
  position: relative;
  width: min(1200px, 100%);
  margin: clamp(24px, 4vw, 40px) auto 0;
  margin-bottom: -2px;
}
.page-hero__car::before {
  /* halo de phares sur l'asphalte */
  content: ""; position: absolute; left: 10%; right: 10%; bottom: 2%; height: 40%; z-index: -1;
  background: radial-gradient(50% 60% at 50% 100%, rgba(224, 10, 22, .28), rgba(224,10,22,0) 70%);
  filter: blur(10px);
}
.page-hero__car::after {
  content: ""; position: absolute; left: -20vw; right: -20vw; bottom: 0; height: 26%;
  background: linear-gradient(0deg, var(--asphalte) 6%, rgba(15,14,13,0));
  pointer-events: none;
}
.page-hero__car img { width: 100%; height: auto; }

/* 10. Sections ------------------------------------------------------------------ */
.section { position: relative; padding-block: var(--section); }
.section--s { padding-block: var(--section-s); }
.section--noir { background: var(--noir); }
.section--graphite { background: var(--graphite); }
.section--top0 { padding-top: 0; }
.section--bottom0 { padding-bottom: 0; }

.section--rouge {
  background-color: var(--bordeaux);
  background-image:
    radial-gradient(80% 60% at 70% 0%, rgba(224, 10, 22, .32), rgba(224,10,22,0) 70%),
    repeating-linear-gradient(90deg, rgba(0,0,0,0) 0 46px, rgba(0,0,0,.18) 46px 47px, rgba(0,0,0,0) 47px 92px);
  color: var(--creme);
  overflow: hidden;
}
.section--rouge .texte, .section--rouge .lead { color: rgba(236, 232, 220, .84); }
.section--rouge .tech--rouge { color: var(--creme); }
.section--rouge .lien { background-image: linear-gradient(var(--creme), var(--creme)); }
.section--rouge .legende { color: rgba(236, 232, 220, .7); }
.section--rouge .legende::before { background: var(--creme); }

.section-head { max-width: 58rem; }
.section-head > .tech { display: block; margin-bottom: 26px; }
.section-head h2 + .lead, .section-head h2 + .texte { margin-top: 30px; }

/* Filigrane V19 */
.watermark {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  width: clamp(420px, 56vw, 980px); opacity: .045;
}
.watermark img { width: 100%; height: auto; }

/* --- Fiche technique (accueil) --- */
.spec { position: relative; z-index: 2; margin-top: -1px; background: var(--noir); border-top: 1px solid var(--ligne); }
.spec__grid { align-items: start; row-gap: 40px; }
.spec__head { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 32px); }
.spec__head h2 { font-size: var(--t-h2-s); }
.spec__head .texte { margin-top: 22px; max-width: 26em; }
.spec__list { grid-column: 6 / -1; border-top: 1px solid var(--ligne-forte); }
.spec__row {
  display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 24px;
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--ligne);
}
.spec__row dt { color: var(--pierre); padding-top: .6em; }
.spec__row dd { font-family: var(--f-display); font-size: clamp(1.45rem, 1.2rem + .9vw, 2.15rem); line-height: 1.2; color: var(--creme); }
.spec__row dd a { transition: color .3s var(--ease); }
.spec__row dd a:hover { color: var(--rouge-vif); }
.spec__row dd small { display: block; margin-top: 8px; font-family: var(--f-texte); font-size: var(--t-small); line-height: 1.6; color: var(--pierre); font-weight: 350; }

/* --- Split image / texte --- */
.split { align-items: center; row-gap: 48px; }
.split__media { grid-column: 1 / span 5; }
.split__body { grid-column: 7 / span 6; }
.split--inverse .split__media { grid-column: 8 / span 5; grid-row: 1; }
.split--inverse .split__body { grid-column: 1 / span 6; grid-row: 1; }
.split__media .media { aspect-ratio: 4 / 5; }
.split__media--paysage .media { aspect-ratio: 3 / 2; }

/* Liste à filets (publics, valeurs…) */
.filets { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--ligne); }
.filets li {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 8px 28px;
  padding: 22px 0; border-bottom: 1px solid var(--ligne);
}
.filets h3 { font-size: clamp(1.35rem, 1.2rem + .5vw, 1.7rem); line-height: 1.2; }
.filets p { color: var(--pierre); font-size: var(--t-small); line-height: 1.65; padding-top: .3em; }

/* --- Section rouge avec voiture détourée --- */
.livery { align-items: center; row-gap: 56px; }
.livery__body { grid-column: 1 / span 4; position: relative; z-index: 2; }
.livery__car { grid-column: 5 / -1; position: relative; z-index: 1; margin-right: calc(var(--gutter) * -1); }
.livery--inverse .livery__body { grid-column: 9 / -1; grid-row: 1; }
.livery--inverse .livery__car { grid-column: 1 / span 8; grid-row: 1; margin-right: 0; margin-left: calc(var(--gutter) * -1); }
.livery__car img { width: 100%; height: auto; filter: drop-shadow(0 40px 40px rgba(0,0,0,.45)); }
.livery__car::after {
  /* reflet au sol */
  content: ""; position: absolute; left: 6%; right: 4%; bottom: -2%; height: 12%; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.6), rgba(0,0,0,0) 70%);
}
.techniques { margin-top: 44px; border-top: 1px solid rgba(236,232,220,.22); }
.techniques div { padding: 22px 0; border-bottom: 1px solid rgba(236,232,220,.16); }
.techniques h3 { font-size: clamp(1.4rem, 1.2rem + .6vw, 1.8rem); }
.techniques p { margin-top: 8px; font-size: var(--t-small); color: rgba(236,232,220,.78); max-width: 34em; }

/* --- Manifeste + mosaïque de détails --- */
.manifeste { row-gap: 40px; }
.manifeste__head { grid-column: 1 / span 4; }
.manifeste__statement { grid-column: 5 / -1; }
.manifeste__statement .texte { margin-top: 34px; }
.manifeste__statement .actions { margin-top: 30px; }

.mosaic {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px);
  margin-top: clamp(56px, 7vw, 104px);
}
.mosaic figure:nth-child(1) { grid-column: 1 / span 7; grid-row: 1 / span 2; }
.mosaic figure:nth-child(2) { grid-column: 8 / span 5; }
.mosaic figure:nth-child(3) { grid-column: 8 / span 5; }
.mosaic figure:nth-child(1) { display: flex; flex-direction: column; }
.mosaic figure:nth-child(1) .media { flex: 1 1 auto; min-height: 360px; }
.mosaic figure:nth-child(2) .media, .mosaic figure:nth-child(3) .media { aspect-ratio: 16 / 10; }
.mosaic figcaption { margin-top: 14px; }

/* --- Panorama pleine largeur --- */
.panorama { position: relative; background: var(--noir); }
.panorama__media { position: relative; height: clamp(260px, 25.9vw, 620px); overflow: hidden; }
.panorama__media picture, .panorama__media img { width: 100%; height: 100%; }
.panorama__media img { object-fit: cover; object-position: 55% 50%; }
.panorama__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(7,7,7,.75) 0%, rgba(7,7,7,0) 35%), linear-gradient(180deg, rgba(7,7,7,.5) 0%, rgba(7,7,7,0) 25%);
}
.panorama__caption { position: absolute; left: var(--gutter); bottom: 22px; z-index: 1; color: var(--creme-80); }
.panorama__body { padding-block: clamp(56px, 6vw, 96px) var(--section); }
.panorama__body .grid-12 { row-gap: 32px; align-items: start; }
.panorama__title { grid-column: 1 / span 5; }
.panorama__text { grid-column: 7 / span 6; }
.panorama__text .actions { margin-top: 30px; }

/* --- Bloc Calipage Bort --- */
.maison .media { aspect-ratio: 1550 / 1015; }
.maison__sign {
  display: flex; align-items: center; gap: 20px;
  margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--ligne);
}
.maison__sign img { width: 64px; height: auto; flex: none; }
.maison__sign p { font-family: var(--f-display); font-size: 1.45rem; line-height: 1.25; color: var(--creme); margin: 0; }

/* --- CTA final rouge --- */
.cta { text-align: left; }
.cta .grid-12 { align-items: end; row-gap: 40px; }
.cta__text { grid-column: 1 / span 7; position: relative; z-index: 1; }
.cta__text h2 { font-size: clamp(2.6rem, 1.4rem + 4.4vw, 6rem); line-height: .96; }
.cta__text h2 span { display: block; }
.cta__text .lead { margin-top: 28px; }
.cta__aside { grid-column: 9 / -1; position: relative; z-index: 1; }
.cta__aside .btn { width: 100%; }
.cta__links { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid rgba(236,232,220,.22); }
.cta__links li { border-bottom: 1px solid rgba(236,232,220,.16); }
.cta__links a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font-size: var(--t-small); color: rgba(236,232,220,.86);
  transition: color .3s var(--ease), padding .45s var(--ease-out);
}
.cta__links a:hover { color: #fff; padding-left: 8px; }
.cta__links svg { width: 14px; height: 14px; flex: none; }
.cta .watermark { right: -6vw; bottom: -14%; opacity: .07; }

/* --- À propos --- */
.pourquoi { row-gap: 36px; align-items: start; }
.pourquoi__title { grid-column: 1 / span 5; }
.pourquoi__text { grid-column: 7 / span 6; }
.pourquoi__text .lead { margin-bottom: 26px; }

.partage { margin-top: clamp(48px, 6vw, 88px); display: grid; grid-template-columns: 1fr auto 1fr; border-top: 1px solid var(--ligne-forte); border-bottom: 1px solid var(--ligne-forte); }
.partage__col { padding: clamp(32px, 4vw, 64px) clamp(0px, 3vw, 56px) clamp(32px, 4vw, 56px) 0; }
.partage__col + .partage__divider + .partage__col { padding-left: clamp(24px, 4vw, 64px); padding-right: 0; }
.partage__divider { width: 1px; background: var(--ligne-forte); position: relative; }
.partage__divider::after { content: ""; position: absolute; left: -1px; top: 0; width: 3px; height: 72px; background: var(--rouge); }
.partage__col h3 { margin-top: 18px; }
.partage__col p { margin-top: 14px; color: var(--pierre); max-width: 30em; }
.partage__list { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.partage__list li {
  padding: 9px 14px; border: 1px solid var(--ligne-forte);
  font-size: .8125rem; font-weight: 450; color: var(--creme);
}
.partage__col--v19 .partage__list li { border-color: rgba(224, 10, 22, .55); }
.partage__col--calipage { color: var(--pierre); }
.partage__col--calipage .partage__list li { color: var(--pierre); border-color: var(--ligne); }

.publics { margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--ligne-forte); list-style: none; padding: 0; }
.publics li {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px 40px; align-items: baseline;
  padding: clamp(26px, 3vw, 40px) 0; border-bottom: 1px solid var(--ligne);
}
.publics li::before {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--rouge); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out);
}
.publics li:hover::before { transform: scaleX(1); }
.publics h3 { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.75rem); line-height: 1.05; }
.publics p { color: var(--pierre); max-width: 34em; margin: 0; }
.publics p a { color: var(--creme); }

.valeurs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--ligne); }
.valeurs > div { padding: clamp(32px, 4vw, 60px) clamp(0px, 3vw, 48px) clamp(32px, 4vw, 60px) 0; border-bottom: 1px solid var(--ligne); }
.valeurs > div:nth-child(even) { padding-left: clamp(24px, 4vw, 64px); padding-right: 0; border-left: 1px solid var(--ligne); }
.valeurs h3 { font-size: clamp(2rem, 1.5rem + 2vw, 3.5rem); line-height: 1; }
.valeurs p { margin-top: 16px; color: var(--pierre); max-width: 30em; }

.facade { position: relative; }
.facade__media { position: relative; height: clamp(420px, 62vw, 900px); overflow: hidden; }
.facade__media picture, .facade__media img { width: 100%; height: 100%; }
.facade__media img { object-fit: cover; object-position: 55% 55%; filter: saturate(.9) brightness(.86); }
.facade__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,7,7,.4), rgba(7,7,7,0) 40%), linear-gradient(0deg, rgba(15,14,13,1) 0%, rgba(15,14,13,0) 30%); }
.facade__panel {
  position: relative; z-index: 1;
  width: min(640px, 100%);
  margin-top: clamp(-260px, -16vw, -120px);
  padding: clamp(32px, 4vw, 60px);
  background: var(--asphalte);
  border-top: 2px solid var(--rouge);
}
.facade__panel .texte { margin-top: 24px; }
.facade__panel .actions { margin-top: 32px; }

/* --- Solutions --- */
.subnav {
  position: sticky; top: var(--header-h); z-index: 50;
  background: rgba(15, 14, 13, .94);
  border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne);
}
@supports (backdrop-filter: blur(1px)) { .subnav { background: rgba(15, 14, 13, .84); backdrop-filter: blur(12px); } }
.subnav__list {
  display: flex; gap: clamp(20px, 2.6vw, 44px); list-style: none; margin: 0; padding: 0;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.subnav__list::-webkit-scrollbar { display: none; }
.subnav__list a {
  position: relative; display: block; padding: 18px 0; white-space: nowrap; color: var(--pierre);
  transition: color .3s var(--ease);
}
.subnav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--rouge); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.subnav__list a:hover, .subnav__list a.is-active { color: var(--creme); }
.subnav__list a.is-active::after { transform: scaleX(1); }

.service-intro { row-gap: 36px; align-items: end; }
.service-intro__title { grid-column: 1 / span 6; }
.service-intro__text { grid-column: 7 / span 6; }

.sous-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 44px; border-top: 1px solid var(--ligne-forte); }
.sous-services > div { padding: 28px 28px 30px 0; border-bottom: 1px solid var(--ligne); }
.sous-services > div + div { padding-left: 28px; border-left: 1px solid var(--ligne); }
.sous-services h3 { font-size: clamp(1.35rem, 1.2rem + .5vw, 1.7rem); }
.sous-services p { margin-top: 12px; color: var(--pierre); font-size: var(--t-small); }

.textile-split { align-items: stretch; row-gap: 48px; }
.textile-split__media { grid-column: 1 / span 5; }
.textile-split__media .media { aspect-ratio: 4 / 3; }
.textile-split__body { grid-column: 7 / span 6; align-self: center; }
.textile-split__body .filets { margin-top: 32px; }

/* Comparatif broderie / DTF */
.comparatif { --c1: 24%; margin-top: clamp(44px, 5vw, 80px); border-top: 1px solid var(--ligne-forte); }
.comparatif__head { display: grid; grid-template-columns: var(--c1) 1fr 1fr; padding: 32px 0 26px; border-bottom: 1px solid var(--ligne-forte); align-items: end; }
.comparatif__head > div + div { padding-right: clamp(16px, 2.5vw, 40px); }
.comparatif__head h3 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 3.25rem); line-height: 1; }
.comparatif__head p { margin-top: 10px; color: var(--pierre); font-size: var(--t-small); }
.comparatif__table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.comparatif__table th, .comparatif__table td { padding: 22px clamp(16px, 2.5vw, 40px) 22px 0; border-bottom: 1px solid var(--ligne); text-align: left; vertical-align: top; }
.comparatif__c1 { width: var(--c1); }
.comparatif__table tbody th { color: var(--pierre); font-weight: 500; padding-top: 26px; }
.comparatif__table td { color: var(--creme-80); font-size: var(--t-small); line-height: 1.65; }
.conseil {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 0 clamp(20px, 3vw, 48px);
  margin-top: 44px; padding: clamp(28px, 3vw, 44px); background: var(--graphite); border-left: 2px solid var(--rouge);
}
.conseil h3 { font-size: clamp(1.45rem, 1.25rem + .6vw, 1.85rem); }
.conseil p { color: var(--creme-80); }

.marquage { row-gap: 56px; align-items: start; }
.marquage__body { grid-column: 1 / span 5; }
.marquage__media { grid-column: 7 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 24px); }
.marquage__media figure:first-child { grid-column: 1 / -1; }
.marquage__media .media { aspect-ratio: 4 / 3; }
.marquage__media figure:first-child .media { aspect-ratio: auto; background: none; overflow: visible; }
.marquage__media figure:first-child img { object-fit: contain; height: auto; filter: drop-shadow(0 34px 34px rgba(0,0,0,.45)); }

.duo { row-gap: 56px; }
.duo > div { grid-column: span 6; }
.duo > div:last-child { padding-left: clamp(0px, 3vw, 48px); border-left: 1px solid var(--ligne); }
.duo h2 { font-size: var(--t-h2-s); }
.duo .texte { margin-top: 24px; }
.duo ul { list-style: none; padding: 0; margin: 28px 0 0; }
.duo li { position: relative; padding: 10px 0 10px 26px; color: var(--creme-80); border-bottom: 1px solid var(--ligne); font-size: var(--t-small); }
.duo li::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--rouge); }
.duo .actions { margin-top: 30px; }

.equipes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--ligne-forte); }
.equipes > article { padding: clamp(30px, 3.5vw, 56px) clamp(0px, 3vw, 48px) clamp(30px, 3.5vw, 56px) 0; border-bottom: 1px solid var(--ligne); }
.equipes > article:nth-child(even) { padding-left: clamp(24px, 4vw, 64px); padding-right: 0; border-left: 1px solid var(--ligne); }
.equipes h3 { font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.4rem); }
.equipes p { margin-top: 14px; color: var(--pierre); max-width: 32em; }
.equipes .pieces { margin-top: 18px; color: var(--creme); }

.principe { position: relative; overflow: hidden; }
.principe .watermark { left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .05; }
.principe__inner { position: relative; z-index: 1; max-width: 66rem; }
.principe .statement { margin-top: 30px; }
.principe .texte { margin-top: 36px; }

/* Trajectoire d'accompagnement : une vraie séquence, donc numérotée */
.trajectoire { position: relative; margin-top: clamp(56px, 6vw, 96px); }
.trajectoire__line { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 140px; overflow: visible; pointer-events: none; }
.trajectoire__line path { fill: none; stroke: var(--rouge); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.trajectoire__line .ghost { stroke: var(--ligne-forte); stroke-dasharray: 2 6; }
.etapes { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); list-style: none; margin: 0; padding: 0; }
.etapes li { position: relative; padding-top: var(--y, 0); }
.etapes li:nth-child(1) { --y: 92px; }
.etapes li:nth-child(2) { --y: 36px; }
.etapes li:nth-child(3) { --y: 8px; }
.etapes li:nth-child(4) { --y: 52px; }
.etapes__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 26px;
  border: 1px solid var(--rouge); background: var(--asphalte);
  font-family: var(--f-display); font-size: 1.3rem; color: var(--creme);
}
.etapes h3 { font-size: clamp(1.4rem, 1.2rem + .7vw, 1.85rem); }
.etapes p { margin-top: 12px; color: var(--pierre); font-size: var(--t-small); }

/* 11. Composants divers ------------------------------------------------------- */
.ext::after { content: ""; }

/* 12. Footer ---------------------------------------------------------------- */
.site-footer { position: relative; background: var(--noir); border-top: 1px solid var(--ligne); padding-top: clamp(64px, 7vw, 112px); }
.footer__grid { row-gap: 48px; }
.footer__brand { grid-column: 1 / span 4; }
.footer__brand img { width: 220px; height: auto; }
.footer__brand p { margin-top: 26px; color: var(--pierre); font-size: var(--t-small); max-width: 26em; }
.footer__brand .footer__claim { color: var(--creme); font-family: var(--f-display); font-size: 1.4rem; line-height: 1.25; }
.footer__col { grid-column: span 2; }
.footer__col:first-of-type { grid-column: 6 / span 2; }
.footer__col--wide { grid-column: span 3; }
.footer__title { margin: 0; font-family: var(--f-texte); font-size: var(--t-tech); font-weight: 500; font-stretch: 125%; letter-spacing: .2em; text-transform: uppercase; color: var(--pierre); line-height: 1.5; }
.footer__col ul { list-style: none; margin: 20px 0 0; padding: 0; }
.footer__col li + li { margin-top: 10px; }
.footer__col a:not(.btn) { font-size: var(--t-small); color: var(--creme-80); transition: color .3s var(--ease); }
.footer__col a:not(.btn):hover { color: var(--creme); }
.footer__col .btn { margin-top: 4px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px;
  margin-top: clamp(56px, 6vw, 96px); padding-block: 26px 30px; border-top: 1px solid var(--ligne);
  color: var(--pierre);
}
.footer__bottom .origin { display: inline-flex; align-items: center; gap: 16px; }

/* 13. Animations (sobres) ------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .reveal-media img { transform: scale(1.06); transition: transform 1.8s var(--ease-out); }
  .js .reveal-media.is-visible img { transform: scale(1); }
  .js .reveal-car { opacity: 0; transform: translateX(-6%); transition: opacity 1.2s var(--ease-out), transform 1.6s var(--ease-out); }
  .js .reveal-car.is-visible { opacity: 1; transform: none; }
  .js .reveal[data-delay="1"] { transition-delay: .12s; }
  .js .reveal[data-delay="2"] { transition-delay: .24s; }
  .js .reveal[data-delay="3"] { transition-delay: .36s; }

  /* Séquence d'ouverture des héros : la seule animation orchestrée (CSS pur, sans dépendance JS) */
  @keyframes entree { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  .hero__kicker, .hero__line, .hero__foot > *, .page-hero .entree {
    animation: entree 1.2s var(--ease-out) both;
  }
  .hero__kicker { animation-delay: .1s; }
  .hero__line:nth-child(1) { animation-delay: .25s; }
  .hero__line:nth-child(2) { animation-delay: .4s; }
  .hero__line:nth-child(3) { animation-delay: .55s; }
  .hero__foot > * { animation-delay: .8s; }
  .hero__foot > *:nth-child(2) { animation-delay: .95s; }
  .page-hero .entree:nth-child(2) { animation-delay: .12s; }
  .page-hero .entree:nth-child(3) { animation-delay: .24s; }
  .page-hero .entree:nth-child(4) { animation-delay: .36s; }
  .page-hero .entree:nth-child(5) { animation-delay: .48s; }
  @keyframes arrivee { from { opacity: 0; transform: translateY(5%) scale(.97); } to { opacity: 1; transform: none; } }
  .page-hero__car { animation: arrivee 1.8s var(--ease-out) .3s both; }

  .trajectoire__line .trace { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); transition: stroke-dashoffset 2.4s var(--ease-out); }
  .trajectoire.is-visible .trajectoire__line .trace { stroke-dashoffset: 0; }
}
[data-parallax] { will-change: transform; }

/* 14. Responsive ------------------------------------------------------------------ */
@media (max-width: 1280px) {
  .spec__head { grid-column: 1 / span 5; }
  .spec__list { grid-column: 6 / -1; }
  .spec__row { grid-template-columns: 9rem minmax(0, 1fr); }
  .hero__intro { max-width: 28rem; }
  .hero__facts dd { font-size: 1.15rem; }
}
@media (max-width: 1100px) {
  .hero__foot { grid-template-columns: 1fr; }
  .hero__facts { justify-self: start; }
}

@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  .brand img { width: 120px; }

  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0;
    padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
    background: var(--noir);
    overflow-y: auto;
    visibility: hidden; opacity: 0;
    transition: opacity .45s var(--ease), visibility 0s linear .45s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transition: opacity .45s var(--ease), visibility 0s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; border-top: 1px solid var(--ligne); }
  .nav__list li { border-bottom: 1px solid var(--ligne); }
  .nav__link {
    display: block; padding: 22px 0;
    font-family: var(--f-display); font-size: clamp(2rem, 1.4rem + 3vw, 3rem); font-stretch: 100%;
    letter-spacing: -.01em; text-transform: none; line-height: 1.1; color: var(--creme);
  }
  .nav__link::after { bottom: -1px; }
  .nav .btn { margin-top: 36px; width: 100%; }
  .nav__meta { display: block !important; margin-top: auto; padding-top: 40px; color: var(--pierre); }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header { background: var(--noir); border-bottom-color: var(--ligne); }

  .split__media, .split--inverse .split__media { grid-column: 1 / span 5; }
  .split__body, .split--inverse .split__body { grid-column: 6 / -1; }
  .split--inverse .split__media { grid-column: 8 / -1; }
  .split--inverse .split__body { grid-column: 1 / span 7; }

  .livery__body, .livery--inverse .livery__body { grid-column: 1 / -1; grid-row: auto; max-width: 40rem; }
  .livery__car, .livery--inverse .livery__car { grid-column: 1 / -1; grid-row: auto; margin: 0; }

  .manifeste__head, .manifeste__statement { grid-column: 1 / -1; }
  .panorama__title, .panorama__text { grid-column: 1 / -1; }

  .cta__text, .cta__aside { grid-column: 1 / -1; }
  .cta__aside { max-width: 30rem; }

  .pourquoi__title, .pourquoi__text { grid-column: 1 / -1; }
  .page-hero--about .page-hero__text { grid-column: 1 / -1; max-width: 40rem; }
  .page-hero__media--side { width: 62%; opacity: .7; }

  .service-intro__title, .service-intro__text { grid-column: 1 / -1; }
  .textile-split__media, .textile-split__body { grid-column: 1 / -1; }
  .textile-split__media .media { aspect-ratio: 16 / 9; }
  .marquage__body, .marquage__media { grid-column: 1 / -1; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col, .footer__col:first-of-type { grid-column: span 4; }
  .footer__col--wide { grid-column: span 4; }

  .comparatif { --c1: 20%; }
}

@media (min-width: 1025px) {
  .nav__meta { display: none; }
}

@media (max-width: 860px) {
  .page-hero--solutions .page-hero__text, .page-hero--about .page-hero__text { grid-column: 1 / -1; }
  .spec__head, .spec__list { grid-column: 1 / -1; }
  .spec__head { position: static; }

  .split__media, .split__body, .split--inverse .split__media, .split--inverse .split__body { grid-column: 1 / -1; grid-row: auto; }
  .split__media .media { aspect-ratio: 4 / 3; }
  .split--pilote .split__media .media { aspect-ratio: 4 / 5; }

  .mosaic figure:nth-child(1) { grid-column: 1 / -1; grid-row: auto; }
  .mosaic figure:nth-child(1) .media { flex: none; min-height: 0; aspect-ratio: 4 / 3; }
  .mosaic figure:nth-child(2), .mosaic figure:nth-child(3) { grid-column: span 6; }
  .mosaic figure:nth-child(2) .media, .mosaic figure:nth-child(3) .media { aspect-ratio: 4 / 3; }

  .partage { grid-template-columns: 1fr; }
  .partage__divider { width: 100%; height: 1px; }
  .partage__divider::after { left: 0; top: -1px; width: 72px; height: 3px; }
  .partage__col, .partage__col + .partage__divider + .partage__col { padding-inline: 0; }

  .publics li { grid-template-columns: 1fr; }
  .valeurs, .equipes { grid-template-columns: 1fr; }
  .valeurs > div, .valeurs > div:nth-child(even), .equipes > article, .equipes > article:nth-child(even) { padding-inline: 0; border-left: 0; }

  .sous-services { grid-template-columns: 1fr; }
  .sous-services > div, .sous-services > div + div { padding-inline: 0; border-left: 0; }

  .duo > div { grid-column: 1 / -1; }
  .duo > div:last-child { padding-left: 0; border-left: 0; padding-top: 48px; border-top: 1px solid var(--ligne); }

  .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .etapes li { --y: 0 !important; }
  .trajectoire__line { display: none; }

  .conseil { grid-template-columns: 1fr; row-gap: 14px; }
}

@media (max-width: 640px) {
  :root { --t-body: 1rem; }
  body { line-height: 1.68; }


  .actions { gap: 16px 24px; }
  .actions .btn { width: 100%; }

  .spec__row { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .spec__row dt { padding-top: 0; }

  .filets li { grid-template-columns: 1fr; gap: 6px; }

  .mosaic figure:nth-child(2), .mosaic figure:nth-child(3) { grid-column: 1 / -1; }

  .panorama__media { height: auto; overflow: visible; }
  .panorama__media picture { height: 300px; overflow: hidden; }
  .panorama__media img { object-position: 46% 50%; }
  .panorama__media::after { height: 300px; }
  .panorama__caption { position: static; display: block; padding: 16px var(--gutter) 0; }

  .cta__text h2 { font-size: clamp(2.4rem, 11vw, 3.4rem); }

  .page-hero--about { min-height: 0; padding-top: calc(var(--header-h) + 300px); }
  .page-hero__media--side { width: 100%; height: 420px; bottom: auto; opacity: 1; }
  .page-hero__media--side::after { background: linear-gradient(0deg, var(--noir) 2%, rgba(7,7,7,.2) 60%, rgba(7,7,7,.45) 100%); }
  .page-hero__media--side img { object-position: 50% 24%; }

  .facade__media { height: 360px; }
  .facade__panel { margin-top: -60px; padding: 28px 22px; }

  .comparatif__head { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .comparatif__head > :first-child { display: none; }
  .comparatif__head h3 { font-size: 1.7rem; }
  .comparatif__table tbody tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; border-bottom: 1px solid var(--ligne); padding: 18px 0; }
  .comparatif__table tbody th { grid-column: 1 / -1; width: auto; padding: 0 0 8px; border: 0; }
  .comparatif__table td { padding: 0; border: 0; }

  .marquage__media { grid-template-columns: 1fr; }

  .etapes { grid-template-columns: 1fr; }

  .footer__col, .footer__col:first-of-type, .footer__col--wide { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .brand img { width: 104px; }
  .btn { padding: 0 18px; letter-spacing: .14em; }
}

/* Hero en portrait (mobiles et tablettes verticales) : vidéo en haut, texte en dessous */
@media (max-width: 640px), (max-width: 1024px) and (orientation: portrait) {
  .hero { justify-content: flex-end; padding-bottom: 32px; }
  .hero__media { bottom: auto; height: 66%; }
  .hero__video, .hero__poster, .hero__poster img { object-position: 50% 50%; }
  .hero__shade {
    background:
      linear-gradient(0deg, var(--noir) 0%, rgba(7,7,7,.9) 30%, rgba(7,7,7,.25) 62%, rgba(7,7,7,.5) 100%);
  }
  .hero__media::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: -1px; height: 40%; background: linear-gradient(0deg, var(--noir), rgba(7,7,7,0)); }
  .hero__control { top: calc(var(--header-h) + 8px); right: calc(var(--gutter) - 4px); }
}
@media (max-width: 640px) {
  .hero__media { height: 72%; }
  .hero__display { font-size: clamp(2.85rem, 12.2vw, 4rem); line-height: .94; }
  .hero__line:nth-child(2) { padding-left: .4em; }
  .hero__line:nth-child(3) { padding-left: .8em; }
  .hero__kicker { gap: 12px; font-size: .64rem; letter-spacing: .16em; }
  .hero__kicker::before { width: 24px; }
  .hero__intro { font-size: 1rem; }
  .hero__facts { display: none; }
  .hero__foot { margin-top: 22px; }
}

/* Mouvement réduit : tout est visible, aucune vidéo animée forcée */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero__video { display: none; }
  [data-parallax] { transform: none !important; }
}

/* Impression */
@media print {
  .site-header, .hero__media, .hero__control, .subnav, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  h1, h2, h3, .statement { color: #000; }
}

/* Utilitaires d'espacement vertical */
.u-mt-s { margin-top: 20px; }
.u-mt-m { margin-top: 30px; }
.u-mt-l { margin-top: 40px; }
.u-mt-xl { margin-top: clamp(48px, 5vw, 80px); }

.cta__text h2 .cta__sub {
  margin-top: .32em;
  font-size: .5em; line-height: 1.1; color: rgba(236, 232, 220, .82);
}

.statement--m { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.75rem); line-height: 1.14; }
.watermark--gauche { left: -8vw; top: -6%; }

/* Ancres de la page Solutions : compenser header + sous-navigation */
.page-solutions [id] { scroll-margin-top: calc(var(--header-h) + 76px); }
.page-a-propos [id] { scroll-margin-top: calc(var(--header-h) + 24px); }
