:root {
  --ink: #0e0e0d; --ink-2: #151513; --ink-3: #1c1c19;
  --paper: #f7f4ee; --paper-2: #efece3; --paper-line: #e2ddd0;
  --line: rgba(245,243,238,0.08); --line-2: rgba(245,243,238,0.16);
  --text-hi: #f5f3ee; --text-lo: #a8a49a; --text-dim: #6f6c64;
  --text-dark: #171715; --text-dark-2: #55534c; --text-dark-3: #8a8577;
  --gold: #d4af5a; --gold-deep: #ba7517; --gold-soft: rgba(212,175,90,0.12);
  --coral: #d85a30; --green: #4c7a3f; --green-hi: #7ab35f; --amber: #ba7517;
  --ok: #7ab35f; --err: #e0735a;
  --radius: 3px;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--ink); color: var(--text-hi); -webkit-font-smoothing: antialiased; line-height: 1.5; }
body.light { background: var(--paper); color: var(--text-dark); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.mono, .num { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* Header */
.site-header { background: var(--ink); border-bottom: 1px solid var(--line); font-family: var(--mono); position: sticky; top: 0; z-index: 40; }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; height: 64px; gap: 16px; }
.logo { font-weight: 700; letter-spacing: 0.06em; color: var(--gold); display: flex; align-items: center; gap: 10px; }
.logo::before { content: ""; width: 6px; height: 6px; background: var(--gold); }
.logo-top { display: flex; align-items: center; flex-shrink: 0; }
.logo-top img { height: 48px; width: auto; display: block; }
.site-header nav { display: flex; align-items: center; gap: 4px; }
.site-header nav a { color: var(--text-lo); font-size: 12px; padding: 8px 14px; }
.site-header nav a:hover, .site-header nav a.on { color: var(--text-hi); }
.site-header .cart-btn { border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--text-hi); }
.site-header .cart-btn b { color: var(--gold); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.02em; padding: 13px 20px; border-radius: var(--radius); border: 1px solid var(--line-2); background: transparent;
  cursor: pointer; transition: border-color .15s, background .15s, color .15s, filter .15s; white-space: nowrap; }
.btn:hover { border-color: currentColor; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #241a05; }
.btn.gold:hover { filter: brightness(1.08); }
.btn.coral { background: var(--coral); border-color: var(--coral); color: #2b1408; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--text-hi); }
.btn.sm { padding: 9px 13px; font-size: 11px; }
.btn.block { width: 100%; }
body.light .btn { border-color: var(--paper-line); }
body.light .btn:hover { border-color: var(--text-dark); }

/* Typo */
.eyebrow { font-family: var(--mono); font-size: 12px; color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
body.light .eyebrow { color: var(--gold-deep); }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--text-dim); text-transform: uppercase; margin-bottom: 8px; }
h1 { font-size: 34px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 17px; font-weight: 600; }
.lead { color: var(--text-lo); font-size: 15px; max-width: 560px; }
body.light .lead { color: var(--text-dark-2); }
.label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.07em; color: var(--text-dim); text-transform: uppercase; }
body.light .label { color: var(--text-dark-3); }

/* Cartes */
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
body.light .card { background: #fff; border-color: var(--paper-line); }
.big { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 28px; font-weight: 700; margin-top: 10px; letter-spacing: -0.01em; }
.sub { font-size: 12px; color: var(--text-lo); margin-top: 6px; font-family: var(--mono); }
body.light .sub { color: var(--text-dark-3); }

/* Formulaires */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--text-lo); }
body.light .field label { color: var(--text-dark-2); }
.input { width: 100%; background: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; min-width: 0; }
.input:focus { outline: none; border-color: var(--gold); }
body.light .input { background: #fff; border-color: var(--paper-line); }
.pw { position: relative; display: block; }
.pw .input { padding-right: 92px; }
.pw-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); background: none; border: none; border-radius: 6px; padding: 8px 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--gold); cursor: pointer; }
.pw-toggle:hover { background: var(--gold-soft); }
.pw-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
/* Restent côte à côte, même sur téléphone : code postal + ville, prénom + nom. */
.row2.cp-ville { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.row2.duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.form-error { color: var(--err); font-size: 13px; margin: 6px 0 12px; min-height: 1em; }

/* Tableaux */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
th { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); background: var(--ink-2); }
th.r, td.r { text-align: right; }
td.m { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; padding: 3px 9px; border-radius: 2px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); background: rgba(122,179,95,0.10); }
.pill.off { color: var(--text-dim); background: rgba(245,243,238,0.05); }
.pill.gold { color: var(--gold); background: var(--gold-soft); }
.pill.err { color: var(--err); background: rgba(224,115,90,0.10); }
.pill.info { color: #9fb8d8; background: rgba(159,184,216,0.10); }
.empty { padding: 26px; text-align: center; color: var(--text-dim); font-size: 13px; }

.notice { border: 1px solid rgba(212,175,90,0.3); background: var(--gold-soft); border-radius: var(--radius); padding: 14px 18px; font-size: 13px; color: var(--text-lo); }
.notice b { color: var(--text-hi); }
body.light .notice { color: var(--text-dark-2); }
body.light .notice b { color: var(--text-dark); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--gold); color: #241a05; font-family: var(--mono);
  font-size: 12px; font-weight: 700; padding: 12px 20px; border-radius: var(--radius); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--err); color: #2b1408; }

