/* =========================================================================
   ALLIANCE NATIONALE DE L'ENVIRONNEMENT (ANE)
   Feuille de style principale — design system partagé
   Palette claire & premium · Sora (titres) + Inter (corps)
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. VARIABLES & TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* Couleurs de marque */
  --vert: #0E7C4A;
  --vert-clair: #16A06A;
  --vert-pale: #E7F3EC;
  --bleu: #0E5A8A;
  --bleu-ciel: #1E88C7;
  --bleu-pale: #E6F1F9;
  --ambre: #F5A623;
  --ambre-fonce: #E08A00;
  --ambre-pale: #FFF4E1;

  /* Couleurs de la France (identité tricolore) */
  --bleu-france: #2E63E7;
  --bleu-france-clair: #5B8DF6;
  --bleu-france-pale: #EAF0FE;
  --rouge-france: #EF4135;
  --rouge-france-pale: #FDEEEC;
  --grad-tricolore: linear-gradient(90deg, #2E63E7 0%, #2E63E7 33.3%, #FFFFFF 33.3%, #FFFFFF 66.6%, #EF4135 66.6%, #EF4135 100%);

  /* Neutres */
  --encre: #14241C;        /* texte principal (charcoal verdâtre) */
  --gris: #5B6B62;         /* texte secondaire */
  --gris-clair: #8A988F;
  --ligne: #E3EAE5;        /* bordures */
  --fond: #FBFCFB;         /* fond de page */
  --fond-alt: #F1F6F2;     /* sections alternées */
  --blanc: #FFFFFF;

  /* Dégradés */
  --grad-marque: linear-gradient(135deg, #16A06A 0%, #0E7C4A 42%, #2E63E7 100%);
  --grad-solaire: linear-gradient(135deg, #FFB627 0%, #F5A623 100%);
  --grad-ciel: linear-gradient(160deg, #EAF6FF 0%, #F4FBF6 100%);

  /* Typo */
  --font-titre: 'Sora', system-ui, sans-serif;
  --font-corps: 'Inter', system-ui, sans-serif;

  /* Rayons & ombres */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 999px;
  --ombre-s: 0 2px 8px rgba(20, 36, 28, .06);
  --ombre-m: 0 10px 30px rgba(20, 36, 28, .08);
  --ombre-l: 0 24px 60px rgba(20, 36, 28, .12);
  --ombre-vert: 0 14px 34px rgba(14, 124, 74, .22);

  /* Layout */
  --largeur: 1200px;
  --gouttiere: clamp(1.1rem, 4vw, 2rem);
  --header-h: 76px;
}

/* -------------------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-corps);
  color: var(--encre);
  background: var(--fond);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-titre);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--encre);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

p { color: var(--gris); }

ul { list-style: none; }

:focus-visible { outline: 3px solid var(--bleu-ciel); outline-offset: 3px; border-radius: 4px; }

/* -------------------------------------------------------------------------
   3. UTILITAIRES DE MISE EN PAGE
   ------------------------------------------------------------------------- */
.conteneur { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: var(--gouttiere); }
.conteneur--etroit { max-width: 820px; }

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--alt { background: var(--fond-alt); }
.section--ciel { background: var(--grad-ciel); }

.centre { text-align: center; }
.mx-auto { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-titre);
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--vert);
  background: var(--vert-pale);
  padding: .4rem .9rem; border-radius: var(--r-full);
  margin-bottom: 1.1rem;
}
.eyebrow--bleu { color: var(--bleu); background: var(--bleu-pale); }
.eyebrow--ambre { color: var(--ambre-fonce); background: var(--ambre-pale); }

.section-titre { margin-bottom: 1rem; }
.section-intro { font-size: 1.1rem; max-width: 640px; }
.section-head.centre .section-intro { margin-inline: auto; }
.section-head { margin-bottom: 3rem; }

.txt-vert { color: var(--vert); }
.txt-bleu { color: var(--bleu); }
.txt-ambre { color: var(--ambre-fonce); }

/* surligneur dégradé sur un mot clé */
.surligne {
  background: linear-gradient(120deg, rgba(245,166,35,.30) 0%, rgba(245,166,35,.30) 100%);
  background-repeat: no-repeat;
  background-size: 100% 38%;
  background-position: 0 88%;
  padding-inline: 2px;
}

/* -------------------------------------------------------------------------
   4. BOUTONS
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-titre); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.6rem; border-radius: var(--r-full);
  border: 2px solid transparent; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primaire { background: var(--grad-solaire); color: #4a2d00; box-shadow: 0 10px 24px rgba(245,166,35,.32); }
.btn--primaire:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(245,166,35,.42); }
.btn--vert { background: var(--vert); color: #fff; box-shadow: var(--ombre-vert); }
.btn--vert:hover { transform: translateY(-2px); background: var(--vert-clair); }
.btn--ghost { background: var(--blanc); color: var(--encre); border-color: var(--ligne); box-shadow: var(--ombre-s); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--vert); color: var(--vert); }
.btn--clair { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.4); }
.btn--clair:hover { background: rgba(255,255,255,.28); }
.btn--bloc { width: 100%; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; }

/* -------------------------------------------------------------------------
   5. HEADER / NAVIGATION
   ------------------------------------------------------------------------- */
.entete {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 252, 251, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
/* liseré tricolore : signature française au sommet du site */
.entete::before {
  content: ''; display: block; height: 3px;
  background: linear-gradient(90deg, #2E63E7 0%, #2E63E7 32%, #E9EFFA 32%, #E9EFFA 36%, #FFFFFF 36%, #FFFFFF 64%, #FBE9E7 64%, #FBE9E7 68%, #EF4135 68%, #EF4135 100%);
}
.entete.est-colle { border-bottom-color: var(--ligne); box-shadow: var(--ombre-s); }
.entete__barre { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }

.logo { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.logo__mark { width: 44px; height: 44px; flex-shrink: 0; }
/* logo image complet (en-tête) */
.logo__img { height: 48px; width: auto; display: block; }
@media (max-width: 480px) { .logo__img { height: 40px; } }
.logo__txt { display: flex; flex-direction: column; line-height: 1.05; }
.logo__nom { font-family: var(--font-titre); font-weight: 700; font-size: .95rem; letter-spacing: -.01em; color: var(--encre); }
.logo__sous { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); font-weight: 500; }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav__lien {
  font-family: var(--font-titre); font-weight: 500; font-size: .92rem;
  padding: .5rem .8rem; border-radius: var(--r-full); color: var(--encre);
  transition: background .2s, color .2s; position: relative;
}
.nav__lien:hover, .nav__lien[aria-current="page"] { background: var(--vert-pale); color: var(--vert); }
/* le CTA dans la nav ne sert qu'au menu mobile : masqué sur desktop (doublon avec le bouton vert) */
.nav > .btn { display: none; }

/* menu déroulant services */
.nav__item { position: relative; }
.nav__menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  margin-top: 14px;
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r-md);
  box-shadow: var(--ombre-l); padding: .6rem; width: 290px;
  opacity: 0; visibility: hidden; transition: opacity .22s ease, transform .22s ease;
}
/* pont de survol invisible : empêche le sous-menu de se fermer quand la souris descend */
.nav__menu::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__menu a { display: flex; gap: .7rem; align-items: center; padding: .6rem .7rem; border-radius: var(--r-sm); transition: background .18s; }
.nav__menu a:hover { background: var(--fond-alt); }
.nav__menu .mini-ic { width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center; }
.nav__menu b { font-family: var(--font-titre); font-size: .9rem; font-weight: 600; display: block; }
.nav__menu span { font-size: .76rem; color: var(--gris-clair); }

.entete__actions { display: flex; align-items: center; gap: .7rem; }
.tel-lien { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-titre); font-weight: 600; font-size: .9rem; color: var(--vert); }
.tel-lien svg { width: 17px; height: 17px; }

