/* Dajiro Studio · page d'accueil (refonte 2026)
   Noir et blanc. Trois polices seulement :
   Right Grotesk Spatial Black (titres), La Luxes Script (un mot par titre), Outfit (texte).
   Sans JavaScript ou avec « réduire les animations », tout reste visible et immobile. */

html, body { background: #fafaf8; }

@font-face {
  font-family: "Right Grotesk";
  src: url("../fonts/right-grotesk-spatial-black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
/* Outfit (texte), hébergée sur le site depuis le 02/12/2026 (avant : Google Fonts ; CNIL et vitesse).
   Fichiers de Google Fonts v15, licence SIL Open Font License 1.1. Police variable : un fichier couvre 400 à 600. */
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "La Luxes";
  src: url("../fonts/la-luxes-script.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0a0a0a;
  --paper: #fafaf8;
  --paper-2: #efefeb;
  --muted: #55554f;          /* 7:1 sur le blanc */
  --muted-inv: #a9a9a3;      /* 8:1 sur le noir */
  --line: rgba(10, 10, 10, .14);
  --line-inv: rgba(250, 250, 248, .2);
  --display: "Right Grotesk", sans-serif;
  --script: "La Luxes", cursive;
  --text: "Outfit", sans-serif;
  --pad: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --radius: 16px;
  /* Longueurs de défilement de la pile et du manifeste.
     ⚠ Mêmes nombres que FILL, LEAVE et READ dans site.js. */
  --fill-d: 85vh;
  --leave-d: 85vh;
  --read-d: 80vh;
  --tell-d: 180vh;   /* défilement pendant lequel les 4 atouts se racontent (≈ 45vh par atout) */
  --print-d: 150vh;  /* défilement pendant lequel le ticket de la méthode s'imprime */
  /* Feuille de papier imprimée : texture (l'image est « imprimée » dessus en produit) */
  --paper-tex: #f8f6f0 url("../img/papier.svg") 0 0 / 240px 240px;
  /* Reflet et tranche de la feuille */
  --paper-sheen: linear-gradient(122deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, .05) 28%, rgba(255, 255, 255, 0) 50%, rgba(40, 30, 15, .08) 100%);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding: 16px 0 104px;   /* le bas laisse la place à la barre flottante */
}
html.motion:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--text);
  font-weight: 400;
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
strong, b { font-weight: 600; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ink); color: var(--paper); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Typographie ---------- */
.h2 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 1.05rem + 2.5vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  text-wrap: balance;
}
/* Le mot en script : un seul par titre */
.s {
  display: inline-block;
  font-family: var(--script);
  font-weight: 400;
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.85em;
  line-height: .5;
  padding: 0 .08em 0 .04em;
  vertical-align: -.06em;
}
.hero__title .s { font-size: 1.45em; }
.eyebrow {
  display: flex; align-items: center; gap: .7em;
  font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 1.4rem;
}
/* L'étincelle : le « briller » de Dajiro (icône Lucide « sparkle », pleine) */
.eyebrow::before,
.hero__kicker::before {
  content: "";
  flex: none;
  width: .85em; height: .85em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='2 2 20 20'%3E%3Cpath d='M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='2 2 20 20'%3E%3Cpath d='M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lead {
  margin-top: 1.25rem;
  max-width: 40ch;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  color: var(--muted);
}
.lead a { color: var(--ink); font-weight: 500; }

.sec { padding-block: clamp(88px, 11vw, 168px); }
.sec-head { max-width: 1000px; margin-bottom: clamp(44px, 6vw, 88px); }

/* ---------- Boutons ---------- */
.btn {
  --h: 54px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: var(--h); padding: 0 1.6em;
  border: 1.5px solid var(--ink); border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: color .4s var(--ease-out), border-color .4s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  transform: translateY(102%);
  transition: transform .5s var(--ease-out);
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; transition: translate .4s var(--ease-out); }
/* Icônes Lucide du sprite : nues au repos, à la couleur du texte */
.ico { width: 1.15em; height: 1.15em; flex: none; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink::before { background: var(--paper); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line::before { background: var(--ink); }
.btn--paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--paper::before { background: var(--ink); }
@media (hover: hover) {
  .btn:hover::before { transform: none; }
  .btn--ink:hover { color: var(--ink); }
  .btn--line:hover { color: var(--paper); }
  .btn--paper:hover { color: var(--paper); }
  .btn:hover svg:has(use[href="#i-arrow"]) { translate: 4px 0; }
  .btn:hover svg:has(use[href="#i-external"]) { translate: 2px -2px; }
}

/* ---------- Barre de navigation flottante ---------- */
.bar {
  position: fixed; z-index: 60;
  left: 0; right: 0; bottom: calc(14px + env(safe-area-inset-bottom));
  width: max-content; max-width: calc(100% - 16px); margin-inline: auto;
  display: flex; align-items: center; gap: 2px;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(10, 10, 10, .06), 0 20px 44px -18px rgba(10, 10, 10, .45);
}
.bar ul { display: flex; gap: 2px; }
/* Icônes sans fond au repos : un fond léger n'apparaît qu'au survol. Section en cours = icône remontée + petit point */
.bar__home, .bar__link {
  position: relative; flex: none;
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  color: var(--muted); text-decoration: none;
  transition: color .25s, background-color .25s;
}
.bar__home { margin-right: 2px; color: var(--ink); }
.bar__home img { width: 34px; height: 34px; }
.bar__link svg { width: 22px; height: 22px; transition: translate .35s var(--ease-out); }
/* Point de la page en cours : un vrai élément (posé par parts.py, seulement sur le lien de la page en cours),
   pour qu'il glisse d'une icône à l'autre au changement de page (voir « D'une page à l'autre ») */
.bar__dot {
  position: absolute; left: 50%; bottom: 5px;
  width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: currentColor;
  view-transition-name: bar-dot;
}
.bar__sep { flex: none; width: 1px; height: 26px; margin-inline: 6px; background: var(--line); }
.bar__cta {
  display: inline-flex; align-items: center; flex: none;
  min-height: 46px; margin-left: 6px; padding: 0 1.35em;
  border-radius: 999px; background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: .9375rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
  transition: background-color .3s;
}
.bar__cta:focus-visible { outline-color: var(--ink); }
.bar__cta-s { display: none; }
/* Nom du lien, affiché en bulle au survol et au clavier */
.bar__tip {
  position: absolute; left: 50%; bottom: calc(100% + 14px);
  padding: 7px 11px; border-radius: 8px;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 0 0 1px var(--line-inv);
  font-size: .8125rem; font-weight: 500; line-height: 1.2; white-space: nowrap;
  opacity: 0; translate: -50% 6px; pointer-events: none;
  transition: opacity .2s, translate .3s var(--ease-out);
}
.bar a:focus-visible .bar__tip, .bar button:focus-visible .bar__tip { opacity: 1; translate: -50% 0; }
@media (hover: hover) {
  .bar__link:hover { color: var(--ink); }
  .bar__link:hover, .bar__home:hover { background-color: var(--paper-2); }
  .bar__cta:hover { background: #2b2b29; }
  .bar a:hover .bar__tip, .bar button:hover .bar__tip { opacity: 1; translate: -50% 0; }
}
/* Sous 800 px, la barre touche presque le bord de l'écran : la bulle du logo part de son bord gauche
   au lieu d'être centrée, sinon elle sort de l'écran à gauche */
@media (max-width: 800px) {
  .bar__home .bar__tip { left: 0; translate: 0 6px; }
  .bar a.bar__home:focus-visible .bar__tip { translate: 0 0; }
}
@media (max-width: 800px) and (hover: hover) {
  .bar a.bar__home:hover .bar__tip { translate: 0 0; }
}
@media (max-width: 640px) {
  .bar { bottom: calc(10px + env(safe-area-inset-bottom)); padding: 5px; }
  .bar__home, .bar__link { width: 42px; height: 42px; }
  .bar__home { margin-right: 0; }
  .bar__home img { width: 30px; height: 30px; }
  .bar__link svg { width: 21px; height: 21px; }
  .bar .bar__opt { display: none; }
  .bar__sep { margin-inline: 3px; }
  .bar__cta { min-height: 42px; margin-left: 2px; padding-inline: 1.05em; font-size: .875rem; }
  .bar__cta-l { display: none; }
  .bar__cta-s { display: inline; }
}
/* Petits écrans (320 à 374 px) : la barre doit tenir en entier */
@media (max-width: 374px) {
  .bar__home, .bar__link { width: 36px; height: 36px; }
  .bar__home img { width: 26px; height: 26px; }
  .bar__link svg { width: 19px; height: 19px; }
  .bar__sep { display: none; }
  .bar__cta { min-height: 38px; padding-inline: .75em; font-size: .8125rem; }
}
.motion .bar { animation: bar-in .8s var(--ease-out) .5s both; }
@keyframes bar-in { from { translate: 0 calc(100% + 30px); opacity: 0; } }

/* Bouton « Toutes les pages » : la liste de toutes les pages, au-dessus de la barre.
   popover natif : s'ouvre et se ferme sans JavaScript (Échap et toucher à côté compris).
   .is-open = repli de site.js pour les navigateurs sans popover (règles séparées : un sélecteur
   inconnu ferait tomber toute la règle). Icône « menu » au repos, croix quand la liste est ouverte. */
.bar__menu { padding: 0; border: 0; background-color: transparent; cursor: pointer; }
.bar__menu-x { display: none; }
.bar:has(.menu:popover-open) .bar__menu { color: var(--ink); }
.bar:has(.menu:popover-open) .bar__menu-i, .bar:has(.menu:popover-open) .bar__menu .bar__tip { display: none; }
.bar:has(.menu:popover-open) .bar__menu-x { display: block; }
.bar:has(.menu.is-open) .bar__menu { color: var(--ink); }
.bar:has(.menu.is-open) .bar__menu-i, .bar:has(.menu.is-open) .bar__menu .bar__tip { display: none; }
.bar:has(.menu.is-open) .bar__menu-x { display: block; }
.menu {
  display: none;
  position: fixed; z-index: 61;
  inset: auto 0 calc(86px + env(safe-area-inset-bottom));
  width: min(440px, calc(100% - 16px)); height: auto;
  max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px - env(safe-area-inset-bottom));
  margin: 0 auto; padding: 6px 8px 10px; overflow: auto; overscroll-behavior: contain;
  border: 1px solid var(--line); border-radius: 22px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 1px 2px rgba(10, 10, 10, .06), 0 24px 60px -20px rgba(10, 10, 10, .5);
}
.menu:popover-open { display: block; }
.menu.is-open { display: block; }
.menu__h { padding: 12px 8px 4px; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bar .menu__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 6px; }
.menu__link {
  display: block; padding: 8px; border-radius: 10px;
  color: var(--ink); font-size: .9375rem; font-weight: 500; line-height: 1.3; text-decoration: none;
  transition: background-color .2s;
}
.menu__link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .25em; }
.menu__link:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 10px; }
@media (hover: hover) { .menu__link:hover { background-color: var(--paper-2); } }
@media (prefers-reduced-motion: no-preference) {
  .menu:popover-open { transition: opacity .2s, translate .35s var(--ease-out); }
  @starting-style { .menu:popover-open { opacity: 0; translate: 0 10px; } }
}
@media (max-width: 640px) { .menu { bottom: calc(72px + env(safe-area-inset-bottom)); } }
@media (forced-colors: active) { .menu { border-color: CanvasText; } }

/* ---------- 1. Hero ---------- */
.hero {
  --p: 0;
  --cw: clamp(124px, 16vw, 252px);
  position: relative;
  display: flex; flex-direction: column;
  min-height: min(100vh, 1000px);
  min-height: min(100svh, 1000px);
  padding-top: clamp(48px, 10vh, 120px);
  overflow: clip;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 76px 76px;
  background-position: center -1px;
  opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 34%, #000 18%, transparent 74%);
  mask-image: radial-gradient(ellipse 72% 62% at 50% 34%, #000 18%, transparent 74%);
}
.hero__inner {
  position: relative; z-index: 4;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-inline: var(--pad);
}
.hero__title {
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.35rem, .9rem + 6.2vw, 7.4rem);
  line-height: .94;
  letter-spacing: -.015em;
}
.hero__kicker {
  display: inline-flex; align-items: center; gap: .65em;
  margin-bottom: clamp(22px, 3.4vh, 36px);
  font-family: var(--text); font-weight: 500; text-transform: none; letter-spacing: 0;
  font-size: clamp(.875rem, .82rem + .25vw, 1rem); line-height: 1.3;
  text-wrap: balance;
}
/* Sur mobile, la phrase tient sur deux lignes : on resserre la boîte pour garder l'étincelle collée au texte */
@media (max-width: 640px) { .hero__kicker { max-width: 27ch; text-align: left; } }
.hero__line { display: block; overflow: hidden; padding: .06em .1em .1em; margin-block: -.06em -.1em; }
.hero__line:last-child { padding-bottom: .22em; margin-bottom: -.22em; }
/* Le M en script dépasse au-dessus de la ligne : on lui laisse de la place */
.hero__line:has(.s) { padding-top: .3em; margin-top: -.3em; }
.hero__line > span { display: block; }
.hero__sub {
  max-width: 56ch; margin-top: clamp(22px, 3.4vh, 34px);
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--muted); text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(24px, 3.6vh, 34px); }
.hero__rating {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px;
  margin-top: 18px; font-size: .9375rem; font-weight: 500;
}
.hero__rating a { color: var(--muted); }
.stars, .score__stars { display: inline-flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; }

