/* Site vitrine Buvetix — mêmes polices que l'app (Big Shoulders + Public
   Sans), couleurs de la marque : encre, crème, ambre (assets/brand). */
:root {
  --ink: #17150F;
  --ink-2: #211E16;
  --ink-3: #2C281E;
  --cream: #F2F0EB;
  --cream-muted: #B9B4A8;
  --amber: #F2B23A;
  --amber-deep: #C98A12;
  --line: rgba(242, 240, 235, 0.12);
  --radius: 18px;
  --font-display: "Big Shoulders", "Arial Narrow", sans-serif;
  --font-text: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--amber); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0 0 16px; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 900; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.45rem; font-weight: 800; }
p { margin: 0 0 16px; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.wrap.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; margin-inline: auto; }
.eyebrow { color: var(--amber); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 12px; }
.lead { color: var(--cream-muted); font-size: 1.12rem; }
.hl { color: var(--amber); }
.nowrap { white-space: nowrap; }

/* ---- Boutons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  font-family: var(--font-text); transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #F6C25F; }
.btn-ghost { border-color: var(--line); color: var(--cream); background: transparent; }
.btn-ghost:hover { border-color: var(--amber); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

/* ---- Navigation ---- */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(23, 21, 15, 0.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.nav-logo img { height: 28px; width: auto; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--cream-muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--cream); }

/* ---- Hero ---- */
.hero { padding: 72px 0 56px; overflow: hidden; background: radial-gradient(60% 70% at 85% 30%, rgba(242, 178, 58, 0.16), transparent 70%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 22px; }
.hero-reassure { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; color: var(--cream-muted); font-size: 0.92rem; }
.hero-reassure li::before { content: "✓"; color: var(--amber); font-weight: 700; margin-right: 6px; }
.hero-visual { position: relative; height: 560px; }

/* Maquette de téléphone autour des captures de l'app */
.phone {
  width: 270px; aspect-ratio: 400 / 860; border-radius: 38px; padding: 9px;
  background: #0B0A07; border: 1px solid rgba(242, 240, 235, 0.16);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 2px #1d1b15;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; }
.hero-visual .phone { position: absolute; }
.phone-front { right: 40px; top: 0; z-index: 2; }
.phone-back { right: 230px; top: 60px; transform: rotate(-6deg); opacity: 0.75; }

/* ---- Preuve ---- */
.proof { border-block: 1px solid var(--line); background: var(--ink-2); }
.proof-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; flex-wrap: wrap; }
.proof-label { margin: 0; color: var(--cream-muted); font-weight: 600; max-width: 280px; }
.proof-stats { display: flex; gap: 48px; margin: 0; }
.proof-stats div { text-align: center; }
.proof-stats dt { font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; color: var(--amber); line-height: 1; }
.proof-stats dd { margin: 4px 0 0; color: var(--cream-muted); font-size: 0.9rem; }

/* ---- Sections ---- */
.section { padding: 96px 0; }
.section-alt { background: var(--ink-2); }

.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step p { color: var(--cream-muted); margin: 0; }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--amber); color: var(--ink); font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; margin-bottom: 16px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.feature { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: linear-gradient(180deg, rgba(242, 240, 235, 0.03), transparent); }
.feature h3 { font-size: 1.25rem; }
.feature h3::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--amber); margin-bottom: 14px; }
.feature p { color: var(--cream-muted); font-size: 0.95rem; margin: 0; }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.split-visual { display: flex; justify-content: center; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ink); background: var(--amber); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 800; margin-top: 3px; }

