/* ============================================================
   MESURER L'INVISIBLE — v4 "Aura"
   Bien-être punchy, immersif. Fond profond + halos d'aura.
   Corail chaud x turquoise lagon en contraste vif.
   Formes organiques, gros arrondis, onde vibrante.
   ============================================================ */

:root {
  /* Fond profond teinté (bleu-nuit tirant sur le sarcelle profond) */
  --nuit:      #0E1E2B;
  --nuit-2:    #132734;
  --nuit-soft: #1B3542;

  /* Accents vifs */
  --corail:    #FF6B5B;
  --corail-cl: #FF8E7A;
  --lagon:     #2ED9C3;
  --lagon-cl:  #66E8D6;
  --ambre:     #FFC56E;

  /* Neutres clairs */
  --creme:     #FDF6EF;
  --creme-dim: #E8DFD6;
  --texte-clair:#EAF2F2;
  --texte-mid: #A9C0C4;

  --glass:     color-mix(in srgb, #FFFFFF 7%, transparent);
  --glass-br:  color-mix(in srgb, #FFFFFF 14%, transparent);

  --display: "Fraunces", Georgia, serif;
  --body: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1180px;
  --gutter: clamp(1.4rem, 4vw, 3.5rem);
  --r: 22px;
  --r-lg: 34px;
  --r-xl: 48px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; font-family: var(--body);
  color: var(--texte-clair);
  background: var(--nuit);
  line-height: 1.62; font-size: 1.05rem;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  position: relative;
}

/* Halos d'aura globaux qui flottent en fond */
body::before, body::after {
  content: ""; position: fixed; z-index: 0; pointer-events: none;
  border-radius: 50%; filter: blur(90px); opacity: .4;
}
body::before { width: 55vw; height: 55vw; top: -15vw; right: -10vw;
  background: radial-gradient(circle, var(--corail), transparent 66%); opacity:.4; }
body::after { width: 50vw; height: 50vw; bottom: -12vw; left: -12vw;
  background: radial-gradient(circle, var(--lagon), transparent 66%); opacity: .28; }

img { max-width: 100%; display: block; }
a { color: var(--lagon-cl); text-decoration: none; }
a:hover { color: var(--corail-cl); }

h1,h2,h3,h4 { font-family: var(--display); color: var(--creme); line-height: 1.05; font-weight: 500; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1.1rem; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
.section { padding-block: clamp(4rem, 9vw, 7rem); position: relative; z-index: 1; }

/* eyebrow pill */
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--lagon-cl); padding: .4rem .9rem; border: 1px solid var(--glass-br); border-radius: 999px; background: var(--glass); backdrop-filter: blur(8px); margin-bottom: 1.4rem; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--corail); box-shadow: 0 0 10px var(--corail); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--nuit) 72%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid var(--glass-br); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.brand { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--creme); display: flex; align-items: center; gap: .55rem; }
.brand:hover { color: var(--creme); }
.brand .mark { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--corail), var(--lagon)); box-shadow: 0 0 14px color-mix(in srgb, var(--corail) 60%, transparent); }
.nav-links { display: flex; gap: 1.7rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--texte-mid); font-size: .93rem; font-weight: 500; }
.nav-links a:hover { color: var(--creme); }
.nav-links a[aria-current="page"] { color: var(--lagon-cl); }
.nav-cta { color: var(--nuit) !important; background: var(--lagon); padding: .55rem 1.25rem; border-radius: 999px; font-weight: 600; font-size: .88rem; box-shadow: 0 4px 18px color-mix(in srgb, var(--lagon) 45%, transparent); }
.nav-cta:hover { background: var(--lagon-cl); color: var(--nuit) !important; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; color: var(--creme); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .95rem 1.8rem; border-radius: 999px; font-weight: 600; font-size: 1rem; cursor: pointer; border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s; font-family: var(--body); }
.btn:hover { transform: translateY(-2px); }
.btn--coral { background: var(--corail); color: #fff; box-shadow: 0 8px 26px color-mix(in srgb, var(--corail) 50%, transparent); }
.btn--coral:hover { background: var(--corail-cl); box-shadow: 0 12px 34px color-mix(in srgb, var(--corail) 60%, transparent); color:#fff; }
.btn--lagon { background: var(--lagon); color: var(--nuit); box-shadow: 0 8px 26px color-mix(in srgb, var(--lagon) 45%, transparent); }
.btn--lagon:hover { background: var(--lagon-cl); color: var(--nuit); }
.btn--glass { background: var(--glass); border-color: var(--glass-br); color: var(--creme); backdrop-filter: blur(8px); }
.btn--glass:hover { background: color-mix(in srgb,#fff 12%,transparent); color: var(--creme); }

/* ============================================================
   HERO immersif — aura + onde animée
   ============================================================ */
.hero { padding-block: clamp(4rem, 10vw, 8rem) clamp(3rem,7vw,5rem); text-align: center; position: relative; }
.hero__inner { max-width: 860px; margin-inline: auto; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(3rem, 8.5vw, 6.6rem); line-height: .98; letter-spacing: -0.03em; }
.hero h1 .glow { background: linear-gradient(100deg, var(--corail-cl), var(--ambre)); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }
.hero .lead { font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--texte-mid); max-width: 34rem; margin: 1.8rem auto 0; }
.hero__actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }
/* onde animée sous le hero */
.hero__wave { margin-top: clamp(2.5rem,6vw,4.5rem); width: 100%; height: 90px; overflow: hidden; display: block; }
.hero__wave path { fill: none; stroke-width: 2; stroke-linecap: round; transform-origin: 50% 50%; transform-box: fill-box; }
.hero__wave .w1 { stroke: var(--corail); opacity: .9; animation: wave1 4.5s ease-in-out infinite; }
.hero__wave .w2 { stroke: var(--lagon); opacity: .8; animation: wave2 6s ease-in-out infinite; }
.hero__wave .w3 { stroke: var(--ambre); opacity: .5; animation: wave1 7.5s ease-in-out infinite reverse; }
@keyframes wave1 { 0%,100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-16px) scaleY(1.45); } }
@keyframes wave2 { 0%,100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(18px) scaleY(.62); } }

