/* ═══════════════════════════════════════════════════════════════
   BOUTIQUE — chargé uniquement sur les pages boutique
   ═══════════════════════════════════════════════════════════════
   Toutes les couleurs passent par les variables --bq-*.
   Thème clair par défaut (celui du site), sombre via body.theme-dark.
   .bq-r24 : identité Route 24, or #EFBF04, suit le thème clair/sombre du site.
   Règle : l'orange vif sert de FOND de bouton. En texte sur fond clair,
   on utilise --bq-accent-texte, plus foncé, sinon c'est illisible. */

.bq {
  --bq-fond: var(--white);
  --bq-surface: #ffffff;
  --bq-surface-2: var(--off-white);
  --bq-ligne: var(--border);
  --bq-ligne-forte: var(--border2);
  --bq-texte: var(--text);
  --bq-doux: #5f5f5f;
  --bq-titre: var(--text);
  --bq-deco: var(--orange);
  --bq-accent: var(--orange);
  --bq-accent-hover: var(--orange-dim);
  --bq-accent-texte: #b34a00;
  --bq-sur-accent: #0a0a0a;
  --bq-selection: #fff4ec;
  --bq-info-fond: #fff6ef;
  --bq-succes: #1a7a43;
  --bq-succes-fond: #e8f4ec;
  --bq-alerte: #c0392b;
  --bq-alerte-fond: #fbeae7;
  --bq-inactif: #8a8a8a;

  background: var(--bq-fond);
  color: var(--bq-texte);
  padding: 28px 0 80px;
}
body.theme-dark .bq {
  --bq-fond: var(--black);
  --bq-surface: var(--black2);
  --bq-surface-2: var(--black3);
  --bq-ligne: rgba(255,255,255,.1);
  --bq-ligne-forte: rgba(255,255,255,.2);
  --bq-texte: #ffffff;
  --bq-doux: rgba(255,255,255,.65);
  --bq-titre: #ffffff;
  --bq-deco: var(--orange);
  --bq-accent-texte: var(--orange2);
  --bq-selection: #241a10;
  --bq-info-fond: #1a120a;
  --bq-succes: #46c96f;
  --bq-succes-fond: #0f1a12;
  --bq-alerte: #ff6b5c;
  --bq-alerte-fond: #2a1210;
  --bq-inactif: #77716a;
}
/* ─── Identité Route 24 ───
   Suit le thème du site (clair ou sombre).
   Or #EFBF04 dans les deux thèmes, texte compris (choix de Momo).
   Attention : sur fond blanc le contraste n'est que de 1,7:1. Si un jour
   c'est jugé trop pâle, mettre --r24-or-texte à #8A6A12 (contraste 5:1).
   Pour changer l'or partout, ce sont ces deux variables. */
