/* Diagnostic : le parcours en 5 étapes et ses écrans d'attente (refonte 2026-10, piste C, combo pétrole clair).
   Dérivée de design/refonte-2026-10/site/pages/diagnostic.css (maquette), classes préfixées dg-, sur les composants de
   formulaire de dt.css (champ, saisie, choix, case, rangee, feuille, encart, recu).
   Couleurs : uniquement les variables --dt-* (le rouge d'erreur est --dt-erreur). Thème clair forcé sur /diagnostic
   (JOURNAL-DECISIONS.md, 2026-10-13 (10)) : aucune règle de nuit ici.
   Rythme : 32 px entre deux questions (24 px sur téléphone), 16 px entre une question et sa sous-question.

   Cohabitation. diagnostic.html charge aussi Tailwind (Play CDN, dont le « preflight » arrive en dernier et règle les
   éléments) et sa feuille de production (h1 à h4, body, boutons). Le formulaire est donc stylé par CLASSES, sous
   .dg-app : les règles d'élément de dt.css y sont réaffirmées avec une classe. Le rapport à l'écran garde sa propre
   feuille : diagnostic.html coupe dt.css et cette feuille pendant qu'il s'affiche (attribut data-feuille-formulaire),
   jusqu'au lot du rapport (phase 3, sous-lot 3.8). */

/* ========== Cohabitation : la page du formulaire ========== */
body:has(.dg-app) { background: var(--dt-surface); }
.dg-app { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; background: var(--dt-surface); color: var(--dt-ink); font: 400 17px/1.55 var(--text); letter-spacing: normal; -webkit-font-smoothing: antialiased; }
/* Titres : la feuille de production les règle (police, taille, marge) ; :where() laisse passer les classes de la maquette */
.dg-app :where(h1, h2, h3) { font-family: var(--display); font-weight: 800; font-size: inherit; line-height: 1.2; margin: 0; letter-spacing: -0.03em; }
/* Paragraphes : la feuille de production pose p { font-weight: 400; line-height: 1.72 } ; ils reprennent ceux de leur bloc */
.dg-app :where(p) { font-weight: inherit; line-height: inherit; }
.dg-app :focus-visible { outline: 3px solid var(--dt-accent); outline-offset: 3px; }
.dg-app a:focus-visible { border-radius: 4px; }
/* Le preflight rend les boutons transparents ([type="button"] pèse autant qu'une classe) et retire le soulignement des liens */
.dg-app .btn { background: var(--dt-action); }
.dg-app .btn-2 { background: transparent; }
.dg-app .btn-2:hover { background: var(--dt-surface-alt); }
.dg-app .btn:disabled, .dg-app .btn[aria-disabled="true"] { background: var(--dt-surface-alt-2); color: var(--dt-ink); box-shadow: none; transform: none; cursor: not-allowed; }
.dg-app .dg-erreurs ul { list-style: disc; }
.dg-app .vig { display: block; }

/* ========== En-tête simplifié ========== */
.dg-top { position: relative; }
.dg-top .top-in { justify-content: space-between; }
.dg-quitter { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--dt-surface-alt); color: var(--dt-ink); font: 600 15px var(--text); text-decoration: none; transition: background 140ms var(--ease); }
.dg-quitter:hover { background: var(--dt-surface-alt-2); }
.dg-quitter svg { width: 20px; height: 20px; display: block; }

