/* Ipsivox — page d'accueil publique. Police système (aucune ressource externe), thème clair/sombre
   automatique, jetons repris de l'application (app.css) pour que le site et l'appli se ressemblent. */

:root {
  --bg: #f5f4f0;
  --surface: #ffffff;
  --surface-2: #eeece6;
  --text: #16171b;
  --muted: #5c5f67;
  --line: #e1ded6;
  --accent: #4338ca;
  --accent-ink: #ffffff;
  --accent-soft: #e7e6fb;
  --ok: #176c41;
  --ok-soft: #e0f2e8;
  --rec: #d42a37;
  --shadow: 0 1px 2px rgba(20, 20, 30, .06), 0 4px 16px rgba(20, 20, 30, .06);
  --shadow-lg: 0 24px 60px rgba(20, 20, 40, .14);
  --radius: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111317;
    --surface: #1a1d23;
    --surface-2: #242831;
    --text: #eceef2;
    --muted: #a5aab4;
    --line: #2d313b;
    --accent: #a3a8ff;
    --accent-ink: #14152b;
    --accent-soft: #262948;
    --ok: #5fd39a;
    --ok-soft: #173024;
    --rec: #ff5c63;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0 0 12px; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: 34px; font-weight: 800; }
h2 { font-size: 27px; font-weight: 750; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 14px; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 720px; }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 30; text-decoration: none;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.small { font-size: 14px; color: var(--muted); }
.muted { color: var(--muted); }
.note { font-size: 14.5px; color: var(--muted); margin: 0 0 10px; }
.lead { font-size: 18.5px; color: var(--muted); }
.section-lead { font-size: 17.5px; color: var(--muted); max-width: 660px; margin: 0 auto 18px; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 10px;
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  background: var(--surface-2); color: var(--text);
  font-size: 16px; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, opacity .12s ease;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--text); }
