:root {
  --ink: #10221f;
  --muted: #5c6b66;
  --line: #d8e2dd;
  --paper: #f8fbf4;
  --white: #ffffff;
  --green: #07533f;
  --green-2: #0b7657;
  --sun: #f7c52b;
  --sky: #dceff8;
  --blue: #1669a8;
  --shadow: 0 18px 48px rgba(10, 38, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* le header est fixe : evite que les ancres passent dessous */
section[id],
footer[id] {
  scroll-margin-top: 128px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(216, 226, 221, 0.75);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green);
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-logo {
  width: 52px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(10, 38, 31, 0.14));
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(10px, 2vw, 24px);
  color: #243833;
  font-size: 0.94rem;
  font-weight: 700;
}

.main-nav a {
  padding: 8px 0;
}

.main-nav a:hover {
  color: var(--green-2);
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: stretch;
  gap: clamp(14px, 2.4vw, 26px);
  padding: 118px clamp(18px, 5vw, 72px) clamp(18px, 2vw, 26px);
  background: var(--green);
}

.hero-content {
  color: var(--white);
}

.hero-card {
  min-width: 0;
  min-height: 360px;
  border-radius: 0;
  box-shadow: none;
}

.hero-content.hero-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: clamp(14px, 1.8vw, 22px) clamp(26px, 4vw, 48px);
  background: transparent;
}

.hero-content.hero-card::after {
  content: "";
  position: absolute;
  right: 0;
  top: clamp(26px, 4vw, 48px);
  bottom: clamp(26px, 4vw, 48px);
  width: 4px;
  background: var(--blue);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 20px);
  margin-bottom: 24px;
}

.hero-logo {
  width: clamp(101px, 10.4vw, 135px);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

/*
  Signature de marque sur fond sombre : deux majuscules,
  "Yana" en blanc et "Watt" en jaune solaire.
*/
.brand-mark {
  color: var(--white);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.brand-mark .w {
  color: var(--sun);
}

.hero-brand .brand-mark {
  font-size: clamp(2.28rem, 4.16vw, 3.45rem);
  line-height: 1;
}

.hero-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 24px);
  padding: clamp(16px, 3vw, 40px);
  background: transparent;
}

.hero-media img {
  width: min(100%, 520px);
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.32);
}

.hero-media .hero-actions {
  width: min(100%, 520px);
  margin-top: 0;
  flex-wrap: nowrap;
}

.hero-media .hero-actions .button {
  flex: 1 1 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact .eyebrow,
.hero-content .eyebrow,
.decennale .eyebrow {
  color: var(--sun);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.05rem, 4.2vw, 4.2rem);
}

h1 .h1-accent {
  color: var(--sun);
}

/*
  L'ancien "eyebrow" du hero est passe a l'interieur du h1 : le titre de la
  page contient ainsi la requete cible, sans rien changer visuellement.
*/
.h1-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.65rem);
}

h3 {
  font-size: 1.16rem;
}

.hero-content p:not(.eyebrow) {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.98rem, 1.4vw, 1.14rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  background: var(--sun);
  color: #21312d;
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(220, 239, 248, 0.72);
}

.section,
.section-band {
  padding: clamp(64px, 9vw, 118px) clamp(18px, 5vw, 72px);
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.intro {
  background: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  align-items: center;
  gap: clamp(34px, 7vw, 90px);
}

.intro-grid-single {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
  text-align: center;
}

.intro-grid-single p {
  margin-left: auto;
  margin-right: auto;
}

.intro-grid p:not(.eyebrow),
.publics p {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.12rem;
}

.intro-grid img {
  justify-self: center;
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.16));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.solution-card {
  min-height: 218px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(16, 34, 31, 0.06);
}

.solution-card.wide {
  grid-column: span 2;
  background: var(--green);
  color: var(--white);
}

.solution-card span {
  color: var(--sun);
  font-weight: 900;
}

.solution-card p {
  margin: 22px 0 0;
  color: var(--muted);
}

.solution-card.wide p {
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- Qualification QualiPV ---------- */

.quali {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.quali-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  align-items: start;
  gap: clamp(34px, 5vw, 68px);
}

.quali h2 strong {
  color: var(--green-2);
}

.lead {
  max-width: 640px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.check-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--ink);
  font-weight: 600;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-2)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

