/* ==========================================================================
   O-Run — feuille de style publique
   1. Jetons de design      5. Navigation
   2. Base & utilitaires    6. Composants boutique
   3. Boutons & formulaires 7. Pages
   4. Notifications         8. Pied de page & responsive
   ========================================================================== */

/* 1. Jetons de design ---------------------------------------------------- */
:root {
  --ink:        #0E0F0D;
  --ink-2:      #24261F;
  --ink-3:      #4A4D44;
  --muted:      #74786C;
  --paper:      #FAF8F4;
  --surface:    #FFFFFF;
  --surface-2:  #F2EFE8;
  --line:       rgba(14, 15, 13, .12);
  --line-soft:  rgba(14, 15, 13, .07);

  --accent:     #C2F53C;   /* lime — sur fond sombre uniquement */
  --accent-ink: #0E0F0D;

  /* Surface volontairement sombre (héros, pied de page, panneaux d'appoint).
     Distincte de --ink/--paper : ces blocs restent sombres dans les DEUX
     thèmes, sinon ils s'inverseraient en clair une fois le thème sombre actif. */
  --invert-bg:    #0E0F0D;
  --invert-fg:    #FAF8F4;
  --invert-soft:  rgba(250, 248, 244, .66);
  --invert-faint: rgba(250, 248, 244, .42);
  --invert-line:  rgba(250, 248, 244, .14);
  --invert-hover: rgba(250, 248, 244, .08);
  --hot:        #E8452B;   /* promotions, alertes */
  --ok:         #1F7A4C;
  --warn:       #B4690E;
  --info:       #2563C9;

  --radius-s: 8px;
  --radius:   14px;
  --radius-l: 22px;
  --radius-xl: 32px;

  --shadow-s: 0 1px 2px rgba(14,15,13,.06), 0 2px 8px rgba(14,15,13,.04);
  --shadow:   0 2px 6px rgba(14,15,13,.05), 0 12px 32px rgba(14,15,13,.08);
  --shadow-l: 0 24px 64px rgba(14,15,13,.16);

  --display: "Bricolage Grotesque", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1280px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* 2. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.025em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.02rem; letter-spacing: -.01em; }
p  { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
img { max-width: 100%; display: block; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.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;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--accent); padding: .8rem 1.2rem;
}
.skip-link:focus { left: .5rem; top: .5rem; }

.eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 .9rem;
}
.eyebrow--accent { color: var(--ink); }
.eyebrow--accent::before {
  content: ""; display: inline-block; width: 18px; height: 3px;
  background: var(--accent); margin-right: .6rem; vertical-align: middle;
}

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; margin-bottom: 2.2rem; flex-wrap: wrap;
}
.section__head h2 { margin: 0; }
.section__head p { margin: .4rem 0 0; color: var(--muted); max-width: 48ch; }

.lede { font-size: 1.08rem; color: var(--ink-3); max-width: 60ch; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* 3. Boutons ------------------------------------------------------------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--body); font-size: .92rem; font-weight: 600;
  padding: .82rem 1.5rem; border-radius: 100px; border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  cursor: pointer; transition: transform .16s var(--ease), background .16s, color .16s, box-shadow .16s;
  text-align: center; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-s); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink); }
.btn--primary:hover { --btn-bg: var(--ink-2); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-bd: var(--accent); }
.btn--accent:hover { --btn-bg: #D3FF5E; }
.btn--ghost { --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bd: var(--ink); }
.btn--light { --btn-bg: var(--surface); --btn-bd: var(--line); }
.btn--danger { --btn-fg: var(--hot); --btn-bd: rgba(232,69,43,.4); }
.btn--danger:hover { --btn-bg: var(--hot); --btn-fg: #fff; --btn-bd: var(--hot); }
.btn--block { width: 100%; }
.btn--sm { padding: .5rem 1rem; font-size: .82rem; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }

.linky { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.linky:hover { color: var(--ink-3); }

/* Formulaires */
.field { margin-bottom: 1.1rem; }
.field > label, .label {
  display: block; font-size: .8rem; font-weight: 600; letter-spacing: .02em;
  margin-bottom: .42rem; color: var(--ink-2);
}
.input, input[type="text"], input[type="email"], input[type="password"],
input[type="search"], input[type="tel"], input[type="number"], input[type="url"],
select, textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  padding: .78rem .95rem; border: 1.5px solid var(--line); border-radius: var(--radius-s);
  background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230E0F0D' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem; }
.input:focus, input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(14,15,13,.08);
}
.field--error .input, .field--error input, .field--error textarea, .field--error select { border-color: var(--hot); }
.field__error { display: block; font-size: .8rem; color: var(--hot); margin-top: .35rem; font-weight: 500; }
.field__hint { display: block; font-size: .8rem; color: var(--muted); margin-top: .35rem; }

.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .88rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: .15rem 0 0; accent-color: var(--ink); flex: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }

/* 4. Notifications ------------------------------------------------------- */
.toasts {
  position: fixed; top: calc(var(--header-h) + 14px); right: 1.2rem; z-index: 120;
  display: flex; flex-direction: column; gap: .6rem; width: min(94vw, 400px);
}
.toast {
  display: flex; align-items: flex-start; gap: .7rem; padding: .85rem 1rem;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--ink); border-radius: var(--radius-s);
  box-shadow: var(--shadow); animation: toast-in .3s var(--ease);
}
.toast p { margin: 0; font-size: .9rem; flex: 1; }
.toast__icon {
  flex: none; width: 20px; height: 20px; border-radius: 50%; font-size: .72rem;
  display: grid; place-items: center; background: var(--ink); color: var(--paper); font-weight: 700;
}
.toast__close { border: 0; background: none; font-size: 1.25rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 .1rem; }
.toast--success { border-left-color: var(--ok); }
.toast--success .toast__icon { background: var(--ok); }
.toast--error { border-left-color: var(--hot); }
.toast--error .toast__icon { background: var(--hot); }
.toast--info { border-left-color: var(--info); }
.toast--info .toast__icon { background: var(--info); }
@keyframes toast-in { from { opacity: 0; transform: translateX(14px); } }