/* Éventail de réalisations */
.fan {
  position: relative; z-index: 2;
  flex: none; margin-top: auto;
  height: calc(var(--cw) * 1.05);
  pointer-events: none;
}
.fan__card {
  position: absolute; left: 50%; bottom: calc(var(--cw) * -.42);
  width: var(--cw); margin-left: calc(var(--cw) / -2);
  aspect-ratio: 1 / 1.414;   /* format A4 */
  z-index: var(--z);
  transform-origin: 50% 100%;
  translate: calc(var(--x) * (1 + var(--p) * .45)) calc(var(--y) - var(--p) * 22%);
  rotate: calc(var(--r) * (1 + var(--p) * .9));
}
@media (max-width: 600px) and (min-height: 700px) { .hero { --cw: clamp(124px, 40vw, 170px); } }
/* Feuilles de papier : coins nets, grain, reflet et ombre portée en plusieurs couches */
.fan__card {
  isolation: isolate;
  background: var(--paper-tex);
  box-shadow:
    0 0 0 .5px rgba(10, 10, 10, .1),
    0 1px 1.5px rgba(10, 10, 10, .16),
    0 5px 10px -2px rgba(10, 10, 10, .16),
    0 18px 30px -10px rgba(10, 10, 10, .3),
    0 40px 64px -28px rgba(10, 10, 10, .45);
}
.fan__card img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  border-radius: 0;
  mix-blend-mode: multiply;   /* l'image prend le grain du papier */
}
.fan__card::after, .pile__sheet::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--paper-sheen);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 0 22px rgba(40, 30, 15, .07);
}
/* Survol à la souris : l'affiche se soulève un peu et passe devant les autres (sans zoom, unslop 02/12).
   Au scroll, site.js remplace chaque affiche par la feuille du flot qui porte la même création. */
@media (hover: hover) and (pointer: fine) {
  .motion .fan__card { pointer-events: auto; transition: transform .3s var(--ease-out); }
  .motion .fan__card:hover { transform: translateY(-8px); z-index: 10; }
}

/* Animations d'ouverture (CSS seul) */
/* Courtes, et l'affiche du milieu est visible dès le départ (c'est la plus grande image de l'écran :
   si elle démarre transparente, Google compte la page comme lente). */
.motion .hero__line > span { animation: line-up .9s var(--ease-out) both; animation-delay: calc(.05s + var(--d) * .08s); }
.motion .hero .s { animation: write .9s var(--ease-io) .3s both; }
.motion .hero__kicker { animation: fade-up .7s var(--ease-out) both; }
.motion .hero__sub { animation: fade-up .7s var(--ease-out) .2s both; }
.motion .hero__actions { animation: fade-up .7s var(--ease-out) .28s both; }
.motion .hero__rating { animation: fade-up .7s var(--ease-out) .36s both; }
.motion .fan__card { animation: deal 1.1s var(--ease-out) .15s backwards; }

