/* ===== Académie IA — feuille de style ===== */
:root {
  --encre: #13233a;
  --texte: #25313f;
  --doux: #5c6978;
  --fond: #f6f3ec;
  --carte: #ffffff;
  --trait: #e2dccf;
  --marque: #0b6b5c;
  --marque-2: #0e8572;
  --marque-pale: #e3f1ed;
  --ambre: #d98a1f;
  --ambre-pale: #fbf0dc;
  --ok: #1a7f4b;
  --ok-pale: #e4f4ea;
  --ko: #b3372e;
  --ko-pale: #fbe9e7;
  --rayon: 12px;
  --ombre: 0 1px 2px rgba(19, 35, 58, .06), 0 6px 20px rgba(19, 35, 58, .06);
  --police: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --titre: Georgia, "Iowan Old Style", "Times New Roman", serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--police); color: var(--texte); background: var(--fond); line-height: 1.6; font-size: 16px; }
h1, h2, h3 { color: var(--encre); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-family: var(--titre); font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-family: var(--titre); font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.1rem; margin-top: 1.6em; }
p { margin: 0 0 1em; }
a { color: var(--marque); }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ambre); outline-offset: 2px; border-radius: 4px; }
.saut { position: absolute; left: -999px; top: 0; background: var(--encre); color: #fff; padding: 8px 14px; z-index: 100; }
.saut:focus { left: 8px; top: 8px; }
.enveloppe { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.etroit { max-width: 780px; }
.section { padding-top: 56px; padding-bottom: 56px; }
.sur-titre { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--marque); margin-bottom: 10px; }
.doux { color: var(--doux); }
.centre { text-align: center; }

/* ----- Boutons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; text-decoration: none; cursor: pointer; background: var(--marque); color: #fff; transition: background .15s, transform .05s; }
.btn:hover { background: var(--marque-2); }
.btn:active { transform: translateY(1px); }
.btn.clair { background: transparent; color: var(--marque); border-color: var(--marque); }
.btn.clair:hover { background: var(--marque-pale); }
.btn.ambre { background: var(--ambre); color: #1d1405; }
.btn.ambre:hover { background: #e79a31; }
.btn.petit { padding: 7px 14px; font-size: .9rem; }
.btn.large { padding: 14px 28px; font-size: 1.05rem; }
.btn.bloc { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.lien-btn { background: none; border: 0; padding: 0; color: var(--marque); text-decoration: underline; cursor: pointer; }

/* ----- En-tête ----- */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--trait); backdrop-filter: blur(6px); }
.entete .barre { display: flex; align-items: center; gap: 18px; min-height: 62px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--titre); font-weight: 700; font-size: 1.2rem; color: var(--encre); text-decoration: none; }
.logo .pastille { width: 32px; height: 32px; border-radius: 9px; background: var(--marque); color: #fff; display: grid; place-items: center; font-family: var(--police); font-size: .85rem; letter-spacing: .02em; }
.nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--texte); font-weight: 500; font-size: .95rem; }
.nav a:hover { background: var(--fond); }
.nav a.actif { color: var(--marque); background: var(--marque-pale); }
.entete .droite { display: flex; align-items: center; gap: 10px; }
.pilule { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--encre); text-decoration: none; padding: 6px 12px; border: 1px solid var(--trait); border-radius: 999px; background: #fff; }
.mini-barre { width: 70px; height: 6px; background: var(--trait); border-radius: 99px; overflow: hidden; }
.mini-barre i { display: block; height: 100%; background: var(--marque); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--encre); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; text-decoration: none; }

