/* Les cours en ligne : catalogue (/courses), page d'un cours (/courses/<cours>) et leçon (/courses/<cours>/<n>).
   Même monde que le site : blanc, encre, une grotesque, filets ; le vert ne dit qu'un état (fait, juste, en cours).
   Les classes communes avec le reste du site portent le préfixe k- (livre, choix, état…). */
/* Maquette des cours en ligne : 4 écrans (catalogue, page du cours, leçon, construction dans l'admin).
       Même monde que le site : blanc, encre, une grotesque, filets ; le vert ne dit qu'un état (fait, juste, en cours). */
        /* Les couvertures : des livres de la collection, typographiques */
    .k-livre { container-type: inline-size; position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-livre); background: var(--surface-2); box-shadow: var(--ombre-livre), inset 0 0 0 1px rgba(23, 24, 28, 0.05); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 8% 9%; color: var(--encre); }
    .k-livre::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5%; background: linear-gradient(90deg, rgba(23, 24, 28, 0.07), transparent); }
    .k-livre-haut { position: relative; font-size: max(9px, 4.6cqw); font-weight: 600; letter-spacing: 0.01em; display: flex; justify-content: space-between; gap: 8px; color: var(--gris); }
    .k-livre-motif { position: absolute; left: 8%; right: -40%; top: 17%; font-weight: 900; font-size: 27cqw; line-height: 0.86; letter-spacing: -0.06em; color: rgba(23, 24, 28, 0.075); white-space: nowrap; pointer-events: none; }
    .k-livre-titre { position: relative; font-size: 11.5cqw; font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; margin: 0; }
    .k-livre-bas { position: relative; font-size: max(9px, 5cqw); color: var(--gris); margin-top: 8px; }
    .k-livre.encre { background: var(--encre); color: var(--papier); }
    .k-livre.encre .k-livre-haut, .k-livre.encre .k-livre-bas { color: rgba(255, 255, 255, 0.62); }
    .k-livre.encre .k-livre-motif { color: rgba(255, 255, 255, 0.08); }

    /* 1. Catalogue */
    .cat-tete { padding: clamp(48px, 7vw, 96px) 0 40px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: end; }
    .cat-tete h1 { font-size: clamp(48px, 7vw, 96px); font-weight: 800; letter-spacing: -0.06em; line-height: 0.92; margin: 0; }
    .cat-tete p { font-size: 18px; color: var(--gris); margin: 0; max-width: 34em; text-wrap: pretty; }
    .k-reprendre { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 20px 0; border-top: 1px solid var(--encre); border-bottom: 1px solid var(--filet); margin-bottom: 56px; }
    .k-reprendre .k-livre { width: 96px; padding: 10px; }
    .k-reprendre .k-livre-titre { font-size: 13cqw; }
    .k-reprendre .k-livre-haut, .k-reprendre .k-livre-bas { display: none; }
    .k-reprendre small { display: block; color: var(--gris); font-size: 14px; margin-bottom: 4px; }
    .k-reprendre strong { display: block; font-size: 20px; letter-spacing: -0.02em; margin-bottom: 10px; }
    .jauge { height: 4px; border-radius: 2px; background: var(--filet); overflow: hidden; max-width: 420px; }
    .jauge i { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
    .jauge-texte { font-size: 13.5px; color: var(--accent); font-weight: 600; margin-top: 6px; }
    .k-filtres { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; }
    .k-filtres button { border: 0; background: none; font: inherit; font-size: 14.5px; padding: 7px 14px; border-radius: 99px; color: var(--gris); cursor: pointer; box-shadow: inset 0 0 0 1px var(--filet); }
    .k-filtres button[aria-pressed="true"] { background: var(--encre); color: var(--papier); box-shadow: none; }
    .cours-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 48px 32px; padding-bottom: 120px; }
    .cours-carte { text-decoration: none; color: inherit; display: block; }
    .cours-carte .k-livre { transition: transform 0.35s var(--sortie), box-shadow 0.35s var(--sortie); }
    .cours-carte:hover .k-livre { transform: translateY(-4px); box-shadow: var(--ombre-flottante); }
    .cours-carte h2 { font-size: 18px; letter-spacing: -0.02em; margin: 18px 0 6px; }
    .cours-carte > p { font-size: 14.5px; color: var(--gris); margin: 0 0 10px; text-wrap: pretty; }
    .cours-meta { font-size: 13.5px; color: var(--gris); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
    .prix { font-weight: 700; color: var(--encre); }
    .k-bientot { opacity: 0.55; }

    /* 2. Page du cours */
    .c-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 80px); }
    .c-fil { font-size: 14px; color: var(--gris); margin-bottom: 20px; }
    .c-fil a { color: inherit; }
    .c-hero h1 { font-size: clamp(44px, 6.2vw, 84px); font-weight: 800; letter-spacing: -0.055em; line-height: 0.95; margin: 0 0 22px; text-wrap: balance; }
    .c-promesse { font-size: 20px; line-height: 1.5; color: var(--gris); margin: 0 0 28px; max-width: 30em; text-wrap: pretty; }
    .c-chiffres { display: flex; gap: 0; margin: 0 0 32px; padding: 0; list-style: none; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
    .c-chiffres li { flex: 1; padding: 14px 16px 14px 0; font-size: 13.5px; color: var(--gris); }
    .c-chiffres li + li { padding-left: 16px; border-left: 1px solid var(--filet); }
    .c-chiffres b { display: block; font-size: 22px; letter-spacing: -0.03em; color: var(--encre); }
    .c-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
    .c-cta small { color: var(--gris); font-size: 14px; }
    .c-visuel { position: relative; }
    .c-visuel .k-livre { width: 78%; margin-left: auto; }
    .c-video { position: absolute; left: 0; top: 24%; width: 62%; aspect-ratio: 16 / 10; border-radius: var(--r-surface); overflow: hidden; box-shadow: var(--ombre-flottante); background: #000; border: 0; padding: 0; cursor: pointer; }
    .c-video img { width: 100%; height: 100%; object-fit: cover; opacity: 0.82; }
    .c-video span { position: absolute; left: 14px; bottom: 12px; display: flex; align-items: center; gap: 10px; color: #fff; font-size: 14px; font-weight: 600; }
    .c-video span i { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
    .c-video span i::after { content: ""; border-left: 11px solid var(--encre); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
    .c-section { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; padding: 56px 0; border-top: 1px solid var(--filet); }
    .c-section > h2 { font-size: 15px; font-weight: 700; margin: 4px 0 0; letter-spacing: -0.01em; }
    .acquis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
    .acquis li { font-size: 19px; line-height: 1.4; letter-spacing: -0.015em; text-wrap: pretty; }
    .acquis li em { display: block; font-style: normal; font-size: 15px; color: var(--gris); letter-spacing: 0; margin-top: 6px; line-height: 1.5; }
    .programme-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 8px; font-size: 14px; color: var(--gris); }
    .module { border-top: 1px solid var(--filet); }
    .module:last-child { border-bottom: 1px solid var(--filet); }
    .module summary { list-style: none; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 20px; gap: 12px; align-items: baseline; padding: 20px 0; cursor: pointer; }
    .module summary::-webkit-details-marker { display: none; }
    .module summary b { font-size: 14px; color: var(--gris); }
    .module summary strong { font-size: 19px; letter-spacing: -0.02em; }
    .module summary small { font-size: 14px; color: var(--gris); white-space: nowrap; }
    .module summary::after { content: ""; width: 8px; height: 8px; border-right: 1.6px solid var(--gris); border-bottom: 1.6px solid var(--gris); transform: rotate(45deg); align-self: center; transition: transform 0.25s; }
    .module[open] summary::after { transform: rotate(225deg); }
    .lecons { list-style: none; margin: 0 0 18px 46px; padding: 0; }
    .lecons li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; font-size: 15.5px; border-top: 1px solid var(--filet); }
    .lecons svg { width: 18px; height: 18px; color: var(--gris); }
    .lecons small { color: var(--gris); font-size: 13.5px; }
    .apercu { font-size: 12.5px; font-weight: 700; color: var(--encre); box-shadow: inset 0 0 0 1px var(--filet-fort); padding: 2px 8px; border-radius: 99px; text-decoration: none; }
    .verrou { width: 14px !important; height: 14px !important; }
    .k-auteur { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 28px; align-items: start; }
    .k-auteur img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
    .k-auteur p { font-size: 18px; line-height: 1.55; margin: 0 0 14px; max-width: 36em; text-wrap: pretty; }
    .k-auteur ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; font-size: 14px; color: var(--gris); }
    .k-auteur ul b { display: block; font-size: 24px; color: var(--encre); letter-spacing: -0.03em; }
    .offre { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 32px; border-radius: var(--r-surface); background: var(--surface-2); margin: 56px 0 140px; }
    .offre h2 { font-size: 28px; letter-spacing: -0.035em; margin: 0 0 8px; }
    .offre p { margin: 0; color: var(--gris); }
    .offre .prix-grand { font-size: 40px; font-weight: 800; letter-spacing: -0.05em; color: var(--encre); margin-right: 18px; vertical-align: middle; }

    /* 3. Leçon : le lecteur de cours (barre du haut, sommaire à gauche, contenu au centre) */
    .l-barre { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; height: 60px; padding: 0 20px; background: var(--papier); border-bottom: 1px solid var(--filet); }
    .l-retour { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--encre); text-decoration: none; min-width: 0; }
    .l-retour svg { width: 18px; height: 18px; flex: none; }
    .l-retour span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .l-progres { display: flex; align-items: center; gap: 14px; justify-content: center; font-size: 13.5px; color: var(--gris); }
    .l-progres .jauge { width: min(260px, 30vw); }
    .l-sommaire-bouton { display: none; justify-self: end; }
    .l-corps { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: calc(100dvh - 60px); }
    .l-sommaire { position: sticky; top: 60px; align-self: start; height: calc(100dvh - 60px); overflow-y: auto; border-right: 1px solid var(--filet); padding: 20px 14px 120px; background: var(--papier); }
    .l-module { margin-bottom: 18px; }
    .l-module h3 { font-size: 12.5px; font-weight: 700; color: var(--gris); margin: 0 0 6px; padding: 0 10px; letter-spacing: 0.01em; }
    .l-module ol { list-style: none; margin: 0; padding: 0; }
    .l-module a { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: var(--r-petit); font-size: 14.5px; color: var(--encre); text-decoration: none; line-height: 1.35; }
    .l-module a:hover { background: var(--surface-2); }
    .l-module a[aria-current] { background: var(--surface-2); font-weight: 700; }
    .l-module a small { color: var(--gris); font-size: 12.5px; font-weight: 400; }
    .k-etat { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--filet-fort); display: grid; place-items: center; }
    .k-etat.fait { background: var(--accent); box-shadow: none; }
    .k-etat.fait::after { content: ""; width: 5px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg) translate(-1px, -1px); }
    .k-etat.ici { box-shadow: inset 0 0 0 1.5px var(--encre); }
    .k-etat.ici::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--encre); }
    .l-contenu { padding: clamp(28px, 4vw, 56px) clamp(16px, 5vw, 72px) 160px; }
    .l-colonne { max-width: 720px; margin: 0 auto; }
    .l-entete small { font-size: 14px; color: var(--gris); }
    .l-entete h1 { font-size: clamp(34px, 4.4vw, 52px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; margin: 10px 0 14px; text-wrap: balance; }
    .l-entete p { color: var(--gris); margin: 0 0 32px; font-size: 15px; }
    .bloc { margin: 0 0 48px; }
    .bloc-etiquette { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--gris); margin-bottom: 12px; }
    .bloc-etiquette svg { width: 16px; height: 16px; }
    .video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-surface); overflow: hidden; background: #111; }
    .video img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 0.75; }
    .video button { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: var(--ombre-flottante); }
    .video button::after { content: ""; border-left: 18px solid var(--encre); border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
    .video-duree { position: absolute; right: 12px; bottom: 12px; color: #fff; font-size: 13px; font-weight: 600; background: rgba(0, 0, 0, 0.5); padding: 3px 8px; border-radius: 4px; }
    .chapitres { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
    .chapitres button { border: 0; background: var(--surface-2); font: inherit; padding: 6px 10px; border-radius: var(--r-petit); cursor: pointer; color: var(--encre); }
    .chapitres button b { color: var(--gris); font-weight: 500; margin-right: 6px; }
    .texte p, .texte li { font-size: 18px; line-height: 1.65; text-wrap: pretty; }
    .texte h2 { font-size: 24px; letter-spacing: -0.03em; margin: 0 0 14px; }
    .fr { font-weight: 600; }
    .k-tableau { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 16px; }
    .k-tableau th { text-align: left; font-size: 13px; color: var(--gris); font-weight: 600; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--encre); }
    .k-tableau td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--filet); vertical-align: top; }
    .verbes { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; padding: 0; list-style: none; }
    .verbes li { font-size: 15px !important; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); line-height: 1.4 !important; }
    .astuce { margin: 24px 0 0; padding: 18px 20px; border-left: 3px solid var(--encre); background: var(--surface-2); border-radius: 0 var(--r-petit) var(--r-petit) 0; }
    .astuce p { margin: 0; font-size: 16.5px; }
    .extrait { border: 1px solid var(--filet); border-radius: var(--r-surface); overflow: hidden; }
    .extrait-tete { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--filet); }
    .extrait-tete img { width: 56px; height: 56px; border-radius: var(--r-livre); object-fit: cover; box-shadow: var(--ombre-livre); }
    .extrait-tete strong { display: block; font-size: 16px; }
    .extrait-tete small { color: var(--gris); font-size: 13.5px; }
    .lire { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--encre); color: var(--papier); cursor: pointer; display: grid; place-items: center; }
    .lire svg { width: 18px; height: 18px; }
    .extrait-texte { padding: 18px 20px 6px; font-family: var(--lecture-serif); font-size: 21px; line-height: 1.6; }
    .extrait-texte p { margin: 0 0 14px; }
    .mot { border-radius: 3px; transition: background 0.15s, color 0.15s; cursor: pointer; }
    .mot.dit { color: var(--encre); }
    .mot.ici { background: var(--accent-pale); color: var(--accent); }
    .extrait-texte.joue .mot:not(.dit):not(.ici) { color: var(--gris-doux); }
    .mot.cible { text-decoration: underline; text-decoration-color: var(--filet-fort); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
    .extrait-pied { padding: 10px 20px 14px; font-size: 13.5px; color: var(--gris); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
    .extrait-pied a { color: var(--encre); font-weight: 600; }
    .exercice { border: 1px solid var(--filet); border-radius: var(--r-surface); padding: 22px 22px 18px; }
    .exercice + .exercice { margin-top: 16px; }
    .ex-consigne { font-size: 13px; font-weight: 600; color: var(--gris); margin: 0 0 8px; }
    .ex-question { font-size: 20px; letter-spacing: -0.015em; line-height: 1.45; margin: 0 0 16px; }
    .trou { display: inline-block; min-width: 72px; border-bottom: 2px solid var(--encre); text-align: center; color: var(--gris); }
    .k-choix { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; border: 0; }
    .k-choix label { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-petit); box-shadow: inset 0 0 0 1px var(--filet-fort); cursor: pointer; font-size: 16.5px; transition: box-shadow 0.15s, background 0.15s; }
    .k-choix label:hover { background: var(--surface-2); }
    .k-choix label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--encre); }
    .k-choix input { accent-color: var(--encre); width: 17px; height: 17px; margin: 0; }
    .k-choix label.juste, .k-choix label.juste:has(input:checked) { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-pale); }
    .k-choix label.faux, .k-choix label.faux:has(input:checked) { box-shadow: inset 0 0 0 2px var(--rouge); }
    .k-choix label.manque, .k-choix label.manque:has(input:checked) { box-shadow: none; outline: 2px dashed var(--accent); outline-offset: -2px; }
    .manque .marque-etat { color: var(--accent); }
    .k-choix label .marque-etat { margin-left: auto; font-size: 13px; font-weight: 700; }
    .juste .marque-etat { color: var(--accent); }
    .faux .marque-etat { color: var(--rouge); }
    .ex-pied { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
    .ex-pied .bouton { height: 40px; padding: 0 18px; font-size: 14.5px; }
    .retour-ex { font-size: 15px; line-height: 1.5; margin: 14px 0 0; padding: 12px 14px; border-radius: var(--r-petit); }
    .retour-ex.bien { background: var(--accent-pale); color: var(--accent); }
    .retour-ex.pas-encore { background: #fbeceb; color: var(--rouge); }
    :root[data-theme="dark"] .retour-ex.pas-encore { background: #3a1f1c; }
    .retour-ex b { display: block; margin-bottom: 2px; }
    .paires { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; margin-bottom: 14px; }
    .paires-col { display: grid; gap: 8px; align-content: start; }
    .paire { border: 0; font: inherit; font-size: 16px; text-align: left; padding: 12px 14px; border-radius: var(--r-petit); background: var(--papier); box-shadow: inset 0 0 0 1px var(--filet-fort); cursor: pointer; color: var(--encre); display: flex; align-items: center; gap: 10px; }
    .paire[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--encre); }
    .paire[data-lien] { background: var(--surface-2); }
    .paire .num { width: 22px; height: 22px; border-radius: 50%; background: var(--encre); color: var(--papier); font-size: 12px; font-weight: 700; display: none; place-items: center; flex: none; }
    .paire[data-lien] .num { display: grid; }
    .paire.juste { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-pale); }
    .paire.juste .num { background: var(--accent); }
    .paire.faux { box-shadow: inset 0 0 0 2px var(--rouge); }
    .champ-trou { font: inherit; font-size: 20px; width: 9ch; padding: 2px 6px; border: 0; border-bottom: 2px solid var(--encre); background: transparent; color: var(--encre); text-align: center; }
    .champ-trou:focus { outline: none; background: var(--surface-2); }
    .champ-trou.juste { border-color: var(--accent); color: var(--accent); }
    .champ-trou.faux { border-color: var(--rouge); }
    .terminer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 28px 0; margin-top: 56px; border-top: 1px solid var(--encre); }
    .terminer .bouton { height: 52px; padding: 0 26px; font-size: 16px; }
    .terminer a.lien-fleche { font-size: 14.5px; }
    .terminer.fini .bouton { background: var(--accent); }
    .discussion { margin-top: 48px; }
    .discussion h2 { font-size: 20px; letter-spacing: -0.02em; margin: 0 0 6px; }
    .discussion p { color: var(--gris); margin: 0 0 18px; font-size: 15px; }
    .question { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--filet); font-size: 15.5px; }
    .question span.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--gris); font-weight: 700; font-size: 14px; }
    .question img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
    .question p { margin: 2px 0 0; color: var(--encre); font-size: 15.5px; }
    .question.reponse { margin-left: 48px; }
    .question small { color: var(--gris); font-weight: 400; }
    .badge-auteur { font-size: 11.5px; font-weight: 700; color: var(--accent); background: var(--accent-pale); padding: 1px 7px; border-radius: 99px; margin-left: 6px; }

    @media (max-width: 1080px) {
      .c-section { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    }
    @media (max-width: 1180px) { .l-corps { grid-template-columns: 280px minmax(0, 1fr); } }
    @media (max-width: 900px) {
      .l-corps { grid-template-columns: minmax(0, 1fr); }
      .l-sommaire { position: fixed; z-index: 40; top: 60px; left: 0; width: min(340px, 88vw); box-shadow: var(--ombre-flottante); transform: translateX(-105%); transition: transform 0.35s var(--sortie); }
      .l-sommaire.ouvert { transform: none; }
      .l-sommaire-bouton { display: inline-flex; height: 38px; padding: 0 14px; font-size: 14px; }
    }
    @media (max-width: 760px) {
      .cat-tete, .c-hero { grid-template-columns: minmax(0, 1fr); }
      .k-reprendre { grid-template-columns: 64px minmax(0, 1fr); }
      .k-reprendre .k-livre { width: 64px; }
      .k-reprendre .bouton { grid-column: 1 / -1; }
      .c-visuel { max-width: 420px; }
      .c-chiffres { flex-wrap: wrap; }
      .c-chiffres li { flex: 1 1 40%; }
      .c-chiffres li:nth-child(3) { padding-left: 0; border-left: 0; }
      .acquis { grid-template-columns: minmax(0, 1fr); }
      .lecons { margin-left: 0; }
      .lecons li { grid-template-columns: 22px minmax(0, 1fr) auto; }
      .lecons li small { display: none; }
      .k-auteur { grid-template-columns: minmax(0, 1fr); }
      .offre { grid-template-columns: minmax(0, 1fr); }
      .l-barre { grid-template-columns: auto auto; }
      .l-progres { display: none; }
      .l-retour span { max-width: 44vw; }
      .paires { grid-template-columns: 1fr 1fr; gap: 8px 10px; }
      .paire { font-size: 14.5px; padding: 10px; }
    }
    @media (max-width: 520px) {
      .cours-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
      .cours-carte > p { display: none; }
    }
    @media (prefers-reduced-motion: reduce) {
      .cours-carte .k-livre, .l-sommaire { transition: none; }
    }

/* ——— Ajouts pour le vrai site ——— */
.cours-page { padding-bottom: 120px; }
.cours-carte .k-livre { will-change: transform; }
.cours-etat { font-size: 13.5px; font-weight: 600; }
.cours-etat.vert { color: var(--accent); }
.cours-vide { padding: 40px 0 120px; color: var(--gris); }
.c-cta .bouton[disabled] { opacity: 0.55; cursor: default; }
.c-note { font-size: 14px; color: var(--gris); margin: 14px 0 0; }
.c-note a { color: var(--encre); font-weight: 600; }
.lecons li { position: relative; }
.lecons a.lecon-lien { color: inherit; text-decoration: none; }
.lecons a.lecon-lien:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--filet-fort); }
.lecons li .fait-marque { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.lecons li .fait-marque::after { content: ""; width: 4px; height: 8px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg) translate(-1px, -1px); }
.brouillon-marque { font-size: 11.5px; font-weight: 700; color: #9a6a00; }
.apercu-bandeau { background: #fff7e0; color: #5a4300; border-bottom: 1px solid #f1dc9c; font-size: 14px; padding: 8px 20px; text-align: center; }
.apercu-bandeau a { color: inherit; font-weight: 700; }
:root[data-theme="dark"] .apercu-bandeau { background: #2e2716; color: #f0dca4; border-color: #4a3f22; }

/* La vidéo : le lecteur Vimeo, ou une image d'attente tant que la vidéo n'est pas en ligne */
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Les vidéos du site sont en 16:9 comme le cadre : elles le remplissent exactement (sinon le fond sombre du cadre
   apparaît en liseré sur les plans à fond blanc). */
.video:has(> video) { background: transparent; }
.video video { object-fit: cover; background: transparent; }
.video.attente { display: grid; place-items: center; text-align: center; color: #fff; }
.video.attente img { position: absolute; inset: 0; opacity: 0.35; filter: grayscale(1); }
.video.attente div { position: relative; padding: 20px; }
.video.attente strong { display: block; font-size: 20px; letter-spacing: -0.02em; margin-bottom: 4px; }
.video.attente span { font-size: 14.5px; opacity: 0.85; }
.video-titre { font-size: 15px; font-weight: 600; margin: 10px 0 0; }

/* Le texte d'une leçon (Markdown) */
.texte h2 { margin-top: 8px; }
.texte h3 { font-size: 19px; letter-spacing: -0.02em; margin: 28px 0 10px; }
.texte ul, .texte ol { padding-left: 1.2em; }
.texte blockquote { margin: 24px 0; padding: 16px 20px; border-left: 3px solid var(--encre); background: var(--surface-2); border-radius: 0 var(--r-petit) var(--r-petit) 0; }
.texte blockquote p { margin: 0; font-size: 16.5px; }
.texte table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 16px; }
.texte th { text-align: left; font-size: 13px; color: var(--gris); font-weight: 600; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--encre); }
.texte td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--filet); vertical-align: top; font-size: 16px; line-height: 1.5; }
.texte .k-table-defile { overflow-x: auto; }
.texte code { font-family: inherit; background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }

/* Exercice « remettre dans l'ordre » */
.ordre-phrase { min-height: 54px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; border-radius: var(--r-petit); box-shadow: inset 0 0 0 1px var(--filet-fort); margin-bottom: 12px; }
.ordre-phrase:empty::before { content: attr(data-vide); color: var(--gris-doux); font-size: 15px; padding: 0 6px; }
.ordre-reserve { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; min-height: 40px; }
.mot-bouton { border: 0; font: inherit; font-size: 16.5px; padding: 7px 12px; border-radius: var(--r-petit); background: var(--surface-2); color: var(--encre); cursor: pointer; box-shadow: inset 0 0 0 1px var(--filet); }
.mot-bouton:hover { box-shadow: inset 0 0 0 1px var(--encre); }
.ordre-phrase .mot-bouton { background: var(--papier); box-shadow: inset 0 0 0 1px var(--encre); }
.ordre-phrase.juste { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-pale); }
.ordre-phrase.faux { box-shadow: inset 0 0 0 2px var(--rouge); }

/* Exercice « écrire » : on écrit, puis on compare avec le modèle */
.ecrire-zone { width: 100%; font: inherit; font-size: 17px; line-height: 1.55; padding: 12px 14px; border-radius: var(--r-petit); border: 1px solid var(--filet-fort); background: var(--papier); color: var(--encre); resize: vertical; margin-bottom: 12px; }
.ecrire-zone:focus { outline: 2px solid var(--encre); outline-offset: 1px; }
.modele { margin: 14px 0 0; padding: 14px 16px; border-radius: var(--r-petit); background: var(--surface-2); }
.modele b { display: block; font-size: 13px; color: var(--gris); margin-bottom: 6px; }
.modele p { margin: 0; font-size: 17px; line-height: 1.6; white-space: pre-wrap; }
.ex-fait { font-size: 13px; font-weight: 600; color: var(--accent); margin-left: auto; }

