/* c1pps.com — direction « Cinétique ». Une feuille, pas de framework. */

@font-face { font-family: Syne; src: url("../fonts/syne.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: Geist; src: url("../fonts/geist.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --fond: #0d0c0a;
  --fond-2: #161512;
  --texte: #efebe3;
  --gris: #8a857a;
  --gris-2: #4a473f;
  --trait: #2a2823;
  --lime: #d4ff3d;
  --marge: clamp(16px, 3vw, 80px);
  --petit: clamp(12.5px, .62vw, 16px); /* étiquettes en mono : grandissent sur les très grands écrans */
  --ease: cubic-bezier(.76, 0, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --display: Syne, "Arial Black", sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--fond); -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; overflow-x: hidden; background: var(--fond); color: var(--texte);
  font: 400 16px/1.5 Geist, system-ui, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--lime); color: #000; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 2px; }
.mono { font: 400 var(--petit)/1.6 var(--mono); text-transform: uppercase; letter-spacing: .02em; }
em { font-style: italic; color: var(--lime); }

.evitement { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--lime); color: #000; font-weight: 600; }
.evitement:focus { top: 16px; }

/* ---------- Lenis (défilement doux), règles fournies par la bibliothèque ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- Grain et curseur ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } }

.curseur { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js body, .js a, .js button { cursor: none; }
  .js .curseur {
    position: fixed; left: 0; top: 0; z-index: 60; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
    display: grid; place-items: center; background: var(--lime); pointer-events: none; mix-blend-mode: difference;
    transition: width .22s var(--ease-out), height .22s var(--ease-out), margin .22s var(--ease-out), opacity .2s;
  }
  .curseur span { font: 600 12px Geist, sans-serif; color: #000; opacity: 0; transition: opacity .2s; }
  .curseur.gros { width: 64px; height: 64px; margin: -32px 0 0 -32px; mix-blend-mode: normal; }
  .curseur.gros span { opacity: 1; }
  .curseur.lien { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
  .curseur.cache { opacity: 0; }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px var(--marge); font: 500 var(--petit) var(--mono); text-transform: uppercase; mix-blend-mode: difference; color: #fff;
}
.nav { transition: background-color .4s, padding .4s var(--ease-out), border-color .4s; border-bottom: 1px solid transparent; }
.nav.defile {
  mix-blend-mode: normal; color: var(--texte); padding-block: 14px;
  background: rgb(13 12 10 / .72); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--trait);
}
.nav-g { font-weight: 600; justify-self: start; }
.nav-g span { color: var(--gris); }
.nav nav { display: flex; gap: 28px; }
.nav nav a, .pied a { position: relative; }
.nav nav a::after, .pied a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav nav a:hover::after, .pied a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-d { justify-self: end; display: flex; align-items: center; gap: 22px; }
/* The store link: the only solid button in the bar, it is the way out to CBz Network. */
.nav-cta { display: grid; place-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--lime); color: #000; font-weight: 600; transition: background .3s, transform .3s var(--ease-out); }
.nav-cta:hover { background: #fff; transform: translateY(-1px); }
.nav-cta.actif { background: transparent; color: inherit; border: 1px solid currentColor; }

/* ---------- Héros ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 96px var(--marge) 36px; }
.hero-haut { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--trait); padding-top: 16px; }
.meta { font: 400 var(--petit)/1.6 var(--mono); color: var(--gris); text-transform: uppercase; opacity: 0; transform: translateY(10px); animation: monte .9s var(--ease-out) forwards; }
.m1 { animation-delay: 1.1s; } .m2 { animation-delay: 1.2s; } .m3 { animation-delay: 1.3s; }
.nom { font-family: var(--display); font-weight: 600; line-height: .8; letter-spacing: -.04em; font-size: clamp(64px, min(20.5vw, (100svh - 380px) / 1.65), 560px); user-select: none; }
.ligne { display: block; white-space: nowrap; overflow: hidden; padding-bottom: .04em; }
.decale { padding-left: 14vw; }
.nom sup { font-size: .14em; vertical-align: top; position: relative; top: .35em; margin-left: .1em; font-weight: 500; color: var(--lime); }
.mot { display: inline-block; white-space: nowrap; }
.lettre { display: inline-block; transform: translateY(105%); animation: lettre 1.2s var(--ease) forwards; font-variation-settings: "wght" var(--w, 600); }
@keyframes lettre { to { transform: none; } }
@keyframes monte { to { opacity: 1; transform: none; } }
.hero-bas { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex: none; }
.hero-cta { opacity: 0; animation: monte 1s 1.6s var(--ease-out) forwards; }
.accroche { max-width: 22em; font-size: clamp(20px, 1.6vw, 40px); line-height: 1.25; letter-spacing: -.02em; opacity: 0; animation: monte 1s 1.4s var(--ease-out) forwards; }
.rond {
  flex: none; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; border: 1px solid var(--trait);
  transition: background .4s var(--ease), border-color .4s, color .4s; opacity: 0; animation: monte 1s 1.5s var(--ease-out) forwards;
}
.rond svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; animation: rebond 2.4s var(--ease) infinite; }
.rond:hover { background: var(--lime); border-color: var(--lime); color: #000; }
@keyframes rebond { 50% { transform: translateY(6px); } }

/* ---------- Titres de section ---------- */
.titre-section { font: 700 clamp(48px, 7vw, 110px)/.9 var(--display); letter-spacing: -.04em; }
.titre-section.petit { font-size: clamp(40px, 5vw, 76px); }
.titre-section sup { font: 500 .18em var(--mono); color: var(--lime); vertical-align: top; margin-left: .3em; letter-spacing: 0; }

/* ---------- Travaux : défilement horizontal épinglé ---------- */
.travaux { position: relative; }
.travaux-colle { display: flex; flex-direction: column; gap: 28px; padding: 96px 0 48px; }
.travaux-tete { display: flex; justify-content: space-between; align-items: baseline; padding: 0 var(--marge); }
.compteur { color: var(--gris); font-size: 14px; }
.compteur b { color: var(--texte); font-weight: 500; }
.piste { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 56px 3vw; padding: 0 var(--marge); }
.js-epingle .piste { display: flex; will-change: transform; }
.js-epingle .projet { flex: none; width: min(62vw, 1400px, calc((100svh - 420px) * 1.6)); }
.projet-img { display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 16 / 10; background: var(--fond-2); }
.projet-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); filter: grayscale(.6) brightness(.85); transition: transform 1.2s var(--ease-out), filter .6s; }
.projet:hover .projet-img img, .projet:focus-within .projet-img img { transform: scale(1.02); filter: none; }
.projet-legende {
  display: grid; grid-template-columns: 60px 1fr auto; align-items: baseline; gap: 12px;
  padding: 16px 0 14px; border-bottom: 1px solid var(--trait); color: var(--gris);
}
.projet-legende h3 { font: 700 clamp(26px, 2.6vw, 60px)/1 var(--display); letter-spacing: -.03em; color: var(--texte); }
.projet-legende h3 a { display: inline-flex; align-items: center; gap: 10px; }
.fl { width: .7em; height: .7em; fill: none; stroke: currentColor; stroke-width: 2; flex: none; transition: transform .4s var(--ease-out); }
.projet-legende .fl { opacity: 0; transform: translate(-6px, 6px); transition: opacity .3s, transform .4s var(--ease-out); color: var(--lime); }
.projet:hover .projet-legende .fl, .projet-legende a:focus-visible .fl { opacity: 1; transform: none; }
.projet-detail { display: grid; gap: 6px; padding-top: 14px; }
.projet-detail p:first-child { max-width: 52ch; color: var(--gris); font-size: 15.5px; }
.pile { color: var(--gris-2); text-transform: none; }
.progression { margin: 8px var(--marge) 0; height: 1px; background: var(--trait); }
.progression i { display: block; height: 100%; background: var(--lime); transform-origin: left; transform: scaleX(0); }