/* ----- Accueil ----- */
.hero { background: linear-gradient(160deg, #0c2f3a 0%, #0b6b5c 100%); color: #eaf4f1; padding: 72px 0 64px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .grille { display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center; }
.hero p.chapo { font-size: 1.15rem; max-width: 54ch; color: #d5e9e4; }
.hero .sur-titre { color: #f3c77a; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero .btn.clair { color: #fff; border-color: rgba(255, 255, 255, .55); }
.hero .btn.clair:hover { background: rgba(255, 255, 255, .12); }
.hero .meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; font-size: .92rem; color: #cfe5df; }
.apercu { background: #fff; color: var(--texte); border-radius: 16px; padding: 22px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.apercu h3 { margin: 0 0 12px; font-size: 1rem; }
.apercu ol { list-style: none; padding: 0; margin: 0; }
.apercu li { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--trait); font-size: .93rem; }
.apercu li:first-child { border-top: 0; }
.puce { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--trait); display: grid; place-items: center; font-size: .7rem; color: #fff; }
.puce.fait { background: var(--ok); border-color: var(--ok); }
.puce.cours { border-color: var(--ambre); }
.chiffres { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: -34px; position: relative; }
.chiffre { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 18px; text-align: center; box-shadow: var(--ombre); }
.chiffre b { display: block; font-family: var(--titre); font-size: 1.9rem; color: var(--marque); line-height: 1.1; }
.chiffre span { font-size: .85rem; color: var(--doux); }
.deux-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; padding: 0; list-style: none; margin: 22px 0 0; }
.deux-col li { padding-left: 30px; position: relative; }
.deux-col li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%; background: var(--marque-pale); color: var(--marque); font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.etapes4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 22px; box-shadow: var(--ombre); }
.carte h3 { margin-top: 0; }
.etapes4 .num { font-family: var(--titre); font-size: 1.6rem; color: var(--ambre); font-weight: 700; }
.bande { background: #fff; border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
details.faq { border-bottom: 1px solid var(--trait); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 600; color: var(--encre); }
details.faq p { margin: 10px 0 0; color: var(--doux); }

/* ----- Sommaire ----- */
.tete-page { background: #fff; border-bottom: 1px solid var(--trait); padding: 36px 0 28px; }
.tete-page p { color: var(--doux); max-width: 70ch; margin: 0; }
.module { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); margin-bottom: 14px; overflow: hidden; }
.module > summary { list-style: none; cursor: pointer; padding: 18px 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.module > summary::-webkit-details-marker { display: none; }
.module .numero { width: 46px; height: 46px; border-radius: 12px; background: var(--marque-pale); color: var(--marque); display: grid; place-items: center; font-family: var(--titre); font-weight: 700; font-size: 1.15rem; }
.module.termine .numero { background: var(--ok); color: #fff; }
.module .titre-mod { font-weight: 700; color: var(--encre); font-size: 1.08rem; }
.module .sous { font-size: .88rem; color: var(--doux); }
.module .cote { text-align: right; font-size: .85rem; color: var(--doux); min-width: 110px; }
.barre-prog { height: 6px; background: var(--trait); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.barre-prog i { display: block; height: 100%; background: var(--marque); border-radius: 99px; }
.liste-chap { list-style: none; margin: 0; padding: 0 20px 14px 82px; }
.liste-chap li { border-top: 1px solid var(--trait); }
.liste-chap a { display: flex; align-items: center; gap: 12px; padding: 11px 0; text-decoration: none; color: var(--texte); }
.liste-chap a:hover .lib { color: var(--marque); text-decoration: underline; }
.liste-chap .duree { margin-left: auto; font-size: .82rem; color: var(--doux); white-space: nowrap; }
.etiq { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: var(--marque-pale); color: var(--marque); vertical-align: middle; }
.etiq.ambre { background: var(--ambre-pale); color: #8a5406; }
.etiq.gris { background: #ecebe6; color: var(--doux); }
.etiq.ok { background: var(--ok-pale); color: var(--ok); }
.jour { font-family: var(--titre); font-size: 1.3rem; color: var(--encre); margin: 30px 0 14px; }

/* ----- Page de chapitre ----- */
.lecon { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0; min-height: calc(100vh - 62px); }
.plan { background: #fff; border-right: 1px solid var(--trait); padding: 20px 0; position: sticky; top: 62px; align-self: start; max-height: calc(100vh - 62px); overflow: auto; }
.plan .retour { display: block; padding: 0 20px 14px; font-size: .88rem; text-decoration: none; }
.plan h2 { font-family: var(--police); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--doux); padding: 0 20px; margin: 16px 0 8px; }
.plan ul { list-style: none; margin: 0; padding: 0; }
.plan li a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 20px; text-decoration: none; color: var(--texte); font-size: .92rem; border-left: 3px solid transparent; }
.plan li a:hover { background: var(--fond); }
.plan li a.ici { background: var(--marque-pale); border-left-color: var(--marque); font-weight: 600; color: var(--encre); }
.plan .autres a { color: var(--doux); }
.article { padding: 34px clamp(20px, 5vw, 64px) 80px; max-width: 900px; }
.fil { font-size: .85rem; color: var(--doux); margin-bottom: 14px; }
.fil a { color: var(--doux); }
.article h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.infos-chap { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; color: var(--doux); font-size: .88rem; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--trait); }
.corps { font-size: 1.04rem; }
.corps ul, .corps ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.corps li { margin-bottom: .45em; }
.corps ul.coches { list-style: none; padding-left: 0; }
.corps ul.coches li { padding-left: 30px; position: relative; }
.corps ul.coches li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border: 2px solid var(--marque); border-radius: 4px; }
.note { border-radius: 10px; padding: 14px 18px; margin: 1.3em 0; border-left: 4px solid var(--marque); background: var(--marque-pale); }
.note > b:first-child { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; color: var(--marque); }
.note.attention { border-left-color: var(--ko); background: var(--ko-pale); }
.note.attention > b:first-child { color: var(--ko); }
.note.astuce { border-left-color: var(--ambre); background: var(--ambre-pale); }
.note.astuce > b:first-child { color: #8a5406; }
.note ul { margin: 6px 0 0; }
table.tab { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; background: #fff; border: 1px solid var(--trait); border-radius: 10px; overflow: hidden; }
.tab th, .tab td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--trait); }
.tab th { background: #f1ede4; color: var(--encre); font-size: .85rem; }
.tab tr:last-child td { border-bottom: 0; }
.tab td ul { margin: 0; padding-left: 1.1em; }
.defile { overflow-x: auto; }
.bloc-prompt { position: relative; margin: 1.1em 0; }
pre.prompt { margin: 0; background: #14263c; color: #e8eef6; border-radius: 10px; padding: 16px 18px; padding-right: 86px; white-space: pre-wrap; font-family: Consolas, "Cascadia Mono", Menlo, monospace; font-size: .9rem; line-height: 1.55; }
.bloc-prompt .copier { position: absolute; top: 10px; right: 10px; background: rgba(255, 255, 255, .14); color: #fff; border: 0; border-radius: 6px; padding: 5px 10px; font-size: .78rem; cursor: pointer; }
.bloc-prompt .copier:hover { background: rgba(255, 255, 255, .28); }
.bas-chap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--trait); }

/* ----- Vidéos ----- */
.videos-chap { margin-top: 34px; }
.grille-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.video { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; display: flex; flex-direction: column; }
.video .cadre { position: relative; aspect-ratio: 16 / 9; background: #0d1b2a; }
.video .cadre img, .video .cadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video .cadre { background: linear-gradient(135deg, #0c2f3a, #0b6b5c); }
.video .affiche { position: absolute; left: 12px; bottom: 10px; right: 12px; color: rgba(255, 255, 255, .8); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.video.verrou .cadre { background: #4a5560; }
.legal h2 { margin-top: 1.6em; font-size: 1.25rem; }
.legal .vide { background: var(--ambre-pale); padding: 0 5px; border-radius: 4px; }
.video .lire { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(13, 27, 42, .25); cursor: pointer; display: grid; place-items: center; }
.video .lire:hover { background: rgba(13, 27, 42, .1); }
.video .lire span { width: 62px; height: 62px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 4px 18px rgba(0, 0, 0, .35); }
.video .lire span::after { content: ""; border-left: 20px solid var(--marque); border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
.video .texte { padding: 12px 14px 14px; font-size: .9rem; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.video .texte b { color: var(--encre); line-height: 1.3; }
.video .texte .src { color: var(--doux); font-size: .82rem; }
.video .texte a { font-size: .82rem; margin-top: auto; }
.video.verrou .cadre img { filter: grayscale(1) brightness(.5); }
.filtres { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.filtres button { border: 1px solid var(--trait); background: #fff; border-radius: 99px; padding: 6px 14px; cursor: pointer; font-size: .88rem; }
.filtres button.actif { background: var(--encre); color: #fff; border-color: var(--encre); }

/* ----- Exercice ----- */
.exo-carte { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 22px; margin-bottom: 18px; }
.exo-carte h3 { margin-top: 0; }
.coche { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--trait); border-radius: 10px; margin-bottom: 8px; cursor: pointer; background: #fff; }
.coche:hover { border-color: var(--marque); }
.coche input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--marque); flex: none; }
.coche.ok { background: var(--ok-pale); border-color: #b7dcc4; }

/* ----- Quiz ----- */
.question { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 20px 22px; margin-bottom: 16px; }
.question fieldset { border: 0; margin: 0; padding: 0; }
.question legend { font-weight: 700; color: var(--encre); margin-bottom: 12px; padding: 0; font-size: 1.05rem; }
.question .n { color: var(--marque); margin-right: 6px; }
.choix { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; border: 1.5px solid var(--trait); border-radius: 10px; margin-bottom: 8px; cursor: pointer; }
.choix:hover { border-color: var(--marque); }
.choix input { margin-top: 4px; accent-color: var(--marque); width: 17px; height: 17px; flex: none; }
.choix.juste { border-color: var(--ok); background: var(--ok-pale); }
.choix.faux { border-color: var(--ko); background: var(--ko-pale); }
.explication { margin-top: 10px; font-size: .93rem; color: var(--doux); padding: 10px 14px; background: var(--fond); border-radius: 8px; }
.resultat { border-radius: var(--rayon); padding: 24px; margin-bottom: 22px; text-align: center; border: 1px solid; }
.resultat.reussi { background: var(--ok-pale); border-color: #b7dcc4; }
.resultat.rate { background: var(--ko-pale); border-color: #efc4bf; }
.resultat .note-grande { font-family: var(--titre); font-size: 3rem; font-weight: 700; color: var(--encre); line-height: 1; }
.resultat .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

/* ----- Tableau de bord ----- */
.tdb { display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: start; }
.anneau { display: grid; place-items: center; margin: 6px 0 14px; }
.anneau svg { width: 170px; height: 170px; }
.anneau text { font-family: var(--titre); font-weight: 700; fill: var(--encre); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; text-align: center; }
.stats div { background: var(--fond); border-radius: 10px; padding: 10px 6px; }
.stats b { display: block; font-size: 1.25rem; color: var(--encre); }
.stats span { font-size: .75rem; color: var(--doux); }
.ligne-mod { display: grid; grid-template-columns: 1fr 140px 90px; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--trait); font-size: .93rem; }
.ligne-mod:first-of-type { border-top: 0; }
.ligne-mod a { text-decoration: none; color: var(--encre); font-weight: 600; }
.ligne-mod a:hover { text-decoration: underline; }

/* ----- Tarifs et paiement ----- */
.offres { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; align-items: stretch; margin-top: 28px; }
.offre { background: #fff; border: 1.5px solid var(--trait); border-radius: 16px; padding: 26px 24px; display: flex; flex-direction: column; position: relative; }
.offre.vedette { border-color: var(--marque); box-shadow: 0 10px 34px rgba(11, 107, 92, .16); }
.offre .ruban { position: absolute; top: -12px; left: 24px; background: var(--ambre); color: #1d1405; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; }
.offre h3 { margin: 0 0 4px; font-size: 1.2rem; }
.offre .prix { font-family: var(--titre); font-size: 2.3rem; font-weight: 700; color: var(--encre); margin: 12px 0 0; line-height: 1; }
.offre .prix small { font-family: var(--police); font-size: .9rem; font-weight: 500; color: var(--doux); }
.offre .periode { color: var(--doux); font-size: .88rem; margin-bottom: 14px; }
.offre ul { list-style: none; padding: 0; margin: 6px 0 22px; flex: 1; }
.offre li { padding: 6px 0 6px 26px; position: relative; font-size: .94rem; }
.offre li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.caisse { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.moyen { border: 1.5px solid var(--trait); border-radius: var(--rayon); padding: 18px 20px; margin-bottom: 14px; background: #fff; }
.moyen h3 { margin: 0 0 6px; font-size: 1.02rem; }
.moyen p { margin: 0 0 12px; color: var(--doux); font-size: .92rem; }
.recap dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; }
.recap dt { color: var(--doux); }
.recap dd { margin: 0; text-align: right; font-weight: 600; }
.recap .total { border-top: 1px solid var(--trait); padding-top: 10px; font-size: 1.15rem; color: var(--encre); }
.bandeau { background: var(--ambre-pale); border: 1px solid #efd29c; color: #6b4205; border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; font-size: .93rem; }
.bandeau.vert { background: var(--ok-pale); border-color: #b7dcc4; color: #14532d; }
.mur { text-align: center; padding: 60px 20px; max-width: 560px; margin: 0 auto; }
.mur .cadenas { width: 64px; height: 64px; border-radius: 50%; background: var(--ambre-pale); display: grid; place-items: center; margin: 0 auto 16px; font-size: 1.6rem; }

/* ----- Formulaires ----- */
.champ { margin-bottom: 14px; }
.champ label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 5px; color: var(--encre); }
.champ input[type=text], .champ input[type=email], .champ input[type=number], .champ input[type=url], .champ textarea, .champ select { width: 100%; padding: 10px 12px; border: 1.5px solid var(--trait); border-radius: 8px; background: #fff; }
.champ input:focus, .champ textarea:focus, .champ select:focus { border-color: var(--marque); outline: none; }
.champ small { color: var(--doux); display: block; margin-top: 4px; }
.rang { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rang3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
.cases { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.cases label { font-weight: 400; display: inline-flex; gap: 6px; align-items: center; }
.barre-actions { display: flex; gap: 10px; flex-wrap: wrap; position: sticky; bottom: 0; background: var(--fond); padding: 14px 0; border-top: 1px solid var(--trait); }
details.guide { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 14px 18px; margin-bottom: 12px; }
details.guide summary { cursor: pointer; font-weight: 700; color: var(--encre); }
details.guide ol { margin: 12px 0 4px; padding-left: 1.3em; }
details.guide li { margin-bottom: 8px; }
code.url { display: block; background: #14263c; color: #e8eef6; padding: 8px 12px; border-radius: 6px; margin: 6px 0; word-break: break-all; font-size: .85rem; }

.erreur-form { color: var(--ko); background: var(--ko-pale); border-radius: 8px; padding: 9px 12px; font-size: .92rem; }
.champ input[type=password] { width: 100%; padding: 10px 12px; border: 1.5px solid var(--trait); border-radius: 8px; background: #fff; }
.champ input[disabled] { background: #f1ede4; color: var(--doux); }

/* ----- Certificat ----- */
.conditions { list-style: none; padding: 0; margin: 0 0 20px; }
.conditions li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--trait); }
.conditions li a { margin-left: auto; font-size: .9rem; white-space: nowrap; }
.certificat { background: #fffdf8; border: 1px solid #c9b88a; padding: 14px; border-radius: 6px; box-shadow: var(--ombre); max-width: 960px; margin: 0 auto; }
.certificat .cadre-cert { border: 3px double #a68a3d; padding: clamp(24px, 5vw, 54px); text-align: center; aspect-ratio: 297 / 200; display: flex; flex-direction: column; justify-content: center; }
.certificat .org { text-transform: uppercase; letter-spacing: .25em; font-size: .8rem; color: var(--marque); font-weight: 700; }
.certificat .t { font-family: var(--titre); font-size: clamp(1.8rem, 4.4vw, 3rem); color: var(--encre); margin: 12px 0 6px; }
.certificat .a { color: var(--doux); }
.certificat .nom { font-family: var(--titre); font-style: italic; font-size: clamp(1.7rem, 4.2vw, 2.8rem); color: var(--marque); margin: 10px auto; padding: 0 30px 8px; border-bottom: 1px solid #c9b88a; display: inline-block; }
.certificat .cours { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--encre); font-weight: 600; margin: 8px 0 2px; }
.certificat .bas { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: clamp(18px, 4vw, 40px); font-size: .85rem; text-align: left; }
.certificat .bas div:last-child { text-align: right; }
.certificat .sig { font-family: var(--titre); font-style: italic; font-size: 1.3rem; color: var(--encre); border-top: 1px solid #a68a3d; padding-top: 4px; min-width: 180px; text-align: center; }
.certificat .sceau { width: 78px; height: 78px; border-radius: 50%; border: 2px solid #a68a3d; display: grid; place-items: center; color: #a68a3d; font-weight: 700; font-size: .68rem; text-align: center; line-height: 1.25; letter-spacing: .06em; flex: none; }

/* ----- Divers ----- */
.pied { border-top: 1px solid var(--trait); background: #fff; padding: 26px 0; font-size: .88rem; color: var(--doux); }
.pied .ligne { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.pied a { color: var(--doux); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--encre); color: #fff; padding: 11px 20px; border-radius: 99px; opacity: 0; pointer-events: none; transition: .25s; z-index: 200; font-size: .93rem; max-width: 90vw; }
.toast.vu { opacity: 1; transform: translate(-50%, 0); }
table.simple { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.simple th, table.simple td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--trait); }

@media (max-width: 900px) {
  .hero .grille, .tdb, .caisse { grid-template-columns: 1fr; }
  .chiffres { grid-template-columns: repeat(2, 1fr); margin-top: 20px; }
  .etapes4 { grid-template-columns: 1fr 1fr; }
  .deux-col { grid-template-columns: 1fr; }
  .lecon { grid-template-columns: 1fr; }
  .plan { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--trait); padding: 12px 0 0; }
  .plan .autres, .plan ul, .plan h2 { display: none; }
  .entete .barre { gap: 6px 12px; }
  .entete .droite { margin-left: auto; }
  .nav { order: 3; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .nav a { white-space: nowrap; padding: 6px 10px; }
  .liste-chap { padding-left: 20px; }
  .module > summary { grid-template-columns: auto 1fr; }
  .module .cote { grid-column: 1 / -1; text-align: left; }
  .rang, .rang3 { grid-template-columns: 1fr; }
  .ligne-mod { grid-template-columns: 1fr 90px; }
  .ligne-mod .barre-prog { display: none; }
  .entete .pilule .mini-barre { display: none; }
}
@media (max-width: 520px) {
  .etapes4 { grid-template-columns: 1fr; }
  .certificat .bas { flex-direction: column; align-items: center; text-align: center; }
  .certificat .bas div:last-child { text-align: center; }
  .certificat .cadre-cert { aspect-ratio: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ----- Impression du certificat ----- */
@media print {
  @page { size: A4 landscape; margin: 8mm; }
  body { background: #fff; }
  .entete, .pied, .toast, .sans-impression, .saut { display: none !important; }
  .enveloppe { max-width: none; padding: 0; }
  .section { padding-top: 0; padding-bottom: 0; }
  .certificat { box-shadow: none; max-width: none; border-radius: 0; }
  .certificat .cadre-cert { aspect-ratio: auto; min-height: 178mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ----- Langue, glossaire, assistant IA ----- */
.langue { border: 1px solid var(--trait); background: #fff; border-radius: 999px; padding: 6px 11px; font-size: .8rem; cursor: pointer; color: var(--doux); }
.langue b { color: var(--encre); }
.langue:hover { border-color: var(--marque); }
dl.glossaire { margin: 0; }
dl.glossaire dt { font-weight: 700; color: var(--encre); margin-top: 18px; font-size: 1.05rem; }
dl.glossaire dd { margin: 4px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--trait); }
.corps a { text-decoration: underline; }
.bulle-assistant { position: fixed; right: 20px; bottom: 20px; z-index: 60; background: var(--encre); color: #fff; border: 0; border-radius: 999px; padding: 12px 18px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 22px rgba(19, 35, 58, .3); display: inline-flex; gap: 8px; align-items: center; }
.bulle-assistant:hover { background: #1d3557; }
.bulle-assistant span { color: #f3c77a; }
.assistant { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: min(400px, calc(100vw - 24px)); height: min(560px, calc(100vh - 100px)); background: #fff; border: 1px solid var(--trait); border-radius: 16px; box-shadow: 0 18px 50px rgba(19, 35, 58, .28); display: flex; flex-direction: column; overflow: hidden; }
.assistant[hidden] { display: none !important; }
.assistant header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--encre); color: #fff; }
.assistant header button { background: none; border: 0; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.fil-assistant { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--fond); }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: .93rem; line-height: 1.5; overflow-wrap: anywhere; }
.msg.ia { background: #fff; border: 1px solid var(--trait); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.moi { background: var(--marque); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.attente { color: var(--doux); font-style: italic; }
.suggestions { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.suggestions button { background: #fff; border: 1px solid var(--marque); color: var(--marque); border-radius: 999px; padding: 6px 12px; font-size: .85rem; cursor: pointer; text-align: left; }
.suggestions button:hover { background: var(--marque-pale); }
.assistant form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--trait); align-items: flex-end; }
.assistant textarea { flex: 1; resize: none; border: 1.5px solid var(--trait); border-radius: 10px; padding: 8px 10px; font-size: .93rem; }
.assistant textarea:focus { border-color: var(--marque); outline: none; }
.note-assistant { font-size: .74rem; color: var(--doux); margin: 0; padding: 0 12px 8px; text-align: center; }
@media print { .bulle-assistant, .assistant { display: none !important; } }

.couverture-formation { display:block; width:100%; max-width:16rem; height:8rem; object-fit:cover; }
[data-gestion] { margin:1rem 0; overflow-wrap:anywhere; }
[data-gestion] textarea { max-width:100%; }

/* Jeu « Vrai ou IA ? » */
.jeu-score{font-weight:700;margin:.5rem 0 1rem}
.jeu-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1rem}
.jeu-carte{margin:0;border:2px solid #e3e3e3;border-radius:12px;overflow:hidden;background:#fff;display:flex;flex-direction:column}
.jeu-carte.juste{border-color:#2e9e5b}.jeu-carte.faux{border-color:#d64545}
.jeu-image{position:relative;aspect-ratio:4/3;background:#f2f2f2}
.jeu-image img{width:100%;height:100%;object-fit:cover;display:block}
.jeu-num{position:absolute;top:.4rem;left:.4rem;background:rgba(0,0,0,.65);color:#fff;border-radius:999px;padding:.1rem .55rem;font-size:.85rem}
.jeu-boutons{display:flex;gap:.5rem;padding:.6rem}.jeu-boutons .btn{flex:1}
.jeu-boutons .btn.choisi{outline:2px solid currentColor}
.jeu-resultat{padding:0 .7rem .7rem;font-size:.92rem;line-height:1.4}
.jeu-resultat span{display:block;margin:.35rem 0}.jeu-resultat small{display:block}

/* Examen final : état de chaque module */
.exam-bilan { margin: 18px 0; }
.exam-bilan p { margin: 8px 0 0; }
.ligne-exam { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 10px; border-top: 1px solid var(--trait); font-size: .93rem; }
.ligne-exam:first-child { border-top: 0; }
.ligne-exam span small { display: block; margin-top: 2px; }
.ligne-exam.fini { opacity: .65; }
.ligne-exam.suivant { background: color-mix(in srgb, var(--ambre) 12%, transparent); border-radius: 10px; }
@media (max-width: 560px) { .ligne-exam { grid-template-columns: auto 1fr; } .ligne-exam > :last-child { grid-column: 2; justify-self: start; } }

/* Liens vers les sites officiels des outils IA */
.corps a.lien-outil { color: #1a5fb4; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.corps a.lien-outil:hover { color: #0b3d7a; }

/* Signature du formateur (certificat et backoffice) */
.certificat .signature-cert { display: block; height: 52px; max-width: 200px; object-fit: contain; margin: 0 auto -4px; }
.signature-admin { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.signature-admin img { height: 64px; max-width: 220px; object-fit: contain; background: #fff; border: 1px solid var(--trait); border-radius: 8px; padding: 6px 10px; }

/* Avis de fin de formation : notes 1 à 5 sur une ligne */
.avis-fin fieldset label { display: inline-flex; align-items: center; gap: 4px; margin: 6px 14px 0 0; }

/* Ligne de sources sous un chapitre (ajoutée après l’audit) */
p.sources { font-size: .88rem; color: var(--doux); border-top: 1px solid var(--ligne, #e5e1d8); padding-top: .6rem; margin-top: 1.4rem; }

/* Objectifs d’un module, dans la table des matières */
.liste-chap li.objectifs-mod { border-top: 0; padding: 4px 0 12px; font-size: .92rem; color: var(--doux); }
.liste-chap li.objectifs-mod b { color: var(--texte); }
.liste-chap li.objectifs-mod ul { margin: 6px 0 0; padding-left: 18px; list-style: disc; }
.liste-chap li.objectifs-mod ul li { border-top: 0; padding: 2px 0; }

/* Examen final en deux parties : QCM et étude de cas */
.partie-exam { margin: 16px 0; }
.partie-exam h2 { margin: 4px 0 6px; font-size: 1.2rem; }
.partie-exam.fini { border-color: var(--vert, #0b6b5c); }
.sources-etude { margin: 0; padding-left: 20px; font-size: .92rem; }
.sources-etude li { margin: 4px 0; }
.passage-etude { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 14px 12px; border: 1px solid var(--trait); border-radius: 10px; margin: 12px 0; background: #fff; }
.passage-etude .num-passage { width: 30px; height: 30px; border-radius: 50%; background: #efe9dc; display: grid; place-items: center; font-weight: 700; }
.passage-etude p { margin: 0 0 8px; }
.passage-etude select { display: block; margin-top: 6px; width: 100%; max-width: 100%; min-width: 0; padding: 6px 8px; font: inherit; }
.passage-etude.juste { border-color: #0b6b5c; background: #f1f8f5; }
.passage-etude.faux { border-color: #b3462f; background: #fbf1ee; }
.passage-etude .verdict { font-size: .93rem; }
