/* Clarion Stratum — feuille de style des outils gratuits.
 * Les couleurs sont regroupées ici : ajustez ces variables pour coller exactement à la charte du site.
 * Aucune police externe n'est chargée (pas d'appel à Google Fonts : meilleur pour la vie privée et la vitesse). */

:root {
  --encre: #1d2733;
  --encre-douce: #4a5663;
  --papier: #f7f4ee;
  --carte: #ffffff;
  --ligne: #e3ddd2;
  --or: #9c7a3c;
  --or-fonce: #7d6130;
  --ok: #2f6b4f;
  --attention: #b0661b;
  --alerte: #9b2c2c;
  --rayon: 14px;
  --ombre: 0 1px 2px rgba(29, 39, 51, 0.06), 0 8px 24px rgba(29, 39, 51, 0.06);
  --titre: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --texte: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --dpe-A: #009c6d; --dpe-B: #52b153; --dpe-C: #78bd76; --dpe-D: #f4e70f;
  --dpe-E: #f0b50f; --dpe-F: #eb8235; --dpe-G: #d7221f;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 16px/1.6 var(--texte);
}
a { color: var(--or-fonce); }
.page { max-width: 980px; margin: 0 auto; padding: 32px 20px 64px; }

.entete { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.marque { font-family: var(--titre); font-size: 1.15rem; letter-spacing: 0.04em; color: var(--encre); text-decoration: none; }
.marque span { color: var(--or); }
.devise { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--encre-douce); }

.surtitre { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--or-fonce); margin: 0 0 8px; }
h1 { font-family: var(--titre); font-weight: 600; font-size: clamp(1.9rem, 4.2vw, 2.7rem); line-height: 1.15; margin: 0 0 12px; }
h2 { font-family: var(--titre); font-weight: 600; font-size: 1.45rem; margin: 0 0 14px; }
h3 { font-size: 1rem; margin: 0 0 10px; }
.chapeau { font-size: 1.1rem; color: var(--encre-douce); max-width: 680px; margin: 0 0 28px; }

.grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 820px) { .grille { grid-template-columns: 1fr; } }

.carte { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 24px; box-shadow: var(--ombre); }
.carte + .carte { margin-top: 20px; }
.collant { position: sticky; top: 20px; }
@media (max-width: 820px) { .collant { position: static; } }

fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; color: var(--encre); }
.champ { margin-bottom: 14px; }
.champ label { display: block; font-size: 0.9rem; margin-bottom: 5px; color: var(--encre); }
.champ .aide { display: block; font-size: 0.8rem; color: var(--encre-douce); margin-top: 4px; }
.saisie { position: relative; }
.saisie input, .champ select {
  width: 100%;
  font: inherit;
  padding: 11px 44px 11px 12px;
  border: 1px solid var(--ligne);
  border-radius: 10px;
  background: #fff;
  color: var(--encre);
}
.champ select { padding-right: 12px; }
.saisie .unite { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--encre-douce); font-size: 0.9rem; pointer-events: none; }
input:focus, select:focus, button:focus-visible { outline: 3px solid rgba(156, 122, 60, 0.35); outline-offset: 1px; border-color: var(--or); }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .deux { grid-template-columns: 1fr; } }

details.avance { margin-top: 6px; }
details.avance summary { cursor: pointer; color: var(--or-fonce); font-size: 0.9rem; margin-bottom: 12px; }

.resultat-principal { text-align: left; }
.resultat-principal .etiquette { font-size: 0.85rem; color: var(--encre-douce); }
.resultat-principal .valeur { font-family: var(--titre); font-size: clamp(2rem, 5vw, 2.6rem); line-height: 1.1; margin: 4px 0 6px; }
.lignes { list-style: none; margin: 16px 0 0; padding: 0; }
.lignes li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--ligne); font-size: 0.95rem; }
.lignes li span:last-child { font-weight: 600; text-align: right; white-space: nowrap; }