/* Épinglage : seulement sur grand écran, avec JavaScript, sans mouvement réduit. */
@media (min-width: 901px) {
  .js-epingle .travaux-colle { position: sticky; top: 0; height: 100svh; overflow: hidden; justify-content: center; gap: 22px; padding: 88px 0 32px; }
}

/* ---------- Aperçu flottant (survol d'un lien illustré) ---------- */
.apercu-flottant {
  position: fixed; left: 0; top: 0; z-index: 45; width: 340px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px;
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(-6deg);
  transition: opacity .3s, transform .5s var(--ease-out), translate 0s; box-shadow: 0 30px 80px -20px rgb(0 0 0 / .8);
}
.apercu-flottant.vu { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }

/* ---------- Bandeau de chiffres ---------- */
.bandeau { overflow: hidden; padding: 28px 0; border-block: 1px solid var(--trait); background: var(--fond-2); }
.bandeau-piste { display: flex; width: max-content; animation: bandeau 38s linear infinite; }
.bandeau:hover .bandeau-piste { animation-play-state: paused; }
.bandeau-groupe { display: flex; align-items: center; }
.chiffre { display: inline-flex; align-items: baseline; gap: 16px; padding: 0 36px; font: 400 15px var(--mono); color: var(--gris); text-transform: uppercase; white-space: nowrap; }
.chiffre b { font: 700 clamp(56px, 7vw, 104px)/1 var(--display); font-variant-numeric: lining-nums; color: var(--texte); letter-spacing: -.04em; }
.etoile { width: 40px; height: 40px; flex: none; fill: none; stroke: var(--lime); stroke-width: 2.2; animation: tourne 8s linear infinite; }
@keyframes bandeau { to { transform: translateX(-50%); } }
@keyframes tourne { to { transform: rotate(360deg); } }

