/* Auto-évaluation publique (palier 0) — charte Soluce 55 (22/11/2026).
   Dark Puce #3d0f06 · Linen #e7e2d4 · Alaskan Black #303336 ; piliers (soluce55.com) : Bronze #c3751f,
   Copper #944b48, Layla #c0d79a, Maya #9bc9df, Light Drab #927b4f. Titres Noto Serif Display, texte Overpass.
   Téléphone d'abord (390 px).
   28/11/2026 (D8, alignée sur l'app) : fond crème, cartes blanches à fin bord et ombre, texte discret plus foncé,
   bandeau Linen derrière l'en-tête de l'accueil ; le bloc Dark Puce du résultat reste l'ancrage de marque
   (la page publique n'a pas de barre du haut). */
@font-face { font-family: "Overpass"; font-weight: 400; font-display: swap; src: url("../fonts/overpass-latin-400-normal.0a42543972be.woff2") format("woff2"); }
@font-face { font-family: "Overpass"; font-weight: 600; font-display: swap; src: url("../fonts/overpass-latin-600-normal.084bbf8c048a.woff2") format("woff2"); }
@font-face { font-family: "Overpass"; font-weight: 700; font-display: swap; src: url("../fonts/overpass-latin-700-normal.8587eb4eb423.woff2") format("woff2"); }
@font-face { font-family: "Noto Serif Display"; font-weight: 600; font-display: swap; src: url("../fonts/noto-serif-display-latin-600-normal.0fd85a053c2a.woff2") format("woff2"); }
:root {
  --puce: #3d0f06; --linen: #e7e2d4; --noir: #303336; --discret: #4e443d; --trait: #d8d0bf; --carte: #ffffff;
  --fond: #f2eee5; --bord-carte: #e4dccb; --ombre: 0 1px 2px rgba(61, 15, 6, .10), 0 4px 14px rgba(61, 15, 6, .08);
  --bronze: #c3751f; --copper: #944b48; --layla: #c0d79a; --maya: #9bc9df; --drab: #927b4f; --or: #e0b784;
  --serif: "Noto Serif Display", Georgia, "Times New Roman", serif;
  /* 29/11/2026 (A20) : les dernières couleurs en dur deviennent des variables. */
  --blanc: #ffffff; --f-erreur: #f6e1dd; --erreur: #7a2418; --manque: #a33a2c; --rond: #b9ad97; --f-complet: #f3d9c0;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--puce); font: 16px/1.45 "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--copper); }
h1, h2 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: 32px; line-height: 1.12; }
h2 { font-size: 23px; line-height: 1.2; }
p { margin: 0; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--bronze); outline-offset: 2px; }
.page { max-width: 560px; margin: 0 auto; padding: 22px 16px 40px; display: flex; flex-direction: column; gap: 16px; }
.discret { color: var(--discret); font-size: 14px; }
.surtitre { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--noir); }
.logo { width: 120px; height: auto; display: block; }
.entete-accueil { margin: -22px -16px 0; padding: 22px 16px 22px; border-radius: 0 0 26px 26px; background: var(--linen);
  display: flex; flex-direction: column; gap: 16px; }
.haut { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Boutons */
.bouton { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 20px;
  border-radius: 999px; border: 2px solid var(--puce); background: var(--puce); color: var(--linen); font-size: 17px;
  font-weight: 700; text-decoration: none; cursor: pointer; width: 100%; }
.bouton.clair { background: transparent; color: var(--puce); }
.bouton[disabled] { opacity: .45; cursor: default; }
.boutons { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; }

/* Accueil */
.accueil-cinq { display: flex; align-items: center; gap: 16px; }
.accueil-cinq svg { flex: none; }
.chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chiffre { background: var(--carte); border: 1px solid var(--bord-carte); box-shadow: var(--ombre); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; }
.chiffre strong { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.chiffre span { font-size: 13px; color: var(--noir); }
.piliers { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pilule { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 4px 12px 4px 4px; font-size: 14px; font-weight: 700; color: var(--puce); }
.pilule b { width: 26px; height: 26px; border-radius: 50%; background: var(--puce); color: var(--linen); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }

/* En-tête d'un pilier */
.entete-pilier { margin: -22px -16px 0; padding: 18px 16px 22px; border-radius: 0 0 26px 26px; display: flex; flex-direction: column; gap: 12px; color: var(--puce); }
.entete-pilier.clair-sur-fonce { color: var(--blanc); }
/* 19 px gras : contraste suffisant en blanc sur Light Drab (3,9:1, texte « grand ») */
.entete-pilier .ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 19px; }
.progression { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.progression span { height: 8px; border-radius: 4px; background: rgba(61, 15, 6, .18); }
.progression span.faite, .progression span.active { background: var(--puce); }
.clair-sur-fonce .progression span { background: rgba(255, 255, 255, .3); }
.clair-sur-fonce .progression span.faite, .clair-sur-fonce .progression span.active { background: var(--blanc); }
.titre-pilier { display: flex; align-items: center; gap: 12px; }
.numero { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--puce); color: var(--linen);
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; }
.erreur { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--f-erreur); color: var(--erreur); font-weight: 600; font-size: 15px; }

/* Une situation */
.situation { border: 1px solid var(--bord-carte); box-shadow: var(--ombre); margin: 0; padding: 16px; border-radius: 20px; background: var(--carte); display: flex; flex-direction: column; gap: 10px; }
.situation legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.25; }
.situation.manque { box-shadow: inset 0 0 0 2px var(--manque); }
.reponse { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border-radius: 14px;
  border: 2px solid var(--trait); background: var(--carte); color: var(--noir); font-size: 16px; line-height: 1.3; cursor: pointer; }
