/* ==================================================================
   DATA NOVICE AREA — feuille de style
   Bleu du logo (#0077CB) + blanc. Titres en Barlow Condensed (écho
   aux lettres du logo), texte en Barlow.
   ================================================================== */
:root {
  --blue: #0077cb;
  --blue-deep: #005a9c;
  --blue-ink: #0b2545;
  --sky: #8cc4ef;
  --mist: #eaf3fb;
  --line: #cfe1f2;
  --white: #ffffff;
  --text: #0b2545;
  --muted: #4a6180;
  --ok: #13875b;
  --ok-bg: #e6f5ee;
  --err: #c2362f;
  --err-bg: #fbeceb;
  --warn: #9a5b00;
  --warn-bg: #fff4e0;

  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-s: 4px;
  --radius-m: 10px;
  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); text-underline-offset: 3px; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--sky); color: var(--blue-ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 .5em;
  letter-spacing: .005em;
}
h1 { font-size: clamp(40px, 6.4vw, 78px); text-transform: uppercase; }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 24px; font-weight: 600; }
h4 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--mist { background: var(--mist); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 19px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.hidden, [hidden] { display: none !important; }

/* ---------------- En-tête ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue); }
.brand svg { width: 30px; height: 38px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: .04em; line-height: 1; }
.brand-sub { display: block; font-family: var(--font-display); font-weight: 600; font-size: 12.5px; letter-spacing: .12em; color: var(--blue-deep); margin-top: 2px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; color: var(--text); font-weight: 500; padding: 8px 12px; border-radius: var(--radius-s); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue-deep); background: var(--mist); }
.nav .btn { margin-left: 6px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 10px; cursor: pointer; color: var(--blue-ink); }
.nav-toggle svg { display: block; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 8px; }
  .nav .btn { margin: 8px 0 0; }
}

/* ---------------- Boutons & formulaires ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 var(--font-body);
  padding: 13px 22px; border-radius: var(--radius-s);
  border: 2px solid var(--blue); background: var(--blue); color: var(--white);
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--white); }
.btn--ghost { background: transparent; color: var(--blue-deep); }
.btn--ghost:hover { background: var(--mist); color: var(--blue-deep); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--blue-deep); }
.btn--light:hover { background: var(--mist); border-color: var(--mist); color: var(--blue-deep); }
.btn--danger { background: var(--white); border-color: var(--err); color: var(--err); }
.btn--danger:hover { background: var(--err-bg); color: var(--err); border-color: var(--err); }
.btn--small { padding: 8px 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field { margin-bottom: 18px; }
.field-hint { font-size: 14px; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=tel],
input[type=search], select, textarea {
  width: 100%; font: 16px/1.4 var(--font-body); color: var(--text);
  padding: 11px 12px; border: 1px solid #a9c4de; border-radius: var(--radius-s); background: var(--white);
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 2px solid var(--sky); outline-offset: 0; }
textarea { min-height: 120px; resize: vertical; }
textarea.code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 14px; min-height: 260px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--blue); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }

/* Messages */
.notice { padding: 14px 16px; border-radius: var(--radius-s); border-left: 4px solid var(--blue); background: var(--mist); margin: 0 0 18px; }
.notice--ok { border-color: var(--ok); background: var(--ok-bg); }
.notice--err { border-color: var(--err); background: var(--err-bg); }
.notice--warn { border-color: var(--warn); background: var(--warn-bg); }
.notice p:last-child { margin-bottom: 0; }
.toast-zone { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(92vw, 460px); }
.toast { padding: 12px 16px; border-radius: var(--radius-s); background: var(--blue-ink); color: var(--white); box-shadow: 0 8px 30px rgba(11, 37, 69, .25); }
.toast--err { background: var(--err); }
.toast--ok { background: var(--ok); }

/* ---------------- Accueil : héro ---------------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 7vw, 90px) 0 clamp(48px, 8vw, 100px);
  background-color: var(--white);
  background-image:
    linear-gradient(var(--mist) 1px, transparent 1px),
    linear-gradient(90deg, var(--mist) 1px, transparent 1px);
  background-size: 34px 34px;
  background-position: -1px -1px;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero h1 { color: var(--blue-ink); margin-bottom: 22px; }
.hero .lead { margin-bottom: 30px; }
.hero-note { margin-top: 18px; font-size: 15px; color: var(--muted); }
.helix { width: 100%; max-width: 380px; margin: 0 auto; }
.helix svg { width: 100%; height: auto; overflow: visible; }
.helix .rung { opacity: 0; animation: rung-in .5s ease-out forwards; }
@keyframes rung-in { from { opacity: 0; transform: scaleX(.3); } to { opacity: 1; transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .helix .rung { animation: none; opacity: 1; } html { scroll-behavior: auto; } }
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .helix { max-width: 260px; order: -1; }
}

/* Publics */
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 3px solid var(--blue); }
.audience { padding: 26px 26px 6px 0; }
.audience + .audience { padding-left: 26px; border-left: 1px solid var(--line); }
.audience h3 { color: var(--blue-deep); }
.audience p { color: var(--muted); }
@media (max-width: 800px) {
  .audiences { grid-template-columns: 1fr; }
  .audience, .audience + .audience { padding: 22px 0 4px; border-left: 0; border-top: 1px solid var(--line); }
  .audience:first-child { border-top: 0; }
}

