/* public-sans-vietnamese-wght-normal */
@font-face {
  font-family: 'Public Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/public-sans-vietnamese-wght-normal.CtlIRbEm.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* public-sans-latin-ext-wght-normal */
@font-face {
  font-family: 'Public Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/public-sans-latin-ext-wght-normal.MQgHevqp.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* public-sans-latin-wght-normal */
@font-face {
  font-family: 'Public Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/public-sans-latin-wght-normal.DdeTHZLK.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* Palette et variables globales.
   Registre institutionnel : bleu profond et sobre (proche des sites
   d'information publique) pour le theme, orange/ambre reserve aux CTA.
   Le "faisceau" (degrade bleu) reste un filet decoratif discret. */
:root {
  --navy-deep: #0a0a3a;
  --navy: #10105c;
  --navy-soft: #1a1a7a;
  --blue: #1d1da8;
  --blue-strong: #14147e;
  --cyan: #6a6af4;
  --beam: linear-gradient(90deg, var(--blue), var(--cyan));
  --accent: #f2871f;
  --accent-strong: #e0740c;
  --white: #ffffff;
  --off-white: #f5f7fb;
  --text: #1e2a3b;
  --text-muted: #5b6779;
  --text-on-navy: #dbe4f5;
  --text-on-navy-muted: rgba(219, 228, 245, 0.72);
  --border: #e3e8f1;
  --danger: #dc2626;
  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 9px;
  --shadow-card: 0 1px 2px rgba(11, 27, 58, 0.05), 0 8px 24px rgba(11, 27, 58, 0.07);
  --shadow-float: 0 20px 50px rgba(7, 18, 38, 0.3);
  --font:
    "Public Sans Variable", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* L'attribut hidden doit toujours gagner, y compris sur les elements
   dont une classe redefinit display (boutons de navigation du formulaire). */
[hidden] {
  display: none !important;
}

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;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.75rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy);
}

p {
  margin: 0 0 1rem;
}

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

img,
svg {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Sections alternees */
.section {
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}

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

.section-off {
  background: var(--off-white);
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin: 0 0 0.6rem;
}

.section-title {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin-bottom: 2rem;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.75rem;
  min-height: 50px;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}

/* CTA : seule utilisation autorisee de la couleur d'accent (avec la barre
   de progression du formulaire), jamais pour du texte informatif. */
.btn-primary {
  background: var(--accent);
  color: var(--navy-deep);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(10, 10, 58, 0.2);
}

.btn-primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 8px 20px rgba(242, 135, 31, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 1px 2px rgba(10, 10, 58, 0.2);
}

/* Bouton discret : action secondaire, ne concurrence pas l'action principale */
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 0.95rem 1.1rem;
}

.btn-ghost:hover {
  background: rgba(29, 29, 168, 0.08);
  color: var(--navy);
}

.btn-ghost:active {
  background: rgba(29, 29, 168, 0.14);
}

/* Boutons de consentement : strictement equivalents (exigence CNIL) */
.btn-consent {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--navy);
  padding: 0.7rem 1.6rem;
  min-height: 46px;
  font-size: 0.95rem;
}

.btn-consent:hover {
  background: var(--off-white);
  transform: translateY(-1px);
}

/* Hero : accroche a gauche, formulaire de simulation a droite */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.75rem, 7vw, 4.5rem) 0 clamp(3rem, 7vw, 4.5rem);
  background:
    radial-gradient(ellipse 70% 90% at 85% -10%, rgba(29, 29, 168, 0.35), transparent 65%),
    radial-gradient(ellipse 50% 60% at 5% 110%, rgba(106, 106, 244, 0.12), transparent 70%),
    linear-gradient(160deg, var(--navy-deep), var(--navy) 55%, var(--navy-soft));
  color: var(--text-on-navy);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3rem;
  }
}

/* Surtitre produit : rappelle le nom du produit au-dessus du titre accrocheur */
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--white);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(1.5rem, 5.5vw, 2.3rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--white);
  max-width: 46ch;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.6vw, 1.02rem);
  max-width: 58ch;
  margin: 1rem 0 0;
  color: var(--text-on-navy-muted);
}

/* Les 3 arguments cles du produit, avec coche */
.hero-points {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--white);
}

.hero-points .point-icon {
  display: inline-flex;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--accent);
}

.btn-hero {
  font-size: 1.1rem;
  padding: 1.05rem 2.25rem;
  margin-top: 1.75rem;
  width: 100%;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--text-on-navy-muted);
}

.hero-note-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-note-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* Sur grand ecran le formulaire est visible a cote : le CTA d'ancrage
   devient inutile. */
@media (min-width: 1024px) {
  .btn-hero {
    display: none;
  }

  .hero-note {
    margin-top: 1.5rem;
  }
}

/* Blocs benefices : cartes a gauche, photo du produit a droite */
.benefits-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 960px) {
  .benefits-layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Emplacement photo du produit (cadre vide tant que l'image n'est pas fournie
   dans src/assets/photos/, voir PhotoSlot.astro) */
.photo-slot {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* Section media + texte cote a cote */
.media-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 960px) {
  .media-layout {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3.5rem;
  }
}

.media-copy h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
}