.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--ligne); background: var(--blanc); border-radius: var(--r-sm); cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--encre); margin: 4px auto; transition: .3s; border-radius: 2px; }
.burger.actif span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.actif span:nth-child(2) { opacity: 0; }
.burger.actif span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* -------------------------------------------------------------------------
   6. HERO
   ------------------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background: var(--grad-ciel); }
.hero__bg svg { position: absolute; }
.hero__grille { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__contenu { max-width: 620px; }
.hero h1 { margin-bottom: 1.2rem; }
.hero__accroche { font-size: 1.18rem; margin-bottom: 1.8rem; max-width: 540px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.8rem; }
.hero__preuves { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; }
.hero__preuve { display: flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 500; color: var(--encre); }
.hero__preuve svg { width: 20px; height: 20px; color: var(--vert); flex-shrink: 0; }

/* visuel illustratif hero */
.hero__visuel { position: relative; }
.hero__carte-flottante {
  position: absolute; background: var(--blanc); border-radius: var(--r-md); box-shadow: var(--ombre-l);
  padding: .85rem 1.1rem; display: flex; align-items: center; gap: .7rem; border: 1px solid var(--ligne);
}
.hero__carte-flottante .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.hero__carte-flottante b { font-family: var(--font-titre); font-size: 1.05rem; display: block; line-height: 1; }
.hero__carte-flottante span { font-size: .72rem; color: var(--gris); }
.carte-eco { top: 8%; right: -4%; animation: flotter 6s ease-in-out infinite; }
.carte-dpe { bottom: 6%; left: -6%; animation: flotter 6s ease-in-out infinite .8s; }

@keyframes flotter { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* -------------------------------------------------------------------------
   7. BANDEAU RÉASSURANCE
   ------------------------------------------------------------------------- */
.reassurance { background: var(--blanc); border-block: 1px solid var(--ligne); }
.reassurance__grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-block: 2rem; }
.reassurance__item { display: flex; align-items: center; gap: .85rem; }
.reassurance__item .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--vert-pale); display: grid; place-items: center; flex-shrink: 0; }
.reassurance__item .ic svg { width: 24px; height: 24px; color: var(--vert); }
.reassurance__item b { font-family: var(--font-titre); font-size: .95rem; display: block; line-height: 1.2; }
.reassurance__item span { font-size: .8rem; color: var(--gris); }

