@font-face{font-family:"Open Sans";font-weight:400;font-style:normal;font-display:swap;src:url(../assets/fonts/open-sans-latin-400-normal.woff2) format("woff2");}
@font-face{font-family:"Open Sans";font-weight:600;font-style:normal;font-display:swap;src:url(../assets/fonts/open-sans-latin-600-normal.woff2) format("woff2");}
@font-face{font-family:"Open Sans";font-weight:700;font-style:normal;font-display:swap;src:url(../assets/fonts/open-sans-latin-700-normal.woff2) format("woff2");}
/* « hidden » cache toujours, même si une règle donne un display (ex. .inclusions li, .apercu) */
[hidden] { display: none !important; }
/* Cerveau d'acier — PALETTE « ÉNERGIE BLEUE » (02/12/2026), tirée de la vidéo du propriétaire
   (studio éclairé bleu électrique, t-shirt marine, liserés orange, néon corail). Détail et règles d'usage :
   CHARTE-VISUELLE.html à la racine du projet. Changer les couleurs UNIQUEMENT ici. */
:root {
  --nuit: #060b1f;           /* fond le plus sombre (60 % des surfaces sombres) */
  --marine: #0d1b45;         /* marine du t-shirt : cartes sombres, dégradés */
  --bleu: #1d6fe8;           /* bleu électrique du studio : couleur principale */
  --bleu-neon: #43b0ff;      /* lueurs, liens sur fond sombre, progression */
  --orange: #ff5a1f;         /* orange énergie des liserés : 10 % max, l'action et la réussite */
  --orange-fonce: #d9430f;   /* orange pour fond de bouton avec texte blanc (contraste) */
  --corail: #ff4f6d;         /* néon corail : touche rare (badge, détail) */
  --glace: #eef4ff;          /* blanc froid : fonds clairs */
  --brand: var(--bleu);      /* couleur principale (boutons, LESSONS) */
  --brand-dark: #1557bd;
  --accent: var(--orange);   /* coches terminées, progression, réussite */
  --module-bg: #070c1d;      /* barres de modules (noir bleuté) */
  --module-fg: #ffffff;
  --bg: #f2f4f7;
  --card: #ffffff;
  --text: #15181d;
  --muted: #5f6b7a;
  --line: #dfe3e8;
  --check: #8a93a0;          /* coche grise */
  --radius: 10px;
  --sidebar-w: 340px;
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; }
a { color: var(--brand); }
img, iframe { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.pad { padding: 24px; }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }

/* ---------- boutons ---------- */
.btn { display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 700; padding: 13px 20px;
  border-radius: 8px; text-decoration: none; text-align: center; background: var(--brand); color: #fff; min-height: 44px; }
.btn:hover { background: var(--brand-dark); }
.btn.primary { background: var(--brand); }
.btn.ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { background: #eef1f5; }
.btn.paypal { background: #ffc439; color: #111; }
.btn.paypal:hover { background: #f0b52a; }
.btn.block { display: block; width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- en-tête privée (blanc, centré) ---------- */
.topbar { background: #fff; border-bottom: 1px solid #d9d9d9; padding: 14px 16px 10px; text-align: center; }
.brand { display: block; font-weight: 800; letter-spacing: .02em; text-decoration: none; color: var(--text); font-size: 1.15rem; }
.top-title { margin: 4px 0 8px; font-size: 1.25rem; font-weight: 700; }
.who { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1500px; margin: 0 auto; }
.who-email { font-weight: 700; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-logout { font-size: .9rem; font-weight: 700; text-decoration: none; color: var(--text); white-space: nowrap; }
.btn-logout:hover { text-decoration: underline; }

/* ---------- fond photo + panneau teinté ---------- */
body.member { font-family: "Open Sans", var(--font); background: #20262e; }
.bg-photo { position: fixed; inset: 0; z-index: -1; background: var(--bg-photo, linear-gradient(160deg, #3a4452 0%, #1b2027 55%, #2c3540 100%)) center / cover no-repeat; }
.panel { margin: 12px 8px 24px; padding: 12px; border-radius: 14px; background: rgba(20, 24, 30, .38); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }

/* ---------- bouton LESSONS (mobile) ---------- */
.btn-lessons { display: block; width: 100%; background: #5a6b8c; color: #fff; border: 0; border-bottom: 3px solid #44536f; font: inherit; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; padding: 14px; border-radius: 6px; cursor: pointer; min-height: 48px; margin-bottom: 14px; }
.btn-lessons:hover { background: #4f5f7e; }

/* ---------- mise en page : liste puis contenu (mobile) / 2 colonnes (ordinateur) ---------- */
.layout { display: block; }
.sidebar { display: none; }
body.nav-open .sidebar { display: block; }
.content { margin-top: 14px; }

@media (min-width: 900px) {
  .panel { max-width: 1500px; margin: 28px auto 40px; padding: 28px; }
  .btn-lessons { display: none; }
  .layout { display: grid; grid-template-columns: 31% 1fr; gap: 35px; align-items: start; }
  .sidebar, body.nav-open .sidebar { display: block; }
  .content { margin-top: 0; }
}

/* ---------- liste des modules ---------- */
.module { margin-bottom: 20px; }
.module-bar { width: 100%; display: flex; align-items: center; gap: 10px; background: var(--module-bg); color: var(--module-fg); border: 0; border-bottom: 3px solid #2b2b2d;
  border-radius: 6px; box-shadow: 0 2px 4px rgba(0, 0, 0, .35); cursor: pointer; font: inherit; font-weight: 700; text-align: left; padding: 14px 16px 14px 28px; min-height: 52px; }
.module.open .module-bar { border-radius: 6px 6px 0 0; }
.m-title { flex: 1; font-size: 1.02rem; line-height: 1.3; }
.m-chevron { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 7px solid currentColor; flex: none; }
.module.open .m-chevron { border-top: 0; border-bottom: 7px solid currentColor; }
.lessons { list-style: none; margin: 0; padding: 0; display: none; background: #fff; border-radius: 0 0 6px 6px; box-shadow: 0 2px 4px rgba(0, 0, 0, .3); overflow: hidden; }
.module.open .lessons { display: block; }
.module.plan .lessons li:only-child { border: 0; }
.lesson { display: flex; align-items: center; gap: 8px; padding: 12px 14px 12px 28px; text-decoration: none; color: #666; font-size: 1.04rem; font-weight: 400;
  border-top: 1px solid #e2e2e2; min-height: 54px; }
.lessons li:first-child .lesson { border-top: 0; }
.lesson:hover { background: #f7f7f7; }
.lesson.current { background: #f7f7f7; box-shadow: inset 4px 0 0 #cfcfcf; }
.l-text { flex: 1; min-width: 0; }
.l-check { color: #5b6270; font-weight: 700; margin-left: 4px; visibility: hidden; }
.lesson.is-done .l-check { visibility: visible; }
.l-arrow { color: #c6c6c6; font-size: 1.5rem; flex: none; margin-left: auto; }
.search { width: 100%; padding: 12px 14px; border: 1px solid #cfcfcf; border-radius: 6px; font: inherit; background: #fff; min-height: 46px; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.module.filtered-out, .lesson-li.filtered-out { display: none; }

/* ---------- carte de contenu blanche ---------- */
.card { background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); overflow: hidden; padding-bottom: 28px; }
.card-head { background: #f7f7f7; border-bottom: 1px solid #e5e5e5; padding: 20px 24px; }
.card-title { margin: 0; font-size: 1.6rem; font-weight: 600; line-height: 1.2; color: #222; }
.card-module { margin: 6px 0 0; text-transform: uppercase; color: #8a8a8a; font-size: .85rem; }
.card-body { padding: 24px 24px 0; }
@media (min-width: 900px) {
  .card-title { font-size: 1.9rem; }
  .card-body { padding: 40px 6.5% 0; }
}

/* ---------- tableau de bord ---------- */
.page-title { margin: 8px 0 16px; font-size: 1.7rem; }
.sub-title { margin: 28px 0 12px; font-size: 1.2rem; }
.progress-card { display: flex; gap: 20px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; flex-wrap: wrap; }
.big-pct { font-size: 3rem; font-weight: 900; color: var(--brand); min-width: 130px; }
.progress-body { flex: 1; min-width: 220px; display: grid; gap: 10px; }
.bar { height: 10px; background: #e3e7ec; border-radius: 99px; overflow: hidden; }
.bar.big { height: 16px; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.congrats { font-weight: 800; color: var(--accent); margin: 0; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.mod-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; }
.mod-card h3 { margin: 0; font-size: 1.02rem; }
.mod-card p { margin: 0; }
.link { font-weight: 700; text-decoration: none; }

/* ---------- page de leçon ---------- */
.hero-img { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius); background: #cfd6df; }
.hero-img.placeholder { display: grid; place-content: center; text-align: center; gap: 4px; color: #fff;
  background: linear-gradient(135deg, #1c2733, #3b5169 60%, #2f5d8a); }
.hero-img.placeholder span { font-weight: 900; letter-spacing: .12em; text-transform: uppercase; font-size: 1.3rem; }
.hero-img.placeholder small { opacity: .75; }
.help-banner { margin: 12px 0; background: #fff6d6; border: 1px solid #ecd98a; border-radius: 8px; padding: 12px 14px; font-size: .92rem; }
.crumb { color: var(--muted); font-size: .85rem; margin: 18px 0 4px; }
.lesson-title { margin: 0 0 16px; font-size: 1.9rem; line-height: 1.2; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.soon { display: grid; place-items: center; text-align: center; color: #fff; background: linear-gradient(135deg, #141a21, #2a3a4c); padding: 16px; }
.video.soon b { display: block; font-size: 1.3rem; margin-bottom: 4px; }
.video.soon span { opacity: .75; }
.actions { display: flex; align-items: center; gap: 14px; margin: 18px 0; flex-wrap: wrap; }
.done-btn { background: var(--brand); }
.done-btn.is-done { background: var(--accent); }
.save-msg { color: var(--muted); font-size: .9rem; }
.prevnext { display: flex; justify-content: space-between; gap: 10px; margin: 8px 0 24px; }
.prevnext .btn { flex: 0 1 auto; }
.topics-card { background: var(--card); border: 2px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; }
.topics-card h2 { margin: 0 0 8px; font-size: 1.05rem; }
.topics-card ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.topics-card li.now a { font-weight: 800; color: var(--text); text-decoration: none; }
.topics-card li.ok::marker { color: var(--check); }

/* ---------- pages publiques (vente, connexion) ---------- */
.pub-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; max-width: 1040px; margin: 0 auto; }
.pub-top .brand { font-size: 1.1rem; }
.pub-top a.login { font-weight: 700; text-decoration: none; }
.hero { background: linear-gradient(135deg, #12181f, #25384c 60%, #2f5d8a); color: #fff; padding: 48px 20px 56px; text-align: center; }
.hero h1 { margin: 0 auto 12px; max-width: 760px; font-size: clamp(1.9rem, 6vw, 3rem); line-height: 1.12; }
.hero p { margin: 0 auto 22px; max-width: 640px; font-size: 1.1rem; opacity: .92; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 28px 20px; }
.section-title { font-size: 1.5rem; margin: 0 0 14px; }
.included { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.included li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 14px 44px; position: relative; font-weight: 600; }
.included li::before { content: "✓"; position: absolute; left: 14px; top: 13px; color: var(--accent); font-weight: 900; }
.curr .module { margin-bottom: 8px; }
.curr .lesson { cursor: default; }
.curr .l-arrow, .curr .l-check { display: none; }
.buybox { background: #fff; border: 2px solid var(--brand); border-radius: 14px; padding: 24px; max-width: 520px; margin: 0 auto; text-align: center; box-shadow: 0 10px 30px rgba(20, 40, 70, .12); }
.price { font-size: 3rem; font-weight: 900; margin: 4px 0; }
.buybox ul { text-align: left; margin: 14px 0 18px; padding-left: 20px; }
.buybox .btn { margin-top: 10px; }
.alert { padding: 12px 14px; border-radius: 8px; margin: 0 0 14px; font-size: .95rem; }
.alert.err { background: #fde8e8; border: 1px solid #f3b7b7; color: #7a1717; }
.alert.ok { background: #e6f5ec; border: 1px solid #aedcbd; color: #1a5a33; }
.alert.info { background: #e8f0fa; border: 1px solid #b7cdea; color: #1d3f6b; }
footer.pub { padding: 24px 20px 40px; text-align: center; color: var(--muted); font-size: .82rem; max-width: 760px; margin: 0 auto; }

/* ---------- formulaires ---------- */
.card-form { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; max-width: 420px; margin: 28px auto; }
.card-form h1 { margin: 0 0 14px; font-size: 1.5rem; }
.card-form label { display: block; font-weight: 700; margin: 12px 0 4px; font-size: .92rem; }
.card-form input { width: 100%; padding: 12px; border: 1px solid #c6ccd4; border-radius: 8px; font: inherit; min-height: 46px; }
.card-form .btn { margin-top: 16px; width: 100%; }
.card-form .alt { margin-top: 14px; text-align: center; font-size: .92rem; }
.center { text-align: center; }
.spinner { width: 34px; height: 34px; border: 4px solid #d4dae2; border-top-color: var(--brand); border-radius: 50%; margin: 12px auto; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