.bq.bq-r24 {
  --r24-or: #EFBF04;
  --r24-or-texte: #EFBF04;
  --bq-titre: var(--r24-or-texte);
  --bq-deco: var(--r24-or);
  --bq-info-fond: #fdf8e6;
  --bq-selection: #fdf6dc;
}
body.theme-dark .bq.bq-r24 {
  --r24-or: #EFBF04;
  --bq-fond: #0b0b0b;
  --bq-surface: #151310;
  --bq-surface-2: #1c1915;
  --bq-ligne: #2e2a24;
  --bq-ligne-forte: #3a342b;
  --bq-texte: #f3ecd8;
  --bq-doux: #aaa293;
  --bq-titre: var(--r24-or);
  --bq-deco: var(--r24-or);
  --bq-accent: var(--orange);
  --bq-accent-hover: var(--orange2);
  --bq-accent-texte: var(--orange2);
  --bq-sur-accent: #0a0a0a;
  --bq-info-fond: #17140a;
  --bq-selection: #241c08;
  --bq-succes: #46c96f;
  --bq-succes-fond: #0f1a12;
  --bq-alerte: #ff6b5c;
  --bq-alerte-fond: #2a1210;
  --bq-inactif: #7a7468;
}
/* Badge doré : texte noir sur or (contraste 12:1) */
.bq.bq-r24 .bq-badge-bientot { background: var(--r24-or); color: #0b0b0b; }

.bq *, .bq *::before, .bq *::after { box-sizing: border-box; }
.bq a { color: var(--bq-accent-texte); }
.bq :focus-visible { outline: 2px solid var(--bq-accent); outline-offset: 2px; }
.bq .container { padding: 0 20px; max-width: 1120px; }

/* ─── Typo ─── */
.bq-ariane { font-size: 13px; color: var(--bq-doux); margin: 0 0 14px; }
.bq-ariane a { color: var(--bq-doux); text-decoration: none; }
.bq-ariane a:hover { color: var(--bq-accent-texte); }
.bq-sur-titre {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--bq-accent-texte); margin: 0;
}
.bq-titre {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: clamp(52px, 12vw, 76px); line-height: .9;
  text-transform: uppercase; letter-spacing: -.01em;
  color: var(--bq-titre); margin: 6px 0 0;
}
.bq-titre-page {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: clamp(38px, 8vw, 56px); line-height: .95;
  text-transform: uppercase; color: var(--bq-titre); margin: 0 0 24px;
}
.bq-accroche { font-size: 17px; line-height: 1.5; margin: 0; }
.bq-h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 28px; line-height: 1.05; text-transform: uppercase;
  color: var(--bq-titre); margin: 32px 0 14px;
}
.bq-desc p { font-size: 16px; line-height: 1.6; margin: 0 0 12px; }
.bq-puces { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bq-puces li { display: flex; gap: 12px; align-items: baseline; font-size: 15px; line-height: 1.45; }
.bq-puces li::before {
  content: ""; width: 8px; height: 8px; flex-shrink: 0;
  background: var(--bq-deco); transform: translateY(-2px);
}
.bq-etapes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.bq-etapes li { display: flex; gap: 14px; font-size: 15px; line-height: 1.45; }
.bq-etape-num {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 26px; line-height: 1;
  color: var(--bq-accent-texte); width: 34px; flex-shrink: 0;
}
.bq-etapes li span:last-child { padding-top: 3px; }

/* ─── Boutons ─── */
.bq-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border-radius: 12px; border: 1px solid transparent;
  font-family: 'Barlow', sans-serif; font-size: 16px; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, transform .16s;
}
.bq-btn:active { transform: scale(.98); }
.bq-btn-principal { background: var(--bq-accent); color: var(--bq-sur-accent); }
.bq-btn-principal:hover { background: var(--bq-accent-hover); color: #fff; }
.bq .bq-btn-principal { color: var(--bq-sur-accent); }
.bq .bq-btn-principal:hover { color: #fff; }
.bq-btn-secondaire { background: transparent; border-color: var(--bq-deco); color: var(--bq-titre); }
.bq .bq-btn-secondaire { color: var(--bq-titre); }
.bq-btn-secondaire:hover { background: var(--bq-selection); }
.bq-btn-lien {
  background: none; border: none; padding: 0; min-height: 44px;
  color: var(--bq-doux); font-size: 14px; font-weight: 500; text-decoration: underline; cursor: pointer;
  font-family: 'Barlow', sans-serif;
}
.bq-btn-lien:hover { color: var(--bq-alerte); }
.bq-btn-large { width: 100%; }
.bq-btn[disabled], .bq-btn[aria-disabled="true"] {
  background: transparent; border-color: var(--bq-ligne-forte); color: var(--bq-inactif); cursor: not-allowed;
}

/* ─── Bandeaux ─── */
.bq-bandeau {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--bq-deco);
  background: var(--bq-info-fond); font-size: 14px; line-height: 1.45;
}
.bq-bandeau svg { flex-shrink: 0; margin-top: 1px; color: var(--bq-deco); }
.bq-bandeau-succes { border-color: var(--bq-succes); background: var(--bq-succes-fond); }
.bq-bandeau-succes svg { color: var(--bq-succes); }
.bq-bandeau-alerte { border-color: var(--bq-alerte); background: var(--bq-alerte-fond); }
.bq-bandeau-alerte svg { color: var(--bq-alerte); }
.bq-bandeau ul { margin: 4px 0 0; padding-left: 18px; }
.bq-ligne-info { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--bq-doux); }

