/* ==========================================================================
   Scruméo — prototype landing page
   Design tokens : à réutiliser tels quels lors de l'intégration.
   ========================================================================== */

/* Barlow Condensed — police des titres (auto-hébergée, pas de CDN).
   Partagée app + marketing via ce CSS unique. */
@font-face{font-family:'Barlow Condensed';font-weight:600;font-display:swap;src:url("../fonts/barlow-condensed-600.ba4513495282.woff2") format("woff2")}
@font-face{font-family:'Barlow Condensed';font-weight:700;font-display:swap;src:url("../fonts/barlow-condensed-700.e1180918b873.woff2") format("woff2")}
@font-face{font-family:'Barlow Condensed';font-weight:800;font-display:swap;src:url("../fonts/barlow-condensed-800.b1b7dd5dbcea.woff2") format("woff2")}
@font-face{font-family:'Barlow Condensed';font-weight:900;font-display:swap;src:url("../fonts/barlow-condensed-900.84379775da4a.woff2") format("woff2")}

:root {
  /* Couleurs */
  --bg: #060d17;
  --bg-soft: #0a1525;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.06);
  /* menus et panneaux FLOTTANTS (ils recouvrent du contenu) : fond quasi
     opaque — --surface est un voile de 3 %, il laisse tout transparaître */
  --surface-overlay: rgba(4, 7, 13, 0.96);
  --line: rgba(148, 163, 184, 0.16);
  --line-green: rgba(57, 255, 126, 0.35);
  --text: #e6edf6;
  --muted: #90a1b6;
  --green: #39ff7e;
  --teal: #00e5c8;
  --ink-on-green: #04130b;
  --grad: linear-gradient(135deg, #39ff7e 0%, #00e5c8 100%);

  /* Effets */
  --glow: 0 10px 40px rgba(57, 255, 126, 0.25);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --radius-sm: 12px;

  /* Typographie */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Mouvement */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Titres marketing en Barlow Condensed (harmonisé avec l'app). */
.hero__title,
.section__title,
.card__title,
.parcours-card__title,
.banner__title,
.media-card__title {
  font-family: "Barlow Condensed", var(--font);
  font-weight: 800;
}

/* ==== Base ============================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

::selection {
  background: rgba(57, 255, 126, 0.35);
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--green);
  color: var(--ink-on-green);
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 0;
}

/* Texte présent pour les lecteurs d'écran et les moteurs de recherche,
   invisible à l'écran (pattern standard "visually hidden"). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

.container--narrow {
  width: min(760px, 100% - 48px);
}

.section {
  padding: 96px 0;
  position: relative;
}

.section__head {
  text-align: center;
  margin-bottom: 56px;
}

.section__title {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0.4em 0 0;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
}

/* ==== Prose (articles du blog + pages éditoriales) ===================== */

.article-body { color: var(--text); line-height: 1.8; font-size: 1.02rem; }
.article-body h1, .article-body h2, .article-body h3 {
  color: var(--text); line-height: 1.2;
}
/* Titres de section : Barlow Condensed + filet vert, pour rythmer la lecture */
.article-body h2 {
  font-family: 'Barlow Condensed', var(--font);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: .01em;
  margin: 3rem 0 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.article-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.article-body h3 { font-size: 1.25rem; margin: 2rem 0 .75rem; }
.article-body p { margin-bottom: 1.15rem; }
.article-body ul, .article-body ol { margin: 0 0 1.25rem 1.4rem; }
.article-body li { margin-bottom: .55rem; }
.article-body li::marker { color: var(--green); }
.article-body img {
  width: 100%;
  height: auto; /* sinon l'attribut height étire l'image en largeur fluide (alerte Mel 03/10) */
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin: 2.25rem 0;
}
/* Citations : encart « idée clé » qui aère les murs de texte */
.article-body blockquote {
  margin: 1.75rem 0;
  padding: 1.1rem 1.4rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
  font-size: 1.08rem;
}
.article-body blockquote p { margin: 0; }
.article-body strong { color: var(--green); }
.article-body a { color: var(--green); }
/* Figures des pages piliers (relecture 02/10 : « on ne lit pas, on
   balaye ») : une image par section, légendée. Les visuels viennent de la
   banque d'assets du site, jamais le même sur deux pages piliers. */
/* Plus petites et plus nombreuses (retour Mel 03/10) : sur écran large
   elles alternent à droite / à gauche du texte (mise en page magazine),
   sur mobile elles reprennent la largeur — jamais déformées. */
.article-fig { margin: 1.5rem auto; max-width: 420px; }
.article-fig img { margin: 0; }
.article-fig figcaption {
  margin-top: .5rem; color: var(--muted); font-size: .8rem; line-height: 1.45; text-align: center;
}
@media (min-width: 760px) {
  .article-fig { width: 46%; max-width: none; float: right; margin: .3rem 0 1.1rem 1.6rem; }
  .article-fig:nth-of-type(even) { float: left; margin: .3rem 1.6rem 1.1rem 0; }
  .article-body h2 { clear: both; }
  .article-body::after { content: ''; display: block; clear: both; }
}
/* Les avatars qui se débloquent avec les badges (Découvrir) */
.avatar-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; clear: both; margin: 1.2rem 0 1.6rem; }
.avatar-strip img {
  width: 54px; height: 54px; margin: 0; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line); filter: brightness(1.2);
}
.carte-apercu--compact { max-height: 440px; }
/* Appel à l'action accompagné du coach (pose dédiée par page) */
.cta-coach {
  display: flex; align-items: center; justify-content: center; gap: 1.4rem;
  flex-wrap: wrap; margin-top: 3rem;
}
/* lueur néon verte SOUS la mascotte (retour Mel 03/10, pose assise) :
   l'ombre portée suit la silhouette du PNG, comme un sol éclairé.
   Elle vit sur le CONTENEUR, pas sur l'image : un drop-shadow est calculé
   avant le masque de l'image, donc tranché net au bord de celle-ci
   (c'était le « rectangle » autour des mascottes, retours Mel 03/10). */
.cta-coach__fig {
  display: block;
  filter: drop-shadow(0 16px 22px rgba(57, 255, 126, .34));
}
.cta-coach img { height: 130px; width: auto; display: block; }
/* bouton compact, jamais sur deux lignes (retour Mel 03/10, mobile) */
.cta-coach .btn { padding: 11px 22px; font-size: .9rem; white-space: nowrap; }
/* pose coupée aux hanches dans le PNG (explique) : le bas s'efface en
   dégradé au lieu d'un bord net — même traitement que les cadrages buste */
.cta-coach .cta-coach__buste {
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 62%, transparent 98%);
}

/* Tableaux (pages légales : registre des traitements) */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: .9rem;
  line-height: 1.5;
}
.article-body th, .article-body td {
  border: 1px solid var(--line);
  padding: .65rem .8rem;
  text-align: left;
  vertical-align: top;
}
.article-body th {
  font-family: 'Barlow Condensed', var(--font);
  font-size: 1.05rem;
  background: var(--bg-soft);
}

