/* ===== Polices auto-hébergées (SIL OFL, voir assets/fonts) ===== */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/figtree-latin-700-normal.woff2") format("woff2"); }

/* ===== Tokens ===== */
:root {
  --ground: #FBF7F1;      /* fond crème */
  --surface: #FFFFFF;
  --sand: #F2E9DC;        /* fonds de section secondaires */
  --sand-2: #EFE4D3;      /* vignettes */
  --line: #EADFCF;
  --line-strong: #E3D6C3;
  --ink: #2B231C;         /* texte principal */
  --muted: #5E5247;       /* texte secondaire (7:1 sur --ground) */
  --green: #1E5A46;       /* accent StockSynchro */
  --green-soft: #E3EFE8;
  --green-on-dark: #DCEBE3;
  --meyerz-orange: #F5AE33; /* couleur de marque Meyerz (meyerz.fr) */
  --orange-soft: #FDEFD3;
  --orange-ink: #7A4B00;    /* texte orange accessible sur fond clair */
  --meyerz-ink: #1A1A1A;    /* noir Meyerz */
  --radius-s: 14px;
  --radius-m: 20px;
  --radius-l: 28px;
  --container: 1180px;
  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --section-y: clamp(56px, 7vw, 104px);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--green); }
a:hover { color: #154233; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); color: var(--ink); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--meyerz-orange); outline-offset: 3px; border-radius: 6px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: var(--section-y) 0; }
.section--white { background: var(--surface); }
.section--sand { background: var(--sand); }
.eyebrow { font-size: 15px; font-weight: 700; color: var(--green); }
.h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; text-wrap: balance; }
.lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); }
.stack { display: flex; flex-direction: column; gap: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ===== Boutons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: #164636; color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--green); }
.btn--light:hover { background: var(--green-soft); color: var(--green); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* ===== Marque ===== */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.by-meyerz { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--meyerz-orange); color: var(--meyerz-ink); font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; }
.by-meyerz img { width: 17px; height: auto; }

/* ===== Header ===== */
.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 241, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.nav { display: flex; gap: 26px; font-weight: 500; font-size: 16px; }
.nav a { color: #4A3F35; text-decoration: none; padding: 10px 0; }
.nav a:hover { color: var(--green); }
.header__cta-short { display: none; }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 560px) {
  .header__cta-long { display: none; }
  .header__cta-short { display: inline-flex; }
  .brand__name { font-size: 18px; }
  .brand > img { width: 28px; height: 28px; }
}
@media (max-width: 480px) { .header .by-meyerz span { display: none; } .header .by-meyerz { padding: 5px 7px; } .brand { gap: 8px; } }

/* ===== Hero ===== */
.hero { padding: clamp(36px, 6vw, 88px) 0 clamp(56px, 7vw, 104px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero__text { display: flex; flex-direction: column; gap: 22px; }
.pill { align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--green); background: var(--green-soft); padding: 6px 14px; border-radius: 999px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { font-size: 15px; color: var(--muted); }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 480px) { .hero__ctas .btn { width: 100%; } }

/* Schéma du hero */
.flow { margin: 0; background: var(--sand); border-radius: var(--radius-l); padding: clamp(18px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.flow__sources { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 15px; }
.chip svg { width: 18px; height: 18px; color: var(--green); }
.flow__engine { display: flex; align-items: center; gap: 12px; }
.flow__dash { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, #B9A88F 0 6px, transparent 6px 12px); }
.flow__badge { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: #fff; border-radius: 999px; padding: 10px 18px; font-family: var(--font-display); font-weight: 700; }
.flow__badge svg { width: 20px; height: 20px; }
.shop { background: #fff; border-radius: var(--radius-m); padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 1px 0 var(--line-strong); }
.shop__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; }
.shop__status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--green); }
.shop__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2FA36B; }
.shop__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.product { display: flex; flex-direction: column; gap: 6px; }
.product__img { aspect-ratio: 1 / 1; border-radius: 12px; background: var(--sand-2); display: grid; place-items: center; color: #9C8B76; }
.product__img svg { width: 46%; height: auto; }
.product__name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.tag { align-self: flex-start; white-space: nowrap; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.tag--ok { color: var(--green); background: var(--green-soft); }
.tag--delay { color: var(--orange-ink); background: var(--orange-soft); }
.tag--out { color: var(--muted); background: var(--sand); }

/* ===== Problème ===== */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.pain { display: flex; flex-direction: column; gap: 14px; }
.pain__icon { width: 56px; height: 56px; border-radius: 18px; background: var(--sand); display: grid; place-items: center; }
.pain__icon--alert { background: var(--orange-soft); color: var(--orange-ink); }
.pain__icon svg { width: 26px; height: 26px; }
.pain h3, .step h3 { font-family: var(--font-body); font-size: 21px; font-weight: 700; }
.pain p, .step p { color: var(--muted); }

/* ===== Étapes ===== */
.steps { list-style: none; margin: 0; padding: 0; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step__num { font-family: var(--font-display); font-size: 56px; font-weight: 800; line-height: 1; color: var(--green); }
.step--accent { background: var(--green); border-color: var(--green); }
.step--accent h3, .step--accent .step__num { color: #fff; }
.step--accent p { color: var(--green-on-dark); }

/* ===== Annuaire ===== */
.search { position: relative; max-width: 560px; }
.search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 54px; padding: 0 18px 0 48px; border: 2px solid var(--line-strong); border-radius: 999px; background: var(--ground); color: var(--ink); font: inherit; font-size: 16px; }
.search input:focus { border-color: var(--green); outline: none; }
.suppliers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.supplier { border: 1px solid var(--line); background: var(--ground); border-radius: var(--radius-m); padding: 16px; display: flex; align-items: center; gap: 14px; }
.supplier__logo { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--sand-2); display: grid; place-items: center; color: #9C8B76; }
.supplier__logo svg { width: 24px; height: 24px; }
.supplier__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.supplier__name { font-weight: 700; line-height: 1.3; }
.supplier__meta { font-size: 14px; color: var(--muted); }
.badge { flex: none; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge--on { background: var(--green); color: #fff; }
.badge--soon { background: var(--sand); color: var(--muted); }
.empty { color: var(--muted); }
.suggest { background: var(--orange-soft); border-radius: var(--radius-l); padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px 40px; align-items: center; }
.suggest h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; font-weight: 800; }
.suggest__form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.suggest__form .field { flex: 1 1 180px; }
.suggest__form input { background: #fff; border-color: #EBCB92; }
@media (max-width: 860px) { .suggest { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .suggest__form .btn { width: 100%; } }

/* ===== Fournisseurs partenaires ===== */
.partners { background: var(--green); color: #fff; }
.partners .h2 { color: #fff; }
.partners__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.partners__eyebrow { font-size: 15px; font-weight: 700; color: #BFE0CF; }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); border-top: 1px solid #3F7A65; }
.benefits li { padding: 24px 24px 24px 0; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid #3F7A65; }
.benefits strong { font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.benefits span { color: var(--green-on-dark); }

/* ===== Tarifs ===== */
.pricing { display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.price-card { width: 100%; max-width: 520px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 20px; text-align: left; }
.price-card__badge { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--meyerz-orange); color: var(--meyerz-ink); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.price__amount { font-family: var(--font-display); font-size: clamp(52px, 6vw, 72px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price__unit { color: var(--muted); line-height: 1.35; }
.founder { padding: 14px 16px; border-radius: var(--radius-s); background: var(--orange-soft); font-size: 15px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--green); }

/* ===== Compatibilité ===== */
.compat { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px 56px; align-items: center; }
.compat__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 12px; }
.compat__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.compat__item strong { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.compat__item span { color: var(--muted); font-size: 15px; }
.compat__item--soon { background: transparent; border-style: dashed; }
.compat__item--soon strong { font-size: 18px; color: var(--muted); }
@media (max-width: 860px) { .compat { grid-template-columns: 1fr; } }

/* ===== Meyerz ===== */
.meyerz { background: var(--meyerz-ink); color: #F7F7F7; border-radius: var(--radius-l); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: auto 1fr; gap: 24px 56px; align-items: center; }
.meyerz__brand { display: flex; align-items: center; gap: 14px; }
.meyerz__brand img { width: 52px; height: auto; }
.meyerz__brand span { font-family: var(--font-display); font-size: 34px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.meyerz__eyebrow { font-size: 15px; font-weight: 700; color: var(--meyerz-orange); margin-bottom: 8px; }
.meyerz__quote { font-family: var(--font-display); font-size: clamp(20px, 2vw, 25px); line-height: 1.4; font-weight: 500; text-wrap: pretty; }
.meyerz a { color: var(--meyerz-orange); font-weight: 700; }
.meyerz a:hover { color: #FFD08A; }
@media (max-width: 760px) { .meyerz { grid-template-columns: 1fr; } }

/* ===== FAQ ===== */
.faq { display: grid; grid-template-columns: 1fr 2fr; gap: 32px 64px; align-items: start; }
.faq__list { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--ground); border-radius: 18px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { padding: 0 0 20px; color: var(--muted); }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* ===== Formulaire ===== */
.signup { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.signup__head { text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.signup .h2 { font-size: clamp(30px, 4vw, 50px); }
.card { background: #fff; border-radius: var(--radius-l); padding: clamp(20px, 4vw, 40px); display: flex; flex-direction: column; gap: 24px; }
.role-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-switch button { min-height: 56px; border: 2px solid var(--line-strong); border-radius: 16px; background: #fff; color: #4A3F35; font: inherit; font-weight: 700; cursor: pointer; }
.role-switch .short { display: none; }
@media (max-width: 480px) { .role-switch .long { display: none; } .role-switch .short { display: inline; } }
.role-switch button[aria-pressed="true"] { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 700; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 0 16px; border: 2px solid var(--line-strong); border-radius: var(--radius-s); background: var(--ground); color: var(--ink); font: inherit; font-size: 16px; }
.field textarea { padding: 14px 16px; resize: vertical; min-height: 104px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: none; }
.field input:user-invalid { border-color: #B3261E; }
.calendly { background: var(--ground); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--green); }
.check--strong { font-weight: 600; align-items: center; }
.check--small { font-size: 14px; color: var(--muted); }
.calendly__slot { min-height: 660px; border-radius: 12px; border: 2px dashed #D9C6AA; display: grid; place-items: center; text-align: center; padding: 16px; color: var(--muted); font-size: 14px; }
.form-status { min-height: 1.5em; font-weight: 600; }
.form-status--error { color: #B3261E; }
.success { text-align: center; padding: 24px 0; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.success strong { font-family: var(--font-display); font-size: 28px; color: var(--green); }
.hp { position: absolute; left: -9999px; }
[hidden] { display: none !important; }

/* ===== Footer ===== */
.footer { background: var(--ink); color: #D9CDBD; padding: 40px 0; font-size: 15px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer__brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer__brand strong { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: #fff; }
.footer__by { display: inline-flex; align-items: center; gap: 8px; color: #D9CDBD; text-decoration: none; }
.footer__by img { width: 22px; height: auto; }
.footer__by:hover { color: var(--meyerz-orange); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer nav a { color: #D9CDBD; padding: 8px 0; }
.footer nav a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ===== Teaser recommandation (hero) ===== */
.hero__referral { align-self: flex-start; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.hero__referral:hover { border-color: var(--meyerz-orange); color: var(--ink); }
.hero__referral-badge { background: var(--meyerz-orange); color: var(--meyerz-ink); font-weight: 700; font-size: 13px; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 480px) { .hero__referral { border-radius: var(--radius-m); padding: 10px 14px; } }

/* ===== Recommander / mise en relation ===== */
.referral { background: var(--orange-soft); }
.referral .h2 em { font-style: normal; color: var(--orange-ink); }
.referral .eyebrow { color: var(--orange-ink); }
.referral .lead { color: #5C3A00; }
.referral__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.referral__reward { flex: 0 0 auto; width: 210px; aspect-ratio: 1 / 1; border-radius: 50%; background: var(--meyerz-orange); color: var(--meyerz-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px; gap: 4px; font-weight: 600; font-size: 15px; line-height: 1.3; transform: rotate(-6deg); }
.referral__reward-big { font-family: var(--font-display); font-size: 48px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
@media (max-width: 760px) { .referral__reward { display: none; } }
.ref-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.ref-steps li { display: flex; gap: 16px; align-items: flex-start; }
.ref-steps__num { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--meyerz-ink); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.ref-steps li:last-child .ref-steps__num { background: var(--meyerz-orange); color: var(--meyerz-ink); }
.ref-steps strong { display: block; font-size: 19px; margin-bottom: 4px; }
.ref-steps div > span { color: #5C3A00; }
.referral__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .referral__grid { grid-template-columns: 1fr; } }
.template { background: var(--surface); border-radius: var(--radius-l); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 16px; }
.template__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.template__head strong { font-size: 18px; }
.template__head span { font-size: 14px; color: var(--muted); }
.template__text { width: 100%; min-height: 500px; resize: vertical; padding: 18px; border: 2px dashed var(--line-strong); border-radius: var(--radius-s); background: var(--ground); color: var(--ink); font: inherit; font-size: 15px; line-height: 1.55; }
.template__text:focus { border-color: var(--green); outline: none; }
.template__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.template__copied { min-height: 1.4em; font-weight: 600; color: var(--green); font-size: 15px; }
@media (max-width: 480px) { .template__actions .btn { width: 100%; } }
.ref-form { gap: 16px; }
.ref-form__title { font-size: 24px; font-weight: 800; }
.ref-form__sub { color: var(--muted); font-size: 15px; }
.referral__legal { font-size: 13px; color: #5C3A00; max-width: 900px; }
.check--referral { padding: 14px 16px; border-radius: 16px; background: var(--orange-soft); font-size: 15px; }
.check--referral input { accent-color: var(--orange-ink); }

/* ===== Pages légales ===== */
.legal { padding: clamp(40px, 6vw, 80px) 0; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 800; margin-bottom: 8px; }
.legal h2 { font-family: var(--font-body); font-size: 21px; font-weight: 700; margin: 36px 0 10px; }
.legal p, .legal li { color: #463B31; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal .updated { color: var(--muted); font-size: 15px; }
.legal dl { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: 6px 20px; margin: 8px 0; }
.legal dt { font-weight: 700; }
.legal dd { margin: 0; color: #463B31; }
@media (max-width: 520px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: 8px; } }

/* Bandeau de consentement */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 20px; background: var(--surface); color: var(--ink); border: 1px solid var(--sand); border-radius: 20px; box-shadow: 0 8px 30px rgba(43,35,28,.18); max-width: 760px; margin: 0 auto; }
.consent p { margin: 0; flex: 1 1 280px; font-size: 15px; }
.consent__btns { display: flex; gap: 10px; }