.reponse input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.reponse .rond { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--rond); }
.reponse:has(input:checked) { background: var(--puce); border-color: var(--puce); color: var(--linen); font-weight: 600; }
.reponse:has(input:checked) .rond { border: 6px solid var(--bronze); background: var(--linen); }
.reponse:has(input:focus-visible) { outline: 3px solid var(--bronze); outline-offset: 2px; }
/* Une situation ouverte à la fois (evaluation.js ajoute .accordeon au formulaire) */
.resume { display: none; align-items: center; gap: 12px; }
.accordeon .situation.repliee { background: var(--carte); box-shadow: none; }
.accordeon .situation.repliee legend, .accordeon .situation.repliee .reponse { display: none; }
.accordeon .situation.repliee .resume { display: flex; }
.resume .coche { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--puce); color: var(--linen); display: flex; align-items: center; justify-content: center; }
.resume .coche.vide { background: transparent; border: 2px dashed var(--rond); }
.resume .coche.vide svg { display: none; }
.resume .texte { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.resume .texte b { font-size: 13px; color: var(--copper); }
.resume .texte span { font-size: 15px; line-height: 1.35; color: var(--noir); }
.resume button { flex: none; min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--copper); font-weight: 700; text-decoration: underline; cursor: pointer; }
.accordeon .situation.ouverte { box-shadow: 0 6px 18px rgba(61, 15, 6, .14); }

/* Résultat */
.verdict { margin: -22px -16px 0; padding: 22px 18px 26px; border-radius: 0 0 28px 28px; background: var(--puce); color: var(--linen); display: flex; flex-direction: column; gap: 14px; }
.verdict .surtitre { color: var(--or); }
.verdict .score { display: flex; align-items: center; gap: 16px; }
.verdict .score svg { flex: none; }
.verdict p { font-size: 17px; line-height: 1.5; }
.titre-score { display: flex; flex-direction: column; gap: 6px; }
.sur-125 { font-size: 14px; font-weight: 700; color: var(--or); }
.priorite p.niveau-base { font-weight: 700; color: var(--puce); }
.reco { border-radius: 20px; padding: 18px; background: var(--layla); display: flex; flex-direction: column; gap: 6px; }
.reco.complet { background: var(--f-complet); }
.reco strong { font-family: var(--serif); font-weight: 600; font-size: 23px; line-height: 1.2; }
.reco p { color: var(--noir); font-size: 15px; }
.carte { background: var(--carte); border: 1px solid var(--bord-carte); box-shadow: var(--ombre); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.titre-carte { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.barre-pilier { display: flex; flex-direction: column; gap: 6px; }
.barre-pilier .tete { display: flex; align-items: center; gap: 10px; }
.barre-pilier .tete b { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--puce); color: var(--linen); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.barre-pilier .tete strong { flex: 1 1 auto; font-size: 15px; }
.barre-pilier .tete span { white-space: nowrap; font-weight: 700; }
.barre-pilier .tete span.sous-seuil { color: var(--copper); }
.jauge { position: relative; height: 14px; border-radius: 7px; background: var(--linen); }
.jauge i { display: block; height: 14px; border-radius: 7px; }
.jauge .seuil { position: absolute; left: 60%; top: -3px; width: 2px; height: 20px; background: var(--puce); }
.priorite { display: flex; gap: 12px; padding-top: 12px; border-top: 1px solid var(--trait); }
.priorite:first-of-type { border-top: 0; padding-top: 0; }
.priorite .point { flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; }
.priorite strong { display: block; font-size: 16px; }
.priorite p { font-size: 15px; color: var(--noir); }

/* Contact */
.formulaire { display: flex; flex-direction: column; gap: 8px; }
.formulaire label { font-size: 14px; font-weight: 700; margin-top: 4px; }
.formulaire input[type=text], .formulaire input[type=email], .formulaire input[type=tel] { min-height: 50px; padding: 0 14px;
  border: 2px solid var(--trait); border-radius: 12px; background: var(--blanc); color: var(--noir); font-size: 16px; width: 100%; }
.accord { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 15px !important; }
.accord input { width: 22px; height: 22px; margin-top: 1px; flex: none; accent-color: var(--puce); }
.merci { padding: 12px 14px; border-radius: 12px; background: var(--layla); color: var(--puce); font-weight: 700; }
.lien-long { overflow-wrap: anywhere; word-break: break-all; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* 29/11/2026 (chantier 6, A20) : couleurs des piliers par classes (plus de style= en dur dans les gabarits). */
.c-bronze { color: var(--bronze); } .c-copper { color: var(--copper); }
.pil-1 { background: var(--bronze); } .pil-2 { background: var(--copper); color: var(--carte); } .pil-3 { background: var(--layla); }
.pil-4 { background: var(--maya); } .pil-5 { background: var(--drab); color: var(--carte); }
