/* =============================================================
   proenr.eu — landing photovoltaique
   Aucune police externe : le site ne charge rien depuis un tiers,
   ce qui evite tout transfert d'adresse IP avant consentement.
   ============================================================= */

:root {
  --blanc:     #ffffff;
  --brume:     #f6f8f5;
  --nuit:      #0d2b2e;
  --nuit-clair:#164043;
  --or:        #f2a900;
  --or-fonce:  #c98a00;
  --or-pale:   #fff4dc;
  --encre:     #11262a;
  --doux:      #5c7174;
  --ligne:     #e3e9e5;
  --erreur:    #b3261e;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 10px;
  --ombre: 0 1px 2px rgba(13,43,46,.05), 0 12px 32px -12px rgba(13,43,46,.18);
  --entree: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--nuit); }

svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--nuit); color: #fff; padding: 12px 18px;
}
.skip:focus { left: 8px; top: 8px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.wrap-etroit { max-width: 760px; }

/* ---------- Titres ---------- */

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.018em; line-height: 1.15; }

h1 { font-size: clamp(31px, 6.2vw, 52px); }
h2 { font-size: clamp(26px, 4.4vw, 38px); }
h3 { font-size: 19px; letter-spacing: -.01em; }

.section-intro {
  margin: 14px 0 0;
  color: var(--doux);
  max-width: 62ch;
  font-size: 17px;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font: inherit; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--entree), transform .18s var(--entree), border-color .18s;
}
.btn-lg { padding: 17px 28px; font-size: 17px; }
.btn-sm { padding: 10px 16px; font-size: 15px; }

