/* Direction artistique « carton et tampons » : papier crème, encre, orange brique,
   violet en accent. Mêmes valeurs que l'application (src/constants/theme.ts). */
:root {
  --primary: #c8461a;
  --primary-dark: #8f2f0e;
  --primary-soft: #f8e3d6;
  --accent: #5b3df5;
  --accent-deep: #e2531f;
  --text: #1d1838;
  --text-2: #4a4367;
  --muted: #5b5476;
  --bg: #f3ebdd;
  --paper-dot: #e6dac4;
  --paper-deep: #e9d8b4;
  --surface: #fffdf8;
  --border: #ddcfb6;
  --dashed: #cdbfa5;
  --ink-2: #2a2450;
  --ink-muted: #c9c5e8;
  --success: #15803d;
  --success-soft: #dcefd9;
  --danger: #b91c1c;
  --danger-soft: #fbe3df;
  --warning-soft: #fbe9d6;
  --radius: 16px;
  --font-display: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
  /* Surfaces « encre » et texte posé dessus */
  --ink: #1d1838;
  --on-ink: #ffffff;
  /* Bandes et maquettes toujours sombres (tarifs, carte de l'app) */
  --night: #1d1838;
  --sunken: #eadfcb;
  --surface-hover: #ffffff;
  --nav-bg: rgba(243, 235, 221, .92);
  --stamp-bg: rgba(243, 235, 221, .85);
  --shadow-paper: rgba(70, 50, 20, .14);
  --success-text: #11632f;
  --danger-text: #9b1c1c;
  --warning-text: #8a4510;
  --info-bg: #e8e3fb;
  --info-text: #3a2a9e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(var(--paper-dot) 1px, transparent 1px);
  background-size: 14px 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--primary-dark); }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; }