/* Sous-titre « Autoconsommation ou revente totale » de la section QualiPV. */
.quali-sub {
  margin-top: 34px;
}

.scale-card {
  padding: clamp(24px, 3vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.scale-title {
  margin: 0 0 20px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
}

.scale {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
  counter-reset: none;
}

.scale li {
  display: grid;
  gap: 4px;
}

.scale-power {
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--green);
}

.scale-label {
  color: var(--muted);
  font-size: 0.94rem;
}

.scale-bar {
  height: 8px;
  margin-top: 4px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}

.scale-bar::before {
  content: "";
  display: block;
  width: var(--fill, 0%);
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green-2), var(--sun));
}

.scale-foot {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.96rem;
}

/* ---------- Tarifs ---------- */

.tarifs {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.tarif-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(34px, 4vw, 48px);
}

/* mention des projets au-dela de 9 kWc, sous les trois paliers */
.tarif-more {
  margin: 22px 0 0;
  padding: 18px 20px;
  border-radius: 10px;
  border-left: 5px solid var(--green-2);
  background: var(--paper);
  color: var(--muted);
}

.tarif-more strong {
  color: var(--ink);
}

.tarif-more a {
  color: var(--green-2);
  font-weight: 800;
  text-decoration: underline;
  white-space: nowrap;
}

/*
  Badge en ruban a cheval sur le bord haut : hors flux, donc les titres
  "3 kWc", "6 kWc"... restent alignes d'une carte a l'autre.
*/
.tarif-badge {
  position: absolute;
  top: -12px;
  left: clamp(24px, 3vw, 32px);
  margin: 0;
  padding: 5px 12px;
  border-radius: 99px;
  background: var(--sun);
  color: #21312d;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tarif-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 32px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.tarif-power {
  margin: 0;
  color: var(--green);
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-weight: 900;
  line-height: 1;
}

.tarif-target {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tarif-cascade {
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}

.tarif-cascade > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.tarif-cascade dt {
  color: var(--muted);
  font-size: 0.92rem;
}

.tarif-cascade dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.tarif-cascade .prime dd {
  color: var(--green-2);
}

/* le cout net est le chiffre qui doit accrocher l'oeil : pastille verte */
.tarif-cascade .net {
  align-items: center;
  margin-top: 8px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--green);
  box-shadow: 0 12px 26px rgba(7, 83, 63, 0.3);
}

.tarif-cascade .net dt {
  color: var(--white);
  font-weight: 800;
}

.tarif-cascade .net dd {
  color: var(--white);
  font-size: 1.55rem;
  font-weight: 900;
}

.tarif-cash {
  margin-top: 22px;
  padding: clamp(22px, 3vw, 30px);
  border-radius: 12px;
  border-left: 5px solid var(--sun);
  background: var(--sky);
}

.tarif-cash-title {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 900;
}

.tarif-cash p:not(.tarif-cash-title) {
  margin: 0;
  max-width: 800px;
  color: #3c4f4a;
}

/*
  Explication pedagogique du financement. Volontairement sans taux, sans
  mensualite et sans organisme nomme : c'est de l'information, pas une offre
  de credit, donc pas de mentions obligatoires ni d'immatriculation requise.
*/
.tarif-finance {
  margin-top: 18px;
  padding: clamp(22px, 3vw, 30px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.tarif-finance-title {
  margin: 0 0 10px;
  font-size: 1.12rem;
  font-weight: 900;
}

.tarif-finance p:not(.tarif-finance-title) {
  margin: 0;
  max-width: 800px;
  color: var(--muted);
}

.tarif-finance strong {
  color: var(--ink);
}

.tarif-finance-tip {
  margin-top: 16px !important;
  padding: 14px 16px;
  border-radius: 8px;
  border-left: 4px solid var(--green-2);
  background: var(--white);
  font-size: 0.94rem;
}

.tarif-finance-foot {
  margin-top: 16px !important;
  font-size: 0.88rem;
}

.tarif-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(34px, 4vw, 48px);
}

.tarif-detail h3 {
  margin-bottom: 20px;
  font-size: 1.14rem;
}

.cross-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.cross-list li {
  position: relative;
  padding-left: 34px;
  color: var(--muted);
}

.cross-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--line)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6b66' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.tarif-note {
  margin: clamp(28px, 3vw, 38px) 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.finance-btn {
  width: 100%;
  margin-top: 16px;
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 44px;
}