/* Etapes numerotees en cartes claires, sur le modele "comment ca marche" */
.media-steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 1.75rem;
  display: grid;
  gap: 1rem;
}

.media-steps li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}

.media-point-title {
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.15rem;
}

.media-point-text {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin: 0;
  max-width: 52ch;
}

/* Variante ratio naturel : l'image s'affiche entiere, sans recadrage 4/3
   (sujet vertical qui serait coupe, ex. ballon) */
.photo-slot-natural {
  aspect-ratio: auto;
}

/* Variante packshot : image detouree affichee entiere, posee telle quelle
   sur le fond de la section (ni carte, ni ombre) */
.photo-slot-contain {
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.photo-slot-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  border: 2px dashed var(--border);
  box-shadow: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.benefit-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.35rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.benefit-card:hover {
  border-color: rgba(29, 29, 168, 0.45);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.benefit-card .benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(29, 29, 168, 0.08);
  color: var(--blue);
  margin-bottom: 1rem;
}

.benefit-card h3 {
  font-size: 1.05rem;
  letter-spacing: -0.005em;
  margin-bottom: 0.4rem;
}

.benefit-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin: 0;
}

/* Relance CTA en fin de section */
.section-cta {
  margin-top: 2.25rem;
  text-align: center;
}

/* Panneau RGE */
.rge-badge {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.rge-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--beam);
}

@media (min-width: 720px) {
  .rge-badge {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    padding: 2.25rem 2.5rem;
  }
}

.rge-logo-frame {
  flex-shrink: 0;
}

.rge-logo {
  width: 200px;
  height: auto;
}

.rge-badge .rge-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(29, 29, 168, 0.08);
  color: var(--blue);
}

.rge-badge h2 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.rge-badge p:last-child {
  margin: 0;
  color: var(--text-muted);
}

/* Section aides */
.aides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 720px) {
  .aides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Nombre impair de tuiles : la derniere occupe toute la largeur */
.aide-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.aide-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
}

.aide-card .aide-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(29, 29, 168, 0.08);
  color: var(--blue);
  margin-top: 0.1rem;
}

.aide-card h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.aide-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

.aides-disclaimer {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 1.5rem auto 0;
}

/* Encart France Renov */
.france-renov {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 720px;
  margin: 2.5rem auto 0;
}

.france-renov h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.france-renov p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.france-renov .fr-phone {
  font-weight: 650;
  color: var(--text);
}

/* Formulaire progressif (carte integree au hero) */
.form-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  padding: 2.25rem 1.5rem 2rem;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  color: var(--text);
  overflow: hidden;
}

.form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--beam);
}

@media (min-width: 640px) {
  .form-card {
    padding: 2.75rem 3rem 2.5rem;
  }
}

.form-logo {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 0.85rem;
}

.form-card h2 {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 0.35rem;
}

.form-intro {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

.progress-track {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 100%;
  width: 20%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.progress-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: right;
  margin-bottom: 1.5rem;
}

.form-step {
  border: none;
  margin: 0;
  padding: 0;
}

.form-step[hidden] {
  display: none;
}

.form-step legend {
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--navy);
  letter-spacing: -0.01em;
  padding: 0;
  margin-bottom: 1.25rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .choice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 0.9rem;
  min-height: 62px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 550;
  background: var(--white);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.choice-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(29, 29, 168, 0.14);
  transform: translateY(-1px);
}

.choice-card:has(input:checked) {
  border-color: var(--blue);
  background: rgba(29, 29, 168, 0.06);
}

.choice-card:has(input:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.choice-card .choice-icon {
  color: var(--blue);
  flex-shrink: 0;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-weight: 550;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.form-field input {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  min-height: 50px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:hover {
  border-color: #c9d3e4;
}

.form-field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 29, 168, 0.15);
}

.form-field input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  display: none;
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.field-error.visible {
  display: block;
}

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 1.25rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.consent-field input {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--blue);
}

.form-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.form-nav .btn-primary {
  flex: 1;
}