h1, h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.7rem, 6.4vw, 5.4rem); line-height: 0.95; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.container { width: min(1160px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(560px, 100% - 32px); margin-inline: auto; }
@media (max-width: 560px) { .container { width: calc(100% - 32px); } }

/* Ticket perforé (encoches à gauche et à droite) et ticket de caisse (bas en dents de scie) */
.perf {
  -webkit-mask: radial-gradient(circle 10px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 10px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 10px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 10px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.receipt {
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 8px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 8px repeat-x;
}
/* Coup de tampon */
.stamp {
  position: absolute; display: flex; align-items: center; justify-content: center; text-align: center;
  width: 112px; height: 112px; border-radius: 50%; border: 4px double currentColor;
  font-family: var(--font-mono); font-weight: 700; font-size: .85rem; line-height: 1.15; letter-spacing: .06em;
  background: var(--stamp-bg); pointer-events: none;
}

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; background: var(--nav-bg); backdrop-filter: blur(10px); border-bottom: 2px dashed var(--dashed); }
.nav .container { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.65rem; letter-spacing: -0.03em; color: var(--text); text-decoration: none; }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo .muted { font-family: var(--font-mono); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 26px; font-weight: 600; }
.nav-links a:not(.btn) { color: var(--text); text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--primary); }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; text-decoration: none;
  background: var(--primary); color: #fff; transition: background .15s, transform .1s, box-shadow .1s;
}
.btn:hover { background: var(--primary-dark); }
.btn:active { transform: translate(2px, 2px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-secondary { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 2px var(--text); }
.btn-secondary:hover { background: var(--surface-hover); }
.btn-ghost { background: transparent; color: var(--primary-dark); }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-dark:hover { background: var(--ink-2); }
.btn-light { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 2px var(--text); }
.btn-light:hover { background: var(--surface-hover); }
.btn-lg { padding: 17px 28px; font-size: 1.125rem; border-radius: 12px; }
.btn-shadow { box-shadow: 4px 4px 0 var(--ink); }
.btn-shadow:active { box-shadow: 2px 2px 0 var(--ink); }
.btn-block { width: 100%; }

/* Accueil : en-tête */
.hero { padding: 56px 0 104px; }
.hero .container { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-copy { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero-copy h1 { margin: 0; }
.eyebrow {
  align-self: flex-start; font-family: var(--font-mono); font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); border: 2px dashed var(--primary); padding: 8px 14px; border-radius: 8px; transform: rotate(-1.5deg);
}
.lead { margin: 0; font-size: 1.25rem; line-height: 1.55; color: var(--text-2); max-width: 31em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin: 0; font-size: .95rem; color: var(--muted); }
.hero-visual { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; padding: 24px 0; }
.hero-cards { position: relative; width: 380px; max-width: 100%; }

/* La carte en carton et la carte Fealo qui la recouvre */
.paper-card { background: var(--paper-deep); border-radius: 16px; padding: 24px 28px; transform: rotate(-6deg); box-shadow: 0 18px 30px var(--shadow-paper); }
.paper-card .head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.paper-card .name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: #5a4a2c; }
.paper-card .num { font-family: var(--font-mono); font-size: .75rem; color: #6e5a38; }
.stamps { margin-top: 20px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.stamps span { aspect-ratio: 1; border-radius: 50%; border: 2px dashed #b79b6c; display: flex; align-items: center; justify-content: center; }
.stamps .on { border: 3px solid #a7341a; }
.stamps .on svg { width: 60%; height: 60%; }
.stamps .on:nth-child(1) { transform: rotate(-12deg); }
.stamps .on:nth-child(2) { transform: rotate(8deg); }
.stamps .on:nth-child(3) { transform: rotate(-4deg); }
.stamps .gift { font-family: var(--font-mono); font-size: .62rem; font-weight: 700; color: #6e5a38; text-align: center; line-height: 1.1; }
.app-card {
  position: relative; margin: -70px 0 0 64px; background: #1d1838; color: #fff; border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px; padding: 22px 24px;
  transform: rotate(3deg); box-shadow: 0 24px 40px rgba(29, 24, 56, .35); display: flex; flex-direction: column; gap: 12px;
}
.app-card .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.app-card .name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; }
.app-card svg { width: 28px; height: 28px; flex: none; }
.app-card .value { font-family: var(--font-display); font-size: 2.8rem; font-weight: 800; line-height: 1; }
.app-card .value span { font-size: 1rem; font-weight: 600; color: #c9c5e8; }
.app-card .bar { height: 8px; border-radius: 99px; background: #3a3466; overflow: hidden; }
.app-card .bar i { display: block; width: 85%; height: 100%; background: var(--accent-deep); }
.app-card small { font-size: .9rem; color: #c9c5e8; }
.hero-cards .stamp { right: -12px; top: -24px; color: var(--primary); transform: rotate(14deg); }
@media (max-width: 480px) { .app-card { margin-left: 24px; } .hero-cards .stamp { right: 0; } }

/* Bandeau des métiers */
.strip { padding: 0; background: var(--ink); color: var(--on-ink); overflow: hidden; }
.strip div { display: flex; gap: 36px; white-space: nowrap; padding: 18px 24px; font-family: var(--font-mono); font-size: .92rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.strip i { font-style: normal; color: var(--accent-deep); }

/* Sections */
section { padding: 104px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; margin-bottom: 52px; }
.section-head h2 { margin: 0; max-width: 13em; }
.section-head p { margin: 0; font-size: 1.125rem; line-height: 1.5; color: var(--text-2); max-width: 24em; }
.section-title { margin: 0 0 40px; max-width: 14em; }

/* Les 3 tickets */
.tickets { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 28px; }
.ticket { background: var(--surface); border-radius: 14px; padding: 30px 34px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 10px 22px var(--shadow-paper); }
.ticket:nth-child(1) { transform: rotate(-1deg); }
.ticket:nth-child(2) { transform: rotate(.8deg); }
.ticket:nth-child(3) { transform: rotate(-.6deg); }
.ticket-top { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .8rem; color: var(--muted); border-bottom: 2px dashed var(--border); padding-bottom: 12px; }
.ticket h3 { margin: 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.ticket p { margin: 0; font-size: 1.0625rem; line-height: 1.5; color: var(--text-2); }

/* Ce que le carton ne savait pas faire */
.more { padding-top: 0; }
.more .container { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.more-visual { flex: 0 0 auto; margin: 0 auto; position: relative; }
.more-visual .stamp { left: -34px; bottom: 70px; color: var(--accent); transform: rotate(-16deg); width: 118px; height: 118px; font-size: .8rem; }
.more-list { flex: 1 1 460px; min-width: 0; }
.more-list h2 { margin: 0 0 24px; }
.more-list ol { list-style: none; margin: 0; padding: 0; border-bottom: 2px dashed var(--dashed); }
.more-list li { display: flex; gap: 18px; padding: 18px 0; border-top: 2px dashed var(--dashed); }
.more-list li > span { font-family: var(--font-mono); font-size: .95rem; font-weight: 700; color: var(--primary); padding-top: 3px; }
.more-list h3 { margin: 0 0 6px; font-size: 1.3rem; }
.more-list p { margin: 0; font-size: 1.0625rem; line-height: 1.5; color: var(--text-2); }

/* Téléphone de démonstration (écran « Mes cartes » de l'app) */
.phone { width: 300px; max-width: 100%; border-radius: 46px; background: #1d1838; padding: 8px; transform: rotate(-3deg); box-shadow: 14px 14px 0 var(--paper-deep); }
.phone-screen { border-radius: 38px; overflow: hidden; background: var(--bg); padding: 40px 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.phone-head { display: flex; justify-content: space-between; align-items: center; }
.phone-head small { display: block; font-size: .78rem; color: var(--muted); }
.phone-head strong { font-family: var(--font-display); font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; }
.phone-qr { width: 40px; height: 40px; border-radius: 12px; background: #1d1838; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); display: grid; place-items: center; }
.phone-label { font-family: var(--font-mono); font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mini-card { position: relative; overflow: hidden; border-radius: 20px; padding: 16px 18px; color: #fff; display: flex; flex-direction: column; gap: 10px; }
.mini-card::after { content: ''; position: absolute; right: -45px; top: -60px; width: 150px; height: 150px; border-radius: 50%; border: 5px dashed rgba(255, 255, 255, .2); }
.mini-card .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.mini-card .name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; }
.mini-card small { display: block; font-size: .72rem; opacity: .9; }
.mini-card .pill { font-family: var(--font-mono); font-size: .6rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, .2); }
.mini-card .value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; line-height: 1; }
.mini-card .value span { font-size: .95rem; font-weight: 600; }
.mini-card .bar { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.mini-card .bar i { display: block; width: 85%; height: 100%; border-radius: 4px; background: #fff; }
.mini-card.brick { background: var(--primary); }
.mini-card.violet { background: #5b3df5; }
.mini-card.ink { background: #1d1838; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); flex-direction: row; justify-content: space-between; align-items: center; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }

/* Tarifs (espace pro : cartes claires ; accueil : tickets de caisse sur la bande sombre .pricing) */
.toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 32px; }
.toggle button { border: 0; background: transparent; padding: 10px 18px; min-height: 44px; border-radius: 9px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.toggle button.active { background: var(--ink); color: var(--on-ink); }
.toggle .save { font-size: .75rem; background: var(--success-soft); color: var(--success); padding: 2px 8px; border-radius: 99px; margin-left: 6px; }
.toggle button.active .save { background: rgba(127, 127, 127, .25); color: var(--on-ink); }
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 820px; margin: 0 auto; }
.plan { display: flex; flex-direction: column; gap: 16px; position: relative; }
.plan.highlight { border: 2px solid var(--primary); box-shadow: 6px 6px 0 var(--primary-soft); }
.plan .badge { position: absolute; top: -13px; left: 24px; background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; }
.plan.current { border-color: var(--success); }
.plan.current .badge { background: var(--success); }
.price { font-family: var(--font-display); font-size: 3rem; font-weight: 800; line-height: 1; }
.price small { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--muted); margin-left: 4px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; flex: 1; }
.plan li::before { content: '✓'; color: var(--success); font-weight: 800; margin-right: 10px; }

.pricing { background: var(--night); color: #f3ebdd; }
.pricing .container { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.pricing-head { text-align: center; }
.pricing-head h2 { margin: 0 0 12px; }
.pricing-head p { margin: 0; font-size: 1.125rem; color: var(--ink-muted); }
.pricing .toggle { margin: 0; background: #2a2450; border-color: transparent; }
.pricing .toggle button { color: var(--ink-muted); }
.pricing .toggle button.active { background: #f3ebdd; color: #1d1838; }
.pricing .toggle button.active .save { background: #dcefd9; color: #15803d; }
.pricing .plans { width: 100%; gap: 32px; align-items: start; }
.bill-wrap { position: relative; }
.bill-wrap:nth-child(1) .bill { transform: rotate(-1deg); }
.bill-wrap:nth-child(2) .bill { transform: rotate(1.2deg); }
.bill {
  --surface: #fffdf8; --text: #1d1838; --dashed: #cdbfa5; --ink: #1d1838; --on-ink: #fff; --ink-2: #2a2450;
  background: var(--surface); color: var(--text); padding: 30px 30px 46px; font-family: var(--font-mono); display: flex; flex-direction: column; gap: 16px; }
.bill .kicker { text-align: center; font-size: .8rem; color: #5b5476; }
.bill h3 { margin: 0; text-align: center; font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; }
.bill hr { margin: 0; border: 0; border-top: 2px dashed var(--dashed); }
.bill ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .88rem; }
.bill li { display: flex; justify-content: space-between; gap: 12px; }
.bill li span:last-child { white-space: nowrap; }
.bill .total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.bill .total strong { font-size: 1.9rem; }
.bill .per { text-align: right; font-size: .8rem; color: #5b5476; margin-top: -10px; }
.bill .btn { font-family: var(--font-body); font-size: 1.0625rem; background: var(--ink); color: var(--on-ink); }
.bill .btn:hover { background: var(--ink-2); }
.bill-wrap.highlight .btn { background: var(--primary); }
.bill-wrap.highlight .btn:hover { background: var(--primary-dark); }
.bill-wrap .stamp { right: -16px; top: -26px; width: 104px; height: 104px; font-size: .78rem; color: var(--accent-deep); background: var(--night); transform: rotate(18deg); }
.pricing-note { margin: 0; font-size: .95rem; color: var(--ink-muted); text-align: center; }

/* FAQ */
.faq .container { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.faq h2 { flex: 1 1 280px; margin: 0; }
.faq-list { flex: 999 1 520px; min-width: 0; border-top: 2px dashed var(--dashed); }
details { border-bottom: 2px dashed var(--dashed); padding: 22px 0; }
summary { font-size: 1.15rem; font-weight: 700; cursor: pointer; }
details p { margin: 12px 0 0; color: var(--text-2); line-height: 1.55; font-size: 1.0625rem; }

/* Appel à l'action + pied de page */
.cta-band { padding: 0 0 104px; }
.cta { background: var(--primary); color: #fff; border-radius: 22px; padding: 64px 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 3.1rem); }
.cta p { margin: 0; font-size: 1.125rem; color: #ffe4d6; }
.cta .btn { background: #1d1838; color: #fff; }
.cta .btn:hover { background: var(--ink-2); }
footer { padding: 32px 0; color: var(--text-2); font-size: .95rem; border-top: 2px dashed var(--dashed); }
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--text-2); }
.footer-logo { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--text); }

/* Espace pro */
.page { padding: 48px 0 80px; }
.stack { display: grid; gap: 20px; }
.tabs { display: flex; gap: 4px; background: var(--sunken); padding: 4px; border-radius: 12px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 9px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
input {
  font: inherit; padding: 13px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
input:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
.shop-fields { border: 0; padding: 18px 0 0; margin: 4px 0 0; border-top: 2px dashed var(--dashed); display: grid; gap: 16px; min-width: 0; }
.shop-fields legend { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; padding: 0 10px 0 0; }
.field { display: grid; gap: 8px; }
.field-label { font-weight: 600; font-size: .95rem; }
.shop-fields small { font-weight: 400; font-size: .85rem; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches input { appearance: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .4); }
.swatches input:checked { outline: 3px solid var(--text); outline-offset: 3px; }
.swatches input:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice label { display: block; position: relative; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-weight: 400; }
.choice label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.choice label:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice b { display: block; margin-bottom: 2px; }
.choice small { display: block; color: var(--muted); line-height: 1.4; }
@media (max-width: 480px) { .choice { grid-template-columns: 1fr; } }
.address-field { position: relative; }
.suggestions { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); overflow: hidden; }
.suggestions li + li { border-top: 1px solid var(--border); }
.suggestions button { width: 100%; text-align: left; border: 0; background: transparent; font: inherit; color: var(--text); padding: 11px 14px; min-height: 44px; cursor: pointer; }
.suggestions button:hover, .suggestions button:focus-visible { background: var(--primary-soft); outline: none; }
.alert { border-radius: 12px; padding: 14px 18px; font-weight: 500; }
.alert-success { background: var(--success-soft); color: var(--success-text); }
.alert-error { background: var(--danger-soft); color: var(--danger-text); }
.alert-warning { background: var(--warning-soft); color: var(--warning-text); }
.alert-info { background: var(--info-bg); color: var(--info-text); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; font-weight: 700; font-size: .85rem; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-ok { background: var(--success-soft); color: var(--success-text); }
.status-trial { background: var(--info-bg); color: var(--info-text); }
.status-warn { background: var(--warning-soft); color: var(--warning-text); }
.status-off { background: var(--danger-soft); color: var(--danger); }
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--primary-dark); cursor: pointer; text-decoration: underline; }
.history { width: 100%; border-collapse: collapse; font-size: .95rem; }
.history td { padding: 10px 0; border-top: 1px dashed var(--dashed); }
.history td:last-child { text-align: right; font-weight: 600; }
.billing-grid { grid-template-columns: 1fr 1fr; }
.billing-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .billing-grid { grid-template-columns: 1fr; } }
.history td.invoice { width: 1%; white-space: nowrap; padding-left: 16px; }
[hidden] { display: none !important; }

/* Pages légales */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.1; }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1em 0; }
.legal th, .legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal mark { background: #fff3c4; color: #1d1838; padding: 0 3px; border-radius: 3px; }
.legal .draft { background: var(--warning-soft); color: var(--warning-text); border-radius: 12px; padding: 14px 18px; font-weight: 500; }