/* ==== Coach Scruméo : le composant mascotte (3 tailles) =================
   Partagé app + marketing. .coach-fig--full : plein pied ;
   --buste : tête + torse ; --mini : tête ronde. */

.coach-fig { position: relative; display: flex; justify-content: center; align-items: flex-start; }
.coach-fig::before {
  content: ''; position: absolute; inset: -12% -30%; z-index: 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% 38%, rgba(57, 255, 126, .22), transparent 68%),
    radial-gradient(ellipse 40% 32% at 62% 60%, rgba(0, 229, 200, .14), transparent 70%);
  filter: blur(2px);
}
.coach-fig img {
  position: relative; z-index: 1; display: block;
  filter: brightness(1.22) contrast(1.06)
          drop-shadow(0 0 18px rgba(57, 255, 126, .35))
          drop-shadow(0 0 46px rgba(0, 229, 200, .22));
}
.coach-fig--full img { width: 100%; max-width: 200px; animation: coach-float 5s ease-in-out infinite; }
.coach-fig--buste {
  width: 96px; height: 112px; overflow: hidden; flex: none;
  border-radius: 14px;
}
/* Cadrage buste SANS rectangle (retours Mel 03/10, trois passages).
   La boîte découpe l'image (overflow) : tout ce qui déborde d'elle est
   tranché net à ses bords. Donc, dans ce cadrage, rien ne doit déborder :
   - pas de drop-shadow sur l'image (l'ombre floue tranchée au bord
     dessinait le rectangle — mesuré en A/B sur la prod) ;
   - pas de halo ::before (il remplissait la boîte d'un voile vert) ;
   la lueur vient du voile ::after, et le masque sur la boîte entière fond
   le bas (ligne de coupe) et les flancs. */
