/* =====================================================================
   monticketweb — Système de design
   Univers : le ticket / bulletin validé. Prune-magenta + or, mono pour
   les codes et chiffres. Mode clair (papier) par défaut + mode sombre.
   ===================================================================== */

/* ------------------------------ Tokens ------------------------------ */
:root {
  color-scheme: light;

  --paper:   #FAF7F1;
  --paper-2: #F1ECE2;
  --card:    #FFFFFF;
  --ink:     #221A28;
  --ink-2:   #5E5563;
  --ink-3:   #8A8290;
  --line:    #E6DED3;
  --line-2:  #D8CFC2;

  --brand:   #B0246E;
  --brand-2: #7C1D6F;
  --brand-soft: #F7E4EF;
  --amber:   #D9971F;
  --amber-soft: #F8ECD2;
  --mint:    #0F9E8E;
  --mint-soft: #DCF1EC;

  --ring: rgba(176, 36, 110, .32);
  --shadow-sm: 0 1px 2px rgba(34, 26, 40, .06), 0 1px 3px rgba(34, 26, 40, .05);
  --shadow-md: 0 10px 30px -12px rgba(34, 26, 40, .18);
  --shadow-lg: 0 30px 60px -24px rgba(60, 20, 55, .30);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;

  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --maxw: 1180px;
  --nav-h: 68px;
}

[data-theme="dark"] {
  color-scheme: dark;

  --paper:   #16111B;
  --paper-2: #1D1624;
  --card:    #221A2A;
  --ink:     #F4EEF2;
  --ink-2:   #BDB2C4;
  --ink-3:   #877C90;
  --line:    #322838;
  --line-2:  #3E3346;

  --brand:   #E85AA3;
  --brand-2: #C13A8A;
  --brand-soft: #2C1A2A;
  --amber:   #EDB65C;
  --amber-soft: #2C2417;
  --mint:    #33C3AE;
  --mint-soft: #14261F;

  --ring: rgba(232, 90, 163, .38);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 12px 34px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 30px 70px -26px rgba(0,0,0,.7);
}

/* ------------------------------ Reset ------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .35s ease, color .35s ease;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

::selection { background: var(--brand); color: #fff; }

/* ---------------------------- Utilitaires --------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--brand);
  border-radius: 2px;
  transform: rotate(45deg);
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.06; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--ink-2); }
.center { text-align: center; }
.mono { font-family: var(--font-mono); }

.section-head { max-width: 640px; }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; }

/* ----------------------------- Boutons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-weight: 600; font-size: .96rem;
  padding: 12px 20px; border-radius: 999px;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px -10px var(--brand); }
.btn--primary:hover { background: var(--brand-2); transform: translateY(-1px); box-shadow: 0 14px 30px -12px var(--brand); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); background: var(--paper-2); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--block { width: 100%; }
.btn--lg { padding: 15px 26px; font-size: 1rem; }
.btn .arw { transition: transform .18s ease; }
.btn:hover .arw { transform: translateX(3px); }

/* ------------------------------- Nav -------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.is-scrolled { border-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 20px; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; font-size: 1.12rem; }
.brand__mark {
  width: 30px; height: 30px; flex: none;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.brand__mark::before, .brand__mark::after {
  content: ""; position: absolute; top: 50%; width: 6px; height: 6px;
  background: var(--paper); border-radius: 50%; transform: translateY(-50%);
}
.brand__mark::before { left: -3px; }
.brand__mark::after  { right: -3px; }
.brand b { color: var(--brand); }

.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.nav__links a { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: .94rem; transition: color .15s ease, background .15s ease; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.nav__spacer { margin-left: auto; }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--ink-2);
  transition: color .2s, border-color .2s, background .2s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink); }
.theme-toggle:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

.nav__mobile-only { display: none !important; }
.nav__burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); }
.nav__burger span { display: block; width: 17px; height: 1.8px; background: var(--ink); margin: 3.6px auto; transition: transform .25s, opacity .2s; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(5.4px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-5.4px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 14px 20px 22px; margin: 0;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 12px; font-size: 1rem; }
  .nav__mobile-only { display: block !important; color: var(--brand) !important; font-weight: 600; }
  .nav__cta-desktop { display: none; }
}

/* ------------------------------ Ticket ------------------------------ */
/* Carte "ticket" avec bords perforés — la signature du produit. */
.ticket {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.ticket--notch::before, .ticket--notch::after {
  content: ""; position: absolute; top: 50%; width: 22px; height: 22px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 50%; transform: translateY(-50%);
}
.ticket--notch::before { left: -12px; border-right-color: transparent; }
.ticket--notch::after  { right: -12px; border-left-color: transparent; }
.perf { border-top: 2px dashed var(--line-2); position: relative; }

/* Tampon "validé" */
.stamp {
  font-family: var(--font-mono); font-weight: 700; font-size: .7rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--mint); border: 2px solid var(--mint);
  padding: 4px 10px; border-radius: 6px;
  transform: rotate(-6deg); display: inline-block;
}