/* -------------------------------------------------------------------------
   8. CARTES SERVICES
   ------------------------------------------------------------------------- */
.grille-services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.carte-service {
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r-lg);
  position: relative; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.carte-service:hover { transform: translateY(-6px); box-shadow: var(--ombre-l); border-color: transparent; }
/* en-tête photo de la carte */
.carte-service__media { position: relative; height: 200px; overflow: hidden; }
.carte-service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.carte-service:hover .carte-service__media img { transform: scale(1.06); }
.carte-service__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,31,23,0) 45%, rgba(12,31,23,.55) 100%); }
.carte-service__corps { padding: 2.4rem 2rem 2rem; position: relative; }
.carte-service__ic { width: 60px; height: 60px; border-radius: var(--r-md); display: grid; place-items: center;
  position: absolute; top: -30px; left: 2rem; box-shadow: var(--ombre-m); border: 3px solid var(--blanc); }
.carte-service__ic svg { width: 32px; height: 32px; }
.carte-service h3 { margin-bottom: .6rem; }
.carte-service p { font-size: .96rem; margin-bottom: 1.2rem; }
.carte-service__liste { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.4rem; }
.carte-service__liste li { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--encre); }
.carte-service__liste li svg { width: 16px; height: 16px; color: var(--vert); flex-shrink: 0; }
.carte-service__lien { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-titre); font-weight: 600; font-size: .92rem; color: var(--vert); transition: gap .2s; }
.carte-service__lien:hover { gap: .7rem; }
.carte-service__lien svg { width: 16px; height: 16px; }

/* teintes par service */
.ic-vert { background: var(--vert-pale); } .ic-vert svg { color: var(--vert); }
.ic-bleu { background: var(--bleu-pale); } .ic-bleu svg { color: var(--bleu-ciel); }
.ic-ambre { background: var(--ambre-pale); } .ic-ambre svg { color: var(--ambre-fonce); }
.ic-mixte { background: linear-gradient(135deg, var(--vert-pale), var(--bleu-pale)); } .ic-mixte svg { color: var(--vert); }

/* -------------------------------------------------------------------------
   9. CHIFFRES CLÉS
   ------------------------------------------------------------------------- */
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.chiffre { text-align: center; padding: 1.5rem 1rem; }
.chiffre__val { font-family: var(--font-titre); font-weight: 800; font-size: clamp(2.3rem, 5vw, 3.2rem); line-height: 1; background: var(--grad-marque); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.chiffre__lib { margin-top: .6rem; font-size: .92rem; color: var(--gris); font-weight: 500; }

/* -------------------------------------------------------------------------
   10. PROCESSUS / ÉTAPES
   ------------------------------------------------------------------------- */
.processus { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.etape { position: relative; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r-lg); padding: 2rem 1.5rem; }
.etape__num { font-family: var(--font-titre); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--vert-pale); position: absolute; top: 1rem; right: 1.3rem; }
.etape__ic { width: 54px; height: 54px; border-radius: var(--r-md); background: var(--grad-marque); display: grid; place-items: center; margin-bottom: 1.1rem; }
.etape__ic svg { width: 28px; height: 28px; color: #fff; }
.etape h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.etape p { font-size: .9rem; }

/* -------------------------------------------------------------------------
   11. TÉMOIGNAGES
   ------------------------------------------------------------------------- */
.grille-temoignages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.temoignage { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r-lg); padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem; box-shadow: var(--ombre-s); }
.temoignage__etoiles { display: flex; gap: 2px; color: var(--ambre); }
.temoignage__etoiles svg { width: 18px; height: 18px; }
.temoignage__txt { font-size: .98rem; color: var(--encre); line-height: 1.6; flex-grow: 1; }
.temoignage__auteur { display: flex; align-items: center; gap: .8rem; }
.temoignage__avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-titre); font-weight: 700; color: #fff; font-size: 1rem; flex-shrink: 0; overflow: hidden; }
.temoignage__avatar img { width: 100%; height: 100%; object-fit: cover; }
.temoignage__auteur b { font-family: var(--font-titre); font-size: .92rem; display: block; line-height: 1.2; }
.temoignage__auteur span { font-size: .8rem; color: var(--gris); }

