/* ============================================================
   FASTBREAK · pages projets (20/11/2026)
   Même construction que la page des affiches : couleurs, titres, boutons, pied.
   ============================================================ */
:root {
  --ink: #080B0E; --ink2: #0B0F14; --surface: #0F141A;
  --line: #1C232C; --line2: #232C37;
  --bone: #F4F4F4; --muted: #8A95A3; --flame: #E8322A;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink); color: var(--bone);
  font-family: 'Manrope', system-ui, sans-serif; font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
[id] { scroll-margin-top: 84px; }
.nb { white-space: nowrap; }
.flame { color: var(--flame); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; border-radius: 6px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(8,11,14,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; padding-bottom: 18px; }
.nav img { height: 26px; width: auto; }
.nav .wrap > a { display: inline-flex; align-items: center; min-height: 44px; }   /* le logo : cible tactile de 44 px (la barre fait déjà cette hauteur) */
.nav-r { display: flex; align-items: center; gap: 26px; }
.back { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; transition: color .25s; }
.back:hover { color: var(--bone); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 15px 28px; border-radius: 999px; border: 0;
  font-size: 14px; font-weight: 700; position: relative; overflow: hidden; isolation: isolate;
}
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.btn-flame { background: var(--flame); color: #fff; }
.btn-ghost { color: var(--bone); border: 1px solid var(--line2); }
.btn-ghost:hover { border-color: var(--bone); }
.nav .btn { padding: 11px 22px; font-size: 13px; min-height: 44px; }

/* ---------- Titres ---------- */
.kicker { display: inline-flex; align-items: center; gap: 14px; color: var(--flame); font-size: 12px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; }
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--flame); }
.h1, .h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.h1 { font-size: clamp(44px, 6.2vw, 84px); line-height: .94; margin-top: 20px; }
.h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: .96; margin-top: 16px; }
.lead { color: var(--muted); font-size: 17px; line-height: 1.75; max-width: 620px; margin-top: 26px; }
.lead b, .txt b { color: var(--bone); font-weight: 700; }

/* ---------- Tête de page ---------- */
.hero { position: relative; padding: 56px 0 70px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -10%; top: -30%; width: 70%; height: 140%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(232,50,42,.18), transparent 70%);
}
.hero .wrap { position: relative; }
.statut { display: inline-flex; align-items: center; gap: 10px; margin-left: 18px; border: 1px solid var(--flame); border-radius: 999px; padding: 6px 14px; color: var(--bone); font-size: 12px; font-weight: 700; letter-spacing: .06em; vertical-align: middle; }
.statut::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--flame); }