/* Étapes (vraie séquence) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--sky) 0 8px, transparent 8px 14px); }
.steps li { position: relative; counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%; margin-bottom: 16px;
  background: var(--blue); color: var(--white); font: 700 22px/1 var(--font-display);
  box-shadow: 0 0 0 6px var(--mist); position: relative;
}
.steps h3 { font-size: 22px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Histoire */
.story { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.story-logo { width: 100%; max-width: 240px; }
.story blockquote { margin: 0 0 1.2em; padding-left: 20px; border-left: 3px solid var(--blue); font-size: 21px; color: var(--blue-ink); }
@media (max-width: 760px) { .story { grid-template-columns: 1fr; } .story-logo { max-width: 160px; } }

/* Entreprises */
.b2b { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.b2b ul { padding-left: 1.1em; margin: 0 0 1.4em; }
.b2b li { margin-bottom: .5em; }
.b2b-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(20px, 3vw, 32px); }
@media (max-width: 860px) { .b2b { grid-template-columns: 1fr; } }

/* ---------------- Cartes de formation ---------------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.course-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: var(--white);
  transition: border-color .15s, transform .15s;
}
.course-card:hover { border-color: var(--blue); transform: translateY(-2px); color: inherit; }
.course-cover { aspect-ratio: 16 / 9; background: var(--blue); position: relative; overflow: hidden; }
.course-cover img { width: 100%; height: 100%; object-fit: cover; }
.course-cover .cover-gen {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px 18px;
  color: var(--white); font: 700 44px/0.9 var(--font-display); text-transform: uppercase; letter-spacing: .02em;
  background-image:
    linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 26px 26px;
}
.cover-gen[data-cat="powerbi"] { background-color: #0a5fa3; }
.cover-gen[data-cat="python"]  { background-color: #1b4f8c; }
.cover-gen[data-cat="sql"]     { background-color: #0b3d6e; }
.cover-gen[data-cat="data"], .cover-gen[data-cat="autre"] { background-color: #2a6fb0; }
.course-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.course-body h3 { font-size: 23px; margin: 0; }
.course-body p { color: var(--muted); font-size: 15.5px; margin: 0; }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; padding-top: 12px; font-size: 14px; color: var(--muted); }
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--mist); color: var(--blue-deep); font-size: 13px; font-weight: 600; }
.tag--ok { background: var(--ok-bg); color: var(--ok); }
.tag--warn { background: var(--warn-bg); color: var(--warn); }
.tag--err { background: var(--err-bg); color: var(--err); }
.price { margin-left: auto; font: 700 21px/1 var(--font-display); color: var(--blue-ink); }
.progress { height: 6px; background: var(--mist); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.upcoming { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; align-items: center; }
.empty { padding: 40px; text-align: center; border: 1px dashed #a9c4de; border-radius: var(--radius-m); color: var(--muted); }
.skeleton { background: linear-gradient(90deg, var(--mist), #f5f9fd, var(--mist)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius-m); min-height: 280px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Filtres catalogue */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.filters > * { flex: 1 1 180px; }
.filters input[type=search] { flex: 2 1 260px; }

/* ---------------- Page formation ---------------- */
.course-hero { background: var(--mist); padding: clamp(36px, 6vw, 70px) 0; border-bottom: 1px solid var(--line); }
.course-hero .wrap { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.course-hero h1 { font-size: clamp(34px, 5vw, 58px); text-transform: none; }
.buy-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 24px; position: sticky; top: 90px; }
.buy-box .price { font-size: 38px; display: block; margin: 0 0 4px; }
.buy-box .alt-price { color: var(--muted); margin-bottom: 18px; }
.buy-box .btn { width: 100%; margin-bottom: 10px; }
.instructor { display: flex; gap: 12px; align-items: center; margin-top: 20px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: var(--white); display: grid; place-items: center; font: 700 18px/1 var(--font-display); overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.course-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; }
@media (max-width: 900px) {
  .course-hero .wrap, .course-layout { grid-template-columns: 1fr; }
  .buy-box { position: static; }
}

.syllabus { list-style: none; margin: 0; padding: 0; counter-reset: mod; }
.syllabus > li { counter-increment: mod; border-top: 1px solid var(--line); padding: 18px 0; }
.syllabus > li > h3::before { content: "Module " counter(mod) " · "; color: var(--blue); }
.syllabus ol { list-style: none; padding: 0; margin: 8px 0 0; }
.syllabus ol li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.syllabus ol li:last-child { border-bottom: 0; }
.syllabus ol a { font-weight: 500; }
.lesson-state { width: 22px; height: 22px; flex: none; color: var(--muted); }
.lesson-state--done { color: var(--ok); }
.syllabus .dur { margin-left: auto; font-size: 14px; color: var(--muted); white-space: nowrap; }

/* Modale */
dialog { border: 0; border-radius: var(--radius-m); padding: 0; width: min(560px, 94vw); box-shadow: 0 30px 80px rgba(11, 37, 69, .35); color: var(--text); }
dialog::backdrop { background: rgba(11, 37, 69, .55); }
.dialog-body { padding: 26px; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialog-close { background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); }
.pay-options { display: grid; gap: 10px; margin: 16px 0; }
.pay-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-s); cursor: pointer; font-weight: 400; margin: 0; }
.pay-option:has(input:checked) { border-color: var(--blue); background: var(--mist); }
.pay-option input { accent-color: var(--blue); margin-top: 4px; }
.pay-option strong { display: block; }
.instructions { white-space: pre-line; background: var(--mist); padding: 12px 14px; border-radius: var(--radius-s); font-size: 15px; }

