/* ==========================================================================
   Thierry Bahani — « Nuit bleue »
   Système visuel du site public, inspiré de visuvate.com. Référence : docs/DESIGN.md
   (Le studio privé charge ce fichier puis static/css/studio.css.)
   ========================================================================== */

/* ---------- Polices locales (SIL Open Font License, voir static/fonts) ---------- */
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-variable.a147f99cd533.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-300.6f30f7b4ac31.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-300-italic.a65c831714d3.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-500.a21e038a03f7.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --font-display: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: var(--font-display);
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;

  --gutter: 24px;
  --wrap: 1380px;
  --hairline: 1px solid var(--line);

  --r-sm: 8px; --r: 12px; --r-lg: 18px; --pill: 999px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;

  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 10 10 2M4 2h6v6' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E");
}

/* Thème sombre : celui par défaut, et celui de la fenêtre d'éditeur et de la couverture dans les deux thèmes. */
:root, .hero__stage, .cover__inner {
  --bg: #000;                 /* noir pur */
  --panel: #111;              /* champs, cartes du studio */
  --panel-2: #1C1C1C;         /* code, cadres vidéo */
  --fg: #FFF;                 /* texte */
  --fg-strong: #D8D8D8;       /* survol des boutons clairs */
  --fg-soft: #9A9A9A;         /* texte secondaire (≈ 7,5:1 sur --bg) */
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --line-hover: rgba(255, 255, 255, .32);
  --tint: rgba(255, 255, 255, .05);       /* champs, survols */
  --glass: rgba(0, 0, 0, .7);             /* surfaces vitrées */
  --glass-strong: rgba(17, 17, 17, .86);
  --header-bg: rgba(0, 0, 0, .72);
  --prose: #E6E6E6;
  --accent: #0099FF;          /* bleu électrique */
  --accent-soft: #7ACAFF;     /* bleu lisible en petit texte sur le fond */
  --on-accent: #000;          /* texte posé sur le bleu (≈ 6,9:1) */
  --alert: #FF6A4D;           /* démo, erreurs */
  /* Halo bleu posé en haut des en-têtes de page. */
  --glow: radial-gradient(70% 120% at 50% -10%, rgba(0, 153, 255, .22), transparent 70%);
  /* Fond des cartes : un léger relief, jamais un aplat gris. */
  --card: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015) 60%);
  --shadow: 0 44px 90px -24px rgba(0, 0, 0, .95), 0 18px 44px -18px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* Thème clair : choisi avec l'interrupteur de l'en-tête (static/js/site.js). */
:root[data-theme="light"] {
  --bg: #FFF;
  --panel: #F5F5F5;
  --panel-2: #ECECEC;
  --fg: #000;
  --fg-strong: #363636;
  --fg-soft: #5A5A5A;         /* ≈ 6,9:1 sur blanc */
  --line: rgba(0, 0, 0, .1);
  --line-strong: rgba(0, 0, 0, .18);
  --line-hover: rgba(0, 0, 0, .34);
  --tint: rgba(0, 0, 0, .04);
  --glass: rgba(255, 255, 255, .72);
  --glass-strong: rgba(250, 250, 250, .9);
  --header-bg: rgba(255, 255, 255, .8);
  --prose: #1F1F1F;
  --accent-soft: #0068AD;     /* ≈ 6,1:1 sur blanc */
  --alert: #C4321A;
  --glow: radial-gradient(70% 120% at 50% -10%, rgba(0, 153, 255, .16), transparent 70%);
  --card: linear-gradient(180deg, rgba(0, 0, 0, .035), rgba(0, 0, 0, .008) 60%);
  --shadow: 0 40px 72px -28px rgba(0, 0, 0, .18), 0 14px 32px -18px rgba(0, 0, 0, .1);
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  transition: background-color .28s var(--ease), color .28s var(--ease);
}
@media (min-width: 768px) { body { font-size: 1.0625rem; } }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 500; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 300;
  padding: 10px 20px; border-radius: var(--pill);
  background: var(--fg); color: var(--bg); font-size: 0.875rem; font-weight: 500;
}
.skip-link:focus { top: 12px; }

/* ---------- Petits éléments ---------- */
.label {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.005em;
}
.label--line { display: flex; align-items: center; gap: var(--s2); }
.label--line::after { content: ""; flex: 0 1 180px; height: 1px; background: currentColor; opacity: .3; }

/* Pastille : contour fin, point bleu. Sert d'étiquette aux sections et aux en-têtes. */
.badge,
.section-head > .label:first-child,
.plain-page .wrap > .label:first-child,
.page-head .wrap > .label:first-child {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px; border: 1px solid var(--line-strong); border-radius: var(--pill);
  color: var(--fg); font-size: 0.8125rem; font-weight: 500; line-height: 1.3; white-space: nowrap;
}
.badge::before,
.section-head > .label:first-child::before,
.plain-page .wrap > .label:first-child::before,
.page-head .wrap > .label:first-child::before {
  content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
}

/* Mots en italique à empattement : le contrepoint du titre. */
.serif, .serif-i, .display em, .collab__title em, .page-head__title em {
  font-family: var(--font-serif); font-weight: 300; font-style: italic;
  letter-spacing: -0.04em; margin-left: -.03em;
}
.serif { font-style: normal; }

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.arrow {
  display: inline-block; width: .62em; height: .62em; flex: none;
  background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
  transition: transform .3s var(--ease);
}
.arrow--right { transform: rotate(45deg); }
a:hover > .arrow, a:hover .door__title .arrow { transform: translate(2px, -2px); }
a:hover .arrow--right { transform: rotate(45deg) translate(2px, -2px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 20px;
  border: 1px solid transparent; border-radius: var(--pill); background: transparent; color: inherit;
  font: inherit; font-size: 0.9375rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.btn--primary, .btn--light, .btn--dark { background: var(--fg); color: var(--bg); }
.btn--primary:hover, .btn--light:hover, .btn--dark:hover { background: var(--fg-strong); }
.btn--outline { border-color: var(--line-strong); color: var(--fg); }
.btn--outline:hover { border-color: var(--fg-soft); background: var(--tint); }

/* Libellé qui roule lettre par lettre au survol (construit par static/js/site.js). */
.roll { display: inline-flex; align-items: flex-start; height: 1.2em; overflow: hidden; vertical-align: bottom; }
.roll__char { display: inline-flex; flex-direction: column; white-space: pre; transition: transform .52s var(--ease); transition-delay: calc(var(--i) * 18ms); }
.roll__char > span { height: 1.2em; flex: none; }
:is(a, button):is(:hover, :focus-visible) .roll__char { transform: translateY(-50%); }
@media (pointer: coarse) { :is(a, button):is(:hover, :focus-visible) .roll__char { transform: none; } }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding-block: 8px;
  font-size: 0.9375rem; font-weight: 500; text-decoration: none; color: var(--fg);
  background: linear-gradient(var(--line-strong), var(--line-strong)) 0 calc(100% - 9px) / 100% 1px no-repeat;
  transition: color .22s var(--ease), background-size .3s var(--ease);
}
.link-arrow:hover { color: var(--accent-soft); background-image: linear-gradient(var(--accent-soft), var(--accent-soft)); }

.chip {
  display: inline-block; padding: 2px 10px;
  border: 1px solid currentColor; border-radius: var(--pill);
  font-size: 0.75rem; font-weight: 500; line-height: 1.5;
  white-space: nowrap;
}
.chip--demo { color: var(--alert); }

.note {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: var(--pill);
  background: var(--glass); color: var(--fg);
  font-size: 0.8125rem; font-weight: 500; line-height: 1.3;
}

.play {
  position: relative; display: block; flex: none;
  width: 48px; aspect-ratio: 1; border-radius: 50%;
  background: var(--fg); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6);
}
.play::after {
  content: ""; position: absolute; inset: 33% 30% 33% 39%;
  background: var(--bg); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.play--lg { width: 72px; }

/* Barres bleues qui respirent : ouverture de l'accueil et bandeau final. */
.bars { position: absolute; inset: 0; z-index: -1; display: flex; pointer-events: none; }
.bars i {
  flex: 1; height: 100%;
  background: linear-gradient(to top, var(--accent), transparent);
  transform: scaleY(var(--s, 1)); transform-origin: bottom;
}

/* ---------- Bandeau de prévisualisation ---------- */
.demo-bar {
  padding: 8px var(--gutter);
  background: var(--panel); color: var(--fg); border-bottom: var(--hairline);
  font-size: 0.8125rem; line-height: 1.5; text-align: center;
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--header-bg); border-bottom: var(--hairline);
  -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 68px; flex-wrap: wrap; }

.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.brand__mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: var(--fg); color: var(--bg);
  font-weight: 700; font-size: 0.8125rem; line-height: 1; letter-spacing: -0.04em;
}
.brand__name { font-size: 1rem; font-weight: 600; letter-spacing: -0.03em; }

.site-nav { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.site-nav__list { display: flex; flex-wrap: wrap; gap: 0 28px; }
.site-nav__list a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.9375rem; color: var(--fg-soft); text-decoration: none;
  transition: color .22s var(--ease);
}
.site-nav__list a:hover, .site-nav__list a[aria-current="page"] { color: var(--fg); }
.site-nav__cta { min-height: 38px; padding: 8px 18px; font-size: 0.8125rem; border-color: transparent; background: var(--fg); color: var(--bg); }
.site-nav__cta:hover { background: var(--fg-strong); border-color: transparent; }

.nav-toggle { display: none; }

@media (min-width: 860px) {
  .site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .site-nav { display: contents; }
  .site-nav__cta { justify-self: end; }
}

