/* Meritt — le site de vente.
   Séparé du tableau de bord : autre public, autre travail, aucune session. La palette est
   celle du produit, pour que la première page et la première connexion se ressemblent. */

:root {
  --ground: #ffffff;
  --ground-2: #f6f7fb;
  --ink: #14161f;
  --ink-2: #41465c;
  --ink-3: #6e748d;
  --line: #e2e5ee;
  --accent: #c2410c;
  --accent-vivid: #ee5a06;
  --accent-wash: #fdeee4;
  --deep: #101113;
  --deep-2: #1b1d24;
  --deep-line: #2a2d36;
  --deep-ink: #b9bdcb;
  --good: #0b7f5c;
  --sans: system-ui, 'Segoe UI', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, monospace;
  --wide: 1120px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.022em; margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 750; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; text-wrap: balance; }
h3 { font-size: 1.06rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }

/* ── L'en-tête ────────────────────────────────────────────────────────── */

.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.brand b { color: var(--ink); font-size: 1.12rem; font-weight: 700; letter-spacing: -0.02em; }
.top nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.top nav a { color: var(--ink-2); text-decoration: none; font-size: 0.94rem; }
.top nav a:hover { color: var(--ink); }
.top .lang { color: var(--ink-3); font-size: 0.82rem; font-family: var(--mono); }

.btn {
  display: inline-block; padding: 11px 20px; border-radius: 9px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 0.95rem; border: 1px solid var(--accent);
  transition: background 0.15s ease;
}
.btn:hover { background: #a8380a; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--ground-2); }
.btn.light { background: var(--accent-vivid); border-color: var(--accent-vivid); }
.btn.light:hover { background: #d34f04; }
.btn.on-dark { background: transparent; color: #fff; border-color: #3a3e49; }
.btn.on-dark:hover { background: #23262f; }

@media (max-width: 860px) {
  .top nav a.hide-s { display: none; }
}

/* ── Le haut de page ──────────────────────────────────────────────────── */

.hero { background: var(--deep); color: var(--deep-ink); padding: 92px 0 84px; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lede { font-size: 1.16rem; max-width: 56ch; margin-top: 20px; color: #c8ccd9; }
.hero .acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .under { margin-top: 22px; font-size: 0.92rem; color: #8b90a1; }
.hero .under b { color: #d6dae6; font-weight: 600; }

.eyebrow {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--accent-vivid); margin-bottom: 14px;
}
.section .eyebrow { color: var(--accent); }

/* Les trois chiffres sous le haut de page. */
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px; background: var(--deep-line); border: 1px solid var(--deep-line);
  border-radius: 12px; overflow: hidden; margin-top: 52px;
}
.facts div { background: var(--deep); padding: 20px 22px; }
.facts b { display: block; color: #fff; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; }
.facts span { font-size: 0.88rem; color: #8b90a1; }

/* ── Les sections ─────────────────────────────────────────────────────── */

.section { padding: 84px 0; border-top: 1px solid var(--line); }
.section.tint { background: var(--ground-2); }
.section > .wrap > h2 { max-width: 22ch; }
.section .intro { margin-top: 16px; max-width: 62ch; font-size: 1.04rem; }

.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px; margin-top: 44px;
}
.card {
  background: var(--ground); border: 1px solid var(--line); border-radius: 13px;
  padding: 24px;
}
.section.tint .card { background: #fff; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.96rem; }
.card p + p { margin-top: 10px; }
.card .tag {
  display: inline-block; font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
  background: var(--accent-wash); padding: 3px 8px; border-radius: 5px; margin-bottom: 12px;
}

/* Les trois modes de lien, côte à côte. */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: 44px; }
.mode { border: 1px solid var(--line); border-radius: 13px; padding: 26px; background: #fff; }
.mode.best { border-color: var(--accent); box-shadow: 0 10px 30px -20px rgba(194, 65, 12, 0.5); }
.mode .letter {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em;
  color: var(--ink-3); text-transform: uppercase;
}
.mode h3 { margin: 6px 0 10px; font-size: 1.15rem; }
.mode .url {
  font-family: var(--mono); font-size: 0.82rem; background: var(--ground-2);
  border: 1px solid var(--line); border-radius: 7px; padding: 9px 11px;
  margin: 14px 0; color: var(--ink); overflow-wrap: anywhere;
}
.mode p { font-size: 0.94rem; }

/* Une liste de faits, pas de promesses. */
/* Une largeur de lecture, comme l'introduction juste au-dessus : deux blocs de texte qui
   s'arrêtent à deux endroits différents lisent comme une page mal réglée. Dans une carte
   ou un tarif, la colonne est déjà étroite et la limite ne sert plus. */
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 11px; max-width: 74ch; }
.card .ticks, .price .ticks, .mode .ticks { max-width: none; }
.ticks li { position: relative; padding-left: 26px; font-size: 0.96rem; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent-vivid);
}
.ticks b { color: var(--ink); font-weight: 620; }

/* ── Les tarifs ───────────────────────────────────────────────────────── */

.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 44px; }
.price { border: 1px solid var(--line); border-radius: 14px; padding: 28px; background: #fff; display: flex; flex-direction: column; }
.price.best { border-color: var(--accent); border-width: 2px; }
.price h3 { font-size: 1.2rem; }
.price .amount { margin: 14px 0 4px; font-size: 2.5rem; font-weight: 750; color: var(--ink); letter-spacing: -0.03em; }
.price .amount small { font-size: 0.95rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.price .who { font-size: 0.92rem; color: var(--ink-3); min-height: 44px; }
.price .ticks { margin-top: 18px; flex: 1; }
.price .btn { margin-top: 22px; text-align: center; }

.vow {
  margin-top: 34px; border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 22px 24px; background: #fff; max-width: 78ch;
}
.vow b { color: var(--ink); }

/* ── Questions ────────────────────────────────────────────────────────── */

.qa { margin-top: 40px; display: grid; gap: 2px; background: var(--line);
      border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.qa details { background: #fff; }
.qa summary {
  cursor: pointer; padding: 18px 22px; color: var(--ink); font-weight: 620;
  font-size: 1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; color: var(--ink-3); font-weight: 500; }
.qa details[open] summary::after { content: '–'; }
.qa .a { padding: 0 22px 20px; font-size: 0.96rem; max-width: 72ch; }
.qa .a p + p { margin-top: 12px; }

/* ── L'appel final et le pied de page ─────────────────────────────────── */

.end { background: var(--deep); color: var(--deep-ink); padding: 78px 0; text-align: center; }
.end h2 { color: #fff; max-width: 20ch; margin: 0 auto; }
.end p { margin: 18px auto 0; max-width: 52ch; color: #a8adbd; }
.end .acts { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

footer { background: var(--deep-2); color: #868b9b; padding: 44px 0; font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
footer a { color: #b9bdcb; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* ── Les pages de texte (mentions, conditions) ────────────────────────── */

.doc { padding: 64px 0 84px; }
.doc .wrap { max-width: 78ch; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.doc .when { color: var(--ink-3); font-size: 0.9rem; margin-top: 10px; }
.doc h2 { font-size: 1.25rem; margin-top: 40px; }
.doc h3 { margin-top: 26px; }
.doc p, .doc li { font-size: 0.98rem; }
.doc p { margin-top: 12px; }
.doc ul { margin: 12px 0; padding-left: 22px; display: grid; gap: 8px; }

:focus-visible { outline: 2px solid var(--accent-vivid); outline-offset: 2px; border-radius: 4px; }