/* ---------------- Leçon ---------------- */
.lesson-layout { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding: 30px 0 80px; }
.outline { position: sticky; top: 90px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; border-right: 1px solid var(--line); padding-right: 18px; }
.outline summary { font: 700 20px/1.2 var(--font-display); cursor: pointer; list-style: none; padding: 6px 0 12px; }
.outline summary::-webkit-details-marker { display: none; }
.outline h4 { font-size: 16px; margin: 16px 0 6px; color: var(--muted); font-family: var(--font-body); font-weight: 600; }
.outline ol { list-style: none; margin: 0; padding: 0; }
.outline li a { display: flex; gap: 8px; align-items: flex-start; padding: 7px 8px; border-radius: var(--radius-s); text-decoration: none; color: var(--text); font-size: 15px; line-height: 1.35; }
.outline li a:hover { background: var(--mist); }
.outline li a[aria-current="page"] { background: var(--blue); color: var(--white); }
.outline li a[aria-current="page"] .lesson-state { color: var(--white); }
.outline .lesson-state { width: 18px; height: 18px; margin-top: 1px; }
.lesson-main { min-width: 0; max-width: 820px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.lesson-main h1 { font-size: clamp(32px, 4.4vw, 50px); text-transform: none; }
@media (max-width: 900px) {
  .lesson-layout { grid-template-columns: 1fr; gap: 10px; padding-top: 16px; }
  .outline { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 10px; }
}

.prose { font-size: 18px; line-height: 1.7; }
.prose h2 { font-size: 32px; margin-top: 1.4em; }
.prose h3 { font-size: 24px; margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 3px solid var(--blue); background: var(--mist); }
.prose code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: var(--mist); padding: 2px 6px; border-radius: 3px; }
.prose pre { background: var(--blue-ink); color: #e8f1fa; padding: 16px; border-radius: var(--radius-s); overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose th { background: var(--mist); }
.prose img { border-radius: var(--radius-s); }

.resources { display: grid; gap: 18px; margin: 26px 0; }
.resource { border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.resource-head { display: flex; gap: 10px; align-items: center; padding: 12px 16px; background: var(--mist); font-weight: 600; }
.resource-head .tag { background: var(--white); }
.resource-body { padding: 14px 16px; }
.resource video, .resource iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; display: block; }
.resource audio { width: 100%; }

.quiz { margin: 40px 0 20px; border: 2px solid var(--blue); border-radius: var(--radius-m); padding: clamp(20px, 3vw, 30px); }
.quiz h2 { font-size: 32px; }
.quiz fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.quiz legend { font-weight: 600; font-size: 18px; margin-bottom: 10px; padding: 0; }
.quiz .choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); margin-bottom: 8px; font-weight: 400; cursor: pointer; }
.quiz .choice:has(input:checked) { border-color: var(--blue); background: var(--mist); }
.quiz .choice input { accent-color: var(--blue); margin-top: 5px; }
.quiz .choice.is-right { border-color: var(--ok); background: var(--ok-bg); }
.quiz .choice.is-wrong { border-color: var(--err); background: var(--err-bg); }
.quiz .explain { font-size: 15.5px; padding: 10px 12px; border-radius: var(--radius-s); background: var(--mist); }
.quiz-result { font: 700 26px/1.2 var(--font-display); margin-bottom: 10px; }
.lesson-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.locked { text-align: center; padding: 50px 20px; border: 1px dashed #a9c4de; border-radius: var(--radius-m); }
.locked svg { width: 44px; height: 44px; color: var(--blue); margin: 0 auto 10px; }

/* ---------------- Connexion / compte ---------------- */
.auth-wrap { max-width: 460px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--gutter); }
.tabs { display: flex; border-bottom: 2px solid var(--line); margin-bottom: 26px; gap: 4px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; padding: 12px 14px; font: 600 16px/1 var(--font-body); color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs button[aria-selected="true"] { color: var(--blue-deep); border-bottom-color: var(--blue); }
.page-head { padding: clamp(32px, 5vw, 56px) 0 20px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); }
.panel { border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(18px, 3vw, 28px); margin-bottom: 26px; background: var(--white); }
.panel h2 { font-size: 28px; }
.account-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: start; padding-bottom: 60px; }
@media (max-width: 900px) { .account-grid { grid-template-columns: 1fr; } }
.my-course { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.my-course:last-child { border-bottom: 0; }
.my-course h3 { font-size: 21px; margin: 0; }
.my-course .progress { grid-column: 1 / -1; }

/* Tableaux (studio / admin) */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th, table.data td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------------- Studio formateur ---------------- */
.studio { display: grid; grid-template-columns: 280px 1fr; gap: 30px; padding-bottom: 80px; align-items: start; }
.studio-list { list-style: none; padding: 0; margin: 0 0 16px; }
.studio-list button { width: 100%; text-align: left; background: none; border: 1px solid transparent; border-radius: var(--radius-s); padding: 10px 12px; cursor: pointer; font: 500 15px/1.35 var(--font-body); color: var(--text); display: grid; gap: 4px; }
.studio-list button:hover { background: var(--mist); }
.studio-list button[aria-current="true"] { border-color: var(--blue); background: var(--mist); }
.module-block { border: 1px solid var(--line); border-radius: var(--radius-s); margin-bottom: 14px; }
.module-block > header { display: flex; gap: 8px; align-items: center; padding: 10px 12px; background: var(--mist); flex-wrap: wrap; }
.module-block > header input { flex: 1 1 200px; font-weight: 600; }
.module-block ul { list-style: none; margin: 0; padding: 6px 12px 12px; }
.module-block li { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.module-block li span.t { flex: 1 1 200px; }
.icon-btn { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 5px 9px; cursor: pointer; font-size: 14px; color: var(--blue-ink); }
.icon-btn:hover { border-color: var(--blue); }
.q-editor { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px; margin-bottom: 14px; }
.q-choice { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.q-choice input[type=radio] { accent-color: var(--ok); width: 18px; height: 18px; flex: none; }
.res-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.res-row span.t { flex: 1 1 200px; }
@media (max-width: 900px) { .studio { grid-template-columns: 1fr; } }

/* ---------------- Pied de page ---------------- */
.site-footer { background: var(--blue-ink); color: #cfe0f2; padding: 56px 0 30px; margin-top: auto; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { color: var(--white); font-size: 18px; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand { font: 700 34px/1 var(--font-display); color: var(--white); letter-spacing: .04em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 36px; padding-top: 18px; font-size: 14px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.legal h2 { font-size: 30px; margin-top: 1.4em; }
.center { text-align: center; }

/* Hélice : apparition des barreaux l'un après l'autre (une seule animation sur le site) */
.helix .rung { transform-box: fill-box; transform-origin: center; }
.helix .r1 { animation-delay: 0.22s; }
.helix .r2 { animation-delay: 0.29s; }
.helix .r3 { animation-delay: 0.36s; }
.helix .r4 { animation-delay: 0.43s; }
.helix .r5 { animation-delay: 0.50s; }
.helix .r6 { animation-delay: 0.57s; }
.helix .r7 { animation-delay: 0.64s; }
.helix .r8 { animation-delay: 0.71s; }
.helix .r9 { animation-delay: 0.78s; }
.helix .r10 { animation-delay: 0.85s; }
.helix .r11 { animation-delay: 0.92s; }
.helix .r12 { animation-delay: 0.99s; }
.helix .r13 { animation-delay: 1.06s; }
.helix .r14 { animation-delay: 1.13s; }
.helix .r15 { animation-delay: 1.20s; }
.helix .r16 { animation-delay: 1.27s; }
.center .btn-row { justify-content: center; }
.center p { margin-left: auto; margin-right: auto; }
.panel .skeleton { min-height: 90px; }
.panel hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
#catalogue { margin-bottom: clamp(56px, 9vw, 110px); }
.buy-box .course-cover { border-radius: 6px; margin-bottom: 16px; }
.locked .btn-row { justify-content: center; }
.outline summary::after { content: " ▾"; color: var(--blue); } .outline details[open] summary::after { content: ""; }
.prose blockquote p:last-child { margin-bottom: 0; }