@media (max-width: 859px) {
  .js .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; margin-right: -2px;
    background: none; border: 1px solid var(--line-strong); border-radius: 50%; color: inherit; cursor: pointer;
  }
  .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nav-toggle__bars { position: relative; width: 16px; height: 10px; border-block: 1.5px solid currentColor; transition: transform .38s var(--ease); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { height: 0; border-bottom: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { content: ""; position: absolute; inset: -1.5px 0 auto; height: 1.5px; background: currentColor; transform: rotate(90deg); }

  .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: var(--s3); padding-bottom: var(--s3); }
  .js .site-nav {
    display: none;
    position: fixed; left: 0; right: 0; top: 69px; bottom: 0; overflow-y: auto;
    justify-content: space-between;
    padding: var(--s3) var(--gutter) var(--s5);
    background: var(--bg);
  }
  .js .site-nav.is-open { display: flex; animation: menu-in .6s var(--ease); }
  .site-nav__list { flex-direction: column; gap: 0; counter-reset: menu; }
  .site-nav__list li { counter-increment: menu; }
  .site-nav__list a {
    display: flex; align-items: baseline; gap: var(--s2); min-height: 0; padding-block: 13px;
    border-bottom: var(--hairline); color: var(--fg);
    font-size: 2.125rem; font-weight: 500; line-height: 1.15; letter-spacing: -0.035em;
  }
  .site-nav__list a::before { content: counter(menu, decimal-leading-zero); width: 24px; flex: none; font-size: 0.6875rem; letter-spacing: 0; color: var(--fg-soft); font-variant-numeric: tabular-nums; }
  .site-nav__cta { min-height: 52px; font-size: 0.9375rem; background: var(--accent); color: var(--on-accent); }
  .site-nav__cta:hover { background: var(--accent-soft); }
}
@keyframes menu-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }

/* ---------- Ouverture ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-top: clamp(64px, 11vh, 128px); text-align: center; }
.hero .bars {
  -webkit-mask-image: linear-gradient(to bottom, transparent 30%, #000 85%);
  mask-image: linear-gradient(to bottom, transparent 30%, #000 85%);
  opacity: .9;
}
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero__badge { max-width: 100%; margin-bottom: var(--s3); background: var(--bg); white-space: normal; text-align: left; }
.hero__inner > * { max-width: 100%; }
.hero__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(3rem, 7.4vw, 6.25rem); line-height: 1; letter-spacing: -0.06em;
}
.hero__line { display: block; }
.hero__lead { max-width: 34em; margin-top: var(--s3); font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.55; color: var(--fg-soft); text-wrap: balance; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: var(--s4); }

/* Portrait en fond : un peu à droite du titre, fondu vers le bas et sur les bords, assez net pour être reconnu. */
.hero__portrait {
  position: absolute; z-index: -1; top: clamp(8px, 3vh, 40px); left: 66%;
  width: min(720px, 54vw); max-width: none; height: auto;
  transform: translateX(-50%);
  opacity: .36; filter: grayscale(1) contrast(1.1);
  -webkit-mask-image: radial-gradient(ellipse 52% 50% at 50% 30%, #000 30%, transparent 76%);
  mask-image: radial-gradient(ellipse 52% 50% at 50% 30%, #000 30%, transparent 76%);
  pointer-events: none;
}
:root[data-theme="light"] .hero__portrait { opacity: .3; mix-blend-mode: multiply; }
@media (max-width: 759px) {
  .hero__portrait { top: 40px; left: 70%; width: 118vw; opacity: .28; }
}

/* Fenêtre façon éditeur : elle lit la vidéo d'ouverture sur place. */
.hero__stage {
  position: relative; width: 100%; max-width: 1100px; margin-top: var(--s6);
  padding: 6px 6px 0; border: 1px solid rgba(255, 255, 255, .2); border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0;
  -webkit-backdrop-filter: blur(14px) saturate(1.75) brightness(1.45); backdrop-filter: blur(14px) saturate(1.75) brightness(1.45);
  color: var(--fg); text-align: left;
}
:root[data-theme="light"] .hero__stage { border-color: rgba(0, 0, 0, .14); }
.stage__bar {
  display: grid; grid-template-columns: 60px minmax(0, 1fr) 60px; align-items: center; justify-items: center; gap: var(--s2);
  padding: 12px 18px; border-radius: var(--r) var(--r) 0 0; border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: var(--bg);
}
.stage__dots { display: flex; gap: 7px; justify-self: start; }
.stage__dots i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.stage__dots i:nth-child(2) { background: #FEBC2E; }
.stage__dots i:nth-child(3) { background: #28C840; }
.stage__url { max-width: 100%; overflow: hidden; padding: 5px 16px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .07); color: var(--fg-soft); font-size: 0.75rem; white-space: nowrap; text-overflow: ellipsis; }
.stage__zoom { justify-self: end; color: var(--fg-soft); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.stage__body { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }

.stage__video { position: absolute; inset: 0; display: grid; place-items: center; color: #FFF; text-decoration: none; }
.stage__video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s var(--ease); }
.stage__video .play { position: relative; z-index: 1; transition: transform .4s var(--ease); }
.stage__video:hover img { transform: scale(1.03); filter: brightness(.88); }
.stage__video:hover .play { transform: scale(1.1); }
iframe.stage__video { width: 100%; height: 100%; border: 0; }

@media (max-width: 639px) {
  .stage__url { display: none; }
  .stage__bar { grid-template-columns: 1fr auto; }
  .stage__video .play { width: 56px; }
}

/* Ruban défilant sous l'ouverture. */
.ticker { overflow: hidden; border-block: var(--hairline); padding-block: 22px; }
.ticker__track { display: flex; width: max-content; }
.ticker__list { display: flex; flex: none; align-items: center; }
.ticker__list li { display: flex; align-items: center; font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.035em; white-space: nowrap; }
.ticker__list li:nth-child(even) { font-family: var(--font-serif); font-weight: 300; font-style: italic; letter-spacing: -0.03em; color: var(--fg-soft); }
.ticker__list li::after { content: ""; width: 7px; height: 7px; margin-inline: clamp(24px, 3vw, 44px); border-radius: 50%; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .ticker__track { animation: ticker 38s linear infinite; }
  .ticker:hover .ticker__track { animation-play-state: paused; }
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Téléphone provisoire (CSS) ---------- */
.phone {
  container-type: inline-size;
  aspect-ratio: 9 / 18.5; padding: 4.5%;
  background: #000; border-radius: 15% / 7.3%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .3), var(--shadow);
}
.phone__screen {
  position: relative; display: flex; flex-direction: column; align-items: center;
  height: 100%; overflow: hidden; border-radius: 12% / 5.6%;
  background: linear-gradient(#131A3C 0 46%, #C9783F 46% 60%, #2F5A3A 60%);
  color: #fff; text-align: center;
}
.phone__notch { width: 34%; height: 3.2%; margin-top: 5%; background: #000; border-radius: 99px; }
.phone__peaks { width: 22%; aspect-ratio: 2 / 1; margin-top: 16%; background: #fff; clip-path: polygon(0 100%, 30% 10%, 50% 60%, 70% 10%, 100% 100%); }
.phone__title { margin-top: 5%; font-weight: 700; font-size: 13cqw; line-height: 1; letter-spacing: -0.04em; }
.phone__sub { margin-top: 3%; font-size: max(6.4cqw, 9px); letter-spacing: .02em; opacity: .9; }
.phone__hills { position: absolute; inset: 44% -10% 22%; background: #1E3F2A; clip-path: polygon(0 100%, 0 60%, 22% 30%, 38% 55%, 58% 8%, 76% 50%, 100% 30%, 100% 100%); }
.phone__tabs { position: absolute; inset: auto 6% 5%; display: flex; gap: 5%; padding: 5%; background: #FFF; border-radius: 8px; }
.phone__tabs i { flex: 1; aspect-ratio: 1.3; background: rgba(0, 0, 0, .16); border-radius: 3px; }

/* ---------- Sections ---------- */
.section { padding-block: var(--s6); }
.section--tight { padding-bottom: var(--s7); }
@media (min-width: 960px) { .section { padding-block: var(--s7); } .section--tight { padding-bottom: var(--s8); } }

.section-head { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s5); color: var(--fg-soft); }
.section-head__rule { flex: 1; height: 1px; background: var(--line); }
.section__more { margin-top: var(--s4); text-align: right; }

/* Carte commune : bord fin, relief discret, grands arrondis. */
.poster, .build, .toc, .guide__path, .case__visual, .guide__note, .form__errors {
  border: var(--hairline); border-radius: var(--r-lg);
  background: var(--card), var(--bg);
}

/* À la une */
.une { display: grid; gap: var(--s5); align-items: center; }
.poster {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 300px; width: 100%; padding: var(--s3); overflow: hidden;
  background: radial-gradient(90% 90% at 100% 110%, rgba(0, 153, 255, .35), transparent 60%), var(--card), var(--bg);
  color: var(--fg); text-decoration: none;
  transition: border-color .3s var(--ease);
}
.poster:hover { border-color: var(--line-strong); }
.poster__kind { margin-bottom: var(--s2); color: var(--fg-soft); }
.poster__title { max-width: 12em; font-weight: 500; font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.02; letter-spacing: -0.045em; }
.poster__caption { margin-top: var(--s1); max-width: 22em; font-size: 1rem; color: var(--fg-soft); }
.poster .play { position: absolute; right: var(--s3); top: var(--s3); transition: transform .4s var(--ease); }
.poster:hover .play { transform: scale(1.08); }
.une__text > * + * { margin-top: var(--s3); }
.une__text > .label { color: var(--fg-soft); }
.une__text p:not(.label) { max-width: 34em; color: var(--fg-soft); }
.une__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); }

@media (min-width: 960px) {
  .une { grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); gap: var(--s6); }
  .poster { padding: var(--s5); }
  .poster .play { right: var(--s5); top: var(--s5); }
}

/* Ce que je construis */
.builds { display: grid; gap: var(--s3); }
.build {
  position: relative; display: grid; gap: var(--s3);
  padding: var(--s4) var(--s3) 0; overflow: hidden;
  transition: border-color .3s var(--ease);
}
.build:hover { border-color: var(--line-strong); }
.build__text > .label { color: var(--fg-soft); }
.build__title { margin-top: var(--s1); font-weight: 500; font-size: clamp(1.75rem, 2.4vw, 2.25rem); line-height: 1.05; letter-spacing: -0.045em; }
.build__tagline { margin-top: 8px; font-family: var(--font-serif); font-weight: 300; font-style: italic; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--accent-soft); }
.build__facts { margin-block: var(--s3) var(--s2); display: grid; gap: var(--s2); font-size: 1rem; line-height: 1.55; }
.build__facts dt { font-size: 0.75rem; font-weight: 500; color: var(--fg-soft); }
.build__visual { position: relative; min-height: 240px; }
.build__visual::before {
  content: ""; position: absolute; inset: 20% -10% -30% 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 153, 255, .3), transparent);
}
.build__visual .phone { position: absolute; left: 12%; top: 0; width: min(46%, 190px); transform: rotate(-5deg); }
.build__visual .note { position: absolute; right: var(--s3); top: 6%; max-width: 12em; white-space: normal; }

.screen { position: absolute; left: 0; bottom: 0; width: 78%; }
.screen__panel {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 6%; align-items: end;
  aspect-ratio: 16 / 10; padding: 7%;
  background: #000; border: 6px solid #2A2A2A; border-bottom-width: 10px; border-radius: 10px 10px 0 0;
}
.screen__lines { display: grid; gap: 8px; align-self: start; }
.screen__lines i { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .3); }
.screen__lines i:nth-child(2) { width: 70%; } .screen__lines i:nth-child(3) { width: 85%; background: var(--accent-soft); } .screen__lines i:nth-child(4) { width: 50%; }
.screen__bars { display: flex; align-items: flex-end; gap: 6%; height: 100%; }
.screen__bars i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(to top, var(--accent), var(--accent-soft)); }
.screen__bars i:nth-child(1) { height: 22%; } .screen__bars i:nth-child(2) { height: 38%; } .screen__bars i:nth-child(3) { height: 30%; }
.screen__bars i:nth-child(4) { height: 56%; } .screen__bars i:nth-child(5) { height: 48%; } .screen__bars i:nth-child(6) { height: 74%; } .screen__bars i:nth-child(7) { height: 92%; }
.screen__base { display: block; height: 10px; margin-inline: -6%; border-radius: 0 0 8px 8px; background: #2A2A2A; }

@media (min-width: 640px) {
  .build { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); padding: var(--s5) 0 0 var(--s5); }
  .build__text { padding-bottom: var(--s5); }
  .build__visual { min-height: 300px; }
  .build__visual .phone { left: 0; top: 4%; width: min(46%, 200px); }
}
@media (min-width: 1100px) {
  .builds { grid-template-columns: 1fr 1fr; gap: var(--s3); }
}

/* Explorer les idées */
.ideas { display: grid; gap: var(--s5); }
.ideas__intro > * + * { margin-top: var(--s3); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics li { padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: var(--pill); font-size: 0.8125rem; font-weight: 500; transition: background-color .22s var(--ease), color .22s var(--ease); }
.idea { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); padding-block: var(--s3); border-top: var(--hairline); }
.idea:last-child { border-bottom: var(--hairline); }
.idea__num { min-width: 2em; padding-top: .45em; font-size: 0.75rem; font-variant-numeric: tabular-nums; color: var(--fg-soft); }
.idea__body > .label { color: var(--fg-soft); }
.idea__title { margin-top: 6px; font-weight: 500; font-size: clamp(1.375rem, 2.2vw, 1.875rem); line-height: 1.12; letter-spacing: -0.035em; }
.idea__title a { display: inline-block; text-decoration: none; transition: transform .3s var(--ease), color .22s var(--ease); }
.idea:hover .idea__title a { transform: translateX(4px); }
.idea__title a:hover { color: var(--accent-soft); }
.idea:hover .idea__num { color: var(--accent-soft); }
.idea__summary { margin-top: 6px; color: var(--fg-soft); font-size: 1rem; }
/* Rythme volontairement inégal : le premier contenu domine. */
.idea:first-child .idea__title { font-size: clamp(1.625rem, 2.9vw, 2.5rem); }
.ideas__empty { padding-block: var(--s4); border-block: var(--hairline); color: var(--fg-soft); }
@media (min-width: 960px) {
  .ideas { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6); align-items: start; }
  .ideas__intro { position: sticky; top: 100px; }
  .idea { gap: var(--s5); padding-block: var(--s4); }
}

