:root {
  --encre: #14161b; --gris: #5d6370; --clair: #f3f4f7; --trait: #e3e5ea; --fond: #f6f7f9;
  --accent: #2f5bea; --accent-clair: #e9eefe; --vert: #13865a; --vert-clair: #e2f5ea; --or: #c8963e;
  --rouge: #c8372d; --violet: #6b4fd6; --sur: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--fond); color: var(--encre); font-family: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.35; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* connexion */
.connexion { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: var(--encre); }
.verrou { width: 100%; max-width: 340px; text-align: center; color: #fff; }
.connexion .logo { font-size: 48px; }
.connexion h1 { margin: 8px 0 4px; font-size: 28px; }
.connexion p { color: #c9ccd4; margin: 0 0 18px; }
.connexion input { width: 100%; padding: 14px 16px; border-radius: 14px; border: 0; font-size: 17px; margin-bottom: 10px; color: var(--encre); }
.connexion form button { width: 100%; padding: 14px; border-radius: 14px; border: 0; background: var(--accent); color: #fff; font-weight: 700; font-size: 17px; }
.btn-faceid, .btn-schema { width: 100%; padding: 15px; border-radius: 14px; border: 0; font-weight: 700; font-size: 17px; margin: 6px 0; display: flex; gap: 8px; justify-content: center; align-items: center; }
.btn-faceid { background: var(--accent); color: #fff; }
.btn-faceid span { font-size: 22px; }
.btn-schema { background: rgba(255,255,255,.12); color: #fff; }
.lien-clair { border: 0; background: none; color: #c9ccd4; text-decoration: underline; margin-top: 16px; font-size: 15px; padding: 6px; }
.consigne { color: #e7eaf2 !important; margin: 14px 0 6px !important; font-weight: 600; }
.info { color: #9fe0bf !important; min-height: 1.2em; margin: 8px 0 0 !important; }
/* schéma à dessiner (comme sur Android) */
.schema { position: relative; width: 264px; height: 264px; margin: 6px auto 0; touch-action: none; user-select: none; -webkit-user-select: none; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); }
.schema svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.schema svg line { stroke: rgba(255,255,255,.75); stroke-width: 6; stroke-linecap: round; }
.schema.erreur svg line { stroke: #ff6b5e; }
.schema.ok svg line { stroke: #4cd790; }
.point { width: 22px; height: 22px; border-radius: 99px; background: rgba(255,255,255,.3); place-self: center; transition: transform .12s, background .12s; }
.point.on { background: #fff; transform: scale(1.3); box-shadow: 0 0 0 9px rgba(255,255,255,.12); }
.schema.erreur .point.on { background: #ff6b5e; }
.schema.ok .point.on { background: #4cd790; }
.securite button { width: 100%; text-align: left; border: 0; background: var(--clair); border-radius: 12px; padding: 12px; font-size: 15px; font-weight: 600; margin-top: 6px; }
.erreur { color: #ff8a80 !important; margin-top: 10px !important; min-height: 1.2em; }

/* haut */
.haut { position: sticky; top: 0; z-index: 5; background: var(--encre); color: #fff; padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 10px; }
.haut-ligne { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.haut h1 { margin: 0; font-size: 21px; }
.compteur { font-size: 12.5px; color: #c9ccd4; text-align: right; line-height: 1.25; }
.compteur b { color: #fff; }
.compteur .alerte { color: #ffb74d; }
.puces { display: flex; gap: 6px; margin: 10px -12px 8px; padding: 0 12px; }
.defile { overflow-x: auto; scrollbar-width: none; }
.defile::-webkit-scrollbar { display: none; }
.puce { flex: none; border: 0; border-radius: 99px; padding: 7px 12px; background: rgba(255,255,255,.1); color: #e7eaf2; font-size: 14px; font-weight: 600; white-space: nowrap; }
.puce small { opacity: .7; font-weight: 500; margin-left: 3px; }
.puce.actif { background: #fff; color: var(--encre); }
.filtres { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.filtres input[type=search] { grid-column: 1 / -1; }
.filtres input[type=search], .filtres select { width: 100%; border: 0; border-radius: 10px; padding: 9px 10px; font-size: 15px; background: #fff; color: var(--encre); -webkit-appearance: none; appearance: none; }
.filtres select { background-image: linear-gradient(45deg, transparent 50%, #5d6370 50%), linear-gradient(135deg, #5d6370 50%, transparent 50%); background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 24px; }
.bascule { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 14px; color: #e7eaf2; }
.bascule input { width: 18px; height: 18px; accent-color: var(--accent); }

main { padding: 10px 10px calc(84px + var(--sur)); max-width: 720px; margin: 0 auto; }
.resume { margin: 2px 4px 10px; color: var(--gris); font-size: 13.5px; }

/* carte commerce */
.carte { background: #fff; border-radius: 16px; padding: 12px 12px 10px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(20,22,27,.06); border-left: 5px solid transparent; }
.carte[data-s="Message envoyé"] { border-left-color: var(--accent); }
.carte[data-s="Pas répondu"] { border-left-color: #9aa1ad; }
.carte[data-s="Rappeler"] { border-left-color: #f0a020; }
.carte[data-s="Intéressé"] { border-left-color: #f59f00; background: #fffaf0; }
.carte[data-s="Maquette envoyée"] { border-left-color: var(--violet); }
.carte[data-s="RDV"] { border-left-color: #0aa5c2; }
.carte[data-s="Signé"] { border-left-color: var(--vert); background: #f6fcf8; }
.carte[data-s="Pas intéressé"] { opacity: .55; }
.carte-tete { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.carte h2 { margin: 0; font-size: 17px; line-height: 1.2; }
.etoiles { color: var(--or); font-size: 14px; white-space: nowrap; }
.infos { margin: 4px 0 0; font-size: 13.5px; color: var(--gris); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--clair); color: var(--encre); margin-top: 6px; }
.badge.plateforme { background: #fff1e0; color: #a15c00; }
.badge.social { background: #eef0ff; color: #3b45a8; }
.badge.aucun { background: #ffe9e7; color: var(--rouge); }
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 8px; }
.actions a, .actions span { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--encre); background: var(--clair); border-radius: 12px; padding: 8px 2px; font-size: 12.5px; font-weight: 600; }
.actions a b { font-size: 19px; line-height: 1; }
.actions a.appel { background: var(--vert-clair); color: var(--vert); }
.actions a.sms { background: var(--accent-clair); color: var(--accent); }
.actions a.wa { background: #e3f8ea; color: #128c3e; }
.actions span { opacity: .35; }
.statuts { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 2px; }
.statuts::-webkit-scrollbar { display: none; }
.statut { flex: none; border: 1.5px solid var(--trait); background: #fff; border-radius: 99px; padding: 6px 10px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.statut.actif { background: var(--encre); border-color: var(--encre); color: #fff; }
.pied-carte { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; font-size: 12.5px; color: var(--gris); }
.lien-note { border: 0; background: none; color: var(--accent); font-weight: 600; padding: 4px 0; font-size: 13.5px; }
.note { width: 100%; margin-top: 8px; border: 1.5px solid var(--trait); border-radius: 10px; padding: 8px 10px; font-size: 15px; min-height: 64px; resize: vertical; }
.rappel { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; }
.rappel input { border: 1.5px solid var(--trait); border-radius: 10px; padding: 6px 8px; font-size: 15px; }
.suite { text-align: center; color: var(--gris); padding: 16px; font-size: 14px; }

/* script & suivi */
.bloc { background: #fff; border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.bloc h2 { margin: 0 0 8px; font-size: 18px; }
.bloc h3 { margin: 12px 0 4px; font-size: 15px; }
.dire { background: var(--accent-clair); border-left: 3px solid var(--accent); border-radius: 8px; padding: 8px 10px; margin: 6px 0; font-size: 15px; }
.etape { display: grid; grid-template-columns: 26px 1fr; gap: 8px; margin-bottom: 10px; }
.etape > i { font-style: normal; width: 26px; height: 26px; border-radius: 99px; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.etape p { margin: 2px 0; color: var(--gris); font-size: 14px; }
details { border-top: 1px solid var(--trait); padding: 10px 0; }
details summary { font-weight: 700; cursor: pointer; }
details p { margin: 6px 0 0; font-size: 15px; }
.select-metier { width: 100%; border: 1.5px solid var(--trait); border-radius: 10px; padding: 9px 10px; font-size: 15px; background: #fff; margin-bottom: 6px; }
.chiffres { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.chiffre { background: var(--clair); border-radius: 12px; padding: 10px; }
.chiffre b { display: block; font-size: 24px; }
.chiffre span { font-size: 13px; color: var(--gris); }
.ligne-suivi { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-top: 1px solid var(--trait); font-size: 15px; }
.ligne-suivi small { color: var(--gris); }
.vide { color: var(--gris); font-size: 14px; margin: 4px 0; }

/* barre du bas */
.bas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--trait); padding-bottom: var(--sur); }
.bas button { border: 0; background: none; padding: 8px 0 9px; font-size: 12px; font-weight: 600; color: var(--gris); display: flex; flex-direction: column; align-items: center; gap: 1px; }
.bas button span { font-size: 21px; }
.bas button.actif { color: var(--accent); }
.toast { position: fixed; left: 12px; right: 12px; bottom: calc(76px + var(--sur)); z-index: 9; background: var(--encre); color: #fff; border-radius: 14px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.toast button { border: 0; background: #fff; color: var(--encre); border-radius: 10px; padding: 7px 12px; font-weight: 700; }

.filtres select.pleine { grid-column: 1 / -1; }
.badge.zone { background: #eef6ff; color: #1f4fa8; }
.carte[data-s="RDV"] { border-left-color: #0aa5c2; background: #f2fbfd; }
.objectif { background: #fff4dc; border-radius: 10px; padding: 9px 11px; margin: 4px 0 12px; font-size: 15px; }

/* rendez-vous */
.rdv { margin-top: 10px; background: #fff; border: 1.5px solid #b9e6ef; border-radius: 12px; padding: 10px; }
.rdv-titre { margin: 0 0 6px; font-weight: 800; }
.rdv-ligne { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.rdv-ligne input { flex: 1; min-width: 0; border: 1.5px solid var(--trait); border-radius: 10px; padding: 8px; font-size: 16px; background: #fff; }
.rdv-avec { width: 100%; border: 1.5px solid var(--trait); border-radius: 10px; padding: 8px 10px; font-size: 16px; }
.rdv-resume { margin: 8px 0 6px; font-weight: 700; color: #0b7285; }
.rdv-resume.attente { color: var(--gris); font-weight: 500; }
.btn-rdv { display: block; text-align: center; text-decoration: none; background: var(--accent); color: #fff; font-weight: 800; border-radius: 12px; padding: 11px; }
.btn-rdv.wa { background: #19a64a; }

/* formation */
.grade { background: linear-gradient(160deg, #14161b, #2a3150); color: #fff; }
.grade .vide { color: #c9cedb; }
.grade-tete { display: flex; align-items: center; gap: 10px; }
.grade-icone { font-size: 40px; }
.grade-tete small { color: #c9cedb; }
.grade-tete h2 { margin: 0; color: #fff; }
.grade .xp { margin-left: auto; background: #ffd34d; color: #14161b; font-weight: 800; border-radius: 99px; padding: 4px 10px; }
.barre { height: 12px; background: rgba(255,255,255,.15); border-radius: 99px; overflow: hidden; margin: 12px 0 6px; }
.barre i { display: block; height: 100%; background: linear-gradient(90deg, #ffd34d, #4cd790); border-radius: 99px; transition: width .6s; }
.chiffres.petits { grid-template-columns: repeat(3, 1fr); margin-top: 8px; }
.grade .chiffre { background: rgba(255,255,255,.08); }
.grade .chiffre span { color: #c9cedb; }
.grade .chiffre b { font-size: 19px; }
.ligne-lecon { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: var(--clair); border-radius: 12px; padding: 10px; margin-top: 6px; text-align: left; }
.ligne-lecon .ico { font-size: 24px; }
.ligne-lecon .txt { flex: 1; display: flex; flex-direction: column; }
.ligne-lecon small { color: var(--gris); }
.ligne-suivi.verrouille { opacity: .45; }
.jeu-tete { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.retour { border: 0; background: var(--clair); border-radius: 10px; padding: 7px 10px; font-weight: 700; }
.pastilles { display: flex; gap: 5px; margin-bottom: 12px; }
.pastilles i { flex: 1; height: 5px; border-radius: 99px; background: var(--trait); }
.pastilles i.on { background: var(--accent); }
.carte-lecon { background: var(--accent-clair); border-radius: 16px; padding: 22px 18px; font-size: 19px; line-height: 1.45; min-height: 170px; display: flex; align-items: center; }
.btn-plein { width: 100%; margin-top: 14px; border: 0; background: var(--accent); color: #fff; font-weight: 800; font-size: 17px; border-radius: 14px; padding: 14px; }
.question { font-size: 19px; font-weight: 700; line-height: 1.35; margin: 4px 0 14px; }
.question .heure { display: inline-block; font-size: 30px; margin: 6px 0; }
.reponse { width: 100%; text-align: left; border: 2px solid var(--trait); background: #fff; border-radius: 12px; padding: 13px 14px; font-size: 16px; font-weight: 600; margin-bottom: 8px; transition: background .15s, border-color .15s; }
.reponse.bonne { background: #e2f5ea; border-color: #13865a; }
.reponse.mauvaise { background: #fdecea; border-color: #c8372d; animation: secoue .3s; }
@keyframes secoue { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.explic { min-height: 1.4em; font-size: 15px; }
.chrono { height: 8px; background: var(--clair); border-radius: 99px; overflow: hidden; margin-bottom: 12px; }
.chrono i { display: block; height: 100%; width: 100%; background: #f59f00; }
.grille-choix { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.grille-choix .reponse { margin: 0; text-align: center; font-size: 15px; }
.oui-non { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.oui-non .reponse { text-align: center; font-size: 19px; padding: 18px; }
.fin { text-align: center; padding: 10px 0; font-size: 18px; }
.fin .gros { font-size: 64px; }

/* hors de la liste, on cache les filtres pour garder la place */
body:not([data-vue="liste"]) .haut .filtres, body:not([data-vue="liste"]) #onglets-metier { display: none; }

/* ===== académie ===== */
.reponse:disabled, .statut:disabled { color: var(--encre); -webkit-text-fill-color: var(--encre); opacity: 1; }
.statut:disabled { opacity: .4; }
.btn-plein:disabled { opacity: .45; }
.btn-plein.secondaire { background: var(--clair); color: var(--encre); }
.ok { color: var(--vert); }
.ko { color: var(--rouge); }
.bascule-anis { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #fff; border-radius: 14px; padding: 4px; margin-bottom: 10px; }
.bascule-anis button { border: 0; background: none; border-radius: 10px; padding: 9px 6px; font-weight: 700; font-size: 14px; color: var(--gris); }
.bascule-anis button.actif { background: var(--encre); color: #fff; }
.exigences { list-style: none; padding: 0; margin: 4px 0 8px; font-size: 14px; color: #c9cedb; }
.exigences li { margin: 3px 0; }
.exigences li.fait { color: #9fe0bf; }
.btn-continuer { margin: 0 0 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 18px; box-shadow: 0 6px 18px rgba(47,91,234,.3); }
.btn-continuer small { font-weight: 600; font-size: 13px; opacity: .85; }
.ligne-lecon.echauffement { background: #fff4dc; margin: 0 0 10px; }
.ligne-lecon.echauffement.valide { background: var(--vert-clair); }
.ligne-lecon.valide small { color: var(--vert); }
.ligne-lecon.verrou { opacity: .5; }
.ligne-lecon.lecture, .ligne-lecon.exos, .ligne-lecon.examen { background: var(--accent-clair); box-shadow: inset 3px 0 0 var(--accent); }
.ligne-lecon .etat { font-size: 18px; }
.retours-anis { border: 2px solid #ffd34d; }
.retour-carte { background: var(--clair); border-radius: 12px; padding: 10px; margin-top: 8px; font-size: 15px; }
.retour-carte.ok { background: var(--vert-clair); }
.retour-carte.refaire { background: #fff4dc; }
.retour-carte p { margin: 4px 0; }
.retour-carte small, .copie small, .faible small { color: var(--gris); }
.consigne-admin { font-size: 14px; color: var(--gris); font-style: italic; margin: 4px 0; }

/* chapitre */
.chap-tete { text-align: center; padding: 4px 4px 12px; }
.chap-icone { font-size: 52px; }
.chap-tete h2 { margin: 4px 0; font-size: 22px; }
.chap-tete p { margin: 6px 0; font-size: 15px; }
.chap-tete small { color: var(--gris); }
.etapes-chap { display: flex; flex-direction: column; gap: 8px; }
.etape-chap { display: flex; align-items: center; gap: 10px; background: var(--clair); border-radius: 12px; padding: 10px; }
.etape-chap > span { width: 28px; height: 28px; border-radius: 99px; background: var(--trait); display: grid; place-items: center; font-weight: 800; flex: none; }
.etape-chap.encours > span { background: var(--accent); color: #fff; }
.etape-chap.fait > span { background: var(--vert); color: #fff; }
.etape-chap > div { flex: 1; display: flex; flex-direction: column; }
.etape-chap small { color: var(--gris); font-size: 13px; }
.alerte-info { background: #fff4dc; border-radius: 12px; padding: 10px 12px; font-size: 15px; margin: 10px 0; }

/* leçon */
.titre-page { font-size: 22px; margin: 4px 0 10px; line-height: 1.25; }
.lecon { font-size: 17px; line-height: 1.55; }
.lecon p { margin: 10px 0; }
.lecon ul, .lecon ol { padding-left: 22px; margin: 8px 0; }
.lecon li { margin: 6px 0; }
.lecon h3 { margin: 16px 0 4px; }
.cle { background: #eef2ff; border-radius: 12px; padding: 12px 14px; margin: 12px 0; font-size: 16px; line-height: 1.55; }
.astuce { background: #fff8e1; border-radius: 12px; padding: 12px 14px; margin: 12px 0; font-size: 16px; }
.stop { background: #fdecea; border-radius: 12px; padding: 12px 14px; margin: 12px 0; font-size: 16px; }
.lecon .dire { font-size: 16px; line-height: 1.5; padding: 10px 12px; }
.dire-inline { display: block; background: var(--accent-clair); border-radius: 8px; padding: 6px 9px; margin: 4px 0; font-style: italic; }
.t { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 10px 0; line-height: 1.4; }
.t th, .t td { border: 1px solid var(--trait); padding: 7px 8px; vertical-align: top; text-align: left; }
.t th { background: var(--clair); }
.dialogue { background: var(--clair); border-radius: 14px; padding: 10px; margin: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.dialogue p { margin: 0; padding: 8px 10px; border-radius: 12px; max-width: 92%; font-size: 15.5px; }
.dialogue .p { background: #fff; align-self: flex-start; }
.dialogue .m { background: var(--accent); color: #fff; align-self: flex-end; }
.nav-pages { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: stretch; margin-top: 16px; }
.nav-pages .retour { padding: 0 12px; }
.nav-pages .btn-plein { margin: 0; }
.btn-suivant { position: relative; overflow: hidden; }
.btn-suivant i { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(255,255,255,.25); transition-property: width; transition-timing-function: linear; }
.btn-suivant.remplit i { width: 100%; }
.btn-suivant b { position: relative; }
.btn-suivant:disabled { opacity: .7; }
.attente-lecture { text-align: center; }

/* exercices */
.consigne-exo { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--accent); margin: 0 0 4px; }
.explic-boite { border-radius: 12px; padding: 10px 12px; margin-top: 6px; font-size: 15px; }
.explic-boite.ok { background: var(--vert-clair); }
.explic-boite.ko { background: #fdecea; }
.explic-boite p { margin: 6px 0 0; }
.explic-boite small { display: block; margin-top: 6px; color: var(--gris); }
.reponse.choisi { border-color: var(--accent); background: var(--accent-clair); }
.registre { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.registre .reponse { font-size: 15px; padding: 11px 10px; text-align: center; }
.texte-voix { white-space: normal; font-size: 16px; line-height: 1.5; }
.gros-texte { font-size: 19px; font-weight: 600; }
.zone-micro { margin: 10px 0; }
.enregistreur { display: flex; align-items: center; gap: 10px; }
.btn-micro { border: 0; background: var(--rouge); color: #fff; font-weight: 800; border-radius: 99px; padding: 12px 18px; font-size: 16px; }
.btn-micro.en-cours { background: var(--encre); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(200,55,45,.18); } }
.chrono-micro { font-weight: 800; font-variant-numeric: tabular-nums; }
.zone-micro audio { width: 100%; margin-top: 8px; }
.critere { display: flex; gap: 10px; align-items: flex-start; background: var(--clair); border-radius: 10px; padding: 10px; margin-top: 6px; font-size: 15px; }
.critere input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--vert); }
.zone-ecrit, .champ { width: 100%; border: 1.5px solid var(--trait); border-radius: 12px; padding: 10px 12px; font-size: 16px; background: #fff; resize: vertical; margin-top: 8px; }
.champ { display: block; }

/* examens */
.regles-examen { text-align: left; font-size: 15px; background: var(--clair); border-radius: 12px; padding: 10px 10px 10px 28px; }
.regles-examen li { margin: 4px 0; }
.score-examen { font-size: 46px; font-weight: 900; margin: 4px 0; }
.correction { border-top: 1px solid var(--trait); padding: 8px 0; font-size: 15px; }
.correction p { margin: 3px 0; }

/* simulateur */
.contexte-sim { background: #fff4dc; border-radius: 12px; padding: 10px 12px; font-size: 15px; margin-bottom: 8px; }
.contexte-sim p { margin: 4px 0 0; }
.fil-sim { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.bulle { padding: 10px 12px; border-radius: 16px; max-width: 90%; font-size: 15.5px; line-height: 1.4; }
.bulle.patron { background: var(--clair); align-self: flex-start; border-bottom-left-radius: 4px; }
.bulle.moi { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bulle.coach { align-self: stretch; max-width: none; font-size: 14.5px; border-radius: 12px; }
.bulle.coach.ok { background: var(--vert-clair); }
.bulle.coach.moyen { background: #fff4dc; }
.bulle.coach.ko { background: #fdecea; }
.bulle.coach small { display: block; margin-top: 4px; color: var(--encre); }
.choix-sim { font-size: 15px; font-weight: 500; line-height: 1.4; }
.issue-sim { font-size: 20px; font-weight: 800; margin: 6px 0 0; }

/* boîte à outils */
.mot-jour { background: #eef2ff; border-radius: 14px; padding: 12px 14px; margin: 8px 0; }
.mot-jour b { font-size: 24px; }
.mot-jour p { margin: 6px 0; }
.mot-jour.petit b { font-size: 18px; }
details.phrasier summary { font-size: 16px; padding: 4px 0; }

/* espace Anis */
.ligne-admin { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--trait); }
.ligne-admin .ico { font-size: 22px; }
.ligne-admin .txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ligne-admin small { color: var(--gris); font-size: 13px; }
.ligne-admin .statut { flex: none; }
.graphe { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; align-items: end; height: 84px; }
.col-graphe { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.col-graphe .barres { height: 62px; display: flex; align-items: flex-end; gap: 1px; }
.col-graphe i { display: block; width: 7px; border-radius: 3px 3px 0 0; min-height: 2px; }
.col-graphe small { font-size: 11px; color: var(--gris); }
i.min, .pastille.min { background: var(--accent); }
i.app, .pastille.app { background: #f59f00; }
.pastille { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; }
.faible { border-top: 1px solid var(--trait); padding: 8px 0; font-size: 15px; }
.faible p { margin: 3px 0; }
.copie { border-top: 1px solid var(--trait); padding: 10px 0; }
.texte-tahha { background: var(--clair); border-radius: 10px; padding: 10px; font-size: 15px; line-height: 1.45; margin: 6px 0; }
.zone-retour .champ { margin-top: 4px; font-size: 15px; }
.deux-boutons { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.nouveau { color: var(--accent); font-weight: 700; font-size: 14px; margin: 4px 0; }
.erreur-admin { color: var(--rouge); min-height: 1.2em; }
.livre { display: flex; gap: 10px; align-items: flex-start; border-top: 1px solid var(--trait); padding: 9px 0; }
.livre > div { flex: 1; min-width: 0; }
.livre small { display: block; color: var(--gris); font-size: 13px; }
.livre p { margin: 3px 0; font-size: 14.5px; }
.livre .chap-ref { color: var(--accent); }
.livre.lu b { color: var(--vert); }
.livre .statut { flex: none; }

/* bouton de mise à jour */
.maj { position: fixed; left: 12px; right: 12px; top: calc(env(safe-area-inset-top, 0px) + 8px); z-index: 20; background: #ffd34d; color: var(--encre); border-radius: 14px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.maj button { border: 0; background: var(--encre); color: #fff; border-radius: 10px; padding: 8px 12px; font-weight: 800; }

/* entrée : un côté par personne */
.cotes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.cote { border: 0; border-radius: 18px; background: rgba(255,255,255,.1); color: #fff; padding: 20px 8px 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cote span { font-size: 42px; }
.cote b { font-size: 19px; }
.cote small { color: #c9ccd4; font-size: 12px; min-height: 1.3em; }
.cote.dernier { box-shadow: inset 0 0 0 2px #ffd34d; }
.badge-cote { border: 0; background: rgba(255,255,255,.14); color: #fff; border-radius: 99px; padding: 5px 10px; font-weight: 700; font-size: 13px; margin: 0 auto 0 8px; white-space: nowrap; }
.badge-cote.vu-par-anis { background: #ffd34d; color: var(--encre); }

/* le mot d'Anis */
.carte-mot { width: 100%; display: flex; align-items: center; gap: 10px; border: 2px solid #ffd34d; background: #fff8e1; border-radius: 16px; padding: 12px; margin-bottom: 10px; text-align: left; }
.carte-mot .ico { font-size: 28px; }
.carte-mot .txt { flex: 1; display: flex; flex-direction: column; }
.carte-mot small { color: var(--gris); }
.lien-mot { display: block; width: 100%; border: 0; background: #fff8e1; color: var(--encre); border-radius: 12px; padding: 11px 12px; font-weight: 700; font-size: 15px; text-align: left; margin: 12px 0 4px; }
.modale-mot { position: fixed; inset: 0; z-index: 30; background: rgba(20,22,27,.55); display: grid; place-items: center; padding: 20px; }
.modale-boite { background: #fff; border-radius: 20px; padding: 22px 18px 14px; max-width: 360px; width: 100%; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.modale-boite .gros { font-size: 46px; }
.modale-boite h2 { margin: 6px 0; }
.modale-boite p { font-size: 15.5px; margin: 8px 0; }
.lien-gris { border: 0; background: none; color: var(--gris); text-decoration: underline; padding: 10px; margin-top: 4px; font-size: 15px; }
.source { font-size: 13px; color: var(--gris); border-top: 1px dashed var(--trait); padding-top: 8px; margin-top: 16px !important; }

/* script et assistant d'appel */
.astuce-script { background: #fff8e1; border-radius: 12px; padding: 10px 12px; font-size: 14.5px; margin: 0 0 12px; }
.astuce-script .lien-mot { background: #fff; margin: 8px 0 0; }
.questions-appel { padding-left: 20px; margin: 6px 0; font-size: 15px; }
.questions-appel li { margin: 5px 0; }
.assistant { position: fixed; inset: 0; z-index: 25; background: var(--fond); display: flex; flex-direction: column; }
.assistant-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--encre); color: #fff; padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 10px; }
.assistant-tete > div { display: flex; flex-direction: column; min-width: 0; }
.assistant-tete b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.assistant-tete small { color: #c9ccd4; font-size: 13px; }
.assistant-tete button { border: 0; background: rgba(255,255,255,.15); color: #fff; border-radius: 99px; width: 38px; height: 38px; font-size: 18px; flex: none; }
.assistant-corps { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px; background: #fff; }
.assistant-corps .etape b { font-size: 15.5px; }
.bloc-interne { border-top: 1px solid var(--trait); padding-top: 10px; margin-top: 10px; }
.note-assistant { background: #fff4dc; border-radius: 10px; padding: 8px 10px; font-size: 14.5px; margin: 6px 0 10px; }
.note-label { display: block; font-weight: 700; font-size: 14px; margin-top: 12px; }
.assistant-pied { background: #fff; border-top: 1px solid var(--trait); padding: 8px 12px calc(var(--sur) + 10px); }
.assistant-pied p { margin: 0 0 6px; font-size: 13px; color: var(--gris); font-weight: 600; }
.issues { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.issues button { border: 1.5px solid var(--trait); background: #fff; border-radius: 10px; padding: 9px 4px; font-size: 13.5px; font-weight: 700; }
.issues .issue-rdv { background: var(--vert); border-color: var(--vert); color: #fff; }
body.sans-defilement { overflow: hidden; }

/* tests du soir */
.carte-test { display: flex; flex-direction: column; gap: 6px; background: linear-gradient(160deg, #1d2440, #2f5bea); color: #fff; border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.carte-test small { color: #d6defa; font-size: 13.5px; }
.carte-test .rebours.gros { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.carte-test .btn-plein { background: #ffd34d; color: var(--encre); margin-top: 6px; }
.carte-test .statut { align-self: flex-start; }
.carte-test.ouverte { background: linear-gradient(160deg, #7a1d12, #e0502f); }
.tests-anis .carte-test { margin-bottom: 8px; }
.champ.petit { width: auto; flex: 1; min-width: 0; margin-top: 0; padding: 8px 10px; font-size: 15px; }
.fiche-google { border: 1.5px solid var(--trait); border-radius: 14px; padding: 12px 14px; margin: 8px 0; background: #fff; }
.fiche-google b { font-size: 19px; }
.fiche-google small { display: block; color: var(--gris); margin-bottom: 6px; }
.fiche-google p { margin: 4px 0; font-size: 15px; }
.fiche-google .zone-fiche { color: var(--accent); font-weight: 700; }
.prepa-test { padding-left: 20px; font-size: 15.5px; }
.prepa-test li { margin: 4px 0; }
.lien-bouton { display: block; text-align: center; text-decoration: none; }
.ligne-bareme { margin: 12px 0 2px; font-size: 15px; }
.critere-res { margin: 2px 0; font-size: 14.5px; }
.total-bareme { font-size: 18px; text-align: right; }
.rdv-test { background: var(--vert-clair); }
.import-audio { display: inline-block; margin-top: 8px; }
.coach-ia { border: 2px solid var(--accent-clair); border-radius: 14px; padding: 10px 12px; margin-top: 10px; }
.transcription { font-size: 13.5px; color: var(--gris); white-space: normal; }

/* étapes du script, plus lisibles */
.etape .but { margin: 2px 0 6px; font-size: 14px; color: var(--accent); font-weight: 700; }
.liste-etape { padding-left: 18px; margin: 4px 0; font-size: 14.5px; }
.liste-etape li { margin: 4px 0; }
.pourquoi { font-size: 13.5px; color: var(--gris); margin: 6px 0 4px; }
.si { font-size: 14px; margin: 4px 0; background: var(--clair); border-radius: 8px; padding: 6px 8px; }
.option-etape { font-size: 14px; background: #fff8e1; border-radius: 8px; padding: 6px 8px; margin: 6px 0; }
.carte-test select, .carte-test .statut, .carte-test .champ { color: var(--encre); -webkit-text-fill-color: var(--encre); background: #fff; }

/* trois côtés : Anis, Bilal (sous-chef associé), Tahha */
.cotes.trois { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cotes.trois .cote { padding: 16px 4px 12px; }
.cotes.trois .cote span { font-size: 34px; white-space: nowrap; }
.cotes.trois .cote b { font-size: 17px; }
.bascule-anis.trois { grid-template-columns: repeat(3, 1fr); }
.menu-cotes { position: absolute; left: 12px; top: calc(100% + 4px); background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); padding: 6px; display: flex; flex-direction: column; gap: 4px; z-index: 12; }
.menu-cotes button { border: 0; background: var(--clair); color: var(--encre); border-radius: 10px; padding: 10px 14px; font-weight: 700; text-align: left; font-size: 15px; }

/* brief, équipe, primes */
.brief { margin: 10px 0; border-top: 1px dashed #b9e6ef; padding-top: 8px; }
.brief textarea.rdv-avec { resize: vertical; }
.brief.lecture p { margin: 4px 0; font-size: 14.5px; }
.puces-brief { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.puce-brief { display: inline-flex; align-items: center; gap: 5px; border: 1.5px solid var(--trait); border-radius: 99px; padding: 5px 9px; font-size: 13px; font-weight: 600; background: #fff; }
.puce-brief input { width: 16px; height: 16px; margin: 0; accent-color: var(--vert); }
.btn-rdv.wa { border: 0; width: 100%; font-size: 15px; }
.brief-recu { border: 2px solid #b9e6ef; border-radius: 12px; padding: 10px; margin-bottom: 8px; background: #f2fbfd; }
.brief-recu > b { display: block; font-size: 15.5px; }
.brief-recu > small { color: var(--gris); }
.compte-rouge { display: inline-block; background: var(--rouge); color: #fff; border-radius: 99px; padding: 1px 8px; font-size: 13px; vertical-align: 2px; }
.ligne-rdv { border-top: 1px solid var(--trait); padding: 8px 0; }
.ligne-rdv small { display: block; color: var(--gris); font-size: 13px; margin: 2px 0 4px; }
.champ-prime { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.champ-prime .champ { width: 80px; flex: none; }
.ajout-membre { display: grid; grid-template-columns: 1fr 90px; gap: 8px; }
.emoji-champ { text-align: center; font-size: 20px; }
.emojis { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.emojis button { border: 0; background: var(--clair); border-radius: 10px; font-size: 22px; padding: 4px 7px; }
.code-donne { border: 3px solid #ffd34d; }
.gros-code { font-size: 40px; font-weight: 900; letter-spacing: 6px; text-align: center; margin: 6px 0; font-variant-numeric: tabular-nums; }
.bas button.pastille { position: relative; }
.bas button.pastille::after { content: ""; position: absolute; top: 6px; right: calc(50% - 18px); width: 10px; height: 10px; border-radius: 99px; background: var(--rouge); border: 2px solid #fff; }
.bienvenue-boite { max-width: 380px; }
.bv-texte { text-align: left; color: #e7eaf2; font-size: 15.5px; line-height: 1.5; background: rgba(255,255,255,.06); border-radius: 14px; padding: 6px 14px; margin: 8px 0 14px; }
.bv-texte ol { padding-left: 20px; }
.bv-texte li { margin: 6px 0; }
.bv-texte .signature { text-align: right; font-weight: 800; }
.connexion .bv-texte p { color: #e7eaf2; margin: 10px 0; }

/* ---------- le script d'appel : accroches, profils, calculette, closings ---------- */
.principes { background: var(--clair); border-radius: 12px; padding: 8px 11px; margin: 0 0 12px; }
.principes p { margin: 5px 0; font-size: 14px; color: var(--gris); }
.principes b { color: var(--encre); }
.sous-titre { font-size: 13.5px !important; font-weight: 800; color: var(--encre) !important; margin: 10px 0 2px !important; }
details.accroche { border: 1px solid var(--trait); border-radius: 10px; padding: 8px 10px; margin: 6px 0; background: #fff; }
details.accroche[open] { border-color: var(--accent); }
details.accroche summary { font-size: 15px; }
details.autres-accroches { border-top: 0; padding: 4px 0; }
details.autres-accroches > summary { font-size: 14px; color: var(--accent); }
.profils { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.puce-profil { border: 1px solid var(--trait); background: #fff; color: var(--encre); border-radius: 99px; padding: 6px 10px; font-size: 13.5px; font-weight: 600; }
.puce-profil.actif { background: var(--accent); border-color: var(--accent); color: #fff; }
.profil-detail { background: #fbfaff; border: 1px solid #e4defa; border-radius: 10px; padding: 8px 10px; margin: 6px 0; }
.profil-detail p { color: var(--encre) !important; }
.calc { background: var(--vert-clair); border-radius: 12px; padding: 10px 12px; margin: 6px 0; display: flex; flex-direction: column; gap: 6px; }
.calc label { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.calc input { width: 84px; flex: none; border: 1px solid var(--trait); border-radius: 8px; padding: 6px 8px; font-size: 16px; text-align: right; }
.calc-res { color: var(--vert) !important; font-weight: 700; font-size: 15px !important; margin: 4px 0 0 !important; }
.closing { margin: 8px 0; }
.closing > b { font-size: 14px !important; }
.closing .pourquoi { margin-top: 0; }
.sms-apercu { background: #e9f8ee; border-radius: 14px 14px 14px 4px; padding: 9px 12px; font-size: 14.5px; margin: 6px 0; }
.ligne-notif { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 6px 0; }
.ligne-notif input { margin-top: 3px; flex: none; }
