/* ============================================================
   goodbye, webflow. : style
   Palette : papier crème / vert sapin / jaune acide
   Typo : Bricolage Grotesque (display) · Instrument Sans (texte)
          Spline Sans Mono (chiffres de l'audit)
   ============================================================ */

:root {
  --paper: #F5F1E8;
  --paper-deep: #EDE7D9;
  --ink: #16281F;
  --pine: #2E5041;
  --muted: #5C6F63;
  --lime: #E9F15C;
  --lime-soft: #F2F7A8;
  --white: #FFFFFF;
  --line: rgba(22, 40, 31, 0.12);

  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Spline Sans Mono", "Courier New", monospace;

  --radius-card: 24px;
  --radius-pill: 999px;
  --wrap: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

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

[hidden] { display: none !important; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.wrap-narrow { max-width: 780px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- Typographie ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: 1.25rem; line-height: 1.25; }

p { text-wrap: pretty; }

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pine);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  margin-bottom: 24px;
}

.eyebrow-light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--lime);
}

.marker {
  position: relative;
  white-space: nowrap;
  background: linear-gradient(180deg, transparent 52%, var(--lime) 52%, var(--lime) 94%, transparent 94%);
  padding-inline: 0.08em;
  border-radius: 4px;
}

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

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: var(--radius-pill);
  padding: 15px 30px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-solid {
  background: var(--ink);
  color: var(--paper);
}
.btn-solid:hover { box-shadow: 0 8px 20px rgba(22, 40, 31, 0.25); }

.btn-yellow {
  background: var(--lime);
  color: var(--ink);
}
.btn-yellow:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }

.btn-small { padding: 11px 22px; font-size: 0.9375rem; }

:is(a, button, input, summary):focus-visible {
  outline: 3px solid var(--pine);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 232, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-wave { font-size: 1.35rem; }

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}

.main-nav a:hover { color: var(--pine); text-decoration: underline; text-underline-offset: 5px; }

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

.hero {
  position: relative;
  padding-block: clamp(64px, 10vw, 128px) clamp(96px, 12vw, 160px);
  overflow: hidden;
}

.hero-inner {
  max-width: 880px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.4rem, 6.5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 24px;
}

.circled {
  position: relative;
  display: inline-block;
  padding-inline: 0.12em;
}

.circle-svg {
  position: absolute;
  inset: -14% -10%;
  width: 120%;
  height: 128%;
  pointer-events: none;
}

.circle-svg path {
  stroke: var(--pine);
  stroke-width: 4;
  stroke-linecap: round;
  opacity: 0.85;
  stroke-dasharray: 640;
  stroke-dashoffset: 640;
  animation: draw 1.1s ease-out 0.4s forwards;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-sub {
  max-width: 620px;
  margin-inline: auto;
  color: var(--muted);
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  margin-bottom: 36px;
}

.hero-modes {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.mode-pill {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 4px 2px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.mode-pill + .mode-pill::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  translate: 0 -50%;
  width: 1px;
  height: 14px;
  background: var(--line);
}

.mode-pill:hover { color: var(--ink); }

.mode-pill.is-active {
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 -6px 0 var(--lime-soft);
}

.hero-manual {
  max-width: 560px;
  margin-inline: auto;
  text-align: left;
}

.hero-manual .simu-controls {
  box-shadow: 0 12px 32px rgba(22, 40, 31, 0.08);
}

.hero-result {
  text-align: center;
  margin-top: 20px;
  font-size: 1.0625rem;
}

.hero-result strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.hero-result a {
  color: var(--pine);
  font-weight: 600;
  margin-left: 10px;
  white-space: nowrap;
}

.audit-form {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px;
  box-shadow: 0 12px 32px rgba(22, 40, 31, 0.08);
}

.audit-form input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding-inline: 18px;
}

.audit-form input::placeholder { color: var(--muted); opacity: 0.7; }
.audit-form input:focus-visible { outline-offset: -3px; }

.audit-hint {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--muted);
}

.scan-progress {
  max-width: 480px;
  margin: 18px auto 0;
}

.scan-track {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--paper-deep);
  border: 1px solid var(--line);
  overflow: hidden;
}

.scan-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: var(--radius-pill);
  background: var(--pine);
  transition: width 0.4s ease;
}