/* -------------------------------------------------------------------------
   12. FAQ (accordéon)
   ------------------------------------------------------------------------- */
.faq { display: flex; flex-direction: column; gap: .8rem; }
.faq__item { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r-md); overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.faq__item.ouvert { box-shadow: var(--ombre-m); border-color: var(--vert-clair); }
.faq__q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 1.25rem 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--font-titre); font-weight: 600; font-size: 1.02rem; color: var(--encre); }
.faq__q .signe { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--vert-pale); display: grid; place-items: center; transition: transform .3s, background .3s; }
.faq__q .signe svg { width: 16px; height: 16px; color: var(--vert); }
.faq__item.ouvert .signe { background: var(--vert); transform: rotate(135deg); }
.faq__item.ouvert .signe svg { color: #fff; }
.faq__r { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq__r-inner { padding: 0 1.5rem 1.35rem; color: var(--gris); font-size: .96rem; }

/* -------------------------------------------------------------------------
   13. ZONE D'INTERVENTION / CTA BANDE
   ------------------------------------------------------------------------- */
.cta-bande { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--grad-marque); padding: clamp(2.5rem, 5vw, 4rem); color: #fff; }
.cta-bande::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.18), transparent 45%); }
.cta-bande__grille { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.cta-bande h2 { color: #fff; margin-bottom: .8rem; }
.cta-bande p { color: rgba(255,255,255,.9); font-size: 1.08rem; }
.cta-bande__actions { display: flex; flex-direction: column; gap: .8rem; }

/* -------------------------------------------------------------------------
   14. FOOTER
   ------------------------------------------------------------------------- */
.pied {
  background: linear-gradient(180deg, #F5F8FD 0%, #EDF2FB 100%);
  color: var(--gris); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  border-top: 1px solid #E1E9F6; position: relative;
}
/* rappel tricolore discret en haut du footer */
.pied::before { content: ''; position: absolute; top: -1px; left: 50%; transform: translateX(-50%); width: min(220px, 40%); height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, #2E63E7 0%, #2E63E7 33%, #fff 33%, #fff 66%, #EF4135 66%, #EF4135 100%); box-shadow: 0 1px 3px rgba(20,36,28,.12); }
.pied a { color: var(--gris); transition: color .2s; }
.pied a:hover { color: var(--bleu-france); }
.pied__grille { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid #DFE7F4; }
.pied__marque .logo__nom { color: var(--encre); }
.pied__marque .logo__sous { color: var(--gris); }
.pied__marque p { color: var(--gris); font-size: .9rem; margin: 1rem 0 1.3rem; max-width: 320px; }
.pied__rge { display: inline-flex; align-items: center; gap: .6rem; background: var(--blanc); border: 1px solid #DFE7F4; border-radius: var(--r-sm); padding: .6rem .9rem; box-shadow: var(--ombre-s); }
.pied__rge svg { width: 30px; height: 30px; }
.pied__rge b { font-family: var(--font-titre); color: var(--encre); font-size: .82rem; display: block; line-height: 1.2; }
.pied__rge span { font-size: .72rem; color: var(--gris-clair); }
.pied h4 { color: var(--encre); font-size: .95rem; margin-bottom: 1.1rem; letter-spacing: .02em; }
.pied__liens { display: flex; flex-direction: column; gap: .6rem; font-size: .9rem; }
.pied__contact-item { display: flex; gap: .6rem; font-size: .9rem; margin-bottom: .8rem; align-items: flex-start; }
.pied__contact-item svg { width: 18px; height: 18px; color: var(--bleu-france); flex-shrink: 0; margin-top: 3px; }
.pied__social { display: flex; gap: .6rem; margin-top: 1rem; }
.pied__social a { width: 38px; height: 38px; border-radius: 10px; background: var(--blanc); border: 1px solid #DFE7F4; display: grid; place-items: center; }
.pied__social a:hover { background: var(--bleu-france); border-color: var(--bleu-france); color: #fff; }
.pied__social svg { width: 18px; height: 18px; }
.pied__bas { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 1.8rem; font-size: .82rem; color: var(--gris-clair); }
.pied__bas-liens { display: flex; gap: 1.3rem; flex-wrap: wrap; }

/* -------------------------------------------------------------------------
   15. SOUS-PAGES : en-tête de page
   ------------------------------------------------------------------------- */
.page-hero { position: relative; padding-block: clamp(2.5rem, 6vw, 4rem); background: var(--grad-ciel); overflow: hidden; }
.fil { display: flex; gap: .5rem; align-items: center; font-size: .82rem; color: var(--gris); margin-bottom: 1.2rem; }
.fil a:hover { color: var(--vert); }
.fil svg { width: 14px; height: 14px; opacity: .6; }
.page-hero__grille { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero__accroche { font-size: 1.15rem; max-width: 560px; }

/* listes d'arguments / bénéfices */
.benefices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.benefice { display: flex; gap: 1rem; align-items: flex-start; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r-md); padding: 1.4rem; transition: transform .25s, box-shadow .25s; }
.benefice:hover { transform: translateY(-4px); box-shadow: var(--ombre-m); }
.benefice .ic { width: 44px; height: 44px; border-radius: 11px; background: var(--vert-pale); display: grid; place-items: center; flex-shrink: 0; }
.benefice .ic svg { width: 24px; height: 24px; color: var(--vert); }
.benefice b { font-family: var(--font-titre); display: block; margin-bottom: .25rem; font-size: 1.02rem; }
.benefice p { font-size: .9rem; }

/* bloc contenu deux colonnes */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.duo--inverse .duo__visuel { order: -1; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { margin-bottom: .4rem; }
.prose ul.coches { display: flex; flex-direction: column; gap: .7rem; }
.prose ul.coches li { display: flex; gap: .7rem; align-items: flex-start; color: var(--encre); }
.prose ul.coches li svg { width: 22px; height: 22px; color: var(--vert); flex-shrink: 0; margin-top: 1px; }

/* encart aide / info */
.encart { background: var(--vert-pale); border: 1px solid #cfe6d8; border-left: 4px solid var(--vert); border-radius: var(--r-md); padding: 1.3rem 1.5rem; }
.encart--bleu { background: var(--bleu-pale); border-color: #cfe2f1; border-left-color: var(--bleu-ciel); }
.encart--ambre { background: var(--ambre-pale); border-color: #f5e3c0; border-left-color: var(--ambre); }
.encart b { font-family: var(--font-titre); }

/* carte visuelle générique (illustration encadrée) */
.visuel-carte { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--ombre-m); }

/* ---- Cadres photo (photographie professionnelle) ---- */
.media-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--ombre-l); background: var(--fond-alt); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-frame--16x10 { aspect-ratio: 16 / 10; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 4 / 5; }
/* liseré dégradé décoratif derrière une photo */
.media-deco { position: relative; }
.media-deco::before { content: ''; position: absolute; inset: auto -14px -14px auto; width: 60%; height: 60%; border-radius: var(--r-lg); background: var(--grad-marque); opacity: .12; z-index: -1; }

/* hero : photo + cartes flottantes */
.hero__photo { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--ombre-l); aspect-ratio: 5 / 6; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,31,23,0) 55%, rgba(12,31,23,.35) 100%); }

/* page-hero : visuel photo */
.page-hero__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--ombre-l); aspect-ratio: 4 / 3; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* bandeau photo plein cadre avec superposition (sections d'ambiance) */
.bandeau-photo { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 360px; display: flex; align-items: center; }
.bandeau-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bandeau-photo__voile { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(12,31,23,.82) 0%, rgba(14,90,138,.55) 60%, rgba(14,90,138,.15) 100%); }
.bandeau-photo__contenu { position: relative; padding: clamp(2rem, 5vw, 3.5rem); max-width: 600px; color: #fff; }
.bandeau-photo__contenu h2 { color: #fff; }
.bandeau-photo__contenu p { color: rgba(255,255,255,.9); }

/* tableau aides */
.tableau-aides { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r-md); overflow: hidden; font-size: .92rem; }
.tableau-aides th, .tableau-aides td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--ligne); }
.tableau-aides th { background: var(--fond-alt); font-family: var(--font-titre); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gris); }
.tableau-aides tr:last-child td { border-bottom: none; }
.tableau-aides td b { color: var(--encre); }

/* -------------------------------------------------------------------------
   16. FORMULAIRE CONTACT
   ------------------------------------------------------------------------- */
.form-carte { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--ombre-m); }
.champ { margin-bottom: 1.1rem; }
.champ label { display: block; font-family: var(--font-titre); font-weight: 500; font-size: .9rem; margin-bottom: .45rem; }
.champ label .req { color: var(--ambre-fonce); }
.champ input, .champ select, .champ textarea {
  width: 100%; font-family: var(--font-corps); font-size: 1rem; color: var(--encre);
  padding: .8rem 1rem; border: 1.5px solid var(--ligne); border-radius: var(--r-sm); background: var(--fond);
  transition: border-color .2s, box-shadow .2s;
}
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--vert); box-shadow: 0 0 0 4px var(--vert-pale); background: #fff; }
.champ textarea { resize: vertical; min-height: 130px; }
.champ--erreur input, .champ--erreur select, .champ--erreur textarea { border-color: #d64545; box-shadow: 0 0 0 4px #fae3e3; }
.champ__err { display: none; color: #d64545; font-size: .82rem; margin-top: .35rem; }
.champ--erreur .champ__err { display: block; }
.grille-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.consentement { display: flex; gap: .6rem; align-items: flex-start; font-size: .82rem; color: var(--gris); }
.consentement input { width: auto; margin-top: 3px; }
.form-message { display: none; padding: 1rem 1.2rem; border-radius: var(--r-sm); margin-bottom: 1.2rem; font-size: .92rem; }
.form-message.ok { display: block; background: var(--vert-pale); color: #0a5c37; border: 1px solid #bfe4cd; }
.form-message.ko { display: block; background: #fae3e3; color: #a02626; border: 1px solid #f1c4c4; }

/* coordonnées contact */
.coord-carte { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r-md); }
.coord-carte .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--vert-pale); display: grid; place-items: center; flex-shrink: 0; }
.coord-carte .ic svg { width: 24px; height: 24px; color: var(--vert); }
.coord-carte b { font-family: var(--font-titre); display: block; margin-bottom: .2rem; }
.coord-carte p, .coord-carte a { font-size: .92rem; color: var(--gris); }

/* carte stylisée (zone) */
.carte-zone { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--ligne); box-shadow: var(--ombre-m); background: var(--blanc); }

/* -------------------------------------------------------------------------
   17. WIDGET ÉLIGIBILITÉ (mini simulateur)
   ------------------------------------------------------------------------- */
.eligib { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r-lg); padding: 1.8rem; box-shadow: var(--ombre-l); }
.eligib h3 { margin-bottom: .3rem; }
.eligib__sous { font-size: .88rem; margin-bottom: 1.3rem; }
.eligib__opts { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1rem; }
.eligib__opt { position: relative; }
.eligib__opt input { position: absolute; opacity: 0; }
.eligib__opt label { display: flex; align-items: center; gap: .5rem; padding: .7rem .8rem; border: 1.5px solid var(--ligne); border-radius: var(--r-sm); cursor: pointer; font-size: .88rem; font-weight: 500; transition: .2s; }
.eligib__opt input:checked + label { border-color: var(--vert); background: var(--vert-pale); color: var(--vert); }
.eligib__opt label svg { width: 18px; height: 18px; }
.eligib__resultat { display: none; margin-top: 1.2rem; padding: 1.2rem; border-radius: var(--r-md); background: var(--grad-ciel); border: 1px solid var(--ligne); }
.eligib__resultat.visible { display: block; animation: apparait .4s ease; }
.eligib__resultat b { font-family: var(--font-titre); font-size: 1.05rem; color: var(--vert); }

/* -------------------------------------------------------------------------
   18. ANIMATIONS AU SCROLL
   ------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.vu { opacity: 1; transform: none; }
.reveal[data-delai="1"] { transition-delay: .08s; }
.reveal[data-delai="2"] { transition-delay: .16s; }
.reveal[data-delai="3"] { transition-delay: .24s; }
@keyframes apparait { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* -------------------------------------------------------------------------
   19. RESPONSIVE
   ------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .entete__actions .tel-lien { display: none; }
}

@media (max-width: 980px) {
  .hero__grille, .page-hero__grille, .duo, .cta-bande__grille { grid-template-columns: 1fr; }
  .duo--inverse .duo__visuel { order: 0; }
  .hero__visuel { max-width: 480px; margin-inline: auto; }
  .grille-services, .chiffres, .processus, .reassurance__grille { grid-template-columns: repeat(2, 1fr); }
  .grille-temoignages { grid-template-columns: 1fr; }
  .benefices { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav, .entete__actions .tel-lien, .entete__actions .btn { display: none; }
  .burger { display: block; }
  .nav.mobile-ouvert {
    display: flex; flex-direction: column; align-items: stretch; gap: .2rem;
    /* NB : .entete utilise backdrop-filter → il devient le bloc conteneur des enfants fixed.
       On dimensionne donc avec une hauteur relative au viewport (dvh) plutôt que bottom:0. */
    position: fixed; top: var(--header-h); left: 0; right: 0;
    height: calc(100dvh - var(--header-h)); height: calc(100vh - var(--header-h));
    background: var(--blanc); padding: 1.2rem var(--gouttiere); overflow-y: auto; z-index: 99;
    border-top: 1px solid var(--ligne);
  }
  .nav.mobile-ouvert .nav__lien { padding: .9rem 1rem; font-size: 1.05rem; border-radius: var(--r-sm); }
  .nav.mobile-ouvert .nav__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; width: 100%; padding: .2rem 0 .5rem 1rem; }
  .nav.mobile-ouvert .nav__item { display: flex; flex-direction: column; }
  .nav.mobile-ouvert .btn { display: inline-flex; margin-top: .8rem; }
  .chiffres, .processus { grid-template-columns: 1fr 1fr; }
  .pied__grille { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .pied__marque { grid-column: 1 / -1; }
  .grille-2 { grid-template-columns: 1fr; }
  .hero__carte-flottante { display: none; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .grille-services, .reassurance__grille { grid-template-columns: 1fr; }
  .chiffres { grid-template-columns: 1fr 1fr; }
  .processus { grid-template-columns: 1fr; }
  .pied__grille { grid-template-columns: 1fr; }
  .eligib__opts { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   20. BOUTON WHATSAPP FLOTTANT
   ------------------------------------------------------------------------- */
.wa-flottant {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  display: inline-flex; align-items: center; gap: .55rem;
  background: #25D366; color: #fff; height: 58px; padding: 0 18px;
  border-radius: var(--r-full); box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
  font-family: var(--font-titre); font-weight: 600; font-size: .95rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-flottant svg { width: 30px; height: 30px; flex-shrink: 0; }
.wa-flottant:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 32px rgba(37, 211, 102, .55); color: #fff; }
.wa-flottant::after { /* halo pulsé */
  content: ''; position: absolute; inset: 0; border-radius: var(--r-full);
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); animation: wa-pulse 2.4s infinite;
}
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
@media (max-width: 760px) {
  .wa-flottant { right: 16px; bottom: 16px; height: 56px; padding: 0 16px; }
  .wa-flottant__label { display: none; } /* icône seule sur mobile */
}

/* Respect des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================================
   21. EXPÉRIENCE STORYTELLING — page d'accueil
   Fond peint Three.js · chapitres · transitions de couleurs · rail de
   progression · scènes cinématiques GSAP
   ========================================================================= */

/* le body de l'accueil laisse transparaître la toile WebGL fixée derrière */
body.exp { background: var(--grad-ciel); }
.exp-toile {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  width: 100%; height: 100%; display: block;
}
/* voile très léger pour garantir la lisibilité du contenu sur la toile */
body.exp::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.05) 30%, rgba(255,255,255,.05) 70%, rgba(255,255,255,.3));
}
body.exp .section--alt { background: rgba(255,255,255,.45); }
body.exp .section--ciel { background: rgba(255,255,255,.3); }
body.exp .reassurance { background: rgba(255,255,255,.62); backdrop-filter: blur(6px); }
body.exp .entete { background: rgba(252, 253, 255, .78); }