.notice {
  display: flex; gap: .8rem; padding: 1rem 1.1rem; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line-soft); font-size: .9rem;
}
.notice p:last-child { margin: 0; }
.notice--warn { background: #FFF6E6; border-color: #F0D9A8; }
.notice--danger { background: #FDECE9; border-color: #F5C4BA; }

/* 5. Navigation ---------------------------------------------------------- */
.announce { background: var(--invert-bg); color: var(--invert-fg); font-size: .81rem; }
.announce__inner { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .55rem 0; }
.announce p { margin: 0; font-weight: 500; letter-spacing: .01em; }
.announce__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,244,.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header.is-stuck { box-shadow: var(--shadow-s); }
.header__inner {
  display: flex; align-items: center; gap: 1.1rem; height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .6rem; margin-right: .4rem; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--invert-bg); color: var(--accent); font-family: var(--display);
  font-weight: 800; font-size: 1.05rem; flex: none;
}
.brand__text {
  font-family: var(--display); font-weight: 800; font-size: 1.32rem;
  letter-spacing: -.04em; text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: .15rem; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .5rem .8rem; border-radius: 100px; font-size: .9rem; font-weight: 500;
  border: 0; background: none; font-family: inherit; cursor: pointer; color: inherit;
  transition: background .15s;
}
.nav__link:hover, .nav__link.is-active { background: var(--surface-2); }
.nav__link.is-active { font-weight: 600; }
.nav__trigger svg { transition: transform .2s var(--ease); }
.nav__item.is-open .nav__trigger svg { transform: rotate(180deg); }

.megamenu, .dropdown {
  position: absolute; top: calc(100% + 12px); opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-l); box-shadow: var(--shadow-l); z-index: 60;
}
.nav__item.is-open .megamenu, .nav__item.is-open .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
/* Pont invisible qui couvre l'espace entre le déclencheur et le panneau :
   la souris ne quitte jamais la zone en descendant vers le menu. */
.megamenu::before, .dropdown::before {
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
}
.megamenu { left: 0; width: min(92vw, 720px); display: grid; grid-template-columns: 1fr 220px; overflow: hidden; }
.megamenu__grid { padding: 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; }
.megamenu__link {
  display: flex; gap: .8rem; align-items: center; padding: .65rem .8rem;
  border-radius: var(--radius-s); transition: background .15s;
}
.megamenu__link:hover { background: var(--surface-2); }
.megamenu__link strong { display: block; font-size: .92rem; }
.megamenu__link em { font-style: normal; font-size: .78rem; color: var(--muted); }
.megamenu__emoji {
  width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2);
  display: grid; place-items: center; font-size: 1rem; flex: none;
}
.megamenu__empty { padding: 1rem; color: var(--muted); grid-column: 1 / -1; }
.megamenu__aside { background: var(--invert-bg); color: var(--invert-fg); padding: 1.4rem; display: flex; flex-direction: column; gap: .55rem; }
.megamenu__aside .eyebrow { color: var(--accent); margin-bottom: .5rem; }
.megamenu__aside a { font-size: .88rem; opacity: .82; transition: opacity .15s, padding-left .15s; }
.megamenu__aside a:hover { opacity: 1; padding-left: .25rem; }

.dropdown { right: 0; min-width: 250px; padding: .5rem; display: flex; flex-direction: column; }
.dropdown a { padding: .58rem .75rem; border-radius: var(--radius-s); font-size: .89rem; transition: background .15s; }
.dropdown a:hover { background: var(--surface-2); }
.dropdown__head { padding: .7rem .75rem .8rem; margin: 0 0 .3rem; border-bottom: 1px solid var(--line-soft); }
.dropdown__head strong { display: block; font-size: .92rem; }
.dropdown__head em { font-style: normal; font-size: .78rem; color: var(--muted); }
.dropdown__admin { color: var(--ink); font-weight: 600; background: var(--surface-2); margin-top: .3rem; }
.dropdown__out { color: var(--hot); border-top: 1px solid var(--line-soft); margin-top: .3rem; padding-top: .7rem !important; border-radius: 0; }

.search {
  flex: 1; max-width: 320px; margin-left: auto; position: relative;
  display: flex; align-items: center;
}
.search svg { position: absolute; left: .85rem; color: var(--muted); pointer-events: none; }
.search input {
  padding: .58rem .9rem .58rem 2.4rem; border-radius: 100px;
  background: var(--surface-2); border-color: transparent; font-size: .88rem;
}
.search input:focus { background: var(--surface); }
.search--block { max-width: none; margin: 0 0 1rem; }
.search--block input { padding-left: .95rem; }