.site-footer { position: relative; padding: 46px 0 34px; font-size: 13px; color: var(--text-lo);
  background: radial-gradient(ellipse 60% 120% at 50% 0%, rgba(212,175,90,.09), transparent 70%), #16140f; border-top: 1px solid rgba(212,175,90,.28); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .8; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.site-footer .f-logo img { height: 58px; }
.site-footer .f-links { display: flex; gap: 26px; flex-wrap: wrap; }
.site-footer .f-links a { color: var(--text-hi); }
.site-footer .f-links a:hover { color: var(--gold); }
.site-footer .f-bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(212,175,90,.16); font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--text-lo); }
.site-footer .f-bottom b { color: var(--gold); font-weight: 600; }


/* Panier latéral (assets/panier-lateral.js) */
  .veil { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .veil.show { opacity: 1; pointer-events: auto; }
  .drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(420px, 100%); background: var(--ink); border-left: 1px solid var(--line);
    display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
  .drawer.show { transform: translateX(0); }
  .drawer .d-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
  .drawer .d-head b { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: var(--ok); }
  .drawer .x { background: none; border: none; color: var(--text-lo); font-size: 22px; cursor: pointer; line-height: 1; }
  .drawer .d-list { flex: 1; overflow-y: auto; padding: 8px 24px; }
  .drawer .d-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .drawer .d-line img { width: 56px; height: 56px; border-radius: 8px; object-fit: contain; object-position: center; background: #fff; padding: 3px; }
  .drawer .d-line small { display: block; font-family: var(--mono); font-size: 11px; color: var(--text-dim); margin-top: 3px; }
  .drawer .d-line span { font-family: var(--mono); font-size: 14px; }
  .drawer .d-line.new { animation: flash 1.2s ease-out; }
  @keyframes flash { from { background: color-mix(in srgb, var(--acc, var(--gold)) 18%, transparent); } to { background: transparent; } }
  .drawer .d-reco { padding: 14px 24px 16px; border-top: 1px solid var(--line); }
  .drawer .d-reco-t { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
  .drawer .d-sug { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; font-size: 14px; }
  .drawer .d-sug img { width: 44px; height: 44px; border-radius: 8px; object-fit: contain; object-position: center; background: #fff; padding: 3px; }
  .drawer .d-sug .n { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; margin-bottom: 2px; }
  .drawer .d-sug small { display: block; font-family: var(--mono); font-size: 12px; color: var(--text-lo); margin-top: 2px; }
  .drawer .d-add { background: none; border: 1px solid var(--line-2); border-radius: 6px; padding: 9px 11px; font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--text-hi); cursor: pointer; white-space: nowrap; }
  .drawer .d-add:hover { border-color: var(--gold); color: var(--gold); }
  .drawer .d-foot { padding: 20px 24px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; }
  .drawer .d-ship { font-size: 13px; color: var(--text-lo); margin: 0; }
  .drawer .d-ship b { font-family: var(--mono); color: var(--gold); }
  .drawer .d-sum { display: flex; justify-content: space-between; font-family: var(--mono); margin-bottom: 6px; }
  .drawer .d-sum b { font-size: 20px; }
  .drawer .btn { height: 52px; font-size: 13px; }


@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 27px; }
  .site-header nav a.hide-m { display: none; }
  .logo-top img { height: 40px; }
  .site-header nav a { white-space: nowrap; }
  .row2:not(.cp-ville, .duo) { grid-template-columns: 1fr; }
}

/* Pages juridiques (conditions revendeur, confidentialité) */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 0 90px; }
.doc h1 { margin-bottom: 8px; }
.doc .maj { font-family: var(--mono); font-size: 12px; color: var(--text-dim); margin-bottom: 22px; }
.doc .projet { padding: 14px 18px; border: 1px solid rgba(212,175,90,.45); border-radius: var(--radius); background: var(--gold-soft); font-size: 13.5px; color: var(--text-hi); margin-bottom: 30px; }
.doc nav.sommaire { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--mono); font-size: 12px; margin-bottom: 34px; }
.doc nav.sommaire a { color: var(--gold); }
.doc h2 { font-size: 18px; margin: 34px 0 10px; scroll-margin-top: 20px; }
.doc h3 { font-size: 15px; margin: 20px 0 6px; }
.doc p, .doc li { font-size: 14.5px; line-height: 1.7; color: var(--text-lo); }
.doc p { margin-bottom: 10px; }
.doc ul { margin: 0 0 12px 20px; }
.doc b, .doc strong { color: var(--text-hi); }
.doc mark { background: rgba(212,175,90,.18); color: var(--gold); padding: 0 3px; border-radius: 3px; }
.doc table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 14px; }
.doc td, .doc th { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; color: var(--text-lo); }
.doc th { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); font-weight: 500; }
.doc td:last-child { font-family: var(--mono); color: var(--text-hi); white-space: nowrap; }
@media (max-width: 600px) {
  .doc table { table-layout: fixed; }
  .doc td, .doc th { overflow-wrap: anywhere; white-space: normal; padding: 8px 4px; }
  .doc td:last-child { white-space: normal; }
  .doc th { letter-spacing: .02em; }
}

