/* ==========================================================================
   Trente Cinq mm — Feuille de style
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
  --paper: #F2ECE2;
  --paper-2: #E8E0D2;
  --ink: #171615;
  --ink-soft: #5B5650;
  /* Palette « blockbuster » : sarcelle & orange */
  --teal: #0E6E72;
  --teal-deep: #08383E;
  --orange: #FF6A2B;
  --accent: var(--orange);  /* couleur signature : ombre du fil, « bien », repères */
  --web: var(--teal); --web-fg: #F2ECE2;
  --video: var(--orange); --video-fg: #171615;
  --pop: #FFB547;           /* ambre, touche vive sur fond sombre */
  --line: rgba(23, 22, 21, .16);

  --f-body: "Familjen", system-ui, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, monospace;

  --gutter: clamp(1.1rem, 3.2vw, 2.75rem);
  --radius: 999px;
  --ease: cubic-bezier(.2, .7, .1, 1);

  /* Typo d'affichage : grotesque très condensée (piste A retenue) */
  --f-display: "Big Shoulders", "Arial Narrow", sans-serif;
  --d-weight: 800;
  --d-transform: uppercase;
  --d-track: -0.01em;
  --d-lh: .86;
  --d-scale: 1;
  --em-style: normal;
  --em-weight: 300;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(1rem, .95rem + .25vw, 1.15rem);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--pop); color: var(--ink); }

.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: var(--paper); padding: .75rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2px solid var(--web); outline-offset: 3px; }

.display {
  font-family: var(--f-display);
  font-weight: var(--d-weight);
  text-transform: var(--d-transform);
  letter-spacing: var(--d-track);
  line-height: var(--d-lh);
  font-stretch: 75%;
}
.display em { font-style: var(--em-style); font-weight: var(--em-weight); }
.mono {
  font-family: var(--f-mono);
  font-size: var(--mono-size, .7rem);
  font-stretch: 87.5%;
  letter-spacing: var(--mono-track, .02em);
  text-transform: var(--mono-tt, uppercase);
  line-height: 1.4;
}

/* Logo */
.logo { display: block; width: 100%; height: auto; }

/* ---------- Boutons & liens ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: 1em 1.5em;
  border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 1rem; line-height: 1;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--web); }
.btn--small { padding: .8em 1.2em; font-size: .9rem; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--pop); }
.arrow { display: inline-block; transition: transform .35s var(--ease); }
a:hover .arrow { transform: translateX(.3em); }

.link-u {
  display: inline-flex; gap: .5em; align-items: center;
  font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  padding-bottom: .2em;
  transition: background-size .4s var(--ease);
}
.link-u:hover { background-size: 30% 1.5px; }

/* ---------- En-tête ----------
   En haut : logo + menu complet. Au défilement, le menu se replie
   dans un bouton rond ; au clic, il s'ouvre en cercle depuis ce bouton. */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.9rem var(--gutter) 1rem;
  pointer-events: none;
  transition: padding .5s var(--ease);
}
.header.is-compact { padding-top: 1rem; }
.header { padding-right: calc(var(--gutter) + var(--sbw, 0px)); }
.header > * { pointer-events: auto; }
/* Logo blanc en « difference » : il s'inverse selon ce qui passe dessous
   (foncé sur le papier, clair sur les fonds sombres), toujours lisible. */
.header__logo {
  position: fixed; z-index: 61; top: 1.9rem; left: var(--gutter);
  width: clamp(92px, 9vw, 124px);
  mix-blend-mode: difference;
  transition: width .5s var(--ease), top .5s var(--ease), opacity .4s var(--ease), translate .4s var(--ease);
}
.header.is-compact + .header__logo { width: 80px; top: 1rem; }
/* Accueil : le logo de l'en-tête n'apparaît qu'une fois le grand logo dépassé */
.home .header__logo { opacity: 0; translate: 0 -8px; pointer-events: none; }
.home .header.is-past + .header__logo, .menu-open .header__logo { opacity: 1; translate: 0 0; pointer-events: auto; }

