/* ============================================================
   Funnel Liste de Courses — style.css
   Charte EXTRAITE depuis www.amenagetonvan.com (DevTools)
   - Background blanc pur, texte noir pur
   - Accent turquoise #33CEC6
   - Font Halyard Display (Adobe Typekit) → fallback Inter (Google)
   - Font-weight 300 (light) — la marque est minimaliste
   - Boutons primaires : NOIR rounded-pill (border-radius 999px)
   ============================================================ */

/* ── Reset léger ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img, picture, svg { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

/* ── Tokens (alignés amenagetonvan.com) ────────────────────── */
:root {
  /* Couleurs */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F4F4F4;          /* gris clair (#E6E6E6 du site mère, légèrement adouci) */
  --color-text: #000000;            /* noir pur comme amenagetonvan.com */
  --color-text-muted: #6B6B6B;
  --color-accent: #33CEC6;          /* turquoise marque */
  --color-accent-hover: #28B0A9;    /* turquoise plus foncé */
  --color-accent-soft: #E6F9F7;     /* turquoise très pâle (backgrounds soft) */
  --color-link: #000000;
  --color-border: #E6E6E6;
  --color-border-strong: #C7C7C7;
  --color-success: #2E7D32;
  --color-error: #C62828;

  /* Typographie — halyard-display (Adobe Typekit) avec fallback Inter (Google) */
  --font-heading: 'halyard-display', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'halyard-display', 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-section: clamp(3rem, 8vw, 5rem);

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 720px;
  --header-h: 64px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;            /* boutons amenagetonvan.com */

  /* Effets */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05), 0 1px 4px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.12);
  --transition: 150ms ease;
}

/* ── Base typographie ─────────────────────────────────────── */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;                /* light, comme amenagetonvan.com */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  margin: 0 0 var(--space-sm) 0;
  letter-spacing: 0.02em;          /* halyard a 0.8px sur 40px ≈ 0.02em */
  font-weight: 300;                /* light pour matcher amenagetonvan */
}

h1 { font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.18; }    /* 40px @ desktop, line-height 47/40 ≈ 1.18 */
h2 { font-size: clamp(1.4rem, 3.5vw, 1.75rem); line-height: 1.25; } /* ~27px */
h3 { font-size: 1.125rem; line-height: 1.4; font-weight: 400; }
p  { margin: 0 0 var(--space-sm) 0; }
small { font-size: 0.875rem; color: var(--color-text-muted); }

a { color: var(--color-link); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--color-accent-hover); }

ul { padding-left: 1.25rem; margin: 0 0 var(--space-sm) 0; }
li { margin-bottom: 0.4rem; }
ul.list-clean { list-style: none; padding: 0; }
ul.list-clean li { padding-left: 1.75rem; position: relative; }
ul.list-clean li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* ── Layout ────────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* ── Header minimal ───────────────────────────────────────── */
.site-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  position: sticky; top: 0; z-index: 10;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.brand {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.125rem;
  text-decoration: none;
  color: var(--color-text);
  letter-spacing: 0.02em;
}
.brand strong { color: var(--color-accent); font-weight: 400; }
.header-tag {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 300;
}
.header-tag::before { content: "✦  "; color: var(--color-accent); }

/* ── Footer minimal ───────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-md) 0;
  margin-top: var(--space-lg);
  background: var(--color-bg-alt);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-align: center;
}
.site-footer a { color: inherit; }

/* ── Boutons (style amenagetonvan.com : noir pill) ──────── */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-pill);  /* PILL — comme le site mère */
  font-weight: 400;
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: none;
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
  border: 0;
  text-align: center;
  font-family: var(--font-heading);
}
.btn-primary {
  background: var(--color-text);    /* NOIR comme amenagetonvan */
  color: var(--color-bg);
}
.btn-primary:hover {
  background: var(--color-accent);  /* turquoise au hover pour ajouter de la vie */
  color: var(--color-text);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-text);
}
.btn-secondary:hover {
  background: var(--color-text);
  color: var(--color-bg);
}
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ── Layout split (utilisé landing + choix) ──────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    min-height: calc(100vh - var(--header-h));
    padding: var(--space-lg) 0;
  }
}
.split__col { padding: var(--space-sm); }