/* Ressources */
.resource { display: grid; gap: var(--s5); align-items: center; }
.resource__text > * + * { margin-top: var(--s3); }
.resource__text > .label { color: var(--fg-soft); }
.resource__text p:not(.label) { max-width: 38em; color: var(--fg-soft); }
.cover { display: block; width: min(72%, 280px); margin: var(--s2) auto var(--s3); text-decoration: none; transition: transform .5s var(--ease); }
.cover:hover { transform: translateY(-6px) rotate(-1deg); }
.cover--image img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow); }
.cover__inner {
  display: flex; flex-direction: column; gap: var(--s2);
  aspect-ratio: 3 / 4; padding: 12%; text-align: left;
  border: 1px solid var(--line-strong); border-radius: 16px;
  background: radial-gradient(120% 75% at 50% 115%, var(--accent) 0%, rgba(0, 153, 255, .35) 40%, transparent 72%), #050505;
  color: var(--fg); box-shadow: var(--shadow);
}
.cover__brand { font-size: 0.6875rem; font-weight: 500; color: var(--fg-soft); }
.cover__title { font-weight: 600; font-size: 1.375rem; line-height: 1.08; letter-spacing: -0.04em; }
.cover__status { margin-top: auto; align-self: flex-start; padding: 4px 12px; border-radius: var(--pill); background: var(--fg); color: var(--bg); font-size: 0.75rem; font-weight: 500; }
.facts { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); padding-block: var(--s2); border-block: var(--hairline); font-size: 1rem; }
.facts dt { font-size: 0.75rem; font-weight: 500; color: var(--fg-soft); }
.note--stack { display: none; }
@media (min-width: 860px) {
  .resource { grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: var(--s6); }
  .cover { width: min(86%, 300px); }
}
@media (min-width: 1200px) {
  .resource { grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 2fr); }
  .note--stack { display: inline-flex; justify-self: end; }
}

/* ---------- Bandeau final : collaborer ---------- */
.collab { position: relative; isolation: isolate; overflow: hidden; border-top: var(--hairline); text-align: center; }
/* Les barres, sans animation ici : un fond découpé en quinze colonnes. */
.collab::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 153, 255, .75), transparent 75%);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(100% / 15 - 1px), transparent calc(100% / 15 - 1px) calc(100% / 15));
  mask: repeating-linear-gradient(90deg, #000 0 calc(100% / 15 - 1px), transparent calc(100% / 15 - 1px) calc(100% / 15));
}
.collab__inner { display: grid; justify-items: center; gap: var(--s5); padding-block: var(--s7); }
.collab__lead { display: grid; justify-items: center; }
.collab__lead > .label { color: var(--fg-soft); }
.collab__lead > .label--line::after { display: none; }
.collab__title { max-width: 14em; margin-top: var(--s2); font-weight: 500; font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.06em; text-wrap: balance; }
.doors { display: grid; gap: 10px; width: 100%; max-width: 1100px; text-align: left; }
.door {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  min-height: 112px; padding: var(--s3); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  background: var(--glass); text-decoration: none;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .4s var(--ease);
}
.door__title { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); font-weight: 500; font-size: clamp(1.375rem, 1.8vw, 1.625rem); line-height: 1.1; letter-spacing: -0.035em; }
.door__detail { font-size: 0.9375rem; color: var(--fg-soft); }
.door:hover { border-color: var(--line-hover); background: var(--glass-strong); transform: translateY(-3px); }
.door:hover .door__title .arrow { color: var(--accent-soft); }
@media (min-width: 760px) {
  .doors { grid-template-columns: repeat(3, 1fr); }
  .door { height: 100%; min-height: 148px; }
}
@media (min-width: 1100px) { .collab__inner { padding-block: var(--s8); } }

/* ---------- Lettre ---------- */
.letter__inner { display: grid; gap: var(--s4); align-items: end; }
.letter .label { color: var(--fg-soft); }
.letter .display { margin-top: var(--s2); font-size: clamp(1.625rem, 2.8vw, 2.5rem); line-height: 1.1; }
.letter__form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.letter__form label { display: block; font-size: 0.875rem; font-weight: 500; }
.letter__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.letter__row input {
  flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 10px 20px;
  background: var(--tint); border: 1px solid var(--line-strong); border-radius: var(--pill); color: inherit; font: inherit;
}
.letter__row .letter__name { flex: 1 1 140px; max-width: 100%; }
.letter__row .btn { min-height: 48px; }
.letter__row input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--fg-soft); opacity: .8; }
.letter__consent { display: flex !important; gap: 12px; align-items: flex-start; margin-top: var(--s2); font-weight: 400 !important; line-height: 1.45; color: var(--fg-soft); }
.letter__consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.letter__form fieldset:disabled { opacity: .6; }
.letter__form fieldset:disabled .btn { cursor: not-allowed; }
.letter__state { margin-top: var(--s2); padding-left: 12px; border-left: 2px solid var(--accent); font-size: 0.875rem; color: var(--fg-soft); }
@media (min-width: 960px) { .letter__inner { grid-template-columns: 1fr 1fr; gap: var(--s6); } }

/* ---------- Pied de page ---------- */
.site-footer { border-top: var(--hairline); background: radial-gradient(60% 80% at 50% 120%, rgba(0, 153, 255, .14), transparent 70%); }
.site-footer__top { display: grid; gap: var(--s5); padding-block: var(--s6) var(--s5); }
.site-footer__claim { font-weight: 500; font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.02; letter-spacing: -0.05em; }
.site-footer__claim .brand { margin-bottom: var(--s3); }
.site-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s3); }
.site-footer__title { margin-bottom: var(--s1); font-size: 0.8125rem; font-weight: 500; color: var(--fg-soft); }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 36px; font-size: 0.9375rem; text-decoration: none; transition: color .22s var(--ease); }
.site-footer__links a:hover { color: var(--accent-soft); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s3); padding-block: var(--s3); border-top: var(--hairline); }
.site-footer__legal { font-size: 0.8125rem; color: var(--fg-soft); }
@media (min-width: 960px) {
  .site-footer__top { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s6); padding-block: var(--s7) var(--s6); }
  .site-footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Pages simples (en préparation, 404) ---------- */