.coach-fig--buste img { width: 96px; filter: brightness(1.22) contrast(1.06); }
.coach-fig--buste::before { display: none; }
.coach-fig--buste {
  -webkit-mask-image:
    linear-gradient(to bottom, #000 50%, transparent 100%),
    linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  mask-image:
    linear-gradient(to bottom, #000 50%, transparent 100%),
    linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.coach-fig--buste::after {
  /* léger halo néon vert sous le buste, fondu lui aussi par le masque */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(57, 255, 126, .28) 0%, transparent 100%);
}
.coach-fig--mini {
  width: 56px; height: 56px; overflow: hidden; flex: none;
  border-radius: 50%; background: rgba(57, 255, 126, .08);
  border: 1px solid rgba(57, 255, 126, .25);
}
.coach-fig--mini img { width: 120px; margin: -6px 0 0 -32px; }
@keyframes coach-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) { .coach-fig img { animation: none; } }

/* La section « Votre coach » de la landing — carte compacte : avatar rond
   du robot (zoom tête/épaules de salut.png) + message court. */
.coach-hero {
  display: flex; gap: 2.5rem; align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem 3rem;
}
.coach-hero__avatar {
  flex: 0 0 116px;
  width: 116px; height: 116px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line-green);
  background: rgba(53, 224, 124, .06);
}
.coach-hero__avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  /* zoom sur la tête et le haut du torse (le PNG cadre le robot entier) */
  transform: scale(1.6);
  transform-origin: 45% 18%;
}
.coach-hero__body { flex: 1; min-width: 0; }
.coach-hero__body .section__title { margin-bottom: 1rem; }
.coach-hero__text {
  color: var(--muted); line-height: 1.7;
  margin: 0 0 1.6rem; max-width: 60ch;
}
@media (max-width: 720px) {
  .coach-hero { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
  .coach-hero__avatar { flex-basis: auto; width: 96px; height: 96px; }
  .coach-hero__text { margin-left: auto; margin-right: auto; }
}

/* ==== Fond : ciel étoilé nu sur navy =================================== */

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

/* ==== Logo (mark) ======================================================= */

/* Logo image officiel (PNG transparent avec halo intégré).
   Le "S" texte des <span class="mark">S</span> est masqué : l'image
   le porte déjà — un seul point de changement pour tout le site. */
.mark {
  display: inline-grid;
  place-items: center;
  /* Un seul logo partout (décision Mel 03/10) : celui du hero, avec la
     mascotte. L'image a des marges (étincelle, robot qui déborde) : la
     boîte est élargie et compensée par une marge négative pour que le
     carré vert garde sa taille sans grandir la nav ni le pied de page. */
  width: 56px;
  height: 56px;
  margin: -6px;
  background: url("../img/logo-coach-512.0fbce4bcc705.png") center / contain no-repeat;
  color: transparent;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1;
  user-select: none;
}

.mark--xl {
  width: 150px;
  height: 150px;
}

/* ==== Navigation ======================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.35s ease, border-color 0.35s ease,
    backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(6, 13, 23, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav__wordmark {
  font-size: 1.12rem;
}

.nav__dot {
  color: var(--green);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__links a:not(.btn) {
  position: relative;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s ease;
}

.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav__links a:not(.btn):hover {
  color: var(--text);
}

.nav__links a:not(.btn):hover::after {
  transform: scaleX(1);
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.nav__burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}

.nav--open .nav__burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav--open .nav__burger span:nth-child(2) {
  opacity: 0;
}

.nav--open .nav__burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==== Boutons =========================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease,
    border-color 0.25s ease, background-color 0.25s ease;
}

.btn--sm {
  padding: 9px 20px;
  font-size: 0.88rem;
}

.btn--primary {
  background: var(--grad);
  color: var(--ink-on-green);
  box-shadow: 0 4px 18px rgba(57, 255, 126, 0.28);
}

.btn--primary::before {
  /* reflet balayant au survol */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
  transform: translateX(-110%);
  transition: transform 0.6s ease;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.btn--primary:hover::before {
  transform: translateX(110%);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--text);
  background: var(--surface);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  border-color: var(--line-green);
  transform: translateY(-2px);
}

