/* ===========================================================================
   Sooluo — la version téléphone (D-429)

   Demande du propriétaire (12/11/2026) : « remasteriser la version
   téléphone ». Direction retenue sur maquettes : des fiches blanches sur fond
   clair, une couleur par sujet, le bleu réservé à l'action, et jamais deux
   fois la même information sur un écran.

   CE FICHIER NE TOUCHE QUE LES ÉCRANS DE MOINS DE 768 PX. Deux verrous : la
   balise qui le charge porte `media="(max-width: 767.98px)"` (index.html), et
   toutes ses règles sont dans la même condition, ci-dessous. Tablette et
   ordinateur ne lisent que `app.css`, qui n'est pas modifié par cette refonte.

   POURQUOI `:root:root` DEVANT CHAQUE SÉLECTEUR. `app.css` empile vingt mille
   lignes et autant de reprises ; plutôt que de courir après la spécificité de
   chacune, toute règle d'ici gagne d'office deux crans. Ce n'est pas un
   `!important` : une règle plus précise de ce fichier reste maîtresse.

   Les couleurs : celles de la charte (`app.css`), plus cinq teintes pâles,
   toujours employées pour le même sujet —
     orange  la pompe à chaleur, le chauffage, le matériel
     cyan    la climatisation, le climat (zone, altitude, température)
     violet  l'eau chaude, le foyer, les revenus
     jaune   le DPE, et tout ce qui est « sous réserve »
     vert    les aides, les économies, ce qui est acquis
   =========================================================================== */

@media (max-width: 767.98px) {

:root {
  --tel-orange: #9a3d0a;
  --tel-orange-pale: #ffe9dc;
  --tel-cyan: #0b5c73;
  --tel-cyan-pale: #dff3f8;
  --tel-violet: #4a2fb3;
  --tel-violet-pale: #efe9ff;
  --tel-jaune: #6b3a00;
  --tel-jaune-pale: #fdf1dc;
  --tel-jaune-vif: #f4a43a;
  --tel-filet: #edf0f6;
  --tel-texte-2: #55607a;
  --tel-ombre: 0 1px 2px rgba(14, 22, 48, .07);
  --tel-ombre-barre: 0 -4px 16px rgba(14, 22, 48, .08);
  --tel-rayon: 18px;
  --tel-rayon-champ: 14px;
  --tel-marge: 16px;
}

/* ---------------------------------------------------------------------------
   1. Le fond, l'écran, les titres
--------------------------------------------------------------------------- */

:root:root body { background: var(--fond-clair); }

:root:root .screen {
  padding-inline: var(--tel-marge);
  padding-top: 8px;
}

:root:root .screen__title {
  margin: 0 0 4px;
  padding-inline: 4px;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--encre);
}

:root:root .screen__chapeau {
  margin: 0 0 14px;
  padding-inline: 4px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--tel-texte-2);
}

/* ---------------------------------------------------------------------------
   2. L'en-tête : trois ronds, rien d'autre
--------------------------------------------------------------------------- */

:root:root .app-header {
  min-height: 60px;
  padding: 8px var(--tel-marge);
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Hors dossier : le logo, « Mode client », le compte. */
:root:root .app-header .mode-client {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--tel-ombre);
  font-size: 13.5px;
  font-weight: 600;
}
:root:root .app-header .mode-client--actif { background: var(--encre); color: #fff; }

:root:root .app-header__avatar {
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--tel-violet-pale);
  color: var(--tel-violet);
  font-weight: 700;
}

/* Dans un dossier : la croix, l'étape, l'œil. Le nom du dossier se lit en
   tête de la feuille des étapes ; le logo cède sa place. */
:root:root .app-header.app-header--parcours {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  padding: 8px var(--tel-marge);
}
:root:root .app-header.app-header--parcours .app-header__brand,
:root:root .app-header--parcours .app-header__dossier { display: none; }

:root:root .app-header--parcours .app-header__retour {
  width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--tel-ombre);
  color: var(--encre);
}
:root:root .app-header__retour-chevron { display: none; }
:root:root .app-header__retour-croix { display: block; }

:root:root .app-header__etape {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 6px;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--action-pale);
  color: var(--action-fonce);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

