/* ==========================================================================
   SOBRA — Landing page Campings & Hôteliers
   Design system : voir tokens ci-dessous. Palette et logo repris de la
   charte SOBRA (site officiel + plaquette commerciale).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Couleurs de marque */
  --forest: #162c09;        /* vert forêt — fond principal des sections d'appel */
  --forest-deep: #0c0f0a;   /* quasi-noir vert — footer / contrastes forts */
  --flash: #97e36e;         /* vert flash — accent, CTA, mise en avant */
  --flash-dark: #74c94c;    /* vert flash assombri — hover / texte sur clair */
  --cream: #f5eadc;         /* crème — nav, alternance de sections claires */
  --mist: #b3c9d7;          /* bleu pâle — liserés, séparateurs */
  --ink: #162c09;           /* texte foncé sur fond clair (= vert forêt) */
  --white: #ffffff;
  --line-on-dark: rgba(255, 255, 255, 0.14);
  --line-on-light: rgba(22, 44, 9, 0.12);

  /* Typographie */
  --font-display: "Clash Display", "Poppins", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Rythme */
  --container: 1180px;
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --section-pad: clamp(3.5rem, 6vw, 6.5rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--flash-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Type scale ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.h1 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.01em;
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
}

.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  font-size: clamp(1.25rem, 1.6vw, 1.55rem);
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: inherit;
  opacity: 0.85;
  max-width: 44rem;
}

.section-head { max-width: 40rem; }
.section-head.centered { max-width: 40rem; margin: 0 auto; text-align: center; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-flash { background: var(--flash); color: var(--forest-deep); }
.btn-flash:hover { background: var(--flash-dark); }
.btn-ghost-light { border-color: var(--line-on-dark); color: var(--white); }
.btn-ghost-light:hover { border-color: var(--flash); color: var(--flash); }
.btn-ghost-dark { border-color: var(--ink); color: var(--ink); }
.btn-ghost-dark:hover { border-color: var(--forest); background: var(--forest); color: var(--white); }
.btn-sm { padding: 0.65rem 1.15rem; font-size: 0.85rem; }

/* ---------- Motif signature : anneau soleil ---------- */
/* Repris du symbole de la marque (les tirets autour du "O") : cet anneau
   pointillé revient comme fil conducteur (halo du hero, cadran des
   statistiques, puces de section). */
.sun-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed currentColor;
  opacity: 0.35;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 3px solid var(--mist);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 78px;
}
.nav-logo { color: var(--ink); width: 108px; }
.nav-logo svg { width: 108px; height: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a { opacity: 0.8; transition: opacity 0.15s ease; }
.nav-links a:hover { opacity: 1; }

.nav-actions { display: flex; align-items: center; gap: 1.1rem; }
.nav-phone { display: flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.95rem; }
.nav-phone svg { width: 16px; height: 16px; color: var(--forest); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.4rem;
  color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-phone span { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--forest);
  color: var(--white);
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
}
/* Le mark de la marque, agrandi et estompé en filigrane : c'est la seule
   apparition "à pleine échelle" du signe SOBRA sur la page — le reste du
   fil conducteur reste discret (voir .sun-ring plus bas). */
.hero-mark {
  position: absolute;
  top: -12%;
  right: -8%;
  width: min(640px, 60vw);
  height: auto;
  color: var(--flash);
  opacity: 0.14;
  pointer-events: none;
}

/* Grille à deux colonnes : la seconde reste vide (espace réservé), pour
   garder le texte casé à gauche plutôt qu'étalé sur toute la largeur. */
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-eyebrow {
  background: rgba(151, 227, 110, 0.14);
  color: var(--flash);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(151, 227, 110, 0.4);
  margin-bottom: 1.5rem;
}

.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 em { color: var(--flash); font-style: normal; }
.hero .lede { color: rgba(255,255,255,0.82); margin-bottom: 2.1rem; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.75rem; }

.press-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-on-dark);
}
.press-label { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; }
.press-marks { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.press-marks span { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; opacity: 0.75; }

/* ==========================================================================
   Bandeau offre
   ========================================================================== */
.offer-strip {
  background: var(--cream);
  border-bottom: 1px solid var(--line-on-light);
  padding: 1.6rem 0;
}
.offer-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  justify-content: space-between;
}
.offer-headline { font-weight: 800; font-size: 1.05rem; display: flex; align-items: center; gap: 0.6rem; }
.offer-headline .flash-num { color: var(--flash-dark); font-family: var(--font-display); font-size: 1.3rem; }

