/* NUVIKIO — feuille de style principale (mobile-first, sans dépendance externe) */
:root {
  --night: #18152E;
  --night-2: #241F45;
  --violet: #7546FF;
  --violet-dark: #5A2FE0;
  --violet-soft: #EDE7FF;
  --lime: #C5FF55;
  --lime-dark: #A8E636;
  --white: #FFFFFF;
  --grey: #F4F5F8;
  --grey-2: #E3E5EC;
  --text: #18152E;
  --muted: #5B5875;
  --danger: #C62828;
  --success: #1B7F3B;
  --warning: #8A5A00;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(24, 21, 46, .08);
  --shadow-lg: 0 18px 48px rgba(24, 21, 46, .16);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--white); }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--violet-dark); text-underline-offset: 2px; }
a:hover { color: var(--violet); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 750; margin-top: 1.4em; }
h3, .h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-size: .9em; background: var(--grey); padding: .1em .35em; border-radius: 4px; }
table { border-collapse: collapse; }
del { color: var(--muted); }

.container { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2rem); margin-inline: auto; }
.section { padding: 3rem 0; }
.section-alt { background: var(--grey); }
.section-dark { background: var(--night); color: var(--white); }
.section-dark a { color: var(--lime); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; }
.section-head h1, .section-head h2 { margin-top: 0; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--violet); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--lime); color: var(--night); padding: .6rem 1rem; border-radius: var(--radius-sm); z-index: 100; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.hp { position: absolute; left: -9999px; }
.inline { display: inline; }
.empty { padding: 1.5rem; background: var(--grey); border-radius: var(--radius); }
.env-banner { background: var(--lime); color: var(--night); text-align: center; font-size: .85rem; font-weight: 700; padding: .35rem 1rem; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .6rem 1.15rem; border: 2px solid var(--violet); border-radius: 999px; background: var(--violet); color: var(--white); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn:hover { background: var(--violet-dark); border-color: var(--violet-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-lime { background: var(--lime); border-color: var(--lime); color: var(--night); }
.btn-lime:hover { background: var(--lime-dark); border-color: var(--lime-dark); color: var(--night); }
.btn-ghost { background: transparent; color: var(--violet-dark); }
.btn-ghost:hover { background: var(--violet-soft); color: var(--violet-dark); }
.btn-outline-light { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-danger { background: var(--white); border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: var(--white); }
.btn-sm { min-height: 36px; padding: .35rem .85rem; font-size: .9rem; }
.btn-lg { min-height: 52px; padding: .8rem 1.5rem; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; margin-top: .6rem; }
.btn-link { background: none; border: 0; padding: .25rem; color: var(--violet-dark); font: inherit; text-decoration: underline; cursor: pointer; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--grey-2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { color: var(--night); display: inline-flex; }
.brand img { display: block; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: var(--grey); border-radius: 12px; cursor: pointer; }
.burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; background: var(--night); position: relative; content: ""; transition: transform .2s; }
.burger::before { position: absolute; top: -6px; } .burger::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::after { transform: translateY(-6px) rotate(-45deg); }
.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--grey-2); padding: 1rem; box-shadow: var(--shadow); }
.main-nav.is-open { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li a { display: block; padding: .65rem .25rem; color: var(--night); font-weight: 600; text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--violet); }
.nav-search input { width: 100%; }
.nav-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .75rem; }
.nav-actions > a:not(.btn) { color: var(--night); font-weight: 600; text-decoration: none; }
.badge { display: inline-flex; min-width: 1.4rem; height: 1.4rem; align-items: center; justify-content: center; border-radius: 999px; background: var(--lime); color: var(--night); font-size: .78rem; font-weight: 800; }
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .main-nav { display: flex; position: static; align-items: center; gap: 1.25rem; padding: 0; border: 0; box-shadow: none; background: transparent; flex: 1; justify-content: flex-end; }
  .main-nav ul { display: flex; gap: 1.1rem; }
  .main-nav li a { padding: .4rem 0; }
  .nav-search input { width: 170px; }
  .nav-actions { margin: 0; }
}