/* ========== Lien d'une agence : ce qu'elle verra, puis la case de partage du rapport (non cochée) ========== */
.dg-transmis { padding: 18px; border-radius: 18px; background: var(--dt-paper); box-shadow: inset 0 0 0 2px var(--dt-ink); }
.dg-transmis-titre { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: start; font: 700 19px/1.3 var(--display); letter-spacing: -0.01em; }
.dg-transmis-titre .vig { width: 32px; height: 24px; }
.dg-transmis-propose { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
/* Logo de l'agence : aplati sur blanc par l'import, d'ou l'etiquette blanche (lisible aussi sur le papier de la nuit). 28 px de haut. */
.dg-transmis-logo { display: block; box-sizing: content-box; height: 28px; width: auto; max-width: 100%; padding: 3px 6px; border-radius: 6px; background: #FFFFFF; }
.dg-transmis .dg-aide { margin-top: var(--esp-2); }
.dg-transmis .dg-case-carte { margin-top: 14px; }

/* ========== Progression ========== */
.dg-main { flex: 1 0 auto; padding-bottom: var(--esp-8); }
.dg-fil { list-style: none; margin: var(--esp-2) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.dg-fil li { font: 600 14px/1.25 var(--text); color: var(--dt-ink-2); }
.dg-fil li::before { content: ""; display: block; height: 8px; margin-bottom: 10px; border-radius: 3px 4px 3px 4px; background: var(--dt-surface-alt-2); transition: background 300ms var(--ease); }
.dg-fil li.fait { color: var(--dt-ink); }
.dg-fil li.fait::before { background: var(--dt-ink); }
.dg-fil li[aria-current="step"] { color: var(--dt-ink); font-weight: 700; }
.dg-fil li[aria-current="step"]::before { background: var(--dt-accent); }

/* ========== Grille : le formulaire, et le reçu à droite sur grand écran ========== */
.dg-grille { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: var(--esp-7); align-items: start; margin-top: var(--esp-6); }
.dg-tete { grid-column: 1; }
.dg-form { grid-column: 1; margin-top: var(--esp-5); container: dg / inline-size; padding: clamp(18px, 3vw, 40px); }
.dg-cote { grid-column: 2; grid-row: 2; position: sticky; top: 24px; margin-top: var(--esp-5); }

/* Titre de l'etape (h2, sous le h1 des lecteurs d'ecran) ou d'un ecran d'attente (h1) */
.dg-tete :is(h1, h2) { font-variation-settings: "opsz" 96; font-size: clamp(40px, 4.2vw, 60px); line-height: 0.96; letter-spacing: -0.032em; }
.dg-tete :is(h1, h2):focus { outline: none; }
.dg-compte { display: block; margin-bottom: 14px; font: 700 15px/1.2 var(--display); letter-spacing: 0.01em; }
.dg-compte::before { content: ""; display: inline-block; vertical-align: 0.1em; width: 22px; height: 10px; margin-right: 10px; border-radius: 2px; background: var(--dt-ink-3); transform: rotate(-6deg); }
@media (min-width: 760px) { .dg-compte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; } }
.dg-nom { display: block; }
.dg-tete .chapo { margin-top: var(--esp-3); }
.dg-repris { display: flex; gap: 8px; align-items: flex-start; margin-top: var(--esp-3); font-size: 15px; color: var(--dt-ink-2); }
.dg-repris svg { width: 22px; height: 22px; flex: none; color: var(--dt-accent); }

/* ========== Formulaire : rythme des questions ========== */
.dg-form { --dg-option: var(--dt-surface-alt); --dg-option-survol: var(--dt-surface-alt-2); --dg-champ: var(--dt-surface-alt); }
.dg-form .saisie { min-height: 56px; font-size: 18px; background: var(--dg-champ); }
.dg-form .saisie::placeholder { color: var(--dt-ink-3); font-style: italic; }
.dg-form select.saisie { background-color: var(--dg-champ); }
.dg-form .saisie:disabled { opacity: 1; color: var(--dt-ink-2); cursor: not-allowed; }
.dg-form input { font-size: 17px; }
.dg-form .choix { background: var(--dg-option); }
.dg-form .choix:hover { background: var(--dg-option-survol); }
.dg-form .choix:has(input:checked) { background: var(--dt-ink); }
.dg-form .choix:has(input:disabled) { opacity: 0.5; cursor: not-allowed; }

.dg-form { --dg-ecart: var(--esp-6); }
.dg-etape > * + * { margin-top: var(--dg-ecart); }
.dg-etape > .dg-sous, .dg-q > .dg-sous { margin-top: var(--esp-4); }
.dg-q { scroll-margin-top: 24px; }
fieldset.dg-q > legend, .dg-q.champ > label { font: 700 21px/1.25 var(--display); letter-spacing: -0.015em; }
/* Sous-questions (âge de la chaudière, type d'eau chaude, orientation, combles, téléphone) : 17 px */
.dg-sous .dg-q.champ > label, fieldset.dg-q.dg-sous > legend, fieldset.dg-sous > legend, .dg-q.dg-tel > label { font-size: 17px; }
.dg-facultatif { font: 400 15px var(--text); letter-spacing: 0; color: var(--dt-ink-2); white-space: nowrap; }
.dg-aide { margin-top: var(--esp-1); font-size: 15px; line-height: 1.45; color: var(--dt-ink-2); }
fieldset.dg-q > legend + .dg-aide, fieldset.dg-sous > legend + .dg-aide { margin-top: 0; }
.dg-legende-petite { font: 700 15px/1.3 var(--display); color: var(--dt-ink-2); margin-bottom: var(--esp-2); }
/* Vignette devant la question (capteurs solaires de l'eau chaude) : on reconnait l'objet avant de lire l'aide.
   56 x 42 centree sur la premiere ligne : le texte descend de la moitie de l'ecart. */
fieldset.dg-q > legend.dg-legende-picto { display: flex; align-items: flex-start; gap: var(--esp-3); }
.dg-legende-picto > span:last-child { padding-top: calc((42px - 1.25em) / 2); }
.dg-picto { flex: none; display: block; }
.dg-picto .vig { width: 56px; height: 42px; }
.dg-tuiles, .dg-cartes, .dg-puces, .dg-cases, .dg-deux { margin-top: 14px; }
.dg-q > .message-erreur, .dg-q .message-erreur { margin-top: var(--esp-2); }
.message-erreur svg { color: var(--dt-erreur); }

/* ========== Choix ========== */
/* Tuiles (activité) : 2 colonnes sur téléphone, 5 dès que le formulaire a la place */
.dg-tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@container dg (min-width: 640px) { .dg-tuiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.choix.dg-tuile { grid-template-columns: minmax(0, 1fr); align-content: start; justify-items: start; gap: 10px; min-height: 0; padding: 14px 12px; }
.dg-tuile .vig { width: 56px; height: 42px; }
/* Choix sélectionné : le fond devient l'encre, les pieds en f-trait (= encre) s'y perdraient */
.choix:has(input:checked) .vig { --dt-il-trait: var(--dt-il-vitre); }

/* Cartes (chauffage, eau chaude, rôle) */
.dg-cartes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@container dg (min-width: 520px) {
  .dg-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dg-cartes:not(.dg-cartes-3) > .choix:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@container dg (min-width: 520px) and (max-width: 639px) { .dg-cartes-3 > .choix:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@container dg (min-width: 640px) { .dg-cartes-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choix.dg-carte { min-height: 72px; }
.dg-carte .vig { width: 64px; height: 48px; }

/* Pastilles (choix courts) */
.dg-puces { display: flex; flex-wrap: wrap; gap: 8px; }
.choix.dg-puce { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 18px; border-radius: 999px; font-size: 16px; }
.choix.dg-puce:has(input:checked) { box-shadow: 0 3px 0 var(--dt-action-shadow); }
.dg-puces-chiffres .dg-puce { min-width: 64px; justify-content: center; }
.dg-puces-petites { margin-top: 0; }
.dg-puces-petites .dg-puce { min-height: 44px; padding: 8px 14px; font-size: 15px; }
.dg-unites { margin: 0; }

/* Étiquette énergie : les couleurs réglementaires, une lettre par pastille */
.dg-dpe .dg-lettre { min-width: 54px; justify-content: center; border-radius: 10px 12px 9px 11px; background: var(--c); color: var(--dt-dpe-on); font: 800 20px/1 var(--display); }
.dg-dpe .dg-lettre-g { color: var(--dt-dpe-on-g); }
.dg-form .dg-dpe .dg-lettre:hover { background: var(--c); transform: translateY(-1px); }
.dg-form .dg-dpe .dg-lettre:has(input:checked) { background: var(--c); color: var(--dt-dpe-on); box-shadow: 0 0 0 3px var(--dt-paper), 0 0 0 6px var(--dt-ink); transform: translateY(-2px); }
.dg-form .dg-dpe .dg-lettre-g:has(input:checked) { color: var(--dt-dpe-on-g); }

/* Cases à cocher en carte (week-end, pilotage, énergies, consentement) */
.case.dg-case-carte { align-items: center; min-height: 56px; padding: 14px 16px; border-radius: 16px; background: var(--dg-option); }
.dg-case-carte b, .dg-case-carte strong { display: block; font: 700 17px/1.3 var(--display); letter-spacing: -0.005em; }
.dg-case-carte small { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--dt-ink-2); }
.dg-cases { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@container dg (min-width: 560px) { .dg-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dg-cases .case { align-items: center; min-height: 52px; padding: 12px 14px; border-radius: 14px; background: var(--dg-option); font-size: 16px; }
.dg-cases .case:has(input:checked), .case.dg-case-carte:has(input:checked) { background: var(--dg-option-survol); }
.dg-q > .dg-case-carte, .dg-q > .case { width: 100%; }

/* Plusieurs activités : les deux usages et leur part de la surface */
.dg-mixte { padding: var(--esp-5); border-radius: 18px; box-shadow: inset 0 0 0 2px var(--dt-surface-alt-2); }
.dg-repartition { margin-top: var(--esp-5); }
.dg-repartition input[type="range"] { width: 100%; height: 44px; margin: 0; accent-color: var(--dt-ink); cursor: pointer; }
.dg-parts { display: flex; justify-content: space-between; gap: 16px; }
.dg-parts span:last-child { text-align: right; }
.dg-parts b { display: block; font: 800 28px/1 var(--display); letter-spacing: -0.03em; }
.dg-parts small { display: block; margin-top: 4px; font-size: 14px; color: var(--dt-ink-2); }

/* Saisie avec unité */
.dg-unite { position: relative; width: min(100%, 340px); }
.dg-unite-court { width: min(100%, 220px); }
.dg-unite .saisie { padding-right: 78px; }
.dg-suffixe { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-weight: 600; font-size: 16px; color: var(--dt-ink-2); pointer-events: none; }
.rangee .dg-unite { width: 100%; }

.dg-avertissement { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--dt-encart); font-size: 15px; line-height: 1.45; }
.dg-avertissement svg { width: 22px; height: 22px; flex: none; color: var(--dt-accent); }
.dg-avertissement ul { margin: var(--esp-1) 0 0; padding-left: 1.1em; list-style: disc; }

/* ========== Adresse, établissement et raison sociale : liste de propositions ========== */
.dg-combo-zone { position: relative; }
.dg-loupe { position: absolute; left: 14px; top: 28px; display: flex; transform: translateY(-50%); color: var(--dt-ink-2); pointer-events: none; }
.dg-loupe svg { width: 22px; height: 22px; display: block; }
.dg-form .dg-avec-loupe { padding-left: 46px; }
.dg-liste { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px); max-height: 336px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; border-radius: 16px; background: var(--dt-paper); box-shadow: var(--ombre-decoupe); overscroll-behavior: contain; }
.dg-liste li { display: grid; gap: 2px; min-height: 52px; padding: 9px 12px; border-radius: 10px; cursor: pointer; font-weight: 600; line-height: 1.3; }
.dg-liste li small { font-weight: 400; font-size: 14px; color: var(--dt-ink-2); overflow-wrap: anywhere; }
.dg-liste li.actif, .dg-liste li:hover { background: var(--dt-surface-alt-2); box-shadow: inset 4px 0 0 var(--dt-accent); }
.dg-etat-adresse { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--dt-ink-2); }
/* Vide, elle sort de la grille du champ (8 px de trop sinon) sans quitter l'arbre d'accessibilite : c'est une region
   aria-live, qui doit exister avant son texte pour qu'il soit annonce (display: none la retirerait). */
.dg-etat-adresse:empty { position: absolute; }
.dg-etat-adresse svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--dt-accent); }
.dg-etat-adresse.ok { color: var(--dt-ink); font-weight: 600; }

/* Recherche d'établissement (registre des entreprises) et reprise du DPE ADEME, en tête de l'étape 1 (JOURNAL-DECISIONS.md,
   2026-10-13 (10)). CSS exact du dépôt Claude Design design/refonte-2026-10/integration/design/
   diagnostic-etape1-etablissement/etape1.css ; son contraste élevé est dans le bloc forced-colors plus bas. */
/* ========== Étape 1 : recherche d'établissement et reprise du DPE (états de la maquette, ?etat=) ========== */
/* Le champ reprend la liste de l'adresse ; pendant la recherche, une roue à droite du champ */
.dg-etab .saisie { padding-right: 46px; }
.dg-tourne { position: absolute; right: 14px; top: 28px; display: flex; transform: translateY(-50%); color: var(--dt-ink-2); pointer-events: none; }
.dg-tourne svg, .dg-tourne-petit svg { display: block; width: 22px; height: 22px; }
.dg-tourne-petit { flex: none; color: var(--dt-ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .dg-tourne svg, .dg-tourne-petit svg { animation: dg-tourne 900ms linear infinite; }
  @keyframes dg-tourne { to { transform: rotate(360deg); } }
}
/* Lignes d'état (recherche, aucun résultat, erreur, données reprises) : icônes à l'encre, la framboise reste rare */
.dg-etab-ligne { display: flex; gap: 8px; align-items: flex-start; margin-top: var(--esp-2); font-size: 15px; line-height: 1.45; color: var(--dt-ink-2); }
/* Vide, la ligne d'etat (role="status") sort de la grille sans quitter l'arbre d'accessibilite, comme celle de l'adresse */
.dg-etab-ligne:empty { position: absolute; margin: 0; }
.dg-etab-ligne > svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--dt-ink); }
.dg-etab-ligne.ok { color: var(--dt-ink); font-weight: 600; }
.dg-etab-ligne:focus { outline: none; }
.dg-etab > .dg-lien-bouton { margin-top: 0; }
/* Établissement choisi : la carte d'une option choisie (fond papier, trait d'encre), sans ombre décalée */
.dg-etab-carte { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px; border-radius: 16px; background: var(--dt-paper); box-shadow: inset 0 0 0 2px var(--dt-ink); }
.dg-etab-texte p { font-size: 15px; line-height: 1.45; color: var(--dt-ink-2); }
.dg-etab-texte .dg-etab-nom { font: 700 18px/1.3 var(--display); letter-spacing: -0.01em; color: var(--dt-ink); }
.dg-etab-changer { min-height: 44px; padding: 0 16px; font-size: 15px; gap: 8px; }
.dg-etab-changer svg { width: 18px; height: 18px; }
@container dg (max-width: 519px) {
  .dg-etab-carte { grid-template-columns: 56px minmax(0, 1fr); }
  .dg-etab-changer { grid-column: 2; justify-self: start; }
}
/* La proposition du DPE : un encart, ce qui sera repris en pastilles, deux réponses */
.dg-dpe-offre { margin-top: var(--esp-3); padding: 18px; border-radius: 18px; background: var(--dt-encart); }
.dg-dpe-titre { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: start; font: 700 18px/1.3 var(--display); letter-spacing: -0.01em; }
.dg-dpe-titre .vig { width: 32px; height: 24px; }
.dg-dpe-adresse, .dg-dpe-repris, .dg-dpe-question, .dg-dpe-actions { margin-left: 42px; }
.dg-dpe-adresse { margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--dt-ink-2); }
.dg-dpe-repris { list-style: none; margin-top: 12px; margin-bottom: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dg-dpe-repris li { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 14px; border-radius: 999px; background: var(--dt-paper); font: 600 15px/1.2 var(--text); }
.dg-dpe-lettre { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px 7px 6px 7px; background: var(--c); color: var(--dt-dpe-on); font: 800 15px/1 var(--display); }
.dg-dpe-question { margin-top: 14px; font-weight: 700; }
.dg-dpe-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.dg-dpe-actions .btn-2 { min-height: 48px; padding: 0 18px; font-size: 16px; }
.btn-2.dg-dpe-oui { background: var(--dt-ink); color: var(--dt-paper); }
.btn-2.dg-dpe-oui:hover { background: var(--dt-ink-2); border-color: var(--dt-ink-2); }
@container dg (max-width: 519px) {
  .dg-dpe-adresse, .dg-dpe-repris, .dg-dpe-question, .dg-dpe-actions { margin-left: 0; }
  .dg-dpe-actions .btn-2 { flex: 1 1 100%; }
}
/* Marque discrète sur une réponse pré-remplie (activité, adresse, chauffage, année, étiquette) ; elle part si on la change */
.dg-prerempli { display: flex; gap: 6px; align-items: flex-start; margin-top: var(--esp-1); font-size: 14px; line-height: 1.4; color: var(--dt-ink-2); }
.dg-prerempli svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
fieldset.dg-q > .dg-aide + .dg-prerempli { margin-top: 6px; }

/* ========== Étape 3 : consommations ========== */
.dg-info { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: start; }
.dg-info > * + * { margin-top: 0; }
.dg-info > .vig { width: 48px; height: 36px; }
.dg-info p { margin-top: 4px; }
.dg-lien-bouton { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--dt-ink); font: 600 16px var(--text); text-decoration: underline; text-decoration-color: var(--dt-accent); text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer; text-align: left; }
.dg-lien-bouton:hover { text-decoration-thickness: 3px; }
.dg-estime:focus { outline: none; }
.dg-estime .dg-estime-alerte { font: 700 17px/1.35 var(--display); letter-spacing: -0.005em; }
.dg-estime .dg-coches { margin-top: var(--esp-3); }
.dg-estime .dg-lien-bouton { margin-top: var(--esp-2); }

