/* HandiHomeLife - conversion et confort (25/09/2026)
   Couleurs du site : bleu nuit #1B2039, orange #F27A1A. Le texte sur orange est en bleu nuit
   (contraste 6,9:1) : du blanc sur cet orange ne dépasse pas 2,9:1, illisible pour un public âgé. */
:root {
  --hhl-nuit: #1B2039;
  --hhl-orange: #F27A1A;
  --hhl-orange-fonce: #B85408;
  --hhl-gris: #4a5568;
  --hhl-fond: #f5f6fa;
  --hhl-bord: #cfd4e2;
  --hhl-rayon: 14px;
}
.hhl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ─── Demande en étapes ─────────────────────────────────────────────────────────────── */
.hhl-demande { max-width: 760px; margin: 0 auto; font-size: 18px; line-height: 1.55; color: var(--hhl-nuit); scroll-margin-top: 110px; text-align: left; }
.hhl-onglets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.hhl-onglet { min-height: 56px; padding: 10px 14px; border: 2px solid var(--hhl-bord); border-radius: var(--hhl-rayon); background: #fff; color: var(--hhl-nuit); font: inherit; font-weight: 700; cursor: pointer; }
.hhl-onglet[aria-selected="true"] { border-color: var(--hhl-nuit); background: var(--hhl-nuit); color: #fff; }
.hhl-demande__corps { background: #fff; border: 1px solid var(--hhl-bord); border-radius: 18px; padding: 26px 24px; box-shadow: 0 10px 30px rgba(27, 32, 57, .08); }
.hhl-demande__compteur { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--hhl-orange-fonce); text-transform: uppercase; letter-spacing: .06em; }
.hhl-demande__titre { margin: 0 0 16px; font-size: 26px; line-height: 1.25; color: var(--hhl-nuit); outline: none; }
.hhl-demande__sim { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #eef8f1; border: 1px solid #9fd4b0; font-size: 16px; }
.hhl-aide { margin: 0 0 12px; font-size: 16px; color: var(--hhl-gris); }
.hhl-aide--centre { text-align: center; margin-top: 18px; }
.hhl-aide a, .hhl-demande a { color: var(--hhl-nuit); font-weight: 700; text-decoration: underline; }

.hhl-choix-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 14px; }
.hhl-choix-liste--2 { grid-template-columns: 1fr 1fr; }
.hhl-choix-liste--4 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.hhl-choix { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; border: 2px solid var(--hhl-bord); border-radius: var(--hhl-rayon); background: #fff; color: var(--hhl-nuit); font: inherit; font-weight: 600; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.hhl-choix:hover { border-color: var(--hhl-nuit); }
.hhl-choix.est-actif { border-color: var(--hhl-orange); background: #fff4ea; box-shadow: inset 0 0 0 1px var(--hhl-orange); }
.hhl-choix__pict { font-size: 30px; line-height: 1; }
.hhl-choix__coche { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--hhl-bord); display: grid; place-items: center; font-size: 15px; color: transparent; }
.hhl-choix.est-actif .hhl-choix__coche { border-color: var(--hhl-orange); background: var(--hhl-orange); color: var(--hhl-nuit); }
.hhl-choix:focus-visible, .hhl-onglet:focus-visible, .hhl-btn:focus-visible, .hhl-champ:focus-visible { outline: 3px solid var(--hhl-orange); outline-offset: 2px; }

.hhl-fieldset { border: 0; margin: 0 0 12px; padding: 0; }
.hhl-fieldset legend { margin-bottom: 8px; font-weight: 700; }
.hhl-groupe { margin-bottom: 16px; }
.hhl-groupe label { display: block; margin-bottom: 6px; font-weight: 700; }
.hhl-champ { width: 100%; min-height: 54px; padding: 12px 14px; border: 2px solid var(--hhl-bord); border-radius: 12px; font: inherit; font-size: 18px; color: var(--hhl-nuit); background: #fff; box-sizing: border-box; }
textarea.hhl-champ { min-height: 110px; resize: vertical; }
.hhl-groupe--case { display: flex; gap: 12px; align-items: flex-start; }
.hhl-groupe--case input { width: 26px; height: 26px; flex: 0 0 26px; margin-top: 2px; accent-color: var(--hhl-orange); }
.hhl-groupe--case label { font-weight: 400; font-size: 16px; margin: 0; }
.hhl-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hhl-erreur { min-height: 1em; margin: 6px 0 0; color: #b42318; font-weight: 700; }
.hhl-erreur:empty { display: none; }

.hhl-demande__actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.hhl-btn { min-height: 56px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; cursor: pointer; }
.hhl-btn--principal { background: var(--hhl-orange); color: var(--hhl-nuit); }
.hhl-btn--principal:hover { background: #ff8c2e; }
.hhl-btn--principal[disabled] { opacity: .6; cursor: wait; }
.hhl-btn--retour { background: transparent; color: var(--hhl-nuit); border-color: var(--hhl-bord); }
.hhl-btn--secondaire { background: #fff; color: var(--hhl-nuit); border-color: var(--hhl-nuit); }
.hhl-demande__merci { text-align: center; padding: 30px 20px; background: #fff; border: 1px solid var(--hhl-bord); border-radius: 18px; }
.hhl-demande__merci-pict { font-size: 48px; margin: 0; }

@media (max-width: 600px) {
  .hhl-demande { font-size: 17px; }
  .hhl-demande__corps { padding: 20px 16px; }
  .hhl-demande__titre { font-size: 22px; }
  .hhl-choix-liste, .hhl-choix-liste--4 { grid-template-columns: 1fr; }
  .hhl-onglet { font-size: 15px; }
  .hhl-demande__actions { flex-direction: column-reverse; align-items: stretch; }
}

/* ─── Bandeau cookies (charte du site : bleu nuit + orange) ─────────────────────────────
   Refuser et Accepter ont exactement le même style : exigence CNIL (choix aussi simple dans les deux sens). */
.hhl-cookies { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 99990;
  width: min(940px, calc(100% - 32px)); display: flex; align-items: center; gap: 22px;
  padding: 16px 18px 16px 22px; background: var(--hhl-nuit); color: #fff; border-radius: 16px;
  border-top: 3px solid var(--hhl-orange); box-shadow: 0 14px 40px rgba(11, 15, 35, .45);
  font-size: 15px; line-height: 1.5; animation: hhl-cookies-entree .35s ease-out; }
@keyframes hhl-cookies-entree { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.hhl-cookies::before { content: "🍪"; font-size: 26px; line-height: 1; flex: 0 0 auto; }
.hhl-cookies p { margin: 0; flex: 1 1 auto; color: #e8eaf0; }
.hhl-cookies a { color: var(--hhl-orange); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.hhl-cookies__boutons { display: flex; gap: 10px; flex: 0 0 auto; }
.hhl-cookies .hhl-btn { min-height: 44px; min-width: 112px; padding: 8px 20px; border: 2px solid var(--hhl-orange);
  background: var(--hhl-orange); color: var(--hhl-nuit); font-size: 15px; border-radius: 999px; }
.hhl-cookies .hhl-btn:hover { background: #ff8c2e; border-color: #ff8c2e; }
.hhl-cookies .hhl-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.hhl-gerer-cookies { display: inline-block; margin-left: 14px; color: inherit; font-size: inherit; text-decoration: underline; cursor: pointer; }

@media (max-width: 720px) {
  .hhl-cookies { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; text-align: left; }
  .hhl-cookies::before { display: none; }
  .hhl-cookies__boutons .hhl-btn { flex: 1 1 0; }
}

/* ─── Confort de lecture ────────────────────────────────────────────────────────────── */
.hhl-confort-zone { position: fixed; left: 16px; bottom: 16px; z-index: 99980; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hhl-confort-btn { width: 56px; height: 56px; border-radius: 50%; border: 3px solid #fff; background: var(--hhl-nuit); color: #fff; font: 700 20px/1 Georgia, serif; cursor: pointer; box-shadow: 0 6px 18px rgba(27, 32, 57, .35); }
.hhl-confort-btn:focus-visible { outline: 3px solid var(--hhl-orange); outline-offset: 2px; }
.hhl-confort { width: 280px; padding: 16px; background: #fff; color: var(--hhl-nuit); border: 1px solid var(--hhl-bord); border-radius: 16px; box-shadow: 0 12px 40px rgba(27, 32, 57, .25); font-size: 16px; }
.hhl-confort[hidden] { display: none; }
.hhl-confort__titre { margin: 0 0 10px; font-weight: 700; font-size: 18px; }
.hhl-confort__groupe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.hhl-confort__taille, .hhl-confort__option, .hhl-confort__reset { min-height: 48px; border: 2px solid var(--hhl-bord); border-radius: 10px; background: #fff; color: var(--hhl-nuit); font-family: inherit; font-weight: 700; cursor: pointer; }
.hhl-confort__taille[aria-pressed="true"], .hhl-confort__option[aria-pressed="true"] { border-color: var(--hhl-orange); background: #fff4ea; }
.hhl-confort__option { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 6px; padding: 0 12px; }
.hhl-confort__etat { font-size: 13px; font-weight: 600; color: var(--hhl-gris); }
.hhl-confort__reset { width: 100%; margin-top: 4px; font-weight: 600; border-style: dashed; }

@media (max-width: 767px) {
  /* Au-dessus de la barre mobile « Appeler / Devis gratuit » */
  .hhl-confort-zone { bottom: 96px; left: 12px; }
  .hhl-confort-btn { width: 50px; height: 50px; font-size: 18px; }
  .hhl-cookies { bottom: 92px; }
}

/* Réglages de confort appliqués à tout le site */
html.hhl-texte-1 body { zoom: 1.15; }
html.hhl-texte-2 body { zoom: 1.3; }
html.hhl-contraste { filter: contrast(1.35); }
html.hhl-contraste body { color: #000; }
html.hhl-espace p, html.hhl-espace li, html.hhl-espace dd { line-height: 1.9 !important; letter-spacing: .03em; word-spacing: .12em; }

/* Liens d'appel à l'action utilisés dans les pages de contenu (.hhl-cta) */
.hhl-cta { display: inline-block; min-height: 52px; margin: 8px 10px 8px 0; padding: 14px 26px; border-radius: 999px; background: var(--hhl-orange); color: var(--hhl-nuit) !important; font-weight: 700; text-decoration: none !important; }
.hhl-cta--secondaire { background: transparent; border: 2px solid var(--hhl-nuit); }

/* Accueil : le titre du bandeau est devenu le H1 (référencement) ; on garde la taille des titres
   de bandeau des autres pages pour ne pas repousser les boutons d'appel à l'action. */
body.home h1 { font-size: clamp(26px, 2.9vw, 40px) !important; line-height: 1.2 !important; }
.hhl-note-locataire { margin: 10px 0; padding: 10px 14px; border-radius: 10px; background: #fff4ea; color: #1B2039; font-size: .95em; }