.note { font-size: 0.82rem; color: var(--encre-douce); margin-top: 14px; }
.retenir { border-left: 3px solid var(--or); background: #fbf8f2; padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 18px 0 0; }
.retenir b { display: block; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--or-fonce); margin-bottom: 4px; }

.pastille { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.pastille.ok { background: #e6f1eb; color: var(--ok); }
.pastille.attention { background: #fbeedd; color: var(--attention); }
.pastille.alerte { background: #f7e3e3; color: var(--alerte); }

.jauge { position: relative; height: 10px; background: #eee8dc; border-radius: 999px; margin: 18px 0 26px; }
.jauge .rempli { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--or); transition: width 0.25s ease; }
.jauge .repere { position: absolute; top: -5px; width: 2px; height: 20px; background: var(--encre); }
.jauge .repere span { position: absolute; top: 22px; transform: translateX(-50%); font-size: 0.72rem; color: var(--encre-douce); white-space: nowrap; }

/* Bloc de capture d'e-mail */
.capture h3 { font-family: var(--titre); font-size: 1.2rem; font-weight: 600; }
.capture p.intro { margin: 0 0 14px; color: var(--encre-douce); font-size: 0.95rem; }
.capture .consentement { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--encre); margin: 6px 0 14px; }
.capture .consentement input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--or); }
.capture .mention { font-size: 0.75rem; color: var(--encre-douce); margin-top: 12px; }
.capture .piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.capture .champ > input[type="email"], .capture .champ > input[type="text"] {
  width: 100%;
  font: inherit;
  padding: 11px 12px;
  border: 1px solid var(--ligne);
  border-radius: 10px;
  background: #fff;
  color: var(--encre);
}
.bouton {
  display: inline-block; width: 100%; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--encre); color: #fff; border: 0; border-radius: 10px; padding: 13px 18px; text-align: center; text-decoration: none;
}
.bouton:hover { background: #111a24; }
.bouton[disabled] { opacity: 0.6; cursor: wait; }
.bouton.secondaire { background: transparent; color: var(--encre); border: 1px solid var(--encre); }
.message { margin-top: 12px; font-size: 0.92rem; }
.message.succes { color: var(--ok); }
.message.erreur { color: var(--alerte); }

.suite { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.suite p { margin: 0; max-width: 560px; }
.suite .bouton { width: auto; }

/* Outil énergie */
.suggestions { list-style: none; margin: 4px 0 0; padding: 0; border: 1px solid var(--ligne); border-radius: 10px; background: #fff; overflow: hidden; }
.suggestions:empty { display: none; }
.suggestions li button { width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; font: inherit; cursor: pointer; }
.suggestions li + li button { border-top: 1px solid var(--ligne); }
.suggestions li button:hover, .suggestions li button:focus-visible { background: #fbf8f2; }
.liste-dpe { list-style: none; padding: 0; margin: 12px 0 0; }
.liste-dpe li button { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: #fff; border: 1px solid var(--ligne); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; font: inherit; cursor: pointer; }
.liste-dpe li button:hover { border-color: var(--or); }
.lettre { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; font-weight: 700; color: #fff; flex: 0 0 auto; }
.lettre.grande { width: 72px; height: 72px; font-size: 2.2rem; border-radius: 14px; }
.lettre.A { background: var(--dpe-A); } .lettre.B { background: var(--dpe-B); } .lettre.C { background: var(--dpe-C); color: #16351f; }
.lettre.D { background: var(--dpe-D); color: #3b3600; } .lettre.E { background: var(--dpe-E); color: #3d2a00; }
.lettre.F { background: var(--dpe-F); } .lettre.G { background: var(--dpe-G); }
.choix-manuel { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.choix-manuel button { border: 0; cursor: pointer; }
.bandeau-resultat { display: flex; gap: 18px; align-items: center; margin-bottom: 8px; }

.pied { margin-top: 48px; font-size: 0.8rem; color: var(--encre-douce); border-top: 1px solid var(--ligne); padding-top: 18px; }
[hidden] { display: none !important; }