.dg-energies { display: grid; gap: var(--esp-3); }
.dg-saisie-conso > * + * { margin-top: var(--dg-ecart); }
.dg-energies > .message-erreur { margin-top: 0; }
.dg-energie { border-radius: 18px; background: var(--dg-option); transition: background 140ms var(--ease), box-shadow 140ms var(--ease); }
.dg-energie .case.dg-case-energie, .dg-energie .case.dg-case-energie:has(input:checked) { background: transparent; min-height: 60px; }
.dg-energie:has(.dg-case-energie input:checked) { background: var(--dt-paper); box-shadow: inset 0 0 0 2px var(--dt-ink); }
.dg-case-energie b { display: flex; align-items: center; gap: 10px; }
.dg-case-energie b .vig, .dg-energie-titre .vig { width: 28px; height: 21px; flex: none; }
.dg-energie-saisie { display: grid; gap: var(--esp-4); padding: 0 16px 18px 54px; }
.dg-energie .champ > label { font-size: 17px; }
.dg-energie.dg-q { padding: 18px; background: var(--dt-paper); box-shadow: inset 0 0 0 2px var(--dt-ink); }
.dg-energie-titre { display: flex; align-items: center; gap: 10px; margin-bottom: var(--esp-4); font: 700 17px/1.3 var(--display); }

