/* Espace élèves du Bootcamp IA
   Layout : fond pastel en dégradé, en-tête collant (marque, navigation, recherche),
   hero centré, colonne de lecture de 720px avec sommaire collant à droite sur grand écran.
   Thème clair assumé : c'est la charte du bootcamp, toutes les couleurs sont posées. */

@font-face { font-family: 'VC Nudge Condensed'; src: url(fonts/vcnudge-condensed-800.woff2) format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'VC Nudge'; src: url(fonts/vcnudge-600.woff2) format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'SwissNow'; src: url(fonts/swissnow-400.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'SwissNow'; src: url(fonts/swissnow-500.woff2) format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Favorit Mono'; src: url(fonts/favoritmono-400.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --ink: #171717;
  --ink-2: #262626;
  --ink-3: #404040;
  --muted: #737373;
  --faint: #A1A1A1;
  --line: #E5E5E5;
  --track: #F0F0F0;
  --paper: #FFFFFF;
  --paper-80: rgba(255, 255, 255, 0.8);
  --peach: #FFE8C8;
  --rose: #FFE8E0;
  --lavender: #EAE7FB;
  --cream: #F7FEE7;
  --pill: #F9FEE7;
  --lime: #BEF264;
  --code-bar: #1F1F1F;
  --code-text: #F5F5F5;
  --shadow-card: 0 24px 60px -24px rgba(0, 0, 0, 0.35);
  --ring: 0 0 0 1px rgba(0, 0, 0, 0.05);
  --display: 'VC Nudge Condensed', 'Vcnudge', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --title: 'VC Nudge', 'Vcnudge', 'Helvetica Neue', Arial, sans-serif;
  --body: 'SwissNow', 'Swissnow', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'Favorit Mono', 'Abcfavoritmono Book', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--peach); scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  background: linear-gradient(var(--peach), var(--rose) 25%, var(--lavender) 50%, var(--rose) 75%, var(--peach));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--cream); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; line-height: 1.4; }

/* ---------- EN-TÊTE ---------- */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: rgba(255, 232, 200, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding-inline: 20px;
  padding-block: 12px;
  border-bottom: 1px solid rgba(23, 23, 23, 0.06);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1240px; margin: 0 auto; }
.brand { font-family: var(--title); font-weight: 600; font-size: 18px; line-height: 1.12; text-decoration: none; letter-spacing: -0.2px; display: flex; flex-direction: column; }
.brand small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 999px; color: var(--ink-3); }
.nav a:hover { background: rgba(255, 255, 255, 0.6); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--cream); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.search-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-size: 14px; color: var(--muted);
  background: var(--paper-80); border: 0; border-radius: 999px;
  padding: 9px 12px 9px 14px; cursor: pointer; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.search-btn:hover { box-shadow: 0 0 0 1.5px var(--ink); color: var(--ink); }
.kbd { font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--track); border-radius: 6px; padding: 2px 7px; }
.menu-btn { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 999px; background: var(--ink); color: var(--cream); cursor: pointer; }

/* Menu mobile */
.sheet { position: fixed; inset: 0; z-index: 60; display: none; }
.sheet.open { display: block; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(23, 23, 23, 0.35); }
.sheet-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw);
  background: var(--paper); padding: calc(20px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-card);
}
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-close { border: 0; background: var(--track); width: 36px; height: 36px; border-radius: 999px; cursor: pointer; font-size: 18px; }
.sheet nav { display: flex; flex-direction: column; gap: 2px; }
.sheet nav a { text-decoration: none; padding: 10px 12px; border-radius: 12px; font-size: 16px; }
.sheet nav a:hover, .sheet nav a[aria-current="page"] { background: var(--peach); }
.sheet .group-label { color: var(--faint); margin: 10px 12px 2px; }