/* ---------- Manifeste ---------- */
.manifeste { padding: 22vh var(--marge) 24vh; }
.mots { max-width: 1200px; font: 700 clamp(34px, 5.2vw, 84px)/1.02 var(--display); letter-spacing: -.035em; }
.js .mots .m { color: #2c2a25; transition: color .4s; }
.js .mots .m.on { color: var(--texte); }
.js .mots .m.on.cle { color: var(--lime); }

/* ---------- Parcours ---------- */
/* ---------- Parcours : frise pilotée par le défilement ---------- */
.parcours { padding: 40px var(--marge) 160px; }
.parcours-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: 64px; }
.parcours-tete p { max-width: 34ch; color: var(--gris); }
.frise { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 0 6vw; }
.frise-colle { position: sticky; top: 14vh; align-self: start; display: grid; gap: 18px; }
.frise-annee { display: flex; font: 700 clamp(96px, 15vw, 280px)/1 var(--display); letter-spacing: -.05em; font-variant-numeric: lining-nums; color: var(--texte); }
.roue { display: block; height: 1em; overflow: hidden; }
.bande { display: flex; flex-direction: column; transition: transform 1s var(--ease); }
.bande span { display: block; height: 1em; line-height: 1; text-align: center; }
.bande[data-chiffre="0"] { transform: translateY(0); }
.bande[data-chiffre="1"] { transform: translateY(-10%); }
.bande[data-chiffre="2"] { transform: translateY(-20%); }
.bande[data-chiffre="3"] { transform: translateY(-30%); }
.bande[data-chiffre="4"] { transform: translateY(-40%); }
.bande[data-chiffre="5"] { transform: translateY(-50%); }
.bande[data-chiffre="6"] { transform: translateY(-60%); }
.bande[data-chiffre="7"] { transform: translateY(-70%); }
.bande[data-chiffre="8"] { transform: translateY(-80%); }
.bande[data-chiffre="9"] { transform: translateY(-90%); }
.roue:last-child .bande { color: var(--lime); }
.frise-actif { color: var(--texte); font-size: clamp(13px, 1vw, 18px); }
.frise-compte { color: var(--gris); }
.frise-compte b { color: var(--texte); font-weight: 500; }
.frise-legende { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.frise-legende li { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid var(--trait); border-radius: 999px; font-size: 14px; color: var(--gris); transition: color .4s, border-color .4s; }
.frise-legende li .mono { color: var(--gris-2); }
.frise-legende i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-type); }
.frise[data-type="script"] .frise-legende .type-script, .frise[data-type="serveur"] .frise-legende .type-serveur,
.frise[data-type="agence"] .frise-legende .type-agence, .frise[data-type="outil"] .frise-legende .type-outil,
.frise[data-type="debut"] .frise-legende .type-debut, .frise[data-type="suite"] .frise-legende .type-suite { color: var(--texte); border-color: var(--c-type); }

