/* ===========================================================================
   vente.css -- les pages de vente construites autour de la VSL : l'accueil (/)
   et /vsl. Charge APRES site.css, dont il reprend les variables.

   Lot 8 (24/10/2026) : sorti du <style> de vsl.html sans modification quand
   l'accueil est devenu une page VSL ; ce qui n'existe que sur l'accueil reste
   dans index.html.
   =========================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}
body.dark-mode {
  --bg-gradient-start: #0c0a09;
  --bg-gradient-end: #1c1917;
  --bg-card: #1c1917;
  --bg: #0c0a09;
  --text: #fafaf9;
  --text-muted: #a8a29e;
  --border: rgba(168, 162, 158, 0.25);
}
main { flex: 1; }
.section { padding: clamp(40px, 7vw, 72px) 0; }
.section-title {
  font-size: clamp(24px, 4.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.section-sub { color: var(--text-muted); font-size: clamp(15px, 2.6vw, 17px); max-width: 640px; }
.centre { text-align: center; }
.centre .section-sub { margin: 0 auto; }
.rouge { color: var(--accent-red); }

/* ---------- en-tête minimal : une page de vente ne distrait pas ---------- */
.vsl-header-note { font-size: 13px; color: var(--text-muted); }
@media (max-width: 640px) { .vsl-header-note { display: none; } }

/* ---------- la vidéo ---------- */
.vsl-hero { padding: clamp(32px, 6vw, 56px) 0 clamp(24px, 4vw, 40px); }
.vsl-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.vsl-hero h1 {
  font-size: clamp(28px, 5.5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 820px;
  margin: 0 auto 12px;
}
.vsl-hero .section-sub { margin: 0 auto 26px; max-width: 680px; }
.vsl-player {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: clamp(14px, 2.5vw, 24px);
  overflow: hidden;
  background: #0b1220;
  box-shadow: 0 30px 70px -30px rgba(15, 23, 42, 0.55), 0 0 0 1px var(--border);
}
.vsl-player video { display: block; width: 100%; height: 100%; object-fit: cover; background: #0b1220; }
.vsl-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  /* Couverture « ×7 » (24/10/2026) : le texte occupe le haut de l'image, le bouton se pose dans le quart
     du bas laissé libre ; centré, il cachait le titre sur téléphone. Voile léger, la couverture est claire. */
  background: linear-gradient(180deg, rgba(11, 18, 32, 0) 70%, rgba(11, 18, 32, 0.16) 100%);
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: #fff;
  font: inherit;
  padding: 0 0 clamp(10px, 4.5%, 34px);
}
.vsl-play span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px 14px 18px;
  border-radius: 999px;
  background: var(--accent);
  font-weight: 800;
  font-size: clamp(15px, 2.6vw, 18px);
  box-shadow: 0 20px 40px -12px rgba(37, 99, 235, 0.8);
  transition: transform 0.2s ease;
}
.vsl-play:hover span, .vsl-play:focus-visible span { transform: scale(1.04); }
.vsl-play svg { width: 26px; height: 26px; flex-shrink: 0; }
@media (max-width: 640px) {
  .vsl-play span { gap: 8px; padding: 9px 16px 9px 12px; font-size: 14px; }
  .vsl-play svg { width: 18px; height: 18px; }
}
.vsl-play.is-hidden { display: none; }
.vsl-player:fullscreen video { object-fit: contain; }