/* Leçon fermée (cours payant), page d'attente */
.k-ferme { max-width: 560px; margin: clamp(40px, 8vw, 96px) auto; text-align: center; }
.k-ferme .k-livre { width: 150px; margin: 0 auto 28px; }
.k-ferme h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.045em; line-height: 1.05; margin: 0 0 12px; }
.k-ferme p { color: var(--gris); font-size: 17px; margin: 0 0 24px; }
.k-ferme .actions { justify-content: center; }

/* Les questions sous une leçon reprennent les commentaires du blog */
.l-colonne .commentaires { padding: 48px 0 0; margin-top: 48px; border-top: 1px solid var(--filet); }
.l-colonne .commentaires .commentaires-colonne { max-width: none; }
.l-colonne .commentaires h2 { font-size: 22px; }
.l-intro-questions { color: var(--gris); margin: -6px 0 18px; font-size: 15px; }
.ex-indice { color: var(--gris); font-size: 16px; }
.l-corps.sans-sommaire { grid-template-columns: minmax(0, 1fr); }
.fenetre.fenetre-video { width: min(100% - 32px, 960px); padding: 16px; }
.l-module .k-etat .verrou { width: 12px !important; height: 12px !important; color: var(--gris); }
.l-module .k-etat:has(.verrou) { box-shadow: none; }