.btn-quiet { background: transparent; color: var(--text); padding: 0 12px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 17.5px; }
.btn-block { width: 100%; }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo img { width: 126px; height: 34px; object-fit: contain; }
.nav { display: none; margin-left: auto; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15.5px; font-weight: 600; }
.nav a:hover { color: var(--text); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.header-cta .btn { min-height: 40px; font-size: 15px; padding: 0 14px; }

/* ---------- Héros ---------- */

.hero { padding: 40px 0 8px; }
.hero-in { display: grid; gap: 34px; }
.hero h1 { font-size: clamp(32px, 8.4vw, 46px); }
.hero h1 .hl { color: var(--accent); }
.hero .lead { margin-bottom: 20px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.hero-cta.center { justify-content: center; }
.hero-points { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.hero-points li { position: relative; padding-left: 26px; font-size: 15.5px; color: var(--muted); }
.hero-points li::before {
  content: ""; position: absolute; left: 4px; top: 8px; width: 7px; height: 12px;
  border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(42deg);
}

.bonus-pill {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  margin: 4px 0 0; padding: 12px 16px; border-radius: 14px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  font-size: 15.5px;
}
.bonus-amount { font-size: 17px; font-weight: 750; color: var(--accent); }
.bonus-pill span:last-child { color: var(--muted); }

.bonus-box {
  margin: 4px 0 22px; padding: 22px; border-radius: 20px; text-align: center;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.bonus-box h3 { font-size: 22px; }
.bonus-box p { max-width: 640px; margin: 0 auto 14px; font-size: 16.5px; }
.strong-note { font-size: 16px; color: var(--text); font-weight: 600; }

.hero-visual { position: relative; display: grid; justify-items: center; }
.phone {
  width: 100%; max-width: 330px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 26px; box-shadow: var(--shadow-lg); padding: 14px; transform: rotate(-1.2deg);
}
.phone-head {
  display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 650;
  padding: 2px 4px 12px; border-bottom: 1px solid var(--line);
}
.phone-head .muted { margin-left: auto; font-weight: 500; font-size: 13.5px; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rec); flex: none; }
.phone-card { padding: 12px 4px 4px; }
.mini-title {
  font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent); margin: 14px 0 6px;
}
.mini-title:first-child { margin-top: 0; }
.mini-text { font-size: 14.5px; margin: 0 0 4px; color: var(--muted); }
.phone-card ul { margin: 0; padding-left: 18px; font-size: 14.5px; }
.phone-card li { margin-bottom: 5px; }
.phone-card .todo { list-style: none; padding-left: 0; }
.phone-card .todo li { position: relative; padding-left: 22px; }
.phone-card .todo li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 13px; height: 13px;
  border: 2px solid var(--accent); border-radius: 4px;
}
.phone-foot { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 4px 2px; border-top: 1px solid var(--line); margin-top: 12px; }
.chip {
  font-size: 12.5px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 4px 10px;
}
.bubble {
  margin: 16px 0 0; justify-self: start; max-width: 300px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px; padding: 10px 14px; font-size: 15px; color: var(--muted);
  box-shadow: var(--shadow);
}

/* ---------- Bandes ---------- */

section { padding: 44px 0; }
.gains { padding: 28px 0; }
.gains-grid, .uses, .features, .trust { display: grid; gap: 14px; }
.gains-grid article, .uses article, .features article, .trust article {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.gains-grid p, .uses p, .features p, .trust p { margin: 0; color: var(--muted); font-size: 15.5px; }

.steps-section { background: var(--surface-2); }
.steps { list-style: none; counter-reset: none; margin: 22px 0 0; padding: 0; display: grid; gap: 18px; }
.steps li { position: relative; padding-left: 56px; }
.steps .num {
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
  font-size: 18px; font-weight: 700;
}
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }

.features-section { background: var(--surface-2); }

/* ---------- Captures de l'application ---------- */

.shots-section { background: var(--surface-2); }
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 14px;
  margin: 22px 0 18px; padding-bottom: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shot { margin: 0; scroll-snap-align: center; }
.shot img {
  width: 100%; height: auto; display: block; border-radius: 18px;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--surface);
}
.shot figcaption { padding: 12px 4px 0; font-size: 14.5px; }
.shot figcaption strong { display: block; font-size: 16px; margin-bottom: 2px; }
.shot figcaption span { color: var(--muted); }

/* ---------- Interprète ---------- */

