/* L’atelier XYZ — boutique
   Jetons : charte du cahier des charges. --accent est surchargé par Paramètres > Apparence. */
:root {
  --bg: #F8F9FC;
  --card: #FFFFFF;
  --ink: #172033;
  --muted: #64748B;
  --accent: #2463EB;
  --accent-ink: #FFFFFF;
  --line: #E2E8F0;
  --navy: #111B2A;
  --soft: #EEF2F8;
  --success: #15803D;
  --success-bg: #ECFDF3;
  --danger: #B91C1C;
  --danger-bg: #FEF2F2;
  --warn-bg: #FFFBEB;
  --warn: #92400E;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(23, 32, 51, .04), 0 6px 20px rgba(23, 32, 51, .05);
  --shadow-lift: 0 2px 4px rgba(23, 32, 51, .05), 0 14px 32px rgba(23, 32, 51, .09);
  --gutter: 16px;
  --container: 1200px;
}
@media (min-width: 768px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.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: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: -.01em; }
.eyebrow { font: 500 .78rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .9rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 1.25rem; border-radius: 999px;
  font: 600 .95rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background .15s, border-color .15s, color .15s, transform .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, #000); }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); padding: 0 .6rem; min-height: 38px; }
.btn-ghost:hover { background: var(--soft); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f1414; }
.btn-sm { min-height: 36px; padding: 0 .9rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn.danger { color: var(--danger); }

/* ---------- Formulaires ---------- */
.field { margin-bottom: 1.1rem; }
.field label, .field .label, fieldset legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.req { color: var(--danger); }
.optional { font-weight: 400; color: var(--muted); font-size: .86rem; }
.hint { font-size: .84rem; color: var(--muted); margin: .35rem 0 0; }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=tel],
.field input[type=number], .field input[type=search], .field input[type=url], .field input[type=date], .field select, .field textarea {
  width: 100%; min-height: 46px; padding: .65rem .85rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  font: inherit; font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
/* Champ avec icône à gauche (ex. gouvernorat à la commande) */
.input-icon { position: relative; }
.input-icon > svg { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.field .input-icon select, .field .input-icon input { padding-left: 2.6rem; }
.input-icon:focus-within > svg { color: var(--accent); }
.field-error { color: var(--danger); font-size: .86rem; font-weight: 500; margin: .35rem 0 0; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
fieldset { border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; }
.grid-2 { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- Notifications ---------- */
.flash-stack { display: grid; gap: .6rem; margin: 1.25rem auto 0; }
.flash { padding: .85rem 1rem; border-radius: var(--radius-sm); border: 1px solid; font-weight: 500; display: flex; gap: .6rem; }
.flash-success { background: var(--success-bg); border-color: #BBF7D0; color: var(--success); }
.flash-error { background: var(--danger-bg); border-color: #FECACA; color: var(--danger); }
.flash-info { background: var(--soft); border-color: var(--line); color: var(--ink); }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: #fff; padding: .85rem 1.2rem; border-radius: 999px; box-shadow: var(--shadow-lift);
  font-weight: 500; max-width: calc(100% - 32px); display: flex; gap: .9rem; align-items: center;
}
.toast a { color: #fff; font-weight: 600; }
.toast[hidden] { display: none; }

/* ---------- En-tête ---------- */
.site-header { background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand img { max-height: 40px; width: auto; }
.brand-mark { flex: none; }
.brand-word { font: 700 1.22rem/1 var(--font-display); letter-spacing: -.02em; }
.brand-word .mono { font-size: .82em; color: var(--accent); margin-left: .12em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav a { display: block; padding: .5rem .75rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-nav a:hover { background: var(--soft); }
.site-nav a[aria-current="page"] { background: var(--soft); color: var(--accent); }
.header-search { display: flex; align-items: center; background: var(--soft); border-radius: 999px; padding: 0 .35rem 0 1rem; border: 1.5px solid transparent; }
.header-search:focus-within { border-color: var(--accent); background: #fff; }
.header-search input { border: 0; background: transparent; font: inherit; min-height: 42px; width: 190px; color: var(--ink); }
.header-search input:focus { outline: none; }
.header-search button { border: 0; background: transparent; color: var(--ink); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.header-actions { display: flex; align-items: center; gap: .35rem; }
.icon-link { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .45rem .7rem; border-radius: 999px; }
.icon-link:hover { background: var(--soft); }
.cart-link { position: relative; }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 600 .75rem/22px var(--font-mono); text-align: center; }
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.25); } }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .header-inner { gap: .5rem; padding-top: .5rem; padding-bottom: .5rem; }
  .nav-toggle { display: inline-flex; order: 3; }
  .header-actions { order: 2; }
  .icon-link .label-text { display: none; }
  .site-nav, .header-search { order: 4; flex-basis: 100%; }
  .site-nav { display: none; }
  .site-nav.open { display: block; padding-bottom: .5rem; }
  .site-nav ul { flex-direction: column; }
  .header-search { margin-bottom: .25rem; }
  .header-search input { width: 100%; }
  .js .header-search { display: none; }
  .js .site-nav.open + .header-search { display: flex; }
}
@media (min-width: 961px) { .js .site-nav { display: block; } }

/* ---------- Pied de page ---------- */
.site-footer { margin-top: 5rem; background: var(--card); border-top: 1px solid var(--line); padding: 3rem 0 1.5rem; font-size: .94rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.site-footer h2 { font: 600 .8rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; color: var(--muted); font-size: .85rem; }

/* ---------- Accueil : signature « impression couche par couche » ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 3rem; } }
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 4vw, 4.2rem); line-height: 1.02; letter-spacing: -.035em; max-width: 13ch; margin-bottom: 1.25rem; }
.hero-lead { font-size: 1.13rem; color: var(--muted); max-width: 46ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-visual { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: clamp(1rem, 3vw, 2rem); }
.hero-visual svg { width: 100%; height: auto; max-height: 440px; }
.hero-visual figcaption { display: flex; justify-content: space-between; gap: 1rem; font: 500 .75rem/1.3 var(--font-mono); color: var(--muted); padding-top: .75rem; border-top: 1px dashed var(--line); }
.print-bed { fill: var(--soft); }
.layer { fill: var(--accent); }
.layer:nth-child(odd) { fill: color-mix(in srgb, var(--accent) 78%, #fff); }
.nozzle-body { fill: var(--ink); }
.reveal-rect { transform: translateY(0); }
.nozzle { transform: translateY(0); }
@media (prefers-reduced-motion: no-preference) {
  /* Impression en 3,2 s (26 couches), pause de 2 s sur le vase terminé, puis on recommence. */
  .reveal-rect { transform: translateY(364px); animation: print-up 5.2s steps(26, end) .4s infinite; }
  .nozzle { transform: translateY(364px); animation: print-up 5.2s steps(26, end) .4s infinite; }
}
@keyframes print-up {
  0% { transform: translateY(364px); }
  61.54%, 100% { transform: translateY(0); }
}

.section { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: .35rem 0 0; color: var(--muted); }

.facts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.fact h3 { margin-bottom: .35rem; }
.fact p { margin: 0; color: var(--muted); font-size: .95rem; }
.fact-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; color: var(--accent); margin-bottom: 1rem; }

/* ---------- Catégories ---------- */
.category-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.category-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.category-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.category-card .media { aspect-ratio: 16 / 9; background: var(--soft); }
.category-card .media img { width: 100%; height: 100%; object-fit: cover; }
.category-card .body { padding: 1.1rem 1.2rem 1.25rem; }
.category-card h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: .2rem; }
.category-card h3 a { color: var(--ink); text-decoration: none; }
.category-card h3 a::after { content: ""; position: absolute; inset: 0; }
.category-card { position: relative; }
.category-card .chips { position: relative; z-index: 1; }

.strata { background-image: repeating-linear-gradient(to bottom, #E4EAF3 0 6px, var(--soft) 6px 10px); }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .7rem 0 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; background: var(--soft); color: var(--ink); text-decoration: none; font-size: .82rem; font-weight: 500; border: 1px solid transparent; }
a.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--accent); color: var(--accent-ink); }

/* ---------- Cartes produit ---------- */
.product-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.product-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.product-card .media { aspect-ratio: 1; background: var(--soft); overflow: hidden; }
.product-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .media img { transform: scale(1.03); }
.product-card .body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.product-card h3 { margin: 0; font-size: 1.02rem; }
.product-card h3 a { color: var(--ink); text-decoration: none; }
.product-card h3 a::after { content: ""; position: absolute; inset: 0; }
.product-card .cats { font-size: .82rem; color: var(--muted); margin: 0; }
.product-card .foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: auto; padding-top: .5rem; }
.price { font: 500 1.05rem/1 var(--font-mono); color: var(--ink); white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: .35rem; font: 500 .72rem/1 var(--font-mono); padding: .35rem .55rem; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.badge-custom { background: color-mix(in srgb, var(--accent) 12%, #fff); color: color-mix(in srgb, var(--accent) 80%, #000); }
.badge-standard { background: var(--soft); color: var(--muted); }
.badge-out { background: var(--danger-bg); color: var(--danger); }

/* ---------- Catalogue ---------- */
.page-head { padding: 2.25rem 0 1.5rem; }
.page-head p { color: var(--muted); max-width: 65ch; }
.breadcrumb { font-size: .86rem; margin-bottom: .9rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .35rem; color: var(--line); }
.breadcrumb a { color: var(--muted); }
.catalog { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 900px) { .catalog { grid-template-columns: 270px 1fr; gap: 2rem; } }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
@media (min-width: 900px) { .filters { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; } }
.filters summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: "+"; font: 500 1.2rem/1 var(--font-mono); }
.filters details[open] summary::after { content: "–"; }
.filter-group { border-top: 1px solid var(--line); padding: 1rem 0 .25rem; margin-top: 1rem; }
.filter-group:first-of-type { border-top: 0; margin-top: .5rem; padding-top: .5rem; }
.filter-group h3 { font: 600 .74rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: .75rem; }
.filter-tree { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.filter-tree ul { list-style: none; padding: .4rem 0 0 1.7rem; margin: 0; display: grid; gap: .4rem; }
.filter-tree .check { font-size: .93rem; }
.filter-tree .count { color: var(--muted); font-family: var(--font-mono); font-size: .78rem; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.filters .actions { display: grid; gap: .5rem; margin-top: 1rem; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.results-bar .field { margin: 0; display: flex; align-items: center; gap: .5rem; }
.results-bar .field label { margin: 0; white-space: nowrap; font-weight: 500; color: var(--muted); }
.results-bar select { min-height: 40px; padding: .4rem .7rem; width: auto; }
.empty { text-align: center; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 3rem 1.5rem; }
.empty h2, .empty h3 { margin-bottom: .4rem; }
.empty p { color: var(--muted); max-width: 48ch; margin: 0 auto 1.25rem; }
.pagination { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin-top: 2rem; list-style: none; padding: 0; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 .75rem; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-family: var(--font-mono); font-size: .9rem; }
.pagination [aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Fiche produit ---------- */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-top: 1rem; }
.product-layout > * { min-width: 0; }
@media (min-width: 900px) { .product-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3rem; align-items: start; } }
.gallery-main { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: .6rem; margin-top: .75rem; flex-wrap: wrap; list-style: none; padding: 0; }
.thumbs a { display: block; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); background: var(--soft); }
.thumbs a[aria-current="true"] { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-note { font: 500 .78rem/1.4 var(--font-mono); color: var(--muted); margin-top: .6rem; }
/* La description occupe toute la largeur, sous la galerie et l’achat. */
.prose.desc-full { margin-top: 2.5rem; max-width: none; }
.product-info .price-lg { font: 500 1.75rem/1 var(--font-mono); margin: .5rem 0 1rem; }
.product-meta { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1.25rem; }
.availability { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 500; }
.availability::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.availability.out::before { background: var(--danger); }
.buy-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; margin: 1.25rem 0; box-shadow: var(--shadow); }
.buy-box h2 { font: 600 .78rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 1rem; }
.buy-actions { display: grid; gap: .6rem; margin-top: 1.25rem; }
@media (min-width: 520px) { .buy-actions { grid-template-columns: 1fr 1fr; } }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 42px; height: 42px; border: 0; background: none; font: 500 1.2rem/1 var(--font-mono); cursor: pointer; color: var(--ink); border-radius: 50%; }
.qty button:hover { background: var(--soft); }
.qty input { width: 54px; text-align: center; border: 0; font: 500 1rem var(--font-mono); min-height: 42px; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }
.qty:focus-within { border-color: var(--accent); }
.swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch label { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem .35rem .4rem; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 500; font-size: .9rem; cursor: pointer; background: #fff; margin: 0; }
.swatch input:checked + label { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
.swatch input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.dot { flex: none; }
.dot circle { stroke: rgba(23, 32, 51, .18); }
.prose { max-width: 68ch; }
.prose p { white-space: pre-line; }
.assoc { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* ---------- Panier / commande ---------- */
.two-col { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 960px) { .two-col { grid-template-columns: 1fr 370px; gap: 2rem; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 1.6rem); }
.card + .card { margin-top: 1rem; }
.card h2 { font-size: 1.2rem; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 84px 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.cart-line:first-child { padding-top: 0; }
.cart-line:last-child { border-bottom: 0; padding-bottom: 0; }
.cart-line .thumb { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--soft); }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line h3 { margin: 0 0 .25rem; font-size: 1rem; }
.cart-line h3 a { color: var(--ink); text-decoration: none; }
.cart-line .controls { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-top: .75rem; }
.cart-line .qty-form { display: flex; gap: .4rem; align-items: center; }
.cart-line .qty-form input { width: 70px; min-height: 38px; padding: .3rem .5rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: 500 .95rem var(--font-mono); text-align: center; }
.line-error { margin-top: .6rem; padding: .55rem .75rem; background: var(--danger-bg); color: var(--danger); border-radius: var(--radius-sm); font-size: .88rem; font-weight: 500; }
.perso-list { margin: .35rem 0 0; display: grid; gap: .2rem; font-size: .88rem; }
.perso-list div { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.perso-list dt { color: var(--muted); }
.perso-list dt::after { content: " :"; }
.perso-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; white-space: pre-line; }
.totals { display: grid; gap: .6rem; margin: 0 0 1.25rem; }
.totals div { display: flex; justify-content: space-between; gap: 1rem; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-family: var(--font-mono); font-weight: 500; }
.totals .grand { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .2rem; font-size: 1.15rem; }
.totals .grand dt { color: var(--ink); font-weight: 600; }
.pay-note { display: flex; gap: .75rem; align-items: flex-start; background: var(--soft); border-radius: var(--radius-sm); padding: .9rem 1rem; font-size: .92rem; margin-bottom: 1rem; }
.pay-note strong { display: block; }
.pay-note svg { flex: none; color: var(--accent); margin-top: 2px; }
.steps { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; flex-wrap: wrap; font-size: .88rem; }
.steps li { display: flex; align-items: center; gap: .45rem; color: var(--muted); }
.steps li + li::before { content: ""; width: 22px; height: 1px; background: var(--line); }
.steps .num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); font: 500 .78rem var(--font-mono); }
.steps [aria-current="step"] { color: var(--ink); font-weight: 600; }
.steps [aria-current="step"] .num { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.steps .done .num { background: var(--ink); border-color: var(--ink); color: #fff; }
.ship-options { display: grid; gap: .6rem; }
.ship-option { position: relative; }
.ship-option input { position: absolute; top: 1.15rem; left: 1rem; width: 18px; height: 18px; accent-color: var(--accent); }
.ship-option label { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1rem .9rem 2.8rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 400; margin: 0; }
.ship-option input:checked + label { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, #fff); }
.ship-option .zone { display: block; font-size: .82rem; color: var(--muted); }
.summary-items { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .9rem; }
.summary-items li { display: flex; justify-content: space-between; gap: 1rem; font-size: .93rem; }
.summary-items .name { font-weight: 600; }
.address-block { font-style: normal; line-height: 1.55; }
.success-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: grid; place-items: center; margin-bottom: 1.25rem; }
.order-number { font: 500 1.15rem var(--font-mono); background: var(--soft); padding: .35rem .7rem; border-radius: 8px; display: inline-block; }

/* ---------- Statuts et suivi ---------- */
.status { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pending { background: var(--warn-bg); color: var(--warn); }
.status-confirmed { background: #EFF6FF; color: #1D4ED8; }
.status-preparing { background: #F5F3FF; color: #6D28D9; }
.status-shipped { background: #ECFEFF; color: #0E7490; }
.status-delivered { background: var(--success-bg); color: var(--success); }
.status-cancelled { background: var(--danger-bg); color: var(--danger); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 1.1rem 1.6rem; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline time { display: block; font: 500 .78rem var(--font-mono); color: var(--muted); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font: 600 .74rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .7rem .75rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .85rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-family: var(--font-mono); white-space: nowrap; }

/* ---------- Auth / compte ---------- */
.auth-wrap { max-width: 460px; margin: 3rem auto 0; }
.auth-wrap .card { padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: var(--shadow); }
.auth-alt { text-align: center; margin-top: 1.25rem; color: var(--muted); }
.account-grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 960px) { .account-grid { grid-template-columns: 1fr 360px; } }
.order-list { list-style: none; margin: 0; padding: 0; }
.order-list li { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.order-list li:last-child { border-bottom: 0; }
.legal-text { white-space: pre-line; }
mark.todo { background: var(--warn-bg); color: var(--warn); padding: .1rem .35rem; border-radius: 4px; font-weight: 600; }
.notice-todo { background: var(--warn-bg); color: var(--warn); border: 1px solid #FDE68A; border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .92rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
.mark-accent { fill: var(--accent); }
.error-box { margin-top: 3rem; } .notice-todo { margin-top: 1.25rem; }
@media (min-width: 961px) {
  .header-inner { flex-wrap: nowrap; }
  .site-nav { margin-left: auto; }
  .brand { margin-right: 0; }
}
@media (min-width: 961px) and (max-width: 1180px) {
  .icon-link .label-text { display: none; }
  .header-search input { width: 130px; }
  .site-nav a { padding: .5rem .55rem; }
}
.perso-list dd { display: inline-flex; align-items: center; gap: .3rem; }
@media (max-width: 480px) {
  .nav-toggle-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nav-toggle { padding: 0 .5rem; }
  .icon-link { padding: .45rem .5rem; }
}

/* ---------- Vue 3D ---------- */
.view-switch { display: inline-flex; gap: .25rem; padding: .25rem; border-radius: 999px; background: var(--soft); margin-bottom: .75rem; }
.view-switch[hidden] { display: none; }
.view-switch button { border: 0; background: transparent; border-radius: 999px; padding: .5rem 1rem; font: 600 .88rem var(--font-body); color: var(--muted); cursor: pointer; }
.view-switch button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.viewer3d { position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #FFFFFF 0%, var(--soft) 70%); }
.viewer3d[hidden], .gallery-main[hidden], .thumbs[hidden] { display: none; }
.viewer3d canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.viewer3d canvas:active { cursor: grabbing; }
.viewer3d canvas:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.viewer3d-status { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 1.5rem; text-align: center;
  font: 500 .85rem/1.5 var(--font-mono); color: var(--muted); }
.viewer3d-status[hidden] { display: none; }
.viewer3d-bar { position: absolute; left: .75rem; right: .75rem; bottom: .75rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; pointer-events: none; }
.viewer3d-bar > * { pointer-events: auto; }
.viewer3d-hint { font: 500 .72rem/1.3 var(--font-mono); color: var(--muted); background: rgba(255, 255, 255, .85); padding: .3rem .55rem; border-radius: 6px; }
.viewer3d:not(.is-ready) .viewer3d-bar { display: none; }
.badge-3d { background: var(--ink); color: #fff; }
@media (max-width: 480px) { .viewer3d-hint { display: none; } .viewer3d-bar { justify-content: flex-end; } }
.site-nav a { white-space: nowrap; }
/* En-tête : le menu contient des catégories de longueur variable (définies dans l’admin). */
@media (min-width: 961px) {
  .header-search { flex: 0 1 220px; min-width: 120px; }
  .header-search input { width: 100%; min-width: 0; }
  .site-nav { min-width: 0; }
}
@media (min-width: 961px) and (max-width: 1400px) {
  .icon-link .label-text { display: none; }
  .site-nav a { padding: .5rem .55rem; }
}
@media (max-width: 480px) { .brand img { max-height: 30px; } }
/* Logo complet (icône + nom + slogan) : affiché plus haut que la ligne de menu. */
.brand img { max-height: 64px; }
@media (max-width: 480px) { .brand img { max-height: 52px; } }
/* Logo dans le pied de page */
.footer-brand { display: inline-block; margin-bottom: .75rem; }
.footer-brand img { height: 48px; max-height: none; width: auto; }

/* ---------- Plus de liens bleus soulignés : actions = boutons, données = liens sobres ---------- */
.data-link { color: var(--ink); font-weight: 600; text-decoration: none; }
.data-link:hover { color: var(--accent); }
.data-link.mono { font-weight: 500; }
.pagination a { text-decoration: none; }
.pagination a:hover { border-color: var(--ink); }
.btn-danger-outline { background: transparent; color: var(--danger); border-color: #FECACA; }
.btn-danger-outline:hover { background: var(--danger-bg); border-color: var(--danger); }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.auth-alt { display: grid; justify-items: center; gap: .6rem; }
.auth-alt p { margin: .6rem 0 0; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
/* Carte entièrement cliquable quand son titre est un lien */
.fact:has(.fact-link) { position: relative; transition: border-color .15s, box-shadow .15s, transform .15s; }
.fact:has(.fact-link):hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.fact-link { color: var(--accent); text-decoration: none; }
.fact-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.fact-link .arrow { display: inline-block; transition: transform .15s; }
.fact:hover .fact-link .arrow { transform: translateX(3px); }
.fact-link:hover, .fact:hover .fact-link { text-decoration: underline; text-underline-offset: 3px; }
.fact-link:focus-visible { outline: none; }
.fact-link:focus-visible::after { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .fact:has(.fact-link), .fact-link .arrow { transition: none; } }
.legal-admin { margin-top: 1rem; }
.cart-continue { margin-top: .6rem; }
.order-detail-btn { margin-top: .5rem; }
.back-btn { margin-bottom: 1rem; }
.notice-todo.btn-row { justify-content: space-between; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.skip-link, .thumbs a { text-decoration: none; }
.perso-price { font: 500 .8rem var(--font-mono); color: var(--muted); margin-left: .25rem; }
.prose .lang-sep { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }
.prose p[dir="auto"]:lang(ar), .prose p[dir="rtl"] { text-align: right; }
/* Derja : vraie police arabe, interligne plus grand ; les mots latins sont isolés (<bdi>) côté serveur. */
:lang(ar) { font-family: "Noto Sans Arabic", var(--font-body), sans-serif; }
.prose p.ar { font-size: 1.06em; line-height: 1.95; white-space: normal; unicode-bidi: isolate; }
.prose p.ar bdi { font-family: var(--font-body); }
/* Expressions courtes (titres, libellés) : un seul bloc, jamais coupé en morceaux inversés. */
span[lang="ar"] { font-size: 1.04em; unicode-bidi: isolate; display: inline-block; max-width: 100%; }
.legal-text h2 { font-size: 1.05rem; margin: 1.6rem 0 .5rem; }
.legal-text h2:first-child { margin-top: 0; }
.legal-text p { margin: 0 0 .6rem; }

/* ---------------------------------------------------------------- Prix barré / promotion */
.product-card .media { position: relative; }
.promo-badge { position: absolute; top: .7rem; left: .7rem; background: var(--danger); color: #fff; font: 600 .78rem/1 var(--font-mono); padding: .4rem .55rem; border-radius: 6px; letter-spacing: .02em; }
.promo-badge.static { position: static; display: inline-block; vertical-align: middle; }
.price del, .price-was del { color: var(--muted); font-weight: 400; text-decoration-thickness: 1.5px; }
.price del { font-size: .85em; margin-right: .2rem; }
.price ins { text-decoration: none; color: var(--danger); }
.product-card .price { white-space: normal; }
.price-was { margin: .5rem 0 -.35rem; font: 500 1.05rem/1.2 var(--font-mono); display: flex; align-items: center; gap: .6rem; }

/* ---------------------------------------------------------------- Aperçu en direct de la personnalisation */
.gallery-main { position: relative; }
.preview-text {
  position: absolute; left: var(--px, 50%); top: var(--py, 50%); transform: translate(-50%, -50%);
  max-width: 92%; text-align: center; white-space: pre-line; overflow-wrap: anywhere; pointer-events: none;
  font: 700 calc(var(--pw, 400px) * var(--ps, 10) / 100)/1.05 var(--font-display, inherit);
  color: #172033; text-shadow: 0 1px 2px rgba(255,255,255,.65), 0 2px 10px rgba(0,0,0,.25);
}
.preview-text[hidden] { display: none; }
.preview-note { margin-top: .5rem; }

/* ---------------------------------------------------------------- Galerie : flèches, compteur, balayage */
.gallery-main { touch-action: pan-y; }
.gallery-main img[data-gallery-main] { transition: transform .26s cubic-bezier(.2,.7,.2,1), opacity .2s ease; will-change: transform; }
.gallery-main img.is-dragging { transition: none; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,.88); color: var(--text); font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(23,32,51,.12);
  opacity: 0; transition: opacity .2s ease;
}
.gallery-nav span { margin-top: -3px; }
.gallery-prev { left: .6rem; }
.gallery-next { right: .6rem; }
.gallery-main:hover .gallery-nav, .gallery-nav:focus-visible { opacity: 1; }
.gallery-count {
  position: absolute; right: .6rem; bottom: .6rem; z-index: 2; margin: 0;
  padding: .2rem .6rem; border-radius: 999px; background: rgba(23,32,51,.7); color: #fff;
  font: 500 .8rem/1.4 var(--font-mono, inherit); pointer-events: none;
}
@media (hover: none) {
  .gallery-nav { opacity: 1; width: 34px; height: 34px; font-size: 1.35rem; }
}
@media (max-width: 720px) {
  .thumbs { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .2rem; }
  .thumbs::-webkit-scrollbar { display: none; }
  .thumbs li { flex: 0 0 auto; scroll-snap-align: center; }
  .thumbs a { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-main img[data-gallery-main], .gallery-nav { transition: none; }
}

/* ---------------------------------------------------------------- WhatsApp */
.btn-whatsapp { background: #15803D; color: #fff; border-color: #15803D; }
.btn-whatsapp:hover { background: #116632; border-color: #116632; color: #fff; }
.btn-whatsapp .wa-icon { flex: none; }
.buy-box .btn-whatsapp { width: 100%; justify-content: center; margin-top: .9rem; }
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: .5rem;
  background: #15803D; color: #fff; border-radius: 999px; padding: .8rem 1.05rem; font-weight: 600; text-decoration: none;
  box-shadow: 0 8px 24px rgba(23, 32, 51, .22); transition: transform .2s, background .2s;
}
.wa-float:hover { background: #116632; color: #fff; transform: translateY(-2px); }
.wa-float:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wa-float .wa-icon { width: 24px; height: 24px; }
@media (max-width: 640px) { .wa-float { padding: .85rem; } .wa-float-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } }

/* ---------------------------------------------------------------- Devis sur mesure */
.quote-layout { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 960px) { .quote-layout { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
.quote-aside { display: grid; gap: 1.5rem; }
.quote-contact { border: 0; padding: 0; margin: 1.2rem 0 0; }
.quote-contact legend { font-weight: 600; margin-bottom: .6rem; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.steps-list { margin: 0; padding-left: 1.2rem; display: grid; gap: .7rem; }
.steps-list li::marker { color: var(--accent); font-weight: 700; }
.file-drop input[type=file] { width: 100%; padding: .9rem; border: 1.5px dashed var(--line); border-radius: var(--radius-sm); background: var(--soft); }

/* ---------------------------------------------------------------- Aperçu « plaque tunisienne » */
.plate-preview { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem 1.1rem; margin: .4rem 0 1.2rem; }
.plate-preview .hint { color: var(--muted); }
.plate-head { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin: 0 0 .9rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.plate-head .hint { margin: 0; text-transform: none; letter-spacing: 0; font-size: .82rem; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #EF4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); animation: live-pulse 1.8s infinite; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.plate {
  direction: ltr; display: flex; align-items: center; justify-content: center; gap: clamp(.6rem, 4vw, 1.4rem);
  background: #0B0B0C; border: 3px solid #fff; border-radius: 10px; padding: .45rem 1rem; margin: 0 auto; max-width: 460px;
  font: 800 clamp(2rem, 9vw, 3.4rem)/1.1 "Arial Black", Arial, "Helvetica Neue", sans-serif; color: #fff; letter-spacing: .02em;
  box-shadow: inset 0 0 0 2px #0B0B0C, 0 6px 18px rgba(0, 0, 0, .35); font-variant-numeric: tabular-nums;
}
.plate .is-empty { opacity: .35; }
.plate-tn { font: 400 clamp(1.4rem, 6vw, 2.3rem)/1 "Segoe UI", Tahoma, Arial, sans-serif; }
.plate-caption { text-align: center; margin: .7rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.plate-caption[hidden] { display: none; }
.plate-inputs { border: 0; padding: 0; margin-left: 0; margin-right: 0; min-width: 0; }
.plate-inputs legend { font-weight: 600; margin-bottom: .45rem; padding: 0; }
.plate-inputs input { font: 600 1.15rem/1 var(--font-mono); letter-spacing: .12em; text-align: center; }
.plate-inputs .grid-2 { grid-template-columns: 1fr 1fr; }

/* ---------------------------------------------------------------- Code promo */
.coupon-form { border-top: 1px dashed var(--line); margin: 1rem 0; padding-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.coupon-form label { width: 100%; font-weight: 600; margin: 0; }
.coupon-row { display: flex; gap: .5rem; width: 100%; }
.coupon-row input { flex: 1; min-width: 0; text-transform: uppercase; font-family: var(--font-mono); }
.coupon-applied { margin: 0; flex: 1; color: var(--success); }
.totals .discount dd { color: var(--success); }

/* ---------------------------------------------------------------- Packs, avis, produits similaires */
.badge-pack { background: #FEF3C7; color: #92400E; }
.bundle-box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin: 1rem 0; background: var(--soft); }
.bundle-box h2 { font-size: 1rem; margin-bottom: .5rem; }
.pack-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .55rem; }
.pack-items.is-compact { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: .4rem; }
.pack-items.is-compact .pack-item { padding: .25rem; gap: .2rem; font-size: .72rem; }
.pack-items.is-compact .pack-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pack-more { margin-top: .45rem; }
.pack-more summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .9rem; padding: .2rem 0; }
.pack-more[open] summary { margin-bottom: .45rem; }
.pack-item { position: relative; display: flex; flex-direction: column; gap: .3rem; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .35rem; color: var(--ink); text-decoration: none; font-size: .8rem; line-height: 1.3; transition: border-color .15s; }
a.pack-item:hover, a.pack-item:focus-visible { border-color: var(--accent); }
a.pack-item:hover .pack-name { color: var(--accent); }
.pack-item img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--radius-sm) - 2px); background: var(--soft); }
.pack-qty { position: absolute; top: .8rem; left: .8rem; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; }
.bundle-saving { margin: .7rem 0 0; }
.bundle-saving strong { color: var(--success); }
.rating-summary { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); text-decoration: none; margin: -.2rem 0 .4rem; font-size: .92rem; }
.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.stars svg.on { fill: #D97706; }
.stars svg.off { fill: var(--line); }
.reviews, .related { margin-top: clamp(2.5rem, 6vw, 4rem); }
.review-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .9rem; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; }
.review p { margin: .6rem 0 0; }
.review-forms { margin-top: 1.5rem; }
.review-form { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.review-form h3 { font-size: 1rem; }
/* Étoiles cliquables : ordre inversé pour colorer l’étoile choisie et celles d’avant, au clavier comme à la souris. */
.rating-input { border: 0; padding: 0; margin: 0 0 .6rem; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .15rem; flex-wrap: wrap; }
.rating-input legend { width: 100%; font-weight: 600; margin-bottom: .3rem; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { cursor: pointer; margin: 0; line-height: 0; }
.rating-input svg { fill: var(--line); transition: fill .15s; }
.rating-input input:checked ~ label svg, .rating-input label:hover svg, .rating-input label:hover ~ label svg { fill: #D97706; }
.rating-input input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.rating-input .field-error { order: -1; width: 100%; }
.code-input { font-size: 1.5rem; letter-spacing: .25em; text-align: center; }

/* ================================================================ Boutique compacte (style « une ligne », mobile d’abord) */
/* Éléments masqués sur mobile uniquement (accroche, illustration, encadrés d’information…). */
@media (max-width: 720px) {
  .hide-mobile { display: none !important; }
  .hero { padding: 1.4rem 0 .6rem; }
  .hero h1 { font-size: 2rem; margin-bottom: 1rem; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .section { padding: 1.4rem 0; }
  .section-head { margin-bottom: .8rem; }
  .section-head h2 { font-size: 1.25rem; }
}
.section-tight { padding-bottom: .5rem; }

/* Rangée de catégories : petites cartes sur une seule ligne, défilement horizontal. */
.cat-strip { margin: 0 calc(-1 * var(--gutter, 16px)) 1.2rem; }
.cat-track {
  list-style: none; margin: 0; padding: .2rem var(--gutter, 16px) .6rem; display: flex; gap: .7rem;
  overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter, 16px); -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.cat-track > li { flex: none; scroll-snap-align: start; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: .3rem; width: 108px; text-decoration: none; color: var(--ink); }
.cat-thumb {
  display: grid; place-items: center; width: 100%; aspect-ratio: 5 / 6; border-radius: 14px; overflow: hidden;
  background: var(--soft); border: 1px solid var(--line); color: var(--muted); transition: transform .2s, box-shadow .2s;
}
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-name { font: 600 .7rem/1.25 var(--font-body, inherit); text-transform: uppercase; letter-spacing: .05em; text-align: center; max-width: 100%; overflow-wrap: anywhere; }
.cat-count { font-size: .68rem; color: var(--muted); margin-top: -.15rem; }
.cat-tile:hover .cat-thumb { transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-tile:focus-visible { outline: none; }
.cat-tile:focus-visible .cat-thumb { outline: 3px solid var(--accent); outline-offset: 2px; }
.cat-tile.is-active .cat-thumb { border: 2px solid var(--accent); }
.cat-tile.is-active .cat-name { color: var(--accent); }
@media (min-width: 720px) { .cat-tile { width: 140px; } .cat-name { font-size: .74rem; } }
@media (min-width: 1100px) { .cat-strip { margin-inline: 0; } .cat-track { padding-inline: 0; } }
@media (prefers-reduced-motion: reduce) { .cat-thumb { transition: none; } }

/* Produits : petites cartes, 2 par ligne sur mobile, plus nombreuses sur ordinateur. */
.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; } }
.product-card .body { padding: .65rem .7rem .8rem; gap: .2rem; }
.product-card h3 { font-size: .9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .cats { font-size: .72rem; }
.product-card .foot { flex-direction: column; align-items: flex-start; gap: .3rem; padding-top: .35rem; }
.product-card .price { font-size: .95rem; }
.product-card .badge { font-size: .6rem; padding: .25rem .4rem; }
.promo-badge { top: .45rem; left: .45rem; font-size: .7rem; padding: .3rem .45rem; }
@media (min-width: 640px) {
  .product-card .body { padding: .8rem .9rem 1rem; }
  .product-card h3 { font-size: .95rem; }
  .product-card .foot { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
}

/* Produits recommandés (sélection, « Vous aimerez aussi ») : une seule rangée qui défile. */
.product-grid.product-row {
  display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 44%;
  overflow-x: auto; scroll-snap-type: x proximity; margin: 0 calc(-1 * var(--gutter, 16px)); padding: .2rem var(--gutter, 16px) .7rem;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.product-row > * { scroll-snap-align: start; }
@media (min-width: 640px) { .product-grid.product-row { grid-auto-columns: 210px; } }
@media (min-width: 1100px) { .product-grid.product-row { margin-inline: 0; padding-inline: 0; } }

/* ---------------------------------------------------------------- Couverture de l’accueil */
.cover { padding: 1rem 0 .5rem; }
.cover-link { display: block; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.cover-link img { display: block; width: 100%; height: auto; }
.cover-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.cover-actions { margin-top: 1rem; }
@media (min-width: 720px) { .cover { padding-top: 1.5rem; } .cover-link { border-radius: 24px; } }
@media (max-width: 720px) { .cover-link { border-radius: 16px; } .cover-actions .btn { flex: 1 1 auto; justify-content: center; } }

/* ---------------------------------------------------------------- Écran de chargement (connexion lente) */
.page-loader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: color-mix(in srgb, var(--bg, #F8F9FC) 86%, transparent); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s, visibility .25s;
}
/* Premier chargement : n’apparaît qu’après 0,4 s (jamais avec une bonne connexion) ; filet de sécurité : disparaît
   seul après 20 s si le script ne s’est pas exécuté. */
.page-loader.is-initial { animation: loader-in .25s .4s forwards, loader-out .3s 20s forwards; }
.page-loader.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
@keyframes loader-in { to { opacity: 1; visibility: visible; } }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }
.loader-box { display: grid; justify-items: center; gap: .6rem; padding: 1.6rem 2rem; text-align: center; max-width: 300px; }
.loader-text { margin: 0; font-weight: 600; color: var(--ink); }
.loader-slow { margin: 0; font-size: .88rem; color: var(--muted); display: none; }
.page-loader.is-slow .loader-slow { display: block; }
.loader-bed { fill: var(--ink); opacity: .85; }
.loader-nozzle { fill: var(--ink); animation: loader-nozzle 2.4s ease-in-out infinite; }
.loader-layer { fill: var(--accent); opacity: 0; animation: loader-layer 2.4s infinite; }
.loader-layer.l2 { animation-delay: .3s; fill: color-mix(in srgb, var(--accent) 78%, #fff); }
.loader-layer.l3 { animation-delay: .6s; }
.loader-layer.l4 { animation-delay: .9s; fill: color-mix(in srgb, var(--accent) 78%, #fff); }
.loader-layer.l5 { animation-delay: 1.2s; }
@keyframes loader-layer { 0%, 8% { opacity: 0; transform: translateX(-4px); } 14%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }
@keyframes loader-nozzle { 0%, 100% { transform: translate(-10px, 46px); } 50% { transform: translate(10px, 14px); } }
@media (prefers-reduced-motion: reduce) {
  .loader-layer { animation: none; opacity: 1; }
  .loader-nozzle { animation: none; transform: translateY(14px); }
}
/* Bouton en cours d’envoi (ex. « Ajouter au panier ») */
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 1.1em; height: 1.1em; border-radius: 50%;
  border: 2px solid currentColor; border-color: var(--accent) transparent var(--accent) transparent; animation: btn-spin .8s linear infinite;
}
.btn-primary.is-loading::after { border-color: #fff transparent #fff transparent; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.is-loading::after { animation-duration: 2s; } }

/* ---------------------------------------------------------------- Page d’erreur autonome (500 / 503) */
.fatal-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 1.5rem 16px; background: var(--bg, #F8F9FC); }
.fatal-box {
  width: 100%; max-width: 520px; text-align: center; background: var(--card, #fff); border: 1px solid var(--line, #E2E8F0);
  border-radius: 24px; padding: 2.2rem 1.5rem; box-shadow: 0 10px 30px rgba(23, 32, 51, .06);
}
.fatal-logo { width: 190px; height: auto; margin: 0 auto 1.4rem; display: block; }
.fatal-box h1 { font-size: clamp(1.45rem, 5vw, 1.9rem); margin: 0 0 .5rem; }
.fatal-box p { color: var(--muted, #64748B); margin: 0 0 1rem; }
.fatal-box .btn-row { justify-content: center; }
.fatal-status { font-size: .9rem; }
.fatal-spinner { display: flex; justify-content: center; gap: .45rem; margin: 0 0 1.3rem; }
.fatal-spinner span { width: 11px; height: 11px; border-radius: 50%; background: var(--accent, #2463EB); animation: fatal-bounce 1.1s ease-in-out infinite; }
.fatal-spinner span:nth-child(2) { animation-delay: .15s; }
.fatal-spinner span:nth-child(3) { animation-delay: .3s; }
@keyframes fatal-bounce { 0%, 80%, 100% { transform: scale(.55); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fatal-spinner span { animation: none; opacity: .8; } }

/* Livraison offerte : progression dans le panier et à la commande */
.free-ship { margin: 1rem 0; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--accent) 6%, #fff); font-size: .92rem; }
.free-ship p { margin: 0 0 .5rem; }
.free-ship progress { display: block; width: 100%; height: 8px; border: 0; border-radius: 99px; overflow: hidden; background: var(--line); appearance: none; }
.free-ship progress::-webkit-progress-bar { background: var(--line); border-radius: 99px; }
.free-ship progress::-webkit-progress-value { background: var(--accent); border-radius: 99px; }
.free-ship progress::-moz-progress-bar { background: var(--accent); border-radius: 99px; }
.free-ship.is-reached { border-color: color-mix(in srgb, var(--success, #16a34a) 45%, transparent); background: color-mix(in srgb, var(--success, #16a34a) 8%, #fff); }
.free-ship.is-reached progress::-webkit-progress-value { background: var(--success, #16a34a); }
.free-ship.is-reached progress::-moz-progress-bar { background: var(--success, #16a34a); }
.account-offer { margin-bottom: 1.5rem; border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
/* Pack : article offert au choix */
.bundle-gift { margin: .6rem 0 0; color: var(--success); }
.gift-choice legend { font-weight: 700; padding: 0; margin-bottom: .6rem; float: left; width: 100%; }
.gift-cards { clear: both; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .6rem; }
.gift-choice .gift-card { position: relative; display: flex; flex-direction: column; gap: .3rem; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius-sm); padding: .4rem; cursor: pointer; font-size: .86rem; line-height: 1.3; transition: border-color .15s, box-shadow .15s; }
.gift-card:hover { border-color: color-mix(in srgb, var(--success) 60%, var(--line)); }
.gift-card:has(input:checked) { border-color: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 20%, transparent); }
.gift-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.gift-card input { position: absolute; top: .7rem; left: .7rem; width: 1.15rem; height: 1.15rem; accent-color: var(--success); margin: 0; }
.gift-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--radius-sm) - 3px); background: var(--soft); }
.gift-name { display: block; font-weight: 600; }
.gift-value { display: block; color: var(--muted); font-size: .8rem; }
.gift-choice { padding: .8rem 1rem; border: 1.5px dashed color-mix(in srgb, var(--success) 55%, transparent); border-radius: var(--radius-sm); background: var(--success-bg); }
/* Offres par quantité (fiche produit) */
.offers { border: 0; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .6rem; }
.offers legend { font-weight: 600; margin-bottom: .5rem; }
.offer { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .75rem; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.offer:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.offer.is-selected { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.offer input { width: 18px; height: 18px; accent-color: var(--accent); }
.offer-main { display: grid; line-height: 1.25; }
.offer-main .muted { font-size: .84rem; }
.offer-badge { background: var(--success); color: #fff; font-weight: 700; font-size: .82rem; padding: .25rem .55rem; border-radius: 6px; }
.offer-price { display: grid; text-align: right; line-height: 1.2; }
.offer-price strong { color: var(--ink); }
.offer-price del { color: var(--muted); font-size: .84rem; }
.unit-fields { border-top: 1px dashed var(--line); padding-top: .9rem; margin-top: .4rem; }
.unit-title { font-weight: 700; margin: 0 0 .6rem; }
.rich-select { position: relative; }
.rs-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.rs-trigger { display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 48px; padding: .3rem .7rem .3rem .35rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.rs-trigger:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.rs-trigger[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.rs-trigger img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; background: var(--soft); flex: none; }
.rs-trigger img[hidden] { display: none; }
.rs-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: .3rem; }
.rs-trigger svg { flex: none; color: var(--muted); }
.rs-panel { position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; right: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 12px 30px rgba(23, 32, 51, .14); padding: .45rem; }
.rs-search { width: 100%; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; margin-bottom: .4rem; }
.rs-list { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.rs-list li { display: flex; align-items: center; gap: .65rem; padding: .35rem .45rem; border-radius: 8px; cursor: pointer; line-height: 1.3; }
.rs-list li[hidden] { display: none; }
.rs-list li.is-active { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.rs-list li[aria-selected="true"] { font-weight: 600; }
.rs-list img, .rs-none { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; background: var(--soft); flex: none; }
.rs-empty { margin: .4rem; color: var(--muted); font-size: .9rem; }
.picks { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.picks legend { font-weight: 700; font-size: 1.05rem; margin-bottom: .3rem; }
.pick-slot { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); padding: .75rem .85rem; margin-top: .7rem; }
.pick-head { display: flex; gap: .75rem; align-items: flex-start; }
.pick-head img { width: 64px; height: 64px; object-fit: cover; border-radius: calc(var(--radius-sm) - 2px); background: var(--soft); flex: none; }
.pick-head .field { flex: 1; min-width: 0; margin-bottom: 0; }
.pick-head select { width: 100%; }
.pick-slot .unit-fields { margin-top: .7rem; }
.pick-title { font-size: 1rem; margin: 1rem 0 .5rem; }
@media (max-width: 420px) { .offer { grid-template-columns: auto 1fr auto; } .offer-badge { grid-column: 2; justify-self: start; } .offer-price { grid-column: 3; grid-row: 1 / span 2; } }

.infinite-status { text-align: center; padding: 1.2rem 0; margin: 0; }

/* Carte produit : couleurs proposées (à la place du badge « Personnalisable » pour un simple choix de couleur). */
.swatch-dots { display: inline-flex; align-items: center; gap: 3px; }
.swatch-dots svg { display: block; }
.swatch-dots b { font-size: .72rem; font-weight: 600; color: var(--muted); margin-left: 2px; }

/* Interface en arabe (écriture de droite à gauche) */
.lang-switch .label-text { display: inline !important; font-weight: 600; }
html[dir="rtl"] body { font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Noto Sans Arabic", Arial, sans-serif; }
html[dir="rtl"] .prose, html[dir="rtl"] .field label, html[dir="rtl"] .hint { text-align: right; }
html[dir="rtl"] input[type="email"], html[dir="rtl"] input[type="tel"], html[dir="rtl"] input[type="url"],
html[dir="rtl"] input[type="number"], html[dir="rtl"] input[type="password"] { direction: ltr; text-align: right; }
html[dir="rtl"] .price, html[dir="rtl"] .mono { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .cart-count { margin-inline-start: .25rem; }
html[dir="rtl"] select { background-position: left .75rem center; padding-left: 2rem; padding-right: .75rem; }
/* Galerie : flèches, compteur et photos gardent leur sens même en arabe (les chevrons ‹ › sont inversés par l’écriture RTL) */
html[dir="rtl"] .gallery-main { direction: ltr; }

/* Liens vers les pages des catégories, au-dessus des filtres */
.browse-cats { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.browse-cats h2 { font-size: 1rem; margin: 0 0 .6rem; }
.browse-cats ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.browse-cats ul ul { padding-left: 1rem; margin: .1rem 0 .3rem; border-left: 2px solid var(--line); }
.browse-cats a { display: block; padding: .3rem .4rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .93rem; }
.browse-cats > ul > li > a { font-weight: 600; }
.browse-cats a:hover { background: var(--soft); color: var(--accent); }
.browse-cats a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.browse-cats .count { color: var(--muted); font-family: var(--font-mono); font-size: .78rem; font-weight: 400; }
html[dir="rtl"] .browse-cats ul ul { padding-left: 0; padding-right: 1rem; border-left: 0; border-right: 2px solid var(--line); }

.auth-forgot { text-align: center; margin: 1rem 0 0; }

/* Bande d’annonce défilante (tout en haut du site ; couleurs et distance réglées dans Paramètres › Apparence) */
.announce { --bar-bg: #172033; --bar-fg: #fff; --bar-gap: 80px; background: var(--bar-bg); color: var(--bar-fg); overflow: hidden; font-size: .92rem; line-height: 1.2; }
.announce-track { display: flex; width: max-content; direction: ltr; padding: .55rem 0; animation: announce-scroll var(--bar-duration, 40s) linear infinite; will-change: transform; }
.announce-group { display: flex; flex: none; }
.announce-item { flex: none; margin-right: var(--bar-gap); color: inherit; white-space: nowrap; font-weight: 600; letter-spacing: .01em; text-decoration: none; unicode-bidi: plaintext; }
a.announce-item { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a.announce-item:hover { text-decoration-thickness: 2px; }
a.announce-item:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 3px; }
.announce:hover .announce-track, .announce:focus-within .announce-track { animation-play-state: paused; }
@keyframes announce-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .announce-track { animation: none; width: auto; justify-content: center; padding: .6rem 1rem; }
  .announce-group[aria-hidden="true"], .announce-item:nth-child(n+2) { display: none; }
  .announce-item { white-space: normal; margin: 0; text-align: center; }
}
.offer-summary { margin: .6rem 0 0; padding: .55rem .8rem; background: color-mix(in srgb, var(--accent) 8%, #fff); border: 1px solid color-mix(in srgb, var(--accent) 25%, #fff); border-radius: 10px; font-weight: 600; font-size: .92rem; }
.lot-qty { font-size: .9rem; }