/* ---- Tarifs ---- */
.formula-tabs { display: flex; justify-content: center; gap: 6px; margin: 36px auto 10px; padding: 6px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; width: max-content; max-width: 100%; flex-wrap: wrap; }
.formula-tab { border: 0; background: transparent; color: var(--cream-muted); font: 600 0.95rem var(--font-text); padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.formula-tab[aria-selected="true"] { background: var(--amber); color: var(--ink); }
.formula-note { text-align: center; color: var(--cream-muted); font-size: 0.95rem; min-height: 1.6em; margin-bottom: 28px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; background: var(--ink-2); }
.plan-featured { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber), 0 24px 60px rgba(242, 178, 58, 0.12); }
.plan-badge { position: absolute; top: -13px; left: 26px; background: var(--amber); color: var(--ink); font-size: 0.75rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em; }
.plan h3 { font-size: 1.8rem; margin-bottom: 4px; }
.plan-size { color: var(--cream-muted); margin-bottom: 20px; }
.plan-price { margin: 0 0 6px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan-amount { font-family: var(--font-display); font-weight: 900; font-size: 3rem; line-height: 1; }
.plan-unit { color: var(--cream-muted); font-weight: 600; }
.plan-split { color: var(--cream-muted); font-size: 0.92rem; min-height: 3em; flex: 1; }
.plans-dots { display: none; justify-content: center; gap: 8px; margin-top: 14px; }
.plans-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; transition: width 0.2s, background 0.2s; }
.plans-dots button[aria-current="true"] { width: 22px; border-radius: 4px; background: var(--amber); }
.plans-footnote { color: var(--cream-muted); font-size: 0.88rem; text-align: center; margin: 24px auto 0; max-width: 760px; }

/* ---- FAQ ---- */
.faq { margin-top: 36px; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--ink-3); padding: 0 22px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--cream-muted); margin: 0 0 18px; }

/* ---- Formulaire d'inscription ---- */
.signup { margin-top: 36px; display: grid; gap: 16px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.signup label { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--cream-muted); }
.signup input, .signup select, .signup textarea {
  font: 1rem var(--font-text); color: var(--cream); background: var(--ink); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 12px 14px; width: 100%;
}
.signup input:focus, .signup select:focus, .signup textarea:focus { outline: none; border-color: var(--amber); }
.signup input[aria-invalid="true"] { border-color: #E5604D; }
.signup .consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; }
.signup .consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--amber); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #F08A7A; margin: 0; font-weight: 600; }
.signup-done { margin-top: 36px; text-align: center; background: var(--ink-2); border: 1px solid var(--amber); border-radius: var(--radius); padding: 36px 28px; }
.signup-done p { color: var(--cream-muted); margin: 0; }