:root:root .app-header--parcours .app-header__actions { justify-self: end; gap: 0; }
:root:root .app-header--parcours .mode-client {
  width: 44px;
  height: 44px;
  min-height: 44px;
  background: #fff;
  box-shadow: var(--tel-ombre);
}
:root:root .app-header--parcours .mode-client--actif { background: var(--encre); color: #fff; }

/* ---------------------------------------------------------------------------
   3. Les bandeaux de démo et d'essai : une fiche, pas une barre
--------------------------------------------------------------------------- */

:root:root .bandeau-demo,
:root:root .bandeau-essai {
  margin: 0 var(--tel-marge) 6px;
  padding: 6px 6px 6px 14px;
  border: 0;
  border-radius: 999px;
  min-height: 0;
  font-size: 13.5px;
}
:root:root .bandeau-demo__action {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13.5px;
}

/* ---------------------------------------------------------------------------
   4. Les étapes du dossier : une feuille, dépliée depuis l'en-tête
--------------------------------------------------------------------------- */

:root:root .parcours {
  position: static;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
:root:root .parcours__entete,
:root:root .parcours__rail,
:root:root .parcours .parcours__etapes { display: none; }

:root:root .parcours__voile {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 69;
  border: 0;
  background: rgba(14, 22, 48, .28);
}

:root:root .parcours.parcours--ouvert {
  position: fixed;
  top: 68px;
  left: var(--tel-marge);
  right: var(--tel-marge);
  z-index: 70;
  padding: 16px 16px 10px;
  border-radius: var(--tel-rayon);
  background: #fff;
  box-shadow: 0 12px 40px rgba(14, 22, 48, .22);
}

:root:root .parcours--ouvert .parcours__dossier {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0 0 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--tel-filet);
  font-size: 13.5px;
  color: var(--tel-texte-2);
}
:root:root .parcours--ouvert .parcours__dossier strong { font-size: 16px; color: var(--encre); }

:root:root .parcours--ouvert .parcours__etapes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  background: none;
  border: 0;
}
:root:root .parcours--ouvert .parcours__etape { margin: 0; padding: 0; border: 0; background: none; }
:root:root .parcours--ouvert .parcours__etape::before,
:root:root .parcours--ouvert .parcours__etape::after { display: none; }
:root:root .parcours--ouvert .parcours__lien {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--encre);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
:root:root .parcours--ouvert .parcours__libelle { display: inline; color: inherit; }
:root:root .parcours--ouvert .parcours__pastille {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: var(--tel-filet);
  color: var(--tel-texte-2);
  font-size: 13px;
  font-weight: 600;
}
:root:root .parcours--ouvert .parcours__etape--franchie .parcours__pastille { background: var(--vert-pale); color: var(--vert-fonce); }
:root:root .parcours--ouvert .parcours__etape--active .parcours__pastille { background: var(--action); color: #fff; }
:root:root .parcours--ouvert .parcours__etape--active .parcours__lien { font-weight: 700; }
:root:root .parcours--ouvert .parcours__etape--avenir .parcours__lien { color: var(--tel-texte-2); }

/* ---------------------------------------------------------------------------
   5. La barre du bas d'un dossier : reculer d'une étape, avancer
--------------------------------------------------------------------------- */

:root:root .nav-etapes {
  padding: 14px var(--tel-marge) calc(16px + env(safe-area-inset-bottom, 0px));
  border: 0;
  border-radius: 22px 22px 0 0;
  background: #fff;
  box-shadow: var(--tel-ombre-barre);
}
:root:root .nav-etapes__contenu {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: none;
  margin: 0;
  padding: 0;
}
:root:root .nav-etapes .nav-etapes__retour {
  flex: none;
  width: 54px;
  height: 54px;
  min-height: 54px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--fond-clair);
  color: var(--encre);
  box-shadow: none;
  font-size: 0;
}
:root:root .nav-etapes .nav-etapes__retour > span { font-size: 20px; line-height: 1; }
:root:root .nav-etapes .nav-etapes__suite {
  flex: 1 1 auto;
  height: 54px;
  min-height: 54px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: none;
}

/* ---------------------------------------------------------------------------
   6. La barre d'onglets : « Nouveau » au centre, en rond bleu
--------------------------------------------------------------------------- */

:root:root .onglets {
  padding: 8px 8px calc(10px + env(safe-area-inset-bottom, 0px));
  border: 0;
  border-radius: 22px 22px 0 0;
  background: #fff;
  box-shadow: var(--tel-ombre-barre);
  align-items: center;
}
:root:root .onglet { min-height: 56px; color: var(--tel-texte-2); border-radius: 14px; }
:root:root .onglet__libelle { font-size: 11.5px; font-weight: 600; }
:root:root .onglet--actif { color: var(--action); background: none; }
:root:root .onglet--actif .onglet__libelle { font-weight: 700; color: var(--action); }
:root:root .onglet--actif::before { display: none; }

:root:root .onglet--action { background: none; }
:root:root .onglet--action .onglet__icone {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--action);
  color: #fff;
}
:root:root .onglet--action .onglet__libelle { display: none; }

:root:root .onglets__feuille {
  left: var(--tel-marge);
  right: var(--tel-marge);
  border: 0;
  border-radius: var(--tel-rayon);
  box-shadow: 0 12px 40px rgba(14, 22, 48, .22);
}

/* ---------------------------------------------------------------------------
   7. Les fiches
--------------------------------------------------------------------------- */