.interp-section { background: var(--accent-soft); }
.interp-in { display: grid; gap: 26px; }
.convo { display: grid; gap: 10px; margin-top: 18px; }
.say {
  margin: 0; background: var(--surface); border-radius: 16px; padding: 12px 14px;
  box-shadow: var(--shadow); max-width: 92%;
}
.say span { display: block; font-size: 15.5px; color: var(--muted); }
.say em { display: block; font-style: normal; font-size: 16.5px; font-weight: 650; margin-top: 4px; }
.say-them { border-radius: 16px 16px 16px 4px; }
.say-me { border-radius: 16px 16px 4px 16px; justify-self: end; }
.modes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.modes li { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.modes h3 { margin-bottom: 4px; }
.modes p { margin: 0; color: var(--muted); font-size: 15.5px; }

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

.value-line {
  text-align: center; font-size: 17px; color: var(--text);
  background: var(--accent-soft); border-radius: 999px; padding: 10px 18px;
  max-width: 620px; margin: 0 auto 24px;
}
.plans { display: grid; gap: 16px; margin: 22px 0; }
.plan {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 22px; box-shadow: var(--shadow);
}
.plan-best { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.plan-badge {
  position: absolute; top: -13px; left: 22px; background: var(--accent); color: var(--accent-ink);
  font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 4px 12px;
}
.plan h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.plan-price { margin: 0 0 2px; display: flex; align-items: baseline; gap: 6px; }
.plan-price strong { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.plan-price span { color: var(--muted); font-size: 16px; }
.plan-sub { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.checks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; }
.checks li { position: relative; padding-left: 26px; font-size: 15.5px; }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: 7px; width: 7px; height: 12px;
  border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(42deg);
}
.checks.inline { display: grid; gap: 9px; margin-bottom: 0; }

.pricing-more { display: grid; gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.uses-list, .packs { list-style: none; margin: 0; padding: 0; }
.uses-list li, .packs li {
  display: flex; align-items: baseline; gap: 10px; padding: 10px 0;
  border-top: 1px solid var(--line); font-size: 15.5px;
}
.uses-list li strong { flex: none; min-width: 86px; font-size: 17px; }
.uses-list li span { color: var(--muted); }
.packs li { align-items: center; justify-content: space-between; }
.pack-label { display: flex; flex-direction: column; }
.pack-label small { color: var(--muted); font-size: 13.5px; }
.pack-price { font-size: 18px; }
.pack-validity {
  margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft);
  font-size: 14.5px;
}
.pack-validity strong { display: block; }

.free { background: var(--surface-2); border-radius: var(--radius); padding: 18px 20px; margin: 22px 0; }
.free h3 { font-size: 16px; }
.rates-details { margin: 6px 0 18px; }
.rates-details summary { cursor: pointer; font-weight: 650; padding: 10px 0; color: var(--accent); }
.rates { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.rates th { text-align: left; font-weight: 500; }
.rates th, .rates td { padding: 9px 0; border-top: 1px solid var(--line); }
.rates thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding-bottom: 4px; }
.rates thead th + th { text-align: right; }
.rates td { text-align: right; white-space: nowrap; font-weight: 650; }
/* La durée éclaire le tarif sans lui voler la vedette. */
.rates .rate-time { font-weight: 500; color: var(--muted); padding-left: 14px; }

/* ---------- Confiance, questions, contact ---------- */

.trust-section { background: var(--surface-2); }
.faq-section details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 2px 16px; margin-bottom: 10px;
}
.faq-section summary { cursor: pointer; font-weight: 650; padding: 14px 0; font-size: 16.5px; }
.faq-section summary::marker { color: var(--accent); }
.faq-section details p { color: var(--muted); font-size: 15.5px; margin: 0 0 14px; }

.final-cta { background: var(--accent-soft); }
.final-cta h2 { font-size: clamp(26px, 6.4vw, 36px); }
.final-cta .lead { max-width: 560px; margin: 0 auto 20px; }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: start; margin-bottom: 10px; }
.form-row label { padding-top: 12px; font-size: 15px; font-weight: 600; }
.form-row input, .form-row textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg); color: var(--text);
  font: inherit; font-size: 16px;
}
.form-row textarea { resize: vertical; }
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form-row.invalid input, .form-row.invalid textarea { border-color: var(--rec); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; justify-content: flex-end; }
.form-status { margin: 0 0 10px; font-size: 15px; min-height: 0; }
.form-status.ok { color: var(--accent); font-weight: 600; }
.form-status.err { color: var(--rec); font-weight: 600; }

/* ---------- Pages légales ---------- */

/* ---------- Connexion (même en-tête et même pied que l'accueil) ---------- */

