/* ==========================================================================
   commun.css — styles partagés par toutes les pages de challengeenergie.fr
   --------------------------------------------------------------------------
   Reconstruction statique (septembre 2026) fidèle au site WordPress/Elementor.
   Valeurs relevées sur l'original (voir inventaire/charte.md et inventaire/mesures/).

   Points de rupture repris d'Elementor :
     - ordinateur : 1025 px et plus
     - tablette   : 768 à 1024 px
     - mobile     : 767 px et moins
   Sur ordinateur, la plupart des tailles sont proportionnelles à la largeur de l'écran
   (unité vw), comme sur l'original ; sur mobile, elles sont fixes (px).
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Police Syne, hébergée sur le site (licence SIL Open Font License,
      voir assets/polices/OFL.txt). Fichier « variable » : graisses 400 à 800.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/polices/syne-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/polices/syne-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* --------------------------------------------------------------------------
   2. Couleurs et polices de la charte
   -------------------------------------------------------------------------- */
:root {
  --orange: #F4A418;          /* accents, boutons, mots mis en valeur */
  --orange-clair: #FBBF5A;    /* survols */
  --orange-fonce: #8A6100;    /* doré foncé des textes sur fond clair (02/11/2026 : #B98500 avant, contraste trop faible) */
  --nuit: #0D1B2A;            /* en-tête, pied de page */
  --marine: #1A2E45;          /* bandeaux et sections sombres, titres sur fond clair */
  --ardoise: #2C4A6B;         /* cartes, questions de FAQ */
  --creme: #FBF7F0;           /* sections claires */
  --creme-2: #F5EFE4;         /* section des avis */
  --creme-citation: #F5ECDC;  /* encadrés de citation */
  --texte: #3A4A5C;           /* texte courant sur fond clair */
  --bleu-pale: #C8DFF0;       /* chapôs et texte secondaire sur fond sombre */
  --bleu-glace: #E8FEFF;      /* texte des cartes sombres */
  --gris-bleu: #A8BFD4;       /* texte des étapes et du carrousel */
  --vert: #16A34A;            /* badge « Réponse garantie » */
  /* Titres : Helvetica depuis le 4 octobre 2026 (styles « Syne » retirés des titres dans
     WordPress). Syne reste utilisée là où le CSS additionnel du thème l'impose (pages.css). */
  --police-titre: "helvetica", sans-serif;
  /* Pile de polices système du thème Hello Elementor (police du texte courant de l'original) */
  --police-texte: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans",
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --hauteur-entete: 74px;
}


/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: var(--hauteur-entete); }

body {
  margin: 0;
  padding-top: var(--hauteur-entete); /* place de l'en-tête fixe */
  font-family: var(--police-texte);
  font-size: 16px;
  line-height: 1.5;
  color: #333333;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  /* Pas de ligatures « fi », « fl » (remarque du gérant du 02/11/2026 : dans les titres en Plus Jakarta Sans, le f et le i
     de « confier » semblaient fusionnés) */
  font-variant-ligatures: no-common-ligatures;
}
/* Numéros de téléphone jamais coupés en fin de ligne (remarque du gérant du 02/11/2026 : « 02 85 / 52 15 05 » dans
   l'appel final des pages métiers sur téléphone) */
a[href^="tel:"] { white-space: nowrap; }

h1, h2, h3, h4, h5, h6, p, ul, figure { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: 500; line-height: 1; }
img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; }
button { font: inherit; }

