/* ============================================================
   CHECK IT OUT v2 — « Le site sous le film » — direction « âme »
   Éditorial premium (esprit Ascend / brief Check it out) :
   gros titres SERIF (Instrument Serif, italique accentué),
   fond plasma doux (shader), cartes coverflow redessinées.
   Réutilise les tokens de styles.css (--ink/--ink-dim/--accent/--bg).
   ============================================================ */

:root {
  --font-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
}

/* ---------- Film : on masque le gros titre, la ligne finale et l'indice
   (les cartes .bubble sont les 4 cartes placées via le Card Lab → visibles). ---------- */
.cinematic .hero-block,
.cinematic .final-line,
.cinematic .scroll-hint { display: none !important; }

/* ===== Narratif vidéo : texte + cartes glass en parallaxe (fx2/filmcards.js) ===== */
.fcard-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.fcard {
  position: absolute; display: flex; align-items: center; gap: 12px; white-space: nowrap;
  padding: 15px 22px; border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(106, 165, 255, 0.10), transparent 60%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02) 55%, rgba(6, 12, 26, 0.4));
  box-shadow: 0 40px 90px -38px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; will-change: transform, opacity;
}
.fcard::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(150, 190, 255, 0.55), transparent); opacity: 0.6;
}
.fcard-placed { flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; }
.fcard .fc-line { display: flex; align-items: center; gap: 12px; }
.fcard .fc-dot { color: #6aa5ff; font-size: 0.95rem; }
.fcard .fc-w {
  font-family: var(--font-display, "Clash Display", sans-serif);
  font-weight: 600; font-size: 1.34rem; letter-spacing: -0.01em; color: #eaf2ff;
}
/* (cardtext) index + micro-ligne : masqués par défaut, révélés par .narr-cardtext */
.fcard .fc-idx, .fcard .fc-sub { display: none; }
.fcard .fc-idx {
  font-family: var(--font-display, "Clash Display", sans-serif);
  font-weight: 600; font-size: 0.82rem; letter-spacing: 0.18em; color: #6aa5ff; opacity: 0.85;
}
.fcard .fc-sub {
  font-family: var(--font-body, system-ui, sans-serif); font-weight: 400;
  font-size: 1rem; letter-spacing: 0.01em; color: rgba(228, 238, 252, 0.66); white-space: nowrap;
}
.narr-cardtext .fcard .fc-idx, .narr-cardtext .fcard .fc-sub { display: block; }
/* (cardtext) paragraphe + tags dans la carte : masqués par défaut, révélés par .narr-cardtext */
.fcard .fc-body, .fcard .fc-tags { display: none; }
.fcard .fc-body {
  white-space: normal; margin: 4px 0 0;
  font-family: var(--font-body, system-ui, sans-serif); font-weight: 400;
  font-size: 0.98rem; line-height: 1.5; color: rgba(228, 238, 252, 0.72);
}
.fcard .fc-tags { flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.fcard .fc-tags span {
  font-family: var(--font-body, system-ui, sans-serif); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.04em; color: rgba(180, 205, 255, 0.9); white-space: nowrap;
  padding: 4px 11px; border-radius: 999px;
  background: rgba(106, 165, 255, 0.10); border: 1px solid rgba(106, 165, 255, 0.22);
}
.narr-cardtext .fcard .fc-body { display: block; }
.narr-cardtext .fcard .fc-tags { display: flex; }
/* sur mobile (bandeau 132px) : pas de paragraphe ni de tags, on garde la version concise */
.fcard-mobile .fc-body, .fcard-mobile .fc-tags { display: none !important; }
.ftext {
  position: absolute; left: 6.5%; bottom: 17%; max-width: 560px;
  font-family: var(--font-serif, Georgia, serif); font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.05; letter-spacing: -0.01em;
  color: #f2f6fa; text-shadow: 0 2px 34px rgba(4, 6, 12, 0.92);
  opacity: 0; will-change: opacity, transform;
}
/* texte collé sous sa carte : positionné par top (inline), plus petit pour tenir sous la carte */
.ftext-placed {
  bottom: auto;                              /* annule le bottom fixe → positionnement par top */
  font-size: clamp(1.05rem, 1.9vw, 1.5rem); line-height: 1.22;
}
/* ===== Mode étroit (mobile / tablette) : bandeau bas centré (posé par filmcards.js) ===== */
.fcard-mobile { text-align: center; }
.fcard-mobile.fcard-placed { align-items: center; }
.fcard-mobile .fc-sub { white-space: normal; }   /* la micro-ligne peut passer à la ligne */
.ftext-mobile { text-align: center; font-size: clamp(1.4rem, 5.2vw, 1.9rem); line-height: 1.12; }
.ffinal {
  position: absolute; left: 50%; top: 46%; text-align: center;
  opacity: 0; will-change: opacity, transform;
}
.ffinal-brand {
  font-family: var(--font-display, "Clash Display", sans-serif);
  font-weight: 700; font-size: clamp(2.6rem, 6.5vw, 5.2rem); letter-spacing: -0.02em; color: #fff;
  text-shadow: 0 2px 40px rgba(4, 6, 12, 0.9);
}
.ffinal-btn {
  pointer-events: auto; display: inline-block; margin-top: 26px;
  padding: 14px 32px; border-radius: 999px; background: #fff; color: #06080f;
  font-family: var(--font-body, system-ui, sans-serif); font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ffinal-btn:hover { transform: translateY(-2px); box-shadow: 0 0 28px rgba(255, 255, 255, 0.4); }
/* clôture : tagline sous la marque (module intro) */
.ffinal-tag {
  font-family: var(--font-body, system-ui, sans-serif); font-weight: 400;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem); line-height: 1.4; letter-spacing: 0.01em; color: rgba(234, 242, 255, 0.7);
  margin: 16px auto 0; max-width: 540px; display: none;
}
.narr-intro .ffinal-tag { display: block; }

/* (intro) titre d'ouverture, centré, plein au départ puis fondu — masqué si module off */
.fintro {
  position: absolute; left: 50%; top: 42%; transform: translateX(-50%);
  width: min(92vw, 620px);   /* sans largeur, left:50% sans width se tasse en colonne étroite → casse mot/mot + déborde sur l'indice « Défilez » */
  text-align: center; display: none; opacity: 0; will-change: opacity, transform;
}
.narr-intro .fintro { display: block; }
.fintro-k {
  display: block; font-family: var(--font-body, system-ui, sans-serif); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase; color: #6aa5ff; margin-bottom: 16px;
}
.fintro-h {
  display: block; font-family: var(--font-display, "Clash Display", sans-serif); font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 4.4rem); line-height: 1.04; letter-spacing: -0.02em; color: #fff;
  text-shadow: 0 2px 40px rgba(4, 6, 12, 0.9);
}
.fintro-sub {
  display: block; margin: 18px auto 0; max-width: 540px;
  font-family: var(--font-body, system-ui, sans-serif); font-weight: 400;
  font-size: clamp(0.95rem, 1.7vw, 1.2rem); line-height: 1.4; color: rgba(234, 242, 255, 0.72);
}

/* (cue) indice de scroll sur la 1ʳᵉ frame — masqué si module off */
.fcue {
  position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-body, system-ui, sans-serif); font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(234, 242, 255, 0.78);
  will-change: opacity;
}
.narr-cue .fcue { display: flex; }
.fcue-a { font-size: 1.1rem; letter-spacing: 0; animation: fcue-bob 1.8s ease-in-out infinite; }
@keyframes fcue-bob { 0%, 100% { transform: translateY(0); opacity: 0.55; } 50% { transform: translateY(6px); opacity: 1; } }