/* ── Form opt-in ──────────────────────────────────────────── */
.opt-in {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
}
.opt-in__label {
  display: block;
  font-weight: 400;
  margin-bottom: var(--space-xs);
  letter-spacing: 0.02em;
}
.opt-in__input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);     /* pill aussi pour cohérence avec les boutons */
  font-size: 1rem;
  background: var(--color-bg);
  font-weight: 300;
  transition: border-color var(--transition);
}
.opt-in__input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}
.opt-in__error {
  color: var(--color-error);
  font-size: 0.875rem;
  margin: var(--space-xs) 0 0;
  min-height: 1.25rem;
}
.opt-in__trust {
  display: flex; flex-wrap: wrap; gap: var(--space-sm);
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.opt-in__trust span::before {
  content: "✓ ";
  color: var(--color-accent);
  font-weight: 700;
}

/* ── Visuel produit (landing right col) ──────────────────── */
.visual {
  text-align: center;
}
.visual__image {
  max-width: 380px;
  margin: 0 auto var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-border-strong);
  aspect-ratio: 3 / 4;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  padding: var(--space-md);
}
.visual__caption {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ── Cards de choix (page choix) ─────────────────────────── */
.choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  padding: var(--space-md) 0 var(--space-lg);
}
@media (min-width: 900px) {
  .choice-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
}
.choice {
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.choice:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.choice--featured {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, var(--color-accent-soft) 0%, var(--color-bg) 60%);
}
.choice__badge {
  position: absolute;
  top: -12px; right: var(--space-md);
  background: var(--color-accent);
  color: var(--color-text);             /* noir sur turquoise pour lisibilité */
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}
.choice__title { margin-top: 0; }
.choice__price {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 2.25rem;
  margin: var(--space-xs) 0;
  line-height: 1;
  letter-spacing: 0.01em;
}
.choice__price-old {
  color: var(--color-text-muted);
  font-size: 1rem;
  text-decoration: line-through;
  margin-left: var(--space-xs);
  font-weight: 300;
}
.choice__price-free {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 2.25rem;
  margin: var(--space-xs) 0;
  color: var(--color-text-muted);
  line-height: 1;
}
.choice__bullets { flex: 1; margin: var(--space-sm) 0 var(--space-md); }
.choice__cta { margin-top: auto; }

/* ── Hero centré (page choix, etc.) ──────────────────────── */
.hero-center {
  text-align: center;
  padding: var(--space-md) 0 var(--space-sm);
}
.hero-center h1 { margin-bottom: var(--space-xs); }
.hero-center p { color: var(--color-text-muted); margin: 0 auto; max-width: 560px; }

/* ── États utilitaires ───────────────────────────────────── */
.is-hidden { display: none !important; }
.is-loading { opacity: 0.6; pointer-events: none; }
.notice {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  margin: var(--space-sm) 0;
  font-size: 0.9375rem;
}
.notice--success { background: var(--color-accent-soft); border-color: var(--color-accent); color: var(--color-text); }
.notice--error { background: #FFEBEE; border-color: #EF9A9A; color: var(--color-error); }

/* ── Spinner inline ──────────────────────────────────────── */
.spinner {
  display: inline-block; width: 1em; height: 1em;
  border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%;
  animation: spin 600ms linear infinite;
  vertical-align: -0.15em;
  margin-right: 0.5em;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Em styling — accent turquoise pour highlights inline ── */
em { font-style: italic; color: var(--color-accent-hover); }

/* ── Détails / FAQ ────────────────────────────────────────── */
details { border-bottom: 1px solid var(--color-border); }
details:last-of-type { border-bottom: 0; }
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: " ↓"; color: var(--color-accent); margin-left: auto; }
details[open] summary::after { content: " ↑"; }

/* ── Responsive bonus ────────────────────────────────────── */
@media (max-width: 600px) {
  .opt-in { padding: var(--space-sm); }
  .choice { padding: var(--space-sm); }
}