.btn-or { background: var(--or); color: #241800; box-shadow: 0 6px 18px -8px rgba(242,169,0,.9); }
.btn-or:hover { background: #ffb51a; transform: translateY(-1px); }

.btn-fantome { background: transparent; color: #eaf3ef; border-color: rgba(234,243,239,.42); }
.btn-fantome:hover { background: rgba(255,255,255,.09); }

.btn-neutre { background: var(--blanc); color: var(--nuit); border-color: var(--ligne); }
.btn-neutre:hover { border-color: #b9c6c1; }

.btn:focus-visible, a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--or); outline-offset: 2px;
}

.lien-bouton {
  background: none; border: 0; padding: 0; font: inherit;
  color: inherit; text-decoration: underline; cursor: pointer;
}

/* ---------- En-tete ---------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--ligne);
}

.header-inner { display: flex; align-items: center; gap: 16px; height: 68px; }

.logo { text-decoration: none; margin-right: auto; }
.logo-mark {
  display: inline-block;
  padding: 7px 13px;
  border: 2px solid var(--nuit);
  border-radius: 6px;
  font-weight: 800; letter-spacing: .06em;
  color: var(--nuit);
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; font-size: 15.5px; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--or-fonce); }

.burger { display: none; }

@media (max-width: 880px) {
  .burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background: none; border: 1px solid var(--ligne); border-radius: 8px; cursor: pointer;
  }
  .burger-bars, .burger-bars::before, .burger-bars::after {
    display: block; width: 20px; height: 2px; background: var(--nuit); border-radius: 2px;
  }
  .burger-bars { position: relative; }
  .burger-bars::before, .burger-bars::after { content: ""; position: absolute; left: 0; }
  .burger-bars::before { top: -6px; }
  .burger-bars::after  { top: 6px; }
  .burger[aria-expanded="true"] .burger-bars { background: transparent; }
  .burger[aria-expanded="true"] .burger-bars::before { top: 0; transform: rotate(45deg); }
  .burger[aria-expanded="true"] .burger-bars::after  { top: 0; transform: rotate(-45deg); }

  .nav {
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--blanc);
    border-bottom: 1px solid var(--ligne);
    padding: 8px 22px 20px;
    display: none;
  }
  .nav.ouvert { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--ligne); font-size: 17px; }
  .nav a.btn { margin-top: 14px; border-bottom: 0; }
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(120% 90% at 88% 8%, rgba(242,169,0,.28) 0%, rgba(242,169,0,0) 58%),
    linear-gradient(168deg, #0d2b2e 0%, #123a3d 62%, #0d2b2e 100%);
  color: #eef5f1;
  padding: 56px 0 64px;
}

.hero-inner { display: grid; gap: 40px; }

.hero h1 { color: #fff; max-width: 15ch; }

.hero-sous {
  margin: 20px 0 0;
  color: #bcd2cd;
  font-size: 17.5px;
  max-width: 54ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.reassurance-hero {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  font-size: 15px; color: #a9c4bd;
}
.reassurance-hero li { display: flex; align-items: center; gap: 9px; }
.reassurance-hero svg { width: 19px; height: 19px; color: var(--or); flex: 0 0 auto; }

.hero-visuel img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.6);
}

.placeholder-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: #8fa9a4;
}
.placeholder-note code { background: rgba(255,255,255,.1); padding: 1px 5px; border-radius: 4px; }

@media (min-width: 900px) {
  .hero { padding: 84px 0 92px; }
  .hero-inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; }
}

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section-clair { background: var(--brume); }
.section-sombre { background: var(--nuit); color: #e7efec; }
.section-sombre h2, .section-sombre h3 { color: #fff; }
.section-sombre .section-intro { color: #a9c4bd; }

/* ---------- Etapes ---------- */

.etapes {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; gap: 26px;
}
.etapes li {
  position: relative;
  padding: 28px 24px 26px;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 14px;
}
.etape-num {
  position: absolute; top: -15px; left: 24px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--or); color: #241800;
  border-radius: 50%;
  font-weight: 800; font-size: 15px;
}
.etape-ico { width: 30px; height: 30px; color: var(--nuit-clair); margin-bottom: 14px; }
.etapes h3 { margin-bottom: 8px; }
.etapes p { margin: 0; color: var(--doux); font-size: 16px; }

@media (min-width: 820px) { .etapes { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Avantages ---------- */

.avantages { margin-top: 40px; display: grid; gap: 2px; background: rgba(255,255,255,.09); }
.avantages article { background: var(--nuit); padding: 26px 4px 26px 0; }
.avantages h3 { margin-bottom: 8px; font-size: 18px; }
.avantages p { margin: 0; color: #a9c4bd; font-size: 16px; max-width: 46ch; }

@media (min-width: 780px) {
  .avantages { grid-template-columns: 1fr 1fr; column-gap: 44px; }
  .avantages article { padding-right: 20px; }
}

/* ---------- Formulaire ---------- */

.section-form { background: var(--brume); }

.carte-form {
  margin-top: 32px;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 16px;
  box-shadow: var(--ombre);
  padding: 10px 22px 30px;
}

.progression {
  list-style: none; display: flex; gap: 6px;
  margin: 0 -22px 8px; padding: 18px 22px 20px;
  border-bottom: 1px solid var(--ligne);
  font-size: 14.5px; color: var(--doux);
}
.progression li { display: flex; align-items: center; gap: 8px; flex: 1 1 0; min-width: 0; }
.progression li span {
  width: 26px; height: 26px; flex: 0 0 auto;
  display: grid; place-items: center;
  border: 1px solid var(--ligne); border-radius: 50%;
  font-size: 13px; font-weight: 700;
  transition: background-color .2s, color .2s, border-color .2s;
}
.progression li.actif { color: var(--encre); font-weight: 600; }
.progression li.actif span { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.progression li.faite span { background: var(--or); border-color: var(--or); color: #241800; }

@media (max-width: 560px) {
  .progression li { font-size: 0; gap: 0; justify-content: center; }
  .progression li span { font-size: 13px; }
  .progression li.actif { font-size: 14.5px; gap: 8px; }
}

.etape { padding-top: 12px; }
.etape[hidden] { display: none; }
.etape.entre { animation: glisse .32s var(--entree) both; }

@keyframes glisse {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.q { border: 0; margin: 0; padding: 20px 0; }
fieldset.q { padding: 20px 0; }
.q legend, .champ > label {
  padding: 0; font-size: 16px; font-weight: 600; display: block; margin-bottom: 12px;
}
.champ > label { font-weight: 500; font-size: 14.5px; color: var(--doux); margin-bottom: 7px; }

.choix { display: flex; flex-wrap: wrap; gap: 10px; }
.choix-grille { display: grid; grid-template-columns: 1fr 1fr; }

.choix label {
  flex: 1 1 auto; min-width: 120px;
  position: relative; display: block;
  padding: 14px 16px;
  border: 1px solid var(--ligne); border-radius: var(--r);
  background: var(--blanc); cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.choix label:hover { border-color: #b9c6c1; }
.choix input { position: absolute; opacity: 0; width: 0; height: 0; }
.choix label:has(input:checked) {
  border-color: var(--or); background: var(--or-pale);
  box-shadow: inset 0 0 0 1px var(--or);
}
.choix label:has(input:checked) span { font-weight: 600; }
.choix label:has(input:focus-visible) { outline: 3px solid var(--or); outline-offset: 2px; }

.rangee { display: flex; flex-wrap: wrap; gap: 16px; }
.rangee > .champ, .rangee > .q { flex: 1 1 200px; padding-top: 0; }
.champ-cp { flex: 0 0 140px; }

input[type=text], input[type=tel], input[type=email], select {
  width: 100%; font: inherit; color: var(--encre);
  padding: 14px 15px;
  border: 1px solid var(--ligne); border-radius: var(--r);
  background: var(--blanc);
  transition: border-color .15s;
}
select:disabled { color: var(--doux); background: #f4f6f4; }
input:focus, select:focus { border-color: var(--nuit); }

.err { display: none; margin: 9px 0 0; font-size: 14.5px; color: var(--erreur); }
.q.invalide .err, [data-field].invalide > .err { display: block; }
.q.invalide input, .q.invalide select { border-color: var(--erreur); }

.nav-etapes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.nav-etapes .btn-or { flex: 1 1 auto; }

.form-status { margin: 14px 0 0; font-size: 15px; color: var(--erreur); }

/* ---------- Agenda ---------- */

.rdv-intro { margin: 0 0 18px; font-weight: 600; }

.agenda-chargement, .agenda-vide { color: var(--doux); font-size: 15px; margin: 0; }

.agenda-jours {
  display: flex; gap: 8px; overflow-x: auto;
  padding-bottom: 10px; margin-bottom: 18px;
  scrollbar-width: thin;
}
.agenda-jour {
  flex: 0 0 auto; min-width: 92px;
  padding: 11px 14px;
  border: 1px solid var(--ligne); border-radius: var(--r);
  background: var(--blanc); cursor: pointer; font: inherit;
  text-align: center; line-height: 1.3;
}
.agenda-jour b { display: block; font-size: 15px; }
.agenda-jour small { color: var(--doux); font-size: 13px; }
.agenda-jour[aria-pressed="true"] {
  border-color: var(--nuit); background: var(--nuit); color: #fff;
}
.agenda-jour[aria-pressed="true"] small { color: #a9c4bd; }

.agenda-heures { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.agenda-heure {
  padding: 12px 6px;
  border: 1px solid var(--ligne); border-radius: 8px;
  background: var(--blanc); cursor: pointer; font: inherit; font-weight: 500;
}
.agenda-heure:hover { border-color: #b9c6c1; }
.agenda-heure[aria-pressed="true"] {
  border-color: var(--or); background: var(--or-pale);
  box-shadow: inset 0 0 0 1px var(--or); font-weight: 700;
}

.agenda-externe { display: block; margin-top: 10px; }

/* ---------- Consentements ---------- */

.consentements { border-top: 1px solid var(--ligne); margin-top: 8px; }

.case { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; }
.case + .case { margin-top: 16px; }
.case input { margin: 3px 0 0; width: 19px; height: 19px; flex: 0 0 auto; accent-color: var(--nuit); }
.case-facultative { color: var(--doux); }
.case em { font-style: normal; color: var(--doux); }

.mini { margin: 18px 0 0; font-size: 13.5px; color: var(--doux); }

/* ---------- Confirmation ---------- */

.confirmation { padding: 30px 0 12px; text-align: left; }
.conf-ico {
  width: 48px; height: 48px; color: var(--or); stroke-width: 2.2;
  margin-bottom: 16px;
}
.conf-rdv {
  margin: 14px 0 0; padding: 16px 18px;
  background: var(--or-pale); border-radius: var(--r);
  font-weight: 600;
}
.conf-recap {
  margin: 22px 0 0; padding: 0;
  display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 8px 20px;
  font-size: 15.5px;
}
.conf-recap dt { color: var(--doux); }
.conf-recap dd { margin: 0; }
.conf-suite { margin: 24px 0 0; color: var(--doux); }

/* ---------- Reassurance ---------- */

.chiffres {
  margin: 36px 0 40px;
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.chiffres div { border-left: 3px solid var(--or); padding-left: 16px; }
.chiffres strong { display: block; font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.chiffres span { color: var(--doux); font-size: 15px; }

.avis { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.avis blockquote {
  margin: 0; padding: 24px;
  background: var(--brume); border-radius: 14px;
}
.avis p { margin: 0 0 14px; font-size: 16px; }
.avis cite { font-style: normal; font-size: 14.5px; color: var(--doux); }

.logos-titre { margin: 44px 0 14px; font-weight: 600; }
.logos {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.logos li {
  padding: 18px 26px;
  border: 1px dashed var(--ligne); border-radius: 10px;
  color: var(--doux); font-size: 14.5px;
}

/* ---------- FAQ ---------- */

.faq { margin-top: 32px; border-top: 1px solid var(--ligne); }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 20px 40px 20px 0;
  position: relative;
  font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 27px;
  width: 11px; height: 11px;
  border-right: 2px solid var(--or-fonce); border-bottom: 2px solid var(--or-fonce);
  transform: rotate(45deg); transition: transform .2s var(--entree);
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq details p { margin: 0 0 22px; color: var(--doux); max-width: 66ch; }

/* ---------- CTA final ---------- */

.cta-final {
  background: linear-gradient(150deg, #123a3d, #0d2b2e);
  color: #eef5f1;
  padding: 68px 0 72px;
  text-align: center;
}
.cta-final h2 { color: #fff; max-width: 22ch; margin: 0 auto; }
.cta-final p { color: #a9c4bd; margin: 14px 0 28px; }

/* ---------- CTA collant ---------- */

.cta-collant {
  position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 55;
  display: none; align-items: center; justify-content: center;
  padding: 16px;
  background: var(--or); color: #241800;
  border-radius: var(--r); font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 26px -8px rgba(13,43,46,.5);
}
@media (max-width: 760px) {
  .cta-collant.visible { display: flex; }
  body.page-accueil { padding-bottom: 0; }
}

/* ---------- Pied de page ---------- */

.site-footer { background: var(--nuit); color: #b9cfca; padding: 56px 0 28px; font-size: 15px; }
.site-footer a { color: #e2ede9; }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.2fr .8fr 1.2fr; gap: 48px; } }
.footer-nom { font-weight: 700; color: #fff; font-size: 17px; margin: 0 0 10px; }
.footer-titre { font-weight: 600; color: #fff; margin: 0 0 12px; }
.site-footer p { margin: 0 0 10px; }
.footer-legal-id { font-size: 13.5px; color: #8fa9a4; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-bas {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px; color: #8fa9a4;
}

/* ---------- Bandeau de consentement ---------- */

.consent-fond {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(9,26,28,.5);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 14px;
}
.consent-boite {
  width: 100%; max-width: 720px;
  background: var(--blanc); border-radius: 16px;
  padding: 26px 24px 22px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.5);
  max-height: 88vh; overflow-y: auto;
}
.consent-boite h2 { font-size: 21px; margin-bottom: 10px; }
.consent-boite p { margin: 0 0 16px; font-size: 15px; color: var(--doux); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-actions .btn { flex: 1 1 160px; }
.consent-detail { margin-top: 20px; border-top: 1px solid var(--ligne); padding-top: 18px; }
.consent-detail .case { margin-bottom: 16px; }
.consent-detail .case span b { display: block; color: var(--encre); font-weight: 600; }
.consent-detail .case span small { color: var(--doux); font-size: 14px; }

@media (min-width: 620px) {
  .consent-fond { align-items: center; }
}

/* ---------- Pot de miel ---------- */

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pages de contenu ---------- */

.page-texte { padding: 56px 0 72px; }
.page-texte h1 { font-size: clamp(28px, 5vw, 40px); max-width: 20ch; }
.page-texte h2 { font-size: 21px; margin: 38px 0 10px; }
.page-texte p, .page-texte li { max-width: 68ch; color: #2a3d3f; }
.page-texte ul { padding-left: 20px; }
.page-texte li { margin-bottom: 8px; }
.page-texte .maj { color: var(--doux); font-size: 14.5px; }

/* ---------- Mouvement reduit ---------- */

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