/* ---- Pied de page ---- */
.footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-logo { height: 24px; width: auto; }
.footer-links { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.footer-links a { color: var(--cream-muted); text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover { color: var(--cream); }
.footer-copy { margin: 0; color: var(--cream-muted); font-size: 0.88rem; }

/* ---- Pages légales ---- */
.legal { padding: 64px 0 96px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal h2 { font-size: 1.5rem; margin-top: 40px; }
.legal p, .legal li { color: var(--cream-muted); }
.todo { background: rgba(242, 178, 58, 0.15); color: var(--amber); padding: 0 6px; border-radius: 4px; font-weight: 600; }

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .hero-inner, .split { grid-template-columns: 1fr; }
  .hero-visual { height: 520px; max-width: 520px; margin: 0 auto; width: 100%; }
  .phone-front { right: 8%; }
  .phone-back { right: auto; left: 2%; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav .btn-sm { margin-left: auto; }
  .hero { padding-top: 44px; }
  .section { padding: 72px 0; }
  .steps, .field-row { grid-template-columns: 1fr; }
  /* Forfaits : carrousel horizontal qui défile au doigt, une carte à la
     fois (la suivante dépasse sur le bord pour signaler le défilement). */
  .plans {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -16px; padding: 16px 16px 8px; scroll-padding-inline: 16px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .plans::-webkit-scrollbar { display: none; }
  .plan { flex: 0 0 82%; scroll-snap-align: center; }
  .plans-dots { display: flex; }
  .proof-stats { gap: 28px; }
  .phone { width: 230px; }
  .hero-visual { height: 470px; }
  .phone-back { display: none; }
  .phone-front { left: 50%; right: auto; transform: translateX(-50%); }
  .formula-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 18px; }
}
@media (max-width: 420px) {
  .features { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---- Tableau comparatif des formules (sous les forfaits) ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.compare { margin-top: 64px; }
.compare-title { font-size: clamp(1.6rem, 3.2vw, 2.2rem); text-transform: uppercase; text-align: center; margin-bottom: 8px; }
.compare-sub { text-align: center; color: var(--cream-muted); max-width: 640px; margin: 0 auto 28px; }
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 640px; }
.cmp th, .cmp td { padding: 14px 16px; text-align: center; vertical-align: middle; border-bottom: 1px solid var(--line); }
.cmp tbody th { text-align: left; font-weight: 500; color: var(--cream); width: 40%; }
.cmp thead th { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; padding: 18px 16px; border-bottom: 1px solid rgba(242, 240, 235, 0.25); }
.cmp-group th { text-align: left !important; padding-top: 30px; font-size: 0.78rem; font-weight: 700 !important; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber) !important; border-bottom: 1px solid rgba(242, 240, 235, 0.25); }
.cmp tbody tr:not(.cmp-group):nth-child(even) { background: rgba(242, 240, 235, 0.025); }
.cmp-hint { display: block; color: var(--cream-muted); font-size: 0.82rem; font-weight: 400; margin-top: 2px; line-height: 1.4; }
.cmp-val { font-weight: 600; font-size: 0.95rem; }
.cmp-check { width: 22px; height: 22px; fill: none; stroke: var(--cream); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.cmp-dash { color: var(--cream-muted); }
/* Colonne Pro mise en avant (comme la carte "Le plus courant"). */
.cmp .cmp-pro { background: rgba(242, 178, 58, 0.07); border-left: 1px solid rgba(242, 178, 58, 0.45); border-right: 1px solid rgba(242, 178, 58, 0.45); color: var(--amber); }
.cmp .cmp-pro .cmp-check { stroke: var(--amber); }
.cmp thead .cmp-pro { border-top: 1px solid rgba(242, 178, 58, 0.45); border-radius: 14px 14px 0 0; }
.cmp tbody tr:last-child .cmp-pro { border-bottom: 1px solid rgba(242, 178, 58, 0.45); }
.cmp tbody tr:last-child td, .cmp tbody tr:last-child th { border-bottom-color: transparent; }
.cmp tbody tr:last-child td.cmp-pro { border-bottom-color: rgba(242, 178, 58, 0.45); border-radius: 0 0 14px 14px; }

@media (max-width: 760px) {
  /* Sur mobile : pas de défilement horizontal. Chaque avantage prend toute
     la largeur, ses trois valeurs alignées dessous ; l'en-tête des
     paliers reste collé sous la barre de navigation pendant la lecture. */
  .compare-scroll { overflow: visible; }
  .cmp, .cmp thead, .cmp tbody { display: block; min-width: 0; }
  .cmp tr { display: grid; grid-template-columns: repeat(3, 1fr); }
  .cmp thead { position: sticky; top: 64px; z-index: 2; background: var(--ink); }
  .cmp thead th:first-child { display: none; }
  .cmp thead th { font-size: 1.15rem; padding: 12px 6px; }
  .cmp tbody th { grid-column: 1 / -1; width: auto; padding: 14px 4px 2px; border-bottom: 0; text-align: center; font-weight: 600; }
  .cmp-group th { padding: 26px 4px 8px !important; text-align: center !important; }
  .cmp tbody td { padding: 8px 4px 14px; }
  .cmp tbody tr:not(.cmp-group):nth-child(even) { background: transparent; }
  .cmp-hint { display: none; }
  .cmp-val { font-size: 0.82rem; line-height: 1.3; display: inline-block; }
  .cmp thead .cmp-pro { border-radius: 12px 12px 0 0; }
  /* Pas de bordure de colonne Pro sous un intitulé pleine largeur. */
  .cmp tbody tr:last-child td.cmp-pro { border-radius: 0 0 12px 12px; }
}

/* ---- Encart essai gratuit (au-dessus des forfaits) ---- */
.trial {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 24px;
  padding: 24px 28px;
  border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent);
  border-radius: var(--radius);
  background: linear-gradient(120deg, color-mix(in srgb, var(--amber) 14%, var(--ink-2)), var(--ink-2) 70%);
}
.trial-text { min-width: 0; }
.trial-badge { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: var(--amber); }
.trial-title { margin: 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.trial-sub { margin: 6px 0 0; color: var(--cream-muted); max-width: 60ch; }
.trial .btn { flex-shrink: 0; }
@media (max-width: 720px) {
  .trial { flex-direction: column; align-items: stretch; padding: 22px 20px; }
}
