/* 20/10/2026 : retours de Khamis (« c'est quoi tous ces changements de couleur de fond », « les hero en pleine hauteur »).
   Chargé EN DERNIER sur les pages publiques (après images-fixes.css).

   RÈGLE DES FONDS (tout le site) :
   - Toutes les sections sur fond BLANC. Plus aucune section grise.
   - Les cartes posées sur ces sections : gris très clair (#F4F6FA), toutes de la même façon.
   - Bleu nuit seulement pour les grands blocs voulus : le haut de page (hero), le schéma « Comment ça marche »,
     le déroulé en 6 étapes de L'entreprise, la demande de rappel et le pied de page.
   RYTHME : 120 px entre deux sections sur ordinateur, 72 px sur téléphone. Deux sections blanches qui se suivent :
   la 2e n'a pas d'espace en haut (sinon les deux espaces s'additionnent). */

/* ---------- 1. Hero des pages intérieures : toute la hauteur de l'écran sur ordinateur (comme l'accueil) ---------- */
@media (min-width:721px){
  .home .h2-hero.sub2{min-height:max(640px,100vh) !important;min-height:max(640px,100svh) !important}
}

/* ---------- 2. Fonds : blanc partout ---------- */
.home > section.mist,.home > section.etC-sec{background:#fff !important}

/* cartes qui étaient blanches sur fond gris : gris très clair */
.home .fq details{background:var(--mist) !important}
.home .fq details summary::after{background-color:#fff !important}
.etC .c{background:var(--mist) !important;box-shadow:none !important}
.etC .c .et-ic{background:#fff !important}
.psA-g .c{background:var(--mist)}
.psA-g .c li{background:#fff}
.c-main .rp{background:var(--mist) !important;box-shadow:none !important}
.svb .big,.svb .ic2{background:var(--mist) !important}
.svb .ic2 .ico{background:#fff !important;color:var(--royal) !important}
.avis-sec .avA{background:var(--mist)}

/* ---------- 3. Un seul rythme ---------- */
html body.home{--rythme:120px}
@media (max-width:720px){html body.home{--rythme:72px}}
/* sélecteurs volontairement forts : ils passent devant les anciens réglages section par section */
html body.home > section:not(.h2-hero):not(.night):not(.svl-sec):not(.rappel-sec):not(.mqx):not(.r-top){padding-top:var(--rythme) !important;padding-bottom:var(--rythme) !important}
html body.home > section.night:not(.h2-hero),html body.home > section.svl-sec,html body.home > section.rappel-sec{padding-top:var(--rythme) !important;padding-bottom:var(--rythme) !important}
/* deux sections blanches à la suite (la section témoignages vide est ignorée) : pas d'espace en haut de la 2e */
html body.home > section:not(.h2-hero):not(.night):not(.svl-sec):not(.rappel-sec):not(.mqx):not(.r-top) + section:not(.h2-hero):not(.night):not(.svl-sec):not(.rappel-sec):not(.mqx):not(.r-top),
html body.home > section:not(.h2-hero):not(.night):not(.svl-sec):not(.rappel-sec):not(.mqx):not(.r-top) + section.tm + section:not(.h2-hero):not(.night):not(.svl-sec):not(.rappel-sec):not(.mqx):not(.r-top){padding-top:0 !important}
/* les marges du premier et du dernier élément ne s'ajoutent pas à l'espace de la section */
html body.home > section:not(.h2-hero):not(.night):not(.svl-sec):not(.rappel-sec):not(.mqx):not(.r-top) > .wrap > :first-child{margin-top:0 !important}
html body.home > section:not(.h2-hero):not(.night):not(.svl-sec):not(.rappel-sec):not(.mqx):not(.r-top) > .wrap > :last-child{margin-bottom:0 !important}
html body.home > section.rappel-sec + .ftr{padding-top:0}

/* ---------- 4. L'entreprise, déroulé en 6 étapes (Khamis : « l'image descend avec les cases ») ----------
   Sur ordinateur, la photo descend avec les cartes pendant le défilement (collée sous le header),
   et s'arrête quand son bas arrive au bas de la carte 06. La photo ne zoome pas et ne bouge pas dans son cadre.
   Téléphone et tablette : rien de collé, cartes empilées. */
@media (min-width:901px){
  .e-dr-g{align-items:start}
  .e-dr-v{position:sticky !important;top:104px !important;aspect-ratio:auto !important;height:min(640px,calc(100vh - 136px));height:min(640px,calc(100svh - 136px))}
}

/* ---------- 5. L'entreprise, engagements : plus de damier bleu nuit / gris, les 4 cartes pareilles ---------- */
.e-en-g .tile,.e-en-g .tile.nv{background:var(--mist) !important;color:var(--navy-ink)}
.e-en-g .tile .ico,.e-en-g .tile.nv .ico{background:#fff !important;color:var(--royal) !important}
.e-en-g .tile h3,.e-en-g .tile.nv h3{color:var(--navy-ink) !important}
.e-en-g .tile p,.e-en-g .tile.nv p{color:var(--mute) !important}
/* pompe à chaleur, « Aucun compromis » : même règle pour la carte bleu nuit isolée */
.svb .tile.nv{background:var(--mist) !important;color:var(--navy-ink) !important}
.svb .tile.nv .ico{background:#fff !important;color:var(--royal) !important}
.svb .tile.nv h4{color:var(--navy-ink) !important}
.svb .tile.nv p{color:var(--mute) !important}
.svb .tile.nv p strong{color:var(--navy-ink) !important}

/* ---------- 6. L'entreprise, section FHE : une vraie photo (siège FHE à Perpignan) à la place du collage de produits ---------- */
.e-fhe-v.e-fhe-photo{background:var(--mist);aspect-ratio:1 / 1}
.e-fhe-v.e-fhe-photo img{position:static;width:100%;height:100%;object-fit:cover;border-radius:0}
@media (max-width:900px){.e-fhe-v.e-fhe-photo{aspect-ratio:16 / 11}}

/* ---------- 7. L'entreprise, engagements : cartes à la hauteur de leur texte, la photo suit (20/10) ---------- */
@media (min-width:1101px){
  .e-en-g{grid-auto-rows:auto}
  .e-en-ph{min-height:0;position:relative}
  .e-en-ph img{position:absolute;inset:0}
}
/* tablette (721-1100 px) : la photo passe en pleine largeur au-dessus des cartes ; elle gardait sa hauteur naturelle (≈1250 px), on la ramène à un format paysage */
@media (min-width:721px) and (max-width:1100px){
  .e-en-ph{min-height:0;aspect-ratio:16 / 10;position:relative}
  .e-en-ph img{position:absolute;inset:0;object-position:50% 35%}
}

/* ---------- 8. Partout : plus de « + » / croix / « − » sur les volets dépliables (Khamis, 18/10 puis 20/10) :
   le même chevron que la FAQ, qui pivote doucement, fond clair fixe (pas de rond bleu à l'ouverture) ---------- */
details summary::after,details[open] summary::after,
.home .eq-d summary::after,.home .eq-d[open] summary::after{
  content:"" !important;font-size:0 !important;flex:none;display:block;border-radius:50%;
  width:36px;height:36px;background-color:#EEF2F7 !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F5BD8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") !important;
  background-repeat:no-repeat !important;background-position:center !important;background-size:18px 18px !important;
  transform:none !important;transition:transform .35s cubic-bezier(.2,.7,.2,1) !important}
details[open] summary::after,.home .eq-d[open] summary::after{transform:rotate(180deg) !important}
details.closing summary::after{transform:none !important}
.ps-more summary::after,.eq-d summary::after,.home .eq-d summary::after,
details.ps-more[open] summary::after,details.eq-d[open] summary::after,.home details.eq-d[open] summary::after{width:28px;height:28px;background-size:15px 15px !important}
.cl-acc summary::after{background-color:#fff !important}
@media (prefers-reduced-motion:reduce){details summary::after{transition:none !important}}