.header__actions { display: flex; align-items: center; gap: .5rem; }
.header__login { font-size: .89rem; font-weight: 600; padding: .5rem .8rem; border-radius: 100px; }
.header__login:hover { background: var(--surface-2); }
.header__cart { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; transition: background .15s; }
.header__cart:hover { background: var(--surface-2); }
.header__badge {
  position: absolute; top: 1px; right: -1px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 100px; background: var(--hot); color: #fff; font-size: .68rem;
  font-weight: 700; display: grid; place-items: center; border: 2px solid var(--paper);
}
.header__badge.is-empty { display: none; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--accent); font-family: var(--display);
  font-weight: 700; font-size: .82rem; cursor: pointer; display: grid; place-items: center;
}

.header__burger { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: .5rem; }
.header__burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

.drawer { position: fixed; inset: 0; z-index: 200; background: rgba(14,15,13,.45); }
.drawer__panel {
  width: min(88vw, 360px); height: 100%; background: var(--paper);
  padding: 1.2rem; overflow-y: auto; display: flex; flex-direction: column;
  animation: drawer-in .26s var(--ease);
}
@keyframes drawer-in { from { transform: translateX(-100%); } }
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.drawer__close { border: 0; background: none; font-size: 1.9rem; line-height: 1; cursor: pointer; }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a { padding: .8rem .2rem; border-bottom: 1px solid var(--line-soft); font-weight: 500; }
.drawer__foot { margin-top: auto; padding-top: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.drawer__phone { text-align: center; font-weight: 700; font-family: var(--display); font-size: 1.1rem; padding-top: .5rem; }

/* 6. Composants boutique ------------------------------------------------- */
.card-grid {
  display: grid; gap: 1.4rem 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
}

.pcard { position: relative; display: flex; flex-direction: column; }
.pcard__media {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--radius); background: var(--surface-2);
}
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.045); }
.pcard__ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-size: .8rem; }
.pcard__flags { position: absolute; top: .6rem; left: .6rem; display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
.pcard__body { padding: .7rem .15rem 0; display: flex; flex-direction: column; gap: .18rem; flex: 1; }
.pcard__brand { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pcard__title { font-family: var(--body); font-size: .93rem; font-weight: 500; line-height: 1.35; margin: 0; letter-spacing: 0; }
.pcard__meta { font-size: .78rem; color: var(--muted); }
.pcard__price { margin-top: .35rem; display: flex; align-items: baseline; gap: .5rem; }
.pcard__price strong { font-family: var(--display); font-size: 1.08rem; font-weight: 700; }
.pcard__price s { font-size: .82rem; color: var(--muted); }
.pcard__fav {
  position: absolute; top: .6rem; right: .6rem; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.9); backdrop-filter: blur(6px);
  cursor: pointer; display: grid; place-items: center; color: var(--ink);
  transition: transform .15s, background .15s; box-shadow: var(--shadow-s);
}
.pcard__fav:hover { transform: scale(1.08); }
.pcard__fav.is-on { background: var(--hot); color: #fff; }
.pcard.is-sold .pcard__media img { filter: grayscale(1); opacity: .55; }

.tag {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .68rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: .3rem .55rem;
  border-radius: 100px; background: var(--surface); border: 1px solid var(--line);
}
.tag--hot { background: var(--hot); color: #fff; border-color: var(--hot); }
.tag--ink { background: var(--ink); color: var(--accent); border-color: var(--ink); }
.tag--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tag--soft { background: var(--surface-2); border-color: transparent; color: var(--ink-3); }

.pill {
  display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .7rem;
  border-radius: 100px; font-size: .76rem; font-weight: 600; background: var(--surface-2);
}
.pill--ok   { background: #E4F3EB; color: var(--ok); }
.pill--warn { background: #FCF0DC; color: var(--warn); }
.pill--info { background: #E4EDFB; color: var(--info); }
.pill--muted{ background: var(--surface-2); color: var(--muted); }
.pill--hot  { background: #FDE7E3; color: var(--hot); }

/* 7. Pages --------------------------------------------------------------- */
/* Accueil */
.hero { background: var(--invert-bg); color: var(--invert-fg); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; width: 620px; height: 620px; right: -180px; top: -220px;
  background: radial-gradient(circle, rgba(194,245,60,.22), transparent 65%); pointer-events: none;
}
.hero__inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); position: relative; z-index: 1;
}
.hero h1 { color: var(--invert-fg); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lede { font-size: 1.1rem; color: var(--invert-soft); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin: 2rem 0 2.4rem; }
.hero .btn--ghost { --btn-fg: var(--invert-fg); --btn-bd: var(--invert-line); }
.hero .btn--ghost:hover { --btn-bd: var(--invert-fg); }
.hero__stats { display: flex; gap: 2.4rem; border-top: 1px solid var(--invert-line); padding-top: 1.6rem; }
.hero__stat strong { display: block; font-family: var(--display); font-size: 1.9rem; line-height: 1; color: var(--accent); }
.hero__stat span { font-size: .8rem; color: var(--invert-faint); }
.hero__collage { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.hero__collage figure { margin: 0; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 3/4; background: rgba(250,248,244,.08); }
.hero__collage figure:nth-child(1) { transform: translateY(-22px); }
.hero__collage figure:nth-child(4) { transform: translateY(22px); }
.hero__collage img { width: 100%; height: 100%; object-fit: cover; }

.marquee { background: var(--accent); color: var(--accent-ink); overflow: hidden; padding: .7rem 0; border-block: 1.5px solid var(--ink); }
.marquee__track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 28s linear infinite; }
.marquee span { font-family: var(--display); font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .9rem; }
.cat-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: 1.3rem; border-radius: var(--radius-l); background: var(--surface);
  border: 1px solid var(--line); min-height: 170px;
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--ink); }
.cat-card__emoji { font-size: 1.7rem; }
.cat-card strong { font-family: var(--display); font-size: 1.15rem; display: block; }
.cat-card span { font-size: .8rem; color: var(--muted); }

.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.promise__item { padding: 1.5rem; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line-soft); }
.promise__num { font-family: var(--display); font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .1em; }
.promise__item h3 { font-size: 1.08rem; margin: .7rem 0 .4rem; }
.promise__item p { margin: 0; font-size: .89rem; color: var(--ink-3); }

.brandrail { display: flex; flex-wrap: wrap; gap: .5rem; }
.brandrail a {
  padding: .55rem 1.1rem; border: 1.5px solid var(--line); border-radius: 100px;
  font-size: .88rem; font-weight: 600; transition: border-color .15s, background .15s;
}
.brandrail a:hover { border-color: var(--ink); background: var(--surface); }
.brandrail em { font-style: normal; color: var(--muted); font-weight: 500; }

.cta-band {
  background: var(--invert-bg); color: var(--invert-fg); border-radius: var(--radius-xl);
  padding: clamp(2.2rem, 4vw, 3.4rem); display: grid;
  grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
}
.cta-band h2 { color: var(--invert-fg); margin: 0 0 .5rem; }
.cta-band p { color: var(--invert-soft); margin: 0; max-width: 52ch; }

/* Catalogue */
.catalog { display: grid; grid-template-columns: 262px 1fr; gap: 2.4rem; align-items: start; padding: 2.2rem 0 4.5rem; }
.filters { position: sticky; top: calc(var(--header-h) + 18px); }
.filters__box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.2rem; }
.filters__group { border-bottom: 1px solid var(--line-soft); padding-bottom: 1rem; margin-bottom: 1rem; }
.filters__group:last-of-type { border: 0; margin-bottom: 0; padding-bottom: 0; }
.filters__group h4 { margin-bottom: .7rem; }
.filters__list { display: flex; flex-direction: column; gap: .12rem; }
.filters__list a { font-size: .87rem; padding: .3rem .45rem; border-radius: 6px; color: var(--ink-3); display: flex; justify-content: space-between; }
.filters__list a:hover { background: var(--surface-2); color: var(--ink); }
.filters__list a.is-active { background: var(--ink); color: var(--paper); font-weight: 600; }
.filters__chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.filters__chips a { padding: .32rem .7rem; border: 1px solid var(--line); border-radius: 100px; font-size: .8rem; }
.filters__chips a.is-active, .filters__chips a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters__price { display: flex; gap: .5rem; align-items: center; }
.filters__price input { padding: .5rem .6rem; font-size: .85rem; }

.catalog__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.catalog__count { font-size: .88rem; color: var(--muted); }
.catalog__count strong { color: var(--ink); font-family: var(--display); font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .32rem .5rem .32rem .8rem;
  background: var(--ink); color: var(--paper); border-radius: 100px; font-size: .78rem; font-weight: 500;
}
.chip a { opacity: .6; font-size: 1rem; line-height: 1; }
.chip a:hover { opacity: 1; }

.empty { text-align: center; padding: 4rem 1rem; border: 1.5px dashed var(--line); border-radius: var(--radius-l); }
.empty__icon { font-size: 2.4rem; margin-bottom: .6rem; }
.empty h3 { margin-bottom: .4rem; }
.empty p { color: var(--muted); max-width: 40ch; margin-inline: auto; }

.pagination { display: flex; justify-content: center; gap: .3rem; margin-top: 3rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 .6rem; display: grid; place-items: center;
  border-radius: 10px; font-size: .88rem; font-weight: 600; border: 1px solid var(--line); background: var(--surface);
}
.pagination a:hover { border-color: var(--ink); }
.pagination .is-current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination .is-gap { border: 0; background: none; }

/* Fiche produit */
.product { display: grid; grid-template-columns: 1.12fr .88fr; gap: 3rem; padding: 2.2rem 0 4rem; align-items: start; }
.gallery { display: flex; flex-direction: column; gap: .7rem; }
.gallery__main { border-radius: var(--radius-l); overflow: hidden; background: var(--surface-2); aspect-ratio: 4/5; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .5rem; }
.gallery__thumb { border: 2px solid transparent; border-radius: 10px; overflow: hidden; padding: 0; background: none; cursor: pointer; aspect-ratio: 1; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--ink); }

.product__panel { position: sticky; top: calc(var(--header-h) + 18px); }
.product__brand { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.product h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: .5rem 0 .8rem; }
.product__price { display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1.3rem; }
.product__price strong { font-family: var(--display); font-size: 2.1rem; }
.product__price s { color: var(--muted); }
.product__specs { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem 1.5rem; margin: 1.4rem 0; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.product__spec { display: flex; justify-content: space-between; gap: 1rem; padding: .48rem 0; border-bottom: 1px solid var(--line-soft); font-size: .88rem; }
.product__spec dt { color: var(--muted); }
.product__spec dd { margin: 0; font-weight: 600; text-align: right; }
.product__buy { display: flex; gap: .6rem; margin: 1.4rem 0; }
.product__buy .btn--primary { flex: 1; }
.product__reassure { display: grid; gap: .55rem; margin: 1.6rem 0; padding: 1.1rem; background: var(--surface-2); border-radius: var(--radius); font-size: .87rem; }
.product__reassure div { display: flex; gap: .6rem; align-items: flex-start; }
.product__reassure b { flex: none; }
.product__prose { font-size: .95rem; color: var(--ink-3); white-space: pre-line; }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { padding: 1rem 0; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.3rem; color: var(--muted); }
.accordion details[open] summary::after { content: "–"; }
.accordion__body { padding-bottom: 1.1rem; font-size: .9rem; color: var(--ink-3); white-space: pre-line; }

/* Panier & commande */
.page-head { padding: 2.6rem 0 1.6rem; }
.page-head h1 { margin-bottom: .3rem; }
.page-head p { color: var(--muted); margin: 0; }

.cart { display: grid; grid-template-columns: 1fr 380px; gap: 2.4rem; align-items: start; padding-bottom: 4.5rem; }
.cart__lines { display: flex; flex-direction: column; }
.cart__line { display: grid; grid-template-columns: 92px 1fr auto; gap: 1.1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart__thumb { border-radius: 10px; overflow: hidden; aspect-ratio: 4/5; background: var(--surface-2); }
.cart__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart__info strong { display: block; font-size: .95rem; margin-bottom: .15rem; }
.cart__info span { font-size: .82rem; color: var(--muted); }
.cart__actions { display: flex; gap: .5rem; align-items: center; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 100px; overflow: hidden; }
.qty button { border: 0; background: none; width: 30px; height: 34px; cursor: pointer; font-size: 1rem; }
.qty input { width: 34px; border: 0; text-align: center; padding: 0; font-size: .88rem; background: none; }
.icon-btn { border: 0; background: none; cursor: pointer; color: var(--muted); padding: .35rem; border-radius: 6px; font-size: .95rem; }
.icon-btn:hover { color: var(--hot); background: var(--surface-2); }

.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.5rem; position: sticky; top: calc(var(--header-h) + 18px); }
.summary h3 { font-size: 1.15rem; margin-bottom: 1.1rem; }
.summary__row { display: flex; justify-content: space-between; padding: .45rem 0; font-size: .9rem; }
.summary__row--total { border-top: 1.5px solid var(--ink); margin-top: .7rem; padding-top: .9rem; font-size: 1.05rem; font-weight: 700; }
.summary__row--total span:last-child { font-family: var(--display); font-size: 1.5rem; }
.summary__row.is-free span:last-child { color: var(--ok); font-weight: 600; }
.summary__gap { margin: .9rem 0 0; font-size: .82rem; background: var(--surface-2); padding: .7rem .8rem; border-radius: var(--radius-s); }
.summary__bar { height: 5px; background: var(--line); border-radius: 4px; margin-top: .5rem; overflow: hidden; }
.summary__bar i { display: block; height: 100%; background: var(--accent); }
.coupon { display: flex; gap: .4rem; margin: 1.1rem 0; }
.coupon input { flex: 1; text-transform: uppercase; }

.steps { display: flex; gap: .5rem; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: 2rem; flex-wrap: wrap; }
.steps b { color: var(--ink); }
.steps i { font-style: normal; opacity: .4; }

.checkout { display: grid; grid-template-columns: 1fr 380px; gap: 2.4rem; align-items: start; padding-bottom: 4.5rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.6rem; margin-bottom: 1.2rem; }
.panel > h3:first-child { margin-top: 0; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.panel__head h3 { margin: 0; }

.paymethods { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.paymethods span { font-size: .78rem; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }

.result { max-width: 680px; margin-inline: auto; text-align: center; padding: 4rem 0 5rem; }
.result__icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.5rem; font-size: 2rem; background: var(--accent); }
.result__icon--warn { background: #FCF0DC; }
.result__ref { display: inline-block; font-family: var(--display); font-size: 1.3rem; background: var(--surface-2); padding: .5rem 1.2rem; border-radius: 100px; margin-bottom: 1.2rem; }
.result__box { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.4rem; margin: 2rem 0; }

.gateway { max-width: 480px; margin: 4rem auto; }
.gateway__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 2rem; box-shadow: var(--shadow); }
.gateway__bar { display: flex; align-items: center; gap: .6rem; padding-bottom: 1.2rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.gateway__amount { font-family: var(--display); font-size: 2.6rem; text-align: center; margin: 1rem 0 .3rem; }

/* Authentification */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h)); }
.auth__aside { background: var(--invert-bg); color: var(--invert-fg); padding: clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth__aside::after { content: ""; position: absolute; width: 460px; height: 460px; left: -140px; bottom: -200px; background: radial-gradient(circle, rgba(194,245,60,.2), transparent 65%); }
.auth__aside > * { position: relative; z-index: 1; }
.auth__aside h2 { color: var(--invert-fg); font-size: clamp(1.8rem, 2.6vw, 2.5rem); }
.auth__points { display: grid; gap: 1rem; margin-top: 2rem; }
.auth__point { display: flex; gap: .8rem; align-items: flex-start; font-size: .9rem; color: var(--invert-soft); }
.auth__point b { color: var(--accent); flex: none; }
.auth__help { border-top: 1px solid var(--invert-line); padding-top: 1.4rem; font-size: .85rem; color: var(--invert-faint); }
.auth__help a { color: var(--accent); font-weight: 600; }
.auth__form { display: flex; align-items: center; justify-content: center; padding: clamp(2rem, 5vw, 4rem) 1.5rem; }
.auth__inner { width: min(100%, 420px); }
.auth__switch { text-align: center; font-size: .88rem; color: var(--muted); margin-top: 1.6rem; }
.auth__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; font-size: .85rem; }
.pw-toggle { position: relative; }
.pw-toggle button { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; font-size: .78rem; color: var(--muted); font-weight: 600; padding: .3rem .5rem; }
.pw-meter { height: 4px; background: var(--line); border-radius: 4px; margin-top: .5rem; overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--hot); transition: width .25s, background .25s; }