/* floating orbs décoratifs */
.orb { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; z-index: 1; opacity: .8; animation: float 12s ease-in-out infinite; }
.orb--1 { width: 120px; height: 120px; background: radial-gradient(circle at 35% 30%, var(--corail-cl), var(--corail)); top: 8%; left: 6%; }
.orb--2 { width: 80px; height: 80px; background: radial-gradient(circle at 35% 30%, var(--lagon-cl), var(--lagon)); top: 20%; right: 9%; animation-delay: -3s; }
.orb--3 { width: 54px; height: 54px; background: radial-gradient(circle at 35% 30%, var(--ambre), var(--corail)); bottom: 12%; left: 14%; animation-delay: -6s; }
@keyframes float { 0%,100% { transform: translateY(0) translateX(0); } 33% { transform: translateY(-22px) translateX(12px); } 66% { transform: translateY(14px) translateX(-10px); } }

/* ============================================================
   Cartes glass + arrondis généreux
   ============================================================ */
.grid { display: grid; gap: 1.6rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.section-head { text-align: center; max-width: 46rem; margin: 0 auto clamp(2.5rem,5vw,3.5rem); }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.section-head p { color: var(--texte-mid); margin-top: .8rem; }

.card { background: var(--glass); border: 1px solid var(--glass-br); border-radius: var(--r-lg); padding: 2.2rem; backdrop-filter: blur(12px); transition: transform .2s ease, border-color .2s ease, box-shadow .2s; position: relative; overflow: hidden; isolation: isolate; will-change: transform; transform: translateZ(0); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--lagon) 50%, transparent); box-shadow: 0 20px 50px color-mix(in srgb, var(--nuit) 60%, transparent); }
.card__glow { position: absolute; width: 130px; height: 130px; border-radius: 50%; filter: blur(34px); top: -30px; right: -30px; opacity: .5; }
.card h3 { font-size: 1.6rem; margin-bottom: .5rem; position: relative; }
.card p { color: var(--texte-mid); position: relative; }
.card .icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.2rem; position: relative; }
.card a.more { color: var(--lagon-cl); font-weight: 600; font-size: .95rem; display: inline-flex; gap: .4rem; margin-top: .4rem; }
.card > .btn { margin-top: auto; align-self: flex-start; }
.card .disclaimer { margin-bottom: 1rem; }
.card a.more:hover { color: var(--corail-cl); gap: .7rem; }