/* ---------- RECHERCHE ---------- */
.palette { position: fixed; inset: 0; z-index: 70; display: none; }
.palette.open { display: block; }
.palette-backdrop { position: absolute; inset: 0; background: rgba(23, 23, 23, 0.35); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.palette-box {
  position: relative; margin: 10vh auto 0; width: min(640px, calc(100vw - 32px));
  background: var(--paper); border-radius: 20px; box-shadow: var(--shadow-card), 0 0 0 1px rgba(0, 0, 0, 0.06); overflow: hidden;
}
.palette-input-wrap { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.palette-input { flex: 1; min-width: 0; border: 0; outline: 0; font-family: var(--body); font-size: 17px; color: var(--ink); background: transparent; }
.palette-input::placeholder { color: var(--faint); }
.palette-results { max-height: min(60vh, 460px); overflow-y: auto; padding: 8px; margin: 0; list-style: none; }
.palette-results li a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; text-decoration: none; }
.palette-results li a .r-title { font-weight: 500; font-size: 15px; }
.palette-results li a .r-sub { font-size: 13px; color: var(--muted); }
.palette-results li a .r-group { color: var(--faint); }
.palette-results li.active a, .palette-results li a:hover { background: var(--peach); }
.palette-empty { padding: 22px 18px; color: var(--muted); font-size: 15px; }
.palette-foot { display: flex; gap: 14px; padding: 10px 18px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; }

/* ---------- HERO ---------- */
.hero { text-align: center; padding-inline: 20px; padding-block: 52px 16px; }
.hero-inner { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pill-light { display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--pill); border-radius: 999px; padding: 6px 12px; }
h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(42px, 7.4vw, 70px);
  line-height: 1.02; letter-spacing: 0.5px; margin: 0; text-wrap: balance;
}
.u { display: inline-block; border-bottom: 5px solid var(--ink); line-height: 0.9em; }
.lede { font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 600px; margin: 0; text-wrap: pretty; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); background: var(--paper-80); border-radius: 999px; padding: 6px 12px; box-shadow: var(--ring); text-decoration: none; }
a.chip:hover { box-shadow: 0 0 0 1.5px var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }

/* Fil d'Ariane */
.crumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--faint); }

/* ---------- BOUTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--body); font-size: 15px; line-height: 1;
  color: var(--cream); background: var(--ink); border: 0; border-radius: 8px; padding: 13px 18px; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.btn:hover { background: var(--ink-2); }
.btn-soft { color: var(--ink); background: var(--paper-80); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }
.btn-soft:hover { background: var(--paper); box-shadow: 0 0 0 1.5px var(--ink); }
.textlink { font-weight: 500; text-decoration: none; }
.textlink:hover { text-decoration: underline; }

/* ---------- MISE EN PAGE ---------- */
main { padding-inline: 20px; padding-block: 24px 40px; }
.wrap { max-width: 1120px; margin: 0 auto; }
.layout { display: grid; grid-template-columns: minmax(0, 720px); justify-content: center; gap: 56px; }
.layout.has-toc { grid-template-columns: minmax(0, 720px) 240px; }
.toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; padding: 4px 0 4px 18px; border-left: 1px solid rgba(23, 23, 23, 0.12); }
.toc .mono { color: var(--faint); margin-bottom: 10px; display: block; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc a { display: block; font-size: 14px; line-height: 1.35; color: var(--muted); text-decoration: none; padding: 5px 0; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--ink); font-weight: 500; }
.toc li.sub a { padding-left: 12px; font-size: 13px; }
.toc-mobile { display: none; }

/* ---------- CONTENU ---------- */
.prose { min-width: 0; font-size: 17px; color: var(--ink-3); }
.prose > * + * { margin-top: 16px; }
.prose p { margin: 0; text-wrap: pretty; }
.prose p + p { margin-top: 12px; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose em { color: var(--ink-2); }
.prose h2 {
  font-family: var(--title); font-weight: 600; font-size: clamp(28px, 4vw, 36px); line-height: 1.1; letter-spacing: -0.6px;
  color: var(--ink); margin: 56px 0 0; text-wrap: balance; scroll-margin-top: 96px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--body); font-weight: 500; font-size: 21px; line-height: 1.3; color: var(--ink); margin: 32px 0 0; scroll-margin-top: 96px; }