@keyframes line-up { from { transform: translateY(108%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes deal { from { translate: 0 14%; rotate: 0deg; } }
@keyframes write {
  from { clip-path: inset(-150% 150% -150% -50%); }
  to { clip-path: inset(-150% -15% -150% -50%); }
}

/* ---------- Intro : le logo s'écrit à la main, puis un pinceau peint la page (accueil seulement, voir site.js) ----------
   Le script du <head> pose .intro et .intro-cover. Le voile noir couvre la page dès la première image ;
   si site.js ne prend pas le relais, il s'efface seul après 2,4 s. Le logo s'écrit en blanc, puis un pinceau
   blanc (.brush-svg) recouvre tout de la couleur du papier. Pendant l'intro, la page est peinte
   au repos dessous (animations d'ouverture retenues : l'affiche du milieu est déjà affichée pour Google),
   puis elles partent quand le voile s'en va. */
.intro-cover::before, .brush-cover::before, .intro-ov {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
}
.intro-cover::before { content: ""; animation: intro-safe .3s 2.4s forwards; }
/* D'une page à l'autre (site.js) : la nouvelle page arrive sous un écran noir que le pinceau efface.
   Si site.js ne vient pas, cet écran s'efface seul après 1,5 s. */
.brush-cover::before { content: ""; animation: intro-safe .3s 1.5s forwards; }
.brush-ov { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
@keyframes intro-safe { to { opacity: 0; visibility: hidden; } }
.intro-ov { display: grid; place-items: center; color: var(--paper); }
.intro-ov__logo { width: min(520px, 74vw); margin-bottom: 3vh; }
.intro-ov svg { display: block; width: 100%; height: auto; }
.intro-ov .brush-svg, .brush-ov .brush-svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.intro .bar, .intro .hero__line > span, .intro .hero .s, .intro .hero__kicker, .intro .hero__sub,
.intro .hero__actions, .intro .hero__rating, .intro .fan__card { animation: none; }

/* ---------- D'une page à l'autre ----------
   Transition native du navigateur (Chrome, Edge, Safari 18.2 et plus) : pas d'écran blanc.
   Chrome et Edge préparent la page suivante dès le survol du lien (speculationrules dans le <head>) :
   au clic, elle est déjà là ; ses animations d'ouverture ne partent qu'à ce moment.
   L'ancienne page s'efface en 0,12 s, la nouvelle apparaît en 0,3 s (elles ne se superposent presque pas :
   pas de double image) ; ses propres apparitions font le reste. La barre du bas ne bouge pas :
   seul son point glisse jusqu'à la nouvelle page (il naît ou s'éteint sur place si l'une des deux n'en a pas).
   .nav = on arrive d'une autre page du site. Sans transition native (.novt) : simple fondu d'arrivée. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.bar { view-transition-name: bar; }
::view-transition-old(root) { animation: vt-out .12s cubic-bezier(.3, 0, .7, 1) both; mix-blend-mode: normal; }
::view-transition-new(root) { animation: vt-in .3s var(--ease-out) .1s both; mix-blend-mode: normal; }
::view-transition-group(bar-dot) { animation-duration: .5s; animation-timing-function: var(--ease-out); }
::view-transition-old(bar-dot) { animation: none; opacity: 0; }   /* même point des deux côtés : un seul, qui glisse */
::view-transition-new(bar-dot) { animation: none; mix-blend-mode: normal; }
::view-transition-old(bar-dot):only-child { opacity: 1; animation: dot-out .4s var(--ease-out) both; }
::view-transition-new(bar-dot):only-child { animation: dot-in .4s var(--ease-out) both; }
.nav .bar { animation: none; }
.novt.nav main, .novt.nav .ftr { animation: vt-in .45s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
@keyframes dot-out { to { opacity: 0; scale: 0; } }
@keyframes dot-in { from { opacity: 0; scale: 0; } }

/* ---------- Transition : la pile de créations ----------
   Actif seulement avec la classe .pin (ajoutée par site.js si les animations sont permises
   et l'écran assez haut). Sinon : pas d'épinglage, pas de pile, la page défile normalement. */
.pile { display: none; }
.pin .stage {
  position: relative; z-index: 2;
  height: calc(100vh + var(--fill-d) + var(--leave-d));
  pointer-events: none;
}
.pin .stage__pin {
  position: sticky; top: 0;
  height: 100vh; overflow: clip;
  background: var(--paper);
  pointer-events: auto;
}
.pin .hero { height: 100vh; height: 100svh; min-height: 0; }
.pin .stage.is-covered .stage__pin { background: transparent; pointer-events: none; }
.pin .stage.is-covered .hero { opacity: 0; }
.pin .pile { display: block; position: absolute; inset: 0; z-index: 6; overflow: hidden; pointer-events: none; }
.pile__under { position: absolute; inset: 0; background: var(--ink); opacity: 0; }
.pile__sheet {
  position: absolute; left: 0; top: 0;
  visibility: hidden;
  isolation: isolate;
  background: var(--paper-tex);
  box-shadow:
    0 0 0 .5px rgba(10, 10, 10, .12),
    0 1px 2px rgba(10, 10, 10, .2),
    0 6px 12px -2px rgba(10, 10, 10, .2),
    0 24px 40px -12px rgba(10, 10, 10, .36),
    0 60px 100px -36px rgba(10, 10, 10, .55);
  backface-visibility: hidden;
  will-change: transform;
}
.pile__sheet img {
  display: block; width: 100%; height: 100%; max-width: none; object-fit: cover;
  mix-blend-mode: multiply;
}

/* ---------- 2. L'agence : le manifeste (fond noir, texte qui s'allume au scroll) ---------- */
.manifest { position: relative; z-index: 1; background: var(--ink); color: var(--paper); }
.manifest__pin {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: clamp(104px, 13vw, 190px) var(--pad) clamp(64px, 8vw, 120px);
  overflow: hidden;
}
/* Fond pointillé */
.manifest__pin::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(250, 250, 248, .17) 1px, transparent 1.6px);
  background-size: 24px 24px;
  background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 25%, transparent 78%);
}
.manifest .eyebrow { justify-content: center; color: var(--muted-inv); }
.manifest__title {
  max-width: 19ch;
  font-family: var(--text); font-weight: 500; text-transform: none;
  font-size: clamp(2.2rem, .7rem + 5.2vw, 6.1rem);
  line-height: 1.04; letter-spacing: -.045em;
  text-wrap: balance;
}
.manifest__title .s { font-size: 1.6em; letter-spacing: 0; padding: 0 .02em 0 .04em; }
.manifest__text {
  max-width: 60ch; margin-top: clamp(28px, 4.4vh, 48px);
  color: var(--muted-inv);
  font-size: clamp(1rem, .95rem + .3vw, 1.1875rem);
  text-wrap: pretty;
}
.manifest__more { padding-bottom: clamp(88px, 11vw, 168px); }
.manifest .assets { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
.manifest .assets li { border-top-color: var(--paper); }
.manifest .assets p { color: var(--muted-inv); }

/* Mode épinglé : la section remonte sous la pile, puis reste fixe le temps de lire */
.pin .manifest {
  margin-top: calc(-100vh - var(--leave-d));
  scroll-margin-top: calc(-1 * var(--leave-d));   /* arrivée par #agence : les feuilles sont parties */
}
.pin .manifest__track { height: calc(100vh + var(--leave-d) + var(--read-d)); }
.pin .manifest__pin { position: sticky; top: 0; height: 100vh; padding-block: 0 72px; }

/* Les 4 atouts */
.assets {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 40px);
}
.assets li { border-top: 1.5px solid var(--ink); padding-top: 20px; }
.assets__num { font-family: var(--display); font-weight: 900; font-size: .875rem; }
.assets h3 {
  margin: 14px 0 8px;
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); line-height: 1.12;
}
@media (max-width: 980px) { .manifest .assets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .manifest .assets { grid-template-columns: minmax(0, 1fr); } }

/* Les 4 atouts racontés au scroll (html.telling, posé par site.js).
   Références Awwwards : Weflash (cartes qui passent sur une scène figée) et Alister (cartes empilées).
   L'écran se fige ; à chaque atout une création imprimée arrive sur la pile et enfonce
   les précédentes ; le titre change mot à mot, dans le sens du défilement. */
.tell__bar, .tell__pile { display: none; }
.telling .manifest__more { padding-bottom: 0; }
.telling .manifest { overflow-x: clip; }   /* les cartes arrivent de hors écran ; clip garde l'épinglage */
.telling .tell { height: calc(100vh + var(--tell-d)); }
.telling .tell__pin {
  position: sticky; top: 0; height: 100vh;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center;
  gap: clamp(32px, 5vw, 96px);
  padding-bottom: 72px;   /* place pour la barre flottante */
}
.telling .manifest .assets { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.telling .manifest .assets li { grid-area: 1 / 1; border-top: 0; padding-top: 0; }
.telling .manifest .assets__num { display: block; margin-bottom: clamp(16px, 3vh, 30px); font-size: .9375rem; }
.telling .manifest .assets__num::after { content: " / 04"; color: var(--muted-inv); }
.telling .manifest .assets h3 {
  margin: 0 0 clamp(16px, 2.6vh, 26px);
  font-size: clamp(2.1rem, .9rem + 3.1vw, 4.4rem); line-height: .98; letter-spacing: -.01em;
}
.telling .manifest .assets p { max-width: 32ch; font-size: clamp(1.0625rem, .98rem + .4vw, 1.375rem); line-height: 1.5; }
/* Changement d'atout : numéro et texte glissent, le titre passe mot à mot dans un masque */
.telling .manifest .assets li > :not(h3) {
  opacity: 0; translate: 0 22px;
  transition: opacity .45s var(--ease-out), translate .6s var(--ease-out);
}
.telling .manifest .assets li.is-past > :not(h3) { translate: 0 -22px; }
.telling .manifest .assets li.is-cur > :not(h3) { opacity: 1; translate: none; transition-delay: .25s; }
.tell .w { display: inline-block; vertical-align: top; overflow: clip; padding-block: .16em .08em; margin-block: -.16em -.08em; }
.tell .w > span { display: inline-block; }
.telling .tell .w > span { translate: 0 140%; transition: translate .8s var(--ease-out) calc(var(--wi, 0) * 40ms); }
.telling .tell li.is-past .w > span { translate: 0 -140%; transition-duration: .5s; }
.telling .tell li.is-cur .w > span { translate: none; transition-delay: calc(.1s + var(--wi, 0) * 55ms); }
/* Progression : un segment par atout */
.telling .tell__bar {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
  max-width: 280px; margin-top: clamp(28px, 5vh, 52px);
}
.tell__bar > span { position: relative; height: 2px; overflow: hidden; background: var(--line-inv); }
.tell__bar > span::before {
  content: ""; position: absolute; inset: 0; background: var(--paper);
  transform-origin: 0 50%; transform: scaleX(var(--f, 0));
}
/* La pile de créations */
.telling .tell__pile { display: block; position: relative; height: min(68vh, 640px); perspective: 1600px; }
.tell__card {
  position: absolute; left: 50%; top: 50%;
  width: min(100%, 580px); margin: 0;
  padding: 10px 10px 0; border-radius: 6px;
  background: var(--paper-tex); color: var(--ink);
  box-shadow: 0 34px 70px -24px rgba(0, 0, 0, .8), 0 2px 6px rgba(0, 0, 0, .35);
  transform: translate(-50%, -50%);
  visibility: hidden;
  will-change: transform;
}
.tell__card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 3px; }
/* Illustrations dessinées dans le style du site : encre sur papier, aplats, hachures, étincelles.
   Elles se tracent quand leur carte se pose sur la pile (classe .is-drawn posée par site.js). */
.tell__ill { --ill-bg: #ebe8df; display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 3px; background: var(--ill-bg); color: var(--ink); }
.tell__ill .d { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.tell__ill .thin { stroke-width: 2.5; }
.tell__ill .dot { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: .5 9; }
.tell__ill .k, .tell__ill .t { fill: currentColor; }
.tell__ill .p { fill: var(--ill-bg); }
.tell__ill .p-st { stroke: var(--ill-bg); }
.tell__ill .t { font-family: var(--display); font-weight: 900; font-size: 20px; letter-spacing: .04em; }
.tell__ill .ts { font-family: var(--script); font-weight: 400; letter-spacing: 0; }
.tell__ill .halo { fill: var(--ill-bg); stroke: var(--ill-bg); stroke-width: 14px; stroke-linejoin: round; }
.tell__ill .thick { stroke: currentColor; stroke-width: 1.6px; stroke-linejoin: round; }
.telling .tell__ill .d { stroke-dasharray: 1 1.1; stroke-dashoffset: 1.05; transition: stroke-dashoffset .3s ease-in; }
.telling .tell__ill .k, .telling .tell__ill .t, .telling .tell__ill .dot { opacity: 0; transition: opacity .25s; }
.telling .tell__card.is-drawn .tell__ill .d {
  stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s cubic-bezier(.55, .1, .3, 1) calc(var(--o, 0) * 130ms);
}
.telling .tell__card.is-drawn .tell__ill .k,
.telling .tell__card.is-drawn .tell__ill .t,
.telling .tell__card.is-drawn .tell__ill .dot { opacity: 1; transition: opacity .6s var(--ease-out) calc(.45s + var(--o, 0) * 130ms); }
.tell__card figcaption {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 11px 4px 13px; font-size: .8125rem; font-weight: 500; line-height: 1.2;
}
.tell__card figcaption span:last-child { color: var(--muted); }
.tell__shade { position: absolute; inset: 0; border-radius: inherit; background: var(--ink); opacity: 0; pointer-events: none; }
/* Tablette et téléphone : la pile au-dessus, le texte dessous */
@media (max-width: 900px) {
  .telling .tell__pin {
    grid-template-columns: minmax(0, 1fr); align-content: center; align-items: start;
    gap: clamp(18px, 3vh, 32px); padding-top: 16px;
  }
  .telling .tell__pile { order: -1; height: min(40vh, 380px); }
  .tell__card { width: min(78vw, 460px); padding: 7px 7px 0; }
  .tell__card figcaption { padding: 9px 3px 10px; font-size: .75rem; }
  .telling .manifest .assets__num { margin-bottom: 12px; }
  .telling .manifest .assets h3 { margin-bottom: 12px; font-size: clamp(1.7rem, 1.1rem + 2.6vw, 2.6rem); }
  .telling .manifest .assets p { font-size: 1.0625rem; }
  .telling .tell__bar { margin-top: 22px; max-width: none; }
}

/* ---------- 4. Notre expertise ----------
   Référence : Greyhead Studio. De grandes tuiles : la description en haut à gauche, le numéro en haut à droite,
   le nom du métier et un mot géant en bas, la flèche en bas à droite. Une tuile pleine largeur, puis deux par deux. */
.xp-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30ch);
  align-items: end; gap: 24px clamp(32px, 5vw, 96px);
  margin-bottom: clamp(40px, 5vw, 80px);
}
.xp-head__title { font-size: clamp(2.3rem, .6rem + 5.4vw, 6.6rem); line-height: .94; max-width: 13ch; }
/* 320 px : « DEVANTURES, » doit tenir sur la ligne */
@media (max-width: 400px) { .xp-head__title { font-size: min(2.3rem, 10.4vw); } }
.xp-head .lead { margin-top: 0; padding-bottom: .5em; }
/* les tuiles prennent presque tout l'écran : toute la largeur (10 px de marge) et presque toute la hauteur */
.xp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-inline: 10px; }
.xp__card {
  position: relative; container-type: inline-size; overflow: hidden;
  height: clamp(520px, calc(100svh - 20px), 1200px); border-radius: 14px;
  background: var(--ink); color: var(--paper);
}
.xp__card--wide { grid-column: 1 / -1; }
.xp__media { position: absolute; inset: 0; }
.xp__media > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-out); }
.xp__spark { position: absolute; left: 50%; top: 30%; width: 22%; height: auto; translate: -50% 0; transition: rotate 1.2s var(--ease-out), scale 1.2s var(--ease-out); }
.xp__card--wide .xp__spark { left: auto; right: 12%; top: 50%; width: 15%; translate: 0 -50%; }
/* Logo : l'icône d'AJA Formation, blanche sur le rouge de sa marque (le reste du site reste noir et blanc) */
.xp__card--red { background: #e31e24; }
.xp__hex { position: absolute; right: 9%; top: 50%; height: 62%; width: auto; aspect-ratio: 100 / 112; translate: 0 -50%; color: var(--paper); transition: scale 1.2s var(--ease-out); }
@media (max-width: 760px) { .xp__hex { right: auto; left: 50%; top: 22%; height: 40%; translate: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .xp__hex { transition: none; } }
/* Toutes les tuiles : un fond uni et une grande icône (Lucide) */
.xp__card { --bg: var(--ink); }
.xp__card--red { --bg: #e31e24; }
.xp__card--blue { --bg: #1f6f8f; background: var(--bg); }
.xp__card--green { --bg: #3f7a24; background: var(--bg); }
.xp__card--paper { --bg: #e9e8e3; background: var(--bg); color: var(--ink); }
.xp__icon { position: absolute; left: 50%; top: 46%; width: 62%; height: auto; aspect-ratio: 1; translate: -50% -50%; color: currentColor; transition: scale 1.2s var(--ease-out); }
@media (hover: hover) {
  .xp__card--paper:hover .xp__arrow { background-color: var(--ink); color: var(--paper); }
}
@media (max-width: 760px) { .xp__icon { top: 46%; width: 76%; } }
@media (prefers-reduced-motion: reduce) { .xp__icon { transition: none; } }
.xp__desc {
  position: absolute; left: clamp(18px, 2vw, 26px); top: clamp(16px, 1.8vw, 24px); z-index: 2;
  max-width: min(36ch, 72%); font-size: clamp(1rem, .9rem + .35vw, 1.25rem); line-height: 1.4; pointer-events: none;
}
.xp__ex { display: block; margin-top: 8px; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; opacity: .85; }
.xp__num {
  position: absolute; right: clamp(18px, 2vw, 26px); top: clamp(16px, 1.8vw, 24px); z-index: 2;
  font-size: clamp(1rem, .9rem + .35vw, 1.25rem); pointer-events: none;
}
.xp__name {
  position: absolute; left: clamp(18px, 2vw, 26px); bottom: calc(var(--lift) + var(--bs) * .8 + 14px); z-index: 2;
  font-family: var(--text); font-weight: 600; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase;
}
.xp__name a { text-decoration: none; }
.xp__name a::after { content: ""; position: absolute; inset: -100vmax; }   /* toute la tuile est cliquable */
/* --bs : taille du mot géant ; --lift : sa hauteur au-dessus du bas de la tuile (il ne touche plus le bord) */
.xp__card { isolation: isolate; --bs: 16.5cqi; --lift: clamp(18px, 2.4vw, 34px); }
.xp__card--wide { --bs: 11cqi; }
.xp__name a:focus-visible { outline: none; }
.xp__card:has(a:focus-visible) { outline: 3px solid var(--ink); outline-offset: 4px; }
.xp__big {
  position: absolute; left: clamp(12px, 1.4vw, 20px); bottom: var(--lift); z-index: 2; pointer-events: none;
  font-family: var(--text); font-weight: 500; font-size: var(--bs); line-height: .8; letter-spacing: -.06em; white-space: nowrap;
}
.xp__arrow {
  position: absolute; right: clamp(12px, 1.6vw, 22px); bottom: var(--lift); z-index: 2; pointer-events: none;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  transition: rotate .5s var(--ease-out), background-color .4s, color .4s;
}
.xp__arrow svg { width: 30px; height: 30px; }
@media (hover: hover) {
  .xp__card:hover .xp__spark { rotate: 90deg; }
  .xp__card:hover .xp__arrow { rotate: -45deg; background-color: var(--paper); color: var(--ink); }
}
.xp__card:focus-within .xp__arrow { rotate: -45deg; }
@media (max-width: 760px) {
  .xp { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-inline: 8px; }
  .xp__card, .xp__card--wide { height: clamp(460px, calc(100svh - 96px), 820px); }
  .xp-head { grid-template-columns: minmax(0, 1fr); }
  .xp__card--wide .xp__spark { left: 50%; right: auto; top: 34%; width: 26%; translate: -50% 0; }
  .xp__card--wide { --bs: 16.5cqi; }
  .xp__card--other { --bs: 13cqi; }
  .xp__desc { max-width: 78%; }
  .xp__arrow { width: 44px; height: 44px; }
  .xp__arrow svg { width: 26px; height: 26px; }
}
/* Les dessins se tracent quand leur tuile apparaît */
.xp__card .tell__ill .d { stroke-dashoffset: 0; }   /* jamais cachés par le réglage de la pile 01/4 */
.xp__card .tell__ill .k, .xp__card .tell__ill .t, .xp__card .tell__ill .dot { opacity: 1; }
.io .xp__card .tell__ill .d { stroke-dasharray: 1 1.1; stroke-dashoffset: 1.05; }
.io .xp__card .tell__ill .k, .io .xp__card .tell__ill .t, .io .xp__card .tell__ill .dot { opacity: 0; }
.io .xp__card.is-in .tell__ill .d {
  stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s cubic-bezier(.55, .1, .3, 1) calc(.3s + var(--o, 0) * 150ms);
}
.io .xp__card.is-in .tell__ill .k, .io .xp__card.is-in .tell__ill .t, .io .xp__card.is-in .tell__ill .dot {
  opacity: 1; transition: opacity .6s var(--ease-out) calc(.75s + var(--o, 0) * 150ms);
}
@media (prefers-reduced-motion: reduce) {
  .xp__media > img, .xp__spark, .xp__arrow { transition: none; }
}

/* ---------- 5. Réalisations ----------
   Référence Awwwards : David Estrada. Le mot géant reste figé au centre de l'écran (sticky)
   pendant que les projets, imprimés sur des feuilles, passent dessus à des vitesses différentes (site.js). */
/* Moins de vide entre les tuiles d'expertise et les réalisations */
.services { padding-bottom: 10px; }
.work { padding-top: clamp(64px, 7vw, 112px); padding-bottom: clamp(72px, 9vw, 140px); }
/* Le mot reste figé derrière : les créations passent par-dessus lui. */
.work__stage { position: relative; isolation: isolate; }
.work__stage > .wrap { position: relative; z-index: 1; }
.work__giant {
  position: sticky; top: 0; z-index: 0;
  height: 100vh; margin-bottom: -100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: min(15.5vw, 26vh); line-height: .84; letter-spacing: -.01em; white-space: nowrap;
  pointer-events: none; user-select: none;
}
.work__giant span:first-child { translate: -.32em 0; }
.work__giant span:last-child { translate: .18em 0; }
.work__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(48px, 7vw, 120px);
  align-items: start;
  padding-block: clamp(24px, 6vh, 80px) clamp(40px, 10vh, 120px);
}
/* De grandes images : une grande + une affiche, deux moyennes, une affiche + une grande */
.proj:nth-child(1) { grid-column: 1 / span 8; --r: -1deg; }
.proj:nth-child(2) { grid-column: 9 / span 4; --r: 1.6deg; margin-top: 20vh; }
.proj:nth-child(3) { grid-column: 1 / span 6; --r: .8deg; }
.proj:nth-child(4) { grid-column: 7 / span 6; --r: -1.3deg; margin-top: 18vh; }
.proj:nth-child(5) { grid-column: 1 / span 4; --r: 2deg; margin-top: 6vh; }
.proj:nth-child(6) { grid-column: 5 / span 8; --r: -.6deg; margin-top: 16vh; }
/* Juste l'image : coins arrondis, ombre portée, légère rotation */
.proj__card {
  overflow: hidden; border-radius: 10px;
  box-shadow: 0 2px 4px rgba(10, 10, 10, .1), 0 34px 70px -28px rgba(10, 10, 10, .55);
  rotate: var(--r, 0deg);
  will-change: transform;
}
.proj__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper-2); }
.proj__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.proj--print .proj__media { aspect-ratio: auto; }
.proj--print .proj__media img { height: auto; }
/* Le bouton : collé en haut de l'écran tant qu'on est dans la section, au-dessus du mot et des images */
/* Collé en bas, au-dessus de la barre flottante (14px + 60px de barre + 14px d'écart) */
.work__more {
  position: sticky; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 5;
  display: flex; justify-content: center;
  margin-top: clamp(28px, 4vw, 56px);
  pointer-events: none;
}
@media (max-width: 640px) {
  .work__more { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
.work__more .btn { pointer-events: auto; box-shadow: 0 10px 30px -10px rgba(10, 10, 10, .45); }

@media (max-width: 760px) {
  .work__giant { display: none; }
  .work__grid {
    display: flex; gap: 14px;
    padding-block: 8px 36px;
    padding-inline: var(--pad); margin-inline: calc(var(--pad) * -1);
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
    scrollbar-width: none;
  }
  .work__grid::-webkit-scrollbar { display: none; }
  .work__grid > li, .work__grid > .proj:nth-child(n) { flex: 0 0 84%; scroll-snap-align: start; margin-top: 0; }
  .proj__card { rotate: none; height: 100%; border-radius: 8px; }
  .proj__media, .proj--print .proj__media { aspect-ratio: 4 / 5; }
  .proj--print .proj__media img { height: 100%; object-fit: cover; }
}

/* ---------- 6. Méthode ----------
   Sans la scène : les 4 étapes en colonnes. Avec html.printing (site.js) : l'écran se fige le temps
   de --print-d, un ticket sort de l'imprimante ligne après ligne, deux tampons tombent (BAT, livré). */
.steps { background: var(--ink); color: var(--paper); }
.steps .lead { color: var(--muted-inv); }
.print__count, .ticket__head, .ticket__foot, .print__body, .stamp { display: none; }
.steps__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px); }
.steps__list li { position: relative; padding-top: 30px; border-top: 1.5px solid var(--line-inv); }
.steps__list li::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1.5px; height: 1.5px;
  background: var(--paper); transform-origin: 0 50%;
}
.steps__num {
  display: block; margin-bottom: clamp(24px, 3vw, 40px);
  font-family: var(--display); font-weight: 900;
  font-size: clamp(3.6rem, 2rem + 5vw, 7.2rem); line-height: .85;
  color: transparent; -webkit-text-stroke: 1.5px var(--paper);
  transition: color .5s var(--ease-out);
}
.steps__list li:hover .steps__num { color: var(--paper); }
.steps h3 {
  margin-bottom: 10px;
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); line-height: 1.1;
}
.steps p { color: var(--muted-inv); }
@media (max-width: 980px) { .steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; } }
@media (max-width: 540px) { .steps__list { grid-template-columns: minmax(0, 1fr); } }