/* Formulaires */
label { display: block; font-weight: 600; margin: .9rem 0 .3rem; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { width: 100%; min-height: 44px; padding: .55rem .75rem; border: 2px solid var(--grey-2); border-radius: var(--radius-sm); font: inherit; color: var(--text); background: var(--white); }
input:focus, select:focus, textarea:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 3px var(--violet-soft); }
textarea { min-height: 6rem; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 1.2rem; height: 1.2rem; accent-color: var(--violet); flex: none; margin-top: .2rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
fieldset { border: 1px solid var(--grey-2); border-radius: var(--radius-sm); padding: .5rem 1rem 1rem; margin: 1rem 0; }
legend { font-weight: 700; padding: 0 .3rem; }
.hint { font-size: .85rem; color: var(--muted); margin: .25rem 0 0; }
.form-card { background: var(--white); border: 1px solid var(--grey-2); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.form-card h2 { margin-top: 0; }
.form-card button[type="submit"] { margin-top: 1rem; }
.form-row { display: grid; gap: 0 1rem; }
@media (min-width: 700px) { .form-row { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1rem 0; }
.inline-form label { margin: 0; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 160px; }

/* Messages */
.flashes { padding-top: 1rem; }
.flash { padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: .75rem; border-left: 5px solid var(--violet); background: var(--violet-soft); }
.flash ul { margin: 0; padding-left: 1.2rem; }
.flash-success { background: #E7F8EC; border-color: var(--success); }
.flash-error { background: #FDECEC; border-color: var(--danger); }
.flash-warning { background: #FFF5D6; border-color: #D99A00; }

/* Héros */
.hero { background: radial-gradient(1200px 500px at 85% 0%, rgba(117,70,255,.45), transparent 60%), var(--night); color: var(--white); padding: 3.5rem 0 4rem; overflow: hidden; }
.hero-inner { display: grid; gap: 2.5rem; align-items: center; }
.hero .lead { color: #D8D5EE; }
.hero .eyebrow { color: var(--lime); }
.hl { color: var(--lime); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .92rem; color: #D8D5EE; }
.hero-points li::before { content: "✓ "; color: var(--lime); font-weight: 800; }
.hero-visual { position: relative; min-height: 260px; }
.mock-card { position: absolute; background: var(--white); color: var(--night); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1rem 1.2rem; display: grid; gap: .3rem; animation: float 6s ease-in-out infinite; }
.mock-1 { top: 0; left: 5%; width: 62%; }
.mock-2 { top: 40%; right: 0; width: 46%; background: var(--violet); color: var(--white); animation-delay: -2s; }
.mock-3 { bottom: 0; left: 18%; background: var(--lime); animation-delay: -4s; grid-auto-flow: column; align-items: center; gap: 1rem; }
.mock-label { font-size: .85rem; opacity: .8; }
.mock-value { font-size: 1.8rem; font-weight: 800; }
.mock-check { font-size: 1.5rem; font-weight: 800; }
.mock-bar { display: block; height: 8px; background: var(--grey-2); border-radius: 999px; overflow: hidden; }
.mock-bar i { display: block; height: 100%; background: var(--lime-dark); }
.w-60 { width: 60%; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.2fr 1fr; } .hero-visual { min-height: 340px; } }

.page-head { background: var(--grey); padding: 2.25rem 0 1.5rem; }
.page-head h1 { margin-bottom: .3rem; }
.course-head { background: linear-gradient(135deg, var(--night), var(--night-2)); color: var(--white); }
.course-head .lead { color: #D8D5EE; }
.course-meta { display: flex; flex-wrap: wrap; gap: 1rem; color: #D8D5EE; }

/* Grilles et cartes */
.grid { display: grid; gap: 1.25rem; }
.cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.categories { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.card { position: relative; background: var(--white); border: 1px solid var(--grey-2); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; color: var(--text); }
.card:hover, .card:focus-within { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-visual { height: 130px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--violet), var(--night)); }
.accent-lime .card-visual { background: linear-gradient(135deg, var(--night), var(--violet)); }
.card-initial { font-size: 3.5rem; font-weight: 900; color: var(--lime); }
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.card-title { margin: .3rem 0; font-size: 1.15rem; }
.card-title a { color: var(--night); text-decoration: none; }
.stretched::after { content: ""; position: absolute; inset: 0; }
.card-text { color: var(--muted); font-size: .95rem; flex: 1; }
.card-meta { margin: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.price { margin: .5rem 0 0; font-size: 1.15rem; }
.chip { display: inline-block; padding: .15rem .6rem; border-radius: 999px; background: var(--grey); font-size: .78rem; font-weight: 700; color: var(--night); }
.chip-lime { background: var(--lime); }
.chip-violet { background: var(--violet); color: var(--white); }
.category-tile { display: grid; gap: .3rem; padding: 1.2rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--grey-2); text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.category-tile:hover { border-color: var(--violet); transform: translateY(-2px); color: var(--text); }
.category-tile strong { font-size: 1.1rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chip-link { padding: .4rem .9rem; border-radius: 999px; border: 2px solid var(--grey-2); text-decoration: none; color: var(--night); font-weight: 600; font-size: .92rem; }
.chip-link.is-active, .chip-link:hover { border-color: var(--violet); color: var(--violet-dark); }
.steps-grid { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-num { display: inline-flex; width: 2.4rem; height: 2.4rem; align-items: center; justify-content: center; border-radius: 50%; background: var(--violet); color: var(--white); font-weight: 800; margin-bottom: .6rem; }

/* Fiche produit */
.breadcrumb { padding: 1rem 0 0; font-size: .9rem; color: var(--muted); }
.product-layout, .course-layout { display: grid; gap: 2rem; padding: 1.5rem 0 3rem; align-items: start; }
@media (min-width: 900px) { .product-layout, .course-layout { grid-template-columns: 1fr 340px; } .buy-box { position: sticky; top: 90px; } }
.product-hero { border-radius: var(--radius); background: linear-gradient(135deg, var(--violet), var(--night)); color: var(--lime); min-height: 170px; display: flex; align-items: flex-end; padding: 1.5rem; font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 900; margin-bottom: 1.5rem; }
.product-hero.accent-lime { background: linear-gradient(135deg, var(--night), var(--violet)); }
.buy-box { background: var(--white); border: 1px solid var(--grey-2); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.buy-price { font-size: 2rem; font-weight: 800; margin: 0 0 .5rem; }
.buy-form .check { font-size: .88rem; margin: .5rem 0; }
.reassurance { list-style: none; padding: 0; margin: 1rem 0 0; color: var(--muted); }
.reassurance li::before { content: "✓ "; color: var(--success); font-weight: 800; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 1.6rem; position: relative; margin: .35rem 0; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--violet); font-weight: 900; }
.file-list { list-style: none; padding: 0; }
.file-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; padding: .7rem 0; border-bottom: 1px solid var(--grey-2); }
.prose { max-width: 72ch; }
.prose table, .table { width: 100%; margin: 1rem 0; font-size: .95rem; }
.prose th, .prose td, .table th, .table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--grey-2); vertical-align: top; }
.prose thead th, .table thead th { background: var(--grey); font-weight: 700; }
.num { text-align: right !important; white-space: nowrap; }
.prose blockquote { margin: 1rem 0; padding: .8rem 1rem; border-left: 4px solid var(--violet); background: var(--violet-soft); }
.callout { display: block; padding: .9rem 1rem; border-radius: var(--radius-sm); background: var(--violet-soft); border-left: 5px solid var(--violet); margin: 1rem 0; }
.callout-tip { background: #F2FFDC; border-color: var(--lime-dark); }
.callout-warning { background: #FFF5D6; border-color: #D99A00; }
.key-figure { padding: 1rem; border-radius: var(--radius-sm); background: var(--night); color: var(--white); margin: 1rem 0; }
.key-figure strong { color: var(--lime); }
dl dt { font-weight: 700; } dl dd { margin: 0 0 .6rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; }
.kv dd { margin: 0; }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; } }
.table-wrap, .table { display: block; overflow-x: auto; }
@media (min-width: 700px) { .table { display: table; } }

/* Panier */
.cart-layout { display: grid; gap: 2rem; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1fr 360px; align-items: start; } }
.summary { background: var(--grey); border-radius: var(--radius); padding: 1.25rem; }
.summary dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.summary dd { margin: 0; }
.summary .total { font-size: 1.25rem; font-weight: 800; border-top: 2px solid var(--grey-2); padding-top: .6rem; margin-top: .3rem; }
.summary .check { font-size: .88rem; }

/* Espace client / admin */
.account-layout { display: grid; gap: 2rem; }
@media (min-width: 900px) { .account-layout { grid-template-columns: 220px 1fr; align-items: start; } }
.account-nav, .admin-nav { display: flex; flex-wrap: wrap; gap: .4rem; }
.account-nav { flex-direction: row; }
@media (min-width: 900px) { .account-nav { flex-direction: column; position: sticky; top: 90px; } }
.account-nav a, .admin-nav a { padding: .5rem .8rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--night); font-weight: 600; background: var(--grey); }
.account-nav a[aria-current="page"], .admin-nav a[aria-current="page"] { background: var(--violet); color: var(--white); }
.admin-nav { margin-bottom: 1.5rem; }
.tiles { list-style: none; padding: 0; display: grid; gap: .75rem; }
.tile { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; justify-content: space-between; padding: 1rem; border: 1px solid var(--grey-2); border-radius: var(--radius); }
.tile strong { flex: 1 1 200px; }
.panel { border: 1px solid var(--grey-2); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; background: var(--white); }
.panel h2 { margin-top: 0; }
.two-cols { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .two-cols { grid-template-columns: 1fr 1fr; } }
.kpis { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin: 1rem 0; }
.kpi { background: var(--night); color: var(--white); border-radius: var(--radius); padding: 1rem; display: grid; gap: .3rem; }
.kpi span { font-size: .85rem; color: #D8D5EE; }
.kpi strong { font-size: 1.45rem; color: var(--lime); }
.status-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.status { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--grey); color: var(--night); text-decoration: none; }
.status-paid, .status-success, .status-published, .status-processed, .status-sent, .status-approved { background: #DDF5E4; color: #12572A; }
.status-pending, .status-processing, .status-queued, .status-draft, .status-received, .status-new { background: #FFF1C9; color: #6B4A00; }
.status-failed, .status-cancelled, .status-disputed, .status-rejected { background: #FBDADA; color: #8E1B1B; }
.status-refunded, .status-partially_refunded, .status-archived, .status-ignored { background: var(--grey-2); color: var(--night); }
.pager { display: flex; flex-wrap: wrap; gap: .3rem; }
.pager a { padding: .35rem .7rem; border-radius: var(--radius-sm); background: var(--grey); text-decoration: none; }
.pager a[aria-current="page"] { background: var(--violet); color: var(--white); }
.draft-body { white-space: pre-wrap; background: var(--grey); padding: 1rem; border-radius: var(--radius-sm); font-family: inherit; font-size: .92rem; }
.form-card.wide { max-width: none; }

/* Progression */
.progress { height: 10px; border-radius: 999px; background: var(--grey-2); overflow: hidden; margin: .4rem 0; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--lime-dark)); width: 0; }
.progress-10 { width: 10% !important; } .progress-20 { width: 20% !important; } .progress-30 { width: 30% !important; } .progress-40 { width: 40% !important; } .progress-50 { width: 50% !important; }
.progress-60 { width: 60% !important; } .progress-70 { width: 70% !important; } .progress-80 { width: 80% !important; } .progress-90 { width: 90% !important; } .progress-100 { width: 100% !important; }

/* LMS */
.outline { padding-left: 1.2rem; }
.outline ul { list-style: none; padding: 0; margin: .4rem 0 1rem; }
.outline-lesson { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; padding: .5rem .7rem; border-radius: var(--radius-sm); background: var(--grey); margin-bottom: .35rem; }
.outline-lesson.is-done::before, .lesson-nav .is-done > a::before { content: "✓ "; color: var(--success); font-weight: 800; }
.lesson-layout { display: grid; gap: 2rem; padding: 1.5rem 0 3rem; }
@media (min-width: 1000px) { .lesson-layout { grid-template-columns: 280px 1fr; align-items: start; } .lesson-sidebar { position: sticky; top: 90px; } }
.lesson-sidebar { background: var(--grey); border-radius: var(--radius); padding: 1rem; }
.lesson-nav { list-style: none; padding: 0; margin: 0; }
.lesson-nav ul { list-style: none; padding: 0; margin: .2rem 0 .8rem; }
.lesson-nav a { display: block; padding: .35rem .5rem; border-radius: 6px; text-decoration: none; color: var(--night); font-size: .95rem; }
.lesson-nav a[aria-current="page"] { background: var(--violet); color: var(--white); }
.lesson-content { min-width: 0; }
.lesson-footer { display: grid; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--grey-2); }
.lesson-pager { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; }
.video-wrap { position: relative; aspect-ratio: 16 / 9; background: var(--night); border-radius: var(--radius); overflow: hidden; margin: 1rem 0; }
.video-wrap iframe, .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.transcript { margin-bottom: 1.5rem; }
.question { margin: 1rem 0; }
.question legend { font-weight: 700; }
.result { border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1rem 0; background: var(--grey); }
.result.is-pass { background: #E7F8EC; }
.result.is-fail { background: #FFF5D6; }
.correction { padding-left: 1.2rem; }
.correction .ok strong { color: var(--success); }
.correction .ko strong { color: var(--danger); }
.advice li { margin: .3rem 0; }
.sim-preview { min-height: 1.5em; color: var(--muted); }
details summary { cursor: pointer; font-weight: 700; padding: .6rem 0; }
.faq-item { border-bottom: 1px solid var(--grey-2); }

/* Pied de page */
.site-footer { background: var(--night); color: #D8D5EE; padding: 3rem 0 1.5rem; margin-top: 2rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--lime); text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.footer-logo { display: block; margin-bottom: .75rem; }
.footer-title { font-size: 1rem; color: var(--lime); margin: 0 0 .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1rem; }

/* Applications web */
.is-app .site-footer { margin-top: 0; }
.app-shell { padding: 1.25rem 0 3rem; }
.app-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.app-bar input[type="month"] { width: auto; }
.mobile-cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; margin: 0 0 1.5rem; border-radius: var(--radius); background: var(--night); color: var(--white); }
.mobile-cta strong { font-size: 1.4rem; color: var(--lime); }
@media (min-width: 900px) { .mobile-cta { display: none; } }
.app-bar h1 { font-size: 1.6rem; margin: 0; }
.save-state { font-size: .85rem; color: var(--muted); }
.save-state.is-error { color: var(--danger); font-weight: 700; }
.tabs { display: flex; gap: .3rem; overflow-x: auto; border-bottom: 2px solid var(--grey-2); margin-bottom: 1.25rem; }
.tabs button { flex: none; border: 0; background: none; padding: .7rem 1rem; font: inherit; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; cursor: pointer; min-height: 44px; }
.tabs button[aria-selected="true"] { color: var(--violet-dark); border-color: var(--violet); }
.tab-panel[hidden] { display: none; }
.stat-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin-bottom: 1.25rem; }
.stat { background: var(--grey); border-radius: var(--radius); padding: .9rem 1rem; }
.stat span { display: block; font-size: .85rem; color: var(--muted); }
.stat strong { font-size: 1.35rem; }
.stat.is-dark { background: var(--night); color: var(--white); } .stat.is-dark span { color: #D8D5EE; } .stat.is-dark strong { color: var(--lime); }
.neg { color: var(--danger); } .pos { color: var(--success); }
.bar-row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: .6rem; align-items: center; margin: .4rem 0; font-size: .92rem; }
.bar { height: 14px; background: var(--grey-2); border-radius: 999px; overflow: hidden; position: relative; }
.bar i { display: block; height: 100%; background: var(--violet); border-radius: 999px; }
.bar i.over { background: var(--danger); }
.bar i.lime { background: var(--lime-dark); }
.chart { width: 100%; height: auto; display: block; }
.chart text { font-size: 11px; fill: var(--muted); font-family: var(--font); }
.legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .85rem; }
.legend i { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; margin-right: .3rem; vertical-align: middle; }
.sw-violet { background: var(--violet); } .sw-lime { background: var(--lime-dark); } .sw-night { background: var(--night); } .sw-danger { background: var(--danger); }
.row-actions { display: flex; gap: .3rem; flex-wrap: wrap; }
.is-overdue { background: #FFF1F1; }
.quote-paper { background: var(--white); border: 1px solid var(--grey-2); border-radius: var(--radius-sm); padding: 1.5rem; }
.quote-paper h2 { margin-top: 0; }
.scenario-grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .scenario-grid { grid-template-columns: repeat(3, 1fr); } }
.scenario { border: 2px solid var(--grey-2); border-radius: var(--radius); padding: 1rem; }
.scenario h3 { margin-top: 0; }
.scenario label { font-size: .9rem; }
.explain { font-size: .82rem; color: var(--muted); margin: .2rem 0 0; }

/* Impression (export PDF via le navigateur) */
@media print {
  .site-header, .site-footer, .env-banner, .tabs, .no-print, .app-bar .btn, .flashes, .skip-link, .lesson-sidebar, form button { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .tab-panel[hidden].print-include { display: block !important; }
  .stat, .kpi { border: 1px solid #999; background: #fff !important; color: #000 !important; }
  .stat strong, .kpi strong { color: #000 !important; }
  a { color: #000; text-decoration: none; }
  .container { width: 100%; }
}
