/* =====================================================================
   974cee : feuille de style
   Direction : bureau d'études énergie réunionnais. Sobre, précis, lisible.
   ===================================================================== */

@font-face { font-family: 'Atkinson Hyperlegible'; src: url('../fonts/atk-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('../fonts/atk-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('../fonts/serif-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --basalte: #0F2D4A;      /* bleu océan : titres, fonds sombres, pied de page */
  --encre: #13202E;        /* texte courant */
  --vert: #1F5F8B;         /* bleu lagon : liens, pictogrammes, états sélectionnés */
  --vert-fonce: #0F2D4A;
  --vert-pale: #E6EEF5;
  --succes: #2E7D4F;
  --flamboyant: #E0762B;   /* soleil du logo, chaleur dans les schémas */
  --action: #C2410C;       /* boutons d'action, texte blanc 5,2:1 */
  --action-fonce: #A8380A;
  --papier: #FFFFFF;
  --gris-50: #F3F6F9;
  --gris-100: #E6EBF0;
  --ligne: #D5DEE7;
  --gris-600: #4A5A6A;     /* texte secondaire 7:1 */
  --gris-sombre: #C9D6E3;  /* texte secondaire sur fond océan */
  --erreur: #B3261E;
  --alerte-fond: #FDF1E8;
  --alerte-texte: #7A2E0A;

  --sans: 'Atkinson Hyperlegible', Verdana, Arial, sans-serif;
  --titres: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --mono: 'Atkinson Hyperlegible', Verdana, Arial, sans-serif;

  --r: 10px;
  --r-grand: 14px;
  --max: 1200px;
  --gouttiere: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 9vw, 120px);
  --ombre: 0 1px 2px rgba(15,45,74,.08), 0 14px 34px -14px rgba(15,45,74,.28);
  --frise-blanche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='48' viewBox='0 0 40 48'%3E%3Crect width='40' height='5.6' fill='%23FFFFFF'/%3E%3Cpath d='M4.399999999999999%2C0 H35.6 V4.992000000000001 C35.6%2C21.450000000000003 24.368000000000002%2C28.08 20.0%2C39.0 C15.632%2C28.08 4.399999999999999%2C21.450000000000003 4.399999999999999%2C4.992000000000001 Z M24.68%2C16.38 A4.680000000000001%2C4.680000000000001 0 1 0 15.32%2C16.38 A4.680000000000001%2C4.680000000000001 0 1 0 24.68%2C16.38 Z' fill='%23FFFFFF' fill-rule='evenodd'/%3E%3C/svg%3E");
  --frise-ocean: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='48' viewBox='0 0 40 48'%3E%3Crect width='40' height='5.6' fill='%230F2D4A'/%3E%3Cpath d='M4.399999999999999%2C0 H35.6 V4.992000000000001 C35.6%2C21.450000000000003 24.368000000000002%2C28.08 20.0%2C39.0 C15.632%2C28.08 4.399999999999999%2C21.450000000000003 4.399999999999999%2C4.992000000000001 Z M24.68%2C16.38 A4.680000000000001%2C4.680000000000001 0 1 0 15.32%2C16.38 A4.680000000000001%2C4.680000000000001 0 1 0 24.68%2C16.38 Z' fill='%230F2D4A' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.1875rem; line-height: 1.65; color: var(--encre); background: var(--papier); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; display: block; }
a { color: var(--vert); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--vert-fonce); text-decoration-thickness: 2px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; color: inherit; text-wrap: balance; }
h1, h2 { font-family: var(--titres); font-weight: 600; color: var(--basalte); }
h1 { font-size: clamp(2.3rem, 4.4vw, 3.5rem); line-height: 1.1; letter-spacing: -0.012em; }
h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
.mono { font-family: var(--mono); font-size: .86em; letter-spacing: 0; }
.conteneur { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gouttiere); }
.section { padding-block: var(--section); }
.section--gris { background: var(--gris-50); }
.chapo { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--gris-600); max-width: 60ch; }
.secondaire { color: var(--gris-600); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--basalte); color: #fff; padding: 10px 16px; border-radius: var(--r); }
.skip:focus { top: 12px; color: #fff; }

/* En-tête de section : titre à gauche, texte d'appui à droite */
.tete { display: grid; gap: 16px 64px; margin-bottom: clamp(40px, 5vw, 64px); }
@media (min-width: 900px) { .tete { grid-template-columns: 5fr 6fr; align-items: end; } }
.tete h2 { max-width: 18ch; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 16px 28px; border-radius: var(--r); border: 2px solid transparent; font: inherit; font-weight: 700; font-size: 1.1rem; line-height: 1.1; text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn-action { background: var(--action); color: #fff; }
.btn-action:hover { background: var(--action-fonce); color: #fff; }
.btn-contour { background: transparent; color: var(--basalte); border-color: var(--basalte); }
.btn-contour:hover { background: var(--basalte); color: #fff; }
.btn-clair { background: #fff; color: var(--basalte); }
.btn-clair:hover { background: var(--vert-pale); color: var(--basalte); }
.btn-petit { min-height: 42px; padding: 10px 16px; font-size: .95rem; }
.lien { font-weight: 600; color: var(--basalte); text-decoration: underline; text-decoration-color: var(--ligne); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.lien:hover { color: var(--basalte); text-decoration-color: var(--action); }

/* ---------- En-tête du site ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--ligne); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand img { height: 54px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { display: inline-block; padding: 10px 12px; color: var(--basalte); text-decoration: none; font-weight: 700; font-size: 1.02rem; border-radius: 6px; }
.nav a:not(.btn):hover { background: var(--gris-50); }
.nav a[aria-current="page"] { color: var(--vert); }
.nav .btn { margin-left: 12px; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1.5px solid var(--ligne); border-radius: var(--r); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--basalte); position: relative; content: ""; transition: transform .2s ease, background-color .2s ease; }
.nav-toggle span::before { position: absolute; top: -6px; } .nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1140px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--ligne); padding: 8px var(--gouttiere) 20px; display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a:not(.btn) { padding: 14px 4px; font-size: 1.08rem; border-bottom: 1px solid var(--gris-100); border-radius: 0; }
  .nav .btn { margin: 14px 0 0; width: 100%; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 112px); }
.hero-grille { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1040px) { .hero-grille { grid-template-columns: 7fr 5fr; gap: 72px; } }
.hero h1 { max-width: 15ch; }
.hero .chapo { margin-top: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 36px; }
.faits { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 44px 0 0; padding: 0; }
.faits div { padding: 0 28px; border-left: 1px solid var(--ligne); }
.faits div:first-child { padding-left: 0; border-left: 0; }
.faits dt { font-weight: 650; font-size: 1.02rem; }
.faits dd { margin: 2px 0 0; color: var(--gris-600); font-size: .92rem; }
@media (max-width: 640px) { .faits { grid-template-columns: 1fr; gap: 14px; } .faits div { padding: 0; border: 0; } }

/* Le pré-diagnostic : document type remis au client */
.rapport { background: #fff; border: 1px solid var(--ligne); border-radius: var(--r-grand); box-shadow: var(--ombre); overflow: hidden; font-size: .94rem; }
.rapport-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 22px 16px; border-bottom: 1px solid var(--ligne); }
.rapport-tete strong { display: block; font-size: 1.02rem; font-weight: 650; }
.rapport-tete .mono { color: var(--gris-600); }
.etiquette { flex-shrink: 0; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--gris-50); color: var(--gris-600); border: 1px solid var(--ligne); }
.rapport-meta { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-bottom: 1px solid var(--ligne); }
.rapport-meta div { padding: 12px 22px; }
.rapport-meta div + div { border-left: 1px solid var(--ligne); }
.rapport-meta dt { font-size: .78rem; color: var(--gris-600); }
.rapport-meta dd { margin: 2px 0 0; font-weight: 600; }
.rapport table { width: 100%; border-collapse: collapse; }
.rapport th { text-align: left; font-weight: 500; font-size: .78rem; color: var(--gris-600); padding: 12px 22px 8px; }
.rapport td { padding: 11px 22px; border-top: 1px solid var(--gris-100); vertical-align: middle; }
.rapport td:nth-child(2) { white-space: nowrap; }
.niveau { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .86rem; white-space: nowrap; }
.niveau::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.niveau--eleve { color: var(--vert); }
.niveau--confirmer { color: var(--gris-600); }
.rapport-pied { padding: 14px 22px 18px; background: var(--gris-50); border-top: 1px solid var(--ligne); color: var(--gris-600); font-size: .88rem; }
@media (max-width: 480px) { .rapport-meta { grid-template-columns: 1fr 1fr; } .rapport-meta div:nth-child(3) { display: none; } .rapport th, .rapport td { padding-inline: 14px; } .rapport-tete, .rapport-meta div, .rapport-pied { padding-inline: 16px; } }

/* ---------- Secteurs ---------- */
.secteurs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--ligne); }
@media (min-width: 700px) { .secteurs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .secteurs { grid-template-columns: repeat(3, 1fr); } }
.secteurs li { border-bottom: 1px solid var(--ligne); }
@media (min-width: 700px) { .secteurs li:nth-child(odd) { border-right: 1px solid var(--ligne); } }
@media (min-width: 1040px) { .secteurs li:nth-child(odd) { border-right: 0; } .secteurs li:not(:nth-child(3n)) { border-right: 1px solid var(--ligne); } }
.secteur { display: grid; grid-template-columns: 40px 1fr; gap: 4px 18px; padding: 28px 28px 28px 4px; color: var(--basalte); text-decoration: none; height: 100%; transition: background-color .15s ease; }
@media (min-width: 700px) { .secteur { padding-left: 28px; } }
.secteur svg { grid-row: 1 / span 2; width: 40px; height: 40px; color: var(--vert); }
.secteur strong { font-weight: 650; font-size: 1.12rem; letter-spacing: -0.01em; }
.secteur span { color: var(--gris-600); font-size: .95rem; }
.secteur:hover { background: var(--gris-50); color: var(--basalte); }
.secteur:hover strong { text-decoration: underline; text-decoration-color: var(--action); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Étapes (vraie séquence) ---------- */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; counter-reset: etape; }
@media (min-width: 760px) { .etapes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .etapes { grid-template-columns: repeat(4, 1fr); gap: 0; } }
.etape { counter-increment: etape; position: relative; padding-top: 52px; }
@media (min-width: 1100px) { .etape { padding-right: 36px; } }
.etape::before { content: counter(etape); position: absolute; top: 0; left: 0; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--basalte); display: grid; place-items: center; font-family: var(--mono); font-size: .88rem; font-weight: 500; background: #fff; z-index: 1; }
.etape::after { content: ""; position: absolute; top: 16px; left: 32px; right: 0; height: 1px; background: var(--ligne); }
.etape:last-child::after { display: none; }
@media (max-width: 1099px) { .etape::after { display: none; } }
.etape h3 { margin-bottom: 8px; }
.etape p { color: var(--gris-600); }
.encadre { margin-top: clamp(40px, 5vw, 56px); display: grid; gap: 6px 28px; padding: 22px 26px; border-radius: var(--r); background: var(--alerte-fond); border-left: 3px solid var(--action); }
@media (min-width: 760px) { .encadre { grid-template-columns: 220px 1fr; align-items: baseline; } }
.encadre strong { font-weight: 650; color: var(--alerte-texte); }
.encadre p { color: var(--alerte-texte); }

/* ---------- Coupe technique annotée ---------- */
.coupe-grille { display: grid; gap: 40px 64px; align-items: start; }
@media (min-width: 1040px) { .coupe-grille { grid-template-columns: 7fr 5fr; } }
.coupe { background: #fff; border: 1px solid var(--ligne); border-radius: var(--r-grand); padding: clamp(12px, 2vw, 24px); }
.coupe svg { width: 100%; height: auto; }
.coupe figcaption { margin-top: 10px; font-size: .86rem; color: var(--gris-600); }
.postes-liste { list-style: none; margin: 0; padding: 0; counter-reset: poste; }
.postes-liste li { counter-increment: poste; display: grid; grid-template-columns: 28px 1fr; gap: 2px 14px; padding: 14px 0; border-top: 1px solid var(--ligne); }
.postes-liste li:last-child { border-bottom: 1px solid var(--ligne); }
.postes-liste li::before { content: counter(poste); grid-row: 1 / span 2; width: 24px; height: 24px; border-radius: 50%; background: var(--basalte); color: #fff; display: grid; place-items: center; font-family: var(--mono); font-size: .78rem; margin-top: 2px; }
.postes-liste strong { font-weight: 650; }
.postes-liste span { color: var(--gris-600); font-size: .94rem; }
.note { margin-top: 22px; font-size: .92rem; color: var(--gris-600); }

/* ---------- Engagement local ---------- */
.local { background: var(--basalte); color: #fff; }
.local h2 { max-width: 16ch; }
.local .chapo { color: var(--gris-sombre); }
.local-grille { display: grid; gap: 48px 72px; }
@media (min-width: 960px) { .local-grille { grid-template-columns: 1fr 1fr; align-items: start; } }
.engagements { list-style: none; margin: 0; padding: 0; }
.engagements li { padding: 22px 0; border-top: 1px solid rgba(255,255,255,.16); display: grid; gap: 4px; }
.engagements li:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.engagements strong { font-weight: 600; font-size: 1.08rem; }
.engagements span { color: var(--gris-sombre); }
.signature-texte { margin-top: 36px; font-size: 1.05rem; color: #fff; }
.signature-texte span { color: #F0A57F; }

/* ---------- Simulateur ---------- */
.simulateur { background: var(--gris-50); border-top: 1px solid var(--ligne); }
.sim-grille { display: grid; gap: 40px 64px; align-items: start; }
@media (min-width: 1040px) { .sim-grille { grid-template-columns: 4fr 7fr; } .sim-intro { position: sticky; top: 104px; } }
.sim-intro .chapo { margin-top: 18px; }
.coches { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.coches li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.coches li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l3.6 3.6L16 5.8' fill='none' stroke='%230E5A43' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }

/* ---------- Bandeau installateurs ---------- */
.bandeau { background: var(--vert-pale); }
.bandeau-grille { display: grid; gap: 28px 64px; align-items: center; }
@media (min-width: 900px) { .bandeau-grille { grid-template-columns: 1fr auto; } }
.bandeau h2 { max-width: 22ch; }
.bandeau p { margin-top: 14px; color: var(--gris-600); max-width: 60ch; }

/* ---------- FAQ ---------- */
.faq-grille { display: grid; gap: 32px 72px; }
@media (min-width: 960px) { .faq-grille { grid-template-columns: 4fr 7fr; } }
.faq { border-top: 1px solid var(--ligne); }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 20px 0; font-weight: 600; font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 14px; height: 14px; background: linear-gradient(var(--basalte), var(--basalte)) center/14px 1.5px no-repeat, linear-gradient(var(--basalte), var(--basalte)) center/1.5px 14px no-repeat; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--vert); }
.faq .reponse { padding: 0 0 22px; color: var(--gris-600); max-width: 66ch; display: grid; gap: 10px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--basalte); color: var(--gris-sombre); padding-block: clamp(56px, 7vw, 88px) 32px; font-size: .95rem; }
.footer-grille { display: grid; gap: 36px 48px; }
@media (min-width: 760px) { .footer-grille { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .footer-grille { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grille img { height: 60px; width: auto; }
.footer-grille p { margin-top: 16px; max-width: 32ch; }
.footer-grille h3 { color: #fff; font-size: .95rem; font-weight: 600; margin-bottom: 14px; }
.footer-grille ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-bas { margin-top: 56px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .88rem; }

/* ---------- Pages par activité ---------- */
.fil { font-size: .9rem; color: var(--gris-600); margin-bottom: 24px; }
.fil a { color: var(--gris-600); }
.fil span[aria-current] { color: var(--basalte); }
.act-grille { display: grid; gap: 40px 72px; align-items: end; }
@media (min-width: 1040px) { .act-grille { grid-template-columns: 7fr 5fr; } }
.act-grille h1 { font-size: clamp(2.3rem, 4.4vw, 3.5rem); max-width: 20ch; }
.resume { border: 1px solid var(--ligne); border-radius: var(--r-grand); padding: 24px; background: #fff; }
.resume-tete { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--ligne); }
.resume-tete svg { width: 36px; height: 36px; color: var(--vert); flex-shrink: 0; }
.resume-tete strong { font-weight: 650; }
.resume ul { list-style: none; margin: 0; padding: 0; }
.resume li { padding: 11px 0; border-bottom: 1px solid var(--gris-100); }
.resume li:last-child { border-bottom: 0; padding-bottom: 0; }
.deux { display: grid; gap: 28px 72px; }
@media (min-width: 960px) { .deux { grid-template-columns: 4fr 7fr; } }
.lignes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ligne); }
.lignes li { padding: 18px 0; border-bottom: 1px solid var(--ligne); display: grid; gap: 4px; }
@media (min-width: 700px) { .lignes li { grid-template-columns: 240px 1fr; gap: 24px; } }
.lignes strong { font-weight: 650; }
.lignes span, .lignes p { color: var(--gris-600); }
.table-travaux { width: 100%; border-collapse: collapse; }
.table-travaux th { text-align: left; font-size: .82rem; font-weight: 500; color: var(--gris-600); padding: 0 0 10px; border-bottom: 1px solid var(--basalte); }
.table-travaux td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.table-travaux td:first-child { font-weight: 600; width: 45%; }
.table-travaux td:last-child { color: var(--gris-600); }
.appel { background: var(--basalte); color: #fff; }
.appel-grille { display: grid; gap: 24px 56px; align-items: center; }
@media (min-width: 860px) { .appel-grille { grid-template-columns: 1fr auto; } }
.appel h2 { max-width: 24ch; }

/* ---------- Page installateurs ---------- */
.avantages { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 56px; border-top: 1px solid var(--ligne); }
@media (min-width: 760px) { .avantages { grid-template-columns: 1fr 1fr; } }
.avantages li { padding: 22px 0; border-bottom: 1px solid var(--ligne); }
.avantages strong { display: block; font-weight: 650; margin-bottom: 4px; }
.avantages p { color: var(--gris-600); }
.form-pros-merci h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.form-pros-merci p { margin-top: 12px; color: var(--gris-600); }

/* ---------- Pages simples ---------- */
.page-simple { padding-block: clamp(48px, 7vw, 96px); }
.page-simple h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); margin-bottom: 24px; }
.page-simple h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 44px 0 12px; }
.page-simple p, .page-simple li { max-width: 70ch; color: var(--gris-600); }
.page-simple p + p { margin-top: 12px; }
.a-completer { background: var(--alerte-fond); color: var(--alerte-texte); padding: 1px 5px; border-radius: 3px; font-weight: 600; }

/* ---------- Bouton WhatsApp ---------- */
.whatsapp { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border-radius: 99px; background: var(--vert); color: #fff; text-decoration: none; font-weight: 600; box-shadow: var(--ombre); }
.whatsapp:hover { background: var(--vert-fonce); color: #fff; }
@media (max-width: 520px) { .whatsapp span { display: none; } .whatsapp { padding: 14px; } }

/* =====================================================================
   Simulateur et formulaires (classes .cee-*)
   ===================================================================== */
.cee { background: #fff; border: 1px solid var(--ligne); border-radius: var(--r-grand); padding: clamp(22px, 3.5vw, 40px); box-shadow: var(--ombre); min-width: 0; line-height: 1.5; }
.cee h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.cee h3 { font-size: 1.08rem; }
.cee-progress { margin: 0 0 28px; }
.cee-progress-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.cee-progress-track span { height: 8px; border-radius: 2px; background: var(--gris-100); transition: background-color .25s ease; }
.cee-progress-track span.is-done { background: var(--vert); }
.cee-progress-label { margin-top: 10px; font-size: 1rem; font-weight: 700; color: var(--gris-600); }
.cee-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.cee-step > legend { padding: 0; margin: 0 0 6px; font-family: var(--titres); font-weight: 600; color: var(--basalte); font-size: clamp(1.5rem, 2.6vw, 1.8rem); letter-spacing: -0.01em; line-height: 1.2; }
.cee-step > legend:focus { outline: none; }
.cee-help { color: var(--gris-600); font-size: .96rem; margin-bottom: 18px; }
.cee-group { margin-top: 24px; }
.cee-group-title { font-weight: 600; margin-bottom: 10px; }
.cee-choices { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cee-choices--2 { grid-template-columns: 1fr 1fr; } }
.cee-choice { position: relative; display: block; cursor: pointer; }
.cee-choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cee-choice-body { display: block; height: 100%; background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); padding: 13px 14px 13px 46px; position: relative; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.cee-choice-body::before { content: ""; position: absolute; left: 15px; top: 15px; width: 18px; height: 18px; border: 1.5px solid var(--gris-600); border-radius: 50%; background: #fff; transition: all .15s ease; }
.cee-choice--check .cee-choice-body::before { border-radius: 4px; }
.cee-choice-body strong { display: block; font-weight: 600; }
.cee-choice-body small { display: block; color: var(--gris-600); font-size: .9rem; margin-top: 2px; }
.cee-choice:hover .cee-choice-body { border-color: var(--gris-600); }
.cee-choice input:checked + .cee-choice-body { border-color: var(--vert); box-shadow: inset 0 0 0 1px var(--vert); background: #FAFCFB; }
.cee-choice input:checked + .cee-choice-body::before { border-color: var(--vert); background: var(--vert); box-shadow: inset 0 0 0 3.5px #fff; }
.cee-choice--check input:checked + .cee-choice-body::before { box-shadow: none; background: var(--vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.cee-choice input:focus-visible + .cee-choice-body { outline: 2px solid var(--action); outline-offset: 2px; }
.cee-fields { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cee-fields--2 { grid-template-columns: 1fr 1fr; } .cee-span { grid-column: 1 / -1; } }
.cee-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cee-field > label, .cee-label { font-weight: 600; font-size: .96rem; }
.cee-opt { font-weight: 400; color: var(--gris-600); }
.cee-input { width: 100%; min-height: 54px; padding: 12px 14px; font-size: 1.05rem; font: inherit; color: var(--basalte); background: #fff; border: 1px solid #C5CEC9; border-radius: var(--r); transition: border-color .15s ease, box-shadow .15s ease; }
textarea.cee-input { min-height: 100px; resize: vertical; }
select.cee-input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%231B2320' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.cee-input:hover { border-color: var(--gris-600); }
.cee-input:focus { outline: none; border-color: var(--vert); box-shadow: 0 0 0 3px rgba(14,90,67,.18); }
.cee-input[aria-invalid="true"] { border-color: var(--erreur); }
.cee-err { color: var(--erreur); font-size: .9rem; font-weight: 600; }
.cee-err:empty { display: none; }
.cee-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cee-q { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.cee-q-label { display: block; padding: 0; font-weight: 600; margin-bottom: 6px; }
.cee-q-help { color: var(--gris-600); font-size: .9rem; margin: -2px 0 8px; }
.cee-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cee-pill { position: relative; display: inline-block; cursor: pointer; }
.cee-pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cee-pill span { display: inline-flex; align-items: center; min-height: 52px; padding: 12px 18px; border: 1px solid #C5CEC9; border-radius: var(--r); background: #fff; font-weight: 500; transition: all .15s ease; }
.cee-pill:hover span { border-color: var(--gris-600); }
.cee-pill input:checked + span { background: var(--vert); border-color: var(--vert); color: #fff; }
.cee-pill input:focus-visible + span { outline: 2px solid var(--action); outline-offset: 2px; }
.cee-note { margin-top: 14px; padding: 13px 15px; border-radius: var(--r); font-size: .95rem; background: var(--gris-50); border-left: 3px solid var(--vert); }
.cee-note--warn { background: var(--alerte-fond); border-left-color: var(--action); color: var(--alerte-texte); }
.cee-consent { margin-top: 22px; }
.cee-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 30px; }
.cee-btn { font: inherit; font-weight: 700; min-height: 56px; padding: 14px 26px; font-size: 1.08rem; border-radius: var(--r); border: 1.5px solid transparent; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: background-color .15s ease, border-color .15s ease; }
.cee-btn--primary { background: var(--action); color: #fff; }
.cee-btn--primary:hover { background: var(--action-fonce); color: #fff; }
.cee-btn--ghost { background: #fff; color: var(--basalte); border-color: #C5CEC9; }
.cee-btn--ghost:hover { border-color: var(--basalte); }
.cee-btn[disabled] { opacity: .6; cursor: progress; }
.cee-actions .cee-btn--primary { margin-left: auto; }
.cee-result-head p { margin-top: 10px; color: var(--gris-600); max-width: 62ch; }
.cee-send { margin-top: 22px; padding: 18px 20px; border-radius: var(--r); background: var(--basalte); color: #fff; display: grid; gap: 14px; justify-items: start; }
.cee-send p { max-width: 52ch; }
.cee-cards { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.cee-card { background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); padding: 16px 18px; }
.cee-card h3 { font-size: 1.06rem; }
.cee-card > p { margin-top: 4px; color: var(--gris-600); font-size: .95rem; }
.cee-chip { display: inline-block; margin-bottom: 8px; padding: 2px 8px; border-radius: 4px; background: var(--gris-50); color: var(--gris-600); font-size: .8rem; font-weight: 500; }
.cee-badge { display: inline-block; margin: 0 0 8px 6px; padding: 2px 8px; border-radius: 4px; font-size: .8rem; font-weight: 600; }
.cee-badge--fort { background: var(--vert-pale); color: var(--vert); }
.cee-badge--moyen { background: var(--gris-50); color: var(--gris-600); }
.cee-reasons { margin: 8px 0 0; padding-left: 18px; font-size: .94rem; }
.cee-reasons li { margin-top: 3px; }
.cee-empty { background: var(--gris-50); border-radius: var(--r); padding: 16px 18px; margin-top: 22px; }
.cee-code { font-family: var(--mono); font-size: .8rem; color: var(--gris-600); margin-left: 8px; font-weight: 400; }
.cee-checks { margin: 8px 0 0; padding-left: 20px; }
.cee-checks li { margin-top: 6px; }
.cee-debug { margin-top: 22px; font-size: .85rem; }
.cee-debug pre { overflow: auto; max-height: 280px; background: var(--gris-50); padding: 12px; border-radius: var(--r); }
.cee-form-error { margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =====================================================================
   v5 : hero photo, frises de lambrequins, lisibilité renforcée
   ===================================================================== */
.frise-haut { position: relative; }
.frise-haut::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30px; background: var(--frise-blanche) repeat-x; background-size: 25px 30px; z-index: 2; pointer-events: none; }
.site-footer.frise-haut { padding-top: clamp(80px, 9vw, 112px); }
.local.frise-haut, .appel.frise-haut { padding-top: calc(var(--section) + 20px); }

.hero-photo { position: relative; min-height: min(78vh, 700px); display: flex; align-items: center; background: var(--basalte); color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,45,74,.86) 0%, rgba(15,45,74,.62) 36%, rgba(15,45,74,.12) 64%, rgba(15,45,74,0) 80%); }
@media (max-width: 860px) { .hero-photo::after { background: linear-gradient(180deg, rgba(15,45,74,.45) 0%, rgba(15,45,74,.82) 50%, rgba(15,45,74,.92) 100%); } }
.hero-contenu { position: relative; z-index: 1; padding-block: 96px 72px; }
.hero-texte { max-width: 620px; }
.hero-photo h1 { color: #fff; font-size: clamp(2.4rem, 4.8vw, 3.8rem); }
.hero-photo .chapo { color: #E6EEF5; margin-top: 22px; font-size: clamp(1.15rem, 1.6vw, 1.35rem); max-width: 34ch; }
.hero-photo .btn-action { margin-top: 34px; min-height: 64px; padding: 18px 34px; font-size: 1.2rem; }
.rassurance { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-weight: 700; }
.rassurance li { display: flex; gap: 10px; align-items: center; }
.rassurance li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='%232E7D4F' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.credit { position: absolute; right: 16px; bottom: 12px; z-index: 1; margin: 0; font-size: .8rem; color: rgba(255,255,255,.8); }
.credit a { color: inherit; }
.contact-rapide { display: none !important; }
.nav a { white-space: nowrap; }
.etape::before { width: 44px; height: 44px; font-size: 1.2rem; font-weight: 700; font-family: var(--sans); border-width: 2px; }
.etape { padding-top: 64px; }
.etape::after { top: 22px; left: 44px; }
.postes-liste li::before { width: 28px; height: 28px; font-size: .9rem; font-family: var(--sans); font-weight: 700; }
.faq summary { font-size: 1.12rem; font-weight: 700; padding: 22px 0; }
.secteur strong { font-size: 1.2rem; font-weight: 700; }
.hero-img { color: transparent; font-size: 0; }
