/* ==========================================================
   LeVraiLine — feuille de style principale
   Toutes les couleurs passent par les variables ci-dessous,
   modifiables depuis le dashboard (rubrique Thème).
   ========================================================== */

:root {
  --bg: #07080b;
  --surface: #111318;
  --border: #23262e;
  --text: #f5f6f8;
  --muted: #9aa0ab;
  --accent: #ffd31a;
  --accent-2: #ffb300;
  --on-accent: #0b0b0b;
  --logo-yellow: #ffd31a;

  --danger: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.55);
  --container: 1240px;

  --font-title: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}
/* Couleurs dérivées : recalculées partout où un thème est appliqué (site et aperçu du dashboard). */
:root, [data-mode] {
  --surface-2: color-mix(in srgb, var(--surface), var(--text) 5%);
  --glow: color-mix(in srgb, var(--accent) 38%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  /* Boutons : noir qui se dégrade vers la couleur principale, texte blanc vif */
  --btn-grad: linear-gradient(180deg, #000 0%, #000 35%, color-mix(in srgb, var(--accent) 55%, #000) 75%, var(--accent) 110%);
  --btn-text: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-title); margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s, opacity .2s;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary {
  position: relative; isolation: isolate; background: transparent; color: var(--btn-text); border-color: transparent;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
/* Le fond du bouton est flouté sur ses bords : contour fondu, texte toujours net */
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--btn-grad); filter: blur(4px);
  box-shadow: 0 0 22px 4px color-mix(in srgb, var(--accent) 22%, transparent);
  transition: box-shadow .2s, filter .2s;
}
.btn-primary:hover::before { box-shadow: 0 0 28px 6px color-mix(in srgb, var(--accent) 32%, transparent); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-link { background: none; border: none; color: var(--text); padding: 13px 6px; }
.btn-link:hover { color: var(--accent); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-whatsapp { background: #25d366; color: #06210f; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center;
  background: transparent; border: 1px solid transparent; cursor: pointer; position: relative; color: var(--text);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .count {
  position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--accent); color: var(--on-accent);
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.icon-btn .dot { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--danger); border: 2px solid var(--bg); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; }
.logo svg { height: 46px; width: auto; }
.logo .ink { fill: var(--text); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.site-header .container { display: flex; align-items: center; gap: 24px; height: 76px; }
.nav { display: flex; gap: 4px; margin: 0 auto; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--muted);
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); }
.nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad);
}
.header-actions { display: flex; gap: 4px; align-items: center; }
.menu-toggle { display: none; }
.search-bar { border-top: 1px solid var(--border); padding: 14px 0; }
.search-bar form { display: flex; gap: 10px; }
.search-bar input { flex: 1; }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label, .label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input, input[type=text], input[type=tel], input[type=password], input[type=number], input[type=search], input[type=url], input[type=date], input[type=email], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 96px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.choice-row { display: flex; gap: 10px; flex-wrap: wrap; }
.choice {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; font-size: 14px;
}
.choice input { accent-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.form-error { color: var(--danger); font-size: 14px; margin: 0 0 12px; min-height: 0; }
.form-error:empty { display: none; }

/* ---------- Sections ---------- */
section { padding: 34px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 16px; }
.section-head h2 { font-size: 22px; font-weight: 700; }
.section-head.inline { justify-content: center; flex-wrap: wrap; text-align: center; }
.section-head a.see-more {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--text); font-weight: 500; font-size: 13px;
  transition: border-color .15s, background .15s, color .15s;
}
.section-head a.see-more:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.section-head a { font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.section-head a:hover { color: var(--accent); }
.section-head .icon { width: 16px; height: 16px; }
.overline { color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }

/* ---------- Hero ---------- */
/* Bannière d'accueil : photo pleine largeur, logo + menu + textes posés dessus. */
.hero { padding: 0 0 30px; }
.hero-banner {
  position: relative; overflow: hidden; width: 100%;
  height: clamp(560px, 56.25vw, 860px); display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-banner::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 75%, transparent) 0%, transparent 22%),
    linear-gradient(0deg, var(--bg) 0%, transparent 18%),
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 88%, transparent) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 40%, transparent 70%);
}
.hero-banner > .container { position: relative; z-index: 2; padding-top: 76px; }
.hero-content { max-width: 620px; padding: 40px 0; }