/* ------------------------------ Hero -------------------------------- */
.hero { position: relative; padding-top: clamp(48px, 7vw, 92px); padding-bottom: clamp(56px, 8vw, 110px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero__eyebrow { margin-bottom: 22px; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .hl { color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .14em; background: var(--amber); opacity: .55; border-radius: 3px; z-index: -1; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero__note { margin-top: 18px; font-family: var(--font-mono); font-size: .78rem; color: var(--ink-3); letter-spacing: .02em; }

.hero__bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 12%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    radial-gradient(48% 48% at 12% 88%, color-mix(in srgb, var(--amber) 15%, transparent), transparent 70%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 72%);
          mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 72%);
  opacity: .5;
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: -1; }
}

/* Ticket de démonstration dans le hero */
.demo-ticket { max-width: 400px; margin-inline: auto; padding: 26px; }
.demo-ticket__top { display: flex; align-items: center; justify-content: space-between; }
.demo-ticket__code { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; color: var(--ink-3); }
.demo-ticket__live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .72rem; color: var(--mint); }
.demo-ticket__live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 var(--mint); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--mint) 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.demo-ticket h3 { margin: 16px 0 4px; font-size: 1.35rem; }
.demo-ticket .sub { color: var(--ink-2); font-size: .92rem; }
.demo-ticket__opts { margin: 18px 0 6px; display: grid; gap: 10px; }
.opt { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, background .2s; }
.opt:hover { border-color: var(--brand); }
.opt.is-lead { border-color: var(--brand); background: var(--brand-soft); }
.opt__label { font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: 10px; }
.opt__avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--amber)); flex: none; }
.opt__pct { font-family: var(--font-mono); font-size: .84rem; color: var(--ink-2); }
.opt.is-lead .opt__pct { color: var(--brand); font-weight: 700; }
.bar { height: 5px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 8px; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 4px; }
.demo-ticket__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; margin-top: 16px; }
.demo-ticket__pay { display: flex; gap: 6px; }
.pay-chip { font-family: var(--font-mono); font-size: .62rem; padding: 4px 8px; border-radius: 6px; background: var(--paper-2); color: var(--ink-2); letter-spacing: .04em; }

/* --------------------------- Bandeau confiance ---------------------- */
.trust { border-block: 1px solid var(--line); background: var(--paper-2); }
.trust__inner { padding-block: 26px; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; justify-content: center; }
.trust__label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.trust__logos { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.trust__logos span { font-family: var(--font-mono); font-weight: 600; font-size: .82rem; color: var(--ink-2); padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); }