/* la fiche du projet : quelques faits, pas un tableau de bord */
.fiche { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 46px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fiche div { padding: 22px 26px 22px 0; }
.fiche div + div { padding-left: 26px; border-left: 1px solid var(--line); }
.fiche dt { color: var(--muted); font-size: 12.5px; }
.fiche dd { margin-top: 4px; font-weight: 700; font-size: 15px; line-height: 1.45; }

/* ---------- Pièces du projet ---------- */
.piece { margin-top: 56px; }
.piece .cadre { border-radius: 26px; border: 1px solid var(--line); overflow: hidden; background: linear-gradient(140deg, #16202B, #0C1014); box-shadow: 0 40px 90px rgba(0,0,0,.45); }
.piece img { width: 100%; height: auto; }
.piece .cadre.marge { padding: clamp(18px, 4vw, 54px); }
.piece .cadre.marge img { border-radius: 10px; }
.piece figcaption { margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 760px; }
.pieces-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.pieces-2 .piece { margin-top: 0; }

/* ---------- Sections ---------- */
.sec { padding: 96px 0; border-top: 1px solid var(--line); }
.sec-alt { background: var(--ink2); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.txt { color: var(--muted); font-size: 16.5px; line-height: 1.8; max-width: 560px; margin-top: 22px; }
.txt + .txt { margin-top: 16px; }

/* le procédé : une vraie suite d'étapes, donc numérotée */
.etapes { list-style: none; counter-reset: etape; margin-top: 50px; border-top: 1px solid var(--line); }
.etapes li { counter-increment: etape; display: grid; grid-template-columns: 96px 300px 1fr; gap: 26px; align-items: baseline; padding: 30px 0 32px; border-bottom: 1px solid var(--line); }
.etapes li::before { content: counter(etape, decimal-leading-zero); font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 46px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--flame); }
.etapes h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; text-transform: uppercase; font-size: 27px; line-height: 1.02; }
.etapes p { color: var(--muted); font-size: 15.5px; line-height: 1.75; max-width: 600px; }
.etapes p b { color: var(--bone); font-weight: 700; }

/* ce qui a été livré */
.livre { list-style: none; margin-top: 26px; max-width: 620px; }
.livre li { position: relative; padding: 13px 0 13px 30px; border-bottom: 1px solid var(--line); color: var(--bone); font-size: 15.5px; line-height: 1.6; }
.livre li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 14px; height: 2px; background: var(--flame); }

/* emplacement de la vidéo (rempli le jour des autorisations) */
.film { margin-top: 56px; }
.film video { width: 100%; height: auto; border-radius: 26px; border: 1px solid var(--line); background: #000; }

/* ---------- Suite et appel ---------- */
.suite { padding: 110px 0; border-top: 1px solid var(--line); text-align: center; position: relative; overflow: hidden; }
.suite::before { content: ""; position: absolute; left: 50%; top: 100%; transform: translate(-50%, -40%); width: 120%; height: 120%; background: radial-gradient(closest-side, rgba(232,50,42,.22), transparent 70%); pointer-events: none; }
.suite .wrap { position: relative; }
.suite .lead { margin-left: auto; margin-right: auto; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.suite .ctas { justify-content: center; }
.autres { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-top: 40px; color: var(--muted); font-size: 14px; }
.autres a { display: inline-flex; align-items: center; min-height: 44px; color: var(--bone); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 5px; }
.autres a:hover { text-decoration-color: var(--flame); }

/* ---------- Pied ---------- */
.foot { border-top: 1px solid var(--line); padding: 34px 0 54px; color: var(--muted); font-size: 13px; }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.foot nav { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; }
.foot a:hover { color: var(--bone); }

/* ---------- Fil d'Ariane, statut, liens dans le texte, étape en cours ---------- */
.fil { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin-bottom: 22px; color: var(--muted); font-size: 13px; }
.fil a { display: inline-flex; align-items: center; min-height: 44px; transition: color .25s; }
.fil a:hover { color: var(--bone); }
.fil [aria-current] { color: var(--bone); }
.statut-l { margin-top: 22px; }
.statut-l .statut { margin: 0; }
.txt a, .etapes p a, .livre a { color: var(--bone); text-decoration: underline; text-decoration-color: var(--flame); text-underline-offset: 4px; }
.txt a:hover, .etapes p a:hover, .livre a:hover { color: #fff; }
.etapes .marque { display: inline-block; margin-left: 12px; padding: 3px 11px; border: 1px solid var(--flame); border-radius: 999px; font-family: 'Manrope', system-ui, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--bone); vertical-align: middle; }
.autres-t { margin-top: 56px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.autres { margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .duo { grid-template-columns: 1fr; gap: 56px; }
  .fiche { grid-template-columns: 1fr 1fr; }
  .fiche div:nth-child(3) { padding-left: 0; border-left: 0; }
  .fiche div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .etapes li { grid-template-columns: 64px 1fr; }
  .etapes li p { grid-column: 2; }
  .pieces-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .back { display: none; }
  .hero { padding: 44px 0 56px; }
  .lead { font-size: 15.5px; }
  .sec { padding: 72px 0; }
  .suite { padding: 80px 0; }
  .ctas .btn { width: 100%; }
  .fiche { grid-template-columns: 1fr; }
  .fiche div, .fiche div + div { padding: 16px 0; border-left: 0; }
  .fiche div + div { border-top: 1px solid var(--line); }
  .statut { margin: 14px 0 0; display: flex; width: fit-content; }
  .etapes li { grid-template-columns: 1fr; gap: 8px; padding: 24px 0 26px; }
  .etapes li p { grid-column: 1; }
  .piece .cadre { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn .arr { transition: none; }
}