.plain-page { padding-block: var(--s7) var(--s8); min-height: 56vh; background: var(--glow); }
.plain-page .wrap > * + * { margin-top: var(--s3); }
.plain-page__title, .page-head__title {
  font-weight: 500;
  font-size: clamp(2.75rem, 8vw, 6rem); line-height: 1; letter-spacing: -0.06em; text-wrap: balance;
}
.plain-page__lead, .page-head__lead { max-width: 32em; font-size: clamp(1.125rem, 1.8vw, 1.375rem); line-height: 1.45; color: var(--fg-soft); text-wrap: pretty; }

/* ==========================================================================
   Pages de publication
   ========================================================================== */

.demo-bar--preview { background: var(--alert); color: #000; border-bottom: 0; }

/* Images éditoriales */
.shot { width: 100%; height: auto; border: var(--hairline); border-radius: var(--r); }
.poster--static { min-height: 0; aspect-ratio: 16 / 9; }
.poster--image { padding: 0; }
.poster--image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Une vraie image porte déjà son titre : il reste lisible par les lecteurs d'écran seulement. */
.poster--image .poster__kind, .poster--image .poster__title {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.poster--image { min-height: 0; aspect-ratio: 16 / 9; }
@media (min-width: 600px) { .poster { aspect-ratio: 16 / 10; } .poster--image { aspect-ratio: 16 / 9; } }
.topics a { text-decoration: none; }
.topics li:has(a:hover) { background: var(--fg); border-color: var(--fg); color: var(--bg); }

/* En-têtes de page */
.page-head { padding-block: var(--s6) var(--s5); background: var(--glow); border-bottom: var(--hairline); }
.page-head .wrap > * + * { margin-top: var(--s2); }
.page-head__title { margin-top: var(--s3) !important; }
@media (min-width: 960px) { .page-head { padding-block: var(--s7) var(--s6); } }

.doc-head { background: var(--glow); border-bottom: var(--hairline); }
.doc-head__inner { padding-block: var(--s6) var(--s5); }
.doc-head__inner > * + * { margin-top: var(--s3); }
.doc-head .label { color: var(--accent-soft); }
.doc-head__title { max-width: 18em; font-weight: 500; font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: 1.02; letter-spacing: -0.055em; text-wrap: balance; }
.doc-head__lead { max-width: 34em; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.5; color: var(--fg-soft); }
.doc-head__dates { font-size: 0.875rem; color: var(--fg-soft); }
@media (min-width: 960px) { .doc-head__inner { padding-block: var(--s7) var(--s6); } }

/* Colonne de lecture */
.doc { max-width: calc(46rem + 2 * var(--gutter)); margin-inline: 0 auto; padding-block: var(--s5) var(--s6); }
.doc > * + * { margin-top: var(--s5); }
.doc > section > * + *, .doc > .prose > * + * { margin-top: var(--s3); }
.doc--case { max-width: var(--wrap); margin-inline: auto; }
.doc__h2, .prose h2 { font-weight: 500; font-size: clamp(1.625rem, 2.6vw, 2.25rem); line-height: 1.1; letter-spacing: -0.045em; }
@media (min-width: 1100px) { .doc:not(.doc--case) { margin-left: max(0px, calc((100% - var(--wrap)) / 2)); } }

.prose { max-width: 46rem; color: var(--prose); }
.prose > * + * { margin-top: var(--s3); }
.prose h2 { margin-top: var(--s5); scroll-margin-top: 100px; color: var(--fg); }
.prose h3 { margin-top: var(--s4); font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.025em; color: var(--fg); }
.prose h4 { font-size: 1rem; font-weight: 600; }
.prose ul, .prose ol, .bullets, .steps { padding-left: 1.3em; }
.prose ul, .bullets { list-style: disc; }
.prose ol, .steps { list-style: decimal; }
.prose li + li, .bullets li + li, .steps li + li { margin-top: 6px; }
.prose li::marker, .bullets li::marker, .steps li::marker { color: var(--accent); }
.prose a, .sources a, .form-aside a, .notice a { color: var(--accent-soft); text-underline-offset: 4px; }
.prose a:hover, .sources a:hover { color: var(--fg); }
.prose blockquote { margin: var(--s4) 0; padding-left: var(--s3); border-left: 2px solid var(--accent); font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: 1.5rem; line-height: 1.3; letter-spacing: -0.02em; color: var(--fg); }
.prose code { padding: 1px 6px; border-radius: 6px; background: var(--panel-2); font-family: var(--font-mono); font-size: .875em; }
.prose pre { padding: var(--s2); border-radius: var(--r); background: var(--panel); border: var(--hairline); color: var(--fg); overflow-x: auto; font-size: .875rem; }
.prose pre code { padding: 0; background: none; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 8px 12px 8px 0; border-bottom: var(--hairline); text-align: left; vertical-align: top; }
.prose hr { border: 0; border-top: var(--hairline); }

.toc { padding: var(--s3); }
.toc ol { margin-top: var(--s2); padding-left: 1.3em; list-style: decimal; }
.toc li::marker { color: var(--fg-soft); }
.toc a { display: inline-block; padding-block: 4px; text-decoration: none; }
.toc a:hover { color: var(--accent-soft); }

.sources { padding-top: var(--s3); border-top: var(--hairline); font-size: 1rem; }
.sources ul { margin-top: var(--s2); }
.sources li + li { margin-top: 6px; }
.sources__date { color: var(--fg-soft); }

.notice { padding-left: 12px; border-left: 2px solid var(--accent); font-size: 1rem; }
.chapters li { padding-block: 10px; border-bottom: var(--hairline); }
.chapters span { display: inline-block; min-width: 4.5em; font-size: .875em; font-variant-numeric: tabular-nums; color: var(--accent-soft); }

.doc__next { display: grid; gap: var(--s3); padding-top: var(--s3); border-top: var(--hairline); }
.doc__next p { display: grid; gap: 2px; justify-items: start; }
.doc__next .label { color: var(--fg-soft); }
@media (min-width: 760px) { .doc__next { grid-template-columns: 1fr 1fr; } }

/* Explorer : recherche, filtres, pagination */
.filters { display: grid; gap: var(--s2); padding-bottom: var(--s4); border-bottom: var(--hairline); }
.filters__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
@media (min-width: 860px) {
  .filters { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; }
}
.results-count { margin-block: var(--s3); color: var(--fg-soft); font-size: 1rem; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); margin-top: var(--s4); }
.idea--plain { grid-template-columns: 1fr; }

/* Formulaires */
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 0.875rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 16px;
  background: var(--tint); border: 1px solid var(--line-strong); border-radius: var(--r); color: inherit; font: inherit;
  transition: border-color .22s var(--ease), background-color .22s var(--ease);
}
.field select { background-color: var(--panel); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-hover); }
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field__help { color: var(--fg-soft); font-size: 0.875rem; }
.field__error { color: var(--alert); font-size: 0.9375rem; font-weight: 500; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--alert); }

.form-layout { display: grid; gap: var(--s5); }
.form { display: grid; gap: var(--s3); max-width: 44rem; }
.form .btn { justify-self: start; }
.form__row { display: grid; gap: var(--s3); }
.form__errors { padding: var(--s2) var(--s3); border-color: var(--alert); }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-aside { font-size: 1rem; color: var(--fg-soft); }
.form-aside > * + * { margin-top: var(--s2); }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) {
  .form-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s6); align-items: start; }
  .form-aside { padding: var(--s4); border: var(--hairline); border-radius: var(--r-lg); background: var(--card), var(--bg); }
}

/* Projets */
.builds--list { grid-template-columns: 1fr; }
.build__summary { margin-block: var(--s3) var(--s2); max-width: 34em; font-size: 1rem; color: var(--fg-soft); }
.build__visual .shot { position: absolute; left: 0; bottom: 0; width: 92%; border-bottom: 0; border-radius: var(--r) var(--r) 0 0; }
/* Capture d'application mobile détourée : posée comme le téléphone dessiné, sans cadre. */
.shot--phone { border: 0; border-radius: 0; }
.build__visual .shot--phone { left: 50%; top: 0; bottom: auto; width: min(86%, 300px); transform: translateX(-50%); }

.case__intro { display: grid; gap: var(--s5); }
.case__text > * + * { margin-top: var(--s3); }
.case__summary { max-width: 34em; font-size: clamp(1.25rem, 1.9vw, 1.625rem); font-weight: 400; line-height: 1.4; letter-spacing: -0.025em; }
.case__visual {
  position: relative; min-height: 260px; padding: var(--s4) var(--s3) 0; overflow: hidden;
  background: radial-gradient(70% 70% at 50% 100%, rgba(0, 153, 255, .3), transparent 70%), var(--card), var(--bg);
}
.case__visual .phone { width: min(46%, 200px); margin-inline: auto; }
.case__visual .shot--phone { width: min(84%, 420px); margin-inline: auto; }
.case__visual .screen { position: relative; width: 86%; margin: 0 auto; }
.facts--stack { display: grid; gap: var(--s2); }
.facts--stack dd { max-width: 40em; }
@media (min-width: 960px) { .case__intro { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s6); align-items: start; } }