/* ─── Liste des produits ─── */
.bq-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.bq-carte {
  display: flex; flex-direction: column;
  border: 1px solid var(--bq-ligne); border-radius: 16px; overflow: hidden;
  background: var(--bq-surface); color: var(--bq-texte); text-decoration: none;
  transition: border-color .18s, transform .18s;
}
.bq .bq-carte { color: var(--bq-texte); }
.bq-carte:hover { border-color: var(--bq-accent); transform: translateY(-2px); }
.bq-carte-visuel { position: relative; aspect-ratio: 4 / 3; background: var(--bq-surface-2); }
.bq-carte-visuel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bq-carte-corps { padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.bq-carte-nom {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 30px; line-height: 1;
  text-transform: uppercase; color: var(--bq-titre);
}
.bq-carte-prix { font-weight: 700; font-size: 17px; }
.bq-carte-prix s { color: var(--bq-inactif); font-weight: 500; margin-left: 6px; }

/* ─── Fiche produit ─── */
.bq-fiche { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.bq-visuel {
  position: relative; border-radius: 16px; overflow: hidden;
  background: var(--bq-surface-2); aspect-ratio: 4 / 3.3;
}
.bq-visuel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bq-visuel-vide {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--bq-doux); font-size: 14px; border: 1px dashed var(--bq-ligne-forte); border-radius: 16px;
}
.bq-badge {
  position: absolute; top: 14px; left: 14px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bq-accent); color: var(--bq-sur-accent);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.bq-infos { display: flex; flex-direction: column; gap: 18px; }
.bq-badge-bientot { background: var(--bq-deco); color: #0b0b0b; }
.bq-prix-annonce { color: var(--bq-titre); }
.bq-formule-bientot { font-weight: 500; font-size: 13px; color: var(--bq-doux); }

.bq-formules { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bq-formules legend { font-size: 13px; color: var(--bq-doux); padding: 0; margin-bottom: 10px; }
.bq-formules-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bq-formule { position: relative; cursor: pointer; }
.bq-formule input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bq-formule-carte {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 14px; border-radius: 14px;
  border: 1px solid var(--bq-ligne-forte); background: var(--bq-surface);
  transition: border-color .15s, background .15s;
}
.bq-formule input:checked + .bq-formule-carte {
  border: 2px solid var(--bq-accent); padding: 13px; background: var(--bq-selection);
}
.bq-formule input:focus-visible + .bq-formule-carte { outline: 2px solid var(--bq-accent); outline-offset: 2px; }
.bq-formule input:disabled + .bq-formule-carte { opacity: .55; cursor: not-allowed; }
.bq-formule-nom {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 24px; line-height: 1;
  text-transform: uppercase; color: var(--bq-titre);
}
.bq-formule-detail { font-size: 13px; color: var(--bq-doux); line-height: 1.35; }
.bq-formule-prix { font-size: 15px; font-weight: 700; margin-top: auto; padding-top: 4px; }
.bq-note-formule { font-size: 13px; color: var(--bq-doux); margin: 0; }

.bq-prix { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.bq-prix-courant {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 46px; line-height: 1;
  color: var(--bq-accent-texte);
}
.bq-prix-barre { font-size: 17px; color: var(--bq-inactif); }
.bq-prix-port { font-size: 13px; color: var(--bq-doux); }

.bq-achat { display: flex; gap: 10px; }
.bq-achat .bq-btn { flex: 1; min-height: 54px; }
.bq-qte {
  display: flex; align-items: center; flex-shrink: 0;
  border: 1px solid var(--bq-ligne-forte); border-radius: 12px; background: var(--bq-surface);
}
.bq-qte button {
  width: 44px; height: 52px; border: none; background: none; cursor: pointer;
  color: var(--bq-titre); font-size: 22px; font-family: 'Barlow', sans-serif;
}
.bq-qte input {
  width: 34px; height: 52px; border: none; background: none; text-align: center;
  color: var(--bq-texte); font-size: 16px; font-weight: 700; font-family: 'Barlow', sans-serif;
  -moz-appearance: textfield; appearance: textfield;
}
.bq-qte input::-webkit-outer-spin-button,
.bq-qte input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bq-qte-sm button { height: 42px; width: 38px; }
.bq-qte-sm input { height: 42px; }

.bq-separateur { height: 1px; background: var(--bq-ligne); border: none; margin: 8px 0 0; }

/* ─── Panier ─── */
.bq-panier { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.bq-lignes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--bq-ligne); }
.bq-ligne {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 14px;
  padding: 16px 0; border-bottom: 1px solid var(--bq-ligne);
}
.bq-ligne-visuel { grid-row: span 3; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--bq-surface-2); }
.bq-ligne-visuel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bq-ligne-nom { font-weight: 700; font-size: 16px; }
.bq-ligne-prix-u { font-size: 13px; color: var(--bq-doux); }
.bq-ligne-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.bq-ligne-total { font-weight: 700; font-size: 16px; margin-left: auto; }

.bq-resume {
  border: 1px solid var(--bq-ligne); border-radius: 16px; background: var(--bq-surface);
  padding: 20px; display: flex; flex-direction: column; gap: 14px;
}
.bq-resume-ligne { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.bq-resume-ligne span:first-child { color: var(--bq-doux); }
.bq-resume-total { padding-top: 12px; border-top: 1px solid var(--bq-ligne); align-items: baseline; }
.bq-resume-total span:first-child { color: var(--bq-texte); font-weight: 700; }
.bq-resume-total strong {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 34px; line-height: 1;
}
.bq-resume details summary {
  cursor: pointer; font-weight: 700; font-size: 15px; list-style-position: inside; min-height: 32px;
}
.bq-vide { text-align: center; padding: 40px 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.bq-vide p { color: var(--bq-doux); margin: 0; font-size: 16px; }

/* ─── Formulaire ─── */
.bq-form { display: flex; flex-direction: column; gap: 18px; }
.bq-champs-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.bq-champ { display: flex; flex-direction: column; gap: 6px; }
.bq-champ label { font-weight: 600; font-size: 14px; }
.bq-champ .bq-req { color: var(--bq-accent-texte); }
.bq-champ input, .bq-champ select {
  width: 100%; min-height: 52px; padding: 0 14px;
  border: 1px solid var(--bq-ligne-forte); border-radius: 10px;
  background: var(--bq-surface); color: var(--bq-texte);
  font-family: 'Barlow', sans-serif; font-size: 16px;
}
.bq-champ input:focus, .bq-champ select:focus {
  outline: none; border: 2px solid var(--bq-accent); padding: 0 13px;
}
.bq-champ-aide { font-size: 13px; color: var(--bq-doux); margin: 0; }
.bq-champ-erreur { font-size: 13px; color: var(--bq-alerte); margin: 0; font-weight: 600; }
.bq-champ.a-erreur input, .bq-champ.a-erreur select { border-color: var(--bq-alerte); }
.bq-case { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.bq-case input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--bq-accent); flex-shrink: 0; }
.bq-champ .bq-case { font-weight: 400; font-size: 15px; }
.bq-pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ─── Confirmation ─── */
.bq-merci { max-width: 640px; display: flex; flex-direction: column; gap: 22px; }
.bq-numero {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 44px; line-height: 1;
  color: var(--bq-accent-texte); letter-spacing: .02em;
}
.bq-paiement dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 8px 0 0; }
.bq-paiement dt { color: var(--bq-doux); }
.bq-paiement dd { margin: 0; font-weight: 600; word-break: break-word; }

/* Commande sur mobile : récapitulatif au-dessus du formulaire */
@media (max-width: 899px) {
  .bq-commande .bq-resume { order: -1; }
}

/* ─── Grand écran ─── */
@media (min-width: 700px) {
  .bq-champs-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .bq { padding-top: 40px; }
  .bq-fiche { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .bq-visuel { position: sticky; top: 100px; }
  .bq-panier { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .bq-resume { position: sticky; top: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  .bq-carte, .bq-btn { transition: none; }
  .bq-carte:hover { transform: none; }
}