/* Dépliants : « Autres énergies », « Affiner le diagnostic », aide sur le public */
.dg-plus { border-radius: 18px; box-shadow: inset 0 0 0 2px var(--dt-surface-alt-2); }
.dg-plus > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px; border-radius: 18px; font: 700 17px/1.3 var(--display); letter-spacing: -0.005em; }
.dg-plus > summary::-webkit-details-marker { display: none; }
.dg-plus > summary:hover { background: var(--dt-surface-alt); }
.dg-plus > summary > span:first-child { flex: 1; min-width: 0; }
.dg-plus > summary small { display: block; margin-top: 2px; font: 400 14px/1.4 var(--text); color: var(--dt-ink-2); }
.dg-plus > summary > svg { width: 24px; height: 24px; flex: none; transition: transform 200ms var(--ease); }
.dg-plus[open] > summary > svg { transform: rotate(180deg); }
.dg-plus-corps { display: grid; gap: var(--esp-3); padding: 4px 16px 18px; }
/* Étape 2 : le dépliant « Affiner le diagnostic » (ventilation, pilotage), fermé comme en production */
.dg-affiner[open] > summary { border-radius: 18px 18px 0 0; box-shadow: inset 0 -2px 0 var(--dt-surface-alt-2); }
.dg-affiner .dg-plus-corps { gap: var(--dg-ecart); padding: var(--esp-5) var(--esp-4) var(--esp-5); }
.dg-affiner fieldset.dg-q > legend { font-size: 18px; }
.dg-bulle { margin-top: var(--esp-3); }
.dg-bulle > summary { list-style: none; display: inline-flex; align-items: center; min-height: 48px; cursor: pointer; font: 600 15px var(--text); text-decoration: underline; text-decoration-color: var(--dt-accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.dg-bulle > summary::-webkit-details-marker { display: none; }
.dg-bulle .encart { margin-top: var(--esp-2); font-size: 15px; }
.dg-bulle .encart strong { font-weight: 700; }

/* Référence OPERAT (au-dessus de 1 000 m²) */
.dg-operat .rangee { margin-top: var(--esp-4); }
.dg-operat .champ > label { font-size: 17px; }
.dg-operat .dg-avertissement { margin-top: var(--esp-3); }

/* ========== Étape 5 : coordonnées et choix ========== */
.dg-protege { display: flex; gap: 8px; align-items: center; font-size: 14px; line-height: 1.4; color: var(--dt-ink-2); }
.dg-protege svg { width: 18px; height: 18px; flex: none; color: var(--dt-ink-2); }

.dg-coches { list-style: none; margin: var(--esp-2) 0 0; padding: 0; display: grid; gap: 8px; }
.dg-coches li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 16px; line-height: 1.45; }
.dg-coches svg { width: 20px; height: 20px; margin-top: 2px; color: var(--dt-ink); }

.dg-deux { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: stretch; }
@container dg (min-width: 600px) { .dg-deux { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dg-option { position: relative; padding: var(--esp-5); border-radius: var(--r-panel); background: var(--dg-option); cursor: pointer; transition: background 140ms var(--ease), box-shadow 140ms var(--ease); }
.dg-option:hover { background: var(--dg-option-survol); }
.dg-option:has(.dg-option-tete input:checked) { background: var(--dt-paper); box-shadow: 0 0 0 3px var(--dt-ink), 6px 6px 0 var(--dt-action-shadow); cursor: default; }
.dg-option:has(.dg-option-tete input:focus-visible) { outline: 3px solid var(--dt-accent); outline-offset: 5px; }
.dg-option-tete { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: center; cursor: pointer; }
/* Toute la carte choisit l'option : le libellé s'étire sur la carte (le nom accessible reste le titre seul) */
.dg-option-tete::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.dg-option-tete input { position: absolute; opacity: 0; pointer-events: none; }
.dg-rond { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--dt-paper); box-shadow: inset 0 0 0 2px var(--dt-ink); }
.dg-option:has(.dg-option-tete input:checked) .dg-rond { background: var(--dt-ink); }
.dg-option:has(.dg-option-tete input:checked) .dg-rond::after { content: ""; width: 14px; height: 14px; background: var(--dt-paper); clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 26%, 86% 12%, 38% 72%); }
.dg-option-titre { font: 800 21px/1.2 var(--display); letter-spacing: -0.015em; }
.dg-option > p { margin-top: var(--esp-3); font-size: 16px; line-height: 1.5; color: var(--dt-ink-2); }
.dg-option > .dg-coches { margin-top: var(--esp-3); }
.dg-option > .dg-petit { margin-top: var(--esp-3); font-size: 14px; }
/* Le téléphone sous la seule carte A (décision du lot 9a) : au-dessus du libellé étiré de la carte */
.dg-option > .dg-tel { margin-top: var(--esp-4); }
.dg-option .nd-choix-dessus { position: relative; z-index: 1; cursor: auto; }
.dg-tel .saisie[aria-invalid="true"] { border-bottom-color: var(--dt-erreur); }

/* ========== Erreurs ========== */
.dg-erreurs { margin-bottom: var(--dg-ecart); padding: var(--esp-5); border-radius: 18px; box-shadow: inset 0 0 0 3px var(--dt-erreur); }
/* Focalisé par le script pour être annoncé ; son cadre rouge suffit à le signaler */
.dg-erreurs:focus { outline: none; }
.dg-erreurs h2 { display: flex; gap: 10px; align-items: center; font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; color: var(--dt-erreur); }
.dg-erreurs svg { width: 24px; height: 24px; flex: none; }
.dg-erreurs ul { margin: var(--esp-3) 0 0; padding-left: 1.2em; display: grid; gap: 6px; }
.dg-erreurs li::marker { color: var(--dt-erreur); }
/* Cible de 24 px au moins (WCAG 2.5.8) : 2 px de plus en haut et en bas de chaque ligne du lien. Le lien reste en ligne :
   en inline-block, la puce suivait la derniere ligne d'un message coupe en deux (390 px). */
.dg-erreurs a { padding-block: 2px; color: var(--dt-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--dt-erreur); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.dg-q.erreur.champ .saisie, .dg-q.erreur .champ .saisie { border-bottom-color: var(--dt-erreur); }

/* ========== Navigation ========== */
.dg-nav { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: flex-start; gap: var(--esp-4); margin-top: var(--esp-7); padding-top: var(--esp-6); border-top: 3px dashed var(--dt-surface-alt-2); }
.dg-avancer { display: grid; justify-items: end; gap: var(--esp-2); }
.dg-avancer .btn svg { width: 22px; height: 22px; }
.dg-sous-bouton { font-size: 14px; line-height: 1.45; color: var(--dt-ink-2); text-align: right; }
/* Étape 5 : bouton inactif tant que le choix ou la case manquent, la raison dessous (dépôt Claude Design
   diagnostic-etape5-bouton-inactif/etape5.css). Inactif mais lisible : encre secondaire sur fond de champ (contraste AA),
   ni relief framboise ni flèche. Inactif par aria-disabled (focalisable, sa raison lue au clavier) : la règle vaut aussi
   pour :disabled. */
.dg-avancer .btn:disabled, .dg-avancer .btn[aria-disabled="true"] { background: var(--dt-surface-alt); color: var(--dt-ink-2); box-shadow: inset 0 0 0 2px var(--dt-surface-alt-2); transform: none; cursor: not-allowed; }
.dg-avancer .btn:disabled .dg-fleche, .dg-avancer .btn[aria-disabled="true"] .dg-fleche { display: none; }
/* La flèche d'un bouton dans un conteneur : Icon écrit son display en style en ligne, une règle sur le svg ne gagne pas */
.dg-fleche { display: inline-flex; }
.dg-manques { display: grid; gap: 2px; font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--dt-ink); text-align: right; }
.dg-retour { display: inline-flex; align-items: center; gap: 8px; min-height: 62px; padding: 0 22px 0 14px; border: 0; border-radius: 999px; background: none; color: var(--dt-ink); font: 700 18px var(--display); cursor: pointer; transition: background 140ms var(--ease); }
.dg-app .dg-retour { background: none; }
.dg-app .dg-retour:hover { background: var(--dt-surface-alt); }
.dg-retour svg { width: 22px; height: 22px; }
.dg-rassure { display: flex; gap: 8px; align-items: flex-start; justify-content: flex-end; margin-top: var(--esp-4); font-size: 14px; line-height: 1.45; color: var(--dt-ink-2); }
.dg-rassure svg { width: 20px; height: 20px; flex: none; color: var(--dt-accent); }

/* ========== Le reçu latéral ========== */
.dg-fiche .recu-papier { padding: 22px 22px 34px; }
.dg-fiche .recu-tete { font-size: 13px; }
.dg-fiche .registre div { gap: 12px; padding: 10px 0; }
.dg-fiche .registre dt { font-size: 15px; color: #3F5F68; }
.dg-fiche .registre dd { font: 700 16px/1.3 var(--display); letter-spacing: -0.005em; white-space: normal; text-align: right; overflow-wrap: anywhere; }
.dg-fiche .dg-vide { color: #4F666D; font-weight: 400; }
.dg-cote-note { margin-top: var(--esp-5); font-size: 14px; line-height: 1.45; color: var(--dt-ink-2); }

/* ========== Écrans d'attente : l'email de confirmation, l'échec d'envoi, le lien ========== */
.dg-fin { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--esp-7); align-items: center; margin-top: var(--esp-6); }
.dg-fin-seul { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.dg-fin-choix { font-size: 18px; line-height: 1.5; }
.dg-pourquoi { margin-top: var(--esp-5); }
.dg-pourquoi .dg-coches { margin-top: var(--esp-3); }
.dg-fin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--esp-3) var(--esp-5); margin-top: var(--esp-6); }
.dg-app .btn-2:disabled, .dg-app .btn-2[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.dg-app .btn-2:disabled:hover, .dg-app .btn-2[aria-disabled="true"]:hover { background: transparent; }
.dg-renvoi { margin-top: var(--esp-3); font-size: 15px; color: var(--dt-ink); }
.dg-spams { margin-top: var(--esp-3); font-size: 15px; color: var(--dt-ink-2); }
.dg-exemple { margin-top: var(--esp-6); padding-top: var(--esp-5); border-top: 3px dashed var(--dt-surface-alt-2); }
.dg-exemple .lien { display: inline-flex; align-items: center; min-height: 44px; font: 700 18px var(--display); }
.dg-fin-art { justify-self: center; width: 100%; max-width: 420px; }
.dg-enveloppe { display: block; width: 100%; height: auto; overflow: visible; }
.dg-fin-texte .dg-fin-chapo { margin-top: var(--esp-3); }

/* ========== Préparation du rapport (après le clic sur le lien de l'email, dessin validé par Yannis le 14/10) ==========
   Texte et étapes à gauche, la feuille du rapport qui se construit à droite ; une colonne sur téléphone, la feuille en
   petit au-dessus. Une étape « attente », « encours » ou « fait » (data-etat) ; la feuille montre une phase par étape. */
.dg-prep { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; margin-top: var(--esp-6); }
.dg-prep .sur-titre { margin-bottom: var(--esp-3); }
.dg-prep-frise { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 28px; }
.dg-prep-frise span { position: relative; height: 8px; overflow: hidden; border-radius: 4px; background: var(--dt-surface-alt-2); }
.dg-prep-frise span[data-etat="fait"] { background: var(--dt-ink); }
.dg-prep-frise span[data-etat="encours"]::after { content: ""; position: absolute; inset: 0; width: 40%; border-radius: 4px; background: var(--dt-accent); animation: dg-prep-glisse 1.1s var(--ease) infinite; }
@keyframes dg-prep-glisse { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.dg-prep-etapes { list-style: none; margin: 20px 0 0; padding: 0; }
.dg-prep-etapes li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 12px 0; transition: opacity 240ms var(--ease); }
.dg-prep-etapes li + li { border-top: 2px dotted var(--dt-surface-alt-2); }
.dg-prep-pastille { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px 14px 11px 15px; background: var(--dt-surface-alt); color: var(--dt-ink-3); font: 800 18px/1 var(--display); }
.dg-prep-pastille svg { width: 24px; height: 24px; }
.dg-prep-etapes h2 { font: 800 19px/1.2 var(--display); letter-spacing: -0.015em; }
.dg-prep-etapes p { margin-top: 2px; font-size: 15px; color: var(--dt-ink-2); }
.dg-prep-etapes li[data-etat="attente"] { opacity: 0.55; }
.dg-prep-etapes li[data-etat="attente"] p { visibility: hidden; }
.dg-prep-etapes li[data-etat="encours"] .dg-prep-pastille { background: var(--dt-paper); color: var(--dt-accent); box-shadow: 0 0 0 2px var(--dt-ink), 3px 3px 0 var(--dt-shadow); }
.dg-prep-etapes li[data-etat="encours"] .dg-prep-pastille svg { animation: dg-tourne 1s linear infinite; }
.dg-prep-etapes li[data-etat="fait"] .dg-prep-pastille { background: var(--dt-ink); color: var(--dt-paper); animation: dg-prep-tampon 260ms var(--ease); }
@keyframes dg-prep-tampon { 0% { transform: scale(0.7); } 70% { transform: scale(1.08); } 100% { transform: scale(1); } }
.dg-prep-long { margin-top: 20px; padding: 14px 16px; border-radius: var(--r-control); background: var(--dt-surface-alt); font-size: 16px; }
.dg-prep-feuille svg { display: block; width: 100%; max-width: 440px; height: auto; margin-left: auto; }
.dg-prep-ombre { flood-color: var(--dt-shadow); flood-opacity: 1; }
.dg-prep-feuille [data-phase] { opacity: 0; transform: translateY(6px); transform-box: fill-box; transition: opacity 360ms var(--ease), transform 360ms var(--ease); }
.dg-prep-feuille [data-phase].vu { opacity: 1; transform: none; }
.dg-prep-barre { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); transition: transform 700ms var(--ease); }
.dg-prep-feuille .vu .dg-prep-barre { transform: scaleX(1); }
.dg-prep-colonne { transform-box: fill-box; transform-origin: center bottom; transform: scaleY(0); transition: transform 700ms var(--ease) 120ms; }
.dg-prep-feuille .vu .dg-prep-colonne { transform: scaleY(1); }
.dg-prep-loupe { transform-box: view-box; animation: dg-prep-balaye 2.4s var(--ease) infinite alternate; }
.dg-prep-loupe.arret { animation: none; }
@keyframes dg-prep-balaye { from { transform: translate(0, 0); } to { transform: translate(150px, 0); } }
.dg-prep-euro { font: 800 26px var(--display); }
.dg-prep-tampon { opacity: 0; transform-box: fill-box; transform-origin: center; }
.dg-prep-tampon.vu { opacity: 1; animation: dg-prep-frappe 420ms var(--ease) both; transform: rotate(-8deg); }
.dg-prep-tampon-texte { font: 800 28px var(--display); }
@keyframes dg-prep-frappe { 0% { opacity: 0; transform: scale(1.6) rotate(-14deg); } 100% { opacity: 1; transform: scale(1) rotate(-8deg); } }
@media (max-width: 859px) {
  .dg-prep { grid-template-columns: minmax(0, 1fr); gap: var(--esp-5); margin-top: var(--esp-4); }
  .dg-prep-feuille { order: -1; }
  .dg-prep-feuille svg { max-width: 210px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .dg-prep-frise span[data-etat="encours"]::after, .dg-prep-etapes li[data-etat="encours"] .dg-prep-pastille svg, .dg-prep-loupe { animation: none; }
  .dg-prep-frise span[data-etat="encours"] { background: var(--dt-accent); }
  .dg-prep-feuille [data-phase], .dg-prep-barre, .dg-prep-colonne, .dg-prep-etapes li { transition: none; }
  .dg-prep-etapes li[data-etat="fait"] .dg-prep-pastille, .dg-prep-tampon.vu { animation: none; }
}

/* ========== Pied de page discret ========== */
.dg-pied { border-top: 2px solid var(--dt-surface-alt-2); padding: var(--esp-4) 0 var(--esp-6); font-size: 14px; color: var(--dt-ink-2); }
.dg-pied .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 var(--esp-5); }
.dg-pied ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--esp-4); }
.dg-pied a, .dg-pied-cookies { display: inline-flex; align-items: center; min-height: 44px; color: var(--dt-ink-2); text-decoration: underline; text-underline-offset: 3px; }
.dg-app .dg-pied-cookies { padding: 0; border: 0; background: none; font: inherit; text-decoration: underline; cursor: pointer; }
.dg-pied a:hover, .dg-pied-cookies:hover { color: var(--dt-ink); text-decoration-color: var(--dt-accent); }