.finance-btn:hover {
  background: var(--green);
  color: var(--white);
}

/* ---------- Popup de simulation du financement ---------- */

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 40px);
}

body.modal-ouverte {
  overflow: hidden;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 29, 25, 0.72);
  backdrop-filter: blur(3px);
}

.modal-box {
  position: relative;
  width: min(760px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: clamp(24px, 4vw, 44px);
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.42);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--line);
}

.modal-box h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

#fin-power {
  color: var(--green-2);
}

.fin-intro {
  margin: 12px 0 0;
  color: var(--muted);
}

.fin-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 26px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.fin-control label,
.fin-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.86rem;
  font-weight: 800;
}

#fin-taeg-out {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: 99px;
  background: var(--green);
  color: var(--white);
  font-size: 0.92rem;
}

#fin-taeg {
  width: 100%;
  accent-color: var(--green-2);
}

.fin-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.fin-durations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fin-durations button {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
}

.fin-durations button:hover {
  border-color: var(--green-2);
}

.fin-durations button.is-active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

/* frise verticale des 4 moments du financement */
.fin-timeline {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.fin-step {
  position: relative;
  padding: 16px 0 16px 30px;
  border-left: 3px solid var(--line);
}

.fin-step::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 22px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--line);
}

.fin-step.is-prime {
  border-left-color: var(--sun);
}

.fin-step.is-prime::before {
  border-color: var(--sun);
  background: var(--sun);
}

.fin-step.is-final {
  border-left-color: var(--green);
}

.fin-step.is-final::before {
  border-color: var(--green);
  background: var(--green);
}

