/* AchatVentes224 — boutique publique
   Principes : zéro police téléchargée, mobile d'abord, léger pour la 3G.
   Signature : le bandeau rouge · jaune · vert et le bouton WhatsApp. */

:root {
  --navy: #0E2A47;
  --navy-2: #163C63;
  --red: #CE1126;
  --yellow: #FCD116;
  --green: #009460;
  --wa: #128C4B;          /* vert WhatsApp assombri : texte blanc lisible */
  --wa-hover: #0E7540;
  --ink: #1A2433;
  --muted: #5B6778;
  --line: #E3E8EE;
  --bg: #F4F6F8;
  --surface: #FFFFFF;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-img: 10px;
  --r-box: 14px;
  --wrap: 1200px;
  --gap: 16px;
  --bottom-nav: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5;
  color: var(--ink); background: var(--bg);
  padding-bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom, 0px));
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- En-tête ---------- */
.site-header { background: var(--surface); position: sticky; top: 0; z-index: 40; }
.site-header__bar { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.site-header__logo img { height: 40px; width: auto; }
.site-header__search { flex: 1; display: none; }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tricolor { height: 4px; background: linear-gradient(90deg, var(--red) 0 33.33%, var(--yellow) 33.33% 66.66%, var(--green) 66.66% 100%); }

.site-nav { display: none; border-top: 1px solid var(--line); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a { display: block; padding: 10px 12px; font-weight: 600; font-size: 15px; color: var(--navy); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--green); }

.searchbox { display: flex; background: var(--surface); border: 2px solid var(--navy); border-radius: 999px; overflow: hidden; }
.searchbox input {
  flex: 1; min-width: 0; border: 0; padding: 12px 18px; font: inherit; font-size: 16px; background: transparent; color: var(--ink);
}
.searchbox input:focus { outline: none; }
.searchbox:focus-within { box-shadow: 0 0 0 3px rgba(252, 209, 22, .6); }
.searchbox button { border: 0; background: var(--navy); color: #fff; font: inherit; font-weight: 700; padding: 0 20px; cursor: pointer; }
.mobile-search { padding: 0 0 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none !important; white-space: nowrap;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-2); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--yellow { background: var(--yellow); color: var(--navy); }
.btn--wa { background: var(--wa); color: #fff; width: 100%; }
.btn--wa:hover { background: var(--wa-hover); }
.btn--wa svg { width: 20px; height: 20px; flex: none; }
.btn--sm { min-height: 38px; padding: 6px 12px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #fff; padding: 28px 0 32px; }
.hero h1 { font-size: clamp(32px, 7vw, 56px); font-weight: 800; letter-spacing: -0.03em; }
.hero p { color: #C9D3DE; margin-top: 8px; max-width: 46ch; font-size: 17px; }
.hero .searchbox { margin-top: 20px; border-color: var(--yellow); max-width: 720px; }
.hero .searchbox button { background: var(--yellow); color: var(--navy); }
.hero__quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero__quick a { color: #fff; font-size: 14px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; }
.hero__quick a:hover { background: rgba(255,255,255,.1); text-decoration: none; }

/* ---------- Sections ---------- */
.section { padding: 28px 0 8px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section__head h2 { font-size: 22px; font-weight: 800; color: var(--navy); }
.section__head a { font-weight: 600; color: var(--green); font-size: 15px; white-space: nowrap; }

/* Rangées : défilement horizontal sur mobile, grille sur grand écran */
.row-scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
  margin: 0 calc(var(--gap) * -1); padding-left: var(--gap); padding-right: var(--gap); scrollbar-width: none;
}
.row-scroll::-webkit-scrollbar { display: none; }
.row-scroll > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

/* ---------- Catégories ---------- */
.cats { grid-auto-columns: 30%; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 14px 8px; background: var(--surface); border-radius: var(--r-box); font-weight: 600; font-size: 14px; color: var(--navy); }
.cat:hover { text-decoration: none; outline: 2px solid var(--line); }
.cat__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--bg); overflow: hidden; }
.cat__icon img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Carte produit ---------- */
.pcard { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-box); overflow: hidden; }
.pcard__media { position: relative; aspect-ratio: 1; background: #EEF1F4; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; }
.pcard__body { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 12px; flex: 1; }
.pcard__title { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.pcard__store { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__price { margin-top: auto; padding-top: 4px; }
.pcard .btn--wa { margin-top: 8px; min-height: 38px; font-size: 13px; padding: 6px 10px; }
.price { font-weight: 800; color: var(--navy); font-size: 16px; }
.price-old { color: var(--muted); font-size: 13px; text-decoration: line-through; margin-left: 4px; }
.tag { position: absolute; top: 8px; left: 8px; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
.tag--promo { background: var(--red); color: #fff; }
.tag--out { background: var(--ink); color: #fff; left: auto; right: 8px; }

/* ---------- Carte boutique ---------- */
.scard { display: flex; gap: 12px; align-items: center; background: var(--surface); border-radius: var(--r-box); padding: 12px; }
.scard:hover { text-decoration: none; outline: 2px solid var(--line); }
.scard__logo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; background: var(--bg); border: 1px solid var(--line); }
.scard__name { font-weight: 700; color: var(--navy); }
.scard__meta { font-size: 13px; color: var(--muted); }
.avatar-fallback { width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--navy); color: var(--yellow); font-weight: 800; font-size: 22px; }

/* ---------- Bloc « Créez votre boutique » ---------- */
.cta-sell { margin: 32px 0 8px; background: var(--surface); border-radius: var(--r-box); padding: 24px; border-left: 6px solid var(--green); }
.cta-sell h2 { font-size: 24px; font-weight: 800; color: var(--navy); }
.cta-sell ol { margin: 14px 0 18px; padding-left: 20px; color: var(--ink); }
.cta-sell li { margin: 4px 0; }

/* ---------- Pages liste ---------- */
.page-head { padding: 20px 0 8px; }
.page-head h1 { font-size: 26px; font-weight: 800; color: var(--navy); }
.page-head p { color: var(--muted); margin-top: 4px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 16px; }
.filters select, .filters input {
  font: inherit; font-size: 15px; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
}
.filters input { width: 120px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.chips a { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.chips a[aria-current="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.empty { background: var(--surface); border-radius: var(--r-box); padding: 32px 20px; text-align: center; }
.empty p { color: var(--muted); margin: 6px 0 16px; }

.pagination { display: flex; justify-content: center; gap: 6px; margin: 24px 0; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; min-height: 42px; display: grid; place-items: center; padding: 0 12px; border-radius: 10px; background: var(--surface); font-weight: 600; }
.pagination .is-current { background: var(--navy); color: #fff; }
.pagination .is-disabled { opacity: .4; }

/* ---------- Page boutique ---------- */
.store-hero { background: var(--surface); }
.store-hero__banner { aspect-ratio: 3 / 1; max-height: 280px; width: 100%; object-fit: cover; background: var(--navy); }
.store-hero__banner--empty { background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.store-hero__info { display: flex; gap: 14px; align-items: flex-end; margin-top: -36px; padding-bottom: 16px; }
.store-hero__logo { width: 88px; height: 88px; border-radius: 50%; border: 4px solid var(--surface); object-fit: cover; background: var(--surface); flex: none; }
.store-hero__info .avatar-fallback { width: 88px; height: 88px; border: 4px solid var(--surface); font-size: 34px; }
.store-hero h1 { font-size: 24px; font-weight: 800; color: var(--navy); }
.store-hero__meta { color: var(--muted); font-size: 14px; }
.store-layout { display: grid; gap: 16px; padding: 16px 0; }
.infobox { background: var(--surface); border-radius: var(--r-box); padding: 16px; }
.infobox h2 { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.infobox dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; }
.infobox dt { color: var(--muted); }
.infobox dd { margin: 0; }
.infobox + .infobox { margin-top: 12px; }
.prose { font-size: 15px; color: var(--ink); white-space: pre-line; }

/* ---------- Fiche produit ---------- */
.product { display: grid; gap: 20px; padding: 12px 0 24px; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r-box); background: #EEF1F4; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { scroll-snap-align: center; aspect-ratio: 1; width: 100%; object-fit: contain; background: #fff; }
.gallery-count { font-size: 13px; color: var(--muted); margin-top: 6px; }
.product__info h1 { font-size: 24px; font-weight: 800; color: var(--navy); }
.product__store { display: inline-block; margin-top: 4px; color: var(--green); font-weight: 600; }
.product__price { margin: 14px 0 4px; }
.product__price .price { font-size: 28px; }
.stock { font-size: 14px; font-weight: 600; }
.stock--ok { color: var(--green); }
.stock--low { color: #A15C00; }
.stock--out { color: var(--red); }
.order-box { background: var(--surface); border-radius: var(--r-box); padding: 16px; margin-top: 16px; display: grid; gap: 12px; }
.order-box label { font-weight: 700; font-size: 14px; display: block; margin-bottom: 4px; }
.order-box select, .order-box input { width: 100%; font: inherit; min-height: 46px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.qty { display: flex; align-items: stretch; width: 140px; }
.qty button { width: 44px; border: 1px solid var(--line); background: var(--bg); font-size: 20px; cursor: pointer; }
.qty button:first-child { border-radius: 10px 0 0 10px; }
.qty button:last-child { border-radius: 0 10px 10px 0; }
.qty input { text-align: center; border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.alert { padding: 12px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.alert--error { background: #FDECEE; color: #8E0B1A; }
.alert--info { background: #FFF8D6; color: #5C4A00; }
.note { font-size: 13px; color: var(--muted); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: #C9D3DE; margin-top: 40px; padding: 32px 0 24px; font-size: 14px; }
.site-footer img { height: 40px; width: auto; }
.site-footer__cols { display: grid; gap: 24px; margin-top: 20px; }
.site-footer h3 { color: #fff; font-size: 15px; margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a:hover { color: #fff; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 24px; padding-top: 16px; }

/* ---------- Barre de navigation mobile ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: calc(var(--bottom-nav) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--surface); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); }
.bottom-nav a:hover { text-decoration: none; }
.bottom-nav svg { width: 24px; height: 24px; }
.bottom-nav a[aria-current="page"] { color: var(--navy); }
.bottom-nav a[aria-current="page"] svg { stroke: var(--green); }

/* ---------- Tablette et plus ---------- */
@media (min-width: 640px) {
  .row-scroll { grid-auto-columns: 30%; }
  .cats { grid-auto-columns: 16%; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .site-footer__cols { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .bottom-nav, .mobile-search { display: none; }
  .site-header__search { display: block; max-width: 560px; }
  .site-nav { display: block; }
  .row-scroll { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; margin: 0; padding: 0; }
  .row-scroll.cats { grid-template-columns: repeat(6, 1fr); }
  .row-scroll > :nth-child(n+13) { display: none; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .grid--stores { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 48px 0 52px; }
  .store-layout { grid-template-columns: 1fr 300px; align-items: start; }
  .store-layout aside { position: sticky; top: 130px; }
  .product { grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 24px; }
  .page-head h1 { font-size: 32px; }
}
@media (min-width: 1200px) {
  .grid--products-lg { grid-template-columns: repeat(5, 1fr); }
}
/* =========================================================
   Étape 4 : panier, commande, comptes
   ========================================================= */
.hide-mobile { display: none; }
.cart-link { position: relative; display: grid; place-items: center; width: 44px; height: 44px; color: var(--navy); border-radius: 50%; }
.cart-link:hover { background: var(--bg); }
.cart-link svg { width: 26px; height: 26px; }
.badge {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center;
}
.bottom-nav a.has-badge { position: relative; }
.bottom-nav .badge { top: 4px; right: calc(50% - 22px); }

.pcard__actions { display: flex; gap: 6px; margin-top: 8px; }
.pcard__actions form { flex: none; }
.pcard__actions .btn--wa { margin-top: 0; flex: 1; min-width: 0; }
.btn--cart { width: 40px; min-height: 38px; padding: 0; border-radius: 999px; background: var(--bg); color: var(--navy); border: 2px solid var(--navy); }
.btn--cart:hover { background: var(--navy); color: #fff; }
.btn--cart svg { width: 18px; height: 18px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.alert--success { background: #E3F5EC; color: #06512F; }

/* Panier et commande : colonne principale + récapitulatif */
.checkout { display: grid; gap: 16px; padding: 16px 0 24px; }
.panel { background: var(--surface); border-radius: var(--r-box); padding: 16px; }
.panel + .panel { margin-top: 12px; }
.panel > h2 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.panel__store { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.panel__store h2 { font-size: 16px; font-weight: 800; color: var(--navy); }

.line { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.line:first-of-type { border-top: 0; }
.line img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-img); background: #EEF1F4; }
.line__name { font-weight: 600; font-size: 15px; }
.line__opts { font-size: 13px; color: var(--muted); }
.line__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.line__qty { display: flex; align-items: center; gap: 6px; }
.line__qty select { font: inherit; min-height: 38px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--red); cursor: pointer; text-decoration: underline; }
.warn { color: #A15C00; font-size: 13px; font-weight: 600; }

.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0 0 16px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
.summary .summary__total { font-size: 20px; font-weight: 800; color: var(--navy); padding-top: 8px; border-top: 2px solid var(--line); }

.field { margin-bottom: 12px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; min-height: 46px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.field textarea { min-height: 80px; }
.field .error { color: var(--red); font-size: 13px; font-weight: 600; margin-top: 4px; }
.field-row { display: grid; gap: 0 12px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 4px; }

.choice { display: grid; gap: 8px; }
.choice label {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600;
}
.choice label:has(input:checked) { border-color: var(--green); background: #F1FAF5; }
.choice input { margin-top: 3px; accent-color: var(--green); width: 18px; height: 18px; }
.choice small { display: block; color: var(--muted); font-weight: 400; }

/* Confirmation + suivi */
.done-head { text-align: center; padding: 24px 0 8px; }
.done-head .check { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }
.done-head h1 { font-size: 26px; font-weight: 800; color: var(--navy); }
.done-head p { color: var(--muted); margin-top: 6px; }
.order-num { font-weight: 800; color: var(--navy); letter-spacing: .02em; }

.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--bg); color: var(--navy); }
.status-pill--new { background: #FFF4C2; color: #5C4A00; }
.status-pill--delivered { background: #E3F5EC; color: #06512F; }
.status-pill--cancelled, .status-pill--refunded, .status-pill--failed { background: #FDECEE; color: #8E0B1A; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 18px 32px; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.timeline li.is-done { color: var(--ink); font-weight: 600; }
.timeline li.is-done::after { background: var(--green); border-color: var(--green); }
.timeline li.is-done::before { background: var(--green); }
.timeline li.is-current::after { box-shadow: 0 0 0 4px rgba(0,148,96,.2); }
.timeline time { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }

.orders-list { display: grid; gap: 10px; }
.order-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--r-box); padding: 14px 16px; }
.order-row:hover { text-decoration: none; outline: 2px solid var(--line); }
.order-row small { color: var(--muted); display: block; }

.auth-box { max-width: 440px; margin: 24px auto; }

@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .hide-mobile { display: inline-flex; }
  .checkout { grid-template-columns: 1fr 360px; align-items: start; }
  .checkout aside { position: sticky; top: 130px; }
}

/* =========================================================
   Marketing : bannières, ventes flash, sponsorisé, partage
   ========================================================= */
.ad-row { display: grid; grid-auto-flow: column; grid-auto-columns: 92%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ad-row::-webkit-scrollbar { display: none; }
.ad-row--2 { grid-auto-columns: 92%; }
.ad-banner { position: relative; display: flex; align-items: flex-end; min-height: 150px; border-radius: var(--r-box); overflow: hidden; color: #fff; scroll-snap-align: start; text-decoration: none !important; }
.ad-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad-banner__text { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px; width: 100%; background: linear-gradient(0deg, rgba(0,0,0,.65), transparent); }
.ad-banner__text strong { font-size: 20px; font-weight: 800; }
.ad-banner__tag { position: absolute; top: 8px; right: 8px; font-size: 11px; background: rgba(0,0,0,.45); padding: 2px 8px; border-radius: 999px; }
.flash-item { display: flex; flex-direction: column; gap: 6px; }
.countdown { font-size: 12px; font-weight: 800; color: var(--red); background: #FDECEE; border-radius: 8px; padding: 4px 8px; text-align: center; }
.sponsored { color: #A15C00; font-weight: 700; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.share > span { font-weight: 700; color: var(--muted); }
@media (min-width: 960px) {
  .ad-row { grid-auto-columns: 100%; }
  .ad-row--2 { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .ad-banner { min-height: 260px; }
}

/* Avis clients */
.stars { color: #D5DBE3; letter-spacing: 1px; white-space: nowrap; }
.stars .on { color: #F5A400; }
.stars .half { background: linear-gradient(90deg, #F5A400 50%, #D5DBE3 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rating { font-size: 14px; margin-bottom: 6px; }
.rating a { color: inherit; }
.rating--sm { font-size: 12px; margin: 2px 0 0; color: var(--muted); }
.review { padding: 12px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review p + p { margin-top: 4px; }
.review__reply { background: var(--bg); border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.review-item { border: 0; padding: 12px 0; margin: 0; border-bottom: 1px solid var(--line); }
.review-item legend { font-weight: 700; }
.review-item textarea { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; margin-top: 6px; }
.stars-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-input label { font-size: 32px; line-height: 1; color: #D5DBE3; cursor: pointer; min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.stars-input input:checked ~ label, .stars-input label:hover, .stars-input label:hover ~ label { color: #F5A400; }
.stars-input input:focus-visible + label { outline: 3px solid var(--navy); border-radius: 6px; }

/* Application installable (PWA) */
.install-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 30px rgba(14,42,71,.18); padding: 10px 12px; max-width: 560px; margin: 0 auto; }
.install-bar[hidden] { display: none; }
.install-bar img { border-radius: 10px; flex-shrink: 0; }
.install-bar p { flex: 1; font-size: 13px; line-height: 1.3; display: flex; flex-direction: column; }
.install-bar__close { border: 0; background: none; font-size: 26px; line-height: 1; min-width: 44px; min-height: 44px; color: var(--muted); cursor: pointer; }
@media (display-mode: standalone) { .install-bar { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
