/* cdo.css — parcours chef-d'œuvre CAP PSR. Épuré, très lisible, cibles de 48 px au moins. */
:root{
  --fond:#f6f5f1; --carte:#ffffff; --encre:#1a1f24; --doux:#4a5058; --ligne:#e2e0d8; --ligne2:#cfcdc4;
  --vert:#0f6b63; --vert-pale:#e5f1ef; --orange:#b4470f; --rouge:#b42318; --rouge-pale:#fde8e1; --jaune:#fff1b8;
  --r:18px; --ombre:0 1px 3px rgba(20,24,30,.06),0 8px 24px rgba(20,24,30,.06);
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{font-size:19px}
body{margin:0;background:var(--fond);color:var(--encre);font-family:'Atkinson Hyperlegible',system-ui,-apple-system,'Segoe UI',sans-serif;line-height:1.45;-webkit-font-smoothing:antialiased}
button,input,textarea{font:inherit;color:inherit}
img{max-width:100%}
h1{font-size:1.75rem;margin:0 0 .7rem}
h2{font-size:1.25rem;margin:0 0 .5rem}
a{color:var(--vert)}
svg{width:1.3em;height:1.3em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
:focus-visible{outline:3px solid #2563eb;outline-offset:3px}

/* En-tête */
.cdo-tete{position:sticky;top:0;z-index:20;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;padding:10px 28px;background:var(--carte);border-bottom:1px solid var(--ligne)}
.cdo-tete-c{font-weight:700;font-size:1.05rem;text-align:center}
.cdo-tete-d{display:flex;justify-content:flex-end;gap:10px;align-items:center}
.cdo-marque{font-weight:700;color:var(--doux)}
.cdo-retour-btn,.cdo-ecouter,.cdo-moi{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 16px;border-radius:24px;border:2px solid var(--encre);background:var(--carte);cursor:pointer;font-weight:700}
.cdo-retour-btn{border-color:transparent;padding-left:4px}
.cdo-moi{padding:2px 14px 2px 2px;border-color:var(--ligne2)}
.cdo-moi svg{width:44px;height:44px;stroke:none}
.cdo-ecouter.joue{background:var(--jaune)}
.cdo-vue{max-width:1180px;margin:0 auto;padding:26px 28px 40px}
.cdo-pied-page{max-width:1180px;margin:0 auto;padding:10px 28px 26px;font-size:.72rem;color:var(--doux)}

/* Audio */
.cdo-son{flex:none;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin-right:8px;border-radius:22px;border:none;background:var(--vert-pale);color:var(--vert);cursor:pointer;vertical-align:middle}
.cdo-son svg{width:24px;height:24px}
.cdo-son.joue{background:var(--vert);color:#fff}
.en-lecture{background:var(--jaune)!important;box-shadow:0 0 0 4px var(--jaune);border-radius:10px}
[data-lire]{display:flex;align-items:flex-start;gap:4px}
[data-lire]>span{flex:1;padding-top:6px}
h1[data-lire],h2[data-lire]{align-items:center}
h1[data-lire]>span,h2[data-lire]>span{padding-top:0}

/* Boutons */
.cdo-btn,.cdo-btn-second{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:56px;padding:0 26px;border-radius:28px;font-weight:700;font-size:1.05rem;text-decoration:none;cursor:pointer}
.cdo-btn{background:var(--vert);color:#fff;border:none}
.cdo-btn[disabled]{background:#9fb9b5;cursor:not-allowed}
.cdo-btn-second{background:var(--carte);color:var(--encre);border:2px solid var(--ligne2)}
.cdo-btn-suite{margin-left:auto;min-height:48px;padding:0 20px;border-radius:24px;border:none;background:var(--vert);color:#fff;font-weight:700;cursor:pointer}
.cdo-pied{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:28px}
.cdo-discret{color:var(--doux);font-size:.85rem}
.cdo-bloc{background:var(--carte);border:1px solid var(--ligne);border-radius:var(--r);padding:22px;box-shadow:var(--ombre)}
.cdo-bloc-grand{background:var(--carte);border:1px solid var(--ligne);border-radius:22px;padding:30px;box-shadow:var(--ombre)}

/* Accueil */
.cdo-accueil h1{font-size:2rem;margin:20px 0 26px}
.cdo-portes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.cdo-porte{display:flex;flex-direction:column;gap:12px;padding:34px;border-radius:24px;text-decoration:none;min-height:290px;font-size:1.05rem}
.cdo-porte svg{width:62px;height:62px}
.cdo-porte-t{font-size:1.8rem;font-weight:700}
.cdo-porte-pied{margin-top:auto;display:flex;align-items:center;gap:8px;font-weight:700}
.cdo-porte-1{background:var(--vert);color:#fff}
.cdo-porte-2{background:var(--carte);color:var(--encre);border:3px solid var(--orange)}
.cdo-porte-2 svg,.cdo-porte-2 .cdo-porte-pied{color:var(--orange)}

/* Code */
.cdo-code{max-width:560px;margin:20px auto;display:flex;flex-direction:column;gap:14px;background:var(--carte);border:1px solid var(--ligne);border-radius:24px;padding:34px;box-shadow:var(--ombre)}
.cdo-label{font-weight:700}
.cdo-code input{height:92px;border-radius:16px;border:3px solid var(--encre);font-size:3rem;font-weight:700;letter-spacing:.35em;text-align:center;text-transform:uppercase;background:#fbfbf9}
.cdo-erreur{margin:0;color:var(--rouge);font-weight:700}

/* Avatar */
.cdo-avatar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:28px;align-items:start}
.cdo-av-apercu{position:sticky;top:90px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;background:var(--carte);border-radius:24px;padding:26px;border:1px solid var(--ligne)}
.cdo-av-apercu>svg{width:260px;height:260px;filter:drop-shadow(0 8px 18px rgba(0,0,0,.12))}
.cdo-av-onglets{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.cdo-av-onglets button{min-height:48px;padding:0 16px;border-radius:24px;border:2px solid var(--ligne2);background:var(--carte);font-weight:700;cursor:pointer}
.cdo-av-onglets button[aria-selected="true"]{background:var(--encre);color:#fff;border-color:var(--encre)}
.cdo-av-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:12px}
.cdo-av-option{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px;border-radius:16px;border:3px solid var(--ligne);background:var(--carte);cursor:pointer;font-weight:700;font-size:.85rem}
.cdo-av-option svg{width:96px;height:96px;stroke:none}
.cdo-av-option.pris{border-color:var(--vert);background:var(--vert-pale)}
.cdo-av-pastille{width:72px;height:72px;border-radius:36px;border:2px solid rgba(0,0,0,.12)}

/* Mes séances */
.cdo-seances{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:26px;align-items:start}
.cdo-seances-liste{display:flex;flex-direction:column;gap:12px}
.cdo-seance-l{display:grid;grid-template-columns:110px 84px 1fr auto;align-items:center;gap:16px;padding:10px 18px 10px 14px;border-radius:16px;background:var(--carte);border:2px solid var(--ligne);text-decoration:none;color:var(--encre)}
.cdo-seance-l img{width:84px;height:58px;object-fit:cover;border-radius:10px}
.cdo-seance-date{font-weight:700;color:var(--doux)}
.cdo-seance-t{font-weight:700;font-size:1.05rem}
.cdo-seance-etat{display:flex;align-items:center;gap:6px;font-weight:700;color:var(--vert);white-space:nowrap}
.cdo-seance-l.terminee{border-color:var(--vert);background:var(--vert-pale)}
.cdo-seance-l.afaire .cdo-seance-etat{color:var(--orange)}
.cdo-seances-cote{display:flex;flex-direction:column;gap:18px;position:sticky;top:90px}
.cdo-seances-cote ul[data-lire]{display:block;padding-inline-start:1.25rem;overflow-wrap:anywhere}
.cdo-seances-cote ul[data-lire] li+li{margin-top:.6rem}
.cdo-ligne-res{display:flex;justify-content:space-between;gap:12px;margin:.4rem 0}
.cdo-bloc-lien{text-decoration:none;color:var(--encre);border:2px solid var(--vert)}

/* Étapes d'une séance */
.cdo-etapes{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:24px}
.cdo-etapes a{display:flex;align-items:center;gap:8px;min-height:52px;padding:6px 10px;border-radius:14px;background:var(--carte);border:2px solid var(--ligne);text-decoration:none;color:var(--doux);font-weight:700;font-size:.8rem;line-height:1.15}
.cdo-etapes a span{flex:none;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:15px;background:var(--ligne);color:var(--encre)}
.cdo-etapes a.passe{color:var(--vert)}
.cdo-etapes a.passe span{background:var(--vert-pale);color:var(--vert)}
.cdo-etapes a.actif{border-color:var(--vert);color:var(--encre);background:var(--vert-pale)}
.cdo-etapes a.actif span{background:var(--vert);color:#fff}
.cdo-objectif{background:var(--vert-pale);border-radius:14px;padding:10px 14px;font-weight:700}
.cdo-meteos{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:8px 0 26px}
.cdo-meteo{display:flex;flex-direction:column;align-items:center;gap:10px;padding:22px 10px;border-radius:20px;border:3px solid var(--ligne);background:var(--carte);cursor:pointer;font-weight:700;font-size:1.05rem}
.cdo-meteo svg{width:64px;height:64px;color:var(--c);stroke-width:1.7}
.cdo-meteo.pris{border-color:var(--vert);background:var(--vert-pale)}
.cdo-objectifs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}

/* Découvrir */
.cdo-cartes-notion{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:20px}
.cdo-notion{flex-direction:column;background:var(--carte);border:1px solid var(--ligne);border-radius:var(--r);overflow:hidden;box-shadow:var(--ombre)}
.cdo-notion.large{grid-column:1/-1}
.cdo-notion figure{margin:0;background:#fff;display:flex;justify-content:center;border-bottom:1px solid var(--ligne)}
.cdo-notion figure img{max-height:260px;object-fit:contain}
.cdo-notion.large figure img{max-height:520px}
.cdo-notion-txt{position:relative;padding:16px 18px 18px 70px}
.cdo-notion-txt .cdo-son{position:absolute;left:14px;top:14px}
.cdo-notion-txt h2{margin:.2rem 0 .3rem}
.cdo-notion-txt p{margin:0;font-size:1.05rem}
.cdo-notion-txt small{display:block;margin-top:8px;color:var(--doux);font-size:.72rem}
.cdo-retenir{margin-top:22px;flex-direction:column;background:#fff8e1;border:2px solid #e8c45c;border-radius:var(--r);padding:18px 22px 18px 70px;position:relative}
.cdo-retenir .cdo-son{position:absolute;left:14px;top:16px}
.cdo-retenir p{margin:0;font-size:1.05rem}

/* Schéma du processus */
.cdo-schema{margin:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;padding:22px 14px;background:#fff;border-bottom:1px solid var(--ligne)}
.cdo-schema-case{display:inline-flex;align-items:center;min-height:62px;padding:8px 14px;border-radius:14px;border:3px solid var(--vert);background:var(--vert-pale);font-weight:700;text-align:center;max-width:170px}
.cdo-schema-lien{font-size:1.7rem;font-weight:700;color:var(--doux)}

/* Exercices */
.cdo-ex-tete{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.cdo-ex-points{display:flex;gap:8px;flex-wrap:wrap}
.cdo-ex-points button{width:48px;height:48px;border-radius:24px;border:2px solid var(--ligne2);background:var(--carte);font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.cdo-ex-points button.actif{border-color:var(--vert);box-shadow:0 0 0 3px var(--vert-pale)}
.cdo-ex-points button.fait{background:var(--vert);border-color:var(--vert);color:#fff}
.cdo-ex-boite,.cdo-eval{background:var(--carte);border:1px solid var(--ligne);border-radius:22px;padding:24px 26px;box-shadow:var(--ombre);margin-top:14px}
.cdo-ex-titre{font-size:1.3rem;margin:0 0 6px}
.cdo-consigne{font-size:1.15rem;margin:.2rem 0 1rem}
.cdo-consigne b{font-weight:700}
.cdo-question{font-size:1.2rem;font-weight:700;margin:.4rem 0 1rem}
.cdo-compteur{color:var(--doux);font-weight:700;margin:0 0 6px}
.cdo-banque,.cdo-choix{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}
/* photos à la place des pictogrammes */
.cdo-grand .cdo-picto{width:150px;height:100px;object-fit:cover;border-radius:10px}
.cdo-grand .cdo-carte{flex-direction:column;align-items:flex-start}
.cdo-grand .cdo-etq{flex-direction:column;align-items:flex-start;gap:6px}
.cdo-choix-images{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
.cdo-carte{display:inline-flex;align-items:center;gap:8px;min-height:56px;padding:6px 18px;border-radius:16px;border:3px solid var(--ligne2);background:#fbfaf7;cursor:pointer;font-weight:700;font-size:1.02rem;text-align:left}
.cdo-carte .cdo-son{width:36px;height:36px;margin:0 0 0 auto}
.cdo-carte:hover:not([disabled]){border-color:var(--vert)}
.cdo-carte.pris{border-color:var(--vert);background:var(--vert);color:#fff}
.cdo-carte.pris .cdo-son{background:#fff}
.cdo-carte.juste,.cdo-carte.relie{border-color:var(--vert);background:var(--vert-pale);color:var(--encre)}
.cdo-carte.range{opacity:.35}
.cdo-carte.faux,.cdo-colonne.faux,.cdo-trou.faux{border-color:var(--rouge)!important;background:var(--rouge-pale)!important;animation:cdo-non .35s}
.cdo-carte[disabled]{cursor:default}
.cdo-carte.relie::after{content:attr(data-n);display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:13px;background:var(--vert);color:#fff;font-size:.8rem;margin-left:auto}
@keyframes cdo-non{0%,100%{transform:none}25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
.cdo-etq{display:inline-flex;align-items:center;gap:10px}
.cdo-picto{width:58px;height:58px;object-fit:contain;flex:none;background:#fff;border-radius:10px}
.cdo-choix-images .cdo-carte{flex-direction:column;align-items:center;text-align:center}
.cdo-choix-images .cdo-picto{width:100%;height:150px;object-fit:cover}
.cdo-colonnes{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:16px;margin-top:10px}
.cdo-colonne{display:flex;flex-direction:column;gap:8px;min-height:180px;padding:14px;border-radius:18px;border:3px dashed var(--ligne2);background:#fcfcfa;cursor:pointer;text-align:left}
.cdo-col-titre{font-weight:700;font-size:1.15rem;align-items:center}
.cdo-col-corps{display:flex;flex-direction:column;gap:8px}
.cdo-place{padding:6px 12px;border-radius:12px;background:var(--vert-pale);font-weight:700}
.cdo-relier{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.cdo-rel-col{display:flex;flex-direction:column;gap:12px}
.cdo-phrase{font-size:1.3rem;line-height:2.2;margin:.6rem 0}
.cdo-trou{display:inline-block;min-width:150px;min-height:48px;margin:0 4px;padding:0 12px;border:none;border-bottom:3px solid var(--encre);background:#f1f0eb;border-radius:8px 8px 0 0;font-weight:700;cursor:pointer;vertical-align:middle}
.cdo-trou.juste,.cdo-trou.rempli{background:var(--vert-pale);border-bottom-color:var(--vert)}
.cdo-table-boite{overflow-x:auto}
.cdo-table{border-collapse:collapse;width:100%;font-size:1.05rem}
.cdo-table th,.cdo-table td{border:2px solid var(--ligne);padding:10px 12px;text-align:left}
.cdo-table th{background:#f1f0eb}
.cdo-suite-ordre{display:grid;gap:10px;padding-left:0;list-style:none;counter-reset:o}
.cdo-ordre-case{counter-increment:o;display:flex;align-items:center;gap:10px;min-height:62px;padding:6px 14px;border-radius:14px;border:2px dashed var(--ligne2);font-weight:700}
.cdo-ordre-case::before{content:counter(o);display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:17px;background:var(--encre);color:#fff;flex:none}
.cdo-chaine{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0}
.cdo-maillon{display:inline-flex;align-items:center;min-height:64px;padding:8px 16px;border-radius:14px;background:var(--vert-pale);font-weight:700;border:3px solid var(--vert)}
.cdo-maillon.cdo-trou{background:#fff;border:3px dashed var(--ligne2);min-width:170px;justify-content:center;border-radius:14px}
.cdo-maillon.cdo-trou.juste{border:3px solid var(--vert);background:var(--vert-pale)}
.cdo-fleche{font-size:1.6rem;color:var(--doux)}
.cdo-indices{padding-left:1.2em;font-size:1.1rem}
.cdo-indices li{margin:.3rem 0}
.cdo-mots{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}
.cdo-mot{display:flex;flex-direction:column;align-items:center;gap:10px;padding:18px;border-radius:18px;border:3px solid var(--ligne2);background:#fff;cursor:pointer;text-align:center}
.cdo-mot .cdo-picto{width:110px;height:110px}
.cdo-mot-t{font-size:1.3rem;font-weight:700}
.cdo-mot-def{text-align:left;font-size:1rem;flex-wrap:wrap;align-items:center}
.cdo-mot-def em{display:block;width:100%;color:var(--doux);margin-top:4px}
.cdo-mot.ouvert{border-color:var(--vert);background:var(--vert-pale)}
.cdo-retour{display:flex;align-items:center;gap:8px;min-height:24px;margin-top:14px;font-weight:700;font-size:1.05rem;border-radius:14px}
.cdo-retour.ok{background:var(--vert-pale);padding:8px 12px;color:#0b4f49}
.cdo-retour.ko{background:var(--rouge-pale);padding:8px 12px;color:var(--rouge)}
.cdo-ex-boite.cdo-fini{border-color:var(--vert);box-shadow:0 0 0 3px var(--vert-pale)}
.cdo-fig{margin:0 0 12px;text-align:center}
.cdo-fig img{max-height:320px;border-radius:12px}
.cdo-fig figcaption{justify-content:center;color:var(--doux)}

/* Chasse aux dangers */
.cdo-chasse{display:grid;grid-template-columns:minmax(0,3fr) minmax(220px,1fr);gap:18px;align-items:start}
.cdo-chasse-img{position:relative;border-radius:14px;overflow:hidden;cursor:crosshair}
.cdo-chasse-img img{display:block;width:100%}
.cdo-zone{position:absolute;border:none;background:transparent;border-radius:50%;cursor:crosshair}
.cdo-zone.vise{border:4px dashed #f59e0b;background:rgba(245,158,11,.12)}
.cdo-zone.trouve{border:4px solid #dc2626;background:rgba(220,38,38,.08);cursor:default;animation:cdo-pop .4s}
.cdo-zone.trouve::after{content:attr(data-n);position:absolute;top:-14px;right:-14px;width:30px;height:30px;border-radius:15px;background:#dc2626;color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center;font-size:.85rem}
@keyframes cdo-pop{from{transform:scale(.6);opacity:0}to{transform:none;opacity:1}}
.cdo-trouves{margin:0;padding-left:1.3em;display:flex;flex-direction:column;gap:6px;font-weight:700}
.cdo-trouves small{display:block;font-weight:400;color:var(--doux)}
.cdo-nommer{margin-top:12px;padding:14px;border-radius:16px;background:#fffbea;border:2px solid #f59e0b}

/* Évaluation */
.cdo-repere{position:absolute;transform:translate(-50%,-50%);width:38px;height:38px;border-radius:19px;background:#1d4ed8;color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 3px #fff;pointer-events:none}
.cdo-doc{margin:0 0 12px;padding:14px 18px;border-left:5px solid var(--vert);background:#fbfaf7;border-radius:12px;font-size:1.1rem}
.cdo-fig figcaption{font-weight:700}
.cdo-legende{font-weight:700;margin:6px 0 10px}
.cdo-eval-tete{display:flex;justify-content:space-between;margin-bottom:8px}
.cdo-points{font-weight:700;color:var(--orange)}
.cdo-chapeau{color:var(--doux)}
.cdo-eval-pied{display:flex;justify-content:space-between;margin-top:22px}
.cdo-lignes{display:flex;flex-direction:column;gap:12px}
.cdo-ligne{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,2fr);gap:12px;align-items:center;padding:10px;border-radius:14px;background:#fbfaf7}
.cdo-ligne-t{font-weight:700;align-items:center;gap:8px}
.cdo-ligne-t .cdo-picto{width:48px;height:48px}
.cdo-ligne-choix{display:flex;flex-wrap:wrap;gap:8px}
.cdo-pastille{min-height:48px;padding:0 14px;border-radius:24px;border:2px solid var(--ligne2);background:#fff;font-weight:700;cursor:pointer}
.cdo-pastille.pris{background:var(--vert);border-color:var(--vert);color:#fff}
.cdo-note{display:flex;align-items:center;gap:24px;padding:18px 22px;border-radius:18px;background:var(--vert-pale);margin-bottom:18px}
.cdo-note-val{font-size:3rem;font-weight:700;color:var(--vert);white-space:nowrap}
.cdo-note-val small{font-size:1.2rem}
.cdo-correction{display:flex;flex-direction:column;gap:10px;padding-left:0;list-style:none}
.cdo-correction li{flex-direction:column;gap:2px;padding:12px 14px;border-radius:14px;border-left:6px solid var(--vert);background:#fbfaf7}
.cdo-correction li.moyen{border-left-color:#d97706}
.cdo-correction li.ko{border-left-color:var(--rouge)}
.cdo-correction em{color:var(--doux)}

/* Carnet, bilan, mon espace, outils */
.cdo-carnet-q{background:var(--carte);border:1px solid var(--ligne);border-radius:var(--r);padding:18px 20px;margin-bottom:16px}
.cdo-carnet-libre{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.cdo-carnet-libre label{width:100%}
.cdo-carnet-libre textarea{flex:1;min-width:260px;border:2px solid var(--ligne2);border-radius:12px;padding:10px 12px;font-size:1rem}
.cdo-bilan{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px}
.cdo-bilan .cdo-ligne-res{width:min(460px,100%)}
.cdo-moi-page{display:grid;grid-template-columns:260px minmax(0,1fr);gap:22px;align-items:start}
.cdo-moi-page>.cdo-bloc:last-child{grid-column:2}
.cdo-moi-id{display:flex;flex-direction:column;align-items:center;gap:10px;grid-row:span 2}
.cdo-code-aff{font-size:1.6rem;font-weight:700;letter-spacing:.2em;margin:0}
.cdo-carnet-rel{flex-direction:column;border-top:1px solid var(--ligne);padding-top:10px;margin-top:10px}
.cdo-carnet-rel p{margin:.2rem 0}
.cdo-outils{display:flex;flex-direction:column;gap:18px}
.cdo-outils-liste{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.cdo-outil{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:14px;border:2px solid var(--ligne);text-decoration:none;color:var(--encre);font-weight:700;background:#fbfaf7}
.cdo-outil img{height:120px;object-fit:cover;border-radius:10px}

@media (max-width:900px){
  html{font-size:18px}
  .cdo-portes,.cdo-avatar,.cdo-seances,.cdo-chasse,.cdo-moi-page{grid-template-columns:1fr}
  .cdo-moi-page>.cdo-bloc:last-child{grid-column:auto}
  .cdo-etapes{grid-template-columns:repeat(3,minmax(0,1fr))}
  .cdo-objectifs,.cdo-meteos{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cdo-seance-l{grid-template-columns:80px 1fr auto}.cdo-seance-l img{display:none}
  .cdo-ligne{grid-template-columns:1fr}
  .cdo-tete{padding:8px 14px}.cdo-vue{padding:18px 16px 30px}
  .cdo-av-apercu{position:static}.cdo-seances-cote{position:static}
}

/* [Contrôle v5] Cellules de tableau : pas de flex (sinon en-têtes empilés, cases coupées). */
th[data-lire],td[data-lire]{display:table-cell}
.cdo-schema-verbe{font-size:1rem;font-weight:700;white-space:nowrap}
[data-lire]>span,.cdo-etq>span{min-width:0;overflow-wrap:break-word;hyphens:auto}
/* Téléphone : colonnes l'une sous l'autre, pictogramme au-dessus du texte. */
@media (max-width:600px){
  .cdo-colonnes{grid-template-columns:1fr}
  .cdo-colonne{min-height:110px}
  .cdo-relier{gap:10px}
  .cdo-relier .cdo-carte{padding:6px 8px;font-size:.95rem;width:100%}
  .cdo-relier .cdo-etq{flex-direction:column;align-items:flex-start;gap:4px}
  .cdo-relier .cdo-picto{width:44px;height:44px}
  .cdo-table{font-size:.92rem}
  .cdo-table th,.cdo-table td{padding:8px 6px}
  .cdo-table th{font-size:.85rem;hyphens:auto;overflow-wrap:break-word}
  .cdo-table .cdo-trou{min-width:0;width:100%;margin:0;padding:0 6px;white-space:normal}
}

/* [Contrôle v6] Téléphone : rien ne dépasse de l'écran ; pas de coupure des mots hors tableaux ; boutons son de taille fixe. */
.cdo-cartes-notion{grid-template-columns:repeat(auto-fill,minmax(min(320px,100%),1fr))}
[data-lire]>span,.cdo-etq>span{hyphens:manual}
.cdo-son{width:44px;min-width:44px;height:44px;min-height:44px;flex:0 0 44px}
.cdo-carte .cdo-son{width:36px;min-width:36px;height:36px;min-height:36px;flex:0 0 36px}
.cdo-meteo{min-width:0;position:relative}
.cdo-pied,.cdo-eval-pied{flex-wrap:wrap;gap:12px}
.cdo-btn,.cdo-btn-second{text-align:center;max-width:100%}
.cdo-props{display:flex;flex-direction:column;gap:6px;margin:0 0 14px;padding:10px 12px;border-radius:14px;background:#f1f0eb}
.cdo-props-t{margin:0;font-weight:700;color:var(--doux)}
.cdo-prop{margin:0;align-items:center}
.cdo-prop>span{padding-top:0}
.cdo-table td{overflow-wrap:break-word;hyphens:auto}
.cdo-table .cdo-trou{white-space:normal;height:auto;line-height:1.25;padding-top:6px;padding-bottom:6px}
@media (max-width:600px){
  html{font-size:17px}
  .cdo-tete{grid-template-columns:auto 1fr;gap:6px 8px;padding:6px 10px}
  .cdo-tete-c{grid-column:1/-1;order:3;font-size:.92rem}
  .cdo-tete-d{gap:6px}
  .cdo-ecouter{padding:0 12px;font-size:.9rem;gap:4px}
  .cdo-pas-mobile{display:none}
  .cdo-moi{padding:2px 8px 2px 2px;font-size:.85rem;gap:4px}
  .cdo-moi svg{width:38px;height:38px}
  .cdo-retour-btn{padding:0 6px 0 0}
  .cdo-marque{font-size:.85rem}
  .cdo-vue{padding:14px 12px 26px}
  .cdo-pied-page{padding:10px 12px 20px}
  .cdo-pied>*,.cdo-eval-pied>*{flex:1 1 100%}
  .cdo-pied>span:empty,.cdo-eval-pied>span:empty{display:none}
  .cdo-btn,.cdo-btn-second{padding:6px 16px;font-size:1rem}
  .cdo-ex-boite,.cdo-eval{padding:16px 14px}
  .cdo-meteo{padding:14px 6px}
  .cdo-meteo .cdo-son{position:absolute;top:6px;right:6px;margin:0}
  .cdo-table th,.cdo-table td{padding:6px 5px}
  .cdo-etapes{gap:6px}
  .cdo-etapes a{padding:4px 6px;gap:5px;font-size:.72rem;min-width:0}
  .cdo-etapes a span{width:24px;height:24px}
}
.cdo-table th:nth-child(3):last-child{width:44%}

/* Réglage audio personnel, disponible sur tous les écrans. */
.cdo-tete-d{flex-wrap:wrap}
.cdo-audio-reglages{position:relative;font-size:.95rem}
.cdo-audio-reglages summary{cursor:pointer;padding:.65rem;border:1px solid #9aafab;border-radius:10px;background:white}
.cdo-audio-reglages label{position:absolute;right:0;top:100%;z-index:50;display:grid;gap:.6rem;width:260px;max-width:80vw;padding:1rem;background:white;border:1px solid #9aafab;border-radius:10px;box-shadow:0 5px 18px #0002}
.cdo-audio-reglages select{font:inherit;width:100%;padding:.5rem}

.cdo-decouverte-simple{grid-template-columns:minmax(0,1fr);max-width:720px;margin:0 auto}
.cdo-repere-cle{font-weight:700;font-size:1.3rem;color:var(--vert)}
.cdo-eval .cdo-fig img[src*="pictos/"]{width:130px;max-width:100%;margin:auto}

.cdo-explication{margin-top:.7rem}.cdo-explication summary{cursor:pointer;text-decoration:underline}.cdo-explication p{display:flex;align-items:start;gap:.5rem}

.cdo-apercu{padding:8px 16px;text-align:center;font:600 .9rem/1.4 sans-serif;background:#fff3d6;color:#433310}

.guide-conteneur{max-width:850px;margin:auto}.guide-entete{margin:1rem 0}.guide-partie{font-weight:700;color:var(--vert)}
.guide-image{margin:1rem 0;background:#fff;border-radius:18px;overflow:hidden}.guide-image img{display:block;width:100%;height:auto;max-height:390px;object-fit:contain}
.guide-texte{font-size:1.2rem;line-height:1.65;background:#fff;border:1px solid var(--ligne);border-radius:14px;padding:1rem}
.guide-accompagnement{display:grid;gap:.65rem;margin-top:1rem}.guide-accompagnement button,.guide-conteneur>button{justify-content:space-between;gap:1rem}
.guide-conteneur>button{margin:.5rem 0;width:100%}.guide-navigation{margin-top:1.5rem}.guide-frise{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));list-style:none;padding:0;gap:.7rem;counter-reset:etape}.guide-frise li{background:#e8f3f0;border-radius:12px;padding:.6rem;align-items:center}
.guide-cartes{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:1rem;margin:1rem 0}.guide-cartes article{background:white;border:1px solid var(--ligne);border-radius:14px;padding:.7rem}.guide-cartes .guide-image{margin:0}.guide-cartes img{max-height:160px}.guide-cartes p{font-weight:700;margin:.6rem 0 0}
.guide-etiquettes{display:flex;flex-wrap:wrap;gap:.6rem}.guide-etiquettes p{background:#e8f3f0;padding:.5rem;border-radius:10px}
.guide-question{background:white;border:1px solid var(--ligne);padding:1rem;border-radius:16px}.guide-question .cdo-choix{display:grid;grid-template-columns:1fr}.guide-retour:empty{display:none}.guide-retour{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--ligne)}.guide-retour a,.guide-retour button{margin-top:.7rem;display:flex}.guide-recap{margin:1rem 0 2rem}
.cdo-eval .cdo-fig img[src*="comprendre/"]{max-height:260px;object-fit:contain;width:100%}
@media(max-width:600px){.guide-image img{max-height:270px}.guide-cartes{grid-template-columns:1fr}.guide-cartes article{display:grid;grid-template-columns:110px minmax(0,1fr);gap:.6rem;align-items:center}.guide-cartes img{height:90px}.guide-frise{grid-template-columns:1fr 1fr}.guide-conteneur h1{font-size:1.6rem}.guide-conteneur h2{font-size:1.2rem}.guide-texte{font-size:1.1rem}}

/* Les images et les questions restent entièrement visibles au défilement. */
.cdo-guide-ouvert .cdo-tete{position:static}.guide-decouverte .cdo-etapes{display:none}

.guide-frise li{min-width:0}.guide-carte-frise .guide-frise{margin:0}.guide-carte-frise p{margin-top:.7rem}
@media(max-width:600px){.guide-cartes article.guide-carte-frise,.guide-recap .guide-cartes article{grid-template-columns:minmax(0,1fr)}.guide-recap .guide-image img{height:auto;max-height:150px}.guide-recap p{overflow-wrap:normal}.guide-recap .guide-frise{grid-template-columns:1fr 1fr}}
/* Chasses aux risques multi-étapes. */
.chasse-guide{min-width:0}.chasse-commandes{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}.chasse-fenetre{overflow:auto;max-height:75vh;border:1px solid #a4bbb6;border-radius:.65rem}.chasse-scene{position:relative;line-height:0}.chasse-scene>img{display:block;width:100%;height:auto}.chasse-grand .chasse-scene{width:max(100%,1000px)}.chasse-cible{position:absolute;background:transparent;border:3px solid transparent;cursor:crosshair;border-radius:8px;padding:0}.chasse-cible:focus-visible{outline:3px solid #122c61;outline-offset:2px;background:#fff4b755}.chasse-cible.vise{border-color:#a14000;background:#fff4b733;box-shadow:0 0 0 2px white}.chasse-cible.trouve{border-color:#176554}.chasse-cible>span{position:absolute;top:0;left:0;font-size:1rem;line-height:1.2;background:#fff;color:#135345;padding:.2rem}.chasse-tache{margin:1rem 0}.chasse-etape{font-weight:700}.chasse-retour{display:flex;gap:.6rem;align-items:flex-start;padding:1rem;border:2px solid #7a8f89;border-radius:.5rem}.chasse-retour.ok{border-color:#176554;background:#edf8f2}.chasse-retour.ko{border-color:#a14000;background:#fff4e5}.chasse-suite{margin-top:1rem}.chasse-bilan p{padding:.6rem;border-bottom:1px solid #ccd8d3}.chasse-guide .cdo-son{flex-shrink:0}.chasse-guide .cdo-carte{min-height:55px}.chasse-parcours-acces{margin:.7rem 0;padding:.8rem;border:1px solid #b4cec5;border-radius:.5rem}

.chasse-detail{position:relative;overflow:hidden;width:min(100%,380px);margin:.6rem 0;border:2px solid #a14000;border-radius:.5rem}.chasse-detail img{position:absolute;max-width:none;height:auto}.chasse-guide h4{font-size:1.25rem}

.cdo-chasses-ouvert .cdo-tete{position:static}.cdo-chasses-ouvert{scroll-padding-top:0}

.chasse-reponse{font-weight:700;margin:0 0 .4rem}.chasse-explication{margin:.3rem 0;font-weight:400}.chasse-description{margin:1rem 0}.chasse-description article{padding:.6rem;border-top:1px solid #ccd8d3}

/* Recherche et épreuve : deux moments visuellement distincts. */
.chasse-phase{color:#155b50;font-weight:700;font-size:.9rem;letter-spacing:.04em}.chasse-cible.vise{animation:danger-repere .3s ease-out}.chasse-detail{animation:danger-apparition .22s ease-out}.chasse-passerelle{padding:1.2rem;background:#edf3ff;border:2px solid #294c87;border-radius:1rem;margin:1rem 0}.chasse-passerelle a,.chasse-passerelle button{margin:.4rem .4rem .4rem 0}.cdo-epreuve-danger{background:#edf1f9}.cdo-epreuve-danger .cdo-tete{position:static;border-bottom:4px solid #294c87}.cdo-epreuve-danger .cdo-etapes{display:none}.danger-portail{max-width:750px;margin:2rem auto;padding:2rem;background:#fff;border:2px solid #294c87;border-radius:1rem}.danger-portail .cdo-btn{background:#294c87}.danger-portail>a{display:block;margin-top:1rem;text-align:center}.danger-sceau{padding:.7rem 1rem;border-radius:.4rem;background:#213b66;color:white;font-weight:700;letter-spacing:.04em;font-size:.9rem}.danger-traces{padding:1.2rem;background:white;border:1px solid #9facbf;border-radius:.7rem;margin:1.5rem 0}.danger-cadrage{position:relative;overflow:hidden;width:min(100%,430px);border:2px solid #294c87;border-radius:.5rem;margin:0 auto}.danger-sortie{display:flex;flex-wrap:wrap;gap:.75rem;margin:1rem 0}.cdo-epreuve-danger .cdo-eval{background:white;padding:1.2rem;border-radius:1rem}.cdo-epreuve-danger .cdo-fig{margin:1rem auto}.cdo-epreuve-danger .cdo-doc{margin-bottom:1rem}.epreuve-acces{background:#294c87}@keyframes danger-repere{from{box-shadow:0 0 0 12px #d59a4144}to{box-shadow:0 0 0 2px white}}@keyframes danger-apparition{from{opacity:.35;transform:translateY(7px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.chasse-cible.vise,.chasse-detail{animation:none}}@media(max-width:600px){.danger-portail{padding:1.1rem;margin:1rem 0}.danger-sceau{font-size:.8rem}.cdo-epreuve-danger .cdo-eval{padding:.7rem}}
.danger-cadrage img{max-height:none;display:block;border-radius:0}

.cdo-dialogue-meteo{width:min(680px,calc(100% - 24px));max-height:calc(100% - 24px);padding:20px;border:2px solid var(--ligne);border-radius:20px;background:var(--carte);color:inherit}
.cdo-dialogue-meteo::backdrop{background:rgba(0,0,0,.38)}
.cdo-dialogue-meteo .cdo-meteo svg:not(.cdo-son svg){width:48px;height:48px}

.cdo-jeu-indice,.cdo-jeu-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.75rem}
.cdo-jeu-cases{display:flex;flex-wrap:wrap;gap:.3rem;margin:1rem 0}
.cdo-jeu-cases span{display:grid;place-items:center;min-width:1.65rem;min-height:2.25rem;padding:.15rem;border:2px solid #b4c4bd;border-radius:.5rem;font-weight:750}
.cdo-jeu-cases .allumee{background:#ffdc70;color:#352700;border-color:#866400}
.cdo-jeu-clavier{display:grid;grid-template-columns:repeat(auto-fit,minmax(44px,1fr));gap:.4rem;margin:1rem 0}
.cdo-jeu-clavier button{min-height:44px;border:2px solid #537369;border-radius:.6rem;background:white;color:#163c35;font:inherit;font-weight:750}
.cdo-jeu-clavier button:disabled{opacity:.45}
.cdo-jeu-message{min-height:1.6em}