/* Leçons du cours complet, pour un membre qui ne l'a pas : grisées, pas cliquables */
.lecons li.ferme { color: var(--gris-doux); }
.lecons li.ferme svg { color: var(--gris-doux); }
.l-ferme { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; font-size: 14.5px; line-height: 1.35; color: var(--gris-doux); cursor: default; }
.l-ferme small { color: var(--gris-doux); font-size: 12.5px; }
.l-ferme .k-etat { box-shadow: none; }

/* ——— La page d'un cours (/courses/<cours>), version « page produit ». Beaucoup d'air, des titres immenses,
       une seule animation forte (la couverture qui pivote au défilement), des démonstrations à essayer. */
    .cp { overflow-x: clip; }
    .cp-large { max-width: 1240px; margin: 0 auto; padding: 0 var(--gouttiere); }
    .cp-etroit { max-width: 880px; margin: 0 auto; padding: 0 var(--gouttiere); }
    .cp-section { padding: clamp(110px, 16vw, 200px) 0; }
    .cp-sur { font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; color: var(--gris); margin: 0 0 18px; }
    .cp-titre { font-size: clamp(44px, 7vw, 96px); font-weight: 800; letter-spacing: -0.055em; line-height: 0.98; margin: 0; text-wrap: balance; }
    .cp-texte { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.45; color: var(--gris); max-width: 32em; margin: 26px 0 0; text-wrap: pretty; letter-spacing: -0.01em; }
    .cp-texte b { color: var(--encre); font-weight: 600; }
    .centre { text-align: center; }
    .centre .cp-texte { margin-left: auto; margin-right: auto; }

    /* Apparitions au défilement (une seule fois, discrètes) */
    .rev { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--sortie), transform 1.1s var(--sortie); transition-delay: calc(var(--i, 0) * 90ms); }
    .rev.vu { opacity: 1; transform: none; }
    @media (prefers-reduced-motion: reduce) { .rev { opacity: 1; transform: none; transition: none; } }

    /* 1. La barre du cours, qui reste en haut */
    .cp-barre { position: sticky; top: 0; z-index: 40; background: var(--voile); backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid var(--filet); }
    .cp-barre .cp-large { display: flex; align-items: center; gap: 28px; height: 54px; }
    .cp-barre-titre { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin-right: auto; white-space: nowrap; }
    .cp-barre nav { display: flex; gap: 22px; font-size: 13.5px; }
    .cp-barre nav a { color: var(--gris); text-decoration: none; }
    .cp-barre nav a:hover { color: var(--encre); }
    .cp-barre-prix { font-size: 13.5px; color: var(--gris); }
    .cp-barre .bouton { height: 32px; padding: 0 14px; font-size: 13.5px; border-radius: 99px; }

    /* 2. L'en-tête */
    .cp-hero { padding: clamp(70px, 10vw, 130px) 0 0; text-align: center; }
    .cp-hero-sur { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--gris); margin-bottom: 26px; }
    .cp-hero-sur span { padding: 4px 10px; border-radius: 99px; background: var(--surface-2); color: var(--encre); font-size: 13px; }
    .cp-hero h1 { font-size: clamp(64px, 13vw, 190px); font-weight: 800; letter-spacing: -0.07em; line-height: 0.86; margin: 0; }
    .cp-hero h1 span { display: block; }
    .cp-hero-promesse { font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; margin: 34px auto 0; max-width: 22em; text-wrap: balance; }
    .cp-hero-actions { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 38px; flex-wrap: wrap; }
    .cp-hero-actions .bouton { height: 52px; padding: 0 28px; font-size: 16.5px; border-radius: 99px; }
    .cp-hero-actions .lien-fleche { font-size: 16.5px; }
    .cp-hero-note { font-size: 14px; color: var(--gris); margin: 16px 0 0; }
    .cp-scene { perspective: 1600px; margin: clamp(60px, 9vw, 110px) auto 0; width: min(420px, 70vw); }
    .cp-scene .k-livre { --rx: 18deg; --ry: -24deg; transform: rotateX(var(--rx)) rotateY(var(--ry)); box-shadow: 0 2px 4px rgba(23, 24, 28, 0.08), 40px 60px 90px -30px rgba(23, 24, 28, 0.45); transition: transform 0.1s linear; border-radius: 3px; }
    .cp-scene .k-livre-titre { font-size: 12cqw; }
    .cp-ombre { width: 70%; height: 28px; margin: 28px auto 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(23, 24, 28, 0.18), transparent); }

    /* 3. La grande phrase, sur fond noir */
    .cp-noir { background: #0d0e10; color: #f3f3f4; }
    .cp-noir .cp-sur { color: #8d9097; }
    .cp-noir .cp-texte { color: #a7aab1; }
    .cp-noir .cp-texte b { color: #fff; }
    .cp-duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: clamp(20px, 4vw, 60px); margin: clamp(60px, 8vw, 100px) 0 0; }
    .cp-duel div { font-family: var(--lecture-serif); font-size: clamp(56px, 9vw, 132px); line-height: 0.95; letter-spacing: -0.02em; }
    .cp-duel div small { display: block; font-family: var(--sans); font-size: 15px; letter-spacing: 0; color: #8d9097; margin-top: 18px; line-height: 1.5; }
    /* Les deux mots se font face de part et d'autre du « or », au centre : le premier collé à droite de sa colonne, le second à gauche. */
    .cp-duel div:first-child { text-align: right; }
    .cp-duel div:last-child { text-align: left; }
    .cp-duel em { font-style: normal; font-size: 15px; color: #8d9097; padding-bottom: 50px; }
    .cp-question { margin: clamp(70px, 10vw, 120px) auto 0; font-size: clamp(28px, 3.6vw, 48px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.12; max-width: 18em; text-align: center; text-wrap: balance; }
    .cp-question span { color: #6cc39e; }

    /* 4. Essayer : l'extrait synchronisé et un exercice */
    .cp-essai { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; margin-top: clamp(56px, 7vw, 80px); }
    .cp-tuile { border-radius: 28px; background: var(--surface-2); padding: clamp(28px, 3.4vw, 44px); display: flex; flex-direction: column; }
    .cp-tuile h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; margin: 0 0 10px; }
    .cp-tuile > p { color: var(--gris); margin: 0 0 26px; font-size: 16px; line-height: 1.5; }
    .cp-tuile .extrait { background: var(--papier); border: 0; border-radius: 18px; box-shadow: 0 1px 2px rgba(23, 24, 28, 0.05), 0 18px 40px -24px rgba(23, 24, 28, 0.25); }
    .cp-tuile .extrait-texte { font-size: 19px; }
    .cp-tuile .exercice { background: var(--papier); border: 0; border-radius: 18px; box-shadow: 0 1px 2px rgba(23, 24, 28, 0.05), 0 18px 40px -24px rgba(23, 24, 28, 0.25); }
    .cp-blocs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
    .cp-bloc { border-radius: 24px; background: var(--surface-2); padding: 28px 26px; }
    .cp-bloc svg { width: 30px; height: 30px; margin-bottom: 40px; }
    .cp-bloc b { display: block; font-size: 19px; letter-spacing: -0.02em; margin-bottom: 6px; }
    .cp-bloc span { color: var(--gris); font-size: 15px; line-height: 1.5; }

    /* 5. Les chiffres */
    .cp-chiffres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 90px); border-top: 1px solid var(--filet); }
    .cp-chiffre { padding: 36px 24px 0 0; }
    .cp-chiffre + .cp-chiffre { padding-left: 24px; border-left: 1px solid var(--filet); }
    .cp-chiffre b { display: block; font-size: clamp(64px, 8vw, 120px); font-weight: 800; letter-spacing: -0.07em; line-height: 0.9; font-feature-settings: "tnum"; }
    .cp-chiffre b small { font-size: 0.35em; letter-spacing: -0.03em; margin: 0 0.12em 0 0.08em; }
    .cp-chiffre span { display: block; margin-top: 14px; color: var(--gris); font-size: 16px; line-height: 1.45; max-width: 14em; }

    /* 6. Le programme */
    .cp-modules { list-style: none; margin: clamp(56px, 7vw, 90px) 0 0; padding: 0; }
    .cp-module { display: grid; grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; padding: 44px 0; border-top: 1px solid var(--filet); align-items: start; }
    .cp-module:last-child { border-bottom: 1px solid var(--filet); }
    .cp-module-num { font-size: clamp(64px, 7vw, 104px); font-weight: 800; letter-spacing: -0.07em; line-height: 0.8; color: var(--filet-fort); }
    .cp-module h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; margin: 0 0 10px; }
    .cp-module p { margin: 0; color: var(--gris); font-size: 16px; line-height: 1.5; }
    .cp-module p .gratuit { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--accent); }
    .cp-module ol { list-style: none; margin: 0; padding: 0; }
    .cp-module li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--filet); font-size: 15.5px; }
    .cp-module li:last-child { border-bottom: 0; }
    .cp-module li span { color: var(--gris); font-size: 14px; white-space: nowrap; }
    .cp-module:hover .cp-module-num { color: var(--encre); transition: color 0.4s; }

    /* 7. Les histoires d'où viennent les extraits */
    .cp-histoires { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(56px, 7vw, 80px); }
    .cp-histoire { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; color: #fff; text-decoration: none; }
    .cp-histoire img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--sortie); }
    .cp-histoire:hover img { transform: scale(1.04); }
    .cp-histoire::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.78)); }
    .cp-histoire div { position: absolute; left: 26px; right: 26px; bottom: 24px; z-index: 1; }
    .cp-histoire small { font-size: 13px; opacity: 0.75; }
    .cp-histoire b { display: block; font-size: 24px; letter-spacing: -0.03em; margin: 4px 0 10px; }
    .cp-histoire q { font-family: var(--lecture-serif); font-size: 18px; line-height: 1.4; quotes: "«\00a0" "\00a0»"; }

    /* 8. Le professeur */
    .cp-prof { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
    .cp-prof img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; }
    .cp-prof blockquote { margin: 0; font-size: clamp(26px, 3vw, 40px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.15; text-wrap: balance; }
    .cp-prof-signature { margin-top: 26px; color: var(--gris); font-size: 16px; }
    .cp-prof dl { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 40px; margin: 40px 0 0; }
    .cp-prof dt { font-size: 34px; font-weight: 800; letter-spacing: -0.05em; }
    .cp-prof dd { margin: 4px 0 0; color: var(--gris); font-size: 14.5px; }

    /* 9. L'offre */
    .cp-offre { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: clamp(56px, 7vw, 80px); }
    .cp-carte { border-radius: 28px; padding: clamp(32px, 4vw, 52px); background: var(--surface-2); }
    .cp-carte.principale { background: var(--encre); color: var(--papier); }
    .cp-carte h3 { font-size: 22px; letter-spacing: -0.03em; margin: 0 0 6px; }
    .cp-carte .prix { font-size: clamp(64px, 7vw, 96px); font-weight: 800; letter-spacing: -0.07em; line-height: 1; margin: 22px 0 6px; color: inherit; }
    .cp-carte .sous-prix { color: var(--gris); font-size: 15px; margin: 0 0 30px; }
    .cp-carte.principale .sous-prix { color: #a7aab1; }
    .cp-carte ul { list-style: none; margin: 0 0 34px; padding: 0; display: grid; gap: 12px; font-size: 16px; }
    .cp-carte li { display: flex; gap: 12px; align-items: baseline; }
    .cp-carte li::before { content: ""; flex: none; width: 6px; height: 11px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg) translateY(-2px); }
    .cp-carte.principale li::before { border-color: #6cc39e; }
    .cp-carte .bouton { height: 52px; padding: 0 28px; font-size: 16.5px; border-radius: 99px; width: 100%; }
    .cp-carte.principale .bouton { background: var(--papier); color: var(--encre); }

    /* 10. Questions */
    .cp-faq { margin-top: clamp(48px, 6vw, 70px); border-top: 1px solid var(--filet); }
    .cp-faq details { border-bottom: 1px solid var(--filet); }
    .cp-faq summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 26px 0; font-size: clamp(19px, 1.8vw, 23px); font-weight: 700; letter-spacing: -0.02em; cursor: pointer; }
    .cp-faq summary::-webkit-details-marker { display: none; }
    .cp-faq summary::after { content: "+"; font-weight: 400; font-size: 28px; line-height: 0.8; color: var(--gris); transition: transform 0.3s var(--sortie); }
    .cp-faq details[open] summary::after { transform: rotate(45deg); }
    .cp-faq details p { margin: -8px 0 26px; color: var(--gris); font-size: 17px; line-height: 1.55; max-width: 40em; }

    /* 11. Le dernier appel */
    .cp-fin { padding: clamp(110px, 16vw, 200px) 0; text-align: center; background: var(--surface-2); }
    .cp-fin h2 { font-size: clamp(48px, 8vw, 120px); font-weight: 800; letter-spacing: -0.065em; line-height: 0.92; margin: 0; text-wrap: balance; }


    @media (max-width: 960px) {
      .cp-barre nav, .cp-barre-prix { display: none; }
      .cp-essai, .cp-offre, .cp-prof { grid-template-columns: minmax(0, 1fr); }
      .cp-blocs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .cp-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .cp-chiffre:nth-child(3) { padding-left: 0; border-left: 0; }
      .cp-module { grid-template-columns: 90px minmax(0, 1fr); }
      .cp-module ol { grid-column: 2; }
      .cp-histoires { grid-template-columns: minmax(0, 1fr); }
      .cp-histoire { aspect-ratio: auto; min-height: 340px; }
      .cp-prof img { max-width: 420px; }
    }
    @media (max-width: 600px) {
      .cp-duel { grid-template-columns: minmax(0, 1fr); text-align: center; }
      .cp-duel div:first-child, .cp-duel div:last-child { text-align: center; }
      .cp-duel em { padding: 0; }
      .cp-blocs { grid-template-columns: minmax(0, 1fr); }
      .cp-module { grid-template-columns: minmax(0, 1fr); gap: 14px; }
      .cp-module ol { grid-column: 1; }
      .cp-prof dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
      .cp-barre-titre { font-size: 16px; }
    }

/* Page produit : ajustements du vrai site */
.cours-produit .apercu-bandeau { margin: 0; }
.cp-barre { top: var(--haut-entete); transition: top 0.35s var(--sortie); }
.entete-cachee .cp-barre { top: 0; }
.cp-barre-titre { color: var(--encre); text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.cp-sans-haut { padding-top: 0; }
.cp-essai.seul { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.cp-offre.seule { grid-template-columns: minmax(0, 560px); justify-content: center; }
.cp-carte .bouton { display: inline-flex; }
.cp-histoires.cp-n1 { grid-template-columns: minmax(0, 560px); }
.cp-histoires.cp-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cp-module li a { color: inherit; text-decoration: none; }
.cp-module li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cp-module li.ferme { color: var(--gris-doux); }
.cp-noir .cp-acquis { margin-top: 30px; }
.cp-noir .cp-acquis li { color: #f3f3f4; font-size: clamp(22px, 2.4vw, 30px); }
.cp-noir .cp-acquis li em { color: #a7aab1; }
.cp-hero-actions .bouton-texte { font-size: 16.5px; }
@media (max-width: 960px) { .cp-histoires.cp-n2 { grid-template-columns: minmax(0, 1fr); } }

/* Page de cours, ordre « acheteur » : ce qu'on saura faire, chiffres dans le programme, prix cliquable dans la barre */
.cp-acquis-liste { margin-top: clamp(48px, 6vw, 72px); gap: 40px 56px; }
.cp-acquis-liste li { font-size: clamp(22px, 2.3vw, 28px); font-weight: 600; letter-spacing: -0.025em; padding-top: 22px; border-top: 1px solid var(--filet); }
.cp-acquis-liste li em { font-weight: 400; font-size: 16px; }
#programme .cp-chiffres { margin-top: clamp(40px, 5vw, 60px); }
#programme .cp-modules { margin-top: clamp(40px, 5vw, 64px); }
a.cp-barre-prix { text-decoration: none; }
a.cp-barre-prix:hover { color: var(--encre, #1d1d1f); }

/* Le niveau en filigrane dans l'en-tête du cours : très grand, à peine visible, déplacé au défilement par course.js */
.cp-hero { position: relative; }
.cp-hero > .cp-large { position: relative; z-index: 1; }
.cp-niveau { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.cp-niveau span {
  position: absolute; left: 50%; top: clamp(20px, 4vw, 60px); width: 100%; margin-left: -50%; text-align: center;
  font-size: clamp(260px, 52vw, 820px); font-weight: 800; letter-spacing: -0.085em; line-height: 0.8;
  color: color-mix(in srgb, var(--encre) 11%, transparent); opacity: 0.6; transform-origin: 50% 30%; will-change: transform, opacity;
  user-select: none; white-space: nowrap;
}
.cp-niveau span.long { font-size: clamp(170px, 30vw, 480px); top: clamp(60px, 9vw, 140px); }
@media (prefers-reduced-motion: reduce) { .cp-niveau span { opacity: 1; } }


    /* Le catalogue des cours (/courses) : classes ct-* */
    .ct { --pad: clamp(90px, 11vw, 150px); }
    .ct-large { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }

    /* En-tête et choix du niveau */
    .ct-tete { padding-top: clamp(60px, 9vw, 120px); }
    .ct-tete h1 { font-size: clamp(72px, 14vw, 200px); font-weight: 800; letter-spacing: -0.07em; line-height: 0.84; margin: 0; }
    .ct-tete-bas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-top: clamp(30px, 4vw, 50px); }
    .ct-tete-bas p { font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; margin: 0; max-width: 20em; text-wrap: balance; }
    .ct-tete-bas small { display: block; font-size: 15px; color: var(--gris); font-weight: 400; letter-spacing: 0; margin-top: 12px; }

    .ct-niveaux { margin-top: clamp(56px, 7vw, 90px); border-top: 1px solid var(--filet); padding-top: 22px; }
    /* Le temps du chargement, les lignes d'attente sont déjà à la place du catalogue : il ne descend pas en arrivant. */
    #cours-catalogue[aria-busy="true"] .espace-chargement { margin-top: clamp(56px, 7vw, 90px); padding-top: 23px; }
    .ct-niveaux-titre { display: flex; justify-content: space-between; gap: 20px; font-size: 14px; color: var(--gris); margin: 0 0 6px; }
    .ct-niveaux-liste { display: flex; flex-wrap: wrap; gap: 0 clamp(18px, 3.4vw, 46px); align-items: baseline; }
    .ct-niveau { position: relative; background: none; border: 0; padding: 6px 0 22px; font: inherit; cursor: pointer; color: var(--filet-fort);
      font-size: clamp(44px, 7vw, 96px); font-weight: 800; letter-spacing: -0.06em; line-height: 1; transition: color .25s var(--sortie); }
    .ct-niveau:hover { color: var(--gris-doux); }
    .ct-niveau[aria-pressed="true"] { color: var(--encre); }
    .ct-niveau small { position: absolute; left: 2px; bottom: 0; font-size: 12.5px; font-weight: 600; letter-spacing: 0; color: var(--gris); white-space: nowrap; }
    .ct-niveau .ct-toi { color: var(--accent); }
    .ct-niveau:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
    .ct-niveau-tous { font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -0.03em; align-self: center; padding-bottom: 22px; }
    .ct-aide { font-size: 14px; color: var(--gris); margin: 18px 0 0; }
    .ct-aide a { color: var(--encre); }

    /* Le cours mis en avant */
    .ct-vedette { margin-top: clamp(50px, 6vw, 80px); position: relative; overflow: hidden; border-radius: 22px; background: var(--surface-2);
      display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; min-height: 560px; }
    .ct-vedette-texte { position: relative; z-index: 1; padding: clamp(36px, 5vw, 72px); }
    .ct-sur { font-size: 15px; font-weight: 600; color: var(--gris); margin: 0 0 18px; }
    .ct-sur b { color: var(--accent); font-weight: 600; }
    .ct-vedette h2 { font-size: clamp(48px, 6.4vw, 92px); font-weight: 800; letter-spacing: -0.065em; line-height: 0.9; margin: 0; }
    .ct-vedette h2 span { display: block; }
    .ct-vedette-promesse { font-size: clamp(19px, 1.9vw, 24px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; margin: 24px 0 0; max-width: 22em; text-wrap: balance; }
    .ct-vedette-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; color: var(--gris); margin: 22px 0 0; padding: 0; list-style: none; }
    .ct-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 34px; }
    .ct-actions .bouton { height: 50px; padding: 0 26px; border-radius: 99px; font-size: 16px; }
    .ct-vedette-scene { position: relative; align-self: stretch; display: grid; place-items: center; perspective: 1500px; padding: 50px 40px; }
    .ct-vedette-scene .ct-filigrane { position: absolute; inset: auto -4% -8% auto; font-size: clamp(220px, 30vw, 440px); font-weight: 800; letter-spacing: -0.085em; line-height: 0.8;
      color: color-mix(in srgb, var(--encre) 7%, transparent); pointer-events: none; user-select: none; }
    .ct-vedette-scene .k-livre { position: relative; width: min(300px, 70%); transform: rotateY(-22deg) rotateX(8deg) rotateZ(1deg);
      box-shadow: 0 2px 4px rgba(23, 24, 28, 0.08), 40px 50px 80px -30px rgba(23, 24, 28, 0.45); transition: transform .8s var(--sortie); }
    .ct-vedette:hover .k-livre { transform: rotateY(-8deg) rotateX(4deg); }
    .ct-vedette-scene .k-livre-titre { font-size: 12cqw; }

    /* Sections */
    .ct-section { padding-top: var(--pad); }
    .ct-section-tete { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(36px, 4vw, 52px); }
    .ct-section-tete h2 { font-size: clamp(44px, 5.6vw, 80px); font-weight: 800; letter-spacing: -0.06em; line-height: 0.92; margin: 0; }
    .ct-section-tete p { font-size: 17px; color: var(--gris); margin: 0; max-width: 26em; line-height: 1.5; }
    .ct-vide { font-size: 17px; color: var(--gris); padding: 30px 0; border-top: 1px solid var(--filet); margin: 0; }
    /* Aucune formation encore (le catalogue vide). */
    .ct-attente { margin-top: clamp(40px, 5vw, 64px); padding: 28px 0 clamp(48px, 6vw, 72px); border-top: 1px solid var(--filet); }
    .ct-attente p { margin: 0 0 22px; max-width: 34em; font-size: 18px; line-height: 1.55; color: var(--gris); }
    .ct-attente b { color: var(--encre); }

    /* Cartes : la couverture, puis l'essentiel */
    .ct-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
    .ct-carte { display: block; color: inherit; text-decoration: none; }
    .ct-carte-couv { perspective: 1200px; padding: 8% 12%; background: var(--surface-2); border-radius: 14px; }
    .ct-carte .k-livre { transition: transform .6s var(--sortie), box-shadow .6s var(--sortie); }
    .ct-carte:hover .k-livre, .ct-carte:focus-visible .k-livre { transform: rotateY(-14deg) rotateX(5deg) translateY(-6px); box-shadow: var(--ombre-flottante); }
    .ct-carte:focus-visible { outline: none; }
    .ct-carte:focus-visible .ct-carte-couv { outline: 2px solid var(--accent); outline-offset: 3px; }
    .ct-carte-info { padding-top: 20px; }
    .ct-carte-sur { font-size: 13.5px; font-weight: 600; color: var(--gris); margin: 0; }
    .ct-carte h3 { font-size: 24px; font-weight: 750; letter-spacing: -0.035em; line-height: 1.1; margin: 6px 0 0; }
    .ct-carte-promesse { font-size: 15.5px; color: var(--gris); line-height: 1.45; margin: 8px 0 0; }
    .ct-carte-bas { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--filet); font-size: 14px; color: var(--gris); }
    .ct-carte-bas b { color: var(--encre); font-size: 16px; font-weight: 700; }
    .ct-carte-bas .gratuit { color: var(--accent); }

    /* Les introductions gratuites : plus petites, sur une ligne */
    .ct-gratuits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
    .ct-mini { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 20px; align-items: center; padding: 20px; border-radius: 14px; background: var(--surface-2); color: inherit; text-decoration: none; transition: background .25s; }
    .ct-mini:hover { background: color-mix(in srgb, var(--surface-2) 70%, var(--filet)); }
    .ct-mini .k-livre { padding: 10px; }
    .ct-mini .k-livre-haut, .ct-mini .k-livre-bas { display: none; }
    .ct-mini .k-livre-titre { font-size: 15cqw; }
    .ct-mini h3 { font-size: 19px; font-weight: 750; letter-spacing: -0.03em; margin: 4px 0 0; line-height: 1.15; }
    .ct-mini p { font-size: 14px; color: var(--gris); margin: 6px 0 0; line-height: 1.4; }
    .ct-mini .ct-carte-sur span { color: var(--accent); }

    /* Bientôt */
    .ct-bientot { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--filet); }
    .ct-bientot li { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--filet); }
    .ct-bientot .niv { font-size: 30px; font-weight: 800; letter-spacing: -0.05em; color: var(--filet-fort); }
    .ct-bientot h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.03em; margin: 0; }
    .ct-bientot p { font-size: 14.5px; color: var(--gris); margin: 4px 0 0; }
    .ct-bientot .quand { font-size: 14px; color: var(--gris); white-space: nowrap; }
    .ct-bientot .bouton { border-radius: 99px; }

    /* Ce que chaque cours comprend */
    .ct-promesses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: var(--pad); border-top: 1px solid var(--filet); }
    .ct-promesses div { padding: 26px 26px 0 0; }
    .ct-promesses b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.025em; }
    .ct-promesses span { display: block; font-size: 14.5px; color: var(--gris); margin-top: 6px; line-height: 1.45; }
    .ct-fin-espace { height: var(--pad); }

    @media (max-width: 960px) {
      .ct-tete-bas { grid-template-columns: minmax(0, 1fr); gap: 0; }
      .ct-tete-bas small { margin-top: 10px; }
      .ct-vedette { grid-template-columns: minmax(0, 1fr); min-height: 0; }
      .ct-vedette-scene { order: -1; padding: 40px 20px 0; min-height: 340px; }
      .ct-grille, .ct-gratuits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .ct-promesses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 620px) {
      .ct-grille, .ct-gratuits, .ct-promesses { grid-template-columns: minmax(0, 1fr); }
      .ct-bientot li { grid-template-columns: 56px minmax(0, 1fr); gap: 8px 16px; }
      .ct-bientot .quand { grid-column: 2; }
      .ct-bientot .bouton { grid-column: 2; justify-self: start; }
      .ct-niveau small { font-size: 11px; }
    }
    @media (prefers-reduced-motion: reduce) { .ct-carte .k-livre, .ct-vedette-scene .k-livre { transition: none; } }
  
    /* « Your courses » (membre) : ses cours commencés ou achetés, chacun avec sa leçon suivante. */
    .ct-miens { margin-top: clamp(40px, 5vw, 60px); margin-bottom: 36px; }
    .ct-miens > h2.ct-niveaux-titre { font-weight: 400; letter-spacing: 0; line-height: 1.5; margin-bottom: 10px; }
    .ct-miens > h2.ct-niveaux-titre span:first-child { color: var(--encre); font-weight: 600; }
    .ct-miens ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--encre); }
    .ct-miens .k-reprendre { margin: 0; border-top: 0; color: inherit; text-decoration: none; }
    .ct-miens .k-reprendre:hover strong { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
    .ct-mien.fini .jauge-texte { color: var(--gris); }
    .ct-bientot .bouton[aria-pressed="true"] { background: var(--accent-pale); color: var(--accent); border-color: transparent; }
    .ct-carte-bas .fait { color: var(--accent); }
    .ct-note { font-size: 15px; color: var(--gris); margin: 40px 0 0; }
    .ct-note a { color: var(--encre); }
@media (max-width: 620px) {
  .ct-niveaux-liste { gap: 0 12px; flex-wrap: nowrap; }
  .ct-niveau { font-size: clamp(30px, 9.4vw, 44px); }
  .ct-niveau-tous { font-size: 19px; }
  .ct-niveau small { font-size: 10.5px; }
}
.ct-court { display: none; }
@media (max-width: 620px) { .ct-long { display: none; } .ct-court { display: inline; } }
.ct-mini .k-livre-titre { color: inherit; margin: 0; line-height: 1.02; }

/* ——— Cohérence avec le reste du site (audit du 07/10) : mêmes tailles de titres que les autres pages ——— */
.ct-tete { padding-top: var(--haut-page); }
.ct-tete h1 { font-size: var(--titre-page); letter-spacing: -0.055em; line-height: 0.95; }
.ct-tete-bas p { font-size: var(--chapo); font-weight: 400; letter-spacing: 0; line-height: 1.5; color: var(--gris); }
.ct-tete-bas small { font-size: inherit; margin-top: 0; }
.ct-section-tete h2, .ct-vedette h2, .cp-titre { font-size: var(--titre-section); letter-spacing: -0.05em; line-height: 1; }
.ct-niveau { font-size: clamp(44px, 5.6vw, 72px); }
.cp-hero h1 { font-size: clamp(56px, 9.5vw, 128px); letter-spacing: -0.065em; line-height: 0.9; }
.cp-hero-promesse { font-size: clamp(20px, 2.1vw, 28px); }
.cp-sur { font-size: 15px; } /* comme les autres petites lignes au-dessus des titres */
.cp-texte { font-size: var(--chapo); }
.cp-fin h2 { font-size: var(--titre-page); letter-spacing: -0.055em; line-height: 0.95; }
.cp-duel div { font-size: clamp(48px, 7.5vw, 104px); }
.cp-question { font-size: clamp(26px, 3vw, 40px); }
.cp-chiffre b { font-size: clamp(48px, 6vw, 80px); }
.cp-module-num { font-size: clamp(48px, 5.4vw, 72px); }
.cp-carte .prix { font-size: clamp(48px, 5.4vw, 72px); }
.l-entete h1 { font-size: clamp(34px, 4vw, 48px); }
/* Mêmes boutons que le reste du site (coins légèrement arrondis, pas de pilule) */
.cp-barre .bouton, .cp-hero-actions .bouton, .cp-carte .bouton, .ct-actions .bouton, .ct-bientot .bouton { border-radius: var(--r-petit); }

/* Téléphone (audit du 07/10) : zones à toucher de 44 px ; le sommaire fermé d'une leçon n'est plus lu ni atteignable */
@media (max-width: 760px), (pointer: coarse) {
  .cp-barre .bouton, .cp-hero-actions .lien-fleche { position: relative; }
  .cp-barre .bouton::after { content: ""; position: absolute; left: -4px; right: -4px; top: -6px; bottom: -6px; }
  .cp-hero-actions .lien-fleche::after { content: ""; position: absolute; inset: -10px -8px; }
}
@media (max-width: 900px) {
  .l-sommaire { visibility: hidden; transition: transform 0.35s var(--sortie), visibility 0s linear 0.35s; }
  .l-sommaire.ouvert { visibility: visible; transition: transform 0.35s var(--sortie), visibility 0s; }
}

/* ——— « Mon cours » : la page d'un cours que le membre possède (classes ce-*) ——— */
.ce { padding-bottom: clamp(64px, 9vw, 120px); }
.ce-large { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }
.ce-tete { padding-top: var(--haut-page); padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--filet); }
.ce-tete-grille { display: grid; grid-template-columns: clamp(140px, 17vw, 210px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.ce-couv .k-livre { box-shadow: var(--ombre-flottante); }
.ce-sur { font-size: 15px; font-weight: 600; color: var(--gris); margin: 0 0 12px; }
.ce-tete h1 { font-size: var(--titre-page); font-weight: 800; letter-spacing: -0.055em; line-height: 0.95; margin: 0; text-wrap: balance; }
.ce-progres { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; font-size: 15px; color: var(--gris); }
.ce-progres b { color: var(--encre); }
.ce-jauge { flex: 0 1 320px; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; box-shadow: inset 0 0 0 1px var(--filet); }
.ce-jauge i { display: block; height: 100%; min-width: 8px; border-radius: 99px; background: var(--accent); transition: width .8s var(--sortie); }
.ce-actions { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; margin-top: 28px; }
.ce-actions .bouton { height: 52px; padding: 0 28px; font-size: 16.5px; }
.ce-suite { margin: 0; font-size: 15px; color: var(--gris); }
.ce-suite b { color: var(--encre); font-weight: 600; }

.ce-corps { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); align-items: start; padding-top: clamp(40px, 5vw, 64px); }
.ce-module + .ce-module { margin-top: clamp(36px, 4vw, 52px); }
.ce-module-tete { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--encre); }
.ce-module-num { font-size: 15px; font-weight: 700; color: var(--gris); font-variant-numeric: tabular-nums; }
.ce-module-tete h2 { font-size: var(--titre-bloc); font-weight: 800; letter-spacing: -0.035em; margin: 0; }
.ce-module-tete p { margin: 4px 0 0; font-size: 15px; color: var(--gris); }
.ce-module-compte { font-size: 14px; color: var(--gris); font-variant-numeric: tabular-nums; }
.ce-module ol { list-style: none; margin: 0; padding: 0; }
.ce-lecon { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 58px; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--filet); color: inherit; text-decoration: none; transition: background .2s; border-radius: 0; }
.ce-lecon:hover { background: var(--surface-2); }
.ce-etat { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--gris); box-shadow: inset 0 0 0 1.5px var(--filet-fort); font-variant-numeric: tabular-nums; }
.ce-etat svg { width: 16px; height: 16px; }
.ce-lecon.faite .ce-etat { background: var(--accent); color: #fff; box-shadow: none; }
.ce-lecon.faite .ce-lecon-titre { color: var(--gris); }
.ce-lecon.suivante .ce-etat { background: var(--encre); color: var(--papier); box-shadow: none; }
.ce-lecon-titre { font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.ce-badge { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: var(--accent-pale); color: var(--accent); font-size: 12px; font-weight: 700; font-style: normal; vertical-align: 2px; }
.ce-lecon-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--gris); white-space: nowrap; }
.ce-lecon-meta svg { width: 16px; height: 16px; }