.auth-page { padding: 44px 0 64px; }
.auth-box { max-width: 460px; margin: 0 auto; }
.auth-box h1 { font-size: clamp(28px, 6.6vw, 36px); margin-bottom: 6px; text-align: center; }
.auth-box .section-lead { margin-bottom: 22px; text-align: center; }
/* « Mot de passe » ne tient pas dans la colonne de 76 px du formulaire de contact. */
.auth-box .form-row { grid-template-columns: 108px 1fr; }
.auth-box .form-actions { justify-content: stretch; }
.auth-box .form-actions .btn { width: 100%; justify-content: center; }
.auth-check { display: flex; align-items: flex-start; gap: 9px; margin: 2px 0 12px; font-size: 15px; line-height: 1.35; color: var(--muted); cursor: pointer; }
.auth-check input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); }
.auth-legend { margin: 14px 0 6px; font-size: 15px; font-weight: 600; color: var(--text); }
/* Deux profils à l'inscription : colonnes égales, texte sur une ligne (cf. piège des onglets). */
.auth-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(max-content, 1fr); gap: 3px; background: var(--surface-2); padding: 3px; border-radius: 11px; margin-bottom: 14px; overflow-x: auto; }
.auth-tab { min-height: 36px; padding: 0 10px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.auth-tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.auth-note { margin-top: 12px; font-size: 14px; color: var(--muted); }
.pw-wrap { position: relative; display: flex; }
.pw-wrap input { flex: 1; padding-right: 86px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 6px 8px; font: inherit; font-size: 14px; color: var(--accent); cursor: pointer; }
.pw-match { margin: -2px 0 10px; font-size: 14px; min-height: 0; color: var(--muted); }
.pw-match.ok { color: var(--ok); font-weight: 600; }
.pw-match.err { color: var(--rec); font-weight: 600; }
.auth-closed { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.auth-closed p { margin: 0 0 10px; }
.auth-closed p:last-child { margin-bottom: 0; }
.login-alt { margin-top: 14px; text-align: center; font-size: 15px; color: var(--muted); }

/*
 * Application installée : la coquille commerciale n'a rien à y faire — on ne garde que le
 * formulaire, comme avant. En CSS et non en JavaScript, pour qu'elle n'apparaisse pas un instant.
 */
@media (display-mode: standalone) {
    .site-header, .site-footer, .skip-link { display: none; }
    .login-page .auth-page { padding-top: max(56px, env(safe-area-inset-top)); }
}
/* Repli pour iOS, où `navigator.standalone` fait foi : la classe est posée par landing.js. */
.standalone .site-header, .standalone .site-footer, .standalone .skip-link { display: none; }

.legal-page { padding: 34px 0 56px; }
.legal-page .eyebrow { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--muted); }
.legal-page .eyebrow a { text-decoration: none; }
.legal-page h1 { font-size: clamp(28px, 6.6vw, 38px); margin-bottom: 6px; }
.legal-page section { margin-top: 28px; }
.legal-page h2 { font-size: 21px; margin-bottom: 8px; }
.legal-page p { font-size: 16.5px; }
.legal-page section p { color: var(--muted); }
.legal-back { margin-top: 34px; }
.phone-reveal { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.phone-reveal:disabled { cursor: default; text-decoration: none; }

/* ---------- Pied de page ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 32px; background: var(--surface-2); }
.footer-in { display: grid; gap: 18px; }
.footer-brand img { width: 108px; height: 29px; object-fit: contain; }
.footer-brand p { margin: 8px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.credit { margin: 18px auto 0; color: var(--muted); }
.credit a { color: var(--muted); }

/* ---------- Écrans larges ---------- */

@media (min-width: 720px) {
  h1 { font-size: 46px; }
  h2 { font-size: 34px; }
  section { padding: 60px 0; }
  .gains-grid, .uses, .features, .trust { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .shots { grid-auto-columns: 42%; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .pricing-more { grid-template-columns: repeat(2, 1fr); }
  .checks.inline { grid-template-columns: repeat(2, 1fr); gap: 10px 22px; }
  .footer-in { grid-template-columns: 1fr auto; align-items: center; }
  .contact-form { padding: 22px 24px; }
}

@media (min-width: 960px) {
  .nav { display: flex; }
  .header-cta { margin-left: 22px; }
  .hero { padding: 64px 0 24px; }
  .hero-in { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 44px; }
  .hero-visual { justify-items: end; }
  .bubble { margin: 18px auto 0 0; }
  .uses, .features { grid-template-columns: repeat(3, 1fr); }
  .shots { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; gap: 20px; }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .interp-in { grid-template-columns: 1fr 1fr; align-items: center; gap: 44px; }
  .modes { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