/* La scène de l'imprimante */
.printing .steps { padding-block: 0; }
.printing .print { height: calc(100vh + var(--print-d)); }
.printing .print__pin {
  position: sticky; top: 0; height: 100vh;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center;
  gap: clamp(32px, 5vw, 96px);
  padding-bottom: 72px;   /* place pour la barre flottante */
}
.printing .print__text .sec-head { margin-bottom: 0; }
.printing .print__count {
  display: flex; align-items: baseline; gap: .3em; margin-top: clamp(24px, 5vh, 56px);
  font-family: var(--display); font-weight: 900; line-height: .85;
}
.print__num { font-size: clamp(4.5rem, 2.4rem + 6vw, 9rem); color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
.print__of { font-size: clamp(1.2rem, 1rem + .6vw, 1.6rem); color: var(--muted-inv); }
.printing .print__machine { position: relative; align-self: stretch; --slot: 104px; --tw: min(400px, 100%); }
/* Le papier n'est visible qu'au-dessus de la fente */
.printing .print__paper {
  position: absolute; left: 50%; top: 0; bottom: var(--slot); width: var(--tw); translate: -50% 0;
  overflow: hidden;
}
.printing .print__paper::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46px; z-index: 1;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .38));
  pointer-events: none;
}
.printing .ticket {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 30px clamp(18px, 2vw, 28px) 26px;
  background: var(--paper-tex); color: var(--ink);
  will-change: transform;
}
/* Bord déchiré en haut du ticket */
.printing .ticket::before {
  content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 8px;
  background:
    linear-gradient(-45deg, #f8f6f0 5px, transparent 0) 0 100% / 10px 8px repeat-x,
    linear-gradient(45deg, #f8f6f0 5px, transparent 0) 0 100% / 10px 8px repeat-x;
}
.printing .ticket__head {
  display: grid; justify-items: center; gap: 2px; padding-bottom: 18px;
  border-bottom: 1.5px dashed rgba(10, 10, 10, .4);
  font-size: .8125rem; text-align: center; color: var(--muted);
}
.printing .ticket__head strong { font-size: .9375rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); }
.printing .steps__list { display: block; }
.printing .steps__list li {
  display: grid; grid-template-columns: 2.6em minmax(0, 1fr); align-items: baseline;
  padding: 18px 0 20px; border-top: 0; border-bottom: 1.5px dashed rgba(10, 10, 10, .4);
}
.printing .steps__list li::before { display: none; }
.printing .steps__num {
  margin: 0; font-family: var(--text); font-weight: 600; font-size: .875rem; line-height: 1.3;
  color: var(--muted); -webkit-text-stroke: 0; font-variant-numeric: tabular-nums;
}
.printing .steps__list li:hover .steps__num { color: var(--muted); }
.printing .steps h3 {
  margin: 0 0 6px; font-family: var(--text); font-weight: 600; letter-spacing: .08em;
  font-size: clamp(.9375rem, .9rem + .2vw, 1.0625rem); line-height: 1.3;
}
.printing .steps__list p { grid-column: 2; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.printing .ticket__foot {
  display: block; height: 46px; margin: 22px 8% 0;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 17px);
  opacity: .85;
}
/* Les tampons */
.printing .stamp {
  display: block; position: absolute; right: 2px; top: 12px;   /* à côté du titre, sans cacher le texte */
  padding: .32em .55em .26em; border: 3px solid currentColor; border-radius: 6px;
  font-family: var(--display); font-weight: 900; font-size: clamp(.9375rem, .85rem + .3vw, 1.125rem);
  line-height: 1; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
  color: var(--ink); mix-blend-mode: multiply;
  opacity: 0; rotate: -9deg; scale: 2;
  transition: opacity .1s linear, scale .32s cubic-bezier(.3, 1.5, .55, 1);
}
.printing li:last-child .stamp { rotate: 7deg; right: 14px; }
.printing li.is-stamped .stamp { opacity: .82; scale: 1; }
/* L'imprimante : corps sombre, fente noire d'où sort le papier */
.printing .print__body {
  display: block; position: absolute; left: 50%; bottom: 14px; translate: -50% 0;
  width: min(calc(var(--tw) + 56px), 100%); height: calc(var(--slot) - 14px);
  border-radius: 16px 16px 22px 22px;
  background: linear-gradient(#2a2a27, #121211 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -2px 0 rgba(0, 0, 0, .6), 0 30px 60px -24px rgba(0, 0, 0, .9);
}
.printing .print__body::after {
  content: ""; position: absolute; right: 22px; bottom: 22px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--paper); box-shadow: 0 0 10px 2px rgba(250, 250, 248, .45);
}
.printing .print__slot {
  position: absolute; left: 20px; right: 20px; top: 0; height: 9px; translate: 0 -50%;
  border-radius: 5px; background: #000;
  box-shadow: inset 0 3px 4px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .1);
}
@media (max-width: 900px) {
  .printing .print__pin {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
    align-items: stretch; gap: 6px; padding-top: clamp(28px, 6vh, 56px);
  }
  .printing .print__count { display: none; }
  .printing .print__machine { --slot: 92px; --tw: min(360px, 100% - 28px); }
  .printing .steps__list p { font-size: .875rem; }
  .printing .stamp { font-size: .75rem; border-width: 2px; top: 6px; right: 0; }
  .printing li:last-child .stamp { right: 8px; }
}

/* Infos manquantes : visibles exprès, à remplacer avant la mise en ligne */
.todo {
  padding: .05em .35em; border-radius: 4px;
  background: rgba(10, 10, 10, .06);
  outline: 1.5px dashed rgba(10, 10, 10, .5); outline-offset: 1px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- 8. Avis ---------- */
.reviews { border-top: 1px solid var(--line); }
.reviews__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(36px, 6vw, 100px); align-items: start; }
.score { display: grid; justify-items: start; gap: 10px; padding-top: 24px; border-top: 1.5px solid var(--ink); }
.score__num { font-family: var(--display); font-weight: 900; font-size: clamp(5rem, 3rem + 6vw, 9rem); line-height: .82; letter-spacing: -.02em; }
.score__stars { display: flex; gap: 4px; margin-top: .4em; }
.score__stars svg { width: 22px; height: 22px; }
/* L'étoile Lucide dans le titre, sans fond */
.h2__star { display: inline-block; width: .74em; height: .74em; margin: 0 .02em; vertical-align: -.02em; }
/* Citation découpée en lignes par site.js (texte complet gardé pour les lecteurs d'écran) */
.quote-big .ln { display: block; overflow: clip; padding-block: .06em .14em; margin-block: -.06em -.14em; }
.quote-big .ln > span { display: inline-block; }
.score__count { color: var(--muted); margin-bottom: 14px; }
.quote-big { padding-top: 24px; border-top: 1.5px solid var(--ink); }
.quote-big blockquote { margin: 0; }
.quote-big blockquote p {
  font-weight: 500; letter-spacing: -.025em; text-wrap: balance;
  font-size: clamp(1.8rem, 1.05rem + 2.9vw, 3.9rem); line-height: 1.1;
}
.quote-big figcaption { display: flex; align-items: center; gap: 14px; margin-top: clamp(28px, 3vw, 44px); font-weight: 600; line-height: 1.35; }
.quote-big__avatar {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font-family: var(--display); font-weight: 900; font-size: 1.1rem;
}
.quote-big__src { font-weight: 400; color: var(--muted); font-size: .9375rem; }
.reviews__legal { margin-top: clamp(44px, 5vw, 72px); font-size: .875rem; color: var(--muted); }
@media (max-width: 880px) { .reviews__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 9. FAQ ---------- */
.faq { padding-top: 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 100px); align-items: start; }
.faq__head { position: sticky; top: 40px; }
.faq__list { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: clamp(20px, 2.2vw, 28px);
  list-style: none; cursor: pointer;
  font-weight: 600; font-size: clamp(1.0625rem, 1rem + .4vw, 1.3rem); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5v14'/%3E%3C/svg%3E") center / 26px no-repeat;   /* Lucide « plus » */
  transition: rotate .45s var(--ease-out), background-color .25s;
}
.faq details[open] summary::after { rotate: 45deg; }
@media (hover: hover) {
  .faq summary:hover::after { background-color: var(--paper-2); }
}
.faq__a p { max-width: 60ch; padding: 0 64px clamp(22px, 2.4vw, 30px) 0; color: var(--muted); }
/* La réponse glisse doucement sous la question (référence Awwwards : KOTA) */
.motion .faq .faq__a p { opacity: 0; translate: 0 -10px; transition: opacity .3s var(--ease-out), translate .45s var(--ease-out); }
.motion .faq details[open] .faq__a p { opacity: 1; translate: none; transition-delay: .12s; }
@starting-style { .motion .faq details[open] .faq__a p { opacity: 0; translate: 0 -10px; } }
@supports selector(::details-content) {
  .motion .faq { interpolate-size: allow-keywords; }
  .motion .faq details::details-content {
    block-size: 0; overflow: clip;
    transition: block-size .45s var(--ease-out), content-visibility .45s allow-discrete;
  }
  .motion .faq details[open]::details-content { block-size: auto; }
}
@media (max-width: 880px) {
  .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .faq__head { position: static; }
  .faq__a p { padding-right: 0; }
}

/* ---------- 10. Devis ---------- */
.quote { background: var(--ink); color: var(--paper); }
.quote .lead { color: var(--muted-inv); }
.quote__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(44px, 7vw, 120px); align-items: start; }
.quote__grid > .form { margin-top: 0; }
.form { display: grid; gap: 26px; margin-top: clamp(36px, 4vw, 52px); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.field { display: grid; gap: 6px; min-width: 0; font-size: .875rem; font-weight: 500; color: var(--muted-inv); }
.field__opt { font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; max-width: 100%; min-width: 0;
  padding: 10px 0 12px;
  border: 0; border-bottom: 1.5px solid var(--line-inv); border-radius: 0;
  background: transparent; color: var(--paper);
  font-size: 1.0625rem;
  transition: border-color .3s, box-shadow .3s;
}
.field select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23fafaf8' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 2px center / 14px no-repeat;
}
.field select option { color: var(--ink); background: var(--paper); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: rgba(250, 250, 248, .5); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-bottom-color: var(--paper); box-shadow: 0 1.5px 0 var(--paper);
}
.field input:-webkit-autofill { -webkit-text-fill-color: var(--paper); caret-color: var(--paper); transition: background-color 9999s; }
.form__note { font-size: .8125rem; color: var(--muted-inv); }
.form__end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__status { flex: 1 1 260px; font-size: 1rem; font-weight: 500; color: var(--paper); }
.form__status:empty { display: none; }