/* ==== Hero video + presentation ======================================== */

/* ==== Intro : l'animation du logo ouvre la page (décision Mel 03/10) ======
   Plein écran par-dessus le hero pendant quelques secondes, puis fondu ;
   les éléments du hero ne se révèlent qu'à ce moment-là (sinon ils se
   seraient animés sous la vidéo, hors de vue). Le script d'accueil pose
   `html.intro-active` pendant l'intro et `.est-finie` au fondu. Historique :
   la vidéo vivait en écran 3 (fusion screen + masques) de 07/2026 au
   03/10/2026 — l'épinglage au scroll avait été abandonné (décision Mel). */
.intro {
  position: fixed;
  inset: 0;
  z-index: 40; /* sous la nav (50) : la barre reste visible, le logo de la nav est la cible */
  display: grid;
  place-items: center;
  background: #000;
  transition: background-color 1.1s ease;
}
/* Fin d'intro (retour Mel 03/10) : le fond s'efface pour laisser venir le
   hero, pendant que la vidéo se recadre sur son logo (clip-path) et vole
   en rapetissant jusqu'au logo de la nav (transform posé par le script,
   calculé d'après la position réelle du logo), puis s'éteint. */
.intro__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  clip-path: inset(0 round 0);
  /* l'opacité baisse sur TOUTE la course vers le logo ; pas de flou animé
     (un filtre sur une vidéo plein écran saccade sur mobile — retour Mel
     03/10), les contours doux viennent du recadrage très arrondi */
  transition: transform 1.25s cubic-bezier(.65, 0, .35, 1),
              clip-path 1.25s cubic-bezier(.65, 0, .35, 1),
              opacity 1.2s ease-in;
}
.intro.est-finie { background: transparent; pointer-events: none; }
.intro.est-finie .intro__media { opacity: 0; }
html.intro-active { overflow: hidden; }
html.intro-active #hero .reveal { opacity: 0; transform: translateY(26px); transition: none; }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* ==== Coach flottant (includes/scrbot.html, static/js/scrbot.js) ========
   Partagé par l'app et l'accueil, toujours en bas à droite (décision Mel
   03/10) : styles ICI, dans la feuille commune aux deux bases, avec les
   tokens de la landing. États : --ouvert (fenêtre visible), --discret (lu
   puis réduit : opacité basse, réveillée au survol ou au tap). */
