/* ==========================================================================
   Generavis — feuille de style principale
   ========================================================================== */
:root {
  --ink: #10231c;
  --ink-2: #3b4d45;
  --muted: #6b7a73;
  --bg: #fbf8f1;
  --bg-2: #f3eee2;
  --surface: #ffffff;
  --line: #e6dfcf;
  --brand: #0e5a43;
  --brand-2: #127a5a;
  --brand-soft: #dff1e8;
  --star: #ffb800;
  --star-soft: #fff3cc;
  --danger: #c2410c;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16,35,28,.06), 0 8px 24px rgba(16,35,28,.08);
  --shadow-lg: 0 30px 60px -20px rgba(16,35,28,.35);
  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1180px;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-2); text-underline-offset: 3px; }
h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--alt { background: var(--bg-2); }
.section--dark { background: var(--ink); color: #e9f1ec; }
.section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--brand-2); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hl { background: linear-gradient(transparent 62%, var(--star-soft) 62%); padding: 0 .1em; }

/* ---------- Boutons ---------- */
.btn {
  --b: var(--brand); display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 2px solid var(--b); background: var(--b); color: #fff;
  font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -8px rgba(14,90,67,.6); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--star { --b: var(--star); color: var(--ink); }
.btn--star:hover { box-shadow: 0 10px 20px -8px rgba(255,184,0,.8); }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--light { --b: #fff; color: var(--ink); }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.topbar { background: var(--ink); color: #d8e7df; font-size: .85rem; text-align: center; padding: 8px 16px; }
.topbar strong { color: var(--star); }
.header { position: sticky; top: 0; z-index: 50; background: rgba(251,248,241,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 1.45rem/1 var(--font-head); color: var(--ink); text-decoration: none; letter-spacing: -.03em; }
.logo__mark { width: 36px; height: 36px; border-radius: 11px; background: var(--brand); display: grid; place-items: center; }
.logo__mark svg { width: 22px; height: 22px; }
.logo span b { color: var(--brand-2); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.cart-link { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.cart-link svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--star); color: var(--ink); font: 800 .72rem/20px var(--font-body); text-align: center; }
.cart-count[data-count="0"] { display: none; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; transition: .2s; }

@media (max-width: 960px) {
  .burger { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; background: var(--bg); padding: 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px; font-size: 1.05rem; }
  .header__actions .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(50px, 7vw, 100px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 720px; height: 720px; right: -240px; top: -260px; border-radius: 50%; background: radial-gradient(circle, var(--brand-soft), transparent 65%); z-index: -1; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 28px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: .92rem; color: var(--ink-2); font-weight: 600; }
.hero__proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero__proof svg { width: 18px; height: 18px; color: var(--brand-2); flex: none; }
.hero__visual { position: relative; min-height: 440px; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } .hero__visual { min-height: 360px; } }

/* ---------- Mockups produits (CSS) ---------- */
.mock { --bg: #10231c; --fg: #fff; --acc: #ffb800; color: var(--fg); background: var(--bg); position: relative; overflow: hidden; box-shadow: var(--shadow-lg); font-family: var(--font-body); }
.mock__glow { position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.12), transparent 55%); pointer-events: none; }
.mock__stars { color: var(--acc); letter-spacing: .08em; }
.mock__qr { background: #fff; border-radius: 6%; padding: 4%; }
.mock__qr svg { width: 100%; height: auto; }
.mock__name { font-family: var(--font-head); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; word-break: break-word; }
.mock__nfc { display: inline-flex; align-items: center; gap: .4em; opacity: .9; }
.mock__nfc svg { width: 1.2em; height: 1.2em; }
.mock__g { width: 1.3em; height: 1.3em; background: #fff; border-radius: 50%; display: grid; place-items: center; flex: none; }
.mock__g svg { width: 70%; height: 70%; }

/* Carte 85x54 */
.mock-card { aspect-ratio: 85 / 54; width: 100%; border-radius: 4.5% / 7%; container-type: inline-size; }
.mock__in { position: absolute; inset: 0; }
.mock-card .mock__in { display: grid; grid-template-columns: 1fr 34%; gap: 5cqw; padding: 6cqw; align-items: center; }
.mock-card .mock__name { font-size: 7.4cqw; margin-bottom: 2cqw; }
.mock-card .mock__tag { font-size: 3.6cqw; opacity: .85; margin-bottom: 3cqw; line-height: 1.3; }
.mock-card .mock__stars { font-size: 5cqw; margin-bottom: 3cqw; }
.mock-card .mock__row { display: flex; align-items: center; gap: 2cqw; font-size: 2.9cqw; font-weight: 600; }
.mock-card .mock__qr { border-radius: 3cqw; padding: 2cqw; }
.mock-card .mock__scan { font-size: 2.5cqw; text-align: center; margin-top: 1.5cqw; opacity: .85; font-weight: 600; }

/* Plaque 12x12 */
.mock-plate { aspect-ratio: 1; width: 100%; border-radius: 5%; container-type: inline-size; }
.mock-plate .mock__in { display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 7cqw 7cqw 6cqw; text-align: center; }
.mock-plate .mock__top { display: flex; flex-direction: column; align-items: center; gap: 1.5cqw; }
.mock-plate .mock__name { font-size: 7.5cqw; }
.mock-plate .mock__tag { font-size: 4.2cqw; opacity: .9; }
.mock-plate .mock__stars { font-size: 7cqw; }
.mock-plate .mock__qr { width: 40cqw; border-radius: 3.5cqw; padding: 2.5cqw; }
.mock-plate .mock__row { display: flex; align-items: center; justify-content: center; gap: 2cqw; font-size: 3.4cqw; font-weight: 700; }
.mock-plate .mock__g { width: 6cqw; height: 6cqw; }

.hero-stack { position: absolute; inset: 0; }
.hero-stack .mock-plate { position: absolute; width: 58%; right: 2%; top: 0; transform: rotate(5deg); }
.hero-stack .mock-card { position: absolute; width: 66%; left: 0; bottom: 4%; transform: rotate(-7deg); }
.hero-badge { position: absolute; left: 4%; top: 8%; background: var(--surface); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; font-size: .88rem; z-index: 2; max-width: 230px; animation: float 5s ease-in-out infinite; }
.hero-badge b { display: block; font-size: 1rem; }
.hero-badge .mock__stars { color: var(--star); font-size: .95rem; }
.hero-phone { position: absolute; right: 40%; bottom: 26%; z-index: 3; width: 64px; height: 64px; border-radius: 50%; background: var(--star); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255,184,0,.25), 0 0 0 22px rgba(255,184,0,.12); animation: pulse 2.2s infinite; }
.hero-phone svg { width: 30px; height: 30px; color: var(--ink); }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 14px rgba(255,184,0,.2), 0 0 0 30px rgba(255,184,0,.06); } }

/* ---------- Bandeau réassurance ---------- */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 22px 0; }
.trust__item { display: flex; gap: 12px; align-items: center; font-size: .92rem; line-height: 1.35; }
.trust__item b { display: block; }
.trust__item svg { width: 30px; height: 30px; color: var(--brand-2); flex: none; }
@media (max-width: 800px) { .trust__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .trust__in { grid-template-columns: 1fr; } }