.disclosure { border-top: var(--hairline); }
.doc > .disclosure + .disclosure { margin-top: 0; }
.disclosure:last-of-type { border-bottom: var(--hairline); }
.disclosure > summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  min-height: 72px; padding-block: var(--s2); cursor: pointer; list-style: none;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::after {
  content: "+"; display: grid; place-items: center; flex: none; width: 36px; height: 36px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  font-size: 1.25rem; font-weight: 300; line-height: 1; color: var(--fg);
  transition: transform .38s var(--ease), background-color .22s var(--ease), color .22s var(--ease);
}
.disclosure > summary:hover::after { background: var(--fg); color: var(--bg); }
.disclosure[open] > summary::after { transform: rotate(45deg); }
.disclosure > summary h2 { font-weight: 500; font-size: clamp(1.5rem, 2.8vw, 2.375rem); line-height: 1.05; letter-spacing: -0.045em; }
.case__section { display: grid; gap: var(--s2); padding-block: var(--s3); border-top: var(--hairline); }
.case__section > .label { color: var(--fg-soft); }
@media (min-width: 860px) { .case__section { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--s5); } }

/* Collaborer */
.offers { display: grid; }
.offer { display: grid; gap: var(--s2); padding-block: var(--s4); border-top: var(--hairline); scroll-margin-top: 100px; }
.offer:last-child { border-bottom: var(--hairline); }
.offer__num {
  font-family: var(--font-serif); font-weight: 300; font-style: italic;
  font-size: clamp(2.75rem, 5vw, 4.5rem); line-height: .9; letter-spacing: -0.04em; color: var(--fg-soft);
  transition: color .3s var(--ease);
}
.offer:hover .offer__num, .offer:target .offer__num { color: var(--accent-soft); }
.offer__body { max-width: 44rem; }
.offer__body > * + * { margin-top: var(--s3); }
.offer__limit { color: var(--fg-soft); font-size: 1rem; }
@media (min-width: 860px) { .offer { grid-template-columns: minmax(0, 2fr) minmax(0, 10fr); gap: var(--s5); padding-block: var(--s5); } }

/* Parcours */
.timeline li { display: grid; gap: 4px var(--s4); padding-block: var(--s3); border-bottom: var(--hairline); }
.timeline__period { font-size: 0.8125rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--accent-soft); }
.timeline__title { font-weight: 500; font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.035em; }
.timeline__org { font-weight: 500; color: var(--fg-soft); }
@media (min-width: 640px) { .timeline li { grid-template-columns: 11rem 1fr; } }

/* Offres (tunnels) : promesse et formulaire côte à côte, média de taille mesurée en dessous. */
.offer-hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: var(--hairline); background: var(--glow); }
.offer-hero::before {
  content: ""; position: absolute; inset: auto -10% -40% 30%; z-index: -1; height: 80%;
  background: radial-gradient(closest-side, rgba(0, 153, 255, .28), transparent); pointer-events: none;
}
.offer-hero__inner { display: grid; gap: var(--s5); padding-block: var(--s6); }
.offer-hero__text > * + * { margin-top: var(--s3); }
.offer-hero__title { max-width: 15em; font-weight: 500; font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.02; letter-spacing: -0.055em; text-wrap: balance; }
.offer-hero__lead { max-width: 34em; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.5; color: var(--fg-soft); }
.offer-hero__checks { max-width: 34em; }
.offer-hero__action > .notice { margin-bottom: var(--s2); }
.offer-price { display: inline-block; padding: 6px 14px; border: 1px solid var(--accent-soft); border-radius: var(--pill); color: var(--accent-soft); font-size: 0.9375rem; font-weight: 500; }
@media (min-width: 960px) {
  .offer-hero__inner { grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr); gap: var(--s6); align-items: center; padding-block: var(--s7); }
}