.scrbot { position: fixed; right: 18px; bottom: 18px; z-index: 300; }
.scrbot__fab {
  position: relative; width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid var(--line-green);
  background: var(--bg-soft) url("../img/coach/salut.71a3567a0027.png") center 4px / 84px auto no-repeat;
  cursor: pointer; box-shadow: 0 8px 30px rgba(57, 255, 126, .25);
  transition: transform .15s, opacity .25s, filter .25s;
}
.scrbot__fab:hover { transform: translateY(-2px) scale(1.04); }
.scrbot--discret .scrbot__fab { opacity: .45; filter: saturate(.6); }
.scrbot--discret:hover .scrbot__fab, .scrbot--discret .scrbot__fab:focus-visible,
.scrbot--discret .scrbot__fab:active { opacity: 1; filter: none; }
.scrbot__badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px;
  padding: 0 5px; border-radius: 999px; background: #ff5050; color: #fff;
  font-size: .72rem; font-weight: 800; line-height: 20px; text-align: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.scrbot__salut {
  position: absolute; bottom: 66px; right: 0; font-size: 1.5rem; line-height: 1;
  padding: .35rem .55rem; border-radius: 12px;
  background: var(--surface-overlay); border: 1px solid var(--line);
  animation: scrbot-coucou .6s ease both;
}
@keyframes scrbot-coucou { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.scrbot__fenetre {
  position: absolute; right: 0; bottom: 70px;
  width: min(340px, calc(100vw - 36px)); max-height: min(70vh, 520px);
  display: flex; flex-direction: column;
  background: var(--surface-overlay); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.scrbot__fenetre[hidden] { display: none; }
.scrbot__entete {
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem .9rem .5rem; border-bottom: 1px solid var(--line);
}
.scrbot__titre { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); }
.scrbot__boutons button {
  background: none; border: 0; color: var(--muted); font-size: 1.1rem; line-height: 1;
  width: 28px; height: 28px; border-radius: 8px; cursor: pointer;
}
.scrbot__boutons button:hover { color: var(--text); background: var(--surface-2); }
.scrbot__fil { flex: 1; overflow-y: auto; padding: .8rem .9rem; display: flex; flex-direction: column; gap: .55rem; }
.scrbot__msg {
  font-size: .88rem; line-height: 1.5; padding: .6rem .8rem; border-radius: 12px;
  white-space: pre-line; color: var(--text); background: var(--surface-2);
}
.scrbot__msg--coach { border-left: 3px solid var(--green); }
.scrbot__msg--moi { align-self: flex-end; max-width: 88%; background: rgba(57, 255, 126, .1); border: 1px solid var(--line-green); }
.scrbot__form { display: flex; gap: .45rem; padding: .6rem .9rem .3rem; }
.scrbot__form input {
  flex: 1; min-width: 0; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; padding: .55rem .9rem; font-size: .88rem; font-family: inherit;
}
.scrbot__envoyer {
  border: 0; border-radius: 999px; padding: .5rem .95rem; cursor: pointer; font-family: inherit;
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--grad); color: var(--ink-on-green);
}
.scrbot__lien { display: block; padding: .3rem .9rem .75rem; font-size: .78rem; color: var(--muted); text-decoration: none; }
.scrbot__lien:hover { color: var(--green); }
.scrbot__bouton {
  display: inline-block; margin: .35rem .35rem 0 0; padding: .25rem .7rem; border-radius: 999px;
  font-size: .78rem; color: var(--green); text-decoration: none; border: 1px solid var(--line-green);
}
.scrbot__bouton:hover { background: rgba(57, 255, 126, .1); }
@media (max-width: 480px) {
  .scrbot { right: 12px; bottom: 12px; }
  .scrbot__fenetre { width: calc(100vw - 24px); max-height: 62vh; }
}

/* ==== Bandeau cookies (includes/bandeau_cookies.html, static/js/cookies.js)
   Accepter / Refuser, partagé par les deux bases. En bas à GAUCHE : la
   bulle du coach garde le bas à droite, et sa fenêtre (z-index 300) le
   recouvre si elle s'ouvre. Retenu pendant l'intro vidéo de l'accueil.
   .choix-cookies = les deux boutons, de même poids (aussi dans la
   politique, § 6). */