.ce-cote { position: sticky; top: calc(var(--haut-entete) + 24px); display: flex; flex-direction: column; gap: 16px; }
.ce-carte { padding: 22px; border-radius: var(--r-surface); background: var(--surface-2); }
.ce-carte h3 { font-size: 18px; font-weight: 750; letter-spacing: -0.02em; margin: 0 0 6px; }
.ce-carte p { font-size: 15px; color: var(--gris); line-height: 1.5; margin: 0 0 10px; }
.ce-carte p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .ce-corps { grid-template-columns: minmax(0, 1fr); }
  .ce-cote { position: static; }
}
@media (max-width: 620px) {
  .ce-tete-grille { grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: start; }
  .ce-couv .k-livre-haut, .ce-couv .k-livre-bas { display: none; }
  .ce-progres, .ce-actions { grid-column: 1 / -1; }
  .ce-lecon-meta span { display: none; }
  .ce-actions .bouton { width: 100%; }
}

/* ——— La fête après l'achat ——— */
.fenetre.ce-fete { width: min(480px, calc(100vw - 32px)); padding: 40px 32px 28px; text-align: center; overflow: visible; }
.fenetre.ce-fete[open] { animation: ce-fete-fond .3s ease; }
@keyframes ce-fete-fond { from { opacity: 0; } }
.ce-fete::backdrop { background: rgba(23, 24, 28, 0.45); }
.ce-fete > :not(canvas) { position: relative; z-index: 2; }
.ce-fete-couv { width: 132px; margin: -96px auto 22px; perspective: 900px; }
.ce-fete-couv .k-livre { box-shadow: 0 2px 4px rgba(23, 24, 28, 0.1), 0 30px 60px -20px rgba(23, 24, 28, 0.5); animation: ce-livre .9s cubic-bezier(.2, 1.4, .3, 1) both .1s; }
.ce-fete-couv .k-livre-haut, .ce-fete-couv .k-livre-bas { display: none; }
@keyframes ce-livre { from { opacity: 0; transform: translateY(60px) rotateX(55deg) rotateZ(-8deg) scale(.6); } }
.ce-fete-sur { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--accent); animation: ce-monte .6s var(--sortie) both .35s; }
.ce-fete h2 { padding: 0; margin: 0 0 12px; font-size: clamp(40px, 7vw, 56px); font-weight: 800; letter-spacing: -0.055em; line-height: 0.95; animation: ce-monte .6s var(--sortie) both .45s; }
.ce-fete-texte { margin: 0 auto; max-width: 30em; font-size: 16px; line-height: 1.55; color: var(--gris); animation: ce-monte .6s var(--sortie) both .55s; }
.ce-fete-texte b { color: var(--encre); }
.ce-fete-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; animation: ce-monte .6s var(--sortie) both .65s; }
.ce-fete-actions .bouton { height: 50px; font-size: 16px; }
@keyframes ce-monte { from { opacity: 0; transform: translateY(14px); } }
.ce-confettis { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .ce-fete-couv .k-livre, .ce-fete-sur, .ce-fete h2, .ce-fete-texte, .ce-fete-actions { animation: none; }
}