/* ------------------------------ Grilles ----------------------------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 26px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card__ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 16px;
}
.card__ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: .95rem; }
.card ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.card li { font-size: .9rem; color: var(--ink-2); display: flex; gap: 9px; align-items: flex-start; }
.card li::before { content: ""; margin-top: 8px; width: 5px; height: 5px; border-radius: 2px; background: var(--brand); flex: none; transform: rotate(45deg); }

/* Puces de type de campagne */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: .88rem; font-weight: 500;
  padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.chip .k { font-family: var(--font-mono); font-size: .66rem; color: var(--ink-3); }

/* ------------------------- Étapes numérotées ------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 26px; }
.step__n { font-family: var(--font-mono); font-size: .8rem; color: var(--brand); font-weight: 700; letter-spacing: .1em; }
.step h3 { font-size: 1.1rem; margin: 12px 0 8px; }
.step p { color: var(--ink-2); font-size: .94rem; }
.step__line { position: absolute; top: 32px; left: 0; right: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); z-index: -1; }

/* ---------------------------- Statistiques -------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--card); padding: 28px 24px; }
.stat__v { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -.02em; }
.stat__v .u { color: var(--brand); }
.stat__l { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-top: 6px; }

/* ---------------------------- Tarification -------------------------- */
.pricing-toggle { display: inline-flex; align-items: center; gap: 12px; margin: 22px auto 0; padding: 6px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); }
.pricing-toggle button { padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--ink-2); transition: background .2s, color .2s; }
.pricing-toggle button.is-active { background: var(--ink); color: var(--paper); }
.pricing-toggle .save { font-family: var(--font-mono); font-size: .66rem; color: var(--mint); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
@media (max-width: 940px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.plan { padding: 28px; display: flex; flex-direction: column; }
.plan--featured { border-color: var(--brand); box-shadow: var(--shadow-lg); position: relative; }
.plan__badge { position: absolute; top: -12px; left: 28px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; background: var(--brand); color: #fff; padding: 5px 12px; border-radius: 999px; }
.plan__name { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--ink-3); }
.plan__price { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; letter-spacing: -.02em; margin: 14px 0 2px; }
.plan__price small { font-size: .95rem; font-weight: 500; color: var(--ink-2); font-family: var(--font-body); }
.plan__desc { color: var(--ink-2); font-size: .92rem; min-height: 40px; }
.plan__feats { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 11px; }
.plan__feats li { display: flex; gap: 10px; font-size: .92rem; align-items: flex-start; }
.plan__feats svg { width: 17px; height: 17px; color: var(--mint); flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; }

/* ------------------------------- FAQ -------------------------------- */
.faq { max-width: 760px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.faq__q:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); border-radius: 6px; }
.faq__ico { flex: none; width: 22px; height: 22px; position: relative; }
.faq__ico::before, .faq__ico::after { content: ""; position: absolute; background: var(--brand); border-radius: 2px; inset: 0; margin: auto; }
.faq__ico::before { width: 14px; height: 2px; }
.faq__ico::after { width: 2px; height: 14px; transition: transform .25s ease; }
.faq__item.is-open .faq__ico::after { transform: rotate(90deg); opacity: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { padding: 0 4px 22px; color: var(--ink-2); font-size: .96rem; }

/* --------------------------- Témoignages ---------------------------- */
.quote { padding: 28px; }
.quote p { font-size: 1.02rem; line-height: 1.6; color: var(--ink); }
.quote__by { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.quote__av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--amber)); flex: none; }
.quote__meta b { display: block; font-family: var(--font-display); font-size: .96rem; }
.quote__meta span { font-size: .82rem; color: var(--ink-3); }