/* En-tête transparent posé sur la bannière, qui redevient opaque au défilement */
.has-hero-overlay .site-header {
  position: fixed; left: 0; right: 0; background: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .25s, border-color .25s;
}
.has-hero-overlay .site-header .nav a { color: var(--text); opacity: .85; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.has-hero-overlay .site-header .nav a:hover, .has-hero-overlay .site-header .nav a.active { opacity: 1; }
.has-hero-overlay .site-header.scrolled, .has-hero-overlay .site-header:has(.nav.open), .has-hero-overlay .site-header:has(.search-bar:not(.hidden)) {
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.hero h1 { font-size: clamp(38px, 5.6vw, 72px); font-weight: 800; margin: 0 0 16px; letter-spacing: -0.03em; }
.hero .overline + h1 { margin-top: 14px; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--text); opacity: .85; font-size: 18px; max-width: 420px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.trust { margin-top: 10px; }
.trust .card { display: grid; grid-template-columns: repeat(4, 1fr); padding: 22px 10px; }
.trust-item { text-align: center; padding: 4px 14px; border-left: 1px solid var(--border); }
.trust-item:first-child { border-left: none; }
.trust-item .icon { width: 26px; height: 26px; color: var(--accent); margin: 0 auto 10px; }
.trust-item strong { display: block; font-size: 14px; font-weight: 600; }
.trust-item span { font-size: 12.5px; color: var(--muted); }

/* ---------- Catégories ---------- */
.categories { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat {
  display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 10px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}
.cat:hover { border-color: var(--accent); transform: translateY(-2px); }
.cat .cat-ico { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, var(--accent-soft), transparent 70%); }
.cat .cat-ico .icon { width: 36px; height: 36px; color: var(--text); stroke-width: 1.4; }
.cat span { font-size: 14px; font-weight: 500; }

/* ---------- Cartes produits ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 200px)); justify-content: center; gap: 18px; }
.products.cols-4 { grid-template-columns: repeat(4, minmax(0, 210px)); }
.product {
  position: relative; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid #000; border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s;
}
.product:hover { border-color: color-mix(in srgb, var(--accent) 55%, #000); transform: translateY(-2px); }
/* La photo remplit toute la carte ; le bas est assombri pour faire ressortir le texte blanc. */
.product { aspect-ratio: 3 / 4; }
.product .thumb { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, var(--surface-2), var(--surface) 70%); }
.product .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder { width: 45%; height: 45%; max-width: 110px; max-height: 110px; display: grid; place-items: center; color: var(--muted); opacity: .7; }
.thumb-placeholder .icon { width: 100%; height: 100%; stroke-width: 1; }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em; background: var(--grad); color: var(--on-accent);
}
.badge.b-promo { background: #ef4444; color: #fff; }
.badge.b-top { background: #f97316; color: #fff; }
.badge.b-rupture { background: var(--muted); color: var(--bg); }
.dispo-tag {
  position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: color-mix(in srgb, var(--bg) 75%, transparent); border: 1px solid var(--border);
}
.dispo-tag .icon { width: 13px; height: 13px; }
.dispo-tag.sur-place { color: var(--success); }
.dispo-tag.precommande { color: var(--accent); }
.product .body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 48px 12px 14px;
  display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .7) 45%, transparent 100%);
}
.product .infos { width: 100%; font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.product .price { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.product .brand { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.product h3 { font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.3; }
.product .specs { font-size: 12.5px; color: var(--muted); }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.price { font-family: var(--font-title); font-weight: 700; font-size: 17px; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.product .actions { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.product .actions .btn { flex: 1; padding: 10px 12px; font-size: 13px; }
.product .actions .icon-btn { border-color: var(--border); width: 40px; height: 40px; }
.product.is-rupture { opacity: .38; }
.product.is-rupture:hover { transform: none; border-color: var(--border); }
.delay { font-size: 12px; color: var(--accent); display: inline-flex; align-items: center; gap: 5px; }
.delay .icon { width: 13px; height: 13px; }

/* ---------- Bannière promo ---------- */
.promo-banner { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 5; position: relative; background: var(--surface); }
.promo-banner img { width: 100%; height: 100%; object-fit: cover; }
.promo-default { display: grid; grid-template-columns: 1.1fr 1fr; height: 100%; align-items: center; padding: 0 6%; gap: 20px; background: radial-gradient(circle at 75% 50%, var(--accent-soft), transparent 55%), var(--surface); }
.promo-default h3 { font-size: clamp(22px, 3vw, 36px); font-weight: 700; margin: 10px 0 8px; }
.promo-default p { margin: 0 0 18px; color: var(--muted); }
.promo-default .promo-art { height: 80%; display: grid; place-items: center; color: var(--accent); }
.promo-default .promo-art .icon { width: 60%; height: 100%; stroke-width: .8; }
/* Bannière Troc par défaut : le Moukoukoue en fond à gauche, le texte à droite */
.promo-troc { background: #050505; display: flex; align-items: center; justify-content: flex-end; border: none; border-radius: 32px; }
/* Bords fondus dans le fond de la page */
.promo-troc::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 60px 34px var(--bg); }
.promo-troc .promo-troc-bg {
  position: absolute; left: 0; top: 0; width: 68%; height: 100%; object-fit: cover; object-position: center 40%;
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent);
}
.promo-troc-text { position: relative; z-index: 2; padding: 0 7% 0 0; display: flex; flex-direction: column; align-items: center; text-align: center; color: #f5f6f8; }
.promo-troc-text h3 { font-size: clamp(22px, 3.2vw, 42px); font-weight: 800; margin-bottom: 10px; white-space: nowrap; text-shadow: 0 2px 16px rgba(0, 0, 0, .7); }
.promo-troc-text p { margin: 0 0 22px; color: #c9ccd2; font-size: 17px; }
.promo-tag { position: absolute; top: 10px; right: 12px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75); background: rgba(0,0,0,.45); padding: 3px 8px; border-radius: 6px; }

/* ---------- Tuiles services ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { display: flex; gap: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s; }
.tile:hover { border-color: var(--accent); }
.tile .icon { width: 30px; height: 30px; color: var(--accent); }
.tile strong { display: block; font-size: 15px; margin-bottom: 3px; }
.tile span { font-size: 13px; color: var(--muted); }

/* ---------- Pied de page ---------- */
.site-footer { margin-top: 50px; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 60%, var(--bg)); }
.footer-top { display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 44px 0 32px; }
.site-footer .contact-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 30px; font-size: 14px; color: var(--muted); }
.contact-row li { display: flex; align-items: center; gap: 10px; }
.contact-row li > .icon { width: 18px; height: 18px; color: var(--accent); }
.contact-row a:hover { color: var(--text); }
.brand-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; transition: transform .15s, box-shadow .15s; }
.brand-btn svg { width: 20px; height: 20px; }
.brand-btn:hover { transform: scale(1.1); box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .6); }
.site-footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.site-footer li { display: flex; gap: 10px; align-items: center; }
.site-footer li .icon { width: 17px; height: 17px; color: var(--accent); }
.site-footer a:hover { color: var(--text); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; }
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.socials .icon { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- Page header (pages internes) ---------- */
.page-head { padding: 40px 0 10px; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-top: 10px; }
.page-head p { color: var(--muted); max-width: 620px; margin: 10px 0 0; }
.page-head h1 em { font-style: normal; color: var(--accent); }
.page-head.centered { text-align: center; }
.page-head.centered p { margin-left: auto; margin-right: auto; }

/* ---------- Catalogue ---------- */
.tabs { display: inline-flex; padding: 5px; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; flex-wrap: wrap; }
.tab { padding: 10px 18px; border-radius: 999px; border: none; background: none; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.tab .icon { width: 16px; height: 16px; }
.tab.active { background: var(--btn-grad); color: var(--btn-text); }
.toolbar { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; margin: 24px 0 16px; }
.toolbar.end { justify-content: flex-end; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 13px; color: var(--muted); }
.chip.active, .chip:hover { border-color: var(--accent); color: var(--text); }
.toolbar select { width: auto; min-width: 190px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); }
.empty .icon { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--accent); }

/* ---------- Fiche produit ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; padding: 30px 0; }
.gallery-main { aspect-ratio: 1 / 1; border-radius: var(--radius); background: radial-gradient(circle at 50% 60%, var(--surface-2), var(--surface) 70%); border: 1px solid var(--border); display: grid; place-items: center; padding: 30px; position: relative; }
.gallery-main img { position: absolute; inset: 30px; width: calc(100% - 60px); height: calc(100% - 60px); object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs button { width: 80px; height: 80px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); padding: 8px; cursor: pointer; }
.gallery-thumbs button.active { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; margin: 8px 0 14px; }
.pdp .price { font-size: 30px; }
.pdp .price-old { font-size: 17px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14px; }
.spec-table td { padding: 11px 0; border-bottom: 1px solid var(--border); }
.spec-table td:first-child { color: var(--muted); width: 40%; }
.dispo-box { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); margin: 18px 0; font-size: 14px; }
.dispo-box .icon { color: var(--accent); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.qty button { width: 38px; height: 40px; background: none; border: none; cursor: pointer; display: grid; place-items: center; }
.qty button .icon { width: 16px; height: 16px; }
.qty span { min-width: 34px; text-align: center; font-weight: 600; }
.pdp-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pdp-actions .btn-primary { flex: 1; min-width: 200px; }
.description { color: var(--muted); white-space: pre-line; }

/* ---------- Tiroir panier ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .25s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(420px, 100%);
  background: var(--surface); border-left: 1px solid var(--border); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { font-size: 19px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 22px; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--border); }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-line .mini { width: 64px; height: 64px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; padding: 6px; }
.cart-line .mini img { width: 100%; height: 100%; object-fit: contain; }
.cart-line .mini .icon { width: 28px; height: 28px; color: var(--muted); }
.cart-line h4 { font-family: var(--font-body); font-size: 14px; font-weight: 600; }
.cart-line small { color: var(--muted); display: block; }
.cart-line .qty button { width: 30px; height: 30px; }
.cart-line .qty span { min-width: 24px; font-size: 13px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.cart-total strong { font-family: var(--font-title); font-size: 22px; }

/* ---------- Modale ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .6); }
.modal-box { width: min(480px, 100%); max-height: 92vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }
.modal-box.wide { width: min(760px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.modal-head h3 { font-size: 21px; }
.modal-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- Toast ---------- */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { padding: 13px 16px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 500; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow); animation: toastIn .25s ease; }
.toast .icon { width: 18px; height: 18px; }
.toast.error { background: var(--danger); color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Troc ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0; }
.step { padding: 20px; }
.step b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: var(--on-accent); font-family: var(--font-title); margin-bottom: 12px; }
.step strong { display: block; margin-bottom: 4px; }
.step span { color: var(--muted); font-size: 14px; }
.layout-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.form-card { padding: 26px; }
.form-card h2 { font-size: 20px; margin-bottom: 18px; }
.photo-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.photo-slot {
  aspect-ratio: 1; border-radius: 12px; border: 1px dashed var(--border); background: var(--surface-2);
  display: grid; place-items: center; cursor: pointer; position: relative; overflow: hidden; color: var(--muted);
}
.photo-slot:hover { border-color: var(--accent); color: var(--accent); }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot .rm { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; border: none; background: rgba(0,0,0,.7); color: #fff; display: grid; place-items: center; cursor: pointer; }
.photo-slot .rm .icon { width: 14px; height: 14px; }
.conditions { padding: 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border)); background: var(--accent-soft); margin: 6px 0 18px; }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.en_attente { color: var(--warning); background: color-mix(in srgb, var(--warning) 14%, transparent); }
.status.accepte { color: var(--success); background: color-mix(in srgb, var(--success) 14%, transparent); }
.status.rejete { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); }
.req { padding: 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); margin-bottom: 12px; }
.req.unseen { border-color: var(--accent); }
.req-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 6px; }
.req p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.req .btn { margin-top: 12px; }