.nav { margin-left: auto; transition: opacity .4s var(--ease), translate .5s var(--ease); }
.nav__list { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav__list li { transition: opacity .35s var(--ease), translate .45s var(--ease); }
.nav__list a { display: inline-flex; align-items: baseline; gap: .4em; font-weight: 600; position: relative; }
.nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.menu__list a[aria-current="page"] { color: var(--pop); }
.nav__num { font-family: var(--f-mono); font-size: .6rem; color: var(--ink-soft); }
.header__cta { transition: opacity .35s var(--ease), translate .45s var(--ease), scale .45s var(--ease); }

/* les liens filent vers le bouton rond, l'un après l'autre */
.header.is-compact .nav__list li { opacity: 0; translate: 40px 0; pointer-events: none; }
.header.is-compact .nav__list li:nth-child(1) { transition-delay: .12s; }
.header.is-compact .nav__list li:nth-child(2) { transition-delay: .09s; }
.header.is-compact .nav__list li:nth-child(3) { transition-delay: .06s; }
.header.is-compact .nav__list li:nth-child(4) { transition-delay: .03s; }
.header.is-compact .header__cta { opacity: 0; translate: 30px 0; scale: .8; pointer-events: none; }

.burger {
  position: fixed; z-index: 70; top: 1rem; right: calc(var(--gutter) + var(--sbw, 0px));
  width: 58px; height: 58px; border: 0; border-radius: 50%;
  background: var(--ink); cursor: pointer;
  box-shadow: 4px 5px 0 var(--accent);
  scale: 0; rotate: -90deg;
  transition: scale .5s var(--ease), rotate .5s var(--ease), background .3s, box-shadow .3s;
}
.header.is-compact .burger, .menu-open .burger { scale: 1; rotate: 0deg; }
.burger:hover { box-shadow: 6px 7px 0 var(--accent); }
.burger span { position: absolute; left: 17px; right: 17px; height: 2px; background: var(--paper); border-radius: 2px; transition: transform .4s var(--ease), background .3s; }
.burger span:first-child { top: 24px; } .burger span:last-child { top: 32px; }
.burger[aria-expanded="true"] { background: var(--paper); box-shadow: 4px 5px 0 var(--orange); }
.burger[aria-expanded="true"] span { background: var(--ink); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Menu radial */
.menu {
  position: fixed; inset: 0; z-index: 55;
  color: var(--paper);
  background:
    radial-gradient(70% 60% at 85% 10%, color-mix(in srgb, var(--orange) 55%, transparent), transparent 70%),
    radial-gradient(60% 70% at 10% 90%, color-mix(in srgb, var(--teal) 90%, #fff 0%), transparent 70%),
    var(--teal-deep);
  clip-path: circle(0px at var(--mx, 95%) var(--my, 5%));
  transition: clip-path .9s cubic-bezier(.7, 0, .2, 1);
  overflow: hidden;
}
.menu[hidden] { display: block; visibility: hidden; }
.menu.is-open { clip-path: circle(var(--mr, 150vmax) at var(--mx, 95%) var(--my, 5%)); visibility: visible; }
.menu__rings { position: absolute; inset: 0; pointer-events: none; }
.menu__rings circle { fill: none; stroke: rgba(242, 236, 226, .14); stroke-width: 1; }
.menu__rings .ring-fil { stroke: var(--paper); stroke-width: 2.5; opacity: 1; stroke-linecap: round; }
.menu__rings .ring-sh { stroke: var(--orange); stroke-width: 2; stroke-linecap: round; }
.menu__rings .ring-fil, .menu__rings .ring-sh { stroke-dasharray: var(--c, 3000); stroke-dashoffset: var(--c, 3000); transition: stroke-dashoffset 1.2s .25s var(--ease); }
.menu.is-open .ring-fil, .menu.is-open .ring-sh { stroke-dashoffset: 0; }

.menu__list li { position: absolute; right: var(--r, 0); top: var(--t, 0); opacity: 0; translate: 30px -20px; transition: opacity .5s var(--ease), translate .7s var(--ease); }
.menu.is-open .menu__list li { opacity: 1; translate: 0 0; }
.menu.is-open .menu__list li:nth-child(1) { transition-delay: .3s; }
.menu.is-open .menu__list li:nth-child(2) { transition-delay: .38s; }
.menu.is-open .menu__list li:nth-child(3) { transition-delay: .46s; }
.menu.is-open .menu__list li:nth-child(4) { transition-delay: .54s; }
.menu.is-open .menu__list li:nth-child(5) { transition-delay: .62s; }
.menu.is-open .menu__list li:nth-child(6) { transition-delay: .7s; }
.menu__list a { display: flex; align-items: baseline; gap: .7rem; font-family: var(--f-display); font-weight: var(--d-weight); text-transform: var(--d-transform); letter-spacing: var(--d-track); font-size: clamp(3.4rem, 8vw, 8rem); line-height: .95; white-space: nowrap; transition: color .3s, translate .4s var(--ease); }
.menu__list a:hover { color: var(--pop); translate: -12px 0; }
.menu__list .nav__num { color: var(--pop); font-size: .75rem; }
.menu__foot { position: absolute; left: var(--gutter); bottom: 1.5rem; display: grid; gap: .4rem; opacity: 0; transition: opacity .5s .6s; }
.menu.is-open .menu__foot { opacity: .8; }

/* ---------- Hero ---------- */
.hero { padding: clamp(5.2rem, 6.4vw, 5.6rem) var(--gutter) clamp(3rem, 6vw, 5rem); text-align: center; }
.hero__meta { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); text-align: left; }
.hero__logo { width: min(420px, 68vw); margin: clamp(1.5rem, 3vw, 2.2rem) auto clamp(1.2rem, 2.5vw, 2rem); }
.js .hero__logo { clip-path: inset(0 100% 0 0); animation: write 1s var(--ease) forwards; }
@keyframes write { to { clip-path: inset(0 0 0 0); } }
.hero__title { font-size: clamp(4.2rem, 12vw, 12rem); display: inline-flex; flex-direction: column; align-items: center; }
.hero__title .line { display: block; overflow: hidden; padding: .16em .05em .04em; margin-top: -.16em; }
.hero__title .line > span { display: inline-block; }
.js .hero__title .line > span { transform: translateY(105%); transition: transform .9s .25s var(--ease); }
.js .hero__title .line:nth-child(2) > span { transition-delay: .35s; }
html.is-loaded .hero__title .line > span { transform: none; }
.hero__title em { color: var(--accent); }
.hero__lead { max-width: 38rem; margin: clamp(1.5rem, 3vw, 2.2rem) auto; font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); line-height: 1.45; }
.hero__actions { display: flex; justify-content: center; align-items: center; gap: 1.75rem; flex-wrap: wrap; }

/* Cadre « viseur » */
.frame { position: relative; }
.frame__media { position: relative; width: 100%; overflow: hidden; }
.frame__corner { position: absolute; width: 22px; height: 22px; border: 0 solid var(--ink); pointer-events: none; }
.frame__corner.tl { top: -10px; left: -10px; border-top-width: 2px; border-left-width: 2px; }
.frame__corner.tr { top: -10px; right: -10px; border-top-width: 2px; border-right-width: 2px; }
.frame__corner.bl { bottom: -10px; left: -10px; border-bottom-width: 2px; border-left-width: 2px; }
.frame__corner.br { bottom: -10px; right: -10px; border-bottom-width: 2px; border-right-width: 2px; }
.frame__cap { display: flex; justify-content: space-between; margin-top: 1rem; color: var(--ink-soft); }


/* ---------- Le fil (repris du trait du logo) ---------- */
.fil { position: absolute; top: 0; left: 0; z-index: 0; pointer-events: none; overflow: visible; }
.fil path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fil__line { stroke: var(--teal); stroke-width: 2.5; }
.fil__shadow { stroke: var(--accent); stroke-width: 1.8; transform: translate(5px, 6px); }
.fil__dot { fill: var(--teal); }
.fil__dot-sh { fill: var(--accent); transform: translate(5px, 6px); }
.fil circle { transition: r .5s var(--ease); }
main, .footer { position: relative; }
.fil-pt { height: clamp(90px, 11vw, 150px); }
.fil-end { height: clamp(110px, 13vw, 170px); }

/* ---------- Placeholders (à remplacer par les vrais visuels) ---------- */
.ph { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--paper-2); }
.ph__label { position: relative; z-index: 1; color: rgba(255,255,255,.85); text-align: center; padding: 1rem; }
.ph--web { background: linear-gradient(135deg, color-mix(in srgb, var(--web) 55%, #fff), var(--web) 70%); }
.ph--video { background: linear-gradient(135deg, color-mix(in srgb, var(--video) 55%, #fff), color-mix(in srgb, var(--video) 85%, #000) 70%); }
.ph--c1 { aspect-ratio: 16 / 10; background: linear-gradient(160deg, var(--web), color-mix(in srgb, var(--web) 55%, #000)); }
.ph--c2 { aspect-ratio: 4 / 5; background: linear-gradient(160deg, color-mix(in srgb, var(--video) 70%, #fff), var(--video)); }
.ph--c3 { aspect-ratio: 16 / 9; background: linear-gradient(160deg, #3a3633, #171615); }
.ph--portrait { aspect-ratio: 4 / 5; background: linear-gradient(180deg, #c9bfae, #8c8172); }

/* ---------- En-têtes de section ---------- */
section { position: relative; }
.sec-head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.sec-head__tag { display: inline-block; color: var(--ink-soft); margin-bottom: 1rem; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: var(--radius); }
.sec-head__title { font-size: calc(clamp(3rem, 8.5vw, 8rem) * var(--d-scale)); }
.sec-head--split { display: grid; grid-template-columns: 1fr minmax(0, 26rem); align-items: end; gap: 2rem; }
.sec-head__aside { color: var(--ink-soft); }
.sec-head__hook { display: block; margin-bottom: .5rem; color: var(--ink); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }

/* ---------- Les deux métiers ----------
   Au survol, le bloc survolé s'élargit en glissant, son image de fond apparaît,
   l'autre se resserre et s'estompe. */
.metiers { padding: clamp(1rem, 3vw, 2rem) var(--gutter) clamp(2rem, 4vw, 3rem); }
.doors { display: flex; gap: clamp(.75rem, 1.4vw, 1.25rem); min-height: clamp(34rem, 78vh, 46rem); }
.door {
  --slide: cubic-bezier(.65, 0, .2, 1);
  position: relative; flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column;
  padding: clamp(1.4rem, 2.6vw, 2.4rem);
  border-radius: 18px;
  overflow: hidden; isolation: isolate;
}
/* (sélecteur renforcé pour ne pas être écrasé par l'animation d'apparition) */
.js .door[data-reveal], .door { transition: opacity 1s var(--ease), transform 1s var(--ease), flex-grow .9s var(--slide), filter .6s var(--ease); }
.door--web { background: var(--web); color: var(--web-fg); }
.door--video { background: var(--video); color: var(--video-fg); }
.door__top { display: flex; justify-content: space-between; opacity: .85; }
.door__word {
  font-size: clamp(5rem, 12.5vw, 13rem);
  margin: auto 0 0;
  white-space: nowrap;
  transform-origin: left bottom;
  transition: transform .9s var(--slide), letter-spacing .9s var(--slide);
}
.door__body { display: grid; gap: 1.1rem; max-width: 30rem; margin: 1.5rem 0 1.75rem; transition: opacity .5s var(--ease), transform .7s var(--ease); }
.door__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.door__tags span { padding: .4rem .7rem; border-radius: var(--radius); border: 1px solid currentColor; }
.door__cta { display: inline-flex; align-self: flex-start; gap: .6em; font-weight: 700; padding: .95em 1.4em; border-radius: var(--radius); background: var(--paper); color: var(--ink); transition: transform .5s var(--ease); }
.door--video .door__cta { background: var(--ink); color: var(--paper); }
/* image de fond (capture de site / extrait vidéo à venir) */
.door__bg { position: absolute; inset: 0; z-index: -1; opacity: 0; transform: scale(1.1); transition: opacity .8s var(--ease), transform 1.4s var(--ease); }
.door__bg .ph { width: 100%; height: 100%; border-radius: 0; place-items: center; }
.door__bg .ph__label { padding: 1.6rem; margin-top: -30%; color: rgba(255, 255, 255, .75); }
.door__bg::after { content: ""; position: absolute; inset: 0; }
.door--web .door__bg::after { background: linear-gradient(to top, var(--web) 30%, rgba(14, 110, 114, .55) 60%, rgba(14, 110, 114, .1)); }
.door--video .door__bg::after { background: linear-gradient(to top, var(--video) 30%, rgba(255, 106, 43, .5) 60%, rgba(255, 106, 43, .05)); }
.ph--door-web { background: radial-gradient(60% 70% at 70% 30%, #8fd0cf, transparent 70%), linear-gradient(150deg, #4f9a9c, #0b4e52); }
.ph--door-video { background: radial-gradient(60% 70% at 70% 30%, #ffd08a, transparent 70%), linear-gradient(150deg, #ff9a5c, #b5401a); }
@media (hover: hover) and (min-width: 900px) {
  .doors:hover .door { flex-grow: .62; }
  .doors .door:hover { flex-grow: 1.38; }
  .doors:hover .door:not(:hover) .door__body { opacity: .55; }
  .door:hover .door__bg { opacity: 1; transform: scale(1); }
  .door:hover .door__word { transform: translateY(-.05em) scale(1.04); letter-spacing: .01em; }
  .door:hover .door__cta { transform: translateX(.4rem); }
}

/* ---------- Le reel ---------- */
.reel { padding: clamp(2rem, 5vw, 4rem) var(--gutter) clamp(1rem, 3vw, 2rem); }
.reel__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.reel__head p { color: var(--ink-soft); }
.reel__frame { display: block; position: relative; }
.reel__frame .frame__media { aspect-ratio: 16 / 9; border-radius: 4px; }
.reel__media { background: #0b2226; }
.reel__media video, .door__bg video { display: block; width: 100%; height: 100%; object-fit: cover; }
.reel__frame.is-playing .reel__play { opacity: 0; scale: .6; pointer-events: none; }
.reel__play { border: 0; cursor: pointer; font: inherit; }
.ph--reel {
  background:
    radial-gradient(55% 90% at 22% 35%, var(--teal) 0%, transparent 62%),
    radial-gradient(45% 80% at 78% 70%, var(--video) 0%, transparent 65%),
    radial-gradient(35% 60% at 60% 15%, var(--pop) 0%, transparent 55%),
    #0b2226;
  background-size: 160% 160%;
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift { to { background-position: 100% 100%; } }
.reel__play { position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: clamp(5rem, 9vw, 7.5rem); aspect-ratio: 1; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: clamp(1.1rem, 1.8vw, 1.5rem); box-shadow: 6px 7px 0 var(--accent); transition: scale .4s var(--ease), box-shadow .4s var(--ease), opacity .4s var(--ease); }
.reel__play span { translate: 8% 0; }
.reel__frame:hover .reel__play { scale: 1.08; box-shadow: 9px 10px 0 var(--accent); }
.reel__frame .ph__label { position: absolute; bottom: 1rem; left: 1rem; padding: 0; text-align: left; }
.frame__cap { display: flex; justify-content: space-between; margin-top: 1rem; color: var(--ink-soft); }

/* ---------- Sélection (planche contact) ---------- */
.selection { padding: clamp(1rem, 3vw, 2rem) var(--gutter) clamp(3rem, 6vw, 5rem); }
.sheet { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(1rem, 2.5vw, 2.5rem); row-gap: clamp(3rem, 6vw, 5rem); }
.shot--1 { grid-column: 1 / span 7; }
.shot--2 { grid-column: 9 / span 4; margin-top: clamp(4rem, 12vw, 12rem); }
.shot--3 { grid-column: 3 / span 8; }
.shot__link { display: block; }
.shot__img { position: relative; margin-bottom: 1.6rem; }
.shot__num { position: absolute; z-index: 2; top: -.9rem; left: -.6rem; background: var(--ink); color: var(--paper); padding: .35rem .55rem; border-radius: 4px; transform: rotate(-4deg); }
.shot__title { font-size: calc(clamp(2rem, 3.6vw, 3.4rem) * max(var(--d-scale), .8)); margin-bottom: 1rem; }
.fiche { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: .5rem 2rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.fiche dt { color: var(--ink-soft); margin-bottom: .2rem; }
.fiche dd { color: var(--ink); }
.selection__more { margin-top: clamp(3rem, 6vw, 5rem); display: flex; justify-content: center; }

/* Capture qui défile dans son cadre au survol.
   --dist (hauteur de l'image moins hauteur du cadre) est calculé en JS. */
.scroller__view { position: relative; aspect-ratio: var(--ar, 16 / 10); overflow: hidden; border-radius: 10px; background: #e6dfd3; box-shadow: 0 24px 50px -30px rgba(8, 56, 62, .45); }
.shot--2 .scroller__view { --ar: 4 / 5; }
.shot--3 .scroller__view { --ar: 16 / 9; }
.scroller__view img {
  position: absolute; top: 0; left: 0; width: 100%; height: auto; max-width: none;
  transform: translate3d(0, 0, 0);
  transition: transform 2s ease;   /* retour en haut */
}
.shot__link:hover .scroller__view img,
.shot__link:focus-visible .scroller__view img,
.shot.is-playing .scroller__view img {
  transform: translate3d(0, calc(var(--dist, 0px) * -1), 0);
  transition-duration: var(--dur, 9s);
  transition-timing-function: ease;
}
.shot__num { z-index: 3; }
.shot--2 .fiche { grid-template-columns: repeat(2, auto); }
.shot__links { display: flex; gap: 1.5rem; align-items: center; margin-top: 1rem; }
.shot__title { transition: color .3s; }
.shot__link:hover .shot__title { color: var(--teal); }

/* ---------- Méthode ---------- */
.methode { padding: clamp(1rem, 3vw, 2rem) var(--gutter) clamp(2rem, 4vw, 3rem); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); }
.step { padding: 1.4rem 1.5rem 2rem 0; display: grid; gap: .85rem; align-content: start; }
.step + .step { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.step__num { color: var(--accent); }
.step__title { font-size: calc(clamp(2rem, 3.2vw, 3rem) * max(var(--d-scale), .8)); }
.step p { color: var(--ink-soft); }

.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: clamp(4rem, 8vw, 6rem); }
.figure { background: var(--ink); color: var(--paper); border-radius: 18px; padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; min-height: 12rem; }
.figure:nth-child(2) { background: var(--pop); color: var(--ink); }
.figure:nth-child(3) { background: var(--web); color: var(--web-fg); }
.figure:nth-child(4) { background: var(--video); color: var(--video-fg); }
.figure__n { font-size: calc(clamp(3.5rem, 7vw, 6.5rem) * max(var(--d-scale), .75)); }

/* ---------- À propos ---------- */
.apropos { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; padding: clamp(1rem, 3vw, 2rem) var(--gutter) 0; }
.apropos__frame .frame__media { border-radius: 4px; }
.apropos__photo { aspect-ratio: 4 / 5; }
.apropos__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.apropos__text .sec-head__title { margin-bottom: 1.75rem; }
.apropos__text p { max-width: 34rem; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); margin-bottom: 1.75rem; }

/* ---------- Appel à l'action final ---------- */
.cta { background: var(--ink); color: var(--paper); padding: clamp(5rem, 10vw, 8rem) var(--gutter) clamp(4rem, 7vw, 6rem); overflow: hidden; }
.sec-head__tag--dark { color: rgba(241,236,227,.65); border-color: rgba(241,236,227,.2); }
.cta__title { font-size: calc(clamp(5rem, 24vw, 24rem) * var(--d-scale)); margin: 1.5rem 0 clamp(2.5rem, 5vw, 4rem); }
.cta__title > span { display: block; }
.cta__title > span:last-child { padding-left: 12vw; }
.cta__q { display: inline-block; color: var(--pop); transform-origin: 50% 85%; animation: wobble 3s var(--ease) infinite; }
@keyframes wobble { 0%, 70%, 100% { transform: rotate(0); } 80% { transform: rotate(14deg); } 90% { transform: rotate(-8deg); } }
.cta__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; border-top: 1px solid rgba(241,236,227,.2); padding-top: 2rem; }
.cta__mail { font-size: clamp(1.4rem, 3.4vw, 3rem); font-weight: 600; letter-spacing: -.02em; background: linear-gradient(var(--pop), var(--pop)) 0 100% / 0 3px no-repeat; transition: background-size .5s var(--ease), color .3s; word-break: break-word; }
.cta__mail:hover { background-size: 100% 3px; color: var(--pop); }
.cta__side { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cta__tel { font-size: .85rem; }

/* ---------- Pied de page : générique ---------- */
.footer { background: var(--ink); color: var(--paper); padding: clamp(4rem, 8vw, 7rem) var(--gutter) 1.5rem; text-align: center; border-top: 1px solid rgba(241,236,227,.12); }
.footer__label { color: var(--pop); margin-bottom: 2.5rem; }
.credits { display: grid; gap: .9rem; max-width: 42rem; margin: 0 auto; }
.credits > div { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; }
.credits dt { text-align: right; font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: rgba(241,236,227,.55); line-height: 1; }
.credits dd { text-align: left; font-weight: 600; }
.credits a:hover { color: var(--pop); }
.footer__logo { width: clamp(150px, 18vw, 230px); margin: clamp(3.5rem, 7vw, 5.5rem) auto clamp(2rem, 4vw, 3rem); color: var(--paper); }
.footer__fin { margin: 0 0 1rem; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: .25em; padding-left: .25em; color: rgba(241, 236, 227, .45); }

/* ---------- Ambiance : dégradés en mouvement ----------
   Dégradés radiaux simples (pas de flou ni de mode de fusion) :
   rendu identique sur Firefox, Safari et Chrome, et très léger à afficher. */
.ambiance { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; --p: 0;
  background: radial-gradient(120% 90% at 50% 40%, rgba(8, 56, 62, 0) 55%, rgba(8, 56, 62, .10)); }
.ambiance i { position: absolute; display: block; border-radius: 50%; will-change: transform; }
.ambiance .a1 { width: 75vmax; height: 75vmax; left: -28vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(14, 110, 114, .55), rgba(14, 110, 114, .22) 55%, rgba(14, 110, 114, 0)); animation: amb1 24s ease-in-out infinite alternate; }
.ambiance .a2 { width: 65vmax; height: 65vmax; right: -24vmax; top: 4vh; background: radial-gradient(closest-side, rgba(255, 106, 43, .50), rgba(255, 106, 43, .18) 55%, rgba(255, 106, 43, 0)); animation: amb2 29s ease-in-out infinite alternate; }
.ambiance .a3 { width: 55vmax; height: 55vmax; left: 10vw; bottom: -34vmax; background: radial-gradient(closest-side, rgba(255, 181, 71, .55), rgba(255, 181, 71, 0)); animation: amb3 35s ease-in-out infinite alternate; }
.ambiance .a4 { width: 45vmax; height: 45vmax; left: -16vmax; bottom: -8vmax; background: radial-gradient(closest-side, rgba(14, 110, 114, .35), rgba(14, 110, 114, 0)); animation: amb2 41s ease-in-out infinite alternate-reverse; }
@keyframes amb1 { to { transform: translate(14vw, 12vh) scale(1.12); } }
@keyframes amb2 { to { transform: translate(-12vw, 16vh) scale(.92); } }
@keyframes amb3 { to { transform: translate(16vw, -12vh) scale(1.15); } }
/* au défilement, les taches glissent (variable --p mise à jour en JS) */
.ambiance .a1 { translate: calc(var(--p) * 30vw) calc(var(--p) * 40vh); }
.ambiance .a2 { translate: calc(var(--p) * -20vw) calc(var(--p) * 30vh); }
.ambiance .a3 { translate: calc(var(--p) * -25vw) calc(var(--p) * -30vh); }

/* ---------- Grain argentique ---------- */
.grain {
  position: fixed; inset: -50%; z-index: -1; pointer-events: none; /* en fond : au-dessus des dégradés, sous le contenu */
  background-image: url("../img/grain.webp");
  opacity: .11;
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Apparitions au défilement ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .figures { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 899px) {
  .reel__head { grid-template-columns: 1fr; }
  .nav, .header__cta { display: none; }
  .header .burger { scale: 1; rotate: 0deg; }
  .menu__list li { position: static; }
  .menu__list { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 6rem; }
  .menu__list a { font-size: clamp(3rem, 15vw, 5.5rem); padding: .08em 0; border-top: 1px solid rgba(242,236,226,.2); }
  .doors { flex-direction: column; min-height: 0; }
  .door { min-height: 30rem; }
  .sec-head--split { grid-template-columns: 1fr; }
  .shot--1, .shot--2, .shot--3 { grid-column: 1 / -1; margin-top: 0; }
  .shot--2 { grid-column: 3 / -1; }
  .apropos { grid-template-columns: 1fr; }
  .apropos__frame { max-width: 26rem; }
}

@media (max-width: 699px) {
  /* laisse une marge libre à gauche pour le fil */
  .metiers, .reel, .selection, .methode, .apropos,
  .offres, .realisations, .outils, .faq, .cross { padding-left: calc(var(--gutter) + 12px); }
}

@media (max-width: 600px) {
  .reel__frame .frame__media { aspect-ratio: 16 / 9; }
  .frame__cap span:nth-child(2) { display: none; }
  .hide-sm { display: none; }
    .shot--2 { grid-column: 1 / -1; }
  .fiche { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 1.4rem 0 1.6rem; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .figures { gap: .6rem; }
  .figure { min-height: 9rem; padding: 1.1rem; border-radius: 14px; }
  .cta__title > span:last-child { padding-left: 0; }
  .credits > div { grid-template-columns: 1fr; gap: .15rem; }
  .credits dt, .credits dd { text-align: center; }
}

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


/* ==========================================================================
   Page Web
   ========================================================================== */
.phero { padding: clamp(7.6rem, 9vw, 8.4rem) var(--gutter) clamp(2rem, 5vw, 4rem); }
.phero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; min-height: min(72vh, 46rem); margin-top: clamp(1.5rem, 4vw, 3rem); }
.phero__title { font-size: clamp(3.6rem, 8.6vw, 9.5rem); }
.phero__title .line { display: block; overflow: hidden; padding: .16em .05em .04em 0; margin-top: -.16em; }
.phero__title .line > span { display: inline-block; }
.js .phero__title .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js .phero__title .line:nth-child(2) > span { transition-delay: .1s; }
.js .phero__title .line:nth-child(3) > span { transition-delay: .2s; }
html.is-loaded .phero__title .line > span { transform: none; }
.phero__title em { color: var(--accent); }
.phero__lead { max-width: 34rem; margin: clamp(1.4rem, 3vw, 2rem) 0; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); line-height: 1.45; }
.hero__actions--left { justify-content: flex-start; }

/* fenêtres flottantes */
.windows { position: relative; height: clamp(22rem, 38vw, 34rem); }
.win { position: absolute; border-radius: 12px; overflow: hidden; background: var(--paper); box-shadow: 0 30px 60px -25px rgba(8, 56, 62, .5), 0 0 0 1px rgba(23, 22, 21, .08); animation: float 7s ease-in-out infinite alternate; }
.win__bar { display: flex; align-items: center; gap: 6px; padding: .55rem .8rem; background: rgba(255, 255, 255, .65); border-bottom: 1px solid var(--line); }
.win__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(23, 22, 21, .2); }
.win__bar i:first-child { background: var(--orange); }
.win__bar span { margin-left: .6rem; font-size: .58rem; opacity: .6; text-transform: none; }
.win__body { aspect-ratio: 16 / 10; border-radius: 0; }
.win > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.win--1 { width: 74%; top: 0; right: 0; rotate: 3deg; }
.win--2 { width: 66%; top: 30%; left: 0; rotate: -4deg; z-index: 2; animation-duration: 8.5s; animation-delay: -2s; }
.win--3 { width: 56%; bottom: 0; right: 6%; rotate: 2deg; z-index: 3; animation-duration: 6s; animation-delay: -4s; }
@keyframes float { to { translate: 0 -14px; } }
.ph--w1 { background: linear-gradient(150deg, color-mix(in srgb, var(--teal) 60%, #fff), var(--teal)); }
.ph--w2 { background: linear-gradient(150deg, var(--pop), var(--orange)); }
.ph--w3 { background: linear-gradient(150deg, #1f4d52, var(--teal-deep)); }
.ph--c2b { aspect-ratio: 16 / 10; background: linear-gradient(160deg, var(--pop), var(--orange)); }
.ph--c4 { aspect-ratio: 16 / 10; background: linear-gradient(160deg, #e9dcc6, #c9b79a); }
.ph--c4 .ph__label { color: var(--ink); }

/* offres */
.offres { padding: clamp(1rem, 3vw, 2rem) var(--gutter) clamp(2rem, 4vw, 3rem); }
.offres__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.8rem, 1.6vw, 1.4rem); }
.offre { --soft: cubic-bezier(.22, 1, .36, 1); display: flex; flex-direction: column; gap: .8rem; padding: clamp(1.3rem, 2vw, 1.8rem); border-radius: 18px; background: rgba(242, 236, 226, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px var(--line), 0 0 0 0 var(--orange), 0 0 0 0 var(--teal);
  transition: translate .8s var(--soft), box-shadow .8s var(--soft), background-color .8s var(--soft); }
.offre:hover { translate: -4px -6px; background-color: rgba(242, 236, 226, .96); box-shadow: inset 0 0 0 1px var(--line), 6px 6px 0 0 var(--orange), 12px 12px 0 0 var(--teal); }
.offre__t { transition: color .6s var(--soft); }
.offre:hover .offre__t { color: var(--teal); }
.offre__n { color: var(--accent); }
.offre__t { font-size: clamp(2rem, 2.8vw, 2.8rem); }
.offre p { color: var(--ink-soft); flex: 1; }
.offre__p { padding-top: .8rem; border-top: 1px dashed rgba(23, 22, 21, .3); }

/* réalisations */
.realisations { padding: clamp(1rem, 3vw, 2rem) var(--gutter) clamp(2rem, 4vw, 3rem); }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin: -1.5rem 0 clamp(3rem, 6vw, 5rem); }
.filters button { font: inherit; text-transform: inherit; padding: .65rem 1rem; border-radius: var(--radius); border: 1.5px solid var(--ink); background: rgba(242, 236, 226, .6); color: var(--ink); cursor: pointer; transition: background .25s, color .25s; }
.filters button:hover { background: var(--paper); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.cases { display: grid; gap: clamp(4.5rem, 9vw, 8rem); }
.case { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(1.8rem, 4.5vw, 4.5rem); align-items: center; }
.case--rev { grid-template-columns: 5fr 7fr; }
.case--rev .case__link { order: 2; }
.case[hidden] { display: none; }
.case__link { display: block; }
.case__img { position: relative; }
.browser { border-radius: 12px; overflow: hidden; background: var(--paper); box-shadow: 0 30px 60px -28px rgba(8, 56, 62, .55), 0 0 0 1px rgba(23, 22, 21, .08); transition: scale .7s var(--ease); }
.browser .ph { border-radius: 0; }
.case__link:hover .browser { scale: .98; }
.case__type { color: var(--accent); }
.case__title { font-size: clamp(2.2rem, 4vw, 3.6rem); margin: .5rem 0 1rem; }
.case__ctx { color: var(--ink-soft); max-width: 34rem; margin-bottom: 1.5rem; }
.case .fiche { margin-bottom: 1.5rem; }

/* outils */
.outils { padding: clamp(1rem, 3vw, 2rem) var(--gutter) clamp(2rem, 4vw, 3rem); }
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 2.5rem); }
.tools li { display: grid; gap: .5rem; align-content: start; padding-top: 1rem; border-top: 1.5px solid var(--ink); }
.tools b { font-size: clamp(2rem, 3vw, 2.8rem); }
.tools span { color: var(--ink-soft); }

/* questions */
.faq { padding: clamp(1rem, 3vw, 2rem) var(--gutter) clamp(3rem, 6vw, 5rem); }
.faq__list { max-width: 62rem; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.4rem 0; cursor: pointer; list-style: none; font-size: clamp(1.1rem, 1rem + .5vw, 1.45rem); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: 0 0 auto; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--ink); transition: rotate .4s var(--ease), background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; translate: -50% -50%; background: var(--paper); }
.faq summary i::after { rotate: 90deg; }
.faq details[open] summary i { rotate: 45deg; background: var(--accent); }
.faq summary:hover span { color: var(--teal); }
.faq details p { max-width: 46rem; padding: 0 0 1.6rem; color: var(--ink-soft); }

/* passerelle vers la vidéo */
.cross { padding: 0 var(--gutter); }
.cross__card { display: grid; gap: 1.2rem; justify-items: start; padding: clamp(2rem, 5vw, 4rem); border-radius: 24px; color: var(--paper); background: radial-gradient(60% 120% at 90% 0%, color-mix(in srgb, var(--orange) 70%, transparent), transparent 70%), radial-gradient(50% 90% at 0% 100%, var(--teal), transparent 70%), var(--teal-deep); box-shadow: 0 30px 60px -30px rgba(8, 56, 62, .6); transition: translate .5s var(--ease); }
.cross__card { position: relative; overflow: hidden; isolation: isolate; transition: translate .8s cubic-bezier(.22, 1, .36, 1), box-shadow .8s cubic-bezier(.22, 1, .36, 1); }
.cross__card::before { content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; right: -20%; top: -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 106, 43, .55), rgba(255, 106, 43, 0)); transform: translate(25%, -15%) scale(.7); opacity: .6; transition: transform 1.2s cubic-bezier(.22, 1, .36, 1), opacity 1.2s; pointer-events: none; }
.cross__card:hover { translate: 0 -6px; box-shadow: 0 40px 70px -30px rgba(8, 56, 62, .7); }
.cross__card:hover::before { transform: translate(-30%, 25%) scale(1.25); opacity: 1; }
.cross__t { transition: letter-spacing .8s cubic-bezier(.22, 1, .36, 1); }
.cross__card:hover .cross__t { letter-spacing: .01em; }
.cross__go { transition: background .4s, color .4s; }
.cross__card:hover .cross__go { background: var(--pop); }
.cross__t { font-size: clamp(2.6rem, 6vw, 5.5rem); }
.cross__go { display: inline-flex; gap: .6em; padding: .95em 1.4em; border-radius: var(--radius); background: var(--paper); color: var(--ink); font-weight: 700; }

@media (max-width: 1100px) {
  .offres__list, .tools { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 899px) {
  .phero__grid { grid-template-columns: 1fr; min-height: 0; }
  .windows { height: clamp(16rem, 62vw, 26rem); }
  .case, .case--rev { grid-template-columns: 1fr; }
  .case--rev .case__link { order: 0; }
}
@media (max-width: 600px) {
  .offres__list, .tools { grid-template-columns: 1fr; }
  .filters { margin-top: -1rem; }
}

/* ==========================================================================
   Page Réalisations web
   ========================================================================== */
.phero--compact { padding-bottom: 0; }
.fil-end--short { height: clamp(70px, 8vw, 110px); }
.phero__intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; margin-top: clamp(1.5rem, 4vw, 3rem); }
.phero__intro .phero__lead { margin-top: 0; }

.refs { padding: 0 var(--gutter) clamp(3rem, 6vw, 5rem); }
.refs__bar {
  position: sticky; top: 5.4rem; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.6rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem); padding: .7rem .9rem;
  border-radius: 18px; background: rgba(242, 236, 226, .8);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px var(--line), 0 14px 30px -22px rgba(8, 56, 62, .5);
}
.refs__group { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.refs__label { color: var(--ink-soft); margin-right: .3rem; }
.refs__group button { font: 600 .88rem/1 var(--f-body); padding: .55rem .8rem; border-radius: var(--radius); border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.refs__group button:hover { border-color: var(--ink); }
.refs__group button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.refs__n { font: 500 .7rem/1 var(--f-mono); opacity: .55; margin-left: .15rem; }
.refs__sep { width: 1px; height: 1.4rem; margin: 0 .35rem; background: var(--line); }
.refs__count { margin-left: auto; color: var(--ink-soft); }
.refs__count span { color: var(--ink); font-weight: 700; }

.refs__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(3.5rem, 6vw, 5.5rem) clamp(1.5rem, 3.5vw, 3.5rem); }
.ref { display: flex; flex-direction: column; }
.ref[hidden] { display: none; }
.ref.is-new { animation: refIn .6s var(--ease) both; }
@keyframes refIn { from { opacity: 0; transform: translateY(18px); } }
.ref__media { display: block; margin-bottom: 1.2rem; }
.ref .scroller__view { --ar: 4 / 3; }
.ref__noimg { display: grid; place-items: center; color: var(--ink-soft); }
.ref__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .7rem; }
.ref__title { font-size: clamp(2rem, 3.2vw, 3rem); transition: color .3s; }
.ref__media:hover + .ref__head .ref__title { color: var(--teal); }
.ref__year { flex-shrink: 0; padding: .4rem .75rem; border-radius: var(--radius); background: var(--teal); color: #fff; font-weight: 600; line-height: 1; }
.ref__desc { color: var(--ink-soft); margin-bottom: 1.1rem; max-width: 38rem; }
.ref .fiche { grid-template-columns: repeat(3, auto); margin-bottom: 1.1rem; }
.ref__go { align-self: flex-start; }
.refs__empty { text-align: center; padding: 3rem 0; color: var(--ink-soft); }
.refs__empty button { font: inherit; border: 0; background: none; cursor: pointer; color: var(--ink); margin-left: .5rem; }

@media (max-width: 899px) {
  .phero__intro { grid-template-columns: 1fr; }
  .refs__grid { grid-template-columns: 1fr; }
  .refs__bar { position: static; }
}
@media (max-width: 600px) {
  .refs__bar { gap: .8rem; padding: .7rem; }
  .refs__count { margin-left: 0; }
  .ref .fiche { grid-template-columns: repeat(2, 1fr); }
  .refs { padding-left: calc(var(--gutter) + 12px); }
}

/* ==========================================================================
   Page À propos
   ========================================================================== */
.about-hero__grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; margin-top: clamp(1.5rem, 4vw, 3rem); }
.about-hero__photo { max-width: 440px; justify-self: end; width: 100%; }
.about-hero__intro { max-width: 36rem; margin-top: clamp(1.5rem, 3vw, 2.2rem); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.about-hero__intro + .phero__lead { margin-top: .9rem; }
.sec-head__more { display: block; margin-top: .8rem; }
.about-figures { padding: clamp(3rem, 6vw, 5rem) var(--gutter) 0; }
.about-figures .figures { margin-top: 0; }

.parcours { padding: clamp(1rem, 3vw, 2rem) var(--gutter) clamp(2rem, 4vw, 3rem); }
.parcours__list { display: grid; border-top: 1.5px solid var(--ink); max-width: 64rem; }
.parcours__item { display: grid; grid-template-columns: 12rem 1fr; column-gap: clamp(1rem, 4vw, 3rem); row-gap: .3rem; padding: clamp(1.1rem, 2.2vw, 1.6rem) 0; border-bottom: 1px solid var(--line); }
.parcours__when { grid-row: span 2; justify-self: start; align-self: start; margin-top: .15rem; padding: .45rem .8rem; border-radius: var(--radius); background: var(--teal); color: #fff; font-weight: 600; line-height: 1; white-space: nowrap; }
.parcours__what { font: 700 clamp(1.15rem, 1rem + .6vw, 1.55rem)/1.2 var(--f-body); letter-spacing: -.01em; }
.parcours__how { color: var(--ink-soft); }
.parcours__item--now .parcours__what { color: var(--teal); }

.about-metiers { padding-top: clamp(1rem, 3vw, 2rem); }

@media (max-width: 899px) {
  .about-hero__grid { grid-template-columns: 1fr; }
  .about-hero__photo { justify-self: start; max-width: 26rem; }
}
@media (max-width: 600px) {
  .parcours__item { grid-template-columns: 1fr; }
  .parcours__when { grid-row: auto; margin-bottom: .4rem; }
  .parcours, .about-figures { padding-left: calc(var(--gutter) + 12px); }
}

/* ---- Capture de site en fond (CTA Web) : défilement très lent ---- */
.pan { position: absolute; inset: 0; background: url("../img/web-fond.webp") 50% 0 / 100% auto no-repeat; opacity: .14; filter: grayscale(.6); animation: pan 70s linear infinite alternate; }
@keyframes pan { to { background-position: 50% 100%; } }
.door__bg .pan { animation-play-state: paused; }
.door:hover .door__bg .pan, .door:focus-visible .door__bg .pan { animation-play-state: running; }
.cross__card--web .pan { z-index: -2; animation-duration: 110s; }
.cross__card--web .pan { opacity: .08; }
.reel__frame[data-player] video { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .pan { animation: none; } }

/* ---- Mentions légales ---- */
.legal__title { font-size: clamp(3.4rem, 8vw, 8.5rem); }
.legal { max-width: 68rem; padding: 0 var(--gutter) clamp(3rem, 7vw, 6rem); }
.legal__block { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 1rem clamp(1.5rem, 4vw, 4rem); padding: clamp(1.4rem, 3vw, 2.2rem) 0; border-top: 1px solid var(--line); }
.legal__h { padding-top: .3rem; color: var(--teal); font-size: .78rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.legal__txt p { max-width: 44rem; line-height: 1.6; }
.legal__txt p + p { margin-top: .9rem; }
.legal__txt a { text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--accent); }
.legal__txt a:hover { color: var(--teal); }
mark.todo { padding: 0 .3em; border-radius: 4px; background: var(--pop); color: var(--ink); }
@media (max-width: 700px) { .legal__block { grid-template-columns: 1fr; gap: .6rem; } }

/* ---- Contact ---- */
.contact__title { font-size: clamp(3.4rem, 8vw, 8.5rem); }
.contact { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; padding: 0 var(--gutter) clamp(4rem, 9vw, 8rem); scroll-margin-top: 6rem; }
.contact__lead { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.contact__direct { margin-top: 2rem; }
.contact__direct > div { padding: .9rem 0; border-top: 1px solid var(--line); }
.contact__direct dt { color: var(--teal); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; }
.contact__direct dd { margin-top: .25rem; font-size: 1.08rem; font-weight: 600; }
.contact__direct a:hover { color: var(--accent); }
.contact__main { padding: clamp(1.6rem, 4vw, 3rem); border-radius: 24px; background: rgba(255, 255, 255, .55); box-shadow: 8px 9px 0 var(--accent), 16px 18px 0 var(--teal); }
.form { display: grid; gap: 1.3rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.field { display: grid; gap: .45rem; }
.field__l { font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field textarea { width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.4; transition: border-color .3s, box-shadow .3s; }
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 110, 114, .18); }
.field [aria-invalid="true"] { border-color: var(--accent); }
.field__err { color: #c2410c; font-size: .88rem; font-weight: 600; }
.form__alert { padding: .9rem 1.1rem; border-radius: 12px; background: rgba(255, 106, 43, .14); color: #9a3412; font-weight: 600; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; margin-top: .4rem; }
.form__note { flex: 1 1 22rem; color: var(--ink-soft); font-size: .8rem; line-height: 1.5; }
.form__note a { text-decoration: underline; text-underline-offset: .15em; }
.form .btn[disabled] { opacity: .6; cursor: wait; }
.form__ok { display: grid; gap: 1rem; justify-items: start; }
.form__ok .display { font-size: clamp(2.6rem, 6vw, 4.5rem); color: var(--teal); }
.grecaptcha-badge { visibility: hidden; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } .contact__main { box-shadow: 5px 6px 0 var(--accent), 10px 12px 0 var(--teal); } }
.contact { margin-top: 20px; }
/* menu radial à 6 entrées : titres un peu plus compacts */
.menu__list a { font-size: clamp(3rem, min(6.6vw, 10.5vh), 6.6rem); }
