/* ============ Jetons de design ============ */
:root {
  --night: #13233a;
  --night-2: #1c3352;
  --ink: #1d2433;
  --muted: #5f6878;
  --line: #e7e1d6;
  --cream: #fbf7f0;
  --sand: #f4ecdf;
  --white: #ffffff;
  --coral: #e4572e;
  --coral-dark: #c4431e;
  --gold: #f2b134;
  --lagoon: #17807b;
  --lagoon-soft: #e3f3f1;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --ok: #18794e;
  --ok-soft: #e6f4ec;
  --info-soft: #eaf1fb;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(19, 35, 58, .06), 0 8px 24px rgba(19, 35, 58, .08);
  --shadow-lg: 0 20px 50px rgba(19, 35, 58, .18);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--coral-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; color: var(--night); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.icon { flex: none; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
.inline { display: inline; margin: 0; }
.hidden { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--night); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.page-pad { padding-top: 56px; padding-bottom: 80px; }
.section { padding: 88px 0; }
.section-alt { background: var(--sand); }
.section-dark { background: var(--night); color: #dbe3ee; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.kicker { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--lagoon); margin-bottom: 12px; }
.section-dark .kicker { color: var(--gold); }

/* ============ Boutons ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .98rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 6px 18px rgba(228, 87, 46, .32); }
.btn-primary:hover { background: var(--coral-dark); }
.btn-dark { background: var(--night); color: #fff; }
.btn-ghost { border-color: var(--night); color: var(--night); background: transparent; }
.btn-ghost:hover { background: var(--night); color: #fff; }
.btn-light { background: #fff; color: var(--night); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.link-btn:hover { color: var(--ink); text-decoration: underline; }

/* ============ Bandeaux ============ */
.demo-bar { background: var(--gold); color: var(--night); text-align: center; font-size: .85rem; font-weight: 600; padding: 7px 16px; }
.announce { background: var(--lagoon); color: #fff; text-align: center; font-size: .9rem; padding: 8px 16px; }

/* ============ En-tête ============ */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251, 247, 240, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--night); min-width: 0; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; background: var(--night); color: var(--gold); display: grid; place-items: center; flex: none; }
.brand-mark .icon { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-logo { max-height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav > a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav > a:not(.btn):hover, .nav > a.active { border-bottom-color: var(--coral); }
.nav-sep { width: 1px; height: 22px; background: var(--line); }
.nav-admin { color: var(--lagoon) !important; font-weight: 600 !important; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--night); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); padding: 12px 20px 24px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s; }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav > a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav > a.active { border-bottom-color: var(--line); color: var(--coral-dark); }
  .nav-sep { display: none; }
  .nav .btn, .nav form { margin-top: 12px; }
  .nav .link-btn { padding: 8px 0; }
}

/* ============ Messages ============ */
.flashes { padding-top: 18px; }
.flash, .alert { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 10px; font-size: .95rem; border: 1px solid transparent; }
.flash-success, .alert-success { background: var(--ok-soft); color: var(--ok); border-color: #b9e1c9; }
.flash-error, .alert-error { background: var(--danger-soft); color: var(--danger); border-color: #f5c2bd; }
.flash-info, .alert-info { background: var(--info-soft); color: #1f4f8f; border-color: #c8d9f2; }
.alert-warn { background: #fff6e0; color: #7a5300; border-color: #f2dc9c; }

/* ============ Accueil ============ */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, rgba(242, 177, 52, .28), transparent 60%),
  radial-gradient(900px 500px at -10% 110%, rgba(23, 128, 123, .35), transparent 60%), var(--night); color: #dbe3ee; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: 96px 20px 110px; }
.hero h1 { color: #fff; }
.hero .kicker { color: var(--gold); }
.hero p.lead { color: #c3cedc; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.hero-actions .btn-ghost:hover { background: #fff; color: var(--night); }
.hero-visual { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: linear-gradient(160deg, #24426a, #13233a); box-shadow: var(--shadow-lg); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .placeholder-visual { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(242, 177, 52, .9); }
.hero-visual .placeholder-visual .icon { width: 120px; height: 120px; stroke-width: 1.1; }
.hero-waves { position: absolute; left: 0; right: 0; bottom: -2px; height: 70px; color: var(--cream); }
.stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.stat strong { display: block; font-family: var(--serif); font-size: 2rem; color: #fff; line-height: 1; }
.stat span { font-size: .85rem; color: #9fb0c6; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--lagoon-soft); color: var(--lagoon); margin-bottom: 18px; }
.feature-icon .icon { width: 26px; height: 26px; }
.feature p { color: var(--muted); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold); color: var(--night); font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: 1.1rem; }
.step p { color: #a9b8cb; margin: 0; font-size: .95rem; }

.cta-band { background: linear-gradient(120deg, var(--coral), #ef7d3c); color: #fff; border-radius: 28px; padding: 54px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: .92; }

/* ============ Formations ============ */
.grid-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px; }
.course-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.course-cover { position: relative; aspect-ratio: 16 / 10; background: var(--sand); }
.course-cover img { width: 100%; height: 100%; object-fit: cover; }
.course-cover-empty { display: grid; place-items: center; background: linear-gradient(140deg, var(--night-2), var(--night)); color: var(--gold); }
.course-cover-empty .icon { width: 54px; height: 54px; stroke-width: 1.3; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; }
.course-cover .badge { position: absolute; top: 14px; left: 14px; }
.badge-gold { background: var(--gold); color: var(--night); }
.badge-green { background: var(--ok-soft); color: var(--ok); }
.badge-grey { background: #eceae6; color: var(--muted); }
.badge-red { background: var(--danger-soft); color: var(--danger); }
.badge-blue { background: var(--info-soft); color: #1f4f8f; }
.course-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.course-meta span { font-size: .75rem; font-weight: 600; color: var(--lagoon); background: var(--lagoon-soft); padding: 4px 10px; border-radius: 999px; }
.course-body h3 { margin-bottom: 8px; }
.course-body p { color: var(--muted); font-size: .95rem; }
.course-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font-weight: 700; font-size: 1.15rem; color: var(--night); }
.price s { font-weight: 400; color: var(--muted); font-size: .9rem; margin-left: 4px; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--coral-dark); font-weight: 600; font-size: .9rem; }
.more .icon { width: 16px; height: 16px; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; align-items: center; }
.chip { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 500; }
.chip.active { background: var(--night); border-color: var(--night); color: #fff; }

.empty { text-align: center; padding: 64px 24px; background: #fff; border: 1.5px dashed #d8cfbf; border-radius: var(--radius); color: var(--muted); }
.empty .icon { width: 44px; height: 44px; color: var(--lagoon); margin: 0 auto 14px; display: block; }
.empty h3 { color: var(--night); }

/* Page d'une formation */
.course-hero { background: var(--night); color: #c9d4e2; padding: 64px 0 72px; }
.course-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); }
.course-hero .lead { color: #c3cedc; }
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }
.facts span { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; }
.facts .icon { color: var(--gold); width: 18px; height: 18px; }
.buy-card { position: sticky; top: 96px; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; margin-top: -180px; border: 1px solid var(--line); }
.buy-card .course-cover { aspect-ratio: 16 / 9; }
.buy-body { padding: 26px; }
.buy-price { font-family: var(--serif); font-size: 2.2rem; color: var(--night); font-weight: 600; line-height: 1; }
.buy-price s { font-family: var(--sans); font-size: 1rem; color: var(--muted); font-weight: 400; margin-left: 8px; }
.check-list { list-style: none; padding: 0; margin: 18px 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: .95rem; }
.check-list .icon { color: var(--lagoon); width: 18px; height: 18px; margin-top: 3px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--muted); margin: 10px 0; line-height: 1.45; font-weight: 400; }
.consent input { margin-top: 3px; flex: none; width: 17px; height: 17px; accent-color: var(--coral); }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .8rem; color: var(--muted); margin-top: 14px; }
.secure-note .icon { width: 15px; height: 15px; }
.content-block { padding: 48px 0 0; }
.content-block h2 { font-size: 1.6rem; }
.prose p { color: #3a4354; }
.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }

.program { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.program details { border-bottom: 1px solid var(--line); }
.program details:last-child { border-bottom: 0; }
.program summary { cursor: pointer; padding: 18px 22px; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; list-style: none; background: #fdfbf7; }
.program summary::-webkit-details-marker { display: none; }
.program summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.program details[open] summary::after { content: '–'; }
.program summary small { color: var(--muted); font-weight: 400; margin-left: auto; }
.lesson-row { display: flex; align-items: center; gap: 12px; padding: 13px 22px; border-top: 1px solid #f0ebe2; font-size: .95rem; color: var(--ink); text-decoration: none; }
a.lesson-row:hover { background: var(--cream); }
.lesson-row .icon { width: 18px; height: 18px; color: var(--muted); }
.lesson-row .dur { margin-left: auto; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.lesson-row.done .icon { color: var(--ok); }
.lesson-row.current { background: var(--lagoon-soft); }
.preview-tag { font-size: .72rem; font-weight: 700; color: var(--coral-dark); background: #fdeee8; padding: 3px 8px; border-radius: 999px; }

.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ============ Témoignages, FAQ ============ */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.testimonial { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.stars { color: var(--gold); display: flex; gap: 2px; margin-bottom: 12px; }
.stars .icon { width: 17px; height: 17px; fill: currentColor; }
.testimonial blockquote { margin: 0 0 16px; font-family: var(--serif); font-size: 1.08rem; color: var(--night); line-height: 1.5; }
.testimonial cite { font-style: normal; font-weight: 600; font-size: .92rem; }
.testimonial cite span { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }

.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; }
.faq-list summary { padding: 18px 22px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--coral); font-size: 1.4rem; line-height: 1; }
.faq-list details[open] summary::after { content: '–'; }
.faq-list .answer { padding: 0 22px 18px; color: var(--muted); }

/* ============ À propos ============ */
.about-grid { display: grid; grid-template-columns: 420px 1fr; gap: 56px; align-items: start; }
.portrait { aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: linear-gradient(160deg, var(--night-2), var(--night)); display: grid; place-items: center; color: var(--gold); box-shadow: var(--shadow-lg); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .icon { width: 90px; height: 90px; stroke-width: 1.1; }
.placeholder-text { color: var(--muted); font-style: italic; background: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(0, 0, 0, .025) 8px 16px); padding: 18px; border-radius: var(--radius-sm); border: 1px dashed #d8cfbf; }

/* ============ Formulaires ============ */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.auth-wrap { max-width: 480px; margin: 0 auto; }
.auth-wrap h1 { font-size: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin-bottom: 18px; }
.field-full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--night); }
.hint { font-weight: 400; color: var(--muted); font-size: .82rem; margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #ddd5c7; border-radius: var(--radius-sm); font: inherit; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lagoon); box-shadow: 0 0 0 3px rgba(23, 128, 123, .15); }
textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--coral); flex: none; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 84px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: var(--sand); border: 0; border-radius: 8px; padding: 6px 10px; font-size: .78rem; font-weight: 600; cursor: pointer; color: var(--night); }
.pw-meter { height: 5px; border-radius: 5px; background: #eee6d9; margin-top: 8px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; background: var(--danger); transition: width .2s, background .2s; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { margin-top: 20px; text-align: center; font-size: .92rem; color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: 26px 0; }
.big-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--lagoon-soft); color: var(--lagoon); }
.big-icon .icon { width: 34px; height: 34px; }
.big-icon.warn { background: #fff6e0; color: #b07800; }

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-item .feature-icon { width: 44px; height: 44px; margin: 0; flex: none; }
.contact-item .feature-icon .icon { width: 20px; height: 20px; }
.contact-item strong { display: block; color: var(--night); }

/* ============ Espace élève ============ */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 30px; overflow-x: auto; }
.tabs a { padding: 12px 16px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--night); border-bottom-color: var(--coral); }
.my-course { display: grid; grid-template-columns: 220px 1fr auto; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.my-course .course-cover { border-radius: 12px; overflow: hidden; }
.progress { height: 8px; background: #eee6d9; border-radius: 8px; overflow: hidden; margin: 10px 0 6px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--lagoon), #2bb3a9); border-radius: 8px; }
.lesson-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px; align-items: start; }
.lesson-side { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; }
.lesson-side .program summary { padding: 14px 16px; font-size: .92rem; }
.lesson-side .lesson-row { padding: 11px 16px; font-size: .9rem; }
.files { display: grid; gap: 10px; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); flex-wrap: wrap; }
.file-row .icon { color: var(--lagoon); }
.file-row audio, .file-row video { width: 100%; margin-top: 8px; border-radius: 8px; }
.file-row .grow { flex: 1; min-width: 0; }
.lesson-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.table th, .table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: .93rem; vertical-align: top; }
.table th { background: #fbf8f3; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

/* ============ Pages légales ============ */
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal .fill { background: #fff3c4; padding: 0 4px; border-radius: 4px; color: #7a5300; }

/* ============ Pied de page ============ */
.site-footer { background: var(--night); color: #a9b8cb; padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand { font-family: var(--serif); font-size: 1.4rem; color: #fff; margin-bottom: 8px; }
.site-footer h4 { font-family: var(--sans); color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.site-footer a { display: block; color: #c6d1de; text-decoration: none; padding: 3px 0; font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: .93rem; margin-bottom: 6px; }
.site-footer .muted { color: #8496ad; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); padding: 0; }
.socials a:hover { background: var(--coral); }
.pay-note { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .82rem !important; color: #8496ad; }
.pay-note .icon { width: 15px; height: 15px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding-top: 22px; font-size: .85rem; color: #7b8da5; }
.error-mark { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; background: var(--night); color: var(--gold); }
.error-mark .icon { width: 38px; height: 38px; }

/* ============ Adaptation mobile ============ */
@media (max-width: 1000px) {
  .hero-inner, .course-layout, .about-grid, .contact-grid, .lesson-layout { grid-template-columns: 1fr; }
  .hero-inner { padding: 64px 20px 90px; gap: 40px; }
  .hero-visual { max-width: 420px; aspect-ratio: 4 / 3; }
  .buy-card { position: static; margin-top: 0; }
  .lesson-side { position: static; max-height: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid .portrait { max-width: 380px; }
}
@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .features, .steps, .learn-grid, .form-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 34px 26px; }
  .my-course { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .stats { gap: 24px; }
  .container { padding: 0 16px; }
  .brand-text small { display: none; }
}

/* ============ Coach ============ */
.coach-tag { position: absolute; left: 18px; right: 18px; bottom: 18px; background: rgba(19, 35, 58, .82); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px; padding: 14px 18px; color: #fff; }
.coach-tag strong { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.coach-tag span { font-size: .85rem; color: #c3cedc; }
.coach-quote { margin: 18px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--gold); font-family: var(--serif); font-size: 1.15rem; color: var(--night); font-style: italic; }
.coach-card { display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.coach-avatar { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: linear-gradient(160deg, var(--night-2), var(--night)); color: var(--gold); }
.coach-avatar img { width: 100%; height: 100%; object-fit: cover; }
.coach-avatar .icon { width: 40px; height: 40px; }
.price .per { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-bottom: 30px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.info-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.info-card h3 .icon { color: var(--lagoon); }
.info-card p { margin: 0 0 8px; color: #3a4354; }
.booking-band { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--lagoon-soft); border: 1px solid #bfe2de; border-radius: var(--radius); padding: 22px 24px; margin-bottom: 26px; }
.booking-band h3 { margin: 0 0 4px; }
.booking-band p { margin: 0; color: #2c5d5a; }
@media (max-width: 720px) { .coach-card { flex-direction: column; align-items: flex-start; } }