.bandeau-cookies {
  position: fixed; left: 18px; bottom: 18px; z-index: 290;
  width: min(380px, calc(100vw - 36px));
  display: flex; flex-direction: column; gap: .75rem;
  padding: .9rem 1rem; border-radius: 16px;
  background: var(--surface-overlay); border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  animation: bandeau-cookies-entree .45s var(--ease-out) both;
}
.bandeau-cookies[hidden] { display: none; }
html.intro-active .bandeau-cookies { visibility: hidden; }
.bandeau-cookies__texte { margin: 0; font-size: .85rem; line-height: 1.5; color: var(--text); }
.bandeau-cookies__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.bandeau-cookies__lien { font-size: .8rem; color: var(--muted); margin-right: auto; }
.bandeau-cookies__lien:hover { color: var(--green); }
.choix-cookies { display: flex; flex-wrap: wrap; gap: .6rem; }
@keyframes bandeau-cookies-entree { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bandeau-cookies { animation: none; } }
@media (max-width: 480px) {
  /* la bulle du coach (58 px + marge) reste visible et cliquable à droite */
  .bandeau-cookies { left: 12px; bottom: 12px; width: calc(100vw - 24px - 70px); }
}

.hero {
  position: relative;
  text-align: center;
}

.hero--content {
  padding: 112px 0 88px;
  /* le hero occupe exactement l'écran 1 : l'animation du logo (section
     suivante) ne devient visible qu'à l'écran 2, jamais sous le pli */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Fond = le ciel de la vidéo d'intro avec sa traînée verte (image HD
     tirée de la vidéo AVANT l'apparition du logo, décision Mel 03/10) :
     l'intro se termine sur le même ciel, sans rupture. */
  background: url("../img/landing/hero-trail.ce4aba28c6d0.webp") center / cover no-repeat;
}
.hero--content::after {
  /* fondu vers le fond de page pour enchaîner avec la section suivante */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 28vh;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero--content > * { position: relative; z-index: 1; }

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  position: relative;
  /* marge NÉGATIVE : le PNG porte ~20 % de vide sous le carré vert ; sans
     compensation il y avait trop d'air avant le slogan (retour Mel 03/10) */
  margin-bottom: -22px;
  animation: float 6s ease-in-out infinite;
}

/* Le logo image porte son propre halo : le glow CSS pulsant est retiré
   (il révélait la découpe rectangulaire du PNG en éclairant ses bords). */
.hero__logo-glow { display: none; }

/* Le titre du hero est centré en incluant le point vert final, ce qui
   décale le mot « Scruméo » légèrement à gauche de l'axe de mise en page.
   On aligne le logo sur le mot (et non sur l'axe) pour qu'il soit centré
   au-dessus du wordmark visible.
   Le hero porte la version « mascotte allongée » du logo (montage Mel
   2026-07-16) — réservée aux grandes tailles : à 44px le robot serait
   lisible aussi dans les petits .mark depuis le 03/10). L'image ayant plus de
   marges (robot qui déborde, étincelle), la boîte est élargie pour que
   le carré vert garde sa taille d'avant. */
.hero__logo .mark--xl {
  transform: translateX(-10px);
  width: 260px;  /* un peu plus grand (retour Mel 03/10) */
  height: 260px;
  margin: 0;     /* pas la compensation des petits .mark */
  background-image: url("../img/logo-coach-512.0fbce4bcc705.png");
}
@media (max-width: 760px) {
  .hero__logo .mark--xl {
    width: 180px;
    height: 180px;
  }
}

.hero__title {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero__dot {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  margin: 18px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--green);
  opacity: 0.75;
  transition: opacity 0.25s ease;
  animation: bob 2.4s ease-in-out infinite;
}

.hero__scroll:hover {
  opacity: 1;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 6px);
  }
}

/* ==== Cartes piliers ==================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-green);
  box-shadow: var(--shadow), 0 0 0 1px rgba(57, 255, 126, 0.12);
}

.card--feature {
  border-color: var(--line-green);
  background: linear-gradient(180deg, rgba(57, 255, 126, 0.08), var(--surface));
}

.card__photo {
  position: relative;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
}

.card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.card:hover .card__photo img {
  transform: scale(1.05);
}

.card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 7, 13, 0.55));
  pointer-events: none;
}

.card__photo-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 16px;
  font-size: 1.8rem;
  z-index: 1;
}

.card__title {
  margin: 0 0 10px;
  font-size: 1.16rem;
  letter-spacing: -0.01em;
}

.card__text {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.card__link {
  text-decoration: none;
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--green);
}

.card__link span {
  display: inline-block;
  transition: transform 0.25s var(--ease-out);
}

.card__link:hover span {
  transform: translateX(4px);
}

/* ==== Carrousel des parcours ============================================ */
/* Défilement horizontal natif (scroll-snap) : pas de JS requis, fonctionne
   au doigt, au trackpad et à la molette+Maj. Se limite à ce qui est
   réellement accessible — pas de teasing/waitlist ici (voir pages/views.py). */