/* Le devis se remplit comme une phrase : les trous sont des champs, les besoins des pastilles */
.form--say { gap: clamp(22px, 2.4vw, 34px); }
.say {
  margin: 0; padding: 0; border: 0; min-width: 0;
  font-size: clamp(1.35rem, .95rem + 1.5vw, 2.25rem); font-weight: 500; line-height: 1.55; letter-spacing: -.01em;
  color: var(--paper); text-wrap: pretty;
}
.blank { display: inline; }
.blank input {
  display: inline-block; vertical-align: baseline;
  width: 8.5em; min-width: 4ch; max-width: 100%;
  margin: 0 .02em 0 .08em; padding: 0 .1em .02em;
  border: 0; border-radius: 0; background: transparent; color: var(--paper);
  font: inherit; line-height: 1.2; letter-spacing: inherit;
  /* le soulignement est un dégradé : il se trace à l'apparition et s'épaissit au focus */
  background-image: linear-gradient(var(--line-inv), var(--line-inv)), linear-gradient(var(--paper), var(--paper));
  background-repeat: no-repeat; background-position: 0 100%, 0 100%;
  background-size: 100% 1.5px, 0 2px;
  transition: background-size .45s var(--ease-out);
}
@supports (field-sizing: content) { .blank input { field-sizing: content; width: auto; } }
.blank input[name="email"] { min-width: 6ch; }
.blank input::placeholder { color: var(--muted-inv); opacity: 1; }
.blank input:hover { background-image: linear-gradient(rgba(250, 250, 248, .5), rgba(250, 250, 248, .5)), linear-gradient(var(--paper), var(--paper)); }
.blank input:focus-visible { outline: none; background-size: 100% 1.5px, 100% 2px; }
.blank input:user-invalid {
  background-image: repeating-linear-gradient(90deg, var(--paper) 0 7px, transparent 7px 12px), linear-gradient(var(--paper), var(--paper));
}
.blank input:-webkit-autofill { -webkit-text-fill-color: var(--paper); caret-color: var(--paper); transition: background-color 9999s; }
.say__lead { float: left; padding: 0; margin-right: .35em; }
.say--chips { display: block; }
.chip { position: relative; display: inline-block; margin: 0 .22em .3em 0; font-size: .58em; line-height: 1; vertical-align: .12em; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: .4em; padding: .55em 1em .6em;
  border: 1.5px solid var(--line-inv); border-radius: 999px;
  transition: background-color .25s, color .25s, border-color .25s;
}
.chip span::before {
  content: ""; width: .42em; height: .42em; border-radius: 50%; background: currentColor;
  scale: 0; margin-right: -.82em; transition: scale .3s cubic-bezier(.3, 1.6, .5, 1), margin .3s var(--ease-out);
}
@media (hover: hover) { .chip:hover span { border-color: var(--paper); } }
.chip input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.chip input:checked + span::before { scale: 1; margin-right: 0; }
.chip input:focus-visible + span { outline: 2px solid var(--paper); outline-offset: 3px; }
.say--chips:has(input:user-invalid) .chip span { border-style: dashed; border-color: var(--paper); }
.form--say .field textarea { min-height: 96px; }
@media (forced-colors: active) {
  .blank input { border-bottom: 1.5px solid CanvasText; }
  .chip input:checked + span { border-width: 3px; }
}
/* Apparition : les soulignés se tracent l'un après l'autre */
.io .form--say[data-reveal] .blank input { background-size: 0 1.5px, 0 2px; transition: background-size .9s var(--ease-out) calc(var(--dl, 0s) + .3s); }
.io .form--say[data-reveal] .say + .say + .say .blank input { transition-delay: calc(var(--dl, 0s) + .55s); }
.io .form--say[data-reveal].is-in .blank input { background-size: 100% 1.5px, 0 2px; }
.io .form--say[data-reveal].is-in .blank input:focus-visible { background-size: 100% 1.5px, 100% 2px; transition-delay: 0s; }
@media (max-width: 960px) { .quote__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .form__row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 11. Pied de page ----------
   Blanc uni et texte noir (pas de texture papier), pour trancher avec la section devis noire juste au-dessus.
   Référence Awwwards : Huxley / King River. Quand il tient dans l'écran (classe .curtain posée par site.js),
   le contenu se lève comme un rideau et le pied de page, resté en place dessous, se découvre. */
.ftr { position: relative; background: var(--paper); color: var(--ink); padding-top: clamp(64px, 8vw, 112px); }
.ftr__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 3vw, 48px); }
.ftr__brand { display: grid; gap: 16px; align-content: start; max-width: 34ch; }
.ftr__coords li { display: flex; align-items: flex-start; gap: .65em; }
.ftr__coords .ico { width: 18px; height: 18px; margin-top: .2em; color: var(--ink); }
.ftr__coords a { overflow-wrap: anywhere; }
.ftr p, .ftr li { color: var(--muted); }
.ftr h2 { margin-bottom: 16px; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.ftr ul { display: grid; gap: 10px; }
.ftr a { color: var(--ink); text-decoration: none; }
.ftr a:hover { text-decoration: underline; }
.ftr__mark { display: block; width: 100%; height: auto; margin-top: clamp(56px, 8vw, 120px); }
.ftr__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: clamp(24px, 3vw, 40px); padding-block: 22px 30px;
  border-top: 1px solid var(--line); font-size: .875rem;
}
@media (max-width: 960px) { .ftr__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .ftr__top { grid-template-columns: minmax(0, 1fr); } }

/* Place pour la barre flottante en bas de page */
.ftr__bottom { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }

/* Le rideau : le contenu passe devant, ses 80 derniers pixels laissent voir le pied de page
   derrière les coins arrondis de la section devis. */
.curtain main {
  position: relative; z-index: 1;
  background: linear-gradient(#fafaf8, #fafaf8) 0 0 / 100% calc(100% - 80px) no-repeat;
}
.curtain .quote {
  border-radius: 0 0 clamp(28px, 4vw, 64px) clamp(28px, 4vw, 64px);
  box-shadow: 0 36px 70px -34px rgba(10, 10, 10, .55);
}
.curtain .ftr {
  position: sticky; bottom: 0; z-index: 0;
  display: flex; flex-direction: column;
  height: 100vh; height: 100svh;
  padding-top: clamp(48px, 7vh, 104px);
}
.curtain .ftr > .wrap { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
/* Le logo prend toute la place qui reste et monte depuis sa ligne de base pendant qu'on découvre le pied de page */
.curtain .ftr__mark {
  flex: 1 1 0; min-height: 0; margin-top: clamp(28px, 5vh, 72px);
  object-fit: contain; object-position: 0 100%;
  clip-path: inset(0 0 calc((1 - var(--fm, 1)) * 100%) 0);
  translate: 0 calc((1 - var(--fm, 1)) * 100%);
}
/* Ombre portée par le contenu qui se lève : elle s'efface quand le pied de page est découvert */
.curtain .ftr::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: #0a0a0a; opacity: calc((1 - var(--f, 1)) * .4);
}

/* ---------- Apparitions au scroll (ajoutées par site.js) ---------- */
.io [data-reveal] {
  opacity: 0; translate: 0 20px;
  transition: opacity .6s var(--ease-out) var(--dl, 0s), translate .8s var(--ease-out) var(--dl, 0s);
}
.io [data-reveal].is-in { opacity: 1; translate: none; }
.io [data-reveal="stagger"] { opacity: 1; translate: none; }
.io [data-reveal="stagger"] > * {
  opacity: 0; translate: 0 18px;
  transition: opacity .6s var(--ease-out) calc(var(--n, 0) * 70ms), translate .75s var(--ease-out) calc(var(--n, 0) * 70ms);
}
.io [data-reveal="stagger"].is-in > * { opacity: 1; translate: none; }
/* Le mot en script s'écrit quand son titre apparaît */
.io [data-reveal] .s { clip-path: inset(-150% 150% -150% -50%); transition: clip-path .85s var(--ease-io) calc(var(--dl, 0s) + .12s); }
/* Marge large en haut et en bas : les hampes du script (l, t) dépassent beaucoup de sa boîte */
.io [data-reveal].is-in .s { clip-path: inset(-150% -15% -150% -50%); }
/* Réalisations : la feuille arrive, l'image se pose */
.io .proj[data-reveal] { opacity: 1; translate: none; }
.io .proj[data-reveal] .proj__card {
  opacity: 0; translate: 0 48px; scale: .97;
  transition: opacity .6s var(--ease-out) var(--dl, 0s), translate .9s var(--ease-out) var(--dl, 0s), scale .9s var(--ease-out) var(--dl, 0s);
}
.io .proj[data-reveal] .proj__media img { scale: 1.08; transition: scale 1.1s var(--ease-out) var(--dl, 0s); }
.io .proj[data-reveal].is-in .proj__card { opacity: 1; translate: none; scale: none; }
.io .proj[data-reveal].is-in .proj__media img { scale: 1; }
/* Survol : la création se soulève un peu et passe au-dessus des autres (sans zoom, unslop 02/12) */
@media (hover: hover) {
  .proj, .io .proj[data-reveal] { position: relative; transition: translate .3s var(--ease-out); }
  .proj:hover, .io .proj[data-reveal]:hover { z-index: 3; translate: 0 -4px; }
}
/* Avis : l'étoile du titre tourne et se pose, les 5 étoiles tombent une à une, la citation monte ligne par ligne */
.io [data-reveal] .h2__star { scale: 0; rotate: -140deg; transition: scale .8s cubic-bezier(.3, 1.5, .5, 1) calc(var(--dl, 0s) + .2s), rotate 1.1s var(--ease-out) calc(var(--dl, 0s) + .2s); }
.io [data-reveal].is-in .h2__star { scale: 1; rotate: 0deg; }
.io .score[data-reveal] .score__stars svg { scale: 0; transition: scale .55s cubic-bezier(.3, 1.6, .5, 1) calc(var(--dl, 0s) + .5s + var(--si, 0) * 110ms); }
.io .score[data-reveal].is-in .score__stars svg { scale: 1; }
.score__stars svg:nth-child(2) { --si: 1; }
.score__stars svg:nth-child(3) { --si: 2; }
.score__stars svg:nth-child(4) { --si: 3; }
.score__stars svg:nth-child(5) { --si: 4; }
.io .quote-big.lines[data-reveal] { opacity: 1; translate: none; }
.io .quote-big.lines .ln > span { translate: 0 108%; transition: translate .85s var(--ease-out) calc(var(--dl, 0s) + var(--li, 0) * 90ms + .05s); }
.io .quote-big.lines.is-in .ln > span { translate: none; }
.io .quote-big.lines figcaption { opacity: 0; translate: 0 14px; transition: opacity .6s var(--ease-out) calc(var(--dl, 0s) + .4s), translate .7s var(--ease-out) calc(var(--dl, 0s) + .4s); }
.io .quote-big.lines.is-in figcaption { opacity: 1; translate: none; }
/* Méthode : le trait se dessine */
.io .steps__list li::before { transform: scaleX(0); transition: transform 1.3s var(--ease-io) calc(var(--n, 0) * 160ms + .2s); }
.io .steps__list.is-in li::before { transform: none; }

/* ---------- Réduire les animations ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* Textes courts sur téléphone : le hero et « L'agence » gardent leur titre entier,
   leur paragraphe passe à une phrase. La version longue reste dans la page sur ordinateur. */
.txt-short { display: none; }
@media (max-width: 600px) {
  .txt-long { display: none; }
  .txt-short { display: inline; }
}

/* =====================================================================
   Pages intérieures (services, réalisations, à propos, contact, Oise, pages légales, 404)
   Mêmes jetons, mêmes polices, mêmes composants que l'accueil. Aucune scène épinglée ici.
   ===================================================================== */

/* Barre flottante : la page en cours (lien vers une autre page, pas une ancre) */
.bar__link[aria-current="page"] { color: var(--ink); }
.bar__link[aria-current="page"] svg { translate: 0 -3px; }

/* Bouton clair sur fond noir */
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn--ghost::before { background: var(--paper); }
@media (hover: hover) { .btn--ghost:hover { color: var(--ink); } }

/* Fil d'Ariane */
.crumbs { padding-top: clamp(20px, 3vw, 36px); font-size: .875rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .3em .55em; }
.crumbs li { display: inline-flex; align-items: center; gap: .55em; }
.crumbs li:not(:last-child)::after { content: "/"; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; gap: .4em; color: var(--muted); text-decoration: none; }
.crumbs .ico { width: 1.05em; height: 1.05em; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* En-tête de page : tout est centré, très grand titre (mise en page inspirée d'onlines.com.ar), puis un éventail de créations */
.phead { padding-bottom: clamp(56px, 7vw, 110px); }
.phead .crumbs ol { justify-content: center; }
.phead__stage {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center;
  padding-top: clamp(56px, 7vw, 104px);
}
.phead--compact .phead__stage { min-height: 0; padding-block: clamp(48px, 7vw, 96px) 0; }
.phead__center { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 1180px; }
.phead .eyebrow {
  display: inline-flex; margin-bottom: clamp(20px, 2.4vw, 30px);
  padding: .65em 1.15em; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper);
}
.h1 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.2rem, .9rem + 4.4vw, 5.4rem); line-height: .98; letter-spacing: -.01em;
  text-wrap: balance; max-width: 17ch;
}
.h1 .s { font-size: 1.5em; }
.phead .h1 { max-width: 16ch; }
@media (min-width: 481px) { .phead .h1 { font-size: clamp(2.6rem, .6rem + 6.4vw, 7.4rem); line-height: .94; } .phead .h1 .s { font-size: 1.25em; } }
.phead--compact .h1 { font-size: clamp(2.2rem, .9rem + 4.4vw, 5.4rem); }
/* Petits écrans : un mot long (COMMUNICATION) doit tenir sur la ligne */
@media (max-width: 480px) { .h1 { font-size: clamp(1.6rem, 8.2vw, 2.2rem); } }
.phead .lead { max-width: 58ch; margin: clamp(1.6rem, 2.6vw, 2.6rem) auto 0; }
.phead__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(28px, 3vw, 40px); }

/* Éventail de vraies créations sous les boutons : décor posé, jamais sur le texte.
   Les cartes s'ouvrent une à une à l'arrivée et se lèvent au survol (rien avec « réduire les animations »). */