.prose h4 { font-family: var(--body); font-weight: 500; font-size: 17px; color: var(--ink); margin: 24px 0 0; }
.prose ul, .prose ol { margin: 12px 0 0; padding-left: 22px; }
.prose li { margin-top: 6px; }
.prose li::marker { color: var(--faint); }
.prose ol > li::marker { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.prose blockquote { margin: 16px 0 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--ink); color: var(--ink-2); font-size: 18px; }
.prose hr { border: 0; height: 1px; background: rgba(23, 23, 23, 0.12); margin: 40px 0; }
.prose code { font-family: var(--mono); font-size: 0.86em; background: rgba(255, 255, 255, 0.7); border-radius: 6px; padding: 1px 6px; color: var(--ink); }
.prose img { display: block; border-radius: 16px; box-shadow: var(--ring); margin-inline: auto; }
.prose figure { margin: 20px 0 0; }
.prose figcaption { font-size: 13px; color: var(--faint); text-align: center; margin-top: 8px; }

/* Encadrés */
.callout { background: var(--paper-80); border-radius: 16px; padding: 18px 20px; box-shadow: var(--ring); color: var(--ink-2); }
.callout > * + * { margin-top: 10px; }
.callout p + p { margin-top: 8px; }
.callout.tone-blue { background: rgba(234, 231, 251, 0.85); }
.callout.tone-yellow, .callout.tone-orange { background: rgba(255, 232, 200, 0.85); }
.callout.tone-green { background: rgba(247, 254, 231, 0.95); }
.callout.tone-purple { background: rgba(234, 231, 251, 0.85); }
.callout.tone-red, .callout.tone-pink { background: rgba(255, 232, 224, 0.95); }
.callout.tone-dark { background: var(--ink); color: var(--cream); }
.callout.tone-dark strong { color: var(--cream); }
.callout h2, .callout h3, .callout h4 { margin-top: 0 !important; }
.callout h2 { font-size: 24px; }
.apply-label { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px !important; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); background: var(--lime); border-radius: 999px; padding: 6px 12px; }