.scan-fill.is-complete { background: var(--lime); }

.scan-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: left;
}

.scan-pct {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--pine);
  white-space: nowrap;
}

.audit-status {
  max-width: 480px;
  margin: 12px auto 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

.audit-status.is-ok { color: var(--pine); font-weight: 500; }
.audit-status.is-warn { color: var(--ink); font-weight: 500; }

.audit-status.is-loading::before {
  content: "";
  display: inline-block;
  width: 12px; height: 12px;
  margin-right: 8px;
  vertical-align: -1px;
  border: 2px solid var(--line);
  border-top-color: var(--pine);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { rotate: 360deg; } }

.receipt-detected {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--pine);
  background: var(--lime-soft);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 18px;
}

.trust-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  margin-top: 40px;
}

.trust-row li {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pine);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
}

.trust-row li::before { content: "✓"; margin-right: 8px; font-weight: 700; }

/* ---------- La courbe : motif de transition entre sections ---------- */

.wave {
  position: absolute;
  left: 0; right: 0;
  width: 100%;
  height: clamp(70px, 10vw, 150px);
  pointer-events: none;
}

.wave path {
  fill: none;
  stroke: var(--lime);
  stroke-width: 26;
  stroke-linecap: round;
}

/* Elle chevauche la frontière : posée dans la section d'arrivée, elle déborde
   sur celle qu'on quitte et relie les deux fonds. */
.wave-top { top: 0; translate: 0 -52%; }
.wave-bottom { bottom: 0; translate: 0 52%; }

/* Le trait du héros est plus ample : c'est lui qui pose le motif. */
.swoosh {
  bottom: -20px;
  height: clamp(90px, 13vw, 190px);
}

/* ---------- Sections génériques ---------- */

.section {
  position: relative;
  padding-block: clamp(72px, 9vw, 120px);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--muted); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px;
}

/* ---------- Simulateur ---------- */

.simulateur { padding-top: clamp(40px, 6vw, 72px); }

.simu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.simulateur.receipt-only .simu-grid {
  grid-template-columns: 1fr;
}

/* Ticket pleine largeur : les deux colonnes de l'audit passent côte à côte */
@media (min-width: 720px) {
  .simulateur.receipt-only .receipt {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 40px;
  }

  .simulateur.receipt-only .receipt-title,
  .simulateur.receipt-only .receipt-detected,
  .simulateur.receipt-only .receipt-options,
  .simulateur.receipt-only .receipt-result,
  .simulateur.receipt-only .receipt-disclaimer { grid-column: 1 / -1; }

  .simulateur.receipt-only .receipt-tear { display: none; }

  .simulateur.receipt-only .receipt-block:first-of-type { padding-right: 40px; }

  .simulateur.receipt-only .receipt-block:last-of-type {
    border-left: 2px dashed var(--line);
    padding-left: 40px;
  }
}

/* Grille auto-ajustée : autant de colonnes que la largeur de la carte en autorise.
   Le placement se fait par rangée, donc les titres d'une même rangée partagent
   leur ligne de départ, et les pastilles comme les compteurs restent alignés. */
.simu-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  align-items: start;
  gap: 26px 36px;
}

.control-label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 12px;
}

.control-label small { font-weight: 400; color: var(--muted); }

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.pill small {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--muted);
}

.pill:hover { border-color: var(--pine); }

.pill.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.pill.is-active small { color: var(--lime); }

.stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--paper);
}

.step-btn {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: none;
  width: 46px;
  cursor: pointer;
}

.step-btn:hover { background: var(--lime-soft); }

.stepper input {
  width: 64px;
  text-align: center;
  border: none;
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  padding-block: 10px;
  -moz-appearance: textfield;
  appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9375rem;
  padding-top: 4px;
}

.toggle-row input { position: absolute; opacity: 0; }

.toggle-track {
  flex-shrink: 0;
  width: 44px;
  height: 26px;
  border-radius: var(--radius-pill);
  background: var(--paper-deep);
  border: 1px solid var(--line);
  position: relative;
  transition: background-color 0.2s ease;
}