/* « Continuer avec Google » + séparateur « ou » */
.google-bloc { margin-bottom: 18px; }
.google-bloc .g-btn { display: flex; justify-content: center; min-height: 44px; }
.google-bloc .ou { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-family: var(--mono); font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; }
.google-bloc .ou::before, .google-bloc .ou::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.google-bloc .g-msg { margin-top: 10px; font-size: 13px; }

/* Pages de compte (inscription, connexion, mot de passe) : même écrin que l'accueil */
main.auth { background: radial-gradient(ellipse 70% 380px at 50% 0, rgba(212,175,90,.08), transparent 70%); }
.auth .eyebrow { color: var(--gold); letter-spacing: .22em; }
.auth h1 { font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; font-weight: 500; font-size: 54px; line-height: 1.02; letter-spacing: -0.01em; margin-top: 8px; }
.auth h1 em { font-style: italic; color: var(--gold); }
.auth .card { position: relative; background: linear-gradient(180deg, #181612 0%, #121110 100%); border-color: rgba(212,175,90,.14); border-radius: 18px; box-shadow: 0 30px 60px -40px rgba(0,0,0,.8); }
.auth .card::before { content: ""; position: absolute; left: 26px; right: 26px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .55; }
.auth .btn.gold { height: 54px; border-radius: 999px; background: linear-gradient(135deg, #e6c878, #c9a14a); border: none; box-shadow: 0 12px 30px -12px rgba(212,175,90,.55); }
.auth .seg label { border-radius: 14px; border-color: rgba(212,175,90,.18); background: #0f0e0c; }
.auth .seg label:has(input:checked) { border-color: var(--gold); background: linear-gradient(180deg, rgba(212,175,90,.16), rgba(212,175,90,.05)); }
@media (max-width: 560px) { .auth h1 { font-size: 42px; } .auth .eyebrow { letter-spacing: .14em; } }

/* Logo de la barre du haut sur petits écrans */
@media (max-width: 420px) { .logo-top img { height: 36px; } .site-header .wrap { gap: 8px; } .site-header nav a { padding: 8px 10px; } }
@media (max-width: 360px) { .logo-top img { height: 32px; } .site-header nav .hide-xs { display: none; } }
@media (max-width: 700px) { .site-footer .f-logo img { height: 52px; } }