/* ------------------------------- CTA -------------------------------- */
.cta {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-xl); padding: clamp(40px, 6vw, 72px);
  text-align: center;
}
.cta h2 { color: #fff; }
[data-theme="dark"] .cta { background: linear-gradient(150deg, var(--brand-2), #2A1030); }
[data-theme="dark"] .cta h2 { color: #fff; }
.cta p { color: color-mix(in srgb, var(--paper) 78%, transparent); max-width: 520px; margin: 16px auto 28px; }
.cta__bg { position: absolute; inset: 0; z-index: 0; opacity: .5;
  background: radial-gradient(50% 60% at 20% 0%, color-mix(in srgb, var(--brand) 60%, transparent), transparent 70%),
              radial-gradient(40% 50% at 90% 100%, color-mix(in srgb, var(--amber) 40%, transparent), transparent 70%); }
.cta > * { position: relative; z-index: 1; }
.cta .btn--primary { background: #fff; color: var(--ink); }
.cta .btn--primary:hover { background: var(--paper-2); }
.cta .btn--ghost { color: #fff; border-color: color-mix(in srgb, #fff 30%, transparent); }
.cta .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ------------------------------ Footer ------------------------------ */
.footer { border-top: 1px solid var(--line); background: var(--paper-2); padding-block: 56px 30px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer__about p { color: var(--ink-2); font-size: .92rem; margin: 14px 0 16px; max-width: 280px; }
.footer h4 { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: 14px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--ink-2); font-size: .92rem; transition: color .15s; }
.footer ul a:hover { color: var(--brand); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer__bottom p { font-family: var(--font-mono); font-size: .76rem; color: var(--ink-3); }
.footer__social { display: flex; gap: 8px; }
.footer__social a { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink-2); transition: color .2s, border-color .2s; }
.footer__social a:hover { color: var(--brand); border-color: var(--brand); }

/* --------------------------- Page header ---------------------------- */
.pagehead { padding-block: clamp(52px, 7vw, 90px) clamp(30px, 4vw, 48px); position: relative; }
.pagehead__bg { position: absolute; inset: 0; z-index: -1; opacity: .8;
  background: radial-gradient(50% 70% at 80% 0%, var(--brand-soft), transparent 70%); }
.pagehead h1 { margin: 16px 0 14px; max-width: 15ch; }
.pagehead p { max-width: 560px; }
.breadcrumb { font-family: var(--font-mono); font-size: .74rem; color: var(--ink-3); letter-spacing: .04em; }
.breadcrumb a:hover { color: var(--brand); }

/* --------------------------- Détail module -------------------------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-block: clamp(40px, 6vw, 72px); }
.feature-row:nth-child(even) .feature-row__media { order: -1; }
@media (max-width: 820px) { .feature-row { grid-template-columns: 1fr; gap: 28px; } .feature-row:nth-child(even) .feature-row__media { order: 0; } }
.feature-row h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 14px 0 14px; }
.feature-row__list { list-style: none; padding: 0; margin-top: 20px; display: grid; gap: 12px; }
.feature-row__list li { display: flex; gap: 11px; align-items: flex-start; font-size: .96rem; }
.feature-row__list svg { width: 19px; height: 19px; color: var(--brand); flex: none; margin-top: 3px; }
.media-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-md); }

/* ------------------------------ Formulaires ------------------------- */
.auth { min-height: calc(100vh - var(--nav-h)); display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth__aside { display: none; } }
.auth__form-wrap { display: grid; place-items: center; padding: 40px 24px; }
.auth__form { width: 100%; max-width: 400px; }
.auth__form h1 { font-size: clamp(1.7rem, 3vw, 2.1rem); margin-bottom: 6px; }
.auth__form > .muted { margin-bottom: 26px; }
.oauth { display: grid; gap: 10px; }
.oauth button { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border: 1px solid var(--line-2); border-radius: 12px; font-weight: 600; font-size: .94rem; background: var(--card); transition: border-color .2s, background .2s; }
.oauth button:hover { border-color: var(--ink); background: var(--paper-2); }
.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--ink-3); font-size: .8rem; font-family: var(--font-mono); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.field__row { display: flex; align-items: center; justify-content: space-between; }
.field__row a { font-size: .82rem; color: var(--brand); font-weight: 600; }
.form-foot { text-align: center; margin-top: 20px; font-size: .9rem; color: var(--ink-2); }
.form-foot a { color: var(--brand); font-weight: 600; }
.auth__aside { position: relative; background: var(--ink); color: var(--paper); display: grid; place-items: center; padding: 48px; overflow: hidden; }
[data-theme="dark"] .auth__aside { background: linear-gradient(160deg, var(--brand-2), #24102A); }
.auth__aside .auth__bg { position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(50% 50% at 30% 20%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 70%),
             radial-gradient(40% 40% at 90% 90%, color-mix(in srgb, var(--amber) 35%, transparent), transparent 70%); }
.auth__aside .demo-ticket { position: relative; z-index: 1; }

/* --------------------------- Tableau de bord ------------------------ */
.dash { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - var(--nav-h)); }
@media (max-width: 860px) { .dash { grid-template-columns: 1fr; } .dash__side { display: none; } }
.dash__side { border-right: 1px solid var(--line); padding: 22px 16px; background: var(--paper-2); }
.dash__side h4 { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin: 18px 8px 8px; }
.dash__nav { list-style: none; padding: 0; display: grid; gap: 2px; }
.dash__nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: .92rem; transition: background .15s, color .15s; }
.dash__nav a:hover { background: var(--card); color: var(--ink); }
.dash__nav a.is-active { background: var(--brand-soft); color: var(--brand); }
.dash__nav svg { width: 18px; height: 18px; flex: none; }
.dash__main { padding: 28px; background: var(--paper); }
.dash__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.dash__head h1 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.kpi__l { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.kpi__v { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; margin-top: 8px; letter-spacing: -.02em; }
.kpi__d { font-size: .78rem; margin-top: 4px; font-family: var(--font-mono); }
.kpi__d.up { color: var(--mint); }
.kpi__d.down { color: var(--brand); }
.dash__cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
@media (max-width: 900px) { .dash__cols { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel__head h3 { font-size: 1.05rem; }
.panel__head a { font-size: .8rem; color: var(--brand); font-weight: 600; }

/* Mini graphique en barres (CSS pur) */
.chart { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-top: 10px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.chart .col i { width: 100%; max-width: 34px; background: linear-gradient(180deg, var(--brand), var(--brand-2)); border-radius: 6px 6px 0 0; transition: height .6s cubic-bezier(.2,.7,.2,1); }
.chart .col:nth-child(odd) i { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 60%, var(--amber)), var(--brand-2)); }
.chart .col span { font-family: var(--font-mono); font-size: .66rem; color: var(--ink-3); }

.activity { list-style: none; padding: 0; display: grid; gap: 4px; }
.activity li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 8px; border-radius: 10px; transition: background .15s; }
.activity li:hover { background: var(--paper-2); }
.activity__dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; }
.activity__dot.v { background: var(--brand); }
.activity__dot.d { background: var(--mint); }
.activity__dot.t { background: var(--amber); }
.activity__txt { font-size: .88rem; }
.activity__txt b { font-weight: 600; }
.activity__txt time { display: block; font-family: var(--font-mono); font-size: .68rem; color: var(--ink-3); margin-top: 2px; }

.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 13px 12px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.table tr:last-child td { border-bottom: none; }
.badge { font-family: var(--font-mono); font-size: .68rem; padding: 4px 9px; border-radius: 999px; font-weight: 600; }
.badge.live { background: var(--mint-soft); color: var(--mint); }
.badge.draft { background: var(--paper-2); color: var(--ink-2); }
.badge.ended { background: var(--brand-soft); color: var(--brand); }
.table .amount { font-family: var(--font-mono); font-weight: 600; }

/* ------------------------- Révélation au scroll --------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ------------------------------ Divers ------------------------------ */
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.pill { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } }
.note-line { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .78rem; color: var(--ink-3); }
.note-line svg { width: 16px; height: 16px; color: var(--mint); }