/* Couleur par type de jalon (la lime reste celle des scripts). */
.type-script { --c-type: var(--lime); }
.type-serveur { --c-type: #9db4ff; }
.type-agence { --c-type: #ffb86b; }
.type-outil { --c-type: #c9a7ff; }
.type-debut { --c-type: #ff8b8b; }
.type-suite { --c-type: var(--texte); }

.frise-visuel { margin-top: 18px; width: min(100%, 520px, calc((100svh - 560px) * 1.6)); aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: var(--fond-2); opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .5s, transform .8s var(--ease-out); }
.frise-visuel.vu { opacity: 1; transform: none; }
.frise-visuel img { width: 100%; height: 100%; object-fit: cover; }
@media (max-height: 760px) { .frise-visuel { display: none; } }
.frise-liste { position: relative; padding-left: 44px; }
.frise-rail { position: absolute; left: 7px; top: 0; bottom: 0; width: 1px; background: var(--trait); }
.frise-rail i { position: absolute; inset: 0; background: linear-gradient(var(--lime), #9db4ff); transform-origin: top; transform: scaleY(0); }
.jalon-annee { display: none; font: 700 clamp(56px, 12vw, 96px)/1 var(--display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px var(--gris-2); margin: 40px 0 8px; }
.jalon { position: relative; padding: 0 0 72px; opacity: .32; transition: opacity .6s var(--ease-out); }
.jalon.actif, .jalon.passe { opacity: 1; }
.jalon.passe:not(.actif) .jalon-corps { opacity: .55; }
.jalon-point {
  position: absolute; left: -44px; top: 6px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--fond); border: 1px solid var(--gris-2); transition: background .4s, border-color .4s, box-shadow .4s, transform .5s var(--ease-out);
}
.jalon.passe .jalon-point, .jalon.actif .jalon-point { background: var(--c-type); border-color: var(--c-type); }
.jalon.actif .jalon-point { transform: scale(1.35); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c-type) 22%, transparent), 0 0 28px var(--c-type); }
.jalon-corps { transition: opacity .6s; }
.jalon-meta { display: flex; gap: 14px; color: var(--gris); margin-bottom: 10px; }
.jalon-type { color: var(--c-type); }
.jalon h3 { font: 700 clamp(28px, 3vw, 48px)/1.02 var(--display); letter-spacing: -.035em; margin-bottom: 12px; transition: transform .6s var(--ease-out); }
.jalon.actif h3 { transform: translateX(6px); }
.jalon-ligne { max-width: 46ch; color: var(--gris); font-size: 17px; }
.jalon-fiche { display: grid; grid-template-columns: 160px auto; align-items: center; gap: 18px; margin-top: 22px; width: fit-content; }
.jalon-fiche img { width: 160px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; filter: grayscale(.7) brightness(.8); transition: filter .5s, transform .6s var(--ease-out); }
.jalon-fiche .mono { display: inline-flex; align-items: center; gap: 8px; color: var(--texte); }
.jalon-fiche:hover img, .jalon.actif .jalon-fiche img { filter: none; }
.jalon-fiche:hover img { transform: scale(1.04) rotate(-1.5deg); }
.jalon-fiche:hover .fl { transform: rotate(45deg); color: var(--lime); }
.jalon-cta { margin-top: 22px; }
.type-suite h3 { color: var(--lime); }

/* ---------- Stack ---------- */
.stack { padding: 0 var(--marge) 160px; }
.stack .titre-section { margin-bottom: 40px; }
.groupes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; border-top: 1px solid var(--trait); padding-top: 28px; }
.groupe h3 { color: var(--gris); font-weight: 400; margin-bottom: 18px; }
.groupe ul { display: grid; gap: 6px; }
.groupe li { font-size: 19px; letter-spacing: -.01em; transition: color .2s, transform .3s var(--ease-out); }
.groupe li:hover { color: var(--lime); transform: translateX(6px); }

/* ---------- Contact ---------- */
.contact { padding: 18vh var(--marge) 120px; border-top: 1px solid var(--trait); text-align: left; }
.contact-sur { color: var(--gris); margin-bottom: 48px; }
.contact-titre { font: 700 clamp(64px, 15vw, 240px)/.9 var(--display); letter-spacing: -.05em; }
.contact-titre em { display: block; }
.email {
  position: relative; display: inline-flex; align-items: center; gap: .3em; margin-top: 48px;
  font: 500 clamp(22px, 3.4vw, 52px)/1.1 Geist, sans-serif; letter-spacing: -.03em; overflow-wrap: anywhere;
}
.email::before, .email::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--trait); }
.email::after { background: var(--lime); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease); }
.email:hover::after, .email:focus-visible::after { transform-origin: left; }
.email:hover::after, .email:focus-visible::after { transform: scaleX(1); }
.email:hover .fl { transform: rotate(45deg); color: var(--lime); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.pastille {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--trait);
  background: none; font: 500 13px var(--mono); text-transform: uppercase; transition: background .4s var(--ease), color .4s, border-color .4s; will-change: transform;
}
.pastille:hover, .pastille:focus-visible { background: var(--lime); border-color: var(--lime); color: #000; }
.pastille.ok { background: var(--texte); color: #000; border-color: var(--texte); }

/* ---------- Pied ---------- */
.pied { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; padding: 24px var(--marge); border-top: 1px solid var(--trait); color: var(--gris); }
.pied a { justify-self: end; color: var(--texte); }
.pied-liens { justify-self: end; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pied-liens .fl { margin-left: 6px; }

/* ---------- Fiches projet ---------- */
.fiche-hero { padding: 104px var(--marge) clamp(32px, 5vh, 56px); }
.fiche-fil { display: flex; justify-content: space-between; gap: 16px; color: var(--gris); border-top: 1px solid var(--trait); padding-top: 16px; margin-bottom: clamp(28px, 5vh, 56px); }
.retour { color: var(--texte); transition: color .3s; }
.retour:hover { color: var(--lime); }
.fiche-tete { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: 28px 64px; }
.fiche-role { color: var(--lime); margin-bottom: 14px; }
.fiche-titre { font: 700 clamp(52px, 7.4vw, 160px)/.86 var(--display); letter-spacing: -.045em; }
.fiche-titre .ligne { white-space: normal; }
.fiche-intro { display: grid; gap: 24px; }
.fiche-intro .accroche { max-width: 24em; }
.fiche-intro .contact-actions { margin-top: 0; }
.pastille-pleine { background: var(--lime); border-color: var(--lime); color: #000; }
.pastille-pleine:hover { background: var(--texte); border-color: var(--texte); }

/* Cadre de navigateur autour des captures */
.navigateur { border-radius: 12px; overflow: hidden; background: #1c1b18; border: 1px solid #2f2d28; box-shadow: 0 50px 120px -40px rgb(0 0 0 / .9), 0 0 0 1px rgb(255 255 255 / .02); }
.navigateur-barre { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-bottom: 1px solid #2f2d28; }
.navigateur-barre i { width: 10px; height: 10px; border-radius: 50%; background: #3a3833; }
.navigateur-barre span { flex: 0 1 auto; margin: 0 auto; transform: translateX(-24px); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 16px; border-radius: 6px; background: #12110f; font: 400 12px var(--mono); color: var(--gris); }
.navigateur-ecran { aspect-ratio: 16 / 10; overflow: hidden; background: var(--fond-2); }
.navigateur-ecran img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* La couverture tient dans l'écran : largeur bornée par la hauteur disponible. */
/* --haut-hero est posé par site.js : la couverture prend exactement la hauteur qui reste sous le titre. */
.fiche-couverture { margin: 0 auto; padding: 0 var(--marge); width: min(100%, 1080px + 2 * var(--marge), max(520px, (100svh - var(--haut-hero, 380px) - 64px) * 1.6) + 2 * var(--marge)); }
.fiche-couverture .navigateur { transform: perspective(1600px) rotateX(8deg) translateY(30px) scale(.96); opacity: 0; transform-origin: 50% 0; animation: couverture 1.4s .5s var(--ease-out) forwards; }
@keyframes couverture { to { transform: none; opacity: 1; } }

.fiche-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; padding: clamp(72px, 12vh, 140px) var(--marge) 0; }
.fiche-chiffre { border-top: 1px solid var(--trait); padding-top: 18px; }
.fiche-chiffre b { display: block; font: 700 clamp(56px, 7vw, 132px)/.9 var(--display); letter-spacing: -.045em; font-variant-numeric: lining-nums; margin-bottom: 12px; }
.fiche-chiffre b small { font-size: .32em; letter-spacing: 0; margin-left: .12em; color: var(--gris); }
.fiche-chiffre .mono { color: var(--gris); }

.fiche-bloc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 24px 6vw; padding: clamp(72px, 12vh, 140px) var(--marge) 0; }
.fiche-intertitre { display: flex; gap: 14px; align-self: start; color: var(--texte); }
.fiche-intertitre span { color: var(--lime); }
.etiquettes { display: flex; flex-wrap: wrap; gap: 10px; }
.etiquettes li {
  padding: .45em .95em; border: 1px solid var(--trait); border-radius: 999px;
  font: 600 clamp(18px, 1.7vw, 30px)/1.1 var(--display); letter-spacing: -.02em;
  transition: background .35s, color .35s, border-color .35s, transform .4s var(--ease-out);
}
.etiquettes li:hover { background: var(--lime); border-color: var(--lime); color: #000; transform: translateY(-3px) rotate(-1deg); }
.fiche-stack { margin-top: 24px; color: var(--gris); text-transform: none; }
.defis { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.defi { padding: 28px; border: 1px solid var(--trait); border-radius: 10px; background: var(--fond-2); transition: border-color .4s, transform .5s var(--ease-out); }
.defi:hover { border-color: var(--lime); transform: translateY(-4px); }
.defi .mono { color: var(--lime); }
.defi h3 { margin: 14px 0 10px; font: 700 clamp(22px, 2vw, 32px)/1.08 var(--display); letter-spacing: -.03em; }
.defi p { color: var(--gris); font-size: 16px; }
.fiche-bloc-large { grid-template-columns: 1fr; }
.fiche-galerie { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(56px, 10vh, 120px); }
.fiche-image { margin: 0; width: min(100%, 78%); }
.fiche-image.decalee { margin-left: auto; }
.fiche-image figcaption { margin-top: 16px; color: var(--gris); text-transform: none; }
.fiche-image .navigateur-ecran img { transition: transform 1.2s var(--ease-out); }
.fiche-image:hover .navigateur-ecran img { transform: scale(1.025); }
.fiche-suivante {
  position: relative; display: grid; gap: 18px; margin-top: clamp(120px, 20vh, 220px); padding: clamp(56px, 10vh, 120px) var(--marge);
  border-top: 1px solid var(--trait); overflow: hidden; isolation: isolate;
}
.fiche-suivante::before { content: ""; position: absolute; inset: 0; background: var(--lime); transform: scaleY(0); transform-origin: bottom; transition: transform .8s var(--ease); z-index: -1; }
.fiche-suivante .mono { color: var(--gris); transition: color .4s; }
.fiche-suivante-titre { display: inline-flex; align-items: center; gap: .2em; font: 700 clamp(56px, 10vw, 200px)/.9 var(--display); letter-spacing: -.045em; transition: color .4s, transform .8s var(--ease-out); }
.fiche-suivante img {
  position: absolute; right: var(--marge); top: 50%; width: min(34vw, 520px); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 8px;
  opacity: 0; transform: translateY(-40%) rotate(4deg) scale(.9); transition: opacity .5s, transform .8s var(--ease-out); pointer-events: none;
}
.fiche-suivante:hover::before, .fiche-suivante:focus-visible::before { transform: scaleY(1); }
.fiche-suivante:hover .mono, .fiche-suivante:hover .fiche-suivante-titre, .fiche-suivante:focus-visible .fiche-suivante-titre { color: #000; }
.fiche-suivante:hover .fiche-suivante-titre { transform: translateX(12px); }
.fiche-suivante:hover img { opacity: 1; transform: translateY(-50%) rotate(-3deg) scale(1); }
.fiche-suivante:hover .fl { transform: rotate(45deg); }

/* ---------- 404 ---------- */
.introuvable { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 40px var(--marge); }
.introuvable .mono { color: var(--gris); }
.introuvable .accroche, .introuvable .nom { opacity: 1; animation: none; }
.introuvable .nom { font-variant-numeric: lining-nums; }

/* ---------- Scripts : les ressources écrites, sans prix ---------- */
.ressources { padding: 120px var(--marge) 140px; }
.ressources-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: 44px; }
.ressources-tete p { max-width: 42ch; color: var(--gris); flex: 1 1 320px; }
.ressources-liste { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 1px solid var(--trait); padding-top: 32px; }
.ressource {
  display: grid; align-content: start; gap: 14px; padding: 30px 28px; border: 1px solid var(--trait);
  border-radius: 10px; background: var(--fond-2); color: inherit; text-decoration: none;
  transition: border-color .35s var(--ease), transform .45s var(--ease-out), background-color .35s var(--ease);
}
.ressource:hover, .ressource:focus-visible { border-color: var(--lime); transform: translateY(-6px); background: #1b1a16; }
.ressource h3 { transition: color .35s var(--ease); }
.ressource:hover h3, .ressource:focus-visible h3 { color: var(--lime); }
.ressource:hover .ressource-num, .ressource:focus-visible .ressource-num { color: var(--lime); }
/* « Open in the store » : discret au repos, il s'allume et la flèche s'en va au survol. */
.ressource-aller { display: inline-flex; align-items: center; gap: 7px; margin-top: 2px; color: var(--gris-2); transition: color .35s var(--ease); }
.ressource-aller .fl { transition: transform .35s var(--ease-out); }
.ressource:hover .ressource-aller, .ressource:focus-visible .ressource-aller { color: var(--lime); }
.ressource:hover .ressource-aller .fl, .ressource:focus-visible .ressource-aller .fl { transform: translate(4px, -4px); }
.ressource-num { color: var(--gris-2); }
.ressource h3 { font: 700 clamp(26px, 2.4vw, 38px)/1 var(--display); letter-spacing: -.03em; }
.ressource-ligne { color: var(--gris); font-size: 16.5px; }

/* ---------- Prestations et déroulé d'une commande ---------- */
.services { padding: 0 var(--marge) 140px; }
.services-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: 40px; }
.services-tete p { max-width: 38ch; color: var(--gris); }
.services-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--trait); border: 1px solid var(--trait); border-radius: 10px; overflow: hidden; }
.service { display: grid; align-content: start; gap: 12px; padding: 34px 28px; background: var(--fond); transition: background .4s; }
.service:hover { background: var(--fond-2); }
.service .mono { color: var(--gris-2); }
.service h3 { font: 700 23px/1.1 var(--display); letter-spacing: -.02em; }
.service p { color: var(--gris); font-size: 16.5px; }

.etapes-bloc { margin-top: 76px; }
.etapes-titre { color: var(--lime); margin-bottom: 24px; }
.etapes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.etape { display: grid; align-content: start; gap: 10px; padding-top: 20px; border-top: 1px solid var(--trait); transition: border-color .4s; }
.etape:hover { border-top-color: var(--lime); }
.etape-num { color: var(--gris-2); }
.etape h3 { font: 700 21px/1.1 var(--display); letter-spacing: -.02em; }
.etape p { color: var(--gris); font-size: 15.5px; }

/* ---------- Questions : accordéon natif, sans JavaScript ---------- */
.faq { padding: 0 var(--marge) 160px; }
.faq .titre-section { margin-bottom: 40px; }
.questions { border-top: 1px solid var(--trait); }
.question { border-bottom: 1px solid var(--trait); }
.question summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; cursor: pointer; list-style: none; font: 600 clamp(19px, 1.7vw, 26px)/1.25 var(--display); letter-spacing: -.02em; transition: color .3s; }
.question summary::-webkit-details-marker { display: none; }
.question summary:hover, .question[open] summary { color: var(--lime); }
.question summary i { position: relative; flex: none; width: 18px; height: 18px; }
.question summary i::before, .question summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .4s var(--ease); }
.question summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.question[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.question-corps { overflow: hidden; }
.question-corps p { max-width: 68ch; padding-bottom: 28px; color: var(--gris); font-size: 17px; }

/* ---------- Apparitions au défilement ---------- */
.js .revele { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js .revele.vu { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .lettre, .meta, .accroche, .rond, .hero-cta, .js .revele { opacity: 1; transform: none; }
  /* Ces deux-là n'apparaissent que par une animation : sans elle, il faut les rendre visibles à la main. */
  .fiche-couverture .navigateur { opacity: 1; transform: none; }
  .grain { display: none; }
}

/* ---------- Très grands écrans ---------- */
@media (min-width: 1800px) {
  body { font-size: 18px; }
  .projet-detail p:first-child, .parcours-tete p, .jalon-ligne, .ressources-tete p, .contact-sur { font-size: 18px; }
  .groupe li { font-size: 22px; }
  .defi p { font-size: 18px; }
  .chiffre { font-size: 17px; }
  .rond { width: 112px; height: 112px; }
  .pastille { height: 54px; padding: 0 28px; font-size: 15px; }
  .apercu-flottant { width: 440px; }
}

/* ---------- Tablette et mobile ---------- */
@media (max-width: 900px) {
  .piste { transform: none !important; }
  .compteur, .progression { display: none; }
  .frise { grid-template-columns: 1fr; }
  .frise-colle { display: none; }
  .jalon-annee { display: block; }
  .jalon { opacity: 1; padding-bottom: 48px; }
  .jalon.passe:not(.actif) .jalon-corps { opacity: 1; }
  .frise-liste { padding-left: 36px; }
  .jalon-point { left: -36px; }
  .groupes { grid-template-columns: 1fr 1fr; }
  .apercu-flottant { display: none; }
  .fiche-tete { grid-template-columns: 1fr; }
  .fiche-bloc { grid-template-columns: 1fr; }
  .fiche-image, .fiche-image.decalee { width: 100%; margin-left: 0; }
  .navigateur-barre { height: 30px; }
  .navigateur-barre span { font-size: 10.5px; }
  .fiche-suivante img { position: static; width: 100%; opacity: 1; transform: none; margin-top: 12px; }
}
@media (max-width: 640px) {
  .hero-bas { flex-direction: column; align-items: stretch; gap: 18px; }
  .hero-actions { gap: 10px; justify-content: space-between; }
  .hero-cta { height: 42px; padding: 0 16px; font-size: 12px; }
  .nav { grid-template-columns: 1fr auto; padding: 16px var(--marge); }
  .nav nav, .heure { display: none; }
  .hero { padding-top: 76px; }
  .hero-haut { grid-template-columns: 1fr 1fr; } .m3 { display: none; }
  .decale { padding-left: 0; }
  .rond { width: 64px; height: 64px; }
  .nom { font-size: min(24vw, max(64px, (100svh - 300px) / 1.65)); }
  .projet-legende { grid-template-columns: auto 1fr; row-gap: 6px; }
  .projet-legende > .mono:last-child { grid-column: 1 / -1; }
  .projet-legende .fl { opacity: 1; transform: none; }
  .chiffre { padding: 0 22px; }
  .etoile { width: 28px; height: 28px; }
  .groupes { grid-template-columns: 1fr; gap: 28px; }
  .contact-titre { font-size: clamp(52px, 17vw, 96px); }
  .fiche-chiffres { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .fiche-titre { font-size: clamp(52px, 16vw, 96px); }
  .groupe ul { display: flex; flex-wrap: wrap; gap: 4px 18px; }
  .pied { grid-template-columns: 1fr; }
  .pied a, .pied-liens { justify-self: start; }
}

/* Téléphone couché et écrans très bas : le héros garde l'essentiel (nom + accroche). */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding-top: 68px; gap: 20px; }
  .hero-haut { display: none; }
  .nom { font-size: clamp(56px, min(20.5vw, (100svh - 210px) / 1.65), 200px); }
  .rond { width: 56px; height: 56px; }
}

/* Petits téléphones en portrait (iPhone SE…) : le haut de page tient avec le bouton recruteur. */
@media (max-height: 620px) and (orientation: portrait) {
  .hero { gap: 16px; padding-top: 68px; padding-bottom: 20px; }
  .accroche { font-size: 18px; }
  .hero-bas { gap: 12px; }
}

/* Les grilles des nouvelles sections suivent les mêmes paliers que le reste. */
@media (max-width: 900px) {
  .ressources { padding: 90px var(--marge) 100px; }
  .ressources-liste, .services-grille { grid-template-columns: 1fr 1fr; }
  .etapes { grid-template-columns: 1fr 1fr 1fr; }
  .services, .faq { padding-bottom: 100px; }
  .etapes-bloc { margin-top: 56px; }
}
@media (max-width: 640px) {
  .ressources-liste, .services-grille, .etapes { grid-template-columns: 1fr; }
  .ressource { padding: 24px 22px; }
  .service { padding: 26px 22px; }
  .question summary { padding: 20px 0; gap: 16px; }
}

/* Impression : placée en dernier pour l'emporter sur les règles mobiles (une feuille A4 fait moins de 900 px). */
@media print {
  .fiche-fil { display: none !important; }
}