/* Cases à cocher (mise en application) */
.tasks { list-style: none; padding: 0 !important; display: flex; flex-direction: column; gap: 8px; margin-top: 12px !important; }
.tasks li { margin: 0; }
.task { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; background: var(--paper-80); border-radius: 12px; padding: 11px 14px; box-shadow: var(--ring); font-size: 16px; color: var(--ink-2); }
.task:hover { box-shadow: 0 0 0 1.5px var(--ink); }
.task input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.task .box { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; border: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: center; background: var(--paper); }
.task .box svg { opacity: 0; }
.task input:checked + .box { background: var(--ink); }
.task input:checked + .box svg { opacity: 1; }
.task input:checked ~ .t { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(23, 23, 23, 0.3); }
.task:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Blocs dépliables */
details.toggle { background: var(--paper-80); border-radius: 16px; box-shadow: var(--ring); overflow: hidden; }
details.toggle > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; font-weight: 500; color: var(--ink); font-size: 16px; }
details.toggle > summary::-webkit-details-marker { display: none; }
details.toggle > summary::after { content: ""; flex-shrink: 0; width: 10px; height: 10px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); margin-top: -4px; transition: transform .2s; }
details.toggle[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
details.toggle > .toggle-body { padding: 0 18px 18px; }
details.toggle > .toggle-body > * + * { margin-top: 12px; }
details.toggle.chatgpt > summary { color: var(--ink-3); }
details.toggle.chatgpt > summary .mono { color: var(--faint); margin-right: 8px; }
.prose details.toggle + details.toggle { margin-top: 10px; }

/* Prompts et code */
.code { background: var(--ink); color: var(--code-text); border-radius: 14px; overflow: hidden; margin-top: 16px; }
.code-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px 9px 16px; background: var(--code-bar); }
.code-top span { font-size: 12px; color: var(--faint); font-family: var(--body); }
.copy { font-family: var(--body); font-size: 12px; color: #D4D4D4; background: var(--ink-3); border: 0; border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.copy:hover { background: #525252; color: #FFF; }
.copy.ok { background: var(--lime); color: var(--ink); }
.code pre { margin: 0; padding: 16px 18px 18px; font-family: var(--mono); font-size: 13.5px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; max-height: 520px; overflow: auto; }
.code.long pre { max-height: 360px; }
.code pre code, .prose .code pre code { background: none; padding: 0; border-radius: 0; color: inherit; font-size: inherit; font-family: inherit; }
.code .expand { display: block; width: 100%; border: 0; background: var(--code-bar); color: #D4D4D4; font-family: var(--body); font-size: 13px; padding: 9px; cursor: pointer; }
.code.is-open pre { max-height: none; }

/* Tableaux */
.table-wrap { overflow-x: auto; background: var(--paper-80); border-radius: 16px; box-shadow: var(--ring); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap thead th, .table-wrap tr.head td { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, 0.6); }
.table-wrap td > * + * { margin-top: 6px; }

/* Colonnes */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.cols > div { min-width: 0; }
.cols > div > * + * { margin-top: 12px; }
.cols .callout { height: 100%; }

/* Cartes de liens */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 16px; }
.card-link { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); background: var(--paper-80); border-radius: 16px; padding: 16px 18px; box-shadow: var(--ring); transition: transform .15s ease, box-shadow .15s ease; min-width: 0; }
.card-link:hover { transform: translateY(-2px); box-shadow: 0 0 0 1.5px var(--ink); }
.card-link .k { color: var(--faint); }
.card-link .t { font-weight: 500; font-size: 16px; line-height: 1.3; }
.card-link .d { font-size: 14px; color: var(--muted); line-height: 1.45; }
.card-link .arrow { margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 500; }
.card-link.ext .arrow::after { content: " ↗"; }

/* Bas de page : précédent / suivant */
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 56px; }
.pager a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; background: var(--paper-80); border-radius: 16px; padding: 16px 18px; box-shadow: var(--ring); }
.pager a:hover { box-shadow: 0 0 0 1.5px var(--ink); }
.pager .mono { color: var(--faint); }
.pager .t { font-weight: 500; }
.pager .next { text-align: right; grid-column: 2; }
.back-home { display: inline-flex; margin-top: 18px; color: var(--muted); font-size: 14px; text-decoration: none; }
.back-home:hover { color: var(--ink); text-decoration: underline; }

/* Section intro de ressource */
.note { font-size: 14px; color: var(--muted); }
.updated { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }

/* ---------- ACCUEIL ---------- */
.home-sections { display: flex; flex-direction: column; gap: 64px; max-width: 1080px; margin: 0 auto; }
.section-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 24px; }
.section-head .mono { color: var(--faint); }
.section-head h2 { font-family: var(--title); font-weight: 600; font-size: clamp(32px, 5vw, 44px); line-height: 1.08; letter-spacing: -0.8px; margin: 0; text-wrap: balance; }
.section-head p { margin: 0; color: var(--muted); max-width: 560px; font-size: 17px; }