/* ---------- Parle ça ---------- */
.rating-summary { display: flex; gap: 28px; align-items: center; padding: 24px; flex-wrap: wrap; }
.rating-big { font-family: var(--font-title); font-size: 54px; font-weight: 800; line-height: 1; }
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars .icon { width: 17px; height: 17px; }
.stars .off { color: var(--border); }
.star-input { display: flex; gap: 4px; }
.star-input button { background: none; border: none; cursor: pointer; padding: 2px; color: var(--border); }
.star-input button.on { color: var(--accent); }
.star-input .icon { width: 30px; height: 30px; }
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.review { padding: 22px; position: relative; }
.review .quote { font-family: var(--font-title); font-size: 46px; line-height: .6; color: var(--accent); height: 22px; }
.review p { margin: 10px 0 16px; white-space: pre-line; }
.review .who { display: flex; gap: 12px; align-items: center; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; font-family: var(--font-title); }
.review .who small { color: var(--muted); display: block; font-size: 12px; }

/* ---------- Compte ---------- */
.auth-tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 999px; margin-bottom: 20px; }
.auth-tabs button { flex: 1; padding: 10px; border: none; background: none; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--muted); }
.auth-tabs button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 0 var(--border); }
.account-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.profile-card { padding: 24px; text-align: center; }
.profile-card .avatar { width: 72px; height: 72px; font-size: 28px; margin: 0 auto 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .categories { grid-template-columns: repeat(3, 1fr); }
  .products.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 10px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--border); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; }
  .nav a.active::after { left: 10px; right: auto; width: 24px; }
  .header-actions { margin-left: auto; }
  .hero-banner { height: auto; min-height: 640px; align-items: flex-end; }
  .hero-banner::after { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 75%, transparent) 0%, transparent 18%), linear-gradient(0deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 45%, transparent 75%); }
  .hero-content { padding: 28px 0 10px; }
  .trust .card { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .trust-item:nth-child(3) { border-left: none; }
  .pdp, .layout-2, .account-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .promo-banner { aspect-ratio: auto; }
  .promo-banner img { aspect-ratio: 16 / 5; height: auto; }
  .promo-default { grid-template-columns: 1fr; padding: 26px; }
  .promo-default .promo-art { display: none; }
  .promo-troc { min-height: 460px; align-items: flex-end; justify-content: center; }
  .promo-troc .promo-troc-bg { width: 100%; height: 75%; object-position: center; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .promo-troc-text { width: 100%; padding: 24px 16px 30px; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .site-header .container { height: 66px; gap: 10px; }
  .logo svg { height: 38px; }
  .categories { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cat { padding: 16px 6px 12px; }
  .cat .cat-ico { width: 52px; height: 52px; }
  .cat .cat-ico .icon { width: 28px; height: 28px; }
  .cat span { font-size: 12.5px; }
  .products, .products.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product .body { padding: 12px; }
  .product .actions .btn { font-size: 12.5px; padding: 9px 8px; }
  .product .actions .icon-btn { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .photo-picker { grid-template-columns: repeat(2, 1fr); }
  .toolbar select { width: 100%; }
  .toasts { bottom: auto; top: 76px; }
  .badge { top: 8px; left: 8px; }
  .product .dispo-tag { top: auto; bottom: 8px; right: 8px; }
  .tabs { display: flex; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tab { flex: 1 0 auto; padding: 9px 12px; font-size: 13px; justify-content: center; }
}