/* La fenêtre de commande (avant Stripe) */
.fenetre.fenetre-commande { width: min(500px, calc(100vw - 32px)); }
.cmd-recap { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px; margin: 6px 0 18px; border-radius: var(--r-surface); background: var(--surface-2); }
.cmd-couv .k-livre { padding: 8px; }
.cmd-couv .k-livre-haut, .cmd-couv .k-livre-bas { display: none; }
.cmd-couv .k-livre-titre { font-size: 15cqw; }
.cmd-recap b { display: block; font-size: 17px; letter-spacing: -0.015em; }
.cmd-recap span { display: block; margin-top: 4px; font-size: 14px; color: var(--gris); }
.cmd-form { display: flex; flex-direction: column; gap: 12px; }
.cmd-case { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border-radius: var(--r-petit); box-shadow: inset 0 0 0 1px var(--filet-fort); font-size: 15px; line-height: 1.45; cursor: pointer; }
.cmd-case:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--accent-pale); }
.cmd-case input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.cmd-case a { color: var(--encre); text-underline-offset: 3px; }
.cmd-note { margin: 2px 0 0; font-size: 13.5px; color: var(--gris); line-height: 1.5; }
.cmd-coupon { font-size: 14px; }
.cmd-coupon-ligne { display: flex; gap: 8px; }
.cmd-coupon-ok { margin: 0; color: var(--accent); font-weight: 600; }
.cmd-coupon-ok .bouton-texte { margin-left: 6px; font-weight: 500; color: var(--gris); }
.cmd-coupon .erreur { margin: 8px 0 0; }
.cmd-recap span b { display: inline; font-size: inherit; color: var(--encre); }
.cmd-actions { justify-content: flex-end; margin-top: 8px; }
.cmd-actions .bouton:disabled { opacity: 0.4; cursor: not-allowed; }
@media (max-width: 520px) { .cmd-actions { flex-direction: column-reverse; align-items: stretch; } }

