/* Cockpit v2 · styles. Repris tels quels des maquettes validees le 29.10.2026. */
:root {
  --fond: #F6F5F2; --carte: #FFFFFF; --encre: #111111; --doux: #5C5C5C;
  --trait: #E4E2DC; --trait-fin: #EEECE7; --puce: #F0EEE9; --accent: #E8B04A;
  --vert: #2E7D4F; --ambre: #8A5A00; --rayon: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--fond); color: var(--encre);
  font-family: "Jost", system-ui, -apple-system, sans-serif; -webkit-text-size-adjust: 100%; }
body { min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: 560px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 24px) 16px 110px; display: flex; flex-direction: column; gap: 12px; }
h1 { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.15; }
.surtitre { font-size: 13px; color: var(--doux); }
.entete { display: flex; flex-direction: column; gap: 2px; padding: 0 4px 4px; }
.etiquette { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--doux); }
.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.carte.forte { border: 2px solid var(--encre); }
.carte.noire { background: var(--encre); color: #fff; border-color: var(--encre); }
.carte.noire .etiquette, .carte.noire .doux { color: #CFCFCF; }
.carte.liste { padding: 0; gap: 0; }
.ligne { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--trait-fin);
  text-decoration: none; color: inherit; background: none; border-left: 0; border-right: 0; border-top: 0;
  width: 100%; text-align: left; font: inherit; }
.ligne:last-child { border-bottom: 0; }
.grand { font-size: 24px; font-weight: 600; line-height: 1.2; }
.titre { font-size: 16px; font-weight: 600; }
.texte { font-size: 15px; line-height: 1.4; }
.doux { color: var(--doux); font-size: 13px; }
.manque { font-size: 13px; color: var(--ambre); }
.pastille { width: 32px; height: 32px; border-radius: 16px; flex: none; display: flex; align-items: center;
  justify-content: center; font-weight: 600; font-size: 14px; background: var(--trait-fin); }
.pastille.pleine { background: var(--encre); color: #fff; }
.pastille.cerclee { background: #fff; border: 2px solid var(--encre); }
.pastille.alerte { background: #fff; border: 2px solid var(--accent); }
.jauge { height: 8px; background: var(--trait); border-radius: 4px; overflow: hidden; }
.jauge > i { display: block; height: 8px; background: var(--encre); }
.carte.noire .jauge { background: #3A3A3A; } .carte.noire .jauge > i { background: var(--accent); }
.puce { font-size: 12px; background: var(--puce); border-radius: 8px; padding: 4px 8px; align-self: flex-start; }
.bouton { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px;
  background: var(--encre); color: #fff; border: 0; border-radius: 12px; font: inherit; font-size: 15px;
  font-weight: 500; text-decoration: none; cursor: pointer; }
.bouton.creux { background: #fff; color: var(--encre); border: 1px solid var(--encre); }
.bouton.petit { min-height: 40px; font-size: 14px; padding: 0 14px; }
.boutons { display: flex; gap: 8px; flex-wrap: wrap; }
.boutons > .bouton { flex: 1; }
input, textarea, select { min-height: 44px; border: 1px solid #CFCDC6; border-radius: 12px; padding: 0 14px;
  font: inherit; font-size: 16px; background: #fff; width: 100%; color: var(--encre); }
textarea { padding: 10px 14px; min-height: 80px; resize: vertical; }
label { font-size: 13px; color: var(--doux); display: flex; flex-direction: column; gap: 6px; }
.attente { color: var(--doux); text-align: center; padding: 40px 0; }
.bandeau { font-size: 12px; color: var(--ambre); background: #F9EEDA; border-radius: 10px; padding: 8px 12px; }
.vide { font-size: 14px; color: var(--doux); line-height: 1.45; }
nav#onglets { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--trait);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 6px 4px calc(env(safe-area-inset-bottom) + 10px); z-index: 10; }
nav#onglets a { min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; text-decoration: none; color: var(--doux); font-size: 12px; }
nav#onglets a[aria-current="page"] { color: var(--encre); font-weight: 600; }
nav#onglets svg { width: 22px; height: 22px; }
dialog { border: 0; border-radius: 20px 20px 0 0; padding: 20px 16px calc(env(safe-area-inset-bottom) + 20px);
  width: 100%; max-width: 560px; margin: auto auto 0; display: none; }
dialog[open] { display: flex; flex-direction: column; gap: 12px; }
dialog::backdrop { background: rgba(17,17,17,.35); }
a { color: var(--encre); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Le message court en bas d'ecran (remplace les fenetres systeme). */
#toast { position: fixed; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 84px); z-index: 30;
  max-width: 528px; margin: 0 auto; background: var(--encre); color: #fff; border-radius: 12px; padding: 12px 16px; font-size: 14px; }

/* etapes depliables du parcours (03.11.2026) */
details.carte > summary::-webkit-details-marker { display: none; }
details.carte > summary::marker { content: ""; }

/* La lecon en ecrans : une idee par ecran, lisible debout. */
.ecran-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
button.lien { background: none; border: 0; padding: 8px 0 8px 12px; font: inherit; font-size: 13px; color: var(--doux); text-decoration: underline; }
.points { display: flex; gap: 6px; } .points i { flex: 1; height: 3px; border-radius: 2px; background: var(--trait); } .points i.fait { background: var(--encre); }
.ecran { min-height: 46dvh; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 8px 0; }
.ecran-gros { font-size: 26px; font-weight: 600; line-height: 1.22; letter-spacing: -.01em; text-wrap: balance; }
.ecran.situation .ecran-gros { font-weight: 500; }
.ecran.phrase .ecran-gros { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-style: italic; font-size: 28px; }
.ecran.geste { border-left: 4px solid var(--accent); padding-left: 16px; }
.mots { display: flex; flex-wrap: wrap; gap: 8px; } .mots span { border: 1px solid var(--encre); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; }
button.choix { justify-content: flex-start; text-align: left; height: auto; padding: 12px 14px; line-height: 1.35; }
.carte.suite { background: var(--puce); border: 0; } .carte.suite.bon { background: #E7F1EA; }
.ecran.courte { min-height: 0; }

/* Le visuel produit et ses points a toucher. */
.visuel { display: flex; flex-direction: column; gap: 8px; } .visuel[hidden] { display: none; }
.visuel-image { position: relative; border-radius: 12px; overflow: hidden; background: var(--puce); }
.visuel-image img { display: block; width: 100%; height: auto; }
.point { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; background: var(--encre); color: #fff;
  font: inherit; font-size: 14px; font-weight: 600; box-shadow: 0 1px 6px rgba(0,0,0,.35); padding: 0; }
.point.actif { background: var(--accent); color: var(--encre); }
.visuel-texte { min-height: 64px; display: flex; flex-direction: column; gap: 4px; }

/* La grille d'observation qui se touche (fiche de signature). */
button.observe { display: flex; gap: 10px; align-items: flex-start; text-align: left; width: 100%; background: none; border: 0; padding: 8px 0; font: inherit; color: inherit; }
.obs-marque { flex: 0 0 22px; height: 22px; border-radius: 6px; border: 2px solid var(--doux); margin-top: 1px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
button.observe[data-etat="vu"] .obs-marque { background: var(--vert); border-color: var(--vert); color: #fff; } button.observe[data-etat="vu"] .obs-marque::after { content: "✓"; }
button.observe[data-etat="non"] .obs-marque { background: var(--accent); border-color: var(--accent); } button.observe[data-etat="non"] .obs-marque::after { content: "–"; }