.badge-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line-on-light);
  font-size: 0.82rem;
  font-weight: 600;
}
.badge.is-brand { background: var(--forest); color: var(--white); border-color: var(--forest); }

/* ==========================================================================
   Features
   ========================================================================== */
.features { padding: var(--section-pad) 0; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}
.feature-card {
  border: 1px solid var(--line-on-light);
  border-radius: var(--radius-m);
  padding: 2rem;
  background: var(--white);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { border-color: var(--flash-dark); transform: translateY(-4px); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--forest);
  color: var(--flash);
  display: grid;
  place-items: center;
  margin-bottom: 1.4rem;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { margin-bottom: 0.6rem; }
.feature-card p { opacity: 0.75; font-size: 0.96rem; }

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Contexte réglementaire
   ========================================================================== */
.regulatory { padding: 0 0 var(--section-pad); }
.regulatory-card {
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius-l);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 2.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.regulatory-card .sun-ring { color: var(--flash); width: 360px; height: 360px; right: -140px; bottom: -160px; }
.deadline {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  line-height: 1;
  color: var(--flash);
}
.deadline small { display: block; font-family: var(--font-body); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 0.75rem; }
.regulatory-text { position: relative; }
.regulatory-text p + p { margin-top: 0.9rem; }
.regulatory-text p { opacity: 0.88; }
.regulatory-text strong { color: var(--flash); }

@media (max-width: 780px) {
  .regulatory-card { grid-template-columns: 1fr; text-align: left; }
}

/* ==========================================================================
   Engagement environnemental
   ========================================================================== */
.commitments { padding: var(--section-pad) 0; background: var(--cream); }
.commitment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.75rem;
}
.commitment {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 1.6rem;
  border: 1px solid var(--line-on-light);
}
.commitment .tag { font-weight: 700; font-size: 0.85rem; color: var(--flash-dark); margin-bottom: 0.5rem; display: block; }
.commitment p { font-size: 0.92rem; opacity: 0.8; }

@media (max-width: 980px) { .commitment-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .commitment-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Simulation / ROI
   ========================================================================== */
.simulation { padding: var(--section-pad) 0; }

.stat-rings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin: 3rem 0 3.5rem;
}
.stat-ring {
  text-align: center;
  padding: 1.75rem 1rem;
  border-radius: var(--radius-m);
  background: var(--cream);
}
.ring-graphic { position: relative; width: 140px; height: 140px; margin: 0 auto 1.1rem; }
.ring-graphic svg { width: 100%; height: 100%; }
.ring-value {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--forest);
}
.stat-ring .stat-label { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.3rem; }
.stat-ring .stat-sub { font-size: 0.82rem; opacity: 0.65; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line-on-light); border-radius: var(--radius-m); }
table.roi-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.92rem; }
.roi-table caption { text-align: left; padding: 1.1rem 1.4rem 0; font-weight: 700; caption-side: top; }
.roi-table th, .roi-table td { padding: 0.85rem 1.4rem; text-align: left; border-bottom: 1px solid var(--line-on-light); }
.roi-table thead th { background: var(--forest); color: var(--white); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.roi-table tbody tr:last-child td { border-bottom: none; }
.roi-table td.num, .roi-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.roi-table td.roi-highlight { color: var(--flash-dark); font-weight: 700; }
.roi-note { font-size: 0.82rem; opacity: 0.6; margin-top: 0.9rem; }

.flow-title { margin: 3.5rem 0 1.5rem; }
.flow {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.flow-chip {
  flex: 1 1 150px;
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius-s);
  padding: 1rem 1.1rem;
  text-align: center;
}
.flow-chip.is-flash { background: var(--flash); color: var(--forest-deep); }
.flow-chip .amount { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; display: block; }
.flow-chip .label { font-size: 0.76rem; opacity: 0.75; display: block; margin-top: 0.2rem; }
.flow-arrow { align-self: center; opacity: 0.35; font-size: 1.2rem; }

@media (max-width: 900px) {
  .stat-rings { grid-template-columns: 1fr; }
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); align-self: center; }
}