/* La carte du formulaire : vitrée, bord lumineux, un seul bouton bleu. */
.optin {
  display: grid; gap: var(--s2); padding: var(--s4) var(--s3);
  border: 1px solid rgba(0, 153, 255, .4); border-radius: 22px;
  background: radial-gradient(120% 70% at 50% 0%, rgba(0, 153, 255, .16), transparent 70%), var(--glass-strong);
  box-shadow: 0 0 0 6px var(--tint), var(--shadow);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.optin__title { font-size: 1.375rem; font-weight: 500; line-height: 1.15; letter-spacing: -0.04em; }
.optin__price { font-size: 2.25rem; font-weight: 500; line-height: 1; letter-spacing: -0.05em; }
.optin__fields { display: grid; gap: var(--s2); }
.optin .field input, .optin .field textarea { background: var(--bg); }
.optin .field textarea { min-height: 110px; }
.optin .letter__consent { margin-top: 0; font-size: 0.875rem; }
.optin__submit { width: 100%; min-height: 54px; font-size: 1rem; }
.optin__note { font-size: 0.8125rem; line-height: 1.5; color: var(--fg-soft); }
.optin .letter__form { display: grid; gap: 8px; }
@media (min-width: 520px) and (max-width: 959px) { .optin__fields { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .optin { padding: var(--s4); } }

.btn--accent { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn--accent:hover { background: #33ADFF; }

.offer-media { padding-block: var(--s5) 0; }
.offer-video {
  position: relative; display: grid; place-items: center; width: 100%; max-width: 860px; margin-inline: auto; aspect-ratio: 16 / 9;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 0 0 6px var(--tint), 0 40px 120px -30px rgba(0, 153, 255, .55);
}
iframe.offer-video { border: 0; }
.offer-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.offer-video .play { position: relative; transition: transform .4s var(--ease); }
.offer-video:hover .play { transform: scale(1.08); }
/* Une image d'offre reste une illustration : jamais plus haute que 440 px. */
.offer-image {
  width: auto; max-width: min(100%, 720px); max-height: 440px; margin-inline: auto; object-fit: contain;
  border: var(--hairline); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.offer-action { display: grid; justify-items: center; gap: var(--s3); padding-block: var(--s7); }
.offer-action .collab__title { font-size: clamp(2rem, 4vw, 3.25rem); }

/* Remerciement et accès */
.thanks .plain-page__title { max-width: 16em; }
.thanks .prose { max-width: 40rem; }
.thanks__tips { display: grid; gap: 8px; max-width: 40rem; padding: var(--s3); border: var(--hairline); border-radius: var(--r-lg); background: var(--card), var(--bg); font-size: 0.9375rem; color: var(--fg-soft); }
.thanks__tips li { position: relative; padding-left: 20px; }
.thanks__tips li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.thanks__small { font-size: 0.875rem; color: var(--fg-soft); }
.notice--alert { border-left-color: var(--alert); }
.checks { display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .25em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.5 2.6 2.6L14.5 7' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.disclosure--faq > summary { min-height: 64px; }
.disclosure--faq > summary h3 { font-size: 1.125rem; font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; }
.disclosure--faq > p { max-width: 44rem; padding-bottom: var(--s3); color: var(--fg-soft); }
.offer-action { display: grid; justify-items: center; gap: var(--s4); padding-block: var(--s7); }
.offer-action .collab__title { font-size: clamp(2rem, 4vw, 3.25rem); }
.offer-action > div:first-child > .label { color: var(--fg-soft); }
.offer-action__do { display: grid; justify-items: center; gap: var(--s2); max-width: 36rem; color: var(--fg-soft); }
.offer-action__do .letter__form { width: 100%; text-align: left; color: var(--fg); }

/* Guide gratuit : la page se lit, le PDF se remplit (la colonne « Votre réponse » n'existe que dans le PDF) */
.guide__part { scroll-margin-top: 100px; }
.guide__part > * + * { margin-top: var(--s3); }
.guide__part h2 { display: flex; align-items: center; gap: var(--s2); font-weight: 500; font-size: clamp(1.5rem, 2.8vw, 2.25rem); line-height: 1.1; letter-spacing: -0.045em; }
.guide__num { display: grid; place-items: center; flex: none; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: .8em; letter-spacing: -0.02em; }
.guide__part h3 { font-size: 1.25rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.03em; }
.guide__part ol, .guide__part ul { padding-left: 1.3em; }
.guide__part ol { list-style: decimal; }
.guide__part ul { list-style: disc; }
.guide__part li + li { margin-top: 6px; }
.guide__part li::marker { color: var(--accent); }
.guide__table { width: 100%; border-collapse: collapse; }
.guide__table thead, .guide__table .guide__blank { display: none; }
.guide__table tr { display: block; padding-block: var(--s2); border-top: var(--hairline); }
.guide__table tr:last-child { border-bottom: var(--hairline); }
.guide__table th, .guide__table td { display: block; padding: 0; text-align: left; }
.guide__table tbody th { font-weight: 500; color: var(--accent-soft); }
.guide__table td { margin-top: 4px; color: var(--fg-soft); }
.guide__paths { display: grid; gap: var(--s2); }
.guide__path { padding: var(--s3); }
.guide__path > * + * { margin-top: 12px; }
.guide__when { font-size: 0.75rem; font-weight: 500; color: var(--accent-soft); }
.guide__note { padding: var(--s2) var(--s3); }
.guide__example { padding-top: var(--s3); border-top: var(--hairline); }
.guide__example dl { display: grid; gap: var(--s2); margin-top: var(--s2); }
.guide__example dt { font-size: 0.75rem; font-weight: 500; color: var(--fg-soft); }
.guide__example dd { margin-top: 4px; }
@media (min-width: 760px) {
  .guide__table tr { display: grid; grid-template-columns: 12rem 1fr; gap: var(--s3); }
  .guide__table td { margin-top: 0; }
  .guide__example dl > div { display: grid; grid-template-columns: 12rem 1fr; gap: var(--s3); }
  .guide__example dd { margin-top: 0; }
}

/* ==========================================================================
   Accueil : présentation, services, méthode, offres, questions
   ========================================================================== */

/* Présentation : une grande phrase centrée, puis les chiffres comptés en base. */
.statement { text-align: center; }
.statement .wrap { display: flex; flex-direction: column; align-items: center; }
.statement__title {
  max-width: 15em; margin-top: var(--s3);
  font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.055em; text-wrap: balance;
}
.statement__title em { font-family: var(--font-serif); font-weight: 300; letter-spacing: -0.04em; color: var(--fg-soft); }
.statement__lead { max-width: 36em; margin-top: var(--s4); color: var(--fg-soft); font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); text-wrap: balance; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 1000px; margin-top: var(--s6); border-block: var(--hairline); }
.stats li { display: grid; gap: 4px; padding: var(--s4) var(--s2); }
.stats li:nth-child(even) { border-left: var(--hairline); }
.stats li:nth-child(n + 3) { border-top: var(--hairline); }
.stats__value { font-size: clamp(2.75rem, 5vw, 4.25rem); font-weight: 500; line-height: 1; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.stats__label { font-size: 0.875rem; color: var(--fg-soft); }
@media (min-width: 760px) {
  .stats { display: flex; }
  .stats li { flex: 1; }
  .stats li:nth-child(n) { border-top: 0; border-left: 0; }
  .stats li + li { border-left: var(--hairline); }
}

/* En-tête de section centré : pastille, grand titre, une ligne d'explication. */
.section-intro { display: flex; flex-direction: column; align-items: center; gap: var(--s3); max-width: 46rem; margin: 0 auto var(--s6); text-align: center; }
.section-intro .display { font-size: clamp(2.25rem, 5vw, 4rem); }
.section-intro__lead { max-width: 32em; color: var(--fg-soft); text-wrap: balance; }
.section-intro__lead .link-arrow { margin-left: 6px; }
.section-intro--left { align-items: flex-start; margin-inline: 0; text-align: left; }

/* Vitrine d'un projet : grand titre et faits à gauche, capture entière sur halo et anneaux à droite,
   fonctions réelles du produit posées autour en pastilles. */
.showcase {
  position: relative; isolation: isolate; display: grid; gap: var(--s4); overflow: hidden;
  padding: var(--s5) var(--s3) 0;
  border: var(--hairline); border-radius: 24px;
  background: radial-gradient(70% 60% at 78% 100%, rgba(0, 153, 255, .3), transparent 70%), var(--card), var(--bg);
}
.showcase + .showcase { margin-top: 10px; }
.showcase__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.badge--live::before { background: #28C840; box-shadow: 0 0 10px #28C840; }
.showcase__title { margin-top: var(--s4); font-size: clamp(3rem, 7vw, 6.25rem); font-weight: 500; line-height: .95; letter-spacing: -0.065em; }
.showcase__tagline { margin-top: 14px; font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: clamp(1.375rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -0.03em; color: var(--accent-soft); }
.showcase__facts { display: grid; gap: var(--s3); margin-top: var(--s5); padding-top: var(--s4); border-top: var(--hairline); }
.showcase__facts dt { font-size: 0.75rem; font-weight: 500; color: var(--fg-soft); }
.showcase__facts dd { max-width: 32em; margin-top: 6px; font-size: 1rem; line-height: 1.55; }
.showcase__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s5); }

.showcase__visual { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 380px; }
.showcase__visual .shot--phone {
  position: relative; z-index: 1; width: min(84%, 400px); height: auto;
  filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .55));
  transition: transform .8s var(--ease);
}
.showcase:hover .shot--phone { transform: translateY(-8px); }
.showcase__visual .shot:not(.shot--phone) { position: relative; width: 92%; border-bottom: 0; border-radius: var(--r) var(--r) 0 0; }
.showcase__visual .phone { position: relative; z-index: 1; width: min(52%, 240px); margin-bottom: -12%; }
.showcase__visual .screen { position: relative; width: 90%; }

/* Anneaux concentriques derrière la capture. */
.showcase__rings { position: absolute; left: 50%; bottom: -18%; width: 120%; aspect-ratio: 1; transform: translateX(-50%); pointer-events: none; }
.showcase__rings i { position: absolute; inset: 0; margin: auto; border: 1px solid var(--line-strong); border-radius: 50%; }
.showcase__rings i:nth-child(1) { width: 44%; height: 44%; background: radial-gradient(closest-side, rgba(0, 153, 255, .35), transparent); }
.showcase__rings i:nth-child(2) { width: 70%; height: 70%; opacity: .7; }
.showcase__rings i:nth-child(3) { width: 96%; height: 96%; opacity: .4; }

.showcase__pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: var(--s3); }
.showcase__pills li {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--pill);
  background: var(--glass); font-size: 0.8125rem; font-weight: 500; white-space: nowrap;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.showcase__pills li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

@media (min-width: 960px) {
  .showcase { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); padding: var(--s6) 0 0 var(--s6); }
  .showcase__text { padding-bottom: var(--s6); }
  .showcase + .showcase .showcase__visual { order: -1; }
  .showcase__visual { min-height: 620px; }
  /* Les pastilles flottent autour du téléphone. */
  .showcase__pills { position: absolute; inset: 0; z-index: 2; margin: 0; pointer-events: none; }
  .showcase__pills li { position: absolute; box-shadow: var(--shadow); }
  .showcase__pills li:nth-child(1) { left: 4%; top: 18%; }
  .showcase__pills li:nth-child(2) { right: 6%; top: 10%; }
  .showcase__pills li:nth-child(3) { left: 0; top: 46%; }
  .showcase__pills li:nth-child(4) { right: 2%; top: 38%; }
  .showcase__pills li:nth-child(5) { left: 8%; top: 72%; }
  .showcase__pills li:nth-child(n + 6) { display: none; }
}
@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  @keyframes float { 50% { transform: translateY(-8px); } }
  .showcase__pills li { animation: float 5s ease-in-out infinite; }
  .showcase__pills li:nth-child(even) { animation-duration: 6s; animation-delay: -2s; }
  .showcase__pills li:nth-child(3n) { animation-delay: -3.5s; }
}

/* Services : grille de cartes à bord fin. */
.services { display: grid; gap: 10px; }
.service {
  position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 220px;
  padding: var(--s4) var(--s3) var(--s3); overflow: hidden;
  border: var(--hairline); border-radius: var(--r-lg); background: var(--card), var(--bg);
  text-decoration: none;
  transition: border-color .3s var(--ease), transform .4s var(--ease);
}
/* Halo qui suit le pointeur (variables --mx/--my posées par static/js/site.js). */
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 153, 255, .2), transparent 70%);
  transition: opacity .4s var(--ease);
}
.service:hover { border-color: var(--line-hover); transform: translateY(-3px); }
.service:hover::before { opacity: 1; }
.service__num { font-size: 0.75rem; color: var(--fg-soft); font-variant-numeric: tabular-nums; }
.service__title { margin-top: auto; font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.04em; }
.service__detail { font-size: 0.9375rem; line-height: 1.5; color: var(--fg-soft); }
.service__more { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s1); font-size: 0.875rem; font-weight: 500; }
.service:hover .service__more { color: var(--accent-soft); }
.service:hover .service__more .arrow { transform: translate(2px, -2px); }
@media (min-width: 700px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .services { grid-template-columns: repeat(3, minmax(0, 1fr)); } .service { min-height: 260px; } }