:root:root .card {
  border: 0;
  border-radius: var(--tel-rayon);
  background: #fff;
  box-shadow: var(--tel-ombre);
}

/* ---------------------------------------------------------------------------
   8. Les champs
--------------------------------------------------------------------------- */

:root:root .field__input,
:root:root .field select,
:root:root .field textarea {
  min-height: 52px;
  border: 1.5px solid transparent;
  border-radius: var(--tel-rayon-champ);
  background: var(--fond-clair);
  font-size: 16px;
  color: var(--encre);
  box-shadow: none;
}
:root:root .field__input:focus,
:root:root .field select:focus,
:root:root .field textarea:focus {
  border-color: var(--action);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px var(--action-pale);
}
:root:root .field__input--error { border-color: var(--danger); background: #fff; }
:root:root .field > label,
:root:root .field__libelle { font-size: 15px; font-weight: 500; color: var(--encre); }
:root:root .field__hint { font-size: 13px; color: var(--tel-texte-2); }

/* ---------------------------------------------------------------------------
   9. Les boutons
--------------------------------------------------------------------------- */

:root:root .button {
  min-height: 52px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: none;
}
:root:root .button--secondary {
  border: 0;
  background: #fff;
  color: var(--encre);
  box-shadow: var(--tel-ombre);
}

/* ---------------------------------------------------------------------------
   10. Les avis : une teinte par nature, sans filet latéral
--------------------------------------------------------------------------- */

:root:root .notice {
  padding: 12px 14px;
  border: 0;
  border-radius: var(--tel-rayon-champ);
  font-size: 14px;
  line-height: 1.4;
}
:root:root .notice--warning { background: var(--tel-jaune-pale); color: var(--tel-jaune); }
:root:root .notice--info { background: var(--action-pale); color: var(--action-fonce); }
:root:root .notice--danger { background: var(--danger-pale); color: var(--danger); }

/* ---------------------------------------------------------------------------
   11. La bulle du dossier d'exemple
--------------------------------------------------------------------------- */

:root:root .guide-decouverte {
  width: calc(100% - 2 * var(--tel-marge));
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  border-radius: var(--tel-rayon);
}

/* ---------------------------------------------------------------------------
   12. Les parties d'un écran (fiche client, visite) : des ronds numérotés
--------------------------------------------------------------------------- */

:root:root .sous-etapes {
  gap: 6px;
  margin: 0 calc(-1 * var(--tel-marge)) 14px;
  padding: 2px var(--tel-marge);
}
:root:root .sous-etape {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 0;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--tel-ombre);
  color: var(--tel-texte-2);
  font-size: 0;
}
:root:root .sous-etape__numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: var(--tel-filet);
  color: var(--tel-texte-2);
  font-size: 13px;
  font-weight: 600;
}
:root:root .sous-etape--faite .sous-etape__numero { background: var(--vert-pale); color: var(--vert-fonce); }
/* Une partie sans numéro (visite climatisation, ballon) garde son nom. */
:root:root .sous-etape:not(:has(.sous-etape__numero)) {
  width: auto;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
}
:root:root .sous-etape--active:not(:has(.sous-etape__numero)) { color: #fff; }

/* Le rond courant est plein et ne répète pas son nom : le titre de l'écran,
   juste dessous, le dit déjà. */
:root:root .sous-etape--active { background: var(--encre); }
:root:root .sous-etape--active .sous-etape__numero { background: var(--encre); color: #fff; }

/* ---------------------------------------------------------------------------
   13. La fiche client : l'adresse, puis ce qu'elle apprend du logement
--------------------------------------------------------------------------- */

:root:root .fiche-client .card { margin-top: 0; padding: 16px; }
:root:root .fiche-client form,
:root:root .fiche-client__adresses { display: grid; gap: 14px; }
:root:root .form-bloc__titre { margin: 0 0 12px; font-size: 16px; font-weight: 600; }

/* Le titre de la fiche nomme déjà le champ : son libellé ne se répète pas
   (il reste lu par les lecteurs d'écran). */
:root:root .form-bloc__titre + .champ-adresse > label,
:root:root .champ-adresse__reconnue {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* Une adresse reconnue se voit à son champ, vert ; la commune se lit dans les
   deux champs qui suivent. Ni phrase ni étiquette « Adresse » en plus. */
:root:root .champ-adresse:has(.champ-adresse__reconnue) .field__input {
  border-color: var(--vert);
  background: var(--vert-pale);
  font-weight: 600;
}
:root:root .fiche-client .provenance { display: none; }
:root:root .fiche-client .field-row { grid-template-columns: 116px minmax(0, 1fr); gap: 10px; }
:root:root .fiche-client .field { margin-top: 12px; }
:root:root .fiche-client .form-bloc__titre + .field { margin-top: 0; }
/* Ce que l'adresse du chantier décide se lit désormais dans « Le logement ». */
:root:root .fiche-client .form-bloc__aide { display: none; }

/* La vue aérienne : une bande centrée sur le repère, pas un carré. */
:root:root .vue-aerienne { margin: 12px 0 0; }
:root:root .vue-aerienne__mosaique {
  margin-block: -27%;
  border-radius: 0;
  clip-path: inset(27% 0 27% 0 round 14px);
}
:root:root .vue-aerienne__legende { font-size: 12px; color: var(--tel-texte-2); }

/* L'interrupteur : une ligne, sans cadre dans le cadre. */
:root:root .toggle {
  min-height: 52px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 15px;
  font-weight: 500;
}

/* « Le logement » */
:root:root .apercu-logement { padding: 16px 16px 12px; }
:root:root .apercu-logement__titre { margin: 0 0 4px; font-size: 16px; }
:root:root .apercu-logement__ligne { min-height: 60px; gap: 12px; padding-block: 8px; border-top-color: var(--tel-filet); }
:root:root .apercu-logement__tuile { width: 40px; height: 40px; }
:root:root .apercu-logement__nom { font-size: 15px; }
:root:root .apercu-logement__detail { font-size: 13.5px; color: var(--tel-texte-2); }
:root:root .apercu-logement__pied { border-top-color: var(--tel-filet); font-size: 12.5px; color: var(--tel-texte-2); }

/* Le rappel du dossier, sous la fiche du client. */
:root:root .fiche-client__dossier { padding: 12px 16px; }

/* ---------------------------------------------------------------------------
   14. L'accueil : un dossier, une fiche — son métier, son client, son état
--------------------------------------------------------------------------- */

:root:root .accueil { margin: 0 0 12px; }
:root:root .accueil__titre {
  padding-inline: 4px;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.02em;
}
/* Le nombre de dossiers et « N à envoyer » se lisent déjà dans les deux vues,
   juste dessous. */
:root:root .accueil:has(+ .vues) .accueil__compte,
:root:root .accueil:has(+ .vues) .accueil__resume { display: none; }

:root:root .vues {
  gap: 4px;
  margin: 0 0 14px;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: #e6eaf3;
}
:root:root .vues__onglet {
  flex: 1 1 0;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #3d4762;
  font-size: 15px;
  font-weight: 600;
}
:root:root .vues__onglet::after { display: none; }
:root:root .vues__onglet--actif { background: #fff; color: var(--encre); box-shadow: 0 1px 3px rgba(14, 22, 48, .12); }
:root:root .vues__libelle { font-size: 15px; font-weight: 600; }
:root:root .vues__compte {
  min-width: 0;
  padding: 0;
  background: none;
  color: inherit;
  font-size: 15px;
  font-weight: 600;
}
:root:root .vues__compte::before { content: "· "; }
:root:root .vues__compte--alerte { color: var(--danger); }

:root:root .dossiers__outils { gap: 8px; margin: 0 0 14px; }
:root:root .recherche .field__input {
  padding-inline: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--tel-ombre);
}
:root:root .dossiers__filtres-bouton { min-height: 52px; padding-inline: 18px; }

:root:root .cartes-dossiers { grid-template-columns: minmax(0, 1fr); gap: 10px; }
:root:root .cartes-dossiers > li { min-width: 0; }
:root:root .carte-dossier--fiche {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px;
  border: 0;
  border-radius: var(--tel-rayon);
  background: #fff;
  box-shadow: var(--tel-ombre);
  color: var(--encre);
  text-decoration: none;
}
:root:root .carte-dossier__metier {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--tel-filet);
  color: var(--tel-texte-2);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}
:root:root .carte-dossier__metier--pac_air_eau { background: var(--tel-orange-pale); color: var(--tel-orange); }
:root:root .carte-dossier__metier--climatisation { background: var(--tel-cyan-pale); color: var(--tel-cyan); }
:root:root .carte-dossier__metier--ballon_thermodynamique { background: var(--tel-violet-pale); color: var(--tel-violet); }
:root:root .carte-dossier__qui { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
:root:root .carte-dossier--fiche .carte-dossier__nom {
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:root:root .carte-dossier--fiche .carte-dossier__type {
  overflow: hidden;
  font-size: 13.5px;
  color: var(--tel-texte-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}
:root:root .carte-dossier__etat { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
:root:root .carte-dossier--fiche .carte-dossier__montant { font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; color: var(--encre); }

/* ---------------------------------------------------------------------------
   15. La visite technique : ce que le DPE a rempli se voit à sa couleur
--------------------------------------------------------------------------- */

:root:root .visite__tete {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 12px;
  margin: 0 0 12px;
}
/* Le titre de la partie, sur sa fiche, dit déjà de quoi l'on parle. */
:root:root .visite .screen__chapeau { display: none; }
:root:root .visite .screen__title { margin: 0; }

:root:root .visite__mode {
  min-height: 0;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: #e6eaf3;
}
:root:root .visite__mode-choix {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

:root:root .repli { gap: 10px; }
:root:root .carte-pliante { border-radius: var(--tel-rayon); }
:root:root .carte-pliante__entete { min-height: 56px; padding-inline: 16px; }
:root:root .carte-pliante__titre { font-size: 15px; font-weight: 600; }
:root:root .carte-pliante__resume { font-size: 13.5px; color: var(--tel-texte-2); }

/* Le DPE : la fiche est jaune, et les champs qu'il a remplis aussi. La
   couleur remplace l'étiquette « DPE » répétée sur chaque champ ; un champ
   retouché à la main redevient neutre. */
:root:root .visite .repli > .carte-pliante:first-child { background: var(--tel-jaune-pale); box-shadow: none; }
:root:root .visite .repli > .carte-pliante:first-child .carte-pliante__titre,
:root:root .visite .repli > .carte-pliante:first-child .carte-pliante__resume { color: var(--tel-jaune); }
:root:root .visite .field:has(.provenance--dpe) .field__input {
  border-color: var(--tel-jaune-vif);
  background: var(--tel-jaune-pale);
}
:root:root .visite .provenance--dpe { display: none; }

:root:root .visite-carte { margin-top: 0; padding: 16px; }
:root:root .visite-carte__titre { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
:root:root .visite-logement { gap: 14px; }
:root:root .grille-champs { gap: 14px; }
:root:root .visite .field { margin-top: 0; }
:root:root .provenance { font-size: 11px; border-radius: 999px; }

/* La partie où l'on est porte son nom, à côté de son rond : le titre de
   l'écran, « Visite technique », ne le dit pas. Sur la première partie, la
   fiche ne le répète donc pas. */
:root:root .visite .sous-etape--active {
  gap: 8px;
  width: auto;
  padding: 0 16px 0 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
:root:root .visite .sous-etape--active .sous-etape__numero { background: #fff; color: var(--encre); }
:root:root .visite-logement__champs > .visite-carte__titre {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Les parties sans fiche (isolation, chauffage, émetteurs, électricité) :
   leurs champs se posent sur une fiche, comme partout. */
:root:root .visite form:has(> .field),
:root:root .visite form:has(> .grille-champs),
:root:root .visite form:has(> .field-row) {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: var(--tel-rayon);
  background: #fff;
  box-shadow: var(--tel-ombre);
}
:root:root .visite .field-row { gap: 14px 10px; }

/* Un encart de décision : une teinte, pas de filet. */
:root:root .encart {
  padding: 14px;
  border: 0;
  border-radius: var(--tel-rayon-champ);
}
:root:root .encart .field__input { background: #fff; }
:root:root .encart__titre { font-size: 15px; font-weight: 600; }
:root:root .encart__texte { font-size: 13.5px; }

/* ---------------------------------------------------------------------------
   16. Le type de projet : trois métiers, trois couleurs
--------------------------------------------------------------------------- */

/* Le titre pose déjà la question. */
:root:root .choix-consigne { display: none; }
:root:root .projets { gap: 10px; }
:root:root .projet-carte {
  min-height: 84px;
  padding: 12px 14px;
  border: 2px solid transparent;
  border-radius: var(--tel-rayon);
  background: #fff;
  box-shadow: var(--tel-ombre);
}
:root:root .projet-carte--actif { border-color: var(--action); background: #fff; }
:root:root .projet-carte__tuile { width: 56px; height: 56px; border: 0; border-radius: 16px; background: var(--action-pale); color: var(--action); }
/* Sur l'écran du type de projet, l'ordre est fixe : PAC, climatisation, ballon. */
:root:root .choix-projet .projets > .projet-carte:nth-child(1) .projet-carte__tuile { background: var(--tel-orange-pale); color: var(--tel-orange); }
:root:root .choix-projet .projets > .projet-carte:nth-child(2) .projet-carte__tuile { background: var(--tel-cyan-pale); color: var(--tel-cyan); }
:root:root .choix-projet .projets > .projet-carte:nth-child(3) .projet-carte__tuile { background: var(--tel-violet-pale); color: var(--tel-violet); }
:root:root .projet-carte__libelle { font-size: 16px; font-weight: 600; }
:root:root .projet-carte__description { font-size: 13.5px; color: var(--tel-texte-2); }

/* ---------------------------------------------------------------------------
   17. Le matériel : la machine conseillée, ce qu'elle couvre, son prix
--------------------------------------------------------------------------- */

:root:root .materiel-arbre__tete { display: block; margin: 0 0 12px; }
:root:root .materiel-arbre__tete .screen__title { font-size: 28px; margin: 0 0 4px; }
:root:root .materiel-arbre__besoin { padding-inline: 4px; font-size: 14px; color: var(--tel-texte-2); }
:root:root .materiel-arbre__detail { min-height: 0; font-weight: 600; text-decoration: none; }

/* L'alerte du calcul : une réserve, donc jaune ; son renvoi tient sur la ligne. */
:root:root .calcul-vigilance__liste { gap: 10px; }
:root:root .materiel-arbre__alertes { margin: 0 0 12px; }
:root:root .calcul-vigilance__point {
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 12px 14px;
  border-radius: var(--tel-rayon-champ);
}
:root:root .calcul-vigilance__point--alerte { background: var(--tel-jaune-pale); color: var(--tel-jaune); }
:root:root .calcul-vigilance__texte { flex: 1 1 calc(100% - 40px); font-size: 14px; line-height: 1.4; color: var(--tel-jaune); }
:root:root .calcul-vigilance__texte strong { color: var(--tel-jaune); }
:root:root .calcul-vigilance__bouton {
  flex: 0 0 auto;
  min-height: 40px;
  margin: 0 0 0 32px;
  padding: 0 16px;
  font-size: 14px;
}

:root:root .pac-resume {
  min-height: 56px;
  margin: 0 0 12px;
  padding: 0 6px 0 16px;
  border: 0;
  border-radius: var(--tel-rayon);
  background: #fff;
  box-shadow: var(--tel-ombre);
}
:root:root .pac-resume__texte { font-size: 15px; font-weight: 600; }
:root:root .pac-resume__modifier { font-size: 15px; font-weight: 600; text-decoration: none; }

:root:root .solution-clim { gap: 12px; }
:root:root .solution-clim__carte {
  padding: 16px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--tel-ombre);
}
:root:root .solution-clim__gamme { font-size: 17px; font-weight: 700; }
:root:root .solution-clim__lignes li { min-height: 44px; border-color: var(--tel-filet); }
:root:root .solution-clim__piece { font-size: 15px; font-weight: 500; }
/* Ce que la machine couvre : le chiffre qui décide, en vert. */
:root:root .solution-clim__couverture {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: var(--tel-rayon-champ);
  background: var(--vert-pale);
  color: var(--vert-fonce);
  font-size: 15px;
  font-weight: 600;
}
:root:root .solution-clim__autres {
  border: 0;
  border-radius: var(--tel-rayon);
  background: #fff;
  box-shadow: var(--tel-ombre);
}
:root:root .solution-clim__autres > summary { min-height: 56px; padding-inline: 16px; font-size: 15px; font-weight: 600; }
:root:root .solution-clim__autre { border-radius: 12px; }

/* Les questions du Matériel (« Que doit faire la PAC ? ») : des tuiles à choisir. */
:root:root .materiel-q__titre { font-size: 16px; font-weight: 600; }
:root:root .materiel-q__tuile {
  min-height: 56px;
  border: 2px solid transparent;
  border-radius: var(--tel-rayon-champ);
  background: #fff;
  box-shadow: var(--tel-ombre);
}
:root:root .materiel-q__tuile--active { border-color: var(--action); background: var(--action-pale); box-shadow: none; }

/* ---------------------------------------------------------------------------
   18. Les aides : la décision, le total, puis ce qui l'explique
--------------------------------------------------------------------------- */

:root:root .aides--simple { display: flex; flex-direction: column; gap: 12px; }
:root:root .aides--simple > * { margin: 0; }
:root:root .aides-simple__tete { order: 0; }
:root:root .aides-case { order: 1; }
:root:root .aides-simple__grille { order: 2; display: flex; flex-direction: column; gap: 12px; }
:root:root .aides-simple__resume { order: 3; gap: 10px; }
:root:root .aides-foyer-ligne { order: 4; }
:root:root .aides--simple > .notice { order: 5; }

:root:root .aides-simple__machine { padding-inline: 4px; font-size: 14px; color: var(--tel-texte-2); }
:root:root .aides-case {
  min-height: 60px;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--tel-rayon);
  background: #fff;
  box-shadow: var(--tel-ombre);
}
/* La phrase sous la case répète le total et les deux aides, juste dessous. */
:root:root .aides-case__texte small { display: none; }
:root:root .aides-case__texte strong { font-size: 15px; font-weight: 600; }

/* Le total d'abord, en vert ; ses deux composantes ensuite. */
:root:root .aides-simple__aides {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 20px 8px;
  border-radius: 20px;
  background: var(--vert-pale);
  box-shadow: none;
}
:root:root .aides-total {
  order: -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 0;
  padding: 0 0 12px;
  border: 0;
  border-radius: 0;
  background: none;
}
:root:root .aides-total > span { font-size: 14px; font-weight: 600; color: var(--vert-fonce); }
:root:root .aides-total > strong {
  font-family: var(--font-mono);
  font-size: 40px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--vert-fonce);
}
:root:root .aides-lignes { gap: 0; }
:root:root .aides-ligne {
  min-height: 52px;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid #b9e3c8;
  border-radius: 0;
  background: none;
}

:root:root .aides-resume {
  min-height: 56px;
  padding-inline: 16px;
  border: 0;
  border-radius: var(--tel-rayon);
  background: #fff;
  box-shadow: var(--tel-ombre);
}
:root:root .aides-foyer-ligne { padding: 16px; gap: 14px; }
:root:root .aides-champ__libelle { font-size: 15px; font-weight: 500; color: var(--encre); }
:root:root .aides-bascule { border-radius: 14px; }
:root:root .aides-bascule__choix { border-radius: 10px; font-size: 15px; font-weight: 600; }
:root:root .aides-foyer__zone { border-radius: 14px; font-size: 15px; }
:root:root .aides-personnes__pas { min-height: 52px; border-radius: 50%; background: var(--action-pale); color: var(--action); box-shadow: none; }
:root:root .aides-reste { padding: 18px 20px; border-radius: 20px; }
:root:root .aides-reste__valeur { font-family: var(--font-mono); font-size: 36px; line-height: 1.1; letter-spacing: -.03em; }

/* ---------------------------------------------------------------------------
   19. L'estimation : le reste à charge, puis comment on y arrive
--------------------------------------------------------------------------- */

:root:root .estimation-ecran > .muted { padding-inline: 4px; margin: 0 0 12px; font-size: 14px; color: var(--tel-texte-2); }
:root:root .estimation-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
:root:root .estimation-chiffre {
  padding: 12px 14px;
  border: 0;
  border-radius: var(--tel-rayon);
  background: #fff;
  box-shadow: var(--tel-ombre);
}
:root:root .estimation-chiffre::before { display: none; }
:root:root .estimation-chiffre__libelle { font-size: 13px; color: var(--tel-texte-2); }
:root:root .estimation-chiffre__valeur { font-size: 17px; }
/* Le reste à charge : le seul grand chiffre de l'écran, en tête. */
:root:root .estimation-chiffre--reste {
  order: -1;
  grid-column: 1 / -1;
  padding: 18px 20px;
  border-radius: 20px;
  background: #fff;
}
:root:root .estimation-chiffre--reste .estimation-chiffre__libelle { font-size: 14px; font-weight: 500; }
:root:root .estimation-chiffre--reste .estimation-chiffre__valeur {
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--encre);
}
/* « aides déduites » et le hors taxes se lisent déjà plus bas ; la réserve
   sur les aides, elle, reste. */
:root:root .estimation-chiffre--reste .estimation-chiffre__detail,
:root:root .estimation-chiffre:not(.estimation-chiffre--aides):not(.estimation-chiffre--reste) .estimation-chiffre__detail { display: none; }
:root:root .estimation-chiffre--aides .estimation-chiffre__valeur { color: var(--vert-fonce); }

:root:root .estimation__corps { gap: 12px; }
:root:root .estimation__lignes { padding: 8px 16px 12px; }
:root:root .estimation__entete { min-height: 52px; }
:root:root .estimation__entete .form-section__title { font-size: 16px; font-weight: 600; }
:root:root .estimation__modifier { min-height: 40px; padding: 0 14px; background: var(--action-pale); color: var(--action-fonce); box-shadow: none; font-size: 14px; }
:root:root .postes { gap: 0; }
:root:root .poste {
  min-height: 60px;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid var(--tel-filet);
  border-radius: 0;
  background: none;
  box-shadow: none;
}
:root:root .poste__titre { font-size: 15px; font-weight: 600; }
:root:root .poste__detail { font-size: 13px; color: var(--tel-texte-2); }
:root:root .poste__montant { font-family: var(--font-mono); font-size: 15px; font-weight: 600; white-space: nowrap; }
:root:root .estimation__cote section.card { padding: 6px 16px; }
:root:root .bilan { padding: 0; border: 0; background: none; }
:root:root .bilan__ligne { min-height: 44px; padding: 0; font-size: 15px; }
/* Le reste à charge est déjà le grand chiffre de l'écran. */
:root:root .estimation__cote .repli > .carte-pliante:first-child .carte-pliante__resume { display: none; }
/* Les économies : ce que le client y gagne, en vert. */
:root:root .estimation__cote .repli > .carte-pliante:last-child { background: var(--vert-pale); box-shadow: none; }
:root:root .estimation__cote .repli > .carte-pliante:last-child .carte-pliante__resume { color: var(--vert-fonce); font-weight: 600; }

/* ---------------------------------------------------------------------------
   20. Le dossier et sa remise
--------------------------------------------------------------------------- */

:root:root .dossier-ecran > .muted { padding-inline: 4px; margin: 0 0 12px; font-size: 15px; color: var(--tel-texte-2); }
/* Le rappel « pas un devis » : la teinte de la réserve. */
:root:root .dossier-ecran > .notice--info { background: var(--tel-jaune-pale); color: var(--tel-jaune); margin: 0 0 12px; }
:root:root .dossier-ecran > section.card { padding: 6px 16px 16px; }
:root:root .dossier-ecran .form-section__title { font-size: 16px; font-weight: 600; margin: 10px 0 4px; }
:root:root .pieces { gap: 0; }
:root:root .piece {
  border: 0;
  border-top: 1px solid var(--tel-filet);
  border-radius: 0;
  background: none;
}
:root:root .piece:first-child { border-top: 0; }
:root:root .piece__case { min-height: 64px; padding: 12px 0; gap: 14px; }
:root:root .piece__coche { width: 24px; height: 24px; border-radius: 7px; }
:root:root .piece--indisponible { opacity: .6; }
:root:root .pieces + .button { margin-top: 12px; }

:root:root .envoi-tete { display: block; margin: 0 0 12px; }
:root:root .envoi-tete__contact { padding-inline: 4px; font-size: 14px; color: var(--tel-texte-2); }
:root:root .envoi-etat {
  min-height: 56px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--tel-rayon);
  background: #fff;
  box-shadow: var(--tel-ombre);
}
:root:root .envoi-etat__libelle { font-size: 16px; }
:root:root .envoi-corps { gap: 14px; }
:root:root .envoi-temps {
  padding: 16px;
  border-radius: var(--tel-rayon);
  background: #fff;
  box-shadow: var(--tel-ombre);
}
:root:root .envoi-vide { padding: 0; border: 0; background: none; }
:root:root .envoi-vide__lien { background: var(--action-pale); color: var(--action-fonce); box-shadow: none; }
:root:root .envoi-statut { min-height: 44px; border-radius: 999px; }


/* ---------------------------------------------------------------------------
   21. Réglages › Matériel — la ligne de marque allégée (D-433)
--------------------------------------------------------------------------- */
:root:root .catalogue__marque-tete { display: flex; flex-wrap: wrap; white-space: normal; gap: .25rem .75rem; margin: 0; }
:root:root .catalogue__detail { padding-left: 0; }
:root:root .catalogue__marque-detail { background: var(--surface-muted); border-top: 0; }
:root:root .catalogue__marque-detail > td { background: none; border: 0; padding-block: .125rem; }


/* ---------------------------------------------------------------------------
   22. Matériel clim — les paliers (D-442) : le logo et le prix sur une ligne,
   la phrase dessous ; des cartes modèles un peu plus étroites.
--------------------------------------------------------------------------- */
:root:root .palier { border: 0; border-radius: var(--tel-rayon); box-shadow: var(--tel-ombre); }
:root:root .palier--retenu { box-shadow: inset 0 0 0 2px var(--palier-teinte), var(--tel-ombre); }
:root:root .palier__tete {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "logo prix" "texte texte";
  gap: .5rem .75rem; padding: 14px 14px 14px 12px;
}
:root:root .palier__chevron { display: none; }
:root:root .palier__logo img, :root:root .palier__logo svg { max-width: 7rem; max-height: 2rem; }
:root:root .palier--autre .palier__tete { grid-template-areas: "logo prix" "texte texte"; }
:root:root .palier__corps { padding: 12px 12px 14px; }
:root:root .modele-clim { width: 15.5rem; }
:root:root .modele-clim__choisir { padding-inline: 12px; white-space: nowrap; font-size: 15px; }
:root:root .paliers-clim__autres { border: 0; border-radius: var(--tel-rayon); box-shadow: var(--tel-ombre); }
:root:root .paliers-clim__choix { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 14px; border-radius: var(--tel-rayon); }
:root:root .paliers-clim__choix-label { grid-row: auto; grid-column: 1 / -1; }
:root:root .paliers-clim__choix-refs { grid-column: 1; }
:root:root .paliers-clim__choix-prix { grid-column: 2; grid-row: 2 / span 2; }
:root:root .paliers-clim__choix-couverture { grid-column: 1 / -1; }


/* ---------------------------------------------------------------------------
   23. La recherche d'entreprise, clavier ouvert (D-443) : une liste compacte.
   Les raisons sociales sont longues (jusqu'à quatre lignes) : deux sociétés
   sur six restaient au-dessus du clavier. Le nom tient sur deux lignes au
   plus, la commune et le SIRET sur une, en plus petit. Le champ remonte sous
   l'en-tête quand la liste s'ouvre (champ-societe.js, comme l'adresse).
--------------------------------------------------------------------------- */
:root:root .champ-societe .suggestion { padding-block: 6px; }
:root:root .champ-societe .suggestion__libelle {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; font-size: 15px; line-height: 1.3;
}
:root:root .champ-societe .suggestion__commune {
  max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 13px; line-height: 1.3;
}

}