/* ==========================================================================
   Alliance + citation
   ========================================================================== */
.alliance { padding: var(--section-pad) 0; background: var(--cream); }
.alliance-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }
.alliance-card {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 2rem;
  border: 1px solid var(--line-on-light);
}
.alliance-mark { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; margin-bottom: 0.9rem; }
.alliance-mark.heatzy { color: var(--flash-dark); }
.alliance-card p { opacity: 0.78; font-size: 0.96rem; }

.quote {
  margin-top: 2.5rem;
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius-l);
  padding: clamp(2rem, 4vw, 3rem);
  position: relative;
}
.quote blockquote { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.4; margin: 0 0 1.25rem; }
.quote cite { font-style: normal; font-size: 0.92rem; opacity: 0.7; }
.quote cite strong { color: var(--flash); display: block; font-size: 0.98rem; opacity: 1; }

@media (max-width: 780px) { .alliance-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Fiche technique
   ========================================================================== */
.tech { padding: var(--section-pad) 0; }
.tech-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.5rem 0 2.5rem; }
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 3rem; }
.tech-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line-on-light); font-size: 0.94rem; }
.tech-row dt { opacity: 0.6; }
.tech-row dd { margin: 0; font-weight: 600; text-align: right; }

@media (max-width: 780px) { .tech-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Étapes
   ========================================================================== */
.steps { padding: var(--section-pad) 0; background: var(--forest); color: var(--white); }
.steps .section-head .lede { color: rgba(255,255,255,0.75); }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; counter-reset: step; }
.step { position: relative; padding-top: 2.5rem; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--flash);
  position: absolute;
  top: 0; left: 0;
}
.step::after { content: ""; position: absolute; top: 0.4rem; left: 2.4rem; right: 0; height: 1px; background: var(--line-on-dark); }
.step h3 { margin-bottom: 0.6rem; }
.step p { opacity: 0.75; font-size: 0.95rem; }

@media (max-width: 860px) { .step-grid { grid-template-columns: 1fr; gap: 2.25rem; } }

/* ==========================================================================
   CTA finale
   ========================================================================== */
.cta-final {
  padding: var(--section-pad) 0;
  background: var(--flash);
  color: var(--forest-deep);
  text-align: center;
}
.cta-final .h2 { margin: 0 auto 1rem; max-width: 32rem; }
.cta-final .lede { color: var(--forest-deep); opacity: 0.75; margin: 0 auto 2rem; }
.cta-final .hero-ctas { justify-content: center; margin-bottom: 1.5rem; }
.cta-final .btn-flash { background: var(--forest-deep); color: var(--flash); }
.cta-final .btn-flash:hover { background: var(--forest); }
.cta-final .btn-ghost-dark { border-color: var(--forest-deep); }
.cta-final .fine-print { font-size: 0.85rem; opacity: 0.65; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--cream); padding: 4rem 0 2rem; }
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-on-light);
}
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.92rem; opacity: 0.7; max-width: 22rem; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.55; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: 0.65rem; font-size: 0.92rem; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: 0.8rem;
  opacity: 0.6;
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Reveal on scroll (progressive enhancement, JS toggles .is-visible)
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Menu mobile
   ========================================================================== */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 78px 0 0 0;
  background: var(--cream);
  z-index: 40;
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 1.5rem; font-size: 1.15rem; font-weight: 700; margin-bottom: 2rem; }