.fin-when {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fin-headline {
  margin: 6px 0 0;
  font-size: 1.12rem;
  font-weight: 700;
}

.fin-headline strong {
  color: var(--green);
  font-size: 1.45rem;
  font-weight: 900;
}

.fin-step.is-prime .fin-headline strong {
  color: #b5820a;
}

.fin-detail {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.fin-detail strong {
  color: var(--ink);
}

/* arbitrage du 12e mois : etaler le solde ou clore le pret */
.fin-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.fin-choice[hidden] {
  display: none;
}

.fin-choice button {
  flex: 1 1 auto;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
}

.fin-choice button:hover {
  border-color: var(--green-2);
}

.fin-choice button.is-active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.fin-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.fin-summary > div {
  padding: 16px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.fin-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.fin-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
}

.fin-summary .is-net {
  background: var(--green);
  border-color: transparent;
}

.fin-summary .is-net span {
  color: rgba(255, 255, 255, 0.7);
}

.fin-summary .is-net strong {
  color: var(--white);
}

.fin-actions {
  margin-top: 24px;
}

.fin-actions .button {
  width: 100%;
}

.fin-legal {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 700px) {
  .fin-controls,
  .fin-summary {
    grid-template-columns: 1fr;
  }

  .modal-box {
    max-height: 100%;
  }
}

/* ---------- Deroulement en 5 etapes ---------- */

.steps-section .section-heading {
  max-width: 820px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  margin: clamp(38px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 68px;
}

.step-num {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 900;
}

/* trait de liaison entre deux etapes */
.step::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 60px;
  right: -22px;
  height: 2px;
  background: var(--line);
}

.step:last-child::after {
  display: none;
}

.step h3 {
  font-size: 1.08rem;
}

.step p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/*
  Pousse la mention en bas de carte. Le min-height reserve deux lignes pour
  que les traits de separation des 5 colonnes soient sur la meme ligne,
  quelle que soit la longueur du libelle.
*/
.step-meta {
  margin-top: auto !important;
  padding-top: 14px;
  line-height: 1.5;
  min-height: calc(3em + 15px);
  border-top: 1px solid var(--line);
  color: var(--green-2) !important;
  font-weight: 800;
  font-size: 0.86rem !important;
}

/* en dessous de 1000px les 5 colonnes deviennent illisibles :
   on bascule sur une frise verticale */
@media (max-width: 1000px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .step {
    padding-top: 0;
    padding-left: 70px;
    min-height: 48px;
  }

  .step::after {
    top: 60px;
    bottom: -30px;
    left: 23px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .step-meta {
    margin-top: 14px !important;
    min-height: 0;
  }
}

/* ---------- Garantie decennale ---------- */

.decennale {
  padding: clamp(64px, 9vw, 118px) clamp(18px, 5vw, 72px);
  background: var(--green);
  color: var(--white);
}

.decennale-head {
  max-width: 880px;
}

.decennale h2 strong {
  color: var(--white);
}

.decennale h2 span {
  color: var(--sun);
}

.decennale .lead {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.86);
}

.decennale .lead strong {
  color: var(--white);
}

.decennale-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(34px, 4vw, 52px);
}

.deca-card {
  padding: clamp(24px, 3vw, 34px);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.deca-card.good {
  background: var(--white);
  color: var(--ink);
  border-color: transparent;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
}

.deca-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.deca-card.warn .deca-tag {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
}

.deca-card.good .deca-tag {
  background: rgba(11, 118, 87, 0.12);
  color: var(--green-2);
}

.deca-card h3 {
  font-size: 1.42rem;
}

.deca-card p:not(.deca-tag) {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.deca-card.good p:not(.deca-tag) {
  color: var(--muted);
}

.deca-note {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 700;
}

.deca-card.good .deca-note {
  border-top-color: var(--line);
  color: var(--green-2) !important;
}

.deca-advice {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: clamp(22px, 3vw, 30px);
  border-radius: 12px;
  border-left: 5px solid var(--sun);
  background: rgba(0, 0, 0, 0.18);
}

.deca-advice-title {
  margin: 0;
  color: var(--sun);
  font-weight: 900;
  font-size: 1.05rem;
}

.deca-advice p:not(.deca-advice-title) {
  margin: 0;
  max-width: 820px;
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Benefices : schema du flux d'autoconsommation ---------- */

.benefices {
  background: var(--white);
}

.flux {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 46px;
  margin: clamp(38px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}

.flux-node {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.flux-node.highlight {
  background: var(--green);
  border-color: transparent;
  color: var(--white);
  box-shadow: var(--shadow);
}

/* fleche de liaison entre deux etapes du flux */
.flux-node::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -34px;
  width: 22px;
  height: 22px;
  border-top: 3px solid var(--green-2);
  border-right: 3px solid var(--green-2);
  transform: translateY(-50%) rotate(45deg);
}

.flux-node:last-child::after {
  display: none;
}

.flux-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--white);
  color: var(--green);
}

.flux-node.highlight .flux-icon {
  background: rgba(255, 255, 255, 0.14);
  color: var(--sun);
}

.flux-icon svg {
  width: 32px;
  height: 32px;
}

.flux-node h3 {
  font-size: 1.16rem;
}

.flux-node p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.flux-node.highlight p {
  color: rgba(255, 255, 255, 0.82);
}

.flux-tag {
  margin-top: auto;
  padding-top: 16px;
  color: var(--green-2);
  font-weight: 800;
  font-size: 0.9rem;
}

.flux-node.highlight .flux-tag {
  color: var(--sun);
}

.prime-band {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 26px;
  padding: clamp(22px, 3vw, 30px);
  border-radius: 12px;
  border-left: 5px solid var(--sun);
  background: var(--sky);
}

.prime-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--white);
  color: var(--green);
}

.prime-icon svg {
  width: 32px;
  height: 32px;
}

.prime-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.14rem;
  font-weight: 900;
}

.prime-band p:not(.prime-title) {
  margin: 0;
  max-width: 760px;
  color: #3c4f4a;
}

/* comparaison metropole / Guyane */
.compare {
  margin-top: 26px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.compare-title {
  margin: 0;
  font-size: 1.14rem;
  font-weight: 900;
}

.compare-intro {
  margin: 10px 0 0;
  max-width: 780px;
  color: var(--muted);
}

.compare-scroll {
  margin-top: 22px;
  overflow-x: auto;
}

.compare table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  text-align: left;
}