.toggle-track::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.toggle-row input:checked + .toggle-track { background: var(--pine); }
.toggle-row input:checked + .toggle-track::after { transform: translateX(18px); }
.toggle-row input:focus-visible + .toggle-track { outline: 3px solid var(--pine); outline-offset: 3px; }

/* Ticket */

.receipt {
  font-family: var(--font-mono);
  box-shadow: 0 16px 40px rgba(22, 40, 31, 0.1);
}

.receipt-title {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 14px;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}

.receipt-heading {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 10px;
}

.receipt-lines { display: flex; flex-direction: column; gap: 6px; }

.receipt-lines .line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 0.9375rem;
}

.receipt-lines dt { color: var(--muted); font-weight: 500; }
.receipt-lines dd { font-weight: 600; white-space: nowrap; }
.receipt-lines dd small { font-weight: 500; color: var(--muted); font-size: 0.75rem; }

.receipt-lines .total {
  border-top: 1px dashed var(--line);
  padding-top: 8px;
  margin-top: 4px;
}

.receipt-lines .total dt { color: var(--ink); font-weight: 600; }
.receipt-lines .total dd { font-size: 1.125rem; }

.receipt-tear {
  height: 0;
  border-top: 2px dashed var(--line);
  margin-block: 20px;
  position: relative;
}

.receipt-tear::before,
.receipt-tear::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
}

.receipt-tear::before { left: -41px; }
.receipt-tear::after { right: -41px; }

/* Réglages de la comparaison : ils pilotent le résultat, donc ils vivent
   dans le ticket, juste avant lui. */
.receipt-options {
  font-family: var(--font-body);
  border-top: 1px dashed var(--line);
  margin-top: 22px;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 18px 32px;
}

.receipt-options .control-group { margin-bottom: 0; }

.receipt-options .toggle-row { padding-top: 0; }

.receipt-result {
  text-align: center;
  background: var(--paper);
  border-radius: 16px;
  padding: 20px;
  margin-top: 22px;
}

.result-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.result-amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
}

.result-note {
  font-family: var(--font-body);
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 6px;
}

.receipt-disclaimer {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 18px;
  text-align: center;
}

/* ---------- Bénéfices ---------- */

.benefices { background: var(--paper-deep); }

.bene-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.bene-card h3 { margin-block: 14px 10px; }
.bene-card p { color: var(--muted); font-size: 0.9375rem; }

.bene-icon {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  font-size: 1.5rem;
  background: var(--lime-soft);
  border-radius: 16px;
}

/* ---------- Profil ---------- */

.profil {
  background: var(--ink);
  color: var(--paper);
}

.profil-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

/* Le portrait accompagne l'accroche : on met un visage sur la promesse. */
.profil-id {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.profil-photo {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--lime);
}

.profil-id .eyebrow { margin-bottom: 0; }

.profil h2 { margin-bottom: 24px; }
.profil-text p { margin-bottom: 18px; color: rgba(245, 241, 232, 0.82); }
.profil-text strong { color: var(--lime); font-weight: 600; }

.profil-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-card);
  padding: 20px 26px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--lime);
  white-space: nowrap;
}

.stat-label { color: rgba(245, 241, 232, 0.75); font-size: 0.9375rem; }

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

.tarif-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}

.tarif-main {
  padding: 40px;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--lime);
}

.tarif-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--lime);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  margin-bottom: 20px;
}

.tarif-badge-option {
  background: var(--paper-deep);
  color: var(--pine);
}

.tarif-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 3.5rem);
  line-height: 1;
  margin-bottom: 24px;
}

.tarif-period {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--muted);
}

.tarif-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.tarif-list li {
  padding-left: 30px;
  position: relative;
  font-size: 0.9688rem;
}

.tarif-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--pine);
  background: var(--lime-soft);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  top: 3px;
}

.tarif-addon {
  background: var(--paper);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 28px;
  font-size: 0.9375rem;
}

.tarif-addon p:last-child { color: var(--muted); margin-top: 4px; }

.tarif-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tarif-option h3 { margin-bottom: 6px; }

.tarif-price-small {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.tarif-price-small span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--muted);
}

.tarif-option p:last-child { color: var(--muted); font-size: 0.9375rem; }

.tarif-note {
  font-size: 0.9375rem;
  color: var(--muted);
  background: var(--paper-deep);
  border-radius: 16px;
  padding: 18px 20px;
}