.phead__fan {
  --w: clamp(84px, 13vw, 210px);
  display: flex; justify-content: center; align-items: flex-start;
  margin-top: clamp(48px, 6vw, 88px); padding-bottom: 50px;
}
.pfan {
  position: relative; z-index: var(--z);
  flex: none; width: var(--w); aspect-ratio: 4 / 5; margin-inline: calc(var(--w) * -.1);
  overflow: hidden; border-radius: clamp(8px, 1vw, 14px); background: var(--paper-2);
  box-shadow: 0 2px 4px rgba(10, 10, 10, .1), 0 30px 60px -26px rgba(10, 10, 10, .5);
  transform: translateY(var(--y)) rotate(var(--r));
  transition: transform .6s var(--ease-out);
}
.pfan img, .pfan svg { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) { .pfan:hover { transform: translateY(calc(var(--y) - 18px)) rotate(var(--r)) scale(1.04); } }
.io .phead__fan[data-reveal="stagger"] > * { transition: opacity .7s var(--ease-out) calc(var(--z) * -90ms + .5s), translate .9s var(--ease-out) calc(var(--z) * -90ms + .5s), transform .6s var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .pfan { transition: none; } }
/* Téléphone : les 3 cartes du milieu, plus grandes */
@media (max-width: 600px) {
  .phead__fan { --w: 30vw; }
  .pfan:first-child, .pfan:last-child { display: none; }
}

/* Bandeau des clients : les noms défilent (fixes avec « réduire les animations ») */
.band { padding-block: clamp(40px, 5vw, 64px); border-block: 1px solid var(--line); overflow: hidden; }
.band__label {
  margin-bottom: clamp(18px, 2vw, 28px); text-align: center;
  font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.band__track { display: flex; width: max-content; }
.band__list { display: flex; flex: none; }
.band__list li {
  display: inline-flex; align-items: center; gap: clamp(24px, 3vw, 44px); padding-right: clamp(24px, 3vw, 44px);
  font-family: var(--display); font-weight: 900; text-transform: uppercase; white-space: nowrap;
  font-size: clamp(1.5rem, 1rem + 2.2vw, 3.2rem); line-height: 1;
}
.band__list li::after {
  content: ""; width: .5em; height: .5em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='2 2 20 20'%3E%3Cpath d='M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='2 2 20 20'%3E%3Cpath d='M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z'/%3E%3C/svg%3E") center / contain no-repeat;
}
@keyframes band-x { to { translate: -100% 0; } }
.motion .band__list { animation: band-x 38s linear infinite; }
@media (hover: hover) { .motion .band:hover .band__list { animation-play-state: paused; } }
html:not(.motion) .band__track { width: auto; justify-content: center; }
html:not(.motion) .band__list { flex-wrap: wrap; justify-content: center; row-gap: 14px; }
html:not(.motion) .band__list[aria-hidden] { display: none; }
.band + .sec--tight { padding-top: clamp(88px, 11vw, 168px); }

/* Section « à la une » : titre et bouton à gauche ; à droite une grande icône, un filet noir et le texte,
   premier paragraphe en grand. Sur fond clair : sur une page, aucune section ne doit ressembler à une autre
   (le seul panneau noir arrondi reste la méthode). */
.feat__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.feat__head .h2 { font-size: clamp(2rem, 1.1rem + 3.4vw, 4.6rem); line-height: .98; }
.feat__card { padding-top: clamp(28px, 3vw, 44px); border-top: 2px solid var(--ink); }
.feat__ico { display: block; width: clamp(48px, 4.6vw, 72px); height: clamp(48px, 4.6vw, 72px); margin-bottom: clamp(22px, 2.6vw, 36px); }
.feat__card.body-l p:first-of-type {
  max-width: 30ch; color: var(--ink); font-weight: 500; letter-spacing: -.01em;
  font-size: clamp(1.35rem, 1rem + 1.3vw, 2.25rem); line-height: 1.25;
}
.feat__card.body-l p:first-of-type + p { margin-top: 1.4em; }
@media (max-width: 880px) { .feat__grid { grid-template-columns: minmax(0, 1fr); } }

.body-l p { max-width: 60ch; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--muted); }
.body-l p + p { margin-top: 1em; }
.body-l strong { color: var(--ink); }
.sec--line { border-top: 1px solid var(--line); }
.sec--tight { padding-top: 0; }

/* Grandes cartes arrondies, une noire, une grise (mise en page inspirée d'onlines.com.ar) */
.cards {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 1.6vw, 24px);
}
/* Colonnes posées par le générateur (--cl, --cm, --cs) : 4, 3, 2 puis 1 */
@media (min-width: 600px) { .cards { grid-template-columns: repeat(var(--cs, 2), minmax(0, 1fr)); } }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(var(--cm, 3), minmax(0, 1fr)); } }
@media (min-width: 1180px) { .cards { grid-template-columns: repeat(var(--cl, 4), minmax(0, 1fr)); } }
.cards li {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: clamp(280px, 26vw, 380px); padding: clamp(24px, 2.4vw, 36px);
  border-radius: clamp(18px, 2vw, 28px);
  background: var(--ink); color: var(--paper);
  transition: translate .5s var(--ease-out);
}
.cards li:nth-child(even) { background: var(--paper-2); color: var(--ink); }
.cards li::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(currentColor 1px, transparent 1.4px) 0 0 / 16px 16px; opacity: .1;
  -webkit-mask: linear-gradient(160deg, #000, transparent 55%); mask: linear-gradient(160deg, #000, transparent 55%);
}
.cards__num { font-family: var(--display); font-weight: 900; font-size: clamp(2.8rem, 2rem + 2.6vw, 4.6rem); line-height: .85; }
.cards__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cards__ico { width: clamp(34px, 3vw, 44px); height: clamp(34px, 3vw, 44px); flex: none; transition: rotate .6s var(--ease-out); }
@media (hover: hover) { .cards li:hover .cards__ico { rotate: -8deg; } }

/* Liste à grandes icônes, sur deux colonnes, sans fond (deuxième liste d'une page, pour ne pas répéter les cartes) */
.ilist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 96px); }
.ilist li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 2vw, 32px); padding-block: clamp(28px, 3vw, 44px); border-top: 1px solid var(--line); }
.ilist__ico { width: clamp(44px, 4.4vw, 64px); height: clamp(44px, 4.4vw, 64px); }
.ilist h3 { margin-bottom: 10px; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.25rem, 1rem + .9vw, 1.9rem); line-height: 1.05; }
.ilist p { max-width: 44ch; color: var(--muted); }
/* « Et votre projet ? » dans la case vide de la deuxième colonne (règle du client, 02/12) */
.ilist li.ilist__fill { border-top-style: dashed; border-top-color: color-mix(in srgb, var(--ink) 40%, transparent); }
.ilist__fill .ilist__ico { opacity: .55; }
.ilist__go { display: inline-flex; align-items: center; gap: .5em; margin-top: 16px; font-weight: 600; color: var(--ink); text-decoration: none; }
.ilist__go .ico { width: 18px; height: 18px; transition: translate .4s var(--ease-out); }
@media (hover: hover) { .ilist__go:hover .ico { translate: 4px 0; } }
.ilist__go:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .ilist { grid-template-columns: minmax(0, 1fr); } .ilist li.ilist__fill { display: none; } }
.cards h3 {
  margin: auto 0 10px; padding-top: 28px;
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.15rem, 1rem + .5vw, 1.5rem); line-height: 1.1;
}
.cards p { color: var(--muted-inv); }
.cards li:nth-child(even) p { color: var(--muted); }
/* Bloc « Et votre projet ? » : il remplit la place libre de la dernière rangée (demande du client, 02/12).
   Cadre en pointillés, comme une place qui attend ; une vraie création penchée s'il est assez large. */
.cards li.cards__fill {
  display: none; container-type: inline-size;
  background: transparent; color: var(--ink);
  border: 1.5px dashed color-mix(in srgb, var(--ink) 40%, transparent);
}
.cards li.cards__fill::before { content: none; }
.cards li.cards__fill p { max-width: 34ch; color: var(--muted); }
.cards__fill .btn { align-self: flex-start; margin-top: 22px; position: relative; z-index: 1; }
.cards__art { display: none; }
@media (min-width: 600px) and (max-width: 899.98px) { .cards li.cards__fill:not(.h-s) { display: flex; grid-column: span var(--fs, 1); } }
@media (min-width: 900px) and (max-width: 1179.98px) { .cards li.cards__fill:not(.h-m) { display: flex; grid-column: span var(--fm, 1); } }
@media (min-width: 1180px) { .cards li.cards__fill:not(.h-l) { display: flex; grid-column: span var(--fl, 1); } }
@container (min-width: 520px) {
  .cards__fill > :not(.cards__art) { max-width: 56%; }
  .cards__art {
    display: block; position: absolute; z-index: -1; right: -3%; bottom: -14%; width: 36%;
    rotate: -9deg; transition: rotate .6s var(--ease-out), translate .6s var(--ease-out);
  }
  .cards__art img {
    display: block; width: 100%; height: auto; max-height: 300px; object-fit: cover; object-position: top; border-radius: 3px; background: #fff;
    box-shadow: 0 1px 2px rgb(0 0 0 / .12), 0 10px 24px rgb(0 0 0 / .14), 0 30px 60px rgb(0 0 0 / .12);
  }
}
@container (min-width: 820px) { .cards__fill > :not(.cards__art) { max-width: 50%; } .cards__art { width: 44%; bottom: -16%; } }
@media (hover: hover) { .cards li.cards__fill:hover .cards__art { rotate: -5deg; translate: 0 -8px; } }
@media (hover: hover) { .cards li:hover { translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) { .cards li, .cards__art { transition: none; } .cards li:hover { translate: none; } }
.note { margin-top: clamp(28px, 3vw, 40px); font-size: .9375rem; color: var(--muted); }

/* Projets liés : des feuilles imprimées, comme sur l'accueil */
.cases {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 64px) clamp(20px, 2.4vw, 36px); align-items: start;
}
.case { grid-column: span 6; margin: 0; }
.case--8 { grid-column: span 8; }
.case--4 { grid-column: span 4; }
.case--12 { grid-column: 1 / -1; }
.case__card {
  overflow: hidden; border-radius: 10px; background: var(--paper-2);
  box-shadow: 0 2px 4px rgba(10, 10, 10, .1), 0 34px 70px -28px rgba(10, 10, 10, .55);
  rotate: var(--r, 0deg);
  transition: scale .6s var(--ease-out);
}
.case__card img, .case__card video { display: block; width: 100%; height: auto; }
.case figcaption { display: grid; gap: 2px; margin-top: 18px; }
.case__name { font-weight: 600; }
.case__what { color: var(--muted); font-size: .9375rem; }
@media (hover: hover) { .case:hover .case__card { scale: 1.03; } }
.cases__more { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(44px, 5vw, 72px); }
/* Une création cliquable mène à la fiche de son projet sur la page Réalisations (/realisations/#id) */
.fan__link, .pfan > a, .showcase__link { display: block; height: 100%; }
.fan__link { pointer-events: auto; }
a.proj__card { display: block; }
.case { position: relative; }
a.case__name { text-decoration: none; }
a.case__name::after { content: ""; position: absolute; inset: 0; }
.case__card:has(video) { position: relative; z-index: 1; }
a.case__name:focus-visible { outline: none; }
.case:has(a.case__name:focus-visible) { outline: 2px solid currentColor; outline-offset: 8px; border-radius: 12px; }
@media (hover: hover) {
  .case:hover a.case__name { text-decoration: underline; text-underline-offset: 3px; }
}
@media (prefers-reduced-motion: reduce) { .proj__card img { transition: none; } }
@media (max-width: 760px) {
  .case, .case--8, .case--4 { grid-column: 1 / -1; }
  .case__card { rotate: none; }
}

/* Les autres services : des colonnes séparées par des filets verticaux, une grande icône en tête.
   Sur téléphone, les colonnes défilent de côté (pour ne pas ressembler aux lignes de la FAQ). */
.others {
  display: grid; grid-template-columns: repeat(var(--om, 3), minmax(0, 1fr));
  overflow: hidden; border-bottom: 1px solid var(--line);
}
/* Colonnes posées par others_list() : 3 en largeur moyenne, --ol en grand (jamais 6 : trop étroit pour les noms) */
@media (min-width: 1100px) { .others { grid-template-columns: repeat(var(--ol, 3), minmax(0, 1fr)); } }
/* « Un autre besoin ? » : remplit la place libre de la dernière rangée (règle du client, 02/12) */
.others__fill { display: none; }
.others__fill a { background: var(--paper-2); }
@media (min-width: 601px) and (max-width: 1099.98px) { .others__fill:not(.h-m) { display: block; grid-column: span var(--fm, 1); } }
@media (min-width: 1100px) { .others__fill:not(.h-l) { display: block; grid-column: span var(--fl, 1); } }
.others li { margin-left: -1px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.others a {
  display: flex; flex-direction: column; gap: 12px; height: 100%;
  min-height: clamp(260px, 24vw, 340px); padding: clamp(24px, 2.4vw, 36px) clamp(18px, 2vw, 30px);
  text-decoration: none;
  transition: background-color .4s var(--ease-out);
}
.others__ico { width: clamp(36px, 3.2vw, 46px); height: clamp(36px, 3.2vw, 46px); margin-bottom: clamp(20px, 3vw, 44px); transition: rotate .6s var(--ease-out); }
.others__name {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.2rem, 1rem + .8vw, 1.65rem); line-height: 1.02;
}
.others__desc { color: var(--muted); font-size: .9688rem; }
.others__go { display: inline-flex; align-items: center; gap: .5em; margin-top: auto; padding-top: 12px; font-weight: 600; font-size: .9375rem; }
.others__go svg { width: 18px; height: 18px; transition: translate .4s var(--ease-out); }
@media (hover: hover) {
  .others a:hover { background: var(--paper-2); }
  .others a:hover .others__ico { rotate: -8deg; }
  .others a:hover .others__go svg { translate: 4px 0; }
}
.others a:focus-visible { background: var(--paper-2); outline-offset: -3px; }
@media (max-width: 600px) {
  .others {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  }
  .others li { scroll-snap-align: start; }
  .others li.others__fill { display: none; }
  .others a { min-height: 300px; }
}