.parcours-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 6px 18px;
  margin: 0 -6px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-green) transparent;
}

.parcours-card {
  flex: 0 0 min(340px, 84vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 0 28px 30px;
  overflow: hidden;
  border: 1px solid var(--line-green);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(57, 255, 126, 0.09), var(--surface));
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.parcours-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow), 0 0 0 1px rgba(57, 255, 126, 0.12);
}

/* Visuel en tête de carte : déborde le padding pour toucher les bords. */
.parcours-card__photo {
  margin: 0 -28px 22px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
}

.parcours-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.parcours-card--soon .parcours-card__photo img {
  filter: grayscale(0.55) brightness(0.72);
}

.parcours-card__tag {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.parcours-card__title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.parcours-card__text {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.parcours-card .btn {
  align-self: flex-start;
}

/* Carte en teasing : framework pas encore ouvert. Volontairement discrète
   pour que la carte jouable reste le point d'attention. */
.parcours-card--soon {
  border-color: var(--line);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
}

.parcours-card--soon .parcours-card__tag,
.parcours-card--soon .parcours-card__meta li {
  color: var(--muted);
  border-color: var(--line);
}

.parcours-card__soon {
  align-self: flex-start;
  padding: 9px 20px;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 999px;
}

/* ==== Bandeau Scruméo =================================================== */

.banner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 38px 40px;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line-green);
  background: linear-gradient(120deg, rgba(57, 255, 126, 0.1), rgba(0, 229, 200, 0.05) 55%, var(--surface));
  box-shadow: 0 0 60px rgba(57, 255, 126, 0.08);
}

.banner__mark .mark {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  font-size: 2.2rem;
}

.banner__body {
  flex: 1;
}

.banner__title {
  margin: 0 0 8px;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

.banner__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  max-width: 60ch;
}

/* ==== FAQ =============================================================== */

.faq {
  border-top: 1px solid var(--line-green);
}

.faq__item {
  border-bottom: 1px solid var(--line-green);
}

.faq__heading {
  margin: 0;
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 6px;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: color 0.25s ease;
}

.faq__q:hover {
  color: var(--green);
}

.faq__chevron {
  flex-shrink: 0;
  color: var(--green);
  transition: transform 0.35s var(--ease-out);
}

.faq__item.open .faq__chevron {
  transform: rotate(180deg);
}

/* Réponse fermée : visibility retire ses liens du parcours clavier (pas de
   focus sur un lien invisible) ; le texte reste dans le HTML servi. */
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows 0.4s var(--ease-out), opacity 0.35s ease,
    visibility 0s linear 0.4s;
}