.compare th,
.compare td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare thead th {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.compare tbody th {
  color: var(--ink);
  font-weight: 700;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: none;
}

.compare td.ko {
  color: #8d9c97;
}

.compare td.ok {
  color: var(--green-2);
  font-weight: 800;
}

/* sur mobile le tableau devient une pile de blocs plutot qu'un scroll lateral */
@media (max-width: 700px) {
  .compare table,
  .compare tbody,
  .compare tr,
  .compare tbody th,
  .compare td {
    display: block;
  }

  .compare table {
    min-width: 0;
  }

  .compare thead {
    display: none;
  }

  .compare tbody tr {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .compare tbody tr:last-child {
    border-bottom: none;
  }

  .compare tbody th {
    padding: 0 0 12px;
    border: none;
    font-size: 1.02rem;
  }

  .compare td {
    padding: 8px 0 0;
    border: none;
  }

  .compare td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
  }
}

/* reponse a l'objection "et si ca changeait aussi en Guyane ?" */
.compare-lock {
  margin: 22px 0 0;
  padding: 18px 20px;
  background: var(--white);
  border-left: 5px solid var(--sun);
  border-radius: 8px;
  color: var(--ink);
}

.compare-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.benefices-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.benefices-cta p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
}

.feature-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  background: var(--green);
  color: var(--white);
}

.feature-media {
  min-height: 640px;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-content {
  align-self: center;
  padding: clamp(48px, 7vw, 90px);
}

.benefit-list {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.benefit-list article {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.benefit-list img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.benefit-list p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.compact {
  background: var(--sky);
}

.publics {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(240px, 0.55fr);
  align-items: end;
  gap: 34px;
}

.contact {
  padding: clamp(58px, 8vw, 92px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background: #092a24;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: clamp(34px, 5vw, 64px);
  align-items: start;
}

.contact-lead {
  max-width: 520px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.06rem;
}

.contact-direct {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 22px;
}

.contact-direct-label {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.phone-link,
.mail-link {
  display: block;
  width: fit-content;
  margin-top: 4px;
  font-weight: 900;
}

.phone-link {
  font-size: clamp(1.35rem, 3vw, 2.1rem);
}

.mail-link {
  color: var(--sun);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.phone-link:hover,
.mail-link:hover,
.social-link:hover {
  text-decoration: underline;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.social-link svg {
  width: 22px;
  height: 22px;
  flex: none;
}

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

.contact-form-card {
  padding: clamp(24px, 3vw, 36px);
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.3);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form label {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.contact-form label span {
  color: var(--green-2);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 0.98rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green-2);
  box-shadow: 0 0 0 3px rgba(11, 118, 87, 0.16);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #96a5a0;
}

.field-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 2px;
}

.field-consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--green-2);
}

.field-consent label {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-form .button {
  width: 100%;
  margin-top: 6px;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
}

.contact-form .button:hover {
  filter: brightness(0.95);
}

.contact-form .button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.form-status:empty {
  display: none;
}

.form-status.ok {
  color: var(--green-2);
}

.form-status.erreur {
  color: #b4432a;
}

.form-status.info {
  color: var(--muted);
}

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

.site-footer {
  padding: clamp(34px, 5vw, 52px) clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: #061d19;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 28px;
  align-items: start;
}

.footer-brand .brand-mark {
  font-size: 1.5rem;
}

.footer-brand p {
  margin: 8px 0 0;
  max-width: 420px;
}

address {
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-block: 12px;
  }

  .brand-logo {
    width: 46px;
    height: 52px;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 144px;
  }

  .hero-card {
    min-height: auto;
  }

  .hero-media {
    padding-inline: 0;
  }

  .intro-grid,
  .feature-section,
  .publics,
  .contact-grid,
  .footer-grid,
  .quali-grid,
  .decennale-grid,
  .flux,
  .benefices-cta,
  .tarif-grid,
  .tarif-detail {
    grid-template-columns: 1fr;
  }

  /* le flux se lit de haut en bas : les fleches pivotent */
  .flux {
    gap: 44px;
  }

  .flux-node::after {
    top: auto;
    right: 50%;
    bottom: -33px;
    transform: translateX(50%) rotate(135deg);
  }

  .benefices-cta .button {
    justify-self: start;
  }

  .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-media {
    min-height: 420px;
  }
}

@media (max-width: 560px) {
  .main-nav {
    gap: 6px 14px;
    font-size: 0.88rem;
  }

  .hero {
    padding-top: 144px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-media .hero-actions {
    flex-wrap: wrap;
  }

  .hero-media .hero-actions .button {
    flex: 1 1 100%;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .solution-grid {
    grid-template-columns: 1fr;
  }

  .solution-card,
  .solution-card.wide {
    grid-column: auto;
    min-height: 190px;
  }

  .benefit-list article {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .benefit-list img {
    width: 54px;
    height: 54px;
  }
}