/* Méthode : titre collant à gauche, étapes illustrées à droite. */
.approach__inner { display: grid; gap: var(--s5); }
.approach__head { margin-bottom: 0; }
.steps-list { display: grid; gap: 10px; }
.step { display: grid; overflow: hidden; border: var(--hairline); border-radius: var(--r-lg); background: var(--card), var(--bg); }
.step__text { display: grid; align-content: start; gap: 8px; padding: var(--s4) var(--s3); }
.step__num { font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: 2rem; line-height: 1; color: var(--accent-soft); }
.step__title { margin-top: var(--s1); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.045em; }
.step__detail { max-width: 30em; color: var(--fg-soft); }
/* Visuels abstraits en CSS, sombres dans les deux thèmes : sphère, lignes, grille, étoiles. */
.step__art { position: relative; min-height: 200px; background: #000; overflow: hidden; }
.step__art::before, .step__art::after { content: ""; position: absolute; inset: 0; }
.step__art--sphere::before {
  inset: 50% auto auto 50%; width: min(56%, 180px); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 30%, #BFE5FF, #0099FF 35%, #003A66 70%, #000 100%);
  box-shadow: 0 0 80px rgba(0, 153, 255, .55);
}
.step__art--lines::before {
  background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(0, 153, 255, .8) 22px 23px);
  -webkit-mask: linear-gradient(to top, #000, transparent); mask: linear-gradient(to top, #000, transparent);
}
.step__art--lines::after { background: linear-gradient(to top, rgba(0, 153, 255, .55), transparent 70%); }
.step__art--grid::before {
  background:
    linear-gradient(rgba(122, 202, 255, .35) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(122, 202, 255, .35) 1px, transparent 1px) 0 0 / 28px 28px;
  -webkit-mask: radial-gradient(closest-side, #000, transparent); mask: radial-gradient(closest-side, #000, transparent);
}
.step__art--grid::after { inset: 50% auto auto 50%; width: 56px; height: 56px; border-radius: 12px; transform: translate(-50%, -50%) rotate(12deg); background: #0099FF; box-shadow: 0 0 60px #0099FF; }
.step__art--stars::before {
  background:
    radial-gradient(1.5px 1.5px at 12% 22%, #FFF, transparent), radial-gradient(1px 1px at 32% 68%, #FFF, transparent),
    radial-gradient(1.5px 1.5px at 54% 14%, #FFF, transparent), radial-gradient(1px 1px at 76% 44%, #FFF, transparent),
    radial-gradient(2px 2px at 88% 78%, #7ACAFF, transparent), radial-gradient(1px 1px at 22% 88%, #FFF, transparent),
    radial-gradient(1.5px 1.5px at 66% 86%, #FFF, transparent), radial-gradient(1px 1px at 44% 40%, #7ACAFF, transparent),
    radial-gradient(1px 1px at 8% 60%, #FFF, transparent), radial-gradient(1.5px 1.5px at 94% 20%, #FFF, transparent);
}
.step__art--stars::after { background: radial-gradient(60% 50% at 50% 110%, rgba(0, 153, 255, .6), transparent); }
@media (min-width: 700px) {
  .step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .step:nth-child(even) .step__art { order: 2; }
  .step__text { align-content: center; padding: var(--s5); }
  .step__art { min-height: 280px; }
}
@media (min-width: 1100px) {
  .approach__inner { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s6); align-items: start; }
  .approach__head { position: sticky; top: 120px; }
}

/* Offres publiées : cartes façon grille tarifaire, la première mise en avant. */
.plans { display: grid; gap: 10px; }
.plan {
  display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4);
  border: var(--hairline); border-radius: var(--r-lg); background: var(--card), var(--bg);
}
.plan > .label { color: var(--fg-soft); }
.plan__title { font-size: 1.625rem; font-weight: 500; line-height: 1.1; letter-spacing: -0.04em; }
.plan__price { font-size: clamp(2rem, 3vw, 2.5rem); font-weight: 500; line-height: 1; letter-spacing: -0.05em; }
.plan__summary { color: var(--fg-soft); font-size: 0.9375rem; }
.plan .checks { padding-top: var(--s2); border-top: var(--hairline); font-size: 0.9375rem; }
.plan__action { margin-top: auto; align-self: stretch; }
.plan:first-child { border-color: rgba(0, 153, 255, .45); background: radial-gradient(90% 60% at 50% 0%, rgba(0, 153, 255, .16), transparent 70%), var(--card), var(--bg); }
/* Une à trois offres : les cartes gardent une largeur de carte, centrées. */
@media (min-width: 860px) { .plans { display: flex; justify-content: center; } .plan { flex: 0 1 420px; } }
/* Pages Offres, Formations, Ressources : grille de cartes, image en bandeau mesuré. */
.plans--list .plan:first-child { border-color: var(--line); background: var(--card), var(--bg); }
@media (min-width: 860px) { .plans--list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); } }
.plan__image { width: calc(100% + 2 * var(--s4)); max-width: none; height: 180px; margin: calc(-1 * var(--s4)) calc(-1 * var(--s4)) 0; object-fit: cover; border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom: var(--hairline); }
.section__group { margin-top: var(--s6); }

/* Questions fréquentes : titre à gauche, accordéon numéroté à droite. */
.faq__inner { display: grid; gap: var(--s5); }
.faq .section-intro { margin-bottom: 0; }
.faq__list .disclosure > summary { justify-content: flex-start; gap: var(--s2); }
.faq__list .disclosure > summary h3 { flex: 1; }
.faq__num { width: 1.75rem; flex: none; font-size: 0.75rem; color: var(--fg-soft); font-variant-numeric: tabular-nums; }
.faq__list .disclosure > p { padding-left: calc(1.75rem + var(--s2)); }
@media (min-width: 960px) {
  .faq__inner { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s6); align-items: start; }
  .faq .section-intro { position: sticky; top: 120px; }
}

/* ==========================================================================
   En-tête : interrupteur de thème et barre flottante au défilement
   ========================================================================== */

.site-nav__actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0;
  background: none; border: 0; color: inherit; font: inherit; cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle__track {
  position: relative; display: block; width: 46px; height: 24px; flex: none;
  border: 1px solid var(--line-strong); border-radius: var(--pill); background: var(--tint);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.theme-toggle__knob {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--fg); transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.theme-toggle[aria-checked="true"] .theme-toggle__track { background: var(--accent); border-color: var(--accent); }
.theme-toggle[aria-checked="true"] .theme-toggle__knob { transform: translateX(22px); background: #FFF; }
.theme-toggle:hover .theme-toggle__track { border-color: var(--line-hover); }
.theme-toggle__label { font-size: 0.9375rem; }

@media (min-width: 860px) {
  .site-nav__actions { justify-self: end; }
  .theme-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

  /* Au défilement, la barre se détache et devient une pilule vitrée. */
  .site-header { transition: background-color .5s var(--ease), border-color .5s var(--ease); }
  .site-header__inner {
    border: 1px solid transparent; border-radius: var(--pill);
    transition: max-width .5s var(--ease), padding .5s var(--ease), margin .5s var(--ease), min-height .5s var(--ease), background-color .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
  }
  .site-header.is-scrolled { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header.is-scrolled .site-header__inner {
    max-width: 1080px; min-height: 56px; margin-top: 10px; padding-inline: 10px 8px;
    background: var(--header-bg); border-color: var(--line-strong);
    -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .35);
  }
}
@media (max-width: 859px) {
  /* Le flou de l'en-tête enfermerait le menu plein écran (position fixe) dans ses 68 px : on le retire menu ouvert. */
  .site-header:has(.site-nav.is-open) { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-nav__actions { flex-direction: column; align-items: stretch; gap: var(--s2); }
  .site-nav__actions .theme-toggle { justify-content: space-between; flex-direction: row-reverse; padding-block: 4px; }
}

/* ---------- Mouvement (facultatif, jamais bloquant) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; filter: blur(12px); transform: translateY(18px); } }
  @keyframes lift { from { opacity: 0; filter: blur(16px); transform: translateY(56px) scale(.98); } }
  @keyframes pulse-bar { to { transform: scaleY(calc(var(--s, 1) * .7)); } }
  .hero__badge, .hero__line, .hero__lead, .hero__actions { animation: rise .55s var(--ease) backwards; }
  .hero__line + .hero__line { animation-delay: .06s; }
  .hero__lead { animation-delay: .12s; }
  .hero__actions { animation-delay: .18s; }
  .hero__stage { animation: lift .7s var(--ease) .1s backwards; }
  .bars i { animation: pulse-bar 2s ease-in-out var(--d, 0s) infinite alternate; }

  /* Apparitions au défilement : défloutage, fondu, légère montée.
     Les classes sont posées par static/js/site.js : sans JavaScript, tout reste visible. */
  .reveal {
    opacity: 0; filter: blur(12px); transform: translateY(28px);
    transition: opacity .9s var(--ease), filter .9s var(--ease), transform .9s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
  }
  .reveal.is-in { opacity: 1; filter: blur(0); transform: none; }

  /* Phrase révélée mot à mot. */
  [data-words].is-split .word {
    display: inline-block; opacity: .12; filter: blur(8px); transform: translateY(.25em);
    transition: opacity .7s var(--ease), filter .7s var(--ease), transform .7s var(--ease);
    transition-delay: calc(var(--w) * 45ms);
  }
  [data-words].is-in .word { opacity: 1; filter: blur(0); transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   Portfolio V2 : identité, preuves, réalisations, parcours, expertises, kit média
   ========================================================================== */

/* Ouverture : les quatre expertises, sobres, sous la signature. */
/* Chaque expertise porte son point : un retour à la ligne ne laisse jamais un point orphelin. */
.hero__expertises { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: var(--s3); font-size: clamp(0.9375rem, 1.2vw, 1.0625rem); font-weight: 500; letter-spacing: -0.02em; }
.hero__expertises li { display: flex; align-items: center; gap: 9px; }
.hero__expertises li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.hero__expertises + .hero__lead { margin-top: var(--s2); }

/* En-têtes de page : actions sous le texte. */
.page-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: var(--s2); }

/* Fil d'Ariane */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.8125rem; color: var(--fg-soft); }
.crumbs a { color: var(--fg-soft); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--fg); }

/* Étiquettes de technologies et de compétences */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: var(--pill); font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.5; letter-spacing: 0; color: var(--fg-soft); }

/* Preuves : faits vérifiables en grille. */
.proofs { display: grid; width: 100%; max-width: 1100px; margin-top: var(--s5); border-top: var(--hairline); text-align: left; }
.proof { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--s3); padding-block: var(--s3); border-bottom: var(--hairline); }
.proof__num { grid-row: span 2; font-family: var(--font-mono); font-size: 0.75rem; line-height: 2; color: var(--accent-soft); }
.proof__title { font-weight: 500; font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.03em; }
.proof__title a { text-decoration-color: var(--accent); text-underline-offset: 4px; }
.proof__detail { font-size: 0.9375rem; color: var(--fg-soft); }
.statement .proofs + .stats { margin-top: var(--s5); }
@media (min-width: 760px) {
  .proofs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s5); }
}

/* Réalisations : cartes sous la vitrine principale, et partout où une liste de projets apparaît. */
.cases { display: grid; gap: 10px; margin-top: 10px; }
.case-card {
  display: grid; height: 100%; overflow: hidden;
  border: var(--hairline); border-radius: var(--r-lg); background: var(--card), var(--bg);
  transition: border-color .3s var(--ease), transform .4s var(--ease);
}
.case-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.case-card__visual { position: relative; display: block; height: 200px; overflow: hidden; border-bottom: var(--hairline); background: radial-gradient(80% 90% at 50% 120%, rgba(0, 153, 255, .28), transparent 70%); }
.case-card__visual .shot { width: 100%; height: 100%; object-fit: cover; object-position: top; border: 0; border-radius: 0; }
.case-card__visual .shot--phone { width: auto; height: 120%; margin: var(--s2) auto 0; object-fit: contain; }
.case-card__visual .phone { width: 110px; margin: var(--s3) auto 0; }
.case-card__visual .screen { transform: scale(.7); transform-origin: top center; margin-top: var(--s2); }
.case-card__body { display: grid; align-content: start; gap: var(--s1); padding: var(--s3); }
.case-card__body > .label { color: var(--fg-soft); }
.case-card__title { font-weight: 500; font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.04em; }
.case-card__title a { text-decoration: none; }
.case-card__title a::after { content: ""; position: absolute; inset: 0; }
.case-card { position: relative; }
.case-card__summary { font-size: 0.9375rem; color: var(--fg-soft); }
.case-card .tags { margin-top: var(--s1); }
@media (min-width: 700px) { .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cases { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Parcours en bref et récit : étapes numérotées reliées par un filet bleu. */
.journey__inner { display: grid; gap: var(--s5); }
.journey__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-top: var(--s4); }
.path { display: grid; counter-reset: none; }
.path__step { position: relative; display: grid; gap: 6px; padding: 0 0 var(--s4) var(--s5); }
.path__step::before { content: ""; position: absolute; left: 7px; top: 22px; bottom: 0; width: 1px; background: linear-gradient(var(--accent), var(--line)); }
.path__step:last-child { padding-bottom: 0; }
.path__step:last-child::before { display: none; }
.path__num { position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border: 2px solid var(--accent); border-radius: 50%; background: var(--bg); font-size: 0; }
.path__title { font-weight: 500; font-size: 1.375rem; line-height: 1.15; letter-spacing: -0.035em; }
.path__detail { max-width: 38em; font-size: 1rem; color: var(--fg-soft); }
@media (min-width: 960px) {
  .journey__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6); align-items: start; }
  .journey .section-intro { position: sticky; top: 120px; }
  .path--row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
  .path--row .path__step { padding: var(--s5) 0 0; }
  .path--row .path__step::before { left: 22px; right: calc(-1 * var(--s4)); top: 7px; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, var(--accent), var(--line)); }
  .path--row .path__step:last-child::before { display: none; }
  .path--row .path__num { top: 0; }
}