/* (progress) points de chapitre 01·02·03·04 à droite — masqués si module off */
.fprog {
  position: absolute; right: 3.6%; top: 50%; transform: translateY(-50%);
  display: none; flex-direction: column; gap: 22px;
}
.narr-progress .fprog { display: flex; }
.fprog-dot { display: flex; align-items: center; gap: 12px; opacity: 0.4; transition: opacity 0.35s; }
.fprog-dot.passed { opacity: 0.7; }
.fprog-dot.active { opacity: 1; }
.fprog-n {
  font-family: var(--font-display, "Clash Display", sans-serif); font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.12em; color: #eaf2ff; min-width: 1.6em; text-align: right;
}
.fprog-b {
  width: 30px; height: 2px; border-radius: 2px; background: rgba(234, 242, 255, 0.3);
  transition: background 0.35s, box-shadow 0.35s, width 0.35s;
}
.fprog-dot.passed .fprog-b { background: #6aa5ff; }
.fprog-dot.active .fprog-b { width: 46px; background: #8fc0ff; box-shadow: 0 0 14px rgba(106, 165, 255, 0.7); }

@media (max-width: 720px) {
  .fcard { padding: 11px 16px; }
  .fcard .fc-w { font-size: 0.95rem; }
  .ftext { left: 6%; bottom: 14%; font-size: clamp(1.5rem, 6vw, 2.2rem); }
  .fprog { right: 4.5%; gap: 16px; }
  .fprog-n { display: none; }   /* sur mobile : juste les barres */
  /* intro plus compacte + remontée : laisse l'espace au-dessus de l'indice « Défilez » (bottom 7%) */
  .fintro { top: 36%; }
  .fintro-k { font-size: 0.7rem; margin-bottom: 12px; }
  .fintro-h { font-size: clamp(1.7rem, 6.6vw, 2.6rem); }
  .fintro-sub { font-size: clamp(0.9rem, 3.6vw, 1.05rem); margin-top: 14px; }
}
/* écrans très courts (paysage mobile) : le sous-titre est sacrifié pour ne jamais toucher l'indice */
@media (max-height: 560px) {
  .fintro-sub { display: none; }
  .fintro { top: 40%; }
}

/* ===== Card Lab — outil d'édition de cartes sur la vidéo (fx2/cardlab.js) ===== */
.lab-bar {
  position: fixed; left: 22px; bottom: 22px; z-index: 90;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; border-radius: 14px;
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f2f6fa; font: 600 0.8rem/1 system-ui, sans-serif;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
}
.lab-btn {
  padding: 8px 13px; border-radius: 999px; cursor: pointer; font-size: 0.8rem; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.18); background: #6aa5ff; color: #06080f;
}
.lab-btn.lab-copy { background: rgba(255, 255, 255, 0.08); color: #f2f6fa; }
.lab-btn:hover { filter: brightness(1.1); }
.lab-edit { display: flex; align-items: center; gap: 6px; color: rgba(242, 246, 250, 0.85); font-weight: 500; cursor: pointer; }
.lab-readout { font-family: ui-monospace, Menlo, Consolas, monospace; color: #6aa5ff; }

.lab-card {
  position: fixed; z-index: 70; width: 320px; min-height: 200px;
  border-radius: 26px; border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(106, 165, 255, 0.10), transparent 60%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02) 55%, rgba(6, 12, 26, 0.4));
  box-shadow: 0 40px 90px -38px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  cursor: grab; transition: opacity 0.25s ease;
}
.lab-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(150, 190, 255, 0.55), transparent); opacity: 0.6;
}
.lab-card-ctrl {
  position: absolute; top: -44px; left: 0;
  display: flex; gap: 6px; align-items: center; white-space: nowrap;
  padding: 6px 8px; border-radius: 10px;
  background: rgba(10, 14, 26, 0.92); border: 1px solid rgba(255, 255, 255, 0.14);
}
.lab-card-ctrl button {
  font-size: 0.72rem; padding: 5px 8px; border-radius: 7px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.08); color: #f2f6fa;
}
.lab-card-ctrl .lab-vals { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.7rem; color: #6aa5ff; }
.lab-card-ctrl .lab-del { background: rgba(255, 90, 90, 0.22); }
/* poignée de redimensionnement (coin bas-droit) */
.lab-resize {
  position: absolute; right: 5px; bottom: 5px;
  width: 18px; height: 18px; cursor: nwse-resize; z-index: 2;
  border-right: 2px solid rgba(255, 255, 255, 0.55);
  border-bottom: 2px solid rgba(255, 255, 255, 0.55);
  border-bottom-right-radius: 9px;
}
.lab-resize:hover { border-color: #6aa5ff; }

/* ---------- Fond plasma (shader 21st.dev porté en WebGL vanilla) ---------- */
.aurora-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 1.8s ease;
}
body.past-film .aurora-bg { opacity: 0.62; }
@media (prefers-reduced-motion: reduce) { .aurora-bg { transition: none; } }

/* ---------- Fonds « scène 3D » (Three.js : trou noir / ville) ---------- */
/* Canvas opaque (scène complète) -> couvre le fond. Caché tant qu'aucune scène
   n'est choisie (display:none piloté par scenes3d.js), révélé après le film. */
.scene3d-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}
body.past-film .scene3d-bg { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .scene3d-bg { transition: none; } }