/* ---- Chapitres ---- */
.chapitre { position: relative; }
.chapitre__marque {
  display: inline-flex; align-items: center; gap: .9rem;
  font-family: var(--font-titre); font-weight: 700; font-size: .82rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--bleu-france);
  margin-bottom: 1.2rem;
}
.chapitre__marque::before { content: ''; width: 44px; height: 2px; border-radius: 2px; background: var(--grad-tricolore); box-shadow: 0 0 0 1px rgba(20,36,28,.04); }
.chapitre__marque .num { font-size: 1.5rem; letter-spacing: 0; color: var(--encre); opacity: .18; font-weight: 800; }

/* grand titre de chapitre avec révélation en rideau */
.chapitre__titre { overflow: hidden; }
.chapitre__titre .ligne { display: block; will-change: transform; }

/* ---- Rail de progression (desktop) ---- */
.exp-rail {
  position: fixed; right: 26px; top: 50%; transform: translateY(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 14px;
}
.exp-rail a { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; }
.exp-rail__lbl {
  font-family: var(--font-titre); font-size: .72rem; font-weight: 600; color: var(--gris);
  background: rgba(255,255,255,.92); border: 1px solid var(--ligne); border-radius: var(--r-full);
  padding: .25rem .7rem; opacity: 0; transform: translateX(6px);
  transition: opacity .25s ease, transform .25s ease; pointer-events: none; white-space: nowrap;
  box-shadow: var(--ombre-s);
}
.exp-rail a:hover .exp-rail__lbl, .exp-rail a.actif .exp-rail__lbl { opacity: 1; transform: none; }
.exp-rail__pt {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  background: #fff; border: 2px solid #B9C9E8;
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}
.exp-rail a.actif .exp-rail__pt { background: var(--bleu-france); border-color: var(--bleu-france); transform: scale(1.35); box-shadow: 0 0 0 5px rgba(46,99,231,.15); }
@media (max-width: 1180px) { .exp-rail { display: none; } }

/* ---- Hero cinématique ---- */
body.exp .hero { min-height: calc(100svh - var(--header-h) - 3px); display: flex; align-items: center; }
body.exp .hero__bg { background: transparent; }
.hero__drapeau {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 600; color: var(--bleu-france);
  background: var(--bleu-france-pale); border: 1px solid #D8E3FB;
  padding: .35rem .85rem; border-radius: var(--r-full); margin-bottom: .9rem;
  font-family: var(--font-titre);
}
.mini-tricolore { display: inline-flex; width: 18px; height: 12px; border-radius: 3px; overflow: hidden; border: 1px solid #D5DFF2; flex-shrink: 0; }
.mini-tricolore i { flex: 1; } .mini-tricolore i:nth-child(1) { background: #2E63E7; } .mini-tricolore i:nth-child(2) { background: #fff; } .mini-tricolore i:nth-child(3) { background: #EF4135; }

/* indicateur de défilement */
.exp-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
  color: var(--gris); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  font-family: var(--font-titre); font-weight: 600;
}
.exp-cue__souris { width: 24px; height: 38px; border: 2px solid #AABCE0; border-radius: 14px; position: relative; }
.exp-cue__souris::after { content: ''; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--bleu-france); animation: cue-roule 1.8s ease-in-out infinite; }
@keyframes cue-roule { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@media (max-width: 760px) { .exp-cue { display: none; } }

/* ---- Chapitre 01 : le constat (déperditions) ---- */
.constat__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.6rem; }
.constat__stat {
  background: rgba(255,255,255,.85); border: 1px solid var(--ligne); border-radius: var(--r-md);
  padding: 1.1rem 1.2rem; box-shadow: var(--ombre-s);
}
.constat__stat b { font-family: var(--font-titre); font-size: 1.6rem; font-weight: 800; color: var(--bleu-france); display: block; line-height: 1.1; }
.constat__stat span { font-size: .82rem; color: var(--gris); }
@media (max-width: 760px) { .constat__stats { grid-template-columns: 1fr 1fr; } }

/* ---- Chapitre 03 : les aides (cartes dispositifs) ---- */
.grille-aides { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.carte-aide {
  background: rgba(255,255,255,.92); border: 1px solid var(--ligne); border-radius: var(--r-lg);
  padding: 1.6rem 1.4rem; box-shadow: var(--ombre-s); position: relative; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.carte-aide:hover { transform: translateY(-5px); box-shadow: var(--ombre-m); }
.carte-aide::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-tricolore); }
.carte-aide .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--bleu-france-pale); display: grid; place-items: center; margin-bottom: .9rem; }
.carte-aide .ic svg { width: 24px; height: 24px; color: var(--bleu-france); }
.carte-aide b { font-family: var(--font-titre); font-size: 1.02rem; display: block; margin-bottom: .35rem; color: var(--encre); }
.carte-aide p { font-size: .86rem; }
@media (max-width: 980px) { .grille-aides { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .grille-aides { grid-template-columns: 1fr; } }

/* ---- Parallaxe douce sur les médias ---- */
[data-parallax] { will-change: transform; }
.media-frame--parallax { overflow: hidden; }
.media-frame--parallax img { height: 116%; width: 100%; object-fit: cover; }

/* ---- Épilogue / CTA ---- */
.exp-epilogue { text-align: center; max-width: 720px; margin-inline: auto; }
.exp-epilogue .chapitre__marque { justify-content: center; }

/* fallback si WebGL indisponible : conserve un fond dégradé doux animé */
body.exp.sans-gl { background: linear-gradient(160deg, #F2F8FF 0%, #F4FBF6 50%, #FFF8EC 100%); }

