/* Espace membre Smart Creator — mêmes codes que la landing smart-creator.fr :
   rouge YouTube, noir #0F0F0F, Plus Jakarta Sans + un mot d'accent en Instrument Serif italique, boutons pilule. */
:root {
  --red: #FF0000; --red-text: #CC0000; --red-dark: #B30000; --red-tint: #FFF1F1;
  --ink: #0F0F0F; --gray: #606060; --muted: #8A8A8A; --line: #ECECEC; --chip: #F2F2F2;
  --bg: #FFFFFF; --bg-soft: #F9F9F9; --dark: #0F0F0F; --dark-2: #181818; --dark-3: #272727;
  --dark-text: #F1F1F1; --dark-muted: #AAAAAA; --green: #0B8A4A; --green-tint: #E8F6EE;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-sm: 0 1px 2px rgba(15,15,15,.04), 0 8px 24px -12px rgba(15,15,15,.12);
  --shadow: 0 2px 4px rgba(15,15,15,.04), 0 24px 48px -24px rgba(15,15,15,.18);
  --side: 248px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg-soft); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.03em; line-height: 1.1; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
h3 { font-size: 1.06rem; letter-spacing: -0.015em; line-height: 1.3; }
p { margin: 0; }
.accent { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--red); letter-spacing: -0.01em; font-size: 1.12em; line-height: .9; padding-right: .04em; }
.muted { color: var(--gray); }
.small { font-size: .86rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-text); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(255,0,0,.12); }
.dark .eyebrow { color: #FF4D4D; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 14px 30px -16px rgba(255,0,0,.7); }
.btn-red:hover { background: var(--red-dark); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2a2a2a; }
.btn-ghost { background: #fff; border-color: var(--line); }
.btn-ghost:hover { border-color: #cfcfcf; }
.btn-light { background: #fff; color: var(--ink); }
.btn-done { background: var(--green-tint); color: var(--green); border-color: #bfe6cf; }
.btn-sm { padding: 9px 16px; font-size: .86rem; }
.btn-xs { padding: 6px 12px; font-size: .8rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; }
.btn-xs:hover { border-color: #cfcfcf; }
.btn-xs.danger { color: var(--red-text); }
.link { background: none; border: 0; padding: 0; color: var(--red-text); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Écrans de connexion ---------- */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 500px at 50% -10%, #ffe3e3 0%, transparent 60%), var(--bg-soft); }
.gate-card { width: min(440px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 34px 30px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.gate-card h1 { font-size: 1.75rem; }
.gate-card .logo { margin-bottom: 4px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .84rem; font-weight: 600; }
.field small { color: var(--muted); font-size: .78rem; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(15,15,15,.06); }
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.msg { color: var(--red-text); font-size: .88rem; font-weight: 600; min-height: 1em; }
.msg.ok { color: var(--green); }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--red); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; text-decoration: none; }
.logo svg { width: 34px; height: 24px; }
.logo span { color: var(--muted); font-weight: 600; }

/* ---------- Structure ---------- */
.app { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: #fff; border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 6px; }
.side .logo { padding: 4px 10px 18px; }
.nav { text-decoration: none; display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 12px; border-radius: 12px; border: 0; background: none; cursor: pointer; font-weight: 600; font-size: .94rem; text-align: left; color: var(--ink); }
.nav svg { width: 22px; height: 22px; flex: none; }
.nav:hover { background: var(--chip); }
.nav.on { background: var(--chip); font-weight: 700; }
.nav.on svg { color: var(--red); }
.nav .pill { margin-left: auto; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--red); color: #fff; border-radius: 999px; padding: 3px 7px; }
.side-sep { height: 1px; background: var(--line); margin: 10px 8px; }
.side-foot { margin-top: auto; padding: 14px 12px 4px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); }
.side-foot .grow { min-width: 0; }
.side-foot b { display: block; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot small { color: var(--muted); font-size: .76rem; }
.main { min-width: 0; padding: 34px clamp(18px, 4vw, 48px) 90px; }
.view { max-width: 1160px; margin: 0 auto; animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 38px 0 18px; }
.sec-head:first-child { margin-top: 0; }
.sec-head p { color: var(--gray); max-width: 520px; }
.tabbar { display: none; }

/* ---------- Avatars ---------- */
.av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .82rem; color: #fff; flex: none; letter-spacing: 0; }
.av.lg { width: 56px; height: 56px; font-size: 1.1rem; }
.badge-team { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: var(--red); color: #fff; border-radius: 6px; padding: 2px 6px; margin-left: 6px; vertical-align: 2px; }

/* ---------- Cartes ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-sm); }
.grid-2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Accueil */
.hello { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; background: var(--dark); color: var(--dark-text); border-radius: 26px; padding: 34px; position: relative; overflow: hidden; }
.hello::after { content: ""; position: absolute; right: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(255,0,0,.35), transparent 65%); pointer-events: none; }
.hello h1 { color: #fff; }
.hello p { color: var(--dark-muted); margin-top: 10px; max-width: 560px; }
.hello .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; position: relative; z-index: 1; }
.ring { position: relative; width: 132px; height: 132px; z-index: 1; }
.ring svg { width: 132px; height: 132px; transform: rotate(-90deg); }
.ring .v { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring b { font-size: 1.9rem; letter-spacing: -0.04em; display: block; line-height: 1; color: #fff; }
.ring small { color: var(--dark-muted); font-size: .74rem; }
.resume { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: center; cursor: pointer; border: 0; text-align: left; width: 100%; }
.resume:hover .thumb { transform: scale(1.02); }
.resume .k { color: var(--red-text); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.resume h3 { font-size: 1.2rem; margin: 6px 0; }

/* Vignettes façon YouTube */
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #1c1c1c, #0b0b0b); color: #fff; padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .3s var(--ease); isolation: isolate; }
.thumb::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 100% 0%, rgba(255,0,0,.38), transparent 55%); }
.thumb .n { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.06em; line-height: .9; color: rgba(255,255,255,.95); }
.thumb .t { font-weight: 700; font-size: .98rem; letter-spacing: -0.02em; line-height: 1.2; max-width: 85%; }
.thumb .dur { position: absolute; right: 10px; bottom: 12px; background: rgba(0,0,0,.8); font-size: .74rem; font-weight: 700; padding: 2px 6px; border-radius: 5px; }
.thumb .play { position: absolute; right: 14px; top: 14px; width: 36px; height: 26px; border-radius: 8px; background: var(--red); display: grid; place-items: center; }
.thumb .play svg { width: 12px; height: 12px; }
.thumb .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.25); }
.thumb .bar i { display: block; height: 100%; background: var(--red); }
.thumb.lock { background: linear-gradient(135deg, #2b2b2b, #151515); }
.thumb.lock::before { background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.12), transparent 55%); }
.thumb .lockico { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.35); }
.thumb .lockico span { background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 14px; font-weight: 800; font-size: .8rem; display: inline-flex; gap: 6px; align-items: center; }

.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px 20px; }
.mod { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; display: grid; gap: 12px; }
.mod:hover .thumb { transform: translateY(-3px); box-shadow: var(--shadow); }
.mod h3 { font-size: 1rem; }
.mod .meta { color: var(--gray); font-size: .84rem; margin-top: 3px; }
.mod .done-tag { color: var(--green); font-weight: 700; }

/* Liste des modules (accueil) */
.path { display: grid; gap: 10px; }
.path-row { display: grid; grid-template-columns: 38px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; text-align: left; width: 100%; }
.path-row:hover { border-color: #d6d6d6; }
.path-row .num { width: 38px; height: 38px; border-radius: 11px; background: var(--chip); display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.path-row.ok .num { background: var(--green-tint); color: var(--green); }
.path-row.cur .num { background: var(--red); color: #fff; }
.path-row b { font-size: .94rem; display: block; }
.path-row .pbar { height: 5px; border-radius: 9px; background: var(--chip); margin-top: 7px; overflow: hidden; }
.path-row .pbar i { display: block; height: 100%; background: var(--red); border-radius: 9px; }
.path-row .pct { font-size: .8rem; color: var(--gray); font-weight: 700; }

/* Carte upsell sombre */
.upsell { background: var(--dark); color: var(--dark-text); border-radius: 20px; padding: 24px; position: relative; overflow: hidden; display: grid; gap: 12px; }
.upsell::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(255,0,0,.32), transparent 65%); pointer-events: none; }
.upsell h3 { color: #fff; font-size: 1.2rem; }
.upsell p { color: var(--dark-muted); font-size: .92rem; }
.upsell .btn { justify-self: start; position: relative; z-index: 1; }
.upsell.compact { padding: 18px; gap: 8px; }
.upsell.compact h3 { font-size: 1rem; }

/* ---------- Module & leçon ---------- */
.crumb { display: flex; gap: 8px; align-items: center; color: var(--gray); font-size: .86rem; margin-bottom: 18px; flex-wrap: wrap; }
.crumb button { border: 0; background: none; padding: 0; cursor: pointer; color: var(--gray); font-weight: 600; }
.crumb button:hover { color: var(--ink); }
.mod-hero { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: center; margin-bottom: 26px; }
.mod-hero p { color: var(--gray); margin-top: 10px; }
.mod-hero .stats { display: flex; gap: 18px; margin-top: 16px; font-size: .88rem; color: var(--gray); flex-wrap: wrap; }
.mod-hero .stats b { color: var(--ink); }
.lessons { display: grid; gap: 6px; }
.lrow { display: grid; grid-template-columns: 30px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); cursor: pointer; text-align: left; width: 100%; }
.lrow:hover { border-color: #d6d6d6; }
.lrow .st { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--chip); font-size: .78rem; font-weight: 800; color: var(--gray); }
.lrow.ok .st { background: var(--green-tint); color: var(--green); }
.lrow.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.lrow.soon { cursor: default; opacity: .55; }
.lrow time { color: var(--gray); font-size: .82rem; font-variant-numeric: tabular-nums; }
.lrow .soon-tag { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

.lesson { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; }
.player { aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.player .empty-v { height: 100%; display: grid; place-items: center; text-align: center; color: var(--dark-muted); padding: 20px; background: radial-gradient(90% 90% at 50% 0%, #2a0a0a, #0b0b0b); }
.player .empty-v svg { margin: 0 auto; }
.player .empty-v b { color: #fff; display: block; font-size: 1.1rem; margin: 12px 0 4px; }
.lesson-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 20px 0 6px; flex-wrap: wrap; }
.lesson-head h1 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.lesson-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.block { margin-top: 22px; }
.block h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gray); margin-bottom: 10px; }
.rich { white-space: pre-wrap; word-break: break-word; color: #222; }
.rich a { color: var(--red-text); font-weight: 600; }
.note-state { font-size: .78rem; color: var(--muted); margin-top: 6px; min-height: 1em; }
.aside { display: grid; gap: 16px; position: sticky; top: 24px; }
.aside .card { padding: 16px; }
.aside .lessons { max-height: 460px; overflow: auto; margin: 12px -4px 0; padding: 0 4px; }
.aside .lrow { padding: 9px 10px; grid-template-columns: 26px 1fr auto; gap: 10px; font-size: .88rem; }
.aside .lrow .st { width: 26px; height: 26px; }

/* ---------- Communauté ---------- */
.cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.cat { border: 0; background: var(--chip); padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: .88rem; cursor: pointer; }
.cat:hover { background: #e5e5e5; }
.cat.on { background: var(--ink); color: #fff; }
.feed { display: grid; gap: 14px; }
.composer { display: grid; gap: 10px; }
.composer-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.post { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.post.pinned { border-color: #ffc9c9; box-shadow: 0 0 0 1px #ffc9c9 inset; }
.post-head { display: flex; gap: 12px; align-items: center; }
.post-head .grow { flex: 1; min-width: 0; }
.post-head b { font-size: .92rem; }
.post-head small { color: var(--muted); font-size: .78rem; display: block; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--chip); color: var(--gray); }
.tag.annonce { background: var(--red-tint); color: var(--red-text); }
.tag.victoire { background: #FFF6E0; color: #9A6700; }
.tag.question { background: #EAF2FF; color: #1D5BD6; }
.tag.chaine { background: #F1ECFF; color: #5B3CC4; }
.tag.presentation { background: var(--green-tint); color: var(--green); }
.post h3 { margin: 14px 0 6px; font-size: 1.05rem; }
.post .rich { margin-top: 10px; font-size: .95rem; }
.post .linkbox { display: inline-flex; gap: 8px; align-items: center; margin-top: 12px; padding: 8px 12px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); font-size: .86rem; font-weight: 600; text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-foot { display: flex; gap: 6px; margin-top: 14px; align-items: center; flex-wrap: wrap; }
.react { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--chip); border-radius: 999px; padding: 7px 12px; font-size: .84rem; font-weight: 700; cursor: pointer; }
.react:hover { background: #e5e5e5; }
.react.on { background: var(--red-tint); color: var(--red-text); }
.react svg { width: 16px; height: 16px; }
.post-foot .sp { flex: 1; }
.comments { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.comment { display: flex; gap: 10px; }
.comment .av { width: 30px; height: 30px; font-size: .7rem; }
.comment .bubble { background: var(--bg-soft); border-radius: 14px; padding: 9px 13px; flex: 1; min-width: 0; }
.comment .bubble b { font-size: .84rem; }
.comment .bubble small { color: var(--muted); font-size: .74rem; margin-left: 6px; }
.comment .bubble .rich { margin-top: 2px; font-size: .9rem; }
.comment-form { display: flex; gap: 8px; }
.comment-form input { padding: 10px 12px; }
.rules { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px dashed #d8d8d8; border-radius: 16px; padding: 14px 16px; font-size: .88rem; color: var(--gray); margin-bottom: 16px; }
.rules b { color: var(--ink); }
.side-box { display: grid; gap: 16px; align-content: start; }
.comm { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }

/* ---------- Coaching ---------- */
.offer-hero { text-align: center; max-width: 720px; margin: 10px auto 34px; }
.offer-hero p { color: var(--gray); margin-top: 14px; font-size: 1.05rem; }
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.offer { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm); }
.offer.featured { background: var(--dark); color: var(--dark-text); border-color: var(--dark); position: relative; overflow: hidden; }
.offer.featured::after { content: ""; position: absolute; right: -100px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255,0,0,.35), transparent 65%); pointer-events: none; }
.offer.featured h2 { color: #fff; }
.offer.featured p, .offer.featured li { color: var(--dark-muted); }
.offer .price { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.offer .price small { font-size: .86rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.offer ul { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 10px; }
.offer li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .94rem; color: #333; }
.offer li::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; background: var(--red-tint); color: var(--red-text); display: grid; place-items: center; font-size: .72rem; font-weight: 900; }
.offer.featured li::before { background: rgba(255,0,0,.2); color: #FF6B6B; }
.offer .btn { margin-top: auto; align-self: flex-start; position: relative; z-index: 1; }
.offer .sent { font-size: .86rem; font-weight: 700; color: var(--green); }
.offer.featured .sent { color: #7BE0A6; }
.faq { display: grid; gap: 10px; margin-top: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { color: var(--gray); margin-top: 8px; }

/* ---------- Profil & admin ---------- */
.form-grid { display: grid; gap: 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); background: #fff; padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: .88rem; cursor: pointer; }
.chip:hover { border-color: #cfcfcf; }
.chip.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.adm-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gray); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.st-badge { display: inline-block; font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--chip); color: var(--gray); white-space: nowrap; }
.st-badge.green { background: var(--green-tint); color: var(--green); }
.st-badge.red { background: var(--red-tint); color: var(--red-text); }
.st-badge.blue { background: #EAF2FF; color: #1D5BD6; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.kpi b { font-size: 1.6rem; letter-spacing: -0.04em; display: block; }
.kpi small { color: var(--gray); font-size: .8rem; }
.adm-mod { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 14px; }
.adm-mod-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.adm-les { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--line); font-size: .9rem; }
.adm-les:first-of-type { margin-top: 12px; }
.adm-les .ops { display: flex; gap: 6px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: #d4d4d4; }
.dot.on { background: var(--green); }
.dot.v { background: var(--red); }
.empty { text-align: center; color: var(--gray); padding: 36px 16px; }
.empty .ico { font-size: 2rem; margin-bottom: 8px; }

/* ---------- Fenêtre modale & toast ---------- */
dialog { border: 0; border-radius: 24px; padding: 0; width: min(560px, calc(100% - 24px)); box-shadow: 0 40px 80px -30px rgba(0,0,0,.45); }
dialog::backdrop { background: rgba(15,15,15,.55); backdrop-filter: blur(3px); }
.modal-in { padding: 28px; display: grid; gap: 16px; max-height: calc(100vh - 60px); overflow: auto; }
.modal-in h2 { font-size: 1.45rem; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; opacity: 0; pointer-events: none; transition: all .3s var(--ease); z-index: 100; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.celebrate { text-align: center; }
.celebrate .big { font-size: 3rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .lesson, .comm { grid-template-columns: 1fr; }
  .aside { position: static; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: 22px 16px 96px; }
  .tabbar { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tab { text-decoration: none; border: 0; background: none; display: grid; justify-items: center; gap: 3px; font-size: .68rem; font-weight: 700; color: var(--gray); padding: 6px 0; cursor: pointer; }
  .tab svg { width: 22px; height: 22px; }
  .tab.on { color: var(--ink); }
  .tab.on svg { color: var(--red); }
  .hello { grid-template-columns: 1fr; padding: 26px; }
  .ring { justify-self: start; }
  .resume { grid-template-columns: 1fr; }
  .mod-hero { grid-template-columns: 1fr; }
  .offers, .grid-3 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