/* Split organique */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.split--flip .split__media { order: 2; }
.blob-media { position: relative; aspect-ratio: 1/1; display: grid; place-items: center; }
.blob-media .blob { position: absolute; inset: 0; background: linear-gradient(135deg, var(--corail), var(--lagon)); border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; animation: morph 14s ease-in-out infinite; opacity: .9; }
.blob-media .blob-inner { position: relative; z-index: 1; color: #fff; font-weight: 600; text-align: center; padding: 2rem; font-size: .9rem; opacity: .85; }
.blob-media img.blob-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; animation: morph 14s ease-in-out infinite; }
@keyframes morph { 0%,100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; } 50% { border-radius: 58% 42% 37% 63% / 56% 59% 41% 44%; } }
.split__text h2 { font-size: clamp(1.9rem,4vw,3rem); margin-bottom: 1.1rem; }
.split__text p { color: var(--texte-mid); }

/* Bandeau offert : capsule lumineuse */
.beacon { border-radius: var(--r-xl); padding: clamp(2.5rem,6vw,4.5rem); text-align: center; position: relative; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb,var(--corail) 22%, var(--nuit-2)), color-mix(in srgb,var(--lagon) 20%, var(--nuit-2))); border: 1px solid var(--glass-br); }
.beacon::before { content:""; position:absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, var(--ambre), transparent 65%); top: -80px; left: 50%; transform: translateX(-50%); opacity: .4; filter: blur(40px); }
.beacon > * { position: relative; z-index: 1; }
.beacon ul.prose { text-align: left; display: inline-block; margin: 0 auto 1.8rem; max-width: 34rem; padding-left: 1.2rem; }
.beacon ul.prose li { margin-bottom: .55rem; }
.beacon h2 { font-size: clamp(2rem,5vw,3.2rem); margin-bottom: .9rem; }
.beacon p { color: color-mix(in srgb, var(--creme) 88%, transparent); max-width: 40rem; margin: 0 auto 1.8rem; }

/* Témoignages : bulles */
.voice { background: var(--glass); border: 1px solid var(--glass-br); border-radius: var(--r-lg); padding: 2rem; backdrop-filter: blur(12px); position: relative; }
.voice::before { content: "\201C"; font-family: var(--display); font-size: 3rem; line-height: 0; color: var(--corail); position: absolute; top: 1.9rem; left: 1.6rem; opacity: .35; }
.voice blockquote { margin: 0; padding-top: 1.3rem; font-family: var(--body); font-style: normal; font-size: 1.02rem; line-height: 1.65; color: color-mix(in srgb, var(--creme) 90%, transparent); }
.voice cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 600; font-size: .88rem; color: var(--lagon-cl); }

/* Contact */
.contact__card { background: var(--glass); border: 1px solid var(--glass-br); border-radius: var(--r-lg); padding: 2.2rem; backdrop-filter: blur(12px); }
.infoline { list-style: none; padding: 0; margin: 0; }
.infoline li { display: flex; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--glass-br); }
.infoline li:last-child { border-bottom: 0; }
.infoline .k { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--texte-mid); min-width: 92px; }
.infoline a, .infoline span { color: var(--creme); }

/* prose */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.7rem,3vw,2.4rem); margin: 2.6rem 0 1rem; }
.prose h3 { font-size: 1.35rem; margin: 2rem 0 .6rem; color: var(--lagon-cl); }
.prose p { color: var(--texte-mid); }
.prose ul { padding-left: 1.1rem; color: var(--texte-mid); }
.prose li { margin-bottom: .4rem; }
.prose .note { font-size: .92rem; color: var(--texte-mid); border-left: 2px solid var(--corail); padding-left: 1rem; margin: 1.4rem 0; font-style: italic; }
.price { font-family: var(--display); font-size: 1.7rem; color: var(--corail-cl); }
.disclaimer { font-size: .82rem; color: var(--texte-mid); font-style: italic; margin-top: .5rem; }
.toc { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.toc a { padding: .45rem 1.05rem; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-br); font-size: .88rem; color: var(--texte-clair); font-weight: 500; }
.toc a:hover { background: var(--lagon); color: var(--nuit); border-color: var(--lagon); }

/* Partenaires */
.partner { background: var(--glass); border: 1px solid var(--glass-br); border-radius: var(--r-lg); padding: 2rem; backdrop-filter: blur(12px); }
.partner .role { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--corail-cl); font-weight: 700; margin-bottom: .6rem; }
.partner h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.partner p, .partner ul { color: var(--texte-mid); }
.partner ul { padding-left: 1.1rem; margin: .6rem 0; }