/* Stries d'énergie « data-rain » : trop présentes / cheap -> on les efface presque,
   et on adoucit la dérive chromatique. Le plasma devient le seul fond. */
body.past-film .data-rain { opacity: 0.06 !important; }
body.past-film .color-drift { opacity: 0.05 !important; }

/* ---------- Conteneur post-film (au-dessus des couches de fond fixes) ---------- */
/* overflow-x: clip -> les cartes coverflow et le marquee qui dépassent (transforms
   translateX, width:max-content) ne créent pas de scroll horizontal sur mobile.
   N'affecte pas le film (qui est hors de .below-wrap). */
.below-wrap { position: relative; z-index: 1; overflow-x: clip; }
.bl-sec {
  position: relative;
  z-index: 1;
  padding: 160px 8vw;
  max-width: 1280px;
  margin: 0 auto;
}
@media (max-width: 720px) { .bl-sec { padding: 96px 26px; } }

/* ---------- Titres éditoriaux SERIF (l'âme du style) ---------- */
.bl-lead h2,
.below-wrap .section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.02;
}
.bl-lead h2 em,
.below-wrap .section-title em {
  font-style: italic;
  background: linear-gradient(100deg, #eaf2ff 0%, #6aa5ff 46%, #38bdf8 82%, #eaf2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Lead-in / manifeste ---------- */
.bl-lead {
  position: relative;
  z-index: 1;
  padding: 230px 8vw 120px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.bl-eyebrow {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.36em;
  font-size: 0.74rem;
  color: var(--accent);
  margin-bottom: 30px;
  opacity: 0.85;
}
.bl-lead h2 { font-size: clamp(2.9rem, 7vw, 6rem); }
.bl-lead p {
  margin: 36px auto 0;
  max-width: 600px;
  font-size: 1.16rem;
  line-height: 1.75;
  color: var(--ink-dim);
}

/* ---------- Cartes flottantes (inspiration Liquid Brokers) ----------
   Cartes glass posées à des positions variées sous le lead-in. La fc-b est
   volontairement plus grande. Décoratives -> masquées sous 900px. */
.bl-floats {
  position: relative;
  left: 50%;
  transform: translateX(-50%);          /* full-bleed : échappe à la largeur étroite du lead-in */
  width: min(1100px, 92vw);
  height: 400px;
  margin: 90px 0 0;
}
.float-card {
  position: absolute;
  width: 300px;
  padding: 22px 24px;
  border-radius: 22px;
  text-align: left;
  background:
    radial-gradient(420px circle at 0% 0%, rgba(96, 150, 255, 0.10), transparent 60%),
    rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 26px 60px -24px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  display: grid;
  gap: 16px;
}
.fc-a { left: 0;   top: 8px; }
.fc-b { right: 0;  top: 64px; width: 360px; padding: 28px 30px; }    /* plus grande */
.fc-c { left: 33%; bottom: 0; width: 280px; }
.fc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fc-label {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-dim);
}
.fc-arrow {
  flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--ink); font-size: 14px;
}
.fc-stat {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1;
}
.fc-bar { height: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.fc-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #38bdf8); box-shadow: 0 0 12px var(--glow); }
.fc-note { font-size: 0.86rem; line-height: 1.45; color: var(--ink-dim); }
@media (max-width: 900px) { .bl-floats { display: none; } }

/* ---------- En-tête de section ---------- */
.bl-head { text-align: center; max-width: 820px; margin: 0 auto 14px; }
.bl-head .section-title { margin-top: 10px; font-size: clamp(2.4rem, 5vw, 4.4rem); }
.bl-head .kicker { color: var(--accent); }
.bl-head .sub { margin: 24px auto 0; max-width: 600px; }

/* ============================================================
   CARTES COVERFLOW — redessinées (verre profond + liseré + lueur)
   ============================================================ */
.carousel { margin-top: 84px; }
/* Grab & throw : le curseur indique qu'on peut saisir ; touch-action pan-y laisse
   le scroll vertical de la page au navigateur et nous réserve le drag horizontal. */
.carousel-stage {
  height: 460px; perspective: 1600px;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
#carousel { touch-action: pan-y; }
#carousel.grabbing, #carousel.grabbing .carousel-stage { cursor: grabbing; }
#carousel .c-card { will-change: transform; }
#carousel .c-card * { user-select: none; -webkit-user-drag: none; }

#carousel .c-card {
  width: 430px;
  margin-left: -215px;
  height: 420px;
  padding: 44px 42px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(106, 165, 255, 0.10), transparent 60%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02) 55%, rgba(6, 12, 26, 0.4));
  box-shadow:
    0 40px 90px -38px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}
