/* Page d'accueil publique (accueil.html) : couleurs d'Orpaille (bordeaux et or), sombre par défaut comme l'application,
   thème clair via data-theme. Polices du système : aucun service tiers (RGPD). */

:root {
  --bg: #0f0c0d; --bg-2: #141012; --panel: #171214; --panel-2: #1f181b; --border: #362b2f;
  --text: #efe8e4; --muted: #a59a96; --wine: #8e2236; --wine-2: #b23a4f; --gold: #e2b35c; --gold-2: #a8672a;
  --on-gold: #22140f; --up: #22c55e; --warn: #f2994a;
  --shadow: 0 30px 80px rgb(0 0 0 / .45);
  --basic: #6b9be8; --premium: #e2b35c; --ultra: #b98ae6;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f7f4f3; --bg-2: #f1ebe8; --panel: #ffffff; --panel-2: #f2edeb; --border: #e5dcd8;
  --text: #1c1315; --muted: #6f6361; --wine: #8b1d31; --wine-2: #a3283e; --gold: #a8672a; --gold-2: #8a521d;
  --on-gold: #ffffff; --up: #15934a; --warn: #c26a12;
  --shadow: 0 24px 60px rgb(60 30 30 / .14);
  --basic: #4479d6; --premium: #b8841f; --ultra: #9b62d6;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.wrap.narrow { max-width: 820px; }
h1, h2, h3 { margin: 0; line-height: 1.12; text-wrap: balance; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
h3 { font-size: 23px; font-weight: 750; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px rgb(34 197 94 / .18); }
.shine { background: linear-gradient(100deg, var(--wine-2), var(--gold) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font: 700 15px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.gold { background: linear-gradient(135deg, #f0cd85, var(--gold)); color: #22140f; }
:root[data-theme="light"] .btn.gold { background: linear-gradient(135deg, #c98a3e, var(--gold-2)); color: #fff; }
.btn.wine { background: linear-gradient(135deg, var(--wine-2), var(--wine)); color: #fff; box-shadow: 0 10px 30px rgb(142 34 54 / .35); }
.btn.ghost { border-color: var(--border); background: transparent; color: var(--text); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 10; padding-top: env(safe-area-inset-top, 0px); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; letter-spacing: -.01em; }
.top-nav { display: flex; gap: 22px; margin-right: auto; }
.top-nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.top-nav a:hover { color: var(--text); }
.top-actions { display: flex; gap: 10px; }

/* Haut de page */
.hero { position: relative; overflow: hidden; padding-block: 72px 56px; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 640px; pointer-events: none;
  background: radial-gradient(closest-side at 70% 40%, rgb(142 34 54 / .35), transparent 70%), radial-gradient(closest-side at 30% 20%, rgb(226 179 92 / .12), transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 4.8vw, 62px); font-weight: 850; margin-top: 18px; }
.lead { font-size: 19px; color: var(--muted); max-width: 54ch; margin: 20px 0 28px; }
.join { display: grid; gap: 12px; max-width: 560px; }
.join-row { display: flex; gap: 10px; }
.join input[type="email"] { flex: 1; min-width: 0; min-height: 50px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font: 16px var(--sans); }
.join input[type="email"]::placeholder { color: var(--muted); }
.join .btn { min-height: 50px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--wine-2); flex: none; }
.join-msg { margin: 0; font-size: 15px; font-weight: 600; min-height: 0; }
.join-msg:empty { display: none; }
.join-msg.ok { color: var(--up); }
.join-msg.err { color: #ef6b6b; }
:root[data-theme="light"] .join-msg.err { color: #c62828; }
.join.done .join-row, .join.done .check, .join.done .partner-code { display: none; }
.partner-offer { margin: 0; padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text); background: rgb(184 132 31 / .12); border: 1px solid rgb(184 132 31 / .4); }
.partner-code summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.partner-code input { margin-top: 8px; width: min(260px, 100%); min-height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font: 15px var(--sans); text-transform: uppercase; }
.fine { margin: 0; font-size: 13px; color: var(--muted); }
.fine a { color: var(--muted); }
.more { display: inline-block; margin-top: 22px; color: var(--gold); font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }

.frame { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--panel); box-shadow: var(--shadow); }
.hero-shot { position: relative; margin: 0; }
.hero-shot .frame { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.float-card { position: absolute; left: -22px; bottom: -28px; display: grid; gap: 2px; padding: 14px 18px; border-radius: 12px; background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow); }
.fc-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.fc-value { font-size: 30px; font-weight: 850; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fc-value small, .xray-score b small { font-size: 14px; color: var(--muted); font-weight: 600; }
.fc-pill { justify-self: start; font-size: 12px; font-weight: 700; color: var(--warn); background: rgb(242 153 74 / .14); border-radius: 999px; padding: 2px 10px; }

/* En bref */
.facts { border-block: 1px solid var(--border); background: var(--bg-2); }
.facts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-block: 26px; }
.facts-row div { display: grid; gap: 2px; }
.facts-row b { font-size: 15px; }
.facts-row span { font-size: 14px; color: var(--muted); }

/* Fonctionnalités */
.features, .pricing, .faq { padding-block: 96px 24px; }
.section-head { display: grid; gap: 10px; justify-items: center; text-align: center; margin-bottom: 56px; }
.section-head .sub { margin: 0; color: var(--muted); max-width: 60ch; }
.feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; margin-bottom: 96px; }
.feature.flip .feature-text { order: 2; }
.feature-text p { color: var(--muted); margin: 14px 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(-45deg); }

.xray { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; align-items: center; padding: 28px; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow);
  background: radial-gradient(120% 120% at 0% 0%, rgb(142 34 54 / .28), transparent 60%), var(--panel); }
.xray-score { position: relative; display: grid; justify-items: center; gap: 6px; }
.xray-score svg { width: 150px; overflow: visible; }
.xray-score .track, .xray-score .value { fill: none; stroke-width: 10; stroke-linecap: round; }
.xray-score .track { stroke: var(--panel-2); }
.xray-score .value { stroke: var(--warn); }
.xray-score b { margin-top: -46px; font-size: 34px; font-weight: 850; font-variant-numeric: tabular-nums; }
.xray-title { margin: 0 0 12px; font-weight: 800; font-size: 19px; }
.xray ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.xray li { display: flex; gap: 10px; font-size: 15px; }
.warn { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: var(--warn); border: 1.5px solid var(--warn); margin-top: 2px; }
.xray-note { margin: 14px 0 0; font-size: 12px; color: var(--muted); }

.chat { display: grid; gap: 14px; padding: 26px; border-radius: 16px; border: 1px solid var(--border); background: var(--panel); box-shadow: var(--shadow); }
.bubble { margin: 0; padding: 14px 16px; border-radius: 14px; font-size: 15px; max-width: 92%; }
.bubble p { margin: 0; }
.bubble.me { justify-self: end; background: linear-gradient(135deg, var(--wine-2), var(--wine)); color: #fff; border-bottom-right-radius: 4px; }
.bubble.bot { background: var(--panel-2); border-bottom-left-radius: 4px; }
.bubble .src { margin-top: 10px; font-size: 12px; color: var(--muted); }

.france { padding: 36px; border-radius: 16px; border: 1px solid var(--border); background: var(--bg-2); }
.france h3 { margin-bottom: 22px; }
.france-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.france-grid div { display: grid; gap: 6px; align-content: start; }
.france-grid b { font-size: 16px; }
.france-grid span { font-size: 14px; color: var(--muted); }

/* Formules */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; display: grid; align-content: start; gap: 6px; padding: 26px 22px; border-radius: 16px; border: 1px solid var(--border); background: var(--panel); }
.plan.featured { border: 1.5px solid var(--gold); box-shadow: 0 20px 60px rgb(226 179 92 / .12); }
.ribbon { position: absolute; top: -12px; left: 22px; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: linear-gradient(135deg, var(--wine-2), var(--wine)); color: #fff; }
.plan h3 { font-size: 21px; }
.c-basic { color: var(--basic); } .c-premium { color: var(--premium); } .c-ultra { color: var(--ultra); }
.tag { margin: 0; font-size: 14px; color: var(--muted); }
.price { margin: 12px 0 10px; display: grid; }
.price b { font-size: 34px; font-weight: 850; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.price small { font-size: 13px; color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--border); display: grid; gap: 8px; font-size: 14.5px; }
.sub.center { text-align: center; margin-top: 28px; }
.sub.center a { color: var(--gold); font-weight: 700; }

/* Questions */
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 26px; font-weight: 400; color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 70ch; }

/* Dernier appel */
.final { padding-block: 88px; }
.final-box { display: grid; gap: 14px; justify-items: center; text-align: center; padding-block: 56px; border-radius: 20px; border: 1px solid var(--border);
  background: radial-gradient(80% 140% at 50% 0%, rgb(142 34 54 / .4), transparent 70%), var(--panel); }
.final-box p { margin: 0 0 10px; color: var(--muted); }
.final-box .join { width: 100%; justify-items: stretch; }

/* Pied de page */
.foot { border-top: 1px solid var(--border); padding-block: 28px 40px; padding-bottom: max(40px, env(safe-area-inset-bottom, 0px)); }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.foot-brand span { color: var(--muted); font-weight: 500; font-size: 14px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.disclaimer { margin-top: 18px; font-size: 12.5px; color: var(--muted); }

/* Tablette et téléphone */
@media (max-width: 980px) {
  .hero-grid, .feature { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .feature.flip .feature-text { order: 0; }
  .hero-shot .frame { transform: none; }
  .plans, .facts-row, .france-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-nav { display: none; }
  .top-actions { margin-left: auto; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-block: 44px 48px; }
  .lead { font-size: 17px; }
  .join-row { flex-direction: column; }
  .top-actions .btn.gold { display: none; }
  .plans, .facts-row, .france-grid { grid-template-columns: minmax(0, 1fr); }
  .xray { grid-template-columns: minmax(0, 1fr); justify-items: start; padding: 22px; }
  .xray-score { justify-self: center; }
  .float-card { left: 12px; bottom: -24px; padding: 10px 14px; }
  .fc-value { font-size: 24px; }
  .features, .pricing, .faq { padding-block: 64px 16px; }
  .feature { margin-bottom: 64px; }
  .france { padding: 24px; }
  .final-box { padding: 40px 20px; }
}

/* Réseaux sociaux : « Retrouvez-nous sur : » et un logo rond par réseau */
.foot .social { margin-top: 18px; }
.social { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--panel); color: var(--text); transition: transform .15s, border-color .15s; }
.social a:hover { transform: translateY(-2px); border-color: var(--text); }
.social svg { width: 16px; height: 16px; fill: currentColor; }

/* Offre membres fondateurs au-dessus des formules */
.founding-strip { max-width: 900px; margin: 0 auto 22px; padding: 12px 18px; border-radius: 14px; text-align: center; font-size: 15px;
  border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--wine) 22%, transparent), color-mix(in srgb, var(--gold) 12%, transparent)); }
.founding-strip b { color: var(--gold); }
.founding-price { margin: -6px 0 12px; padding: 7px 10px; border-radius: 10px; font-size: 13px; color: var(--text); background: color-mix(in srgb, var(--gold) 12%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); }

/* Interrupteur Mensuel / Annuel des formules (accueil.js) */
.billing { display: grid; justify-items: center; gap: 10px; margin: 0 0 26px; }
.billing[hidden] { display: none; }
.billing-toggle { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: var(--panel); border: 1px solid var(--border); }
.billing-pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: color-mix(in srgb, var(--gold) 18%, var(--panel)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 45%, transparent); transition: transform .3s cubic-bezier(.3, .9, .3, 1); }
.billing-toggle.is-yearly .billing-pill { transform: translateX(100%); }
.billing-toggle button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 150px; padding: 11px 22px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: color .2s; }
.billing-toggle button.active { color: var(--text); }
.billing-save { padding: 3px 9px; border-radius: 999px; background: rgb(34 197 94 / .18); color: #22c55e; font-size: 12px; font-weight: 800; }
.billing-hint { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.billing-hint b { color: #22c55e; }
.price s { font-size: 15px; font-weight: 600; color: var(--muted); text-decoration-thickness: 2px; text-decoration-color: rgb(239 68 68 / .75); }
.price .saved { justify-self: start; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: rgb(34 197 94 / .14); color: #22c55e; font-size: 12px; font-weight: 700; }
@media (max-width: 480px) { .billing-toggle button { min-width: 0; padding: 10px 16px; font-size: 14px; } }