.quick { background: var(--ink); color: var(--cream); border-radius: 28px; padding: 28px; box-shadow: var(--shadow-card); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quick-intro { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 6px; }
.quick-intro .t { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: 0.3px; }
.quick-intro .d { color: rgba(247, 254, 231, 0.7); font-size: 14px; }
.quick a { display: flex; flex-direction: column; gap: 6px; background: #262626; border-radius: 18px; padding: 16px 18px; text-decoration: none; color: var(--cream); transition: background .15s; min-width: 0; }
.quick a:hover { background: #333; }
.quick a .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--peach); color: var(--ink); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.quick a .t { font-weight: 500; font-size: 16px; }
.quick a .d { font-size: 13px; color: rgba(247, 254, 231, 0.68); line-height: 1.4; }

.start { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 18px; position: relative; padding-bottom: 26px; }
.step::before { content: ""; position: absolute; left: 18px; top: 44px; bottom: 4px; width: 1px; background: rgba(23, 23, 23, 0.14); }
.step:last-child::before { display: none; }
.step .num { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 500; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.step a.step-card { display: flex; justify-content: space-between; align-items: center; gap: 14px; text-decoration: none; background: var(--paper-80); border-radius: 16px; padding: 14px 18px; box-shadow: var(--ring); min-width: 0; }
.step a.step-card:hover { box-shadow: 0 0 0 1.5px var(--ink); }
.step .st { font-weight: 500; font-size: 16px; }
.step .sd { font-size: 14px; color: var(--muted); }
.step .go { font-size: 18px; flex-shrink: 0; }

.modules { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.module-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); background: var(--paper-80); border-radius: 22px; padding: 18px; box-shadow: var(--ring); transition: transform .15s ease, box-shadow .15s ease; min-width: 0; }
.module-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1.5px var(--ink); }
.module-card .n { font-family: var(--display); font-weight: 800; font-size: 54px; line-height: 0.9; }
.module-card .t { font-family: var(--title); font-weight: 600; font-size: 20px; line-height: 1.12; letter-spacing: -0.3px; }
.module-card .d { font-size: 14px; color: var(--muted); line-height: 1.45; }
.module-card .when { margin-top: auto; color: var(--faint); }

.res-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.res-group { background: var(--paper-80); border-radius: 22px; padding: 20px; box-shadow: var(--ring); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.res-group .g { color: var(--faint); margin-bottom: 6px; }
.res-group a { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.res-group a:last-child { border-bottom: 0; }
.res-group a:hover .rt { text-decoration: underline; }
.res-group a .rk { color: var(--faint); flex-shrink: 0; font-size: 12px; }
.res-group a.ext .rk::after { content: " ↗"; }

.check-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; background: var(--paper); border-radius: 24px; padding: 26px 28px; box-shadow: 0 0 0 2px var(--ink), var(--shadow-card); text-decoration: none; color: var(--ink); max-width: 860px; margin: 0 auto; }
.check-card .t { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: 0.3px; }
.check-card .d { color: var(--muted); margin-top: 6px; }
.check-card .bar { height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; margin-top: 14px; }
.check-card .bar i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 999px; transition: width .3s; }
.check-card .count { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 8px; }

.coach { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 22px; align-items: start; background: var(--paper-80); border-radius: 24px; padding: 26px; box-shadow: var(--ring); max-width: 860px; margin: 0 auto; }
.coach img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--ink), 5px 5px 0 var(--lime); }