/* ---------- les chapitres ---------- */
.vsl-chapitres { max-width: 980px; margin: 18px auto 0; }
.vsl-chapitres ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}
.vsl-chapitres button {
  width: 100%;
  height: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.vsl-chapitres button:hover, .vsl-chapitres button:focus-visible { border-color: var(--accent); }
.vsl-chapitres button.is-active { border-color: var(--accent); background: var(--accent-glow); }
.vsl-chapitres .ch-n { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: 0.06em; }
.vsl-chapitres .ch-t { font-variant-numeric: tabular-nums; color: var(--text-muted); font-weight: 500; font-size: 12px; }
/* Sur téléphone, la grille de sept chapitres repoussait le champ « votre établissement » sous
   trois écrans (Stéphane, 23/10) : une seule rangée de pastilles qui défile, le chapitre en cours
   ramené au centre par vsl.js. */
@media (max-width: 640px) {
  .vsl-chapitres { margin-top: 12px; }
  .vsl-chapitres ol {
    position: relative;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .vsl-chapitres ol::-webkit-scrollbar { display: none; }
  .vsl-chapitres li { flex: 0 0 auto; scroll-snap-align: start; }
  .vsl-chapitres button {
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    white-space: nowrap;
  }
  .vsl-chapitres .ch-t { font-size: 11px; }
  .vsl-clients { font-size: 13px; line-height: 1.5; margin-top: 12px; }
}
.vsl-clients { max-width: 980px; margin: 16px auto 0; font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.vsl-clients-titre { display: block; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.vsl-clients a { color: var(--accent); font-weight: 600; text-decoration: none; }
.vsl-clients a:hover, .vsl-clients a:focus-visible { text-decoration: underline; }

/* ---------- la porte : le champ unique ---------- */
.vsl-porte { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.porte-card { max-width: 720px; margin: 0 auto; }
.hero-search { position: relative; margin: 22px auto 0; max-width: 620px; }
.hero-search-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--text); text-align: left; }
.hero-search-row { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-search-row input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.hero-search-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.hero-search-btn { flex: 0 0 auto; }
.hero-suggestions { margin-top: 8px; text-align: left; }
.hero-reassurance { margin-top: 12px; font-size: 13px; color: var(--text-muted); }
@media (max-width: 640px) { .hero-search-btn { width: 100%; } }

/* ---------- le tarif ---------- */
.tarif-card {
  max-width: 640px;
  margin: 24px auto 0;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: clamp(16px, 3vw, 24px);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 30px 60px -36px rgba(37, 99, 235, 0.5);
  text-align: left;
}
.tarif-prix { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tarif-prix strong { font-size: clamp(40px, 8vw, 60px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.tarif-prix span { color: var(--text-muted); font-weight: 600; }
.tarif-jour { margin-top: 6px; font-weight: 700; }
.tarif-anchor { margin-top: 14px; color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.tarif-list { list-style: none; margin: 18px 0 8px; }
.tarif-list li { padding: 5px 0 5px 26px; position: relative; font-size: 15px; color: var(--text); }
.tarif-list li::before { content: '✓'; position: absolute; left: 0; top: 5px; color: var(--accent); font-weight: 800; }
.tarif-note { font-size: 13px; color: var(--text-muted); margin-top: 10px; line-height: 1.6; }
.tarif-cta { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.tarif-cta .btn { width: 100%; justify-content: center; }
.tarif-cta .btn-primary { font-size: 17px; padding: 16px 24px; }

/* ---------- la FAQ (reprise de la home) ---------- */
.faq-list { max-width: 720px; margin: 22px auto 0; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: clamp(10px, 2vw, 14px); overflow: hidden; }
.faq-item[open] { border-color: var(--accent); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: clamp(14px, 3vw, 20px) clamp(16px, 3.5vw, 24px);
  font-size: clamp(14px, 2.8vw, 17px); font-weight: 600; color: var(--text); line-height: 1.45;
  cursor: pointer; list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { content: ''; }
.faq-q::after {
  content: ''; flex-shrink: 0; width: 10px; height: 10px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.3s ease;
}
.faq-item[open] .faq-q::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq-q:hover { color: var(--accent); }
.faq-q:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.faq-a { padding: 0 clamp(16px, 3.5vw, 24px) clamp(16px, 3vw, 22px); font-size: clamp(13px, 2.6vw, 15px); color: var(--text-muted); line-height: 1.7; }

/* ---------- le rappel ---------- */
.rappel { background: var(--bg-card); border-top: 1px solid var(--border); }
.rappel-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.rappel-tel { margin-top: 14px; font-size: 14px; color: var(--text-muted); }
.rappel-tel a { color: var(--accent); font-weight: 700; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .vsl-play span, .vsl-chapitres button, .faq-q::after { transition: none; }
}