/* Footer */
.site-footer { background: var(--nuit-2); border-top: 1px solid var(--glass-br); padding-block: clamp(3rem,6vw,4rem); position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; align-items: start; }
.footer-brand { font-family: var(--display); font-size: 1.5rem; font-weight: 500; color: var(--creme); margin-bottom: .8rem; display:flex; align-items:center; gap:.5rem; line-height:1.2; }
.footer-brand .mark { width: 18px; height:18px; border-radius:50%; background: radial-gradient(circle at 35% 30%, var(--corail), var(--lagon)); }
.site-footer p { color: var(--texte-mid); font-size: .93rem; line-height: 1.6; margin: 0; max-width: 44ch; }
.site-footer h4 { color: var(--creme); font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 1rem; font-family: var(--body); font-weight: 700; line-height: 1.4; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; font-size: .93rem; line-height: 1.5; }
.site-footer a { color: var(--texte-mid); font-size: inherit; }
.site-footer li span { color: var(--texte-mid); font-size: inherit; }
.site-footer a:hover { color: var(--lagon-cl); }
.footer-bottom { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--glass-br); font-size: .82rem; line-height: 1.4; color: var(--texte-mid); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem 2rem; }
.footer-bottom span, .footer-bottom a { font-size: .82rem; color: var(--texte-mid); }
.footer-bottom a:hover { color: var(--lagon-cl); }

/* Responsive */
@media (max-width: 880px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: flex-start; background: var(--nuit-2); padding: 1.3rem var(--gutter); gap: 1.1rem; display: none; border-bottom: 1px solid var(--glass-br); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .orb--1 { width: 70px; height: 70px; top: 6%; left: 4%; }
  .orb--2 { width: 50px; height: 50px; top: 16%; right: 6%; }
  .orb--3 { width: 36px; height: 36px; bottom: 14%; left: 10%; }
  /* Blobs bornés sur mobile : sinon ils occupent tout l'écran */
  .blob-media { max-width: 280px; margin-inline: auto; }
  .blob-media .blob-inner { font-size: .82rem; padding: 1.2rem; }
  /* Le texte passe toujours avant le visuel sur mobile */
  .split__text { order: 0; }
  .split__media { order: 1; }
  .split--flip .split__text { order: 0; }
  .split--flip .split__media { order: 1; }
}
:focus-visible { outline: 2px solid var(--lagon); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, body::before, body::after { animation: none !important; transition: none !important; } }