/* ---------- Étapes ---------- */

.etapes { background: var(--paper-deep); }

.steps {
  list-style: none;
  max-width: 720px;
  display: flex;
  flex-direction: column;
}

.step {
  display: flex;
  gap: 24px;
  padding-block: 26px;
  border-bottom: 1px dashed rgba(22, 40, 31, 0.2);
}

.step:last-child { border-bottom: none; }

.step-num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: var(--lime);
  border-radius: 50%;
  margin-top: 2px;
}

.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.9688rem; }

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

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.0313rem;
  padding: 20px 56px 20px 24px;
  position: relative;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  translate: 0 -50%;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pine);
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border-radius: 50%;
  transition: rotate 0.2s ease;
}

.faq-list details[open] summary::after { rotate: 45deg; }

.faq-list details p {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 0.9688rem;
}

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

.cta-final { padding-bottom: clamp(80px, 10vw, 140px); }

.cta-inner {
  background: var(--ink);
  color: var(--paper);
  border-radius: 32px;
  text-align: center;
  padding: clamp(48px, 7vw, 80px) 24px;
}

.cta-inner h2 { margin-bottom: 16px; }
.cta-inner p {
  color: rgba(245, 241, 232, 0.78);
  max-width: 480px;
  margin: 0 auto 32px;
}

.cta-wave { display: inline-block; }

@media (hover: hover) {
  .cta-inner:hover .cta-wave { animation: wave 0.8s ease; }
}

@keyframes wave {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(18deg); }
  55% { transform: rotate(-12deg); }
  80% { transform: rotate(10deg); }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 28px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer a { color: var(--pine); }

/* ---------- Bandeau de gain ---------- */

.savings-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 24px;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 60px;
  text-align: center;
  box-shadow: 0 -8px 24px rgba(22, 40, 31, 0.2);
  transform: translateY(105%);
  transition: transform 0.35s ease;
}

.savings-banner.is-shown { transform: none; }

.banner-text { font-weight: 500; font-size: 1rem; }

.banner-text strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--lime);
  margin-left: 6px;
  white-space: nowrap;
}

.banner-close {
  position: absolute;
  right: 14px;
  top: 50%;
  translate: 0 -50%;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  font-size: 0.9375rem;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.banner-close:hover { background: rgba(255, 255, 255, 0.22); }

body.has-banner { padding-bottom: 96px; }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .circle-svg path { animation: none; stroke-dashoffset: 0; }
  .cta-inner:hover .cta-wave { animation: none; }
  .btn:hover { transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .simu-grid,
  .tarif-grid,
  .profil-inner { grid-template-columns: 1fr; }

  .profil-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .stat-chip { flex: 1 1 160px; flex-direction: column; gap: 2px; align-items: flex-start; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }

  .logo { font-size: 1.0625rem; gap: 6px; }
  .logo-wave { font-size: 1.1rem; }
  .header-inner { gap: 12px; }
  .btn-small { padding: 10px 16px; font-size: 0.875rem; }

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

  .audit-form {
    flex-direction: column;
    border-radius: 24px;
    padding: 10px;
  }

  .audit-form input {
    padding: 12px 14px;
    text-align: center;
  }

  .audit-form .btn { width: 100%; }

  .card { padding: 24px; }
  .tarif-main { padding: 28px 24px; }

  .step { gap: 16px; }

  .receipt-tear::before { left: -33px; }
  .receipt-tear::after { right: -33px; }

  /* Chaque groupe de pilules tient sur une seule ligne */
  .pill-group { flex-wrap: nowrap; }

  .pill {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 6px;
    font-size: 0.875rem;
    text-align: center;
  }

  .pill small { font-size: 0.6875rem; white-space: nowrap; }

  .savings-banner { padding: 12px 52px; gap: 8px 14px; }
  .banner-text { font-size: 0.9375rem; }
  .banner-text strong { font-size: 1.1875rem; }
  .savings-banner .btn-small { padding: 9px 14px; font-size: 0.8125rem; }
  body.has-banner { padding-bottom: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  .savings-banner { transition: none; }
  .audit-status.is-loading::before { animation-duration: 2s; }
  .scan-fill { transition: none; }
  .scan-fill { transition: none; }
}