/* ---------- Grilles & cartes ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.box--flat { background: transparent; }
.icon-bubble { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.icon-bubble svg { width: 26px; height: 26px; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; }

/* Produits */
.product { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product__visual { background: linear-gradient(160deg, var(--bg-2), #e8f1ec); padding: 36px; display: grid; place-items: center; min-height: 290px; position: relative; }
.product__visual .mock-card { max-width: 330px; transform: rotate(-4deg); }
.product__visual .mock-plate { max-width: 240px; transform: rotate(3deg); }
.product__visual .qr-demo { width: 190px; background: #fff; padding: 16px; border-radius: 18px; box-shadow: var(--shadow-lg); }
.product__tag { position: absolute; top: 16px; left: 16px; background: var(--star); color: var(--ink); font-weight: 800; font-size: .78rem; padding: 6px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.product__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.product__body ul { margin: 0 0 20px; }
.price { display: flex; align-items: baseline; gap: 8px; margin: auto 0 18px; }
.price b { font: 800 2rem/1 var(--font-head); }
.price small { color: var(--muted); font-size: .88rem; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .25em; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e5a43' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
.section--dark .checks li::before { background-color: rgba(255,255,255,.1); }

/* Étapes */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 64px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--star); color: var(--ink); font: 800 1.3rem/48px var(--font-head); text-align: center; }

/* Comparatif */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .95rem; }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-head); background: var(--bg-2); }
.compare th.us, .compare td.us { background: var(--brand-soft); font-weight: 700; }
.compare tr:last-child td { border-bottom: 0; }
.yes { color: var(--brand-2); font-weight: 800; }
.no { color: var(--danger); font-weight: 800; }

/* Stats */
.stat b { display: block; font: 800 clamp(2.4rem, 5vw, 3.4rem)/1 var(--font-head); color: var(--star); margin-bottom: 8px; }
.stat p { color: #bcd0c6; font-size: .95rem; }
.stat cite { display: block; font-size: .75rem; color: #86a296; font-style: normal; margin-top: 4px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 700; position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font: 700 1.2rem/28px var(--font-body); text-align: center; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: var(--ink-2); }

/* CTA final */
.cta-band { background: var(--brand); color: #fff; border-radius: 28px; padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: "★"; position: absolute; right: -30px; bottom: -90px; font-size: 280px; color: rgba(255,255,255,.06); line-height: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe7db; margin: 0; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Formulaires ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-weight: 700; font-size: .92rem; }
.field small, .hint { color: var(--muted); font-size: .84rem; }
.input, select.input, textarea.input {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  font: 500 1rem var(--font-body); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(18,122,90,.15); }
.input.is-valid { border-color: var(--brand-2); }
.input.is-invalid { border-color: var(--danger); }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; min-width: 0; }
@media (max-width: 480px) { .input-group { flex-direction: column; } }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: block; width: 42px; height: 42px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; background: var(--c); }
.swatch span::after { content: ""; display: block; width: 50%; height: 50%; margin: 25%; border-radius: 50%; background: var(--a); }
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--brand-2); }
.swatch input:focus-visible + span { outline: 3px solid var(--star); outline-offset: 3px; }