/* ---------- Transition douce entre pages ---------- */
@view-transition { navigation: auto; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
main, .site-header, .site-footer, .hero, .section { }
body { animation: pageIn .5s ease both; }
@media (prefers-reduced-motion: reduce) { body { animation: none !important; } }


/* ============================================================
   FIX hero pages internes : recentré, cohérent avec la home
   (neutralise les overrides inline text-align:left / margin-inline:0)
   ============================================================ */
.hero[style] { text-align: center !important; }
.hero[style] .hero__inner { margin-inline: auto !important; }
.hero[style] .lead { margin-inline: auto !important; }
.hero .toc { justify-content: center; }

/* ============================================================
   BARRE DE PROGRESSION verticale (formations.html)
   ============================================================ */


/* ============================================================
   FIL NARRATIF : chapitre suivant en bas de page
   ============================================================ */
.next-chapter { border: 0; padding: 0; }
.next-chapter a { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; text-decoration: none; padding: clamp(1.8rem,4vw,2.8rem) clamp(1.8rem,4vw,3rem); border-radius: var(--r-lg); background: linear-gradient(120deg, color-mix(in srgb,var(--lagon) 14%, var(--nuit-2)), color-mix(in srgb,var(--corail) 12%, var(--nuit-2))); border: 1px solid var(--glass-br); transition: transform .2s ease, border-color .2s, box-shadow .2s; }
.next-chapter a:hover { transform: translateY(-3px); border-color: color-mix(in srgb,var(--lagon) 55%,transparent); box-shadow: 0 18px 44px color-mix(in srgb,var(--nuit) 55%,transparent); }
.next-chapter .meta { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lagon-cl); display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; font-weight: 600; }
.next-chapter .meta::before { content: ""; width: 22px; height: 1px; background: var(--lagon-cl); display: inline-block; }
.next-chapter h3 { font-size: clamp(1.7rem,4vw,2.8rem); color: var(--creme); transition: color .2s; margin: 0; }
.next-chapter a:hover h3 { color: var(--lagon-cl); }
.next-chapter .cta-round { flex-shrink: 0; width: clamp(52px,7vw,68px); height: clamp(52px,7vw,68px); border-radius: 50%; background: var(--lagon); color: var(--nuit); display: grid; place-items: center; font-size: 1.6rem; transition: transform .2s, background .2s; box-shadow: 0 6px 20px color-mix(in srgb,var(--lagon) 45%,transparent); }
.next-chapter a:hover .cta-round { transform: translateX(8px) scale(1.05); }
.next-chapter--final a { background: linear-gradient(120deg, color-mix(in srgb,var(--corail) 20%, var(--nuit-2)), color-mix(in srgb,var(--ambre) 12%, var(--nuit-2))); }
.next-chapter--final .meta { color: var(--corail-cl); }
.next-chapter--final .meta::before { background: var(--corail-cl); }
.next-chapter--final a:hover h3 { color: var(--corail-cl); }
.next-chapter--final .cta-round { background: var(--corail); color: #fff; box-shadow: 0 6px 20px color-mix(in srgb,var(--corail) 50%,transparent); }

/* Fil d'ariane du parcours (mini progression 5 chapitres) */
.journey-crumb { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.4rem; font-size: .74rem; color: var(--texte-mid); letter-spacing: .04em; }
.journey-crumb .beads { display: flex; gap: .5rem; }
.journey-crumb .crumb-label { font-size: .74rem; color: var(--texte-mid); letter-spacing: .04em; }
.journey-crumb .bead { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--glass-br); display: grid; place-items: center; font-size: .68rem; font-weight: 700; color: var(--texte-mid); text-decoration: none; transition: transform .18s ease, background .2s, color .2s, box-shadow .2s; }
.journey-crumb .bead:hover { transform: scale(1.35); background: var(--lagon-cl); color: var(--nuit); text-decoration: none; box-shadow: 0 0 14px color-mix(in srgb,var(--lagon) 55%,transparent); z-index: 2; }
.journey-crumb .bead.done { background: var(--lagon); color: var(--nuit); }
.journey-crumb .bead.here { background: var(--corail); color: #fff; box-shadow: 0 0 10px color-mix(in srgb,var(--corail) 60%,transparent); }
.journey-crumb .bead .tip { position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%); background: var(--nuit); border: 1px solid var(--glass-br); color: var(--creme); padding: .25rem .55rem; border-radius: 6px; font-size: .68rem; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .18s; }
.journey-crumb .bead:hover .tip { opacity: 1; }


/* ============================================================
   BARRE DE PROGRESSION des niveaux (ancrée dans la page)
   Longe physiquement niveau-1 -> niveau-3, se remplit au scroll.
   ============================================================ */
.levels-track { position: relative; }
.levels-bar { position: absolute; left: clamp(1rem, 2.5vw, 2.6rem); top: 0; bottom: 0; width: 4px; z-index: 5; }
.levels-bar::before { content: ""; position: absolute; inset: 0; background: var(--glass-br); border-radius: 4px; }
.levels-bar__fill { position: absolute; top: 0; left: 0; width: 100%; height: 0%; background: linear-gradient(to bottom, var(--corail), var(--ambre) 50%, var(--lagon)); border-radius: 4px; box-shadow: 0 0 16px color-mix(in srgb,var(--lagon) 45%,transparent); transition: height .1s linear; }
.levels-bar__dot { position: absolute; left: 50%; transform: translate(-50%,-50%); width: 15px; height: 15px; border-radius: 50%; background: var(--nuit); border: 2px solid var(--glass-br); transition: background .25s, border-color .25s, box-shadow .25s, transform .25s; }
.levels-bar__dot.on { background: var(--lagon); border-color: var(--lagon); box-shadow: 0 0 16px color-mix(in srgb,var(--lagon) 70%,transparent); }
.levels-bar__dot.current { background: var(--corail); border-color: var(--corail); box-shadow: 0 0 20px color-mix(in srgb,var(--corail) 80%,transparent); transform: translate(-50%,-50%) scale(1.3); }
.levels-bar__dot .lbl { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: .78rem; letter-spacing: .03em; color: var(--texte-mid); opacity: .55; transition: opacity .25s, color .25s; pointer-events: none; }
.levels-bar__dot.on .lbl { color: var(--creme); opacity: 1; }
@media (max-width: 1200px) { .levels-bar { display: none; } }


/* ============================================================
   PROGRESSION DU PARCOURS sous le menu (desktop only)
   Se remplit selon le chapitre courant : 1/5 ... 5/5
   ============================================================ */