/* La note des élèves sur une carte du catalogue (à partir de 3 avis) */
.ct-note-avis { font-weight: 600; color: var(--encre); white-space: nowrap; }
.ct-carte-avis { margin: 8px 0 0; font-size: 14px; }

/* Sans JavaScript : ce qui apparaît au défilement est montré tout de suite (la page est envoyée construite). */
html:not(.js) .rev { opacity: 1; transform: none; }

/* Le PDF d'une leçon, et sa dictée */
.fichier-carte { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--filet); border-radius: var(--r-surface); background: var(--surface); text-decoration: none; color: var(--encre); }
.fichier-carte:hover { border-color: var(--filet-fort); }
.fichier-icone { display: grid; place-items: center; width: 44px; height: 54px; border-radius: 6px; background: #c9412f; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.fichier-carte strong { display: block; font-size: 15.5px; }
.fichier-carte small { color: var(--gris); font-size: 13.5px; }
.dictee-carte { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 20px; align-items: center; padding: 18px 20px; border: 1px solid var(--filet); border-radius: var(--r-surface); background: var(--surface); }
.dictee-carte strong { display: block; font-size: 18px; letter-spacing: -.01em; }
.dictee-carte small { color: var(--gris); font-size: 13.5px; }
.dictee-carte p { margin: 6px 0 0; font-size: 14.5px; color: var(--gris); }
.dictee-carte .dictee-faite { color: var(--accent); font-weight: 600; }
@media (max-width: 560px) { .dictee-carte { grid-template-columns: minmax(0, 1fr); } .dictee-carte .bouton { justify-self: start; } .fichier-carte { grid-template-columns: auto minmax(0, 1fr); } .fichier-carte .bouton { grid-column: 1 / -1; justify-self: start; } }

/* « Start for free » : les histoires et articles du même sujet (src/liens.mjs). */
.cp-gratuit { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cp-gratuit a { display: grid; gap: 8px; align-content: start; height: 100%; padding: 16px; border-radius: 14px; border: 1px solid var(--filet); color: var(--encre); text-decoration: none; }
.cp-gratuit a:hover { border-color: var(--filet-fort); }
.cp-gratuit a.article { background: var(--surface-2); border-color: var(--surface-2); }
.cp-gratuit img { width: 100%; height: 160px; object-fit: cover; border-radius: 9px; }
.cp-gratuit small { color: var(--accent); font-weight: 700; font-size: 12.5px; }
.cp-gratuit b { font-size: 17px; line-height: 1.3; }
.cp-gratuit b[lang="fr"] { font-family: var(--lecture-serif); font-weight: 600; font-size: 21px; }
.cp-gratuit span { color: var(--gris); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 760px) { .cp-gratuit { grid-template-columns: minmax(0, 1fr); } }