/* Ce que je sais faire */
.skills { display: grid; gap: 10px; }
.skill {
  display: grid; align-content: start; gap: var(--s2); padding: var(--s4) var(--s3);
  border: var(--hairline); border-radius: var(--r-lg); background: var(--card), var(--bg);
}
.skill__num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-soft); }
.skill__title { font-weight: 500; font-size: 1.375rem; line-height: 1.15; letter-spacing: -0.035em; text-wrap: balance; }
.skill__summary { font-size: 0.9375rem; color: var(--fg-soft); }
.skill__proof { display: grid; gap: 2px; justify-items: start; padding-top: var(--s2); border-top: var(--hairline); }
.skill__proof .label { color: var(--fg-soft); }
@media (min-width: 700px) { .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .skills { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Témoignages (seulement s'ils existent et sont autorisés) */
.quotes { display: grid; gap: 10px; }
.quote { display: grid; gap: var(--s3); height: 100%; padding: var(--s4); border: var(--hairline); border-radius: var(--r-lg); background: var(--card), var(--bg); }
.quote blockquote { margin: 0; font-family: var(--font-serif); font-weight: 300; font-size: 1.375rem; line-height: 1.35; letter-spacing: -0.02em; }
.quote figcaption { display: grid; font-size: 0.875rem; color: var(--fg-soft); }
.quote figcaption strong { font-weight: 500; color: var(--fg); }
@media (min-width: 860px) { .quotes { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }

/* Publications : la une puis la liste, dans la même section. */
.ideas--after { margin-top: var(--s6); }
.idea__info { margin-top: 6px; font-size: 0.8125rem; color: var(--fg-soft); font-variant-numeric: tabular-nums; }

/* Ressources : liens vers les offres publiées. */
.offer-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin-top: var(--s3); }

/* Portes : quatre types de visiteurs. */
@media (min-width: 760px) { .doors--four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .doors--four { grid-template-columns: repeat(4, 1fr); max-width: none; } }

/* Parcours : bio et objectifs côte à côte. */
.profile { display: grid; gap: var(--s5); }
.profile > * > .label { margin-bottom: var(--s2); color: var(--fg-soft); }
.profile__goals { padding: var(--s4); border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: radial-gradient(90% 90% at 100% 0%, rgba(0, 153, 255, .14), transparent 60%), var(--card), var(--bg); }
.timeline .tags { margin-top: var(--s2); }
.timeline .bullets { margin-top: var(--s2); }
.timeline__period .chip { margin-top: 4px; }
@media (min-width: 960px) { .profile { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s6); align-items: start; } }

/* Étude de cas : galerie et mesures vérifiées. */
.gallery { display: grid; gap: 10px; }
.gallery figure { display: grid; gap: var(--s1); }
.gallery img { width: 100%; height: auto; border: var(--hairline); border-radius: var(--r); background: var(--panel-2); }
.gallery figcaption { font-size: 0.875rem; color: var(--fg-soft); }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.metrics { display: grid; gap: 10px; }
.metric { display: grid; align-content: start; gap: 4px; padding: var(--s3); border: var(--hairline); border-radius: var(--r-lg); background: var(--card), var(--bg); }
.metric dt { font-size: 0.8125rem; font-weight: 500; color: var(--fg-soft); }
.metric__value { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 500; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.metric__value span { font-size: 0.5em; letter-spacing: -0.02em; color: var(--fg-soft); }
.metric__precision { font-size: 0.875rem; }
.metric__source { font-size: 0.75rem; color: var(--fg-soft); }
@media (min-width: 640px) { .metrics { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.build__role { margin-bottom: var(--s2); font-size: 0.9375rem; }
.build__role .label { margin-right: 6px; color: var(--fg-soft); }
.build .tags { margin-bottom: var(--s3); }

/* Collaborer : raccourcis vers les quatre parcours. */
.jump { display: flex; flex-wrap: wrap; gap: 8px; padding-top: var(--s2); }
.jump a { padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: var(--pill); font-size: 0.875rem; font-weight: 500; text-decoration: none; transition: background-color .22s var(--ease), color .22s var(--ease); }
.jump a:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }

/* Page vidéo : vignette cliquable qui devient le lecteur (static/js/video.js). */
.video-frame__link { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border: var(--hairline); border-radius: var(--r-lg); background: var(--panel-2); }
.video-frame__link img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.video-frame__link .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.video-frame__link:hover img { transform: scale(1.02); }
iframe.video-frame__link { width: 100%; height: auto; border: 0; }
.doc > .case__section > * + * { margin-top: 0; }

/* ---------- Signature : « Thierry » à la plume, posé sur « BAHANI » en capitales épaisses ---------- */
@font-face {
  font-family: "Signature";
  src: url("../fonts/mrs-saint-delafield.148c1784db64.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
.signature { position: relative; display: inline-grid; padding: 12px 8px 2px 2px; line-height: 1; }
.signature > * { grid-area: 1 / 1; }
.signature__last {
  align-self: end; padding: 22px 0 0 34px;
  font-family: var(--font-display); font-weight: 900; font-size: 1.3125rem; line-height: 1; letter-spacing: .18em;
  text-transform: uppercase; color: var(--fg);
}
.signature__first {
  position: relative; z-index: 1; align-self: start; justify-self: start;
  font-family: "Signature", var(--font-serif); font-weight: 400; font-size: 2.875rem; line-height: .8; letter-spacing: 0;
  color: var(--accent-soft); transform: rotate(-8deg); transform-origin: left bottom;
  text-shadow: 0 2px 0 var(--bg), 0 4px 14px rgba(0, 0, 0, .65);
  transition: transform .5s var(--ease);
}
:root[data-theme="light"] .signature__first { text-shadow: 0 2px 0 var(--bg), 0 4px 12px rgba(0, 0, 0, .14); }
.brand:hover .signature__first { transform: rotate(-4deg) translateX(2px); }
.brand--large .signature__last { font-size: 1.875rem; padding: 34px 0 0 50px; }
.brand--large .signature__first { font-size: 4.25rem; }

/* ---------- Réalisation phare : une carte simple, texte et capture côte à côte ---------- */
.feature {
  display: grid; overflow: hidden;
  border: var(--hairline); border-radius: var(--r-lg); background: var(--card), var(--bg);
}
.feature__text { display: grid; align-content: center; gap: var(--s2); padding: var(--s4) var(--s3); }
.feature__text > .label { color: var(--fg-soft); }
.feature__live { color: var(--accent-soft); }
.feature__title { font-weight: 500; font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1; letter-spacing: -0.055em; }
.feature__tagline { font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: clamp(1.25rem, 1.8vw, 1.5rem); letter-spacing: -0.02em; color: var(--accent-soft); }
.feature__summary { max-width: 34em; color: var(--fg-soft); }
.feature__role { max-width: 34em; font-size: 0.9375rem; }
.feature__role .label { margin-right: 6px; color: var(--fg-soft); }
.feature__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-top: var(--s1); }
.feature__visual {
  position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 300px; padding: var(--s4) var(--s3) 0;
  background: radial-gradient(70% 80% at 50% 100%, rgba(0, 153, 255, .22), transparent 70%);
  border-top: var(--hairline);
}
.feature__visual .shot { width: 100%; max-width: 520px; border-bottom: 0; border-radius: var(--r) var(--r) 0 0; }
.feature__visual .shot--phone { width: auto; max-width: none; height: 340px; object-fit: contain; border: 0; border-radius: 0; transition: transform .6s var(--ease); }
.feature__visual .phone { width: 180px; margin-bottom: -30px; }
.feature:hover .feature__visual .shot--phone { transform: translateY(-6px); }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .feature__text { padding: var(--s5); }
  .feature__visual { min-height: 420px; border-top: 0; border-left: var(--hairline); }
  .feature__visual .shot--phone { height: 400px; }
}

/* ---------- Miniatures discrètes dans les listes de contenus ---------- */
.idea:has(> .thumb) { grid-template-columns: auto minmax(0, 1fr) auto; }
.idea--plain:has(> .thumb) { grid-template-columns: minmax(0, 1fr) auto; }
.thumb {
  position: relative; display: block; align-self: start; width: clamp(92px, 16vw, 176px); aspect-ratio: 16 / 9; overflow: hidden;
  border: var(--hairline); border-radius: var(--r-sm); background: var(--panel-2);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; filter: saturate(.85); transition: opacity .3s var(--ease), transform .5s var(--ease); }
.thumb--video::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(0, 0, 0, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3.5 2.5v5l4-2.5z' fill='white'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.idea:hover .thumb img { opacity: 1; transform: scale(1.04); }

/* ---------- Fenêtre vidéo de l'ouverture, légèrement inclinée ; elle se redresse pendant la lecture ---------- */
.hero__stage { transform: perspective(1400px) rotateX(10deg); transform-origin: 50% 100%; transition: transform .8s var(--ease); }
.hero__stage:hover { transform: perspective(1400px) rotateX(4deg); }
.hero__stage:has(iframe) { transform: none; }
@media (max-width: 639px) { .hero__stage { transform: perspective(900px) rotateX(6deg); } }