.nav-progress { position: relative; height: 3px; background: color-mix(in srgb,#fff 8%,transparent); }
.nav-progress__fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--corail), var(--ambre) 55%, var(--lagon)); border-radius: 0 3px 3px 0; box-shadow: 0 0 12px color-mix(in srgb,var(--lagon) 55%,transparent); transition: width 1.1s cubic-bezier(.22,.61,.36,1); }
.nav-progress__label { position: absolute; right: max(var(--gutter), 1rem); top: 6px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-mid); opacity: .8; }
@media (max-width: 900px) { .nav-progress { display: none; } }
@media (prefers-reduced-motion: reduce) { .nav-progress__fill { transition: none; } }


/* ============================================================
   MOBILE : progression des niveaux en barre horizontale
   collée sous le header sticky (la verticale n'a pas la place)
   ============================================================ */
.levels-mobile { display: none; }
@media (max-width: 1200px) {
  /* Barre fixée SOUS le header, toujours visible dans la zone des niveaux.
     Sortie de .levels-track pour ne pas dépendre de son défilement. */
  .levels-mobile {
    display: block; position: fixed; left: 0; right: 0; top: var(--header-h, 62px); z-index: 45;
    background: color-mix(in srgb, var(--nuit) 94%, transparent);
    backdrop-filter: blur(14px);
    padding: .55rem var(--gutter) .6rem;
    border-bottom: 1px solid var(--glass-br);
    transform: translateY(-120%); opacity: 0;
    transition: transform .28s ease, opacity .28s ease;
    pointer-events: none;
  }
  .levels-mobile.show { transform: translateY(0); opacity: 1; }
  .levels-mobile__row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .4rem; }
  .levels-mobile__label { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-mid); white-space: nowrap; }
  .levels-mobile__step { font-size: .74rem; font-weight: 700; color: var(--lagon-cl); white-space: nowrap; }
  .levels-mobile__bar { position: relative; height: 3px; background: var(--glass-br); border-radius: 3px; overflow: hidden; }
  .levels-mobile__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--corail), var(--ambre) 55%, var(--lagon)); border-radius: 3px; transition: width .1s linear; }
}

@media (prefers-reduced-motion: reduce) { .levels-mobile { transition: none; } }


/* ============================================================
   Lecteur vidéo intégré (index)
   ============================================================ */
.video-frame { position: relative; width: 100%; max-width: 900px; margin: 0 auto; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--glass-br); background: var(--nuit-2); box-shadow: 0 24px 60px color-mix(in srgb,var(--nuit) 60%,transparent); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note { text-align: center; margin-top: 1rem; font-size: .85rem; color: var(--texte-mid); font-style: italic; }


/* ============================================================
   ANTI-DÉBORDEMENT HORIZONTAL
   En grid/flex, les enfants ont min-width:auto par défaut :
   ils refusent de descendre sous la largeur de leur contenu,
   ce qui pousse la page hors de l'écran sur petits mobiles.
   ============================================================ */
.split, .grid, .grid12, .footer-grid { min-width: 0; }
.split > *, .grid > *, .footer-grid > *,
.split__text, .split__media, .card, .voice, .partner, .contact__card { min-width: 0; }

/* Les mots longs (emails, URLs) ne doivent pas élargir la page */
.prose, .split__text, .card, .voice, .partner, .infoline, .site-footer { overflow-wrap: break-word; }
.infoline a, .site-footer a { overflow-wrap: anywhere; }

/* Filet de sécurité : uniquement sur body, jamais sur html
   (overflow-x sur html casse les calculs de position au scroll) */
body { max-width: 100%; overflow-x: clip; }


/* ============================================================
   Couverture de livre : image ENTIÈRE (jamais recadrée)
   ============================================================ */
.book-cover { display: grid; place-items: center; padding: 1rem; }
.book-cover img { width: 100%; max-width: 340px; height: auto; border-radius: 10px; box-shadow: 0 30px 60px -12px color-mix(in srgb, var(--nuit) 75%, transparent), 0 0 0 1px var(--glass-br); transform: perspective(1000px) rotateY(-6deg); transition: transform .4s ease; }
.book-cover img:hover { transform: perspective(1000px) rotateY(0deg) translateY(-6px); }
@media (max-width: 880px) { .book-cover img { max-width: 240px; } }


/* Boutons Commander alignés en bas des cartes produit */
#boutique .card { display: flex; flex-direction: column; }
#boutique .card .btn { margin-top: auto; align-self: flex-start; }
#boutique .card .disclaimer { margin-bottom: 1rem; }