/* ========== Entrée d'une étape ========== */
@media (prefers-reduced-motion: no-preference) {
  .dg-etape, .dg-fin { animation: dg-entre 320ms var(--ease) both; }
  @keyframes dg-entre { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* ========== Tablette et téléphone ========== */
@media (max-width: 1199px) {
  .dg-grille { grid-template-columns: minmax(0, 1fr); }
  .dg-cote { display: none; }
}
@media (min-width: 760px) and (max-width: 1023px) {
  .dg-fil li { font-size: 13px; }
}
@media (max-width: 759px) {
  .dg-fil { gap: 4px; }
  .dg-fil li::before { height: 6px; margin-bottom: 0; }
  .dg-fil li > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dg-grille { margin-top: var(--esp-5); }
  .dg-tete :is(h1, h2) { font-size: 36px; line-height: 1; }
  .dg-compte { margin-bottom: 10px; font-size: 14px; }
  .dg-tete .chapo { font-size: 17px; margin-top: var(--esp-3); }
  .dg-form { margin-top: var(--esp-5); box-shadow: 5px 5px 0 var(--dt-shadow); }
  .dg-form { --dg-ecart: var(--esp-5); }
  fieldset.dg-q > legend, .dg-q.champ > label { font-size: 19px; }
  .choix.dg-puce { padding: 10px 16px; }
  .dg-form select.saisie { font-size: 16px; padding-left: 12px; padding-right: 40px; background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; }
  .dg-puces-chiffres { gap: 6px; }
  .dg-puces-chiffres .dg-puce { min-width: 52px; padding: 10px 12px; }
  /* Étiquette énergie : « Je ne sais pas » sur sa ligne, les sept lettres sur la suivante */
  .dg-dpe { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
  .dg-dpe .dg-puce:first-child { grid-column: 1 / -1; justify-self: start; }
  .dg-dpe .dg-lettre { min-width: 0; padding: 10px 0; }
  .dg-info { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .dg-info > .vig { width: 36px; height: 27px; }
  .dg-nav[data-etape="5"] .dg-fleche { display: none; }
  /* Tuiles d'activité en ligne : l'icône à gauche, sans le petit texte */
  .dg-tuiles { gap: 8px; }
  .choix.dg-tuile { grid-template-columns: 40px minmax(0, 1fr); align-items: center; align-content: center; gap: 10px; min-height: 56px; padding: 8px 10px; line-height: 1.2; }
  .dg-tuile small { display: none; }
  .dg-tuile .vig { width: 40px; height: 30px; }
  .dg-energie-saisie { padding: 0 14px 16px; }
  .dg-mixte { padding: var(--esp-4); }
  .dg-nav { flex-direction: column; align-items: stretch; gap: var(--esp-2); margin-top: var(--esp-6); padding-top: var(--esp-5); }
  .dg-avancer { justify-items: stretch; }
  .dg-avancer .btn { width: 100%; }
  .dg-sous-bouton, .dg-manques { text-align: left; }
  .dg-retour { justify-content: center; min-height: 52px; }
  .dg-rassure { justify-content: flex-start; }
  .dg-fin { grid-template-columns: minmax(0, 1fr); gap: var(--esp-5); margin-top: var(--esp-5); }
  .dg-fin-art { order: -1; max-width: 200px; justify-self: start; }
  .dg-quitter { padding: 0 14px 0 10px; }
  /* Prénom et nom sur une ligne : deux champs courts, une question de moins à faire défiler */
  .dg-q-rangee { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--esp-3); }
  /* Étape 2 compacte : chaque carte sur une ligne de texte, les choix à quatre options sur une seule rangée */
  .dg-cartes { gap: 6px; }
  .choix.dg-carte { min-height: 0; gap: 10px; padding: 8px 12px; }
  .dg-carte .vig { width: 48px; height: 36px; }
  .dg-carte small { font-size: 13px; line-height: 1.35; }
  .dg-puces-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .dg-puces-4 .choix.dg-puce { justify-content: center; min-height: 52px; padding: 6px 4px; border-radius: 14px; font-size: 15px; line-height: 1.2; text-align: center; }
  /* Retour et Continuer sur une ligne, sauf à l'étape 5 où le libellé d'envoi est long */
  .dg-nav:not([data-etape="5"]) { flex-direction: row-reverse; align-items: flex-start; gap: var(--esp-3); }
  .dg-nav:not([data-etape="5"]) .dg-avancer { flex: 1; }
  .dg-nav:not([data-etape="5"]) .dg-retour { min-height: 62px; padding: 0 16px 0 10px; }
  .dg-nav[data-etape="5"] .btn { white-space: normal; line-height: 1.15; text-align: center; padding-top: 10px; padding-bottom: 10px; }
}
@media (forced-colors: active) {
  .dg-option, .dg-energie, .dg-plus, .dg-erreurs, .dg-etab-carte, .dg-dpe-offre { border: 2px solid CanvasText; }
  .dg-avancer .btn:disabled, .dg-avancer .btn[aria-disabled="true"] { color: GrayText; border: 2px solid GrayText; }
  .dg-option:has(.dg-option-tete input:checked) { outline: 3px solid Highlight; }
  .dg-fil li[aria-current="step"]::before, .dg-fil li.fait::before { background: Highlight; }
}
/* Type d'eau chaude : la question suit la carte choisie, sans double marge sous la légende */
.dg-ecs-systeme > legend + .dg-cartes { margin-top: 0; }