/* FAQ seule (pas de section juste au-dessus sur fond blanc) */
.faq.faq--solo { padding-top: clamp(88px, 11vw, 168px); }
/* Pages intérieures : titre au-dessus, questions en lignes pleine largeur */
.faq--rows .faq__grid { grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); }
.faq--rows .faq__head { position: static; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 48px; }
.faq--rows .faq__head .lead { margin-top: 0; }
.faq--rows summary { font-family: var(--text); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: clamp(1.0625rem, .98rem + .45vw, 1.375rem); line-height: 1.3; }
.faq--rows .faq__a p { max-width: 72ch; font-size: clamp(1rem, .96rem + .2vw, 1.125rem); }

/* La méthode : un grand panneau noir arrondi, titre à gauche, étapes à droite */
.psteps__panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 96px); align-items: start;
  padding: clamp(32px, 5.5vw, 96px); border-radius: clamp(20px, 2.6vw, 36px);
  background: var(--ink); color: var(--paper);
}
.psteps__panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(rgba(250, 250, 248, .09) 1px, transparent 1.4px) 0 0 / 18px 18px;
  -webkit-mask: radial-gradient(80% 80% at 0 100%, #000, transparent); mask: radial-gradient(80% 80% at 0 100%, #000, transparent);
}
.psteps__head { position: sticky; top: 40px; }
.psteps__head .h2 { font-size: clamp(2rem, 1.1rem + 3.2vw, 4.4rem); line-height: .98; }
.psteps .lead { color: var(--muted-inv); }
.psteps .btn--paper:focus-visible { outline-color: var(--paper); }
.psteps__list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 2.4vw, 36px); padding-block: clamp(22px, 2.4vw, 32px); border-top: 1px solid var(--line-inv); }
.psteps__list li:last-child { border-bottom: 1px solid var(--line-inv); }
.psteps__num {
  font-family: var(--display); font-weight: 900; font-size: clamp(2.4rem, 1.6rem + 2.4vw, 4rem); line-height: .85;
  color: transparent; -webkit-text-stroke: 1.5px var(--paper);
  transition: color .5s var(--ease-out);
}
.psteps__list li:hover .psteps__num { color: var(--paper); }
.psteps h3 .ico { width: 1.05em; height: 1.05em; }
.psteps h3 { display: flex; align-items: center; gap: .55em; margin-bottom: 8px; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.15rem, 1rem + .5vw, 1.5rem); line-height: 1.1; }
.psteps p { color: var(--muted-inv); }
@media (max-width: 880px) {
  .psteps__panel { grid-template-columns: minmax(0, 1fr); }
  .psteps__head { position: static; }
}
@media (max-width: 760px) { .psteps .wrap { padding-inline: 10px; } }
/* Méthode courte (pages de service) : le même panneau noir, le titre au-dessus et les 4 étapes en une rangée */
.psteps--compact .psteps__panel { grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); }
.psteps--compact .psteps__head { position: static; }
.psteps--compact .psteps__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(16px, 2.2vw, 36px); border-bottom: 1px solid var(--line-inv); }
.psteps--compact .psteps__list li { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 14px; border-bottom: 0; }
.psteps--compact .psteps__num { font-size: clamp(2rem, 1.5rem + 1.4vw, 3rem); }
@media (max-width: 880px) { .psteps--compact .psteps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) {
  .psteps--compact .psteps__list { grid-template-columns: minmax(0, 1fr); }
  .psteps--compact .psteps__list li { grid-template-columns: auto minmax(0, 1fr); }
}

/* Vidéos : lecture à la demande, sans son, avec une image d'attente */
.case__card video { aspect-ratio: 9 / 16; background: var(--ink); object-fit: cover; }

/* Réalisations : sommaire et fiches projet */
.pf { padding-block: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.pf__head {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 24px clamp(32px, 5vw, 96px); align-items: end;
  margin-bottom: clamp(36px, 4vw, 64px);
}
.pf__num { display: block; margin-bottom: 14px; font-family: var(--display); font-weight: 900; font-size: .875rem; }
.pf__facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 28px; margin: 0; }
.pf__facts dt { display: flex; align-items: center; gap: .6em; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: .25em; align-self: start; }
.pf__facts dt .ico { width: 16px; height: 16px; color: var(--ink); }
.pf__facts dd { margin: 0; }
.pf__gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); align-items: start; }
.g-3 { grid-column: span 3; }
.g-4 { grid-column: span 4; }
.g-5 { grid-column: span 5; }
.g-6 { grid-column: span 6; }
.g-7 { grid-column: span 7; }
.g-8 { grid-column: span 8; }
.g-12 { grid-column: 1 / -1; }
.pf__gallery .case__card { --r: 0deg; }
.pf__logo {
  display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 10px;
  background: #e31e24; color: var(--paper);
}
.pf__logo svg { width: auto; height: 46%; }
@media (max-width: 760px) {
  .pf__head { grid-template-columns: minmax(0, 1fr); }
  .pf__gallery > * { grid-column: 1 / -1; }
  .pf__gallery > .g-3, .pf__gallery > .g-4 { grid-column: span 6; }
}

/* Réalisations : index des projets.
   Grands noms décalés. Avec JavaScript, ils passent en gris ; celui qui croise le milieu de l'écran
   (ou qui est survolé) redevient noir et son image s'affiche au centre de l'écran. Le nom actif passe
   au-dessus de l'image en « différence » : noir sur le blanc, couleurs inversées sur l'image.
   Gris #8f8f8a = 3,1:1 sur le blanc (assez pour du très grand texte). */
.wl { position: relative; isolation: isolate; overflow-x: clip; background: var(--paper); padding-block: clamp(48px, 7vw, 112px) clamp(88px, 11vw, 168px); }
.wl__list { list-style: none; margin: 0; padding: 0; }
.wl__item { position: relative; z-index: 1; width: fit-content; max-width: 100%; translate: calc(var(--x, 0) * 1vw) 0; }
.wl__link {
  display: inline-flex; align-items: baseline; gap: clamp(10px, 1.4vw, 22px);
  padding-block: .04em; color: var(--ink); text-decoration: none;
}
.wl__num { font-family: var(--text); font-weight: 500; font-size: clamp(.875rem, 1.5vw, 1.375rem); }
.wl__name {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.25rem, 6.2vw, 7rem); line-height: .9; letter-spacing: -.01em;
}
@media (min-width: 761px) { .wl__name { white-space: nowrap; } }
.wl__stage { display: none; }
.wl.is-js .wl__item { color: #8f8f8a; transition: color .3s var(--ease-out); }
.wl.is-js .wl__link { color: inherit; }
.wl.is-js .wl__item.is-active { z-index: 3; color: #fff; mix-blend-mode: difference; }
.wl.is-js .wl__item:not(.is-active) .wl__num { color: var(--muted); }   /* petit texte : 7:1 */
.wl.is-js .wl__link:focus-visible { outline: 3px solid currentColor; outline-offset: 6px; }
.wl.is-js .wl__stage {
  display: block; position: fixed; z-index: 2; left: 50%; top: 50%;
  width: min(32vw, 54vh, 520px); aspect-ratio: 3 / 4; translate: -50% -50%;
  pointer-events: none; opacity: 0; transition: opacity .35s var(--ease-out);
}
.wl.is-on .wl__stage { opacity: 1; }
.wl__poster {
  position: absolute; inset: 0; overflow: hidden; background: var(--ink);
  opacity: 0; scale: 1.06; transition: opacity .35s var(--ease-out), scale .6s var(--ease-out);
}
.wl__poster.is-active { opacity: 1; scale: 1; }
.wl__poster img { width: 100%; height: 100%; object-fit: cover; }
/* Voile sombre en haut de l'image pour que le mot écrit reste lisible sur les visuels clairs */
.wl__poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(10, 10, 10, .62), rgba(10, 10, 10, 0) 38%); }
.wl__logo { display: grid; place-items: center; width: 100%; height: 100%; background: #e31e24; color: var(--paper); }
.wl__logo svg { width: 46%; height: auto; }
.wl__stamp {
  position: absolute; top: 5%; right: 7%; max-width: 80%;
  font-family: var(--script); font-size: clamp(1.5rem, 2.6vw, 2.5rem); line-height: 1; text-align: right;
  color: var(--paper); text-shadow: 0 1px 14px rgba(0, 0, 0, .35); z-index: 1;
}
/* Téléphone : chaque projet devient une carte plein écran (image + nom) qui glisse
   sur la précédente au défilement (position: sticky, sans JavaScript). */
.wl__card { display: none; }
@media (max-width: 760px) {
  .wl { padding-block: 0; }
  .wl > .wrap { padding-inline: 0; }
  .wl__item { position: sticky; top: 0; width: auto; max-width: none; translate: none; height: 100vh; height: 100svh; }
  .wl__link {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 12px;
    height: 100%; padding: 28px var(--pad) calc(116px + env(safe-area-inset-bottom));
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--ink); color: var(--paper);
    box-shadow: 0 -14px 36px rgba(10, 10, 10, .22);
  }
  .wl__link:focus-visible { outline: 3px solid var(--paper); outline-offset: -10px; }
  .wl__card { display: block; position: absolute; inset: 0; z-index: -1; }
  .wl__card img { width: 100%; height: 100%; object-fit: cover; }
  .wl__card::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(rgba(10, 10, 10, .55), rgba(10, 10, 10, 0) 28%, rgba(10, 10, 10, 0) 42%, rgba(10, 10, 10, .88) 82%);
  }
  .wl__card .wl__stamp { top: 26px; right: var(--pad); font-size: 2.25rem; }
  .wl__num { font-size: .9375rem; }
  .wl__name { font-size: 11.5vw; line-height: .92; }
  .wl__name--long { font-size: 9.5vw; } /* AJAFORMATION : un seul mot, doit tenir à 320 px */
  .wl__stage { display: none; }
}

/* Pages légales */
.legal__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(36px, 6vw, 100px); align-items: start; }
.toc { position: sticky; top: 32px; font-size: .9375rem; }
.toc h2 { margin-bottom: 14px; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.toc ol { display: grid; gap: 8px; counter-reset: toc; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.prose { max-width: 74ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  margin: clamp(48px, 5vw, 72px) 0 16px; padding-top: 20px; border-top: 1.5px solid var(--ink);
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.2rem, 1.02rem + .7vw, 1.65rem); line-height: 1.12;
  scroll-margin-top: 24px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 8px; font-size: 1.0625rem; font-weight: 600; }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + dl, .prose dl + p, .prose ul + ul { margin-top: 1em; }
.prose ul { display: grid; gap: .45em; padding-left: 1.25em; list-style: disc; }
.prose li::marker { color: var(--muted); }
.prose a { font-weight: 500; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 28px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.box { margin-top: 1.2em; padding: clamp(20px, 2.4vw, 32px); border: 1.5px dashed var(--ink); border-radius: 12px; }
.box p + p { margin-top: .8em; }
.updated { margin-top: clamp(48px, 5vw, 72px); font-size: .9375rem; color: var(--muted); }
@media (max-width: 880px) {
  .legal__grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
}
@media (max-width: 540px) {
  .facts, .pf__facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .facts dd, .pf__facts dd { margin-bottom: 10px; }
}

/* Fin de page : appel à l'action sur fond noir (la section porte .quote pour le rideau du pied de page) */
.cta-end__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px clamp(40px, 6vw, 96px); align-items: end; }
.cta-end .lead { color: var(--muted-inv); }
.cta-end__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Page 404 */
.nf { min-height: 70vh; min-height: 70svh; display: grid; align-content: center; }
.nf .h1 { max-width: 14ch; }

@media (max-width: 960px) {
  .cta-end__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .others a, .others__ico, .others__go svg, .cards__ico, .case__card { transition: none; }
}

/* ---------- Page contact classique : coordonnées en 4 blocs, puis le formulaire à étiquettes sur fond noir ---------- */
.cinfo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 2.6vw, 44px); }
.cinfo li { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: clamp(22px, 2.4vw, 32px); border-top: 2px solid var(--ink); }
.cinfo__ico { width: clamp(30px, 2.6vw, 38px); height: clamp(30px, 2.6vw, 38px); margin-bottom: clamp(8px, 1.4vw, 20px); }
.cinfo__label { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cinfo__value { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); font-weight: 500; line-height: 1.4; }
.cinfo__value a { text-decoration: none; overflow-wrap: anywhere; }
.cinfo__value a:hover { text-decoration: underline; }
.cinfo__big { font-family: var(--display); font-weight: 900; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem); line-height: 1.05; white-space: nowrap; }
.cinfo__link {
  display: inline-flex; align-items: center; gap: .45em; margin-top: auto; padding-top: 10px;
  font-weight: 600; font-size: .9375rem; text-decoration: none;
}
.cinfo__link .ico { width: 18px; height: 18px; transition: translate .4s var(--ease-out); }
@media (hover: hover) {
  .cinfo__link:hover { text-decoration: underline; text-underline-offset: .2em; }
  .cinfo__link:hover .ico { translate: 3px 0; }
}
.cinfo__legal { margin-top: clamp(32px, 3.4vw, 52px); font-size: .875rem; color: var(--muted); }
@media (max-width: 1000px) { .cinfo { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 560px) { .cinfo { grid-template-columns: minmax(0, 1fr); } }

.cform__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.cform__list { display: grid; gap: 14px; margin-top: clamp(28px, 3vw, 40px); }
.cform__list li { display: flex; align-items: center; gap: .8em; }
.cform__list .ico { width: 22px; height: 22px; }
.cform .form {
  margin-top: 0; padding: clamp(24px, 3.6vw, 52px);
  border: 1px solid var(--line-inv); border-radius: clamp(18px, 2vw, 28px);
}
.cform .form__note a { color: var(--paper); }
.cform .btn--paper:focus-visible { outline-color: var(--paper); }
@media (max-width: 880px) { .cform__grid { grid-template-columns: minmax(0, 1fr); } }
/* Champ piège à robots : hors de l'écran, jamais vu ni lu par les visiteurs */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Envoi : le chargement puis le message de remerciement prennent la place des champs (même hauteur, pas de saut) */
.form { position: relative; }
.form.is-busy > :not(.form__state) { visibility: hidden; }
.form__state {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center; align-content: center; gap: 18px;
  padding: 24px; text-align: center;
  animation: form-in .45s var(--ease-out) both;
}
.form__spin { width: 44px; height: 44px; border: 2px solid var(--line-inv); border-top-color: var(--paper); border-radius: 50%; animation: form-spin .8s linear infinite; }
.form__state-label { font-size: .9375rem; color: var(--muted-inv); }
.form__done-ico { width: clamp(48px, 5vw, 64px); height: clamp(48px, 5vw, 64px); color: var(--paper); }
.form__done-title {
  max-width: 15ch;
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.7rem, 1rem + 2.6vw, 3rem); line-height: 1;
}
.form__done-title:focus { outline: none; }
.form__done-title--alert { max-width: 18ch; font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.form__done-text { max-width: 34ch; font-size: 1.0625rem; color: var(--muted-inv); }
.form__again { margin-top: 6px; }
.form__again:focus-visible { outline-color: var(--paper); }
/* Après l'envoi : envoyer ses fichiers par e-mail, ou une autre demande */
.form__done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin-top: 6px; }
.form__done-actions .form__again { margin-top: 0; }
.form__files:focus-visible { outline-color: var(--paper); }
@keyframes form-spin { to { rotate: 360deg; } }
@keyframes form-in { from { opacity: 0; translate: 0 10px; } }
@media (prefers-reduced-motion: reduce) {
  .form__state { animation: none; }
  .form__spin { animation-duration: 2.4s; }
}
@media (prefers-reduced-motion: reduce) { .cinfo__link .ico { transition: none; } }