/* Couleurs utilitaires des mots mis en valeur */
.o { color: var(--orange); }
.b { color: #FFFFFF; }
.m { color: var(--marine); }
.t { color: var(--texte); }
.syne { font-family: var(--police-titre); }

/* Icônes (fichier assets/icones.svg) : taille du texte, couleur du texte */
.ico { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }

/* Lien d'évitement (accessibilité) : visible seulement au clavier */
.evitement {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  background: #FFFFFF; color: #333333; padding: 10px 16px;
}
.evitement:focus { left: 10px; top: 10px; }

/* Contour visible pour la navigation au clavier */
/* Focus du clavier (02/11/2026, vérification d'accessibilité) : cadre bleu marine sur les fonds clairs, doré clair sur
   les fonds sombres (en-tête, pied de page, menu, bandeaux bleus, cadres d'appel, sections sombres) */
:focus-visible { outline: 3px solid var(--marine); outline-offset: 2px; }
.entete :focus-visible, .pied :focus-visible, .panneau :focus-visible, .consentement :focus-visible, .ed-hero :focus-visible,
.ed-appel__cadre :focus-visible, .ed-section--methode :focus-visible, [class*="sombre"] :focus-visible, .depot__carte :focus-visible,
.fc__entete :focus-visible, .em-resume :focus-visible, .eq-resume :focus-visible, .eg-bref :focus-visible, .el--legal .el-haut :focus-visible,
.el-erreur--haut :focus-visible { outline-color: var(--orange-clair); }

/* Éléments masqués selon l'écran (équivalent des réglages « masquer sur » d'Elementor) */
.masque-partout { display: none !important; }
@media (min-width: 1025px) { .masque-ordinateur { display: none !important; } }
@media (min-width: 768px) and (max-width: 1024px) { .masque-tablette { display: none !important; } }
@media (max-width: 767px) { .masque-mobile { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* --------------------------------------------------------------------------
   4. En-tête (fixe en haut de l'écran)
   -------------------------------------------------------------------------- */
.entete {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--hauteur-entete);
  display: flex; align-items: center;
  background: var(--nuit);
  padding: 0.7% 1.5%;
}
.entete__logo { flex: 0 0 80px; display: flex; align-items: center; }
.entete__logo img { width: 55px; height: 55px; }
.entete__marque {
  flex: 1 1 auto; margin: 0;
  font-family: var(--police-titre); font-size: 34px; font-weight: 900; line-height: 36px; /* 40 px avant le 21/10/2026 */
}
.entete__marque a { text-decoration: none; color: #FFFFFF; }
.entete__marque .o { color: var(--orange); }

/* Menu horizontal (ordinateur) */
.nav { flex: 0 0 auto; margin-right: -10px; }
.nav__liste { list-style: none; margin: 0; padding: 0; display: flex; justify-content: flex-end; }
.nav__item { position: relative; margin: 5px 12px; }
.nav__lien {
  display: flex; align-items: center;
  padding: 10px 5px; border-radius: 5px;
  font-size: 19px; font-weight: 500; line-height: 23px; color: #FFFFFF; /* 25 px avant le 21/10/2026 */
  text-decoration: none; background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav__lien:hover, .nav__lien:focus-visible, .nav__item:hover > .nav__lien { color: var(--orange-clair); }
.nav__lien[aria-current="page"], .nav__item--actif > .nav__lien {
  background: var(--ardoise); color: #FFFFFF;
  border-left: 10px solid var(--ardoise); border-right: 10px solid var(--ardoise);
}
.nav__chevron { width: 15px; height: 15px; margin-left: 8px; fill: currentColor; }
/* Bandeau allégé (21/10/2026) : sept entrées (« Conseils » regroupe Choisir son courtier et Guides),
   textes plus petits et plus d'espace entre les entrées ; au-dessous de 1280 px, le menu passe dans
   le panneau latéral (voir plus bas) */
@media (min-width: 1280px) and (max-width: 1919px) {
  .entete__marque { font-size: 28px; line-height: 30px; }
  .nav__item { margin: 5px 8px; }
  .nav__lien { font-size: 18px; }
  .nav__chevron { width: 13px; height: 13px; margin-left: 5px; }
  .nav__rappel { font-size: 16px; padding: 7px 14px; }
}
@media (min-width: 1280px) and (max-width: 1499px) {
  .entete__marque { font-size: 24px; line-height: 26px; }
  .entete__logo { flex-basis: 64px; }
  .nav__item { margin: 5px 4px; }
  .nav__lien { font-size: 17px; }
  .nav__lien[aria-current="page"], .nav__item--actif > .nav__lien { border-left-width: 6px; border-right-width: 6px; }
  .nav__rappel { font-size: 15px; padding: 6px 12px; gap: 6px; }
}

/* Bouton « Être rappelé » (ajout du 13/10/2026) : pastille dans le menu sur ordinateur,
   carré à côté du bouton du menu sur tablette, bulle flottante en bas à droite sur téléphone */
.nav__rappel {
  display: flex; align-items: center; gap: 8px; margin-left: 6px;
  padding: 8px 18px; border: 2px solid var(--orange); border-radius: 50px;
  font-size: 18px; font-weight: 600; line-height: 20px; color: #FFFFFF; text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.nav__rappel:hover, .nav__rappel:focus-visible { background: var(--orange); color: var(--nuit); }
.nav__rappel-icone, .entete__rappel-icone { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.entete__rappel { display: none; }

/* Bandeau de consentement (21/10/2026) : en bas de l'écran, « Refuser » et « Accepter » de même poids */
.consentement {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 3000; max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding: 16px 20px;
  background: var(--nuit); color: #FFFFFF; border: 1px solid var(--ardoise); border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.consentement[hidden] { display: none; }
.consentement__texte { flex: 1 1 340px; margin: 0; font-size: 15px; line-height: 22px; color: var(--bleu-pale); }
.consentement__texte a { color: #FFFFFF; text-decoration: underline; }
.consentement__boutons { display: flex; gap: 10px; flex: 0 0 auto; }
/* Les deux boutons gardent le même poids (« Refuser » aussi visible qu'« Accepter ») : tous deux au dessin
   du bouton secondaire de l'essai 4 (27/10/2026), translucide à filet clair, filet orange au survol */
.consentement__bouton {
  min-width: 112px; padding: 11px 20px; border: 2px solid rgba(255, 255, 255, 0.35); border-radius: 10px;
  background: rgba(255, 255, 255, 0.06); color: #FFFFFF; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  transition: border-color 0.2s;
}
.consentement__bouton:hover, .consentement__bouton:focus-visible { border-color: var(--orange); }
@media (max-width: 767px) {
  .consentement { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; }
  .consentement__boutons { width: 100%; }
  .consentement__bouton { flex: 1 1 0; }
}

/* Sous-menu « À propos » (au survol ou au clavier) */
.sous-menu {
  list-style: none; margin: 0; padding: 0;
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--nuit); border-radius: 5px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  z-index: 10;
}
.nav__item:hover > .sous-menu,
.nav__item:focus-within > .sous-menu,
.nav__item.ouvert > .sous-menu { opacity: 1; visibility: visible; transform: none; }
.nav__item.ferme-clavier > .sous-menu { opacity: 0; visibility: hidden; } /* refermé par Échap */
.sous-menu a {
  display: block; padding: 15px; font-size: 20px; line-height: 1.2; color: #FFFFFF;
  text-decoration: none; white-space: nowrap;
}
.sous-menu a:hover, .sous-menu a:focus-visible { color: var(--orange-clair); }
.sous-menu a[aria-current="page"] { background: var(--ardoise); color: #FFFFFF; }

/* Bouton « hamburger » et panneau latéral (tablette et mobile) */
.hamburger, .panneau { display: none; }

/* Seuil relevé de 1024 à 1279 px le 20/10/2026 (C4) : huit entrées ne tiennent plus en ligne en dessous */
@media (max-width: 1279px) {
  :root { --hauteur-entete: 64px; }
  .entete { padding: 1% 1.5%; border-bottom: 1px solid var(--orange); }
  .entete__logo { flex: 0 0 52px; }
  .entete__logo img { width: 40px; height: 40px; }
  .entete__marque { font-size: 30px; line-height: 30px; font-weight: 900; padding-left: 10px; }
  .nav { display: none; }

  .hamburger {
    display: block; flex: 0 0 auto; margin-left: auto;
    width: 43px; height: 39px; padding: 0; cursor: pointer;
    border: 4px solid var(--ardoise); border-width: 4px 5px;
    background: url("../assets/images/icons8-menu-500.svg") center / cover no-repeat;
    border-radius: 3px;
  }

  .panneau {
    display: block; position: fixed; top: 0; bottom: 0; left: 0; z-index: 2000;
    width: 50%; overflow-y: auto; /* tablette : moitié de l'écran, comme l'original (75 % sur téléphone) */
    background: var(--nuit); padding: 0 0 10px; /* P1 (19/10/2026) : opaque, le logo de l'en-tête ne transparaît plus */
    /* 26/10/2026 : glissement par « transform » (sans recalcul de la mise en page à chaque image) et départ
       rapide ; l'ancienne transition sur « left », lente au départ et longue de 0,6 s, paraissait saccadée */
    transform: translateX(-100%); visibility: hidden;
    transition: transform 0.3s ease-out, visibility 0s linear 0.3s;
  }
  .panneau.ouvert { transform: none; visibility: visible; transition: transform 0.3s ease-out; }
  .panneau__entete { display: flex; justify-content: space-between; align-items: center; }
  .panneau__logo { padding: 10px 15px 10px 25px; }
  .panneau__logo img { width: auto; height: auto; max-height: 40px; } /* fichier disparu du serveur d'origine */
  .panneau__fermer {
    width: 45px; height: 32px; margin: 12px; padding: 8px; border: 0; border-radius: 3px; cursor: pointer;
    background: var(--ardoise) url("../assets/images/icons8-effacer.svg") center / contain no-repeat;
  }
  .panneau__liste { list-style: none; margin: 0; padding: 0 15px; }
  .panneau__liste a, .panneau__liste button {
    display: flex; align-items: center; width: 100%;
    padding: 5px 0 5px 10px; border: 0; border-radius: 5px; background: none;
    font-size: min(2.5vw, 26px); font-weight: 500; line-height: 23px; color: #FFFFFF; text-decoration: none; text-align: left;
    cursor: pointer;
  }
  .panneau__liste a[aria-current="page"], .panneau__liste .actif > button { background: var(--ardoise); }
  .panneau__liste .panneau__rappel { color: var(--orange); }

  /* Bouton « Être rappelé » : carré à gauche du bouton du menu */
  .entete__rappel {
    display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 43px; height: 39px; margin-left: auto; margin-right: 10px;
    border-radius: 3px; background: var(--ardoise); color: var(--orange);
  }
  .entete__rappel-icone { width: 20px; height: 20px; }
  .entete__rappel + .hamburger { margin-left: 0; }
  .panneau__liste .nav__chevron { width: 15px; height: 15px; margin-left: 12px; }
  /* Sous-menu « À propos » : bloc foncé opaque avec ombre, comme l'original (relevé du 13/10/2026) */
  .panneau__sous {
    list-style: none; margin: 0; padding: 0; display: none;
    background: var(--nuit); box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  }
  .panneau__sous.ouvert { display: block; }
  .panneau__sous a {
    padding: 10px 15px 10px 27px; border-radius: 0;
    font-size: 16px; font-weight: 400; line-height: 20px; /* plus petit que les rubriques, décalé (02/11/2026) */
  }
  .panneau__sous a:hover, .panneau__sous a:focus-visible { color: var(--orange-clair); }

  .voile {
    position: fixed; inset: 0; z-index: 1500; background: transparent; display: none;
  }
  .voile.ouvert { display: block; }
}

@media (max-width: 767px) {
  /* « Challenge Energie » sur une seule ligne depuis le passage à Helvetica (site en ligne, relevé du 13/10/2026) */
  :root { --hauteur-entete: 64px; }
  .entete { padding: 3% 4%; }
  .entete__logo { flex: 0 0 43px; }
  .entete__marque {
    text-align: center; font-size: 25px; line-height: 27px; letter-spacing: 0.5px; padding-left: 0;
  }

  /* « Être rappelé » : bulle flottante en bas à droite (l'en-tête n'a pas la place d'un bouton de plus
     sans couper « Challenge Energie » sur deux lignes) */
  .entete__rappel {
    position: fixed; right: 16px; bottom: 16px; z-index: 900; margin: 0;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--orange); color: #FFFFFF; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  }
  .entete__rappel-icone { width: 24px; height: 24px; }
  .entete__rappel + .hamburger { margin-left: auto; }

  /* Menu sur téléphone : trois quarts de l'écran, liens de 17 px (le sous-menu garde ses 20 px) */
  .panneau { width: 75%; }
  .panneau__liste > li > a, .panneau__liste > li > button {
    padding: 7.5px 0 7.5px 10px; font-size: 17px; line-height: 22px;
  }
}


/* --------------------------------------------------------------------------
   5. Barre de progression de lecture (sous l'en-tête)
   -------------------------------------------------------------------------- */
.progression {
  position: fixed; left: 0; right: 0; top: var(--hauteur-entete); z-index: 999;
  height: 5px; background: rgba(44, 74, 107, 0.533);
}
.progression__barre { height: 100%; width: 0; background: var(--orange); }


/* --------------------------------------------------------------------------
   6. Sections et bandeau du haut
   -------------------------------------------------------------------------- */
.section { position: relative; padding: 4% 8%; }
.section--claire { background: var(--creme); }
.section--avis { background: var(--creme-2); }
.section--sombre { background: var(--marine); }
.section--filets { border-top: 2px solid var(--orange); border-bottom: 2px solid var(--orange); }
.section--filet-haut { border-top: 2px solid var(--orange); }
.section__interieur { max-width: 1147px; margin: 0 auto; }

/* Bandeau du haut de page, terminé par une séparation oblique */
.bandeau { position: relative; background: var(--marine); padding: 4% 8% 8%; }
.bandeau__oblique {
  position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 5vw; display: block;
}
.bandeau__oblique polygon { fill: var(--creme); }

.surtitre {
  font-size: 1.75vw; font-weight: 500; line-height: 1; color: var(--orange); margin-bottom: 16px;
}
.titre-bandeau {
  /* Comme sur l'original : titre en police système contenant un texte en Syne (<span class="syne">),
     ce qui donne l'interligne exact de l'original */
  font-size: 3vw; font-weight: 700; line-height: 1;
  color: #FFFFFF; margin-bottom: 24px; /* 16 px + 8 px de l'original (marges non fusionnées dans Elementor) */
}
.bandeau .bouton-zone { margin-top: 32px; } /* 16 px sous le chapô + 16 px au-dessus du bouton */
.chapo {
  font-size: 20px; font-weight: 500; line-height: 24px; font-style: italic;
  color: var(--bleu-pale); margin: 8px 0 16px;
}

/* Petite étiquette orange au-dessus des titres de section */
.etiquette {
  font-size: 1.5vw; font-weight: 700; line-height: 1; color: var(--orange); margin-bottom: 1.5vw;
}
/* Titre de section : police système, graisse 500, texte en Syne à l'intérieur (<span class="syne">),
   le gras venant des balises <strong> de l'original */
.titre-section {
  font-size: 2.5vw; font-weight: 500; line-height: 1;
  color: var(--marine); margin-bottom: 16px;
}
.section--sombre .titre-section { color: #FFFFFF; }
.titre-section--espace { margin-bottom: 32px; }

/* Texte courant */
.texte { font-size: 1.5vw; line-height: 1.2; color: var(--texte); }
.texte p { margin-bottom: 0.75vw; }
.texte p:last-child { margin-bottom: 0; }

/* Encadré de citation (fond crème, filet orange à gauche) */
.citation {
  background: var(--creme-citation); border-left: 3px solid var(--orange);
  padding: 1.05vw; margin-top: 1.5vw; width: fit-content; /* largeur ajustée au texte, comme l'original */
  font-size: 1.5vw; line-height: 1.2; font-weight: 500; font-style: italic; color: var(--marine);
}

/* Bloc d'appel à l'action centré (fin de page) */
.appel { text-align: center; }
.appel__titre {
  /* police système contenant du Syne (<span class="syne">), graisse 600 renforcée par <strong> */
  font-size: 2.3vw; font-weight: 600; line-height: 1;
  letter-spacing: 0.5px; margin-bottom: 1.15vw;
}
.appel__titre p { margin: 0; }
.appel__texte { font-size: 1.5vw; line-height: 1.2; color: var(--bleu-pale); margin-bottom: 1.5vw; }
.appel__texte--glace { color: var(--bleu-glace); margin: 1.5vw 0; }

@media (min-width: 768px) and (max-width: 1024px) {
  .section { padding: 5%; }
  .bandeau { padding: 7.5% 5% 10%; }
  .surtitre { font-size: 2.5vw; }
  .titre-bandeau { font-size: 5.5vw; }
  .titre-section { font-size: 2.5vw; }
  .texte, .citation, .appel__texte { font-size: 2vw; }
  .etiquette { font-size: 2vw; }
}

@media (max-width: 767px) {
  .section { padding: 5%; }
  .bandeau { padding: 10% 5% 15%; }
  .surtitre { font-size: 17px; line-height: 20px; }
  .titre-bandeau { font-size: 30px; line-height: 32px; letter-spacing: 0.5px; }
  .etiquette { font-size: 17px; line-height: 20px; margin-bottom: 20px; }
  .titre-section { font-size: 25px; line-height: 27px; margin-bottom: 20px; }
  .titre-section--espace { margin-bottom: 20px; }
  .texte { font-size: 17px; line-height: 20px; }
  .texte p { margin-bottom: 5px; }
  .citation { font-size: 17px; line-height: 20px; padding: 8.5px; }
  .appel__titre { font-size: 25px; line-height: 25px; margin-bottom: 20px; }
  .appel__texte { font-size: 17px; line-height: 20px; margin-bottom: 15px; }
  .appel__texte--glace { margin: 15px 0; }
  .centre-mobile { text-align: center; }
}


/* --------------------------------------------------------------------------
   7. Boutons
   -------------------------------------------------------------------------- */
/* Dessin validé par le gérant le 27/10/2026 (essais de design de l'accueil) : coins arrondis, sans
   soulignement, halo orange, léger soulèvement au survol ; flèche ou icône éventuelle dans le lien */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px;
  background: var(--orange); border: 2px solid var(--orange); border-radius: 10px;
  box-shadow: 0 6px 18px rgba(244, 164, 24, 0.28);
  font-size: 17px; font-weight: 700; line-height: 22px; color: var(--nuit); text-align: center;
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.bouton:hover, .bouton:focus-visible {
  transform: translateY(-2px); background: var(--orange-clair); border-color: var(--orange-clair); color: var(--nuit);
  box-shadow: 0 10px 24px rgba(244, 164, 24, 0.38);
}
.bouton__icone { width: 20px; height: 20px; flex-shrink: 0; }
/* Bouton à contour de l'essai 4 (accord du gérant, 27/10/2026) : action secondaire discrète, filet et texte
   blancs sur fond sombre (bleu marine sur fond clair avec --marine), fond orange au survol */
.bouton--contour { background: transparent; border-color: #FFFFFF; color: #FFFFFF; box-shadow: none; }
.bouton--contour.bouton--marine { border-color: var(--marine); color: var(--marine); }
.bouton--contour:hover, .bouton--contour:focus-visible, .bouton--contour.bouton--marine:hover, .bouton--contour.bouton--marine:focus-visible {
  background: var(--orange); border-color: var(--orange); color: var(--nuit); box-shadow: none;
}
.bouton-zone { margin-top: 16px; }
.bouton-zone--centre { text-align: center; }


/* --------------------------------------------------------------------------
   8. Cartes sombres avec icône (À propos, Notre méthode, Nantes, Contact)
   -------------------------------------------------------------------------- */
.grille { display: grid; gap: 20px; }
.grille--3 { grid-template-columns: repeat(3, 1fr); }
.carte {
  background: var(--ardoise); border: 1px solid var(--nuit); border-radius: 10px; padding: 20px;
}
.carte--ombre { border: 0; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); }
.icone {
  display: inline-flex; align-items: center; justify-content: center;
  width: 41px; height: 41px; padding: 0.75vw; border-radius: 8px;
  background: rgba(245, 166, 35, 0.15); color: var(--orange); margin-bottom: 4px;
}
.icone svg { width: 20px; height: 20px; fill: currentColor; }
.carte__titre {
  font-family: var(--police-titre); font-size: 1.5vw; font-weight: 700; line-height: 1.1;
  letter-spacing: 1px; color: #FFFFFF; margin: 4px 0 0.75vw;
}
.carte__texte { font-size: 1.3vw; line-height: 1.2; color: var(--bleu-glace); }
.carte__texte--pale { color: var(--bleu-pale); }
/* Lien sous le texte d'une carte (« Comment sommes-nous rémunérés ? », correction B8 du 12/10/2026) */
.carte__lien { margin-top: 0.75vw; font-size: 1.3vw; line-height: 1.2; }
.carte__lien a { color: var(--orange); font-weight: 700; text-decoration: underline; }
.carte__lien a:hover, .carte__lien a:focus-visible { color: var(--orange-clair); }
/* Lien « Comment sommes-nous rémunérés ? » placé à côté de chaque mention « gratuit »
   (décision du gérant du 13/10/2026) : discret, il reprend la couleur du texte qui l'entoure */
.lien-remuneration { font-size: 0.8em; }
.lien-remuneration a { color: inherit; text-decoration: underline; font-weight: 400; font-style: normal; }
.lien-remuneration a:hover, .lien-remuneration a:focus-visible { color: var(--orange-clair); }
@media (min-width: 768px) and (max-width: 1024px) { .carte__lien { font-size: 1.6vw; } }
@media (max-width: 767px) { .carte__lien { margin-top: 10px; font-size: 17px; line-height: 20px; } }

@media (min-width: 768px) and (max-width: 1024px) {
  .carte__titre { font-size: 2vw; }
  .carte__texte { font-size: 1.6vw; }
}
@media (max-width: 767px) {
  .grille--3 { grid-template-columns: 1fr; gap: 15px; }
  .carte { padding: 15px; }
  .icone { padding: 10px; }
  .carte__titre { font-size: 20px; line-height: 22px; margin-bottom: 10px; }
  .carte__texte { font-size: 17px; line-height: 20px; }
}


/* --------------------------------------------------------------------------
   9. Questions fréquentes (accordéon)
   -------------------------------------------------------------------------- */
.faq { display: flex; flex-direction: column; gap: 20px; }
.faq__item { border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); }
.faq__item.ouvert { border: 2px solid var(--creme-2); }
.faq__question {
  position: relative; display: flex; align-items: center; width: 100%;
  margin: 0; padding: 17.5px; padding-right: 60px;
  background: var(--ardoise); border: 1px solid transparent; border-radius: 8px;
  font-family: var(--police-texte); font-size: 1.5vw; font-weight: 400; line-height: 1;
  color: var(--creme); text-align: left; cursor: pointer;
}
.faq__item.ouvert .faq__question { border-radius: 8px 8px 0 0; }
.faq__question:hover { color: var(--orange); }
.faq__chevron {
  position: absolute; right: 17.5px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 20px; fill: var(--orange); transition: transform 0.3s;
}
.faq__question:hover .faq__chevron { fill: var(--orange-fonce); }
.faq__item.ouvert .faq__chevron { transform: translateY(-50%) rotate(180deg); }
.faq__reponse {
  background: var(--creme); color: var(--texte); border-radius: 0 0 8px 8px;
  padding: 17.5px; font-size: 1.3vw; line-height: 1.2;
}
.faq__reponse[hidden] { display: none; }
.faq__reponse p { margin: 0; }

@media (min-width: 768px) and (max-width: 1024px) {
  .faq__question { font-size: 2vw; }
  .faq__reponse { font-size: 1.8vw; }
}
@media (max-width: 767px) {
  .faq { gap: 15px; }
  .faq__question { font-size: 17px; line-height: 19px; padding: 10px 30px 10px 10px; }
  .faq__chevron { right: 15px; width: 13px; height: 15px; }
  .faq__reponse { font-size: 15px; line-height: 19px; padding: 10px; }
}


/* --------------------------------------------------------------------------
   10. Pied de page
   -------------------------------------------------------------------------- */
.pied {
  background: var(--nuit); color: #FFFFFF;
  padding: 1% 8%; border-top: 1px solid var(--orange); border-bottom: 4px solid var(--orange);
}
.pied__grille { display: grid; grid-template-columns: 379fr 382fr 379fr; align-items: center; }
.pied__marque {
  font-family: var(--police-titre); font-size: 35px; font-weight: 500; line-height: 35px; margin-bottom: 10px; /* 700 avec <strong> */
}
.pied__marque a { color: #FFFFFF; text-decoration: none; }
.pied__marque strong { font-weight: 700; }
.pied__accroche { font-size: 17px; line-height: 20px; }
.pied__accroche p { margin: 0; }
.pied__juridique { text-align: center; font-size: 20px; line-height: 40px; }
.pied__juridique p { margin: 0; }
.pied__juridique a { color: #FFFFFF; text-decoration: underline; }
/* Liens vers les pages principales (ajout du 13/10/2026) */
.pied__navigation { font-size: 16px; line-height: 24px; margin-bottom: 8px; }
.pied__navigation a { text-decoration: none; }
.pied__navigation a:hover, .pied__navigation a:focus-visible { text-decoration: underline; }
.pied__contact { text-align: right; font-size: 20px; line-height: 22px; font-weight: 700; }
.pied__contact p { margin: 10px 0; }
.pied__courriel { color: var(--orange); text-decoration: underline; }
.pied__tel { color: #FFFFFF; text-decoration: underline; text-decoration-color: var(--orange); }
.pied__tel { text-decoration-color: currentColor; }

@media (max-width: 767px) {
  .pied { padding: 5%; }
  .pied__grille { grid-template-columns: 1fr; text-align: center; }
  .pied__marque { font-size: 25px; line-height: 22px; }
  .pied__accroche { font-size: 17px; line-height: 19px; }
  .pied__contact { text-align: center; font-size: 17px; line-height: 19px; letter-spacing: 0.1px; margin: 20px 0; }
  .pied__contact p { margin: 0 0 10px; }
  .pied__contact p:last-child { margin: 0; }
  .pied__juridique { order: 3; font-size: 15px; line-height: 25px; }
  .pied__navigation { font-size: 15px; line-height: 32px; margin-bottom: 12px; }
  /* Pied de page allégé sur téléphone (remarque du gérant du 02/11/2026 : trop lourd avec les liens de toutes les pages) :
     liens vers les pages retirés de l'affichage (toujours dans le menu, et toujours dans la page pour les moteurs de
     recherche) ; mentions légales, confidentialité et cookies sur une même ligne, en plus petit */
  .pied { padding: 32px 5% 40px; }  /* bas : juste assez pour que la bulle d'appel flottante ne cache aucun lien
                                       (92 px jusqu'au 03/11/2026, jugés trop vides par un visiteur) */
  .pied__navigation { display: none; }
  .pied__juridique { margin-top: 4px; font-size: 14px; line-height: 22px; }
  .pied__juridique p { display: inline-block; margin: 4px 8px; }
  .pied__contact { margin: 18px 0 12px; }
}


/* --------------------------------------------------------------------------
   11. Bouton flottant et fenêtre « Parlons de vos contrats d'énergie »
       (fenêtre n° 9794 de l'original, mini-formulaire depuis le 8 octobre 2026 ;
        valeurs relevées le 12/10/2026, voir inventaire/releve-2026-10-12/)
   -------------------------------------------------------------------------- */
.bouton-flottant {
  position: fixed; right: 27px; bottom: 27px; z-index: 900;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--orange); color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(244, 164, 24, 0.45);
  transition: transform 0.3s, box-shadow 0.3s;
}
.bouton-flottant:hover, .bouton-flottant:focus-visible { transform: scale(1.06); box-shadow: 0 6px 24px rgba(244, 164, 24, 0.6); }
.bouton-flottant__icone { width: 26px; height: 26px; fill: currentColor; }

/* Fenêtre : en bas à droite de l'écran, au-dessus d'un voile léger */
.surgissante {
  position: fixed; inset: auto 27px 19px auto; margin: 0;
  width: 480px; max-width: calc(100vw - 32px); max-height: calc(100vh - 38px); overflow-y: auto;
  padding: 20px; border: 0; border-radius: 28px;
  background: var(--marine); color: var(--bleu-pale); font-size: 16px; line-height: 24px;
  box-shadow: 0 0 100px 5px rgba(0, 0, 0, 0.5);
}
.surgissante::backdrop { background: rgba(0, 0, 0, 0.33); }
/* Téléphone : fenêtre centrée, 16 px de chaque côté */
@media (max-width: 767px) { .surgissante { inset: auto 16px 16px 16px; width: auto; max-width: none; } }
.surgissante__fermer {
  position: absolute; top: 20px; right: 21px; width: 30px; height: 30px; padding: 0;
  border: 0; background: none; cursor: pointer;
}
.surgissante__fermer::before, .surgissante__fermer::after {
  content: ""; position: absolute; top: 14px; left: 3px; width: 24px; height: 2px;
  background: var(--ardoise); transform: rotate(45deg);
}
.surgissante__fermer::after { transform: rotate(-45deg); }
.surgissante__fermer:hover::before, .surgissante__fermer:hover::after { background: var(--bleu-pale); }
.surgissante__logo { width: 50px; height: 50px; margin-bottom: 8px; }
.surgissante__titre { font-size: 32px; line-height: 32px; font-weight: 500; color: #FFFFFF; margin: 0 0 8px; padding-right: 40px; }
.surgissante__badge { display: flex; align-items: center; gap: 10px; color: var(--bleu-pale); margin: 0; }
.surgissante__point { width: 8px; height: 8px; border-radius: 50%; background: var(--vert); flex-shrink: 0; }

.mini-formulaire { margin-top: 16px; }
.mini-formulaire__piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mini-formulaire__champ { margin-bottom: 10px; }
.mini-formulaire label { display: block; padding-bottom: 5px; font-size: 16px; line-height: 16px; font-weight: 500; color: var(--bleu-pale); }
.mini-formulaire__requis { color: var(--orange); margin-left: 3px; }
.mini-formulaire input {
  display: block; width: 100%; height: 40px; padding: 8px 16px;
  background: var(--ardoise); color: var(--bleu-pale); font: inherit; font-size: 15px; line-height: 15px;
  border: 1px solid #69727D; border-radius: 8px;
}
.mini-formulaire input:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
/* Liste de choix (fenêtre « Être rappelé ») : même aspect que les champs */
.mini-formulaire select {
  display: block; width: 100%; height: 40px; padding: 8px 16px;
  background: var(--ardoise); color: var(--bleu-pale); font: inherit; font-size: 15px;
  border: 1px solid #69727D; border-radius: 8px;
}
.mini-formulaire select:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
/* Mention sur l'usage des données, sous les formulaires courts */
.mini-formulaire__mention { margin: 8px 0 0; font-size: 13px; line-height: 18px; color: var(--bleu-pale); }
.mini-formulaire__mention a { color: inherit; text-decoration: underline; }
/* C8 (20/10/2026) : usage du téléphone sous le champ, « Et ensuite ? » sous le bouton */
.mini-formulaire__aide { margin-top: 4px; font-size: 13px; line-height: 17px; } /* 12 px avant le 26/10/2026 */
.mini-formulaire__ensuite { margin: 12px 0 8px; font-weight: 600; text-align: center; }  /* écarté du bouton (03/11/2026) */
/* Bouton d'envoi au dessin du bouton principal de l'essai 4 (27/10/2026) */
.mini-formulaire__envoyer {
  display: block; width: 100%; padding: 17px 26px; margin-bottom: 10px;
  background: var(--orange); color: var(--nuit); border: 2px solid var(--orange); border-radius: 10px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(244, 164, 24, 0.28);
  font: inherit; font-size: 17px; line-height: 22px; font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.mini-formulaire__envoyer:hover, .mini-formulaire__envoyer:focus-visible {
  transform: translateY(-2px); background: var(--orange-clair); border-color: var(--orange-clair); box-shadow: 0 10px 24px rgba(244, 164, 24, 0.38);
}
.mini-formulaire__envoyer:disabled { opacity: 0.6; cursor: wait; transform: none; }
.mini-formulaire__message { margin: 0; font-size: 15px; line-height: 20px; color: var(--bleu-pale); }
.mini-formulaire__message--ok { color: #4ADE80; }
.mini-formulaire__message--erreur { color: #FCA5A5; }
.surgissante__filet { border: 0; border-top: 1px solid var(--ardoise); margin: 1.5em 0 0.75em; }
.surgissante__direct { text-align: center; font-size: 19.2px; line-height: 27.2px; font-weight: 500; color: #FFFFFF; margin: 0; }
.surgissante__direct a { color: var(--orange); text-decoration: none; }
.surgissante__direct a:hover { text-decoration: underline; }


/* --------------------------------------------------------------------------
   12. Apparition progressive des blocs au défilement (effet « fadeIn » d'Elementor)
   -------------------------------------------------------------------------- */
/* 26/10/2026 : fondu ramené de 1,25 s à 0,5 s, trop lent sur téléphone (le texte tardait à s'afficher) */
.js .apparition { opacity: 0; transition: opacity 0.5s ease; }
.js .apparition.visible { opacity: 1; }
.js .apparition--monte { transform: translateY(40px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .apparition--monte.visible { transform: none; }

/* P2 (19/10/2026) : fenêtre « Être rappelé », bouton d'appel direct au-dessus du formulaire */
.surgissante__appel { display: block; margin: 4px 0 10px; text-align: center; text-decoration: none; }
.surgissante__ou { margin: 0 0 6px; font-size: 14px; color: var(--bleu-pale); text-align: center; }

/* --------------------------------------------------------------------------
   13. Infobulles du lexique (26/10/2026) : définition d'un terme au survol ou au toucher (js/infobulle.js)
   -------------------------------------------------------------------------- */
a[data-definition] { text-decoration-style: dotted; text-underline-offset: 3px; cursor: help; }
.infobulle {
  position: fixed; z-index: 3000; left: 0; top: 0; box-sizing: border-box;
  width: max-content; max-width: min(320px, calc(100vw - 16px)); padding: 12px 14px;
  background: var(--nuit); color: #FFFFFF; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  font-size: 15px; line-height: 1.45; font-style: normal; font-weight: 400; text-align: left;
  pointer-events: none; opacity: 0; transition: opacity 0.15s ease;
}
.infobulle.visible { opacity: 1; }
.infobulle::after { /* flèche vers le mot */
  content: ""; position: absolute; left: var(--fleche-x, 50%); top: 100%; margin-left: -7px;
  border: 7px solid transparent; border-top-color: var(--nuit);
}
.infobulle--dessous::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--nuit); }
.infobulle__terme { display: block; margin-bottom: 4px; color: var(--orange-clair); font-weight: 700; }
.infobulle__texte { display: block; }
.infobulle__aide { display: block; margin-top: 8px; font-size: 13px; color: var(--bleu-pale); }
