/* Mode sombre de la page d'accueil — mêmes teintes que les autres pages du site
   (le réglage est partagé : classe « sombre » sur <html>, mémorisée dans alya-theme). */
html.sombre {
  color-scheme: dark;
  --papier: #10150e;
  --papier-2: #151c13;
  --surface: #1a2217;
  --encre: #eef3ea;
  --encre-2: #c3cdbd;
  --encre-3: #98a492;
  --filet: rgba(238, 243, 234, 0.18);
  --filet-doux: rgba(238, 243, 234, 0.09);
  --vert: #8db572;
  --feu: #ff9a5c;
  --feu-fonce: #ffb584;
}
html.sombre .btn-feu { color: #1f1208; }
html.sombre .btn-feu::before { background: var(--feu-fonce); }
html.sombre .entete.pose { background: rgba(16, 21, 14, 0.92); }
html.sombre .formulaire { background: var(--papier-2); }
html.sombre .telephone { background: var(--surface); box-shadow: 0 40px 80px -32px #000; }
html.sombre .tel-chiffres div { background: var(--papier); }
html.sombre .tel-jauge { background: var(--papier-2); }
html.sombre .tel-modules i { background: var(--papier-2); }
html.sombre .segments { background: var(--papier-2); }
html.sombre .champ input, html.sombre .champ select, html.sombre .champ textarea { color: var(--encre); }
html.sombre .champ select option { background: var(--papier-2); }

/* les blocs déjà sombres en clair ne bougent pas ; ceux qui étaient teintés s'assombrissent */
html.sombre[data-v="d"] #expertises,
html.sombre[data-v="d"] .reserve { background: #182013; }
html.sombre[data-v="d"] .reserve-nette { background: #241510; }
html.sombre .bloc-teinte { background: var(--papier-2); }
html.sombre[data-v="d"] .volet-fort { background: #1e2718 !important; color: var(--encre); }
html.sombre[data-v="d"] .volet-fort h3 { color: #fff; }
html.sombre[data-v="d"] .volet-fort .volet-corps > p:not(.volet-note),
html.sombre[data-v="d"] .volet-fort .lignes li { color: var(--encre-2); border-color: var(--filet); }

/* le bouton de thème, repris du site */
.bouton-theme { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: inherit; transition: background-color 0.2s; }
.bouton-theme:hover { background: rgba(127, 127, 127, 0.14); }
.bouton-theme .ico { width: 20px; height: 20px; }
.bouton-theme .soleil { display: none; }
html.sombre .bouton-theme .lune { display: none; }
html.sombre .bouton-theme .soleil { display: block; }
@media (max-width: 1100px) { .bouton-theme { display: none; } }