.faq__item.open .faq__a {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.faq__a-inner {
  overflow: hidden;
}

.faq__a-inner p {
  margin: 0;
  padding: 0 6px 24px;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 64ch;
}

.faq__a-inner a {
  color: var(--green);
  text-underline-offset: 3px;
}

.faq__cta {
  text-align: center;
  margin-top: 44px;
}

/* ==== Pied de page ====================================================== */

.footer {
  border-top: 1px solid var(--line);
  background: rgba(10, 16, 28, 0.6);
  backdrop-filter: blur(8px);
  padding: 56px 0 28px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.footer__baseline {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer__nav {
  display: flex;
  gap: 64px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col-title {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__col a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.93rem;
  transition: color 0.25s ease;
}

.footer__col a:hover {
  color: var(--green);
}

.footer__legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.footer__legal p {
  margin: 0;
}

.footer__note {
  opacity: 0.7;
}

/* ==== Apparition au scroll ============================================= */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ==== Responsive ======================================================== */

@media (max-width: 980px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }

  .banner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 72px 0;
  }

  .nav__burger {
    display: flex;
  }

  .nav__links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 22px;
    background: var(--surface-overlay);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav--open .nav__links {
    display: flex;
  }

  .nav__links a:not(.btn) {
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
  }

  .nav__links a:not(.btn)::after {
    display: none;
  }

  .nav__links .btn {
    margin-top: 16px;
  }

  .hero--content {
    padding: 80px 0 70px;
  }

  .hero__logo {
    margin-bottom: 28px;
  }

  .mark--xl {
    width: 104px;
    height: 104px;
    border-radius: 28px;
    font-size: 3.35rem;
  }

  .hero__sub {
    font-size: 0.98rem;
  }

  .hero__cta {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .footer__nav {
    gap: 40px;
  }
}

/* ==== Nav : icône profil + menu déroulant (retours review 20/07) ========
   Composant partagé app + marketing (includes/nav_droite.html) : icône de
   compte en haut à droite, menu déroulant style OpenClassrooms. */

.nav-droite { display: flex; align-items: center; gap: .9rem; }
.nav-profil { position: relative; }
.nav-profil__btn {
  display: flex; align-items: center; gap: .45rem;
  background: var(--surface); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px; padding: 4px 10px 4px 4px;
  cursor: pointer; font-family: inherit;
  transition: border-color .2s;
}
.nav-profil__btn:hover, .nav-profil.open .nav-profil__btn { border-color: var(--line-green); }
.nav-profil__avatar {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
  filter: brightness(1.28) contrast(1.05); /* même remède que la grille d'avatars */
}
.nav-profil__ico {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1rem;
  background: var(--surface-2); color: var(--muted);
}
.nav-profil__chevron { color: var(--muted); font-size: .6rem; transition: transform .2s; }
.nav-profil.open .nav-profil__chevron { transform: rotate(180deg); }

.nav-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 220px;
  background: var(--surface-overlay); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 14px; padding: .5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
  display: none; z-index: 90;
}
.nav-profil.open .nav-menu { display: block; }
.nav-menu a {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .8rem; border-radius: 9px;
  color: var(--text); text-decoration: none; font-size: .88rem;
}
.nav-menu a:hover { background: var(--surface-2); }
.nav-menu__ico { width: 1.2rem; text-align: center; }
.nav-menu__sep { border: 0; border-top: 1px solid rgba(255, 255, 255, .09); margin: .4rem .5rem; }
.nav-menu .nav-menu__danger { color: var(--muted); }
.nav-menu .nav-menu__danger:hover { color: #ff5050; }
.nav-menu__entete { padding: .55rem .8rem .5rem; font-size: .75rem; color: var(--muted); }
.nav-menu__entete b { display: block; color: var(--text); font-size: .88rem; }

/* Sur mobile, le menu profil reste accessible à côté du burger */
@media (max-width: 860px) {
  .nav-droite { gap: .5rem; }
}

/* ==== Aperçu de la carte de progression (relecture 02/10) ================
   La capture de la carte, bordée et fondue vers le fond en bas : on en
   montre assez pour comprendre, le CTA invite à jouer la vraie. */

.carte-apercu {
  max-width: 560px; max-height: 600px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; position: relative; background: var(--bg);
}
.carte-apercu img { width: 100%; height: auto; display: block; }
.carte-apercu::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 150px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}
.carte-apercu__cta { text-align: center; margin-top: 1.5rem; }

/* ==== Cartes entièrement cliquables (retour review 20/07) ================
   Blog et landing : le lien « Lire / Découvrir » s'étire sur toute la
   carte — une seule règle, toutes les .card avec un .card__link. */

.card { position: relative; }
.card__link::after { content: ""; position: absolute; inset: 0; }

/* ==== Accessibilité : mouvement réduit ================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