.form-error {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.form-error.visible {
  display: block;
}

/* Mention de collecte, sous le formulaire et presente a toutes les etapes.
   Le lien vers la notice complete reste visible ; le detail du traitement est
   replie dans l'info-bulle. Discretion par la taille, jamais par le contraste :
   var(--text-muted) sur fond blanc reste au-dessus du seuil WCAG AA. */
.form-privacy {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 1rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.form-privacy a {
  color: var(--blue);
}

/* Info-bulle native : aucun JavaScript, ouverture au clic et au clavier,
   donc utilisable aussi sur mobile ou le survol n'existe pas. */
.privacy-tip {
  display: inline-flex;
  /* Le positionnement de la bulle se fait sur .form-privacy, pas ici : la
     bulle occupe ainsi toute la largeur de la ligne et ne peut pas deborder
     de la carte sur les petits ecrans. */
  position: static;
}

.privacy-tip > summary {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: 999px;
  list-style: none;
  transition: color 0.2s ease;
}

.privacy-tip > summary::-webkit-details-marker {
  display: none;
}

.privacy-tip > summary:hover,
.privacy-tip > summary:focus-visible {
  color: var(--blue);
}

.privacy-tip-bubble {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 0.5rem);
  z-index: 5;
  background: var(--navy);
  color: var(--white);
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  line-height: 1.45;
}

.turnstile-container {
  margin: 1rem 0;
  min-height: 65px;
}

/* FAQ en accordeon : bloc centre, questions en gras, separateur fin */
.faq-section .eyebrow,
.faq-section .section-title {
  text-align: center;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 0;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-question {
  font-weight: 700;
  color: var(--navy);
}

/* Marqueur +/x dessine en CSS, pivote a l'ouverture */
.faq-marker {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.faq-marker::before,
.faq-marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--blue);
  transform: translate(-50%, -50%);
}

.faq-marker::before {
  width: 18px;
  height: 2px;
}

.faq-marker::after {
  width: 2px;
  height: 18px;
}

.faq-item[open] .faq-marker {
  transform: rotate(45deg);
}

.faq-answer {
  margin: 0 0 1.25rem;
  max-width: 62ch;
  color: var(--text-muted);
}

/* Bande de conclusion avant le footer */
.final-cta {
  background: linear-gradient(160deg, var(--navy-deep), var(--navy));
  color: var(--text-on-navy);
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  text-align: center;
}

.final-cta h2 {
  color: var(--white);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin-bottom: 0.5rem;
}

.final-cta p {
  color: var(--text-on-navy-muted);
  margin-bottom: 1.75rem;
}

/* Bandeau sticky : fixe en haut, titre accrocheur + bouton CTA */
.sticky-cta {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 0.6rem 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 24px rgba(10, 10, 58, 0.12);
}

.sticky-cta-title {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.sticky-cta .btn {
  flex-shrink: 0;
  padding: 0.6rem 1.4rem;
  min-height: 42px;
  font-size: 0.95rem;
}

@media (max-width: 639px) {
  .sticky-cta {
    gap: 0.75rem;
  }

  .sticky-cta-title {
    font-size: 0.88rem;
  }

  .sticky-cta .btn {
    font-size: 0.88rem;
    padding: 0.55rem 1rem;
  }
}

/* Banniere de consentement */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(11, 27, 58, 0.12);
  padding: 1.25rem;
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .consent-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.consent-banner p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 68ch;
}

.consent-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.consent-actions .btn {
  flex: 1;
}

/* Footer */
.footer {
  background: var(--navy-deep);
  color: var(--text-on-navy-muted);
  padding: 2.25rem 0;
  font-size: 0.9rem;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
}

.footer a {
  color: var(--text-on-navy);
  text-decoration: none;
  border-bottom: 1px solid rgba(219, 228, 245, 0.3);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer a:hover {
  color: var(--white);
  border-bottom-color: var(--cyan);
}

.footer p {
  margin: 0;
}

/* Identification de l'exploitant : doit rester lisible (contraste eleve sur
   le fond navy, pas de texte grise), c'est sa raison d'etre. */
.footer-identity {
  font-style: normal;
  font-size: 0.8rem;
  line-height: 1.5;
  /* Petite taille compensee par un contraste plein sur le fond navy : le bloc
     doit rester detectable par un evaluateur humain comme automatise. */
  color: var(--text-on-navy);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

/* Pages legales et merci */
.legal-content {
  max-width: 760px;
  padding: 3rem 1.25rem 4.5rem;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--blue);
}

.legal-content h1 {
  font-size: 1.85rem;
  letter-spacing: -0.02em;
}

.legal-content h2 {
  font-size: 1.15rem;
  margin-top: 2.25rem;
}

.legal-content p {
  color: var(--text-muted);
}

.merci-wrap {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.25rem;
}

.merci-card {
  max-width: 560px;
}

.merci-card .merci-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(29, 29, 168, 0.08);
  color: var(--blue);
  margin-bottom: 1.25rem;
}

.merci-card h1 {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.merci-card p {
  color: var(--text-muted);
}

.merci-card .merci-back {
  display: inline-flex;
  align-items: center;
  margin-top: 1.75rem;
}

/* Affinage mobile : blocs plus compacts, CTA pleine largeur */
@media (max-width: 639px) {
  .hero {
    padding: 2.25rem 0 2.75rem;
  }

  .hero-grid {
    gap: 2rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section-title {
    margin-bottom: 1.5rem;
  }

  .benefit-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.9rem;
    row-gap: 0.25rem;
    padding: 1.15rem 1.1rem;
  }

  .benefit-card .benefit-icon {
    grid-row: 1 / span 2;
    width: 40px;
    height: 40px;
    margin-bottom: 0;
  }

  .benefit-card h3 {
    align-self: center;
    margin-bottom: 0;
  }

  .rge-badge {
    padding: 1.5rem 1.15rem;
  }

  .rge-logo {
    width: 150px;
  }

  .aide-card {
    padding: 1.1rem 1.15rem;
  }

  .form-card {
    padding: 1.75rem 1.15rem 1.6rem;
  }

  .france-renov {
    padding: 1.35rem 1.15rem;
  }

  .final-cta .btn {
    width: 100%;
  }
}