.options { display: grid; gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; }
.opt label { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: .15s; }
.opt label em { font-style: normal; font-size: .8rem; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 3px 8px; border-radius: 999px; margin-left: 8px; }
.opt label b { font-family: var(--font-head); font-size: 1.15rem; }
.opt label small { display: block; color: var(--muted); font-weight: 500; }
.opt input:checked + label { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(18,122,90,.15); background: #fbfffd; }
.opt input:focus-visible + label { outline: 3px solid var(--star); }

/* Recherche d'établissement */
.finder { position: relative; }
.finder__results { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.finder__results button { display: block; width: 100%; text-align: left; padding: 12px 16px; border: 0; background: none; font: inherit; cursor: pointer; border-bottom: 1px solid var(--line); }
.finder__results button:last-child { border-bottom: 0; }
.finder__results button:hover, .finder__results button:focus { background: var(--brand-soft); outline: none; }
.finder__results small { display: block; color: var(--muted); }
.finder__status { font-size: .88rem; margin-top: 6px; min-height: 1.3em; }
.finder__status.ok { color: var(--brand-2); font-weight: 600; }
.finder__status.err { color: var(--danger); font-weight: 600; }
.tabs { display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.tabs button { border: 0; background: none; padding: 9px 16px; border-radius: 999px; font: 700 .88rem var(--font-body); cursor: pointer; color: var(--ink-2); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

/* ---------- Configurateur produit ---------- */
.config { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.config__preview { position: sticky; top: 96px; }
.config__stage { background: linear-gradient(160deg, var(--bg-2), #e3efe8); border-radius: 28px; padding: clamp(28px, 5vw, 60px); display: grid; place-items: center; min-height: 420px; }
.config__stage .mock-card { max-width: 480px; }
.config__stage .mock-plate { max-width: 380px; }
.config__note { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 14px; font-size: .85rem; color: var(--muted); }
.config__panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 34px); }
.config__panel h1 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.config__step { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 22px; }
.config__step > .label { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 1rem; }
.config__step > .label i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .8rem; display: grid; place-items: center; }
.config__total { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 14px; font-weight: 700; }
.config__total b { font: 800 1.9rem/1 var(--font-head); }
.mini-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; font-size: .82rem; color: var(--ink-2); }
.mini-trust span { display: flex; gap: 6px; align-items: center; }
.mini-trust svg { width: 16px; height: 16px; color: var(--brand-2); flex: none; }
.flip { display: inline-flex; gap: 6px; margin-top: 18px; }
@media (max-width: 960px) { .config { grid-template-columns: 1fr; } .config__preview { position: static; } .config__stage { min-height: 300px; } }

/* Verso carte */
.mock-back .mock__in { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 3cqw; }
.mock-back .mock__name { font-size: 6cqw; }
.mock-back .mock__steps { display: flex; gap: 5cqw; font-size: 2.8cqw; font-weight: 600; }
.mock-back .mock__steps span { display: flex; flex-direction: column; align-items: center; gap: 1cqw; }
.mock-back .mock__steps b { width: 7cqw; height: 7cqw; border-radius: 50%; background: var(--acc); color: var(--bg); display: grid; place-items: center; font-size: 3.4cqw; }

/* ---------- Générateur ---------- */
.gen { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .gen { grid-template-columns: 1fr; } }
.gen__result { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; text-align: center; }
.gen__qr { width: min(100%, 300px); aspect-ratio: 1; margin: 0 auto 18px; background: #fff; border-radius: 18px; padding: 14px; border: 1px solid var(--line); position: relative; display: grid; place-items: center; overflow: hidden; }
.gen__qr svg { width: 100%; height: 100%; }
.gen__qr.is-locked svg { filter: blur(3px); }
.gen__qr .lock { position: absolute; inset: 0; display: grid; place-items: center; }
.gen__qr .lock span { background: rgba(16,35,28,.88); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: .85rem; display: inline-flex; gap: 8px; align-items: center; }
.gen__qr:not(.is-locked) .lock { display: none; }
.gen__empty { color: var(--muted); font-size: .95rem; padding: 0 20px; }
.linkbox { display: flex; gap: 8px; background: var(--bg-2); border-radius: 12px; padding: 8px 8px 8px 14px; align-items: center; margin: 12px 0; text-align: left; }
.linkbox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.downloads { display: grid; gap: 10px; }
.color-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.color-row input[type="color"] { width: 46px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 3px; cursor: pointer; }

/* ---------- Panier ---------- */
.cart-line { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-line__thumb { width: 120px; }
.cart-line__meta { font-size: .88rem; color: var(--muted); }
.cart-line__price { text-align: right; font-weight: 800; font-family: var(--font-head); font-size: 1.2rem; }
.link-btn { background: none; border: 0; color: var(--danger); font: 600 .85rem var(--font-body); cursor: pointer; padding: 0; text-decoration: underline; margin-top: 6px; }
.summary { position: sticky; top: 96px; }
.summary__row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.summary__total { border-top: 1px solid var(--line); padding-top: 14px; font-weight: 800; font-size: 1.2rem; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.qty button { width: 34px; height: 34px; border: 0; background: #fff; cursor: pointer; font-size: 1.1rem; }
.qty span { min-width: 30px; text-align: center; font-weight: 700; }
@media (max-width: 600px) { .cart-line { grid-template-columns: 80px 1fr; } .cart-line__thumb { width: 80px; } .cart-line__price { grid-column: 2; text-align: left; } }

/* ---------- Alertes / toast ---------- */
.alert { padding: 14px 16px; border-radius: 12px; font-size: .92rem; margin: 12px 0; }
.alert--ok { background: var(--brand-soft); color: var(--brand); }
.alert--err { background: #fde9df; color: var(--danger); }
.alert--info { background: var(--star-soft); color: #6b4e00; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 150%); background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 100; display: flex; gap: 14px; align-items: center; transition: transform .3s; max-width: calc(100% - 32px); font-weight: 600; }
.toast.is-on { transform: translate(-50%, 0); }
.toast a { color: var(--star); }

/* ---------- Article / contenu ---------- */
.breadcrumb { font-size: .85rem; color: var(--muted); padding: 18px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.breadcrumb a { color: var(--muted); }
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.5rem, 3vw, 2rem); }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose .box { margin: 1.6em 0; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; margin: 24px 0; }
.toc ol { margin: 0; padding-left: 1.2em; }
.callout { border-left: 4px solid var(--star); background: var(--star-soft); padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 1.5em 0; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #b7c9c0; padding: 64px 0 28px; font-size: .92rem; margin-top: 0; }
.footer a { color: #dfeae4; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; }
.pay-icons { display: flex; gap: 8px; align-items: center; }
.pay-icons span { background: #fff; color: var(--ink); border-radius: 6px; padding: 3px 8px; font-weight: 800; font-size: .72rem; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* Barre CTA mobile */
.sticky-cta { display: none; }
@media (max-width: 700px) {
  .sticky-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; gap: 8px; }
  .sticky-cta .btn { flex: 1; padding: 14px 10px; font-size: .92rem; box-shadow: var(--shadow-lg); }
  body.has-sticky { padding-bottom: 80px; }
}

/* Apparition */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .js .reveal { opacity: 1; transform: none; } }

:focus-visible { outline: 3px solid var(--star); outline-offset: 2px; }
.tabs button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.config--cart { grid-template-columns: 1.6fr 1fr; }
@media (max-width: 960px) { .config--cart { grid-template-columns: 1fr; } }
.prose code { word-break: break-all; }
.footer__grid > * { min-width: 0; }
.footer a { overflow-wrap: anywhere; }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.gen > *, .config > * { min-width: 0; }
.finder-wrap .tabs { display: flex; flex-wrap: wrap; border-radius: 16px; }
.finder-wrap .tabs button { flex: 1 1 auto; border-radius: 12px; }
[hidden] { display: none !important; }
.btn--block { white-space: normal; text-align: center; }