/* Réalisations : sous le nom, l'activité du client ; puis le besoin et ce que nous avons fait, côte à côte */
.pf__what { margin-top: 12px; font-size: clamp(1rem, .95rem + .25vw, 1.1875rem); color: var(--muted); }
.pf__story {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(32px, 5vw, 96px);
  margin-bottom: clamp(36px, 4vw, 64px); padding-block: clamp(22px, 2.4vw, 32px);
  border-block: 1px solid var(--line);
}
.pf__story h3 {
  display: flex; align-items: center; gap: .6em; margin-bottom: 10px;
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.pf__story h3 .ico { width: 18px; height: 18px; }
.pf__story p { max-width: 52ch; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.5; }
@media (max-width: 760px) { .pf__story { grid-template-columns: minmax(0, 1fr); } }

/* Réalisations : la tuile logo d'AJAFORMATION à côté de la capture du site prend la hauteur de la rangée */
.pf__gallery > .pf__logo { aspect-ratio: auto; min-height: 200px; }
@media (max-width: 760px) { .pf__gallery > .pf__logo { grid-column: 1 / -1; aspect-ratio: 16 / 9; min-height: 0; } }

/* Site internet : un site de client à la une, capture dans un cadre de navigateur */
.showcase__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.showcase__shot { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); box-shadow: 0 30px 60px -30px rgba(10, 10, 10, .35); }
.showcase__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.showcase__bar span { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--muted); }
.showcase__bar em { margin-left: 10px; font-style: normal; font-size: .75rem; color: var(--muted); }
.showcase__shot img { display: block; width: 100%; height: auto; }
.showcase__text .h2 { margin-top: 10px; }
.showcase__text .body-l { margin-top: 20px; }
.showcase__list { display: grid; gap: 12px; margin-top: 24px; padding: 0; list-style: none; }
.showcase__list li { display: flex; align-items: center; gap: 12px; }
.showcase__ico { width: 20px; height: 20px; }
.showcase__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 900px) { .showcase__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Blog : guides locaux ---------- */
.phead--post { padding-bottom: clamp(40px, 5vw, 72px); }
.phead--post .h1 { max-width: 20ch; }
.phead--post .h1 .s { font-size: 1.25em; }
@media (min-width: 481px) { .phead--post .h1 { font-size: clamp(2.1rem, 1rem + 3.3vw, 4.4rem); line-height: 1; } }
@media (max-width: 480px) { .phead--post .h1 { font-size: clamp(1.35rem, 7.1vw, 2.2rem); } }
.post__meta { margin-top: clamp(20px, 2vw, 28px); font-size: .9375rem; color: var(--muted); }
.post__meta a { color: inherit; }
.post .toc li { list-style: none; }
.post .prose > p + .tbl, .post .prose > .tbl + p, .post .prose > ul + .post__fig, .post .prose > .tbl + ul { margin-top: 1.4em; }
.post .prose ol + p, .post .prose p + ol, .post .prose figure + p, .post .prose figure + ul { margin-top: 1.2em; }
.post__key { padding: clamp(22px, 2.6vw, 36px); background: var(--paper-2); border-radius: var(--radius); }
.post__key-h { display: flex; align-items: center; gap: .6em; margin-bottom: 14px; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1.125rem; }
.post__key-h .ico { width: 22px; height: 22px; }
.post__steps { display: grid; gap: 0; margin-top: 1.2em; padding: 0; list-style: none; counter-reset: pas; }
.post__steps li { position: relative; padding: 14px 0 14px 56px; border-top: 1px solid var(--line); counter-increment: pas; }
.post__steps li:last-child { border-bottom: 1px solid var(--line); }
.post__steps li::before { content: counter(pas); position: absolute; left: 0; top: 10px; font-family: var(--display); font-weight: 900; font-size: 1.75rem; line-height: 1.1; }
.post__brief { display: grid; gap: .45em; margin-top: 1em; padding: clamp(20px, 2.4vw, 32px) clamp(20px, 2.4vw, 32px) clamp(20px, 2.4vw, 32px) calc(clamp(20px, 2.4vw, 32px) + 1.4em); border: 1.5px dashed var(--ink); border-radius: 12px; list-style: decimal; }
/* Tableau : il défile dans son cadre sur téléphone, jamais la page */
.tbl { margin-top: 1.4em; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; }
.tbl caption { padding: 14px 18px; text-align: left; font-size: .8125rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.tbl th, .tbl td { min-width: 9.5rem; padding: 12px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl thead th { background: var(--ink); color: var(--paper); font-weight: 600; }
.tbl tbody th { font-weight: 600; }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.post__fig { margin: clamp(28px, 3vw, 40px) 0; }
.post__fig img { display: block; width: 100%; height: auto; max-height: 620px; object-fit: contain; border-radius: 12px; background: var(--paper-2); }
.post__fig figcaption { margin-top: 12px; font-size: .875rem; color: var(--muted); }
.post__fig--plan { padding: clamp(16px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); }
.facade { display: block; width: 100%; max-width: 620px; height: auto; margin-inline: auto; }
.legend { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; font-size: .9375rem; }
.legend li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.legend b { display: grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--ink); border-radius: 50%; font-size: .875rem; font-weight: 600; }

/* Guides liés : un grand à gauche, les autres en liste (bas d'article et pages de zone) */
.guides__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 72px); align-items: stretch; }
.guides__meta { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.guides__lead { display: flex; flex-direction: column; gap: 16px; padding: clamp(26px, 3.4vw, 52px); background: var(--ink); color: var(--paper); border-radius: var(--radius); text-decoration: none; }
.guides__lead .guides__meta { color: var(--muted-inv); }
.guides__big { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.45rem, 1rem + 1.9vw, 2.6rem); line-height: 1.02; overflow-wrap: anywhere; }
.guides__desc { max-width: 52ch; color: var(--muted-inv); }
.guides__read { display: inline-flex; align-items: center; gap: .5em; margin-top: auto; padding-top: 12px; font-weight: 600; }
.guides__read svg, .guides__go { width: 20px; height: 20px; flex: none; transition: translate .4s var(--ease-out); }
.guides__list { display: grid; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.guides__list li { border-top: 1px solid var(--line); }
.guides__list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-content: center; height: 100%; padding-block: clamp(16px, 1.8vw, 26px); text-decoration: none; }
.guides__list .guides__meta { grid-column: 1 / -1; }
.guides__t { font-weight: 600; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.3; }
.guides__go { align-self: center; }
.guides__lead:focus-visible { outline-offset: 4px; }
@media (hover: hover) {
  .guides__list a:hover .guides__t { text-decoration: underline; text-underline-offset: .2em; }
  .guides__list a:hover .guides__go, .guides__lead:hover .guides__read svg { translate: 5px 0; }
}
@media (max-width: 880px) { .guides__grid { grid-template-columns: minmax(0, 1fr); } }

/* Page /blog/ : un bloc par zone, le nom de la zone reste visible pendant la lecture */
.bidx__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: clamp(24px, 2.6vw, 36px); padding: 0; list-style: none; font-weight: 600; }
.bidx__nav a { text-underline-offset: .25em; }
.bidx__zone { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 88px); align-items: start; padding-block: clamp(36px, 4.4vw, 72px); border-top: 1.5px solid var(--ink); scroll-margin-top: 16px; }
.bidx__head { position: sticky; top: 32px; display: grid; gap: 14px; }
.bidx__head .h2 { font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.6rem); line-height: 1.02; }
.bidx__head p { max-width: 34ch; color: var(--muted); }
.bidx__head a { color: var(--ink); font-weight: 600; }
.bidx__list { display: grid; padding: 0; list-style: none; }
.bidx__list li + li { border-top: 1px solid var(--line); }
.bidx__list a { display: grid; gap: 10px; padding-block: clamp(20px, 2.2vw, 32px); text-decoration: none; }
.bidx__list li:first-child a { padding-top: 0; }
.bidx__t { font-weight: 600; font-size: clamp(1.2rem, 1.02rem + .8vw, 1.7rem); line-height: 1.2; }
.bidx__d { max-width: 68ch; color: var(--muted); }
.bidx__m { display: flex; align-items: center; gap: .5em; font-size: .875rem; color: var(--muted); }
.bidx__go { width: 18px; height: 18px; margin-left: 6px; color: var(--ink); transition: translate .4s var(--ease-out); }
@media (hover: hover) {
  .bidx__list a:hover .bidx__t { text-decoration: underline; text-underline-offset: .2em; }
  .bidx__list a:hover .bidx__go { translate: 5px 0; }
}
@media (max-width: 880px) {
  .bidx__zone { grid-template-columns: minmax(0, 1fr); }
  .bidx__head { position: static; }
}
@media (prefers-reduced-motion: reduce) { .guides__go, .guides__read svg, .bidx__go { transition: none; } }

/* ---------- « À Creil, et tout autour » (pages services de Creil, audit SEO du 02/12/2026) ----------
   Titre au-dessus, puis un texte courant en grand, sur une colonne : différent des avis (deux colonnes) et des autres sections. */
.local__grid { display: grid; gap: clamp(28px, 4vw, 52px); }
.local__text { max-width: 62ch; }
.local__text p { font-size: clamp(1.0625rem, 1rem + .35vw, 1.3125rem); line-height: 1.55; color: var(--muted); }
.local__text p + p { margin-top: 1em; }
.local__text a:not(.btn) { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.local__text a:not(.btn):hover { text-decoration-thickness: 2px; }
.local__text .btn { margin-top: clamp(24px, 3vw, 36px); }
/* Tableau « Site vitrine ou boutique en ligne ? » (page création de site, 02/12/2026) */
.compare .tbl { margin-top: clamp(24px, 3vw, 40px); background: var(--paper); }
.compare .tbl th, .compare .tbl td { padding: 16px 20px; }
.compare .tbl tbody th { width: 22%; }
.compare__note { margin-top: 18px; max-width: 60ch; color: var(--muted); }
/* Téléphone : chaque ligne devient un bloc (critère, puis les deux réponses), pas de défilement de côté */
@media (max-width: 640px) {
  .compare .tbl { overflow: visible; }
  .compare .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare .tbl table, .compare .tbl tbody, .compare .tbl tr, .compare .tbl th, .compare .tbl td { display: block; width: auto; min-width: 0; }
  .compare .tbl caption { display: block; width: auto; }
  .compare .tbl tbody th { width: auto; padding: 16px 18px 6px; border-bottom: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1rem; }
  .compare .tbl td { padding: 6px 18px; border-bottom: 0; }
  .compare .tbl td::before { content: attr(data-l); display: block; font-size: .8125rem; font-weight: 600; }
  .compare .tbl tr { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .compare .tbl tbody tr:last-child { border-bottom: 0; }
}