/* ---------- RESSOURCES (index) ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.filter { font-family: var(--body); font-size: 14px; color: var(--ink); background: var(--paper-80); border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--cream); box-shadow: none; }
.res-section + .res-section { margin-top: 40px; }
.res-section h2 { font-family: var(--title); font-weight: 600; font-size: 28px; letter-spacing: -0.5px; margin: 0 0 4px; }
.res-section > p { margin: 0 0 14px; color: var(--muted); }

/* ---------- PROMPT LIBRARY ---------- */
.lib-tools { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.lib-search { width: 100%; font-family: var(--body); font-size: 16px; padding: 13px 16px; border-radius: 12px; border: 0; background: var(--paper); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); color: var(--ink); }
.lib-search:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.lib-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.lib-count { font-size: 13px; color: var(--muted); }
.lib-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.lib-item { background: var(--paper-80); border-radius: 16px; box-shadow: var(--ring); }
.lib-item > summary { list-style: none; cursor: pointer; padding: 15px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: start; }
.lib-item > summary::-webkit-details-marker { display: none; }
.lib-item .li-name { font-weight: 500; color: var(--ink); font-size: 16px; }
.lib-item .li-obj { grid-column: 1; font-size: 14px; color: var(--muted); }
.lib-item .li-tags { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 999px; padding: 4px 9px; background: var(--track); color: var(--ink-3); white-space: nowrap; }
.tag.l1 { background: var(--pill); color: var(--ink); box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.tag.l2 { background: var(--peach); color: var(--ink); }
.tag.l3 { background: var(--ink); color: var(--cream); }
.lib-body { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--ink-2); }
.lib-body .when { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lib-body .when div { background: rgba(255,255,255,.7); border-radius: 12px; padding: 10px 12px; }
.lib-body .when .mono { color: var(--faint); display: block; margin-bottom: 4px; }
.lib-body .code { margin-top: 0; }

/* ---------- CHECKLIST ---------- */
.cl-progress { display: flex; align-items: center; gap: 10px; }
.cl-progress .count { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.cl-progress .track { width: 110px; height: 6px; border-radius: 999px; background: rgba(23, 23, 23, 0.1); overflow: hidden; }
.cl-progress .track span { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 999px; transition: width .3s; }

/* ---------- PIED DE PAGE ---------- */
footer.site { max-width: 1120px; margin: 40px auto 0; padding-inline: 20px; padding-block: 22px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: 13px; color: var(--muted); border-top: 1px solid rgba(23, 23, 23, 0.1); }
footer.site a { color: var(--muted); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .layout.has-toc { grid-template-columns: minmax(0, 720px); }
  .toc { display: none; }
  .toc-mobile { display: block; margin-bottom: 8px; }
  .modules { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 22px; }
  .res-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .brand { font-size: 16px; }
  .search-btn .label, .search-btn .kbd { display: none; }
  .search-btn { padding: 10px; }
  .hero { padding-block: 36px 8px; }
  .prose { font-size: 16px; }
  .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-card .n { font-size: 44px; }
  .res-groups { grid-template-columns: minmax(0, 1fr); }
  .quick { grid-template-columns: minmax(0, 1fr); border-radius: 22px; }
  .check-card { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .coach { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager .next { grid-column: 1; }
  .lib-body .when { grid-template-columns: minmax(0, 1fr); }
  .lib-item > summary { grid-template-columns: minmax(0, 1fr); }
  .lib-item .li-tags { grid-column: 1; grid-row: auto; justify-content: flex-start; }
  .step { grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; }
  .step .num { width: 32px; height: 32px; font-size: 14px; }
  .step::before { left: 15.5px; top: 38px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Prompts en texte continu ---------- */
.copy-all { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; padding: 14px 16px; background: var(--paper-80); border-radius: 16px; box-shadow: var(--ring); }
.copy-all .note { margin: 0; }
.prompt-prose { border-left: 2px solid var(--peach); padding-left: 20px; }

/* ---------- Pages rapatriées ---------- */
.legacy { overflow-wrap: anywhere; }
.legacy img { max-width: 100%; height: auto; }
.legacy pre { white-space: pre-wrap; }
.prose .modules { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin: 16px 0 8px; }
.prose .module-card { text-decoration: none; }

/* ---------- Vidéo 1 du module ---------- */
.video-card { width: 100%; max-width: 720px; display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 8px; }
.video-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--ink); box-shadow: var(--shadow-card); }
.video-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.video-thumb .play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--ink); display: flex; align-items: center; justify-content: center; padding-left: 4px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .55); transition: transform .2s ease; }
.video-thumb .vmeta { position: absolute; left: 14px; bottom: 14px; background: rgba(23, 23, 23, .8); color: #FFF; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.video-thumb:hover img { transform: scale(1.025); }
.video-thumb:hover .play { transform: scale(1.06); }
.video-thumb:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.video-card .note { margin: 0; }
@media (prefers-reduced-motion: reduce) { .video-thumb img, .video-thumb .play { transition: none; } .video-thumb:hover img, .video-thumb:hover .play { transform: none; } }
@media (max-width: 620px) { .video-thumb { border-radius: 16px; } .video-thumb .play { width: 58px; height: 58px; } }

/* ---------- Accueil : les 10 compétences, cochables ---------- */
.skills { background: var(--paper-80); border-radius: 28px; box-shadow: var(--ring); padding: 28px; display: flex; flex-direction: column; gap: 22px; scroll-margin-top: 96px; }
.skills-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.skills-head .mono { color: var(--faint); }
.skills-head h2 { font-family: var(--title); font-weight: 600; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.1; letter-spacing: -0.8px; margin: 6px 0 8px; color: var(--ink); text-wrap: balance; }
.skills-head p { margin: 0; color: var(--muted); max-width: 52ch; }
.skills-progress { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.skills-progress .count { font-family: var(--mono); font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.skills-progress .track { display: block; width: 180px; height: 6px; background: var(--track); border-radius: 99px; overflow: hidden; }
.skills-progress .track i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: inherit; transition: width .3s ease; }
.skills-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.skills-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.skills-group .g { color: var(--faint); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 0 4px 2px; }
.mini-item { position: relative; display: flex; align-items: flex-start; background: #FFF; border-radius: 16px; box-shadow: var(--ring); transition: box-shadow .15s ease, background .15s ease; }
.mini-item:hover { box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); }
.mini-item label { flex: 1; display: flex; align-items: flex-start; gap: 12px; padding: 12px 4px 12px 12px; cursor: pointer; min-width: 0; }
.mini-item input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.mini-item .box { flex-shrink: 0; width: 24px; height: 24px; margin-top: 1px; border-radius: 7px; background: #FFF; border: 1.5px solid rgba(23, 23, 23, .35); color: #FFF; display: flex; align-items: center; justify-content: center; transition: background .15s ease, border-color .15s ease; }
.mini-item .box svg { opacity: 0; transition: opacity .15s ease; }
.mini-item label:hover .box { border-color: var(--ink); }
.mini-item input:checked + .box { background: var(--ink); border-color: var(--ink); }
.mini-item input:checked + .box svg { opacity: 1; }
.mini-item input:focus-visible + .box { outline: 2px solid var(--ink); outline-offset: 2px; }
.mini-item.is-done { background: var(--cream); }
.mini-item.is-done .mi-t { color: var(--ink-3); }
.mini-item .mi-text { min-width: 0; }
.mini-item .mi-t { display: block; font-weight: 500; font-size: 15px; line-height: 1.3; color: var(--ink); }
.mini-item .mi-m { display: block; font-size: 12px; line-height: 1.35; color: var(--faint); margin-top: 4px; }
.mini-item .mi-go { flex-shrink: 0; align-self: center; width: 32px; height: 32px; margin-right: 6px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--faint); text-decoration: none; }
.mini-item .mi-go:hover, .mini-item .mi-go:focus-visible { color: var(--ink); background: var(--track); }
.skills-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.skills-foot .note { margin: 0; }
@media (max-width: 1000px) { .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .skills { padding: 20px 16px; border-radius: 22px; } .skills-grid { grid-template-columns: minmax(0, 1fr); } .skills-progress { align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { .skills-progress .track i, .mini-item, .mini-item .box { transition: none; } }

/* ---------- Prompt Library : flèche d'ouverture ---------- */
.lib-item > summary { position: relative; padding-right: 50px; transition: background .15s ease; border-radius: 16px; }
.lib-item > summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-75%) rotate(45deg); transition: transform .2s ease; }
.lib-item[open] > summary::after { transform: translateY(-25%) rotate(-135deg); }
.lib-item > summary:hover { background: rgba(255, 255, 255, .7); }
.lib-item > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .lib-item > summary::after, .lib-item > summary { transition: none; } }