/* liseré de lumière sur l'arête supérieure */
#carousel .c-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(150, 190, 255, 0.55), transparent);
  opacity: 0.6;
}
#carousel .c-card .card-num {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  color: var(--accent);
}
#carousel .c-card h3 {
  margin: 18px 0 14px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2.05rem;
  line-height: 1.06;
  letter-spacing: 0;
  color: var(--ink);
}
#carousel .c-card p {
  font-family: var(--font-body);
  font-size: 1.0rem;
  line-height: 1.62;
  color: var(--ink-dim);
}
#carousel .c-card .c-tag {
  margin-top: auto;
  padding-top: 20px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(146, 178, 230, 0.6);
}
/* CARTE CENTRALE — elle s'illumine (classe .is-active posée par initCarousel) */
#carousel .c-card.is-active {
  border-color: rgba(106, 165, 255, 0.45);
  background:
    radial-gradient(130% 90% at 50% 0%, rgba(106, 165, 255, 0.20), transparent 62%),
    linear-gradient(165deg, rgba(106, 165, 255, 0.10), rgba(255, 255, 255, 0.02) 60%, rgba(6, 12, 26, 0.45));
  box-shadow:
    0 50px 120px -40px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(106, 165, 255, 0.25),
    0 0 70px -14px rgba(56, 160, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
#carousel .c-card.is-active::before { opacity: 1; }

/* ---------- Marquee secteurs — affiné ---------- */
.below-wrap .marquee { padding: 26px 0; }
.below-wrap .marquee-track span {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2.4rem;
  letter-spacing: 0.005em;
}

/* ---------- Contact ---------- */
.bl-contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: center;
  text-align: left;
  width: 100%; /* .cta est flex/grid centré -> sans width:100% la grille s'écrase */
}
.bl-contact-grid .cta-panel {
  max-width: none;
  width: 100%;
  padding: 46px 42px;       /* le padding d'origine (~227px) écrasait le formulaire */
  text-align: left;
  border-radius: 26px;
}
.bl-contact-grid .cta-panel .sub { margin: 0 0 6px; }
.bl-contact-grid .contact-form { width: 100%; }
.bl-coords { display: flex; flex-direction: column; gap: 22px; }
.bl-coords .section-title { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 6px; }
.bl-coord { display: flex; flex-direction: column; gap: 5px; }
.bl-coord .l {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.bl-coord a, .bl-coord p { font-size: 1.12rem; color: var(--ink); text-decoration: none; line-height: 1.5; }
.bl-coord a:hover { color: var(--accent); }
@media (max-width: 880px) {
  .bl-contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .bl-contact-grid .cta-panel { text-align: center; }
}

/* ============================================================
   RESPONSIVE MOBILE (<= 720px)
   ============================================================ */
@media (max-width: 720px) {
  .bl-lead { padding: 150px 26px 80px; }
  .carousel { margin-top: 56px; }
  .carousel-stage { height: 430px; perspective: 1100px; }
  #carousel .c-card { width: 80vw; margin-left: -40vw; height: 410px; padding: 34px 30px; }
  #carousel .c-card h3 { font-size: 1.8rem; }
  .below-wrap .marquee-track span { font-size: 1.7rem; }
}

/* ============================================================
   VARIANTES DE CARTES (commutables via le menu — data-cards sur <body>)
   « Verre » = style de base ci-dessus. Ci-dessous : Contour & Néon.
   ============================================================ */
/* Le style choisi s'applique à TOUTES les cartes : carrousel (#carousel .c-card),
   étapes (.step), chiffres (.stat) et panneau contact (.cta-panel).
   On répète #carousel pour les c-card (forte spécificité due à l'#id). */

/* --- Contour : entièrement transparent, liseré net, ultra épuré --- */
body[data-cards="contour"] #carousel .c-card,
body[data-cards="contour"] .below-wrap .step,
body[data-cards="contour"] .below-wrap .stat,
body[data-cards="contour"] .below-wrap .cta-panel {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body[data-cards="contour"] #carousel .c-card::before { opacity: 0; }
body[data-cards="contour"] #carousel .c-card.is-active {
  border-color: rgba(106, 165, 255, 0.85);
  background: transparent;
  box-shadow: 0 0 0 1px rgba(106, 165, 255, 0.55), 0 0 60px -12px rgba(56, 160, 255, 0.6);
}

/* --- Néon : panneau sombre plein + arête accent + glow --- */
body[data-cards="neon"] #carousel .c-card,
body[data-cards="neon"] .below-wrap .step,
body[data-cards="neon"] .below-wrap .stat,
body[data-cards="neon"] .below-wrap .cta-panel {
  background: linear-gradient(165deg, #0a1530, #060a18 70%);
  border: 1px solid rgba(106, 165, 255, 0.28);
  box-shadow: 0 34px 80px -38px #000, inset 0 0 34px -14px rgba(56, 160, 255, 0.30);
  backdrop-filter: none;
}
body[data-cards="neon"] #carousel .c-card::before {
  background: linear-gradient(90deg, transparent, rgba(120, 200, 255, 0.9), transparent);
  opacity: 0.5;
}
body[data-cards="neon"] #carousel .c-card.is-active {
  border-color: rgba(120, 200, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(120, 200, 255, 0.6), 0 0 64px -8px rgba(56, 180, 255, 0.6),
              inset 0 0 42px -14px rgba(56, 180, 255, 0.4);
}
body[data-cards="neon"] #carousel .c-card.is-active::before { opacity: 1; }

/* --- Verre (défaut) : on harmonise étapes/stats/contact avec les c-card --- */
body[data-cards="glass"] .below-wrap .step,
body[data-cards="glass"] .below-wrap .stat,
body[data-cards="glass"] .below-wrap .cta-panel {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(106, 165, 255, 0.10), transparent 60%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02) 55%, rgba(6, 12, 26, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 40px 90px -38px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* ============================================================
   PANNEAU DE RÉGLAGES « ✦ Style »
   ============================================================ */
.ck-controls {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  font-family: var(--font-body, system-ui, sans-serif);
}
.ck-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 14, 26, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink, #f2f6fa);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.8);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.ck-toggle:hover { transform: translateY(-2px); border-color: rgba(106, 165, 255, 0.5); }
.ck-star { color: var(--accent, #6aa5ff); }
.ck-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: 250px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.85);
  display: grid;
  gap: 18px;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.ck-controls[data-open="true"] .ck-panel { opacity: 1; transform: none; pointer-events: auto; }
.ck-label {
  display: block;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent, #6aa5ff);
  margin-bottom: 10px;
}
.ck-slider { display: flex; align-items: center; gap: 12px; }
.ck-slider .ck-sens { flex: 1; height: 4px; accent-color: var(--accent, #6aa5ff); cursor: pointer; }
.ck-slider .ck-sens-val {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem; color: #eaf2ff; min-width: 2.6em; text-align: right;
}
.ck-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ck-opts button {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(242, 246, 250, 0.7);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.ck-opts button:hover { color: var(--ink, #f2f6fa); border-color: rgba(255, 255, 255, 0.3); }
.ck-opts button.on {
  background: var(--accent, #6aa5ff);
  border-color: var(--accent, #6aa5ff);
  color: #06080f;
  font-weight: 600;
}
@media (max-width: 720px) {
  .ck-controls { right: 14px; bottom: 14px; }
  .ck-panel { width: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .ck-toggle, .ck-panel { transition: none; }
}