/* Espace client */
.spaced { display: grid; grid-template-columns: 232px 1fr; gap: 2.2rem; align-items: start; padding: 2rem 0 4.5rem; }
.sidenav { position: sticky; top: calc(var(--header-h) + 18px); display: flex; flex-direction: column; gap: .1rem; }
.sidenav a { padding: .62rem .85rem; border-radius: 10px; font-size: .9rem; font-weight: 500; color: var(--ink-3); display: flex; justify-content: space-between; align-items: center; }
.sidenav a:hover { background: var(--surface-2); color: var(--ink); }
.sidenav a.is-active { background: var(--ink); color: var(--paper); font-weight: 600; }
.sidenav hr { border: 0; border-top: 1px solid var(--line-soft); margin: .7rem 0; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .9rem; margin-bottom: 1.8rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.stat span { font-size: .76rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.stat strong { display: block; font-family: var(--display); font-size: 1.85rem; line-height: 1.1; margin-top: .3rem; }

.list { display: flex; flex-direction: column; gap: .7rem; }
.list__item {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, transform .15s;
}
.list__item:hover { border-color: var(--ink); }
.list__main { flex: 1; min-width: 0; }
.list__main strong { display: block; font-size: .95rem; }
.list__main span { font-size: .82rem; color: var(--muted); }
.list__side { text-align: right; font-size: .85rem; }
.list__side b { font-family: var(--display); font-size: 1.05rem; }

.thread { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }
.bubble { max-width: 78%; padding: .95rem 1.1rem; border-radius: var(--radius); font-size: .91rem; }
.bubble small { display: block; font-size: .74rem; opacity: .65; margin-bottom: .35rem; font-weight: 600; }
.bubble p { margin: 0; white-space: pre-line; }
.bubble--customer { background: var(--surface-2); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble--staff { background: var(--invert-bg); color: var(--invert-fg); align-self: flex-end; border-bottom-right-radius: 4px; }

.timeline { border-left: 2px solid var(--line); padding-left: 1.1rem; display: flex; flex-direction: column; gap: 1rem; }
.timeline__item { position: relative; font-size: .86rem; }
.timeline__item::before { content: ""; position: absolute; left: calc(-1.1rem - 5px); top: .45rem; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.timeline__item span { color: var(--muted); font-size: .78rem; }

/* Support */
.support-hero { background: var(--invert-bg); color: var(--invert-fg); padding: clamp(2.6rem, 6vw, 4.5rem) 0; }
.support-hero h1 { color: var(--invert-fg); }
.support-hero p { color: var(--invert-soft); max-width: 56ch; }
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-top: 2.4rem; }
.support-card {
  background: var(--invert-hover); border: 1px solid var(--invert-line);
  border-radius: var(--radius-l); padding: 1.4rem; transition: background .2s, transform .2s;
}
.support-card:hover { background: var(--invert-line); transform: translateY(-3px); }
.support-card__icon { font-size: 1.5rem; margin-bottom: .8rem; display: block; }
.support-card h2, .support-card h3 { color: var(--invert-fg); font-size: 1.05rem; margin-bottom: .3rem; }
.support-card strong { display: block; font-family: var(--display); font-size: 1.2rem; color: var(--accent); margin: .5rem 0 .2rem; word-break: break-word; }
.support-card span { font-size: .82rem; color: var(--invert-faint); }

.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: start; padding: 3rem 0 4.5rem; }
.faq-group { margin-bottom: 2.2rem; }
.faq-group h3 { font-size: 1.15rem; margin-bottom: .8rem; }

/* Pages légales */
.prose { max-width: 74ch; padding: 2.5rem 0 4.5rem; }
.prose h2 { font-size: 1.45rem; margin: 2.2rem 0 .7rem; }
.prose h3 { font-size: 1.1rem; margin: 1.6rem 0 .5rem; }
.prose p, .prose li { color: var(--ink-3); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }

/* Erreurs */
.errpage { text-align: center; padding: 6rem 1.5rem 7rem; }
.errpage__code { font-family: var(--display); font-size: clamp(5rem, 16vw, 10rem); line-height: .9; letter-spacing: -.05em; }
.errpage__code em { font-style: normal; color: var(--accent); -webkit-text-stroke: 2px var(--ink); }

/* 8. Pied de page -------------------------------------------------------- */
.footer { background: var(--invert-bg); color: var(--invert-fg); margin-top: 4rem; }
.footer__support {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center;
  padding: clamp(2.8rem, 5vw, 4.2rem) 0; border-bottom: 1px solid var(--invert-line);
}
.footer .eyebrow { color: var(--invert-faint); }
.footer .eyebrow--accent { color: var(--invert-fg); }
.footer__title { color: var(--invert-fg); font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.footer__lede { color: var(--invert-soft); margin: 0; max-width: 48ch; font-size: .95rem; }
.footer__channels { display: grid; gap: .6rem; }
.channel {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem;
  background: rgba(250,248,244,.06); border: 1px solid var(--invert-line);
  border-radius: var(--radius); transition: background .2s, border-color .2s, transform .2s;
}
.channel:hover { background: var(--invert-line); border-color: rgba(250,248,244,.3); transform: translateX(3px); }
.channel__icon { width: 42px; height: 42px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.channel strong { display: block; font-size: 1rem; word-break: break-word; }
.channel em { font-style: normal; font-size: .8rem; color: rgba(250,248,244,.58); }
.channel--cta .channel__icon { background: var(--paper); }

.footer__news {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
  padding: 2.2rem 0; border-bottom: 1px solid var(--invert-line);
}
.footer__news h3 { color: var(--invert-fg); font-size: 1.3rem; margin-bottom: .25rem; }
.footer__news p { color: var(--invert-faint); margin: 0; font-size: .89rem; }
.newsletter { display: flex; gap: .5rem; min-width: min(100%, 400px); }
.newsletter input { background: rgba(250,248,244,.08); border-color: rgba(250,248,244,.2); color: var(--paper); border-radius: 100px; padding: .82rem 1.2rem; }
.newsletter input::placeholder { color: var(--invert-faint); }
.newsletter input:focus { background: var(--invert-line); border-color: var(--accent); box-shadow: none; }

.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; padding: 2.8rem 0; }
.footer__grid h4 { color: var(--invert-fg); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__grid nav { display: flex; flex-direction: column; gap: .5rem; }
.footer__grid nav a { font-size: .88rem; color: var(--invert-soft); transition: color .15s; }
.footer__grid nav a:hover { color: var(--accent); }
.footer__brand p { color: var(--invert-soft); font-size: .9rem; max-width: 34ch; margin: 1rem 0 0; }
.footer__small { font-size: .82rem !important; color: var(--invert-faint) !important; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.4rem 0 2.2rem; border-top: 1px solid var(--invert-line);
  font-size: .8rem; color: var(--invert-faint);
}
.footer__bottom p { margin: 0; }
.paylist { display: flex; gap: .4rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.paylist li { border: 1px solid rgba(250,248,244,.18); border-radius: 6px; padding: .2rem .55rem; font-size: .72rem; }


/* --- Thème sombre --------------------------------------------------------
   Trois états : choix explicite « dark », choix explicite « light », et par
   défaut on suit le système. Seuls les JETONS sont redéfinis : aucun
   composant n'a besoin d'une règle dédiée.
   Les variables --invert-* restent sombres dans les deux thèmes : les blocs
   volontairement sombres (héros, pied de page) ne doivent pas s'inverser. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:        #F1EFE8;
    --ink-2:      #DAD8CF;
    --ink-3:      #B2B1A6;
    --muted:      #8A8D80;
    --paper:      #121310;
    --surface:    #1A1C17;
    --surface-2:  #24261F;
    --line:       rgba(241, 239, 232, .14);
    --line-soft:  rgba(241, 239, 232, .08);

    --hot:  #FF7454;
    --ok:   #5BC98C;
    --warn: #E5A94F;
    --info: #7FA8F0;

    --invert-bg:    #0A0B09;
    --invert-fg:    #F1EFE8;
    --invert-soft:  rgba(241, 239, 232, .68);
    --invert-faint: rgba(241, 239, 232, .44);
    --invert-line:  rgba(241, 239, 232, .14);
    --invert-hover: rgba(241, 239, 232, .07);

    --shadow-s: 0 1px 2px rgba(0,0,0,.5), 0 2px 8px rgba(0,0,0,.35);
    --shadow:   0 2px 6px rgba(0,0,0,.45), 0 12px 32px rgba(0,0,0,.5);
    --shadow-l: 0 24px 64px rgba(0,0,0,.65);

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ink:        #F1EFE8;
  --ink-2:      #DAD8CF;
  --ink-3:      #B2B1A6;
  --muted:      #8A8D80;
  --paper:      #121310;
  --surface:    #1A1C17;
  --surface-2:  #24261F;
  --line:       rgba(241, 239, 232, .14);
  --line-soft:  rgba(241, 239, 232, .08);

  --hot:  #FF7454;
  --ok:   #5BC98C;
  --warn: #E5A94F;
  --info: #7FA8F0;

  --invert-bg:    #0A0B09;
  --invert-fg:    #F1EFE8;
  --invert-soft:  rgba(241, 239, 232, .68);
  --invert-faint: rgba(241, 239, 232, .44);
  --invert-line:  rgba(241, 239, 232, .14);
  --invert-hover: rgba(241, 239, 232, .07);

  --shadow-s: 0 1px 2px rgba(0,0,0,.5), 0 2px 8px rgba(0,0,0,.35);
  --shadow:   0 2px 6px rgba(0,0,0,.45), 0 12px 32px rgba(0,0,0,.5);
  --shadow-l: 0 24px 64px rgba(0,0,0,.65);

  color-scheme: dark;
}


/* Ajustements ponctuels du thème sombre (ce que les jetons ne couvrent pas) */
:root[data-theme="dark"] .header,
:root[data-theme="dark"] .adm__top { background: rgba(18, 19, 16, .84); }
:root[data-theme="dark"] .pill--ok   { background: rgba(91, 201, 140, .16); }
:root[data-theme="dark"] .pill--warn { background: rgba(229, 169, 79, .16); }
:root[data-theme="dark"] .pill--info { background: rgba(127, 168, 240, .16); }
:root[data-theme="dark"] .pill--hot  { background: rgba(255, 116, 84, .16); }
:root[data-theme="dark"] .notice--warn   { background: rgba(229, 169, 79, .12); border-color: rgba(229, 169, 79, .3); }
:root[data-theme="dark"] .notice--danger { background: rgba(255, 116, 84, .12); border-color: rgba(255, 116, 84, .3); }
:root[data-theme="dark"] .header__badge { border-color: var(--paper); }
:root[data-theme="dark"] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23F1EFE8' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .pcard__fav { background: rgba(26, 28, 23, .9); color: var(--ink); }
:root[data-theme="dark"] .errpage__code em { -webkit-text-stroke-color: var(--ink); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .header,
  :root:not([data-theme="light"]) .adm__top { background: rgba(18, 19, 16, .84); }
  :root:not([data-theme="light"]) .pill--ok   { background: rgba(91, 201, 140, .16); }
  :root:not([data-theme="light"]) .pill--warn { background: rgba(229, 169, 79, .16); }
  :root:not([data-theme="light"]) .pill--info { background: rgba(127, 168, 240, .16); }
  :root:not([data-theme="light"]) .pill--hot  { background: rgba(255, 116, 84, .16); }
  :root:not([data-theme="light"]) .notice--warn   { background: rgba(229, 169, 79, .12); border-color: rgba(229, 169, 79, .3); }
  :root:not([data-theme="light"]) .notice--danger { background: rgba(255, 116, 84, .12); border-color: rgba(255, 116, 84, .3); }
  :root:not([data-theme="light"]) .header__badge { border-color: var(--paper); }
  :root:not([data-theme="light"]) select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23F1EFE8' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  }
  :root:not([data-theme="light"]) .pcard__fav { background: rgba(26, 28, 23, .9); color: var(--ink); }
  :root:not([data-theme="light"]) .errpage__code em { -webkit-text-stroke-color: var(--ink); }
}

/* Bascule de thème dans l'en-tête */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line);
  background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center;
  font-size: .95rem; line-height: 1; transition: border-color .15s, background .15s;
  flex: none;
}
.theme-toggle:hover { border-color: var(--ink); background: var(--surface-2); }
.theme-toggle__sun { display: none; }
.theme-toggle__moon { display: block; }
:root[data-theme="dark"] .theme-toggle__sun { display: block; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle__moon { display: none; }
}

/* FAQ — page dédiée, volontairement distincte de la page support */
.faq-hero { padding: clamp(2.4rem, 5vw, 3.6rem) 0 1.8rem; border-bottom: 1px solid var(--line); }
.faq-hero h1 { margin-bottom: .5rem; }
.faq-hero .lede { margin-bottom: 1.6rem; }
.faq-nav { display: flex; flex-wrap: wrap; gap: .4rem; }
.faq-nav a {
  padding: .45rem .95rem; border: 1.5px solid var(--line); border-radius: 100px;
  font-size: .85rem; font-weight: 600; transition: border-color .15s, background .15s;
}
.faq-nav a:hover { border-color: var(--ink); background: var(--surface); }
.faq-body { display: grid; grid-template-columns: 1fr 330px; gap: 2.5rem; align-items: start; padding: 2.5rem 0 4.5rem; }
.faq-main .faq-group { margin-bottom: 2.6rem; scroll-margin-top: calc(var(--header-h) + 20px); }
.faq-main .faq-group h2 { font-size: 1.35rem; margin-bottom: .6rem; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 18px); }
.faq-direct { display: flex; flex-direction: column; gap: .3rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line-soft); font-size: .87rem; }
.faq-direct a { font-weight: 600; }
.faq-direct span { color: var(--muted); font-size: .82rem; }
@media (max-width: 900px) {
  .faq-body { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1080px) {
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters__box { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; }
  .filters__group { border: 0; padding: 0; margin: 0; }
  .cart, .checkout { grid-template-columns: 1fr; }
  .summary, .product__panel { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav, .search { display: none; }
  .header__burger { display: flex; }
  .header__inner { gap: .6rem; }
  .brand { margin-right: auto; }
  .hero__inner, .product, .auth, .contact-grid, .footer__support, .footer__news, .cta-band { grid-template-columns: 1fr; }
  .hero__collage { display: none; }
  .auth__aside { display: none; }
  .spaced { grid-template-columns: 1fr; }
  .sidenav { position: static; flex-direction: row; overflow-x: auto; padding-bottom: .5rem; gap: .3rem; }
  .sidenav a { white-space: nowrap; }
  .sidenav hr { display: none; }
  .cta-band { text-align: left; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem .7rem; }
  .product__specs { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .cart__line { grid-template-columns: 72px 1fr; }
  .cart__actions { grid-column: 1 / -1; justify-content: space-between; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.4rem; }
  .newsletter { flex-direction: column; }
  .toasts { right: .6rem; left: .6rem; width: auto; }
}
@media print { .header, .footer, .toasts, .drawer { display: none !important; } }
