
/* Layout : un bandeau de recherche "vert pharmacie", puis une barre de filtres et la grille de produits ;
   chaque fiche ouvre une "echelle des prix" ou chaque parapharmacie est une barre proportionnelle a son prix. */
:root {
  --bg: #f4f7f5;
  --surface: #ffffff;
  --ink: #12201a;
  --muted: #56685f;
  --line: #dbe4df;
  --brand: #0a6a46;
  --brand-deep: #064a31;
  --on-brand: #ffffff;
  --brand-soft: #e3f1ea;
  --deal: #b4530a;
  --deal-soft: #fdf0e3;
  --out: #9a3b3b;
  --tile-s: 42%;
  --tile-l: 90%;
  --tile-ink-l: 28%;
  --shadow: 0 1px 2px rgba(10, 40, 28, .06), 0 6px 18px rgba(10, 40, 28, .06);
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-ar: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
  --r: 12px;
  --logo-bg: transparent;
  --logo-pad: 0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1512; --surface: #151f1b; --ink: #e4ede8; --muted: #98aaa1; --line: #24322c;
    --brand: #36b57d; --brand-deep: #0c3a28; --on-brand: #04140d; --brand-soft: #173a2b;
    --deal: #f2a24a; --deal-soft: #3a2712; --out: #e08b8b;
    --tile-s: 30%; --tile-l: 22%; --tile-ink-l: 78%;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.25); --logo-bg: #ffffff; --logo-pad: 2px 10px;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1512; --surface: #151f1b; --ink: #e4ede8; --muted: #98aaa1; --line: #24322c;
  --brand: #36b57d; --brand-deep: #0c3a28; --on-brand: #04140d; --brand-soft: #173a2b;
  --deal: #f2a24a; --deal-soft: #3a2712; --out: #e08b8b;
  --tile-s: 30%; --tile-l: 22%; --tile-ink-l: 78%;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.25); --logo-bg: #ffffff; --logo-pad: 2px 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.5; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
a { color: inherit; }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ---- En-tete blanc : logo + recherche + espace pro ---- */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 12px 28px; padding-block: 10px; flex-wrap: wrap; }
/* Le logo a un fond blanc : il se fond dans l'en-tete blanc ; en theme sombre, il garde un petit cartouche blanc */
.logo { display: inline-flex; flex: none; border-radius: 10px; background: var(--logo-bg); padding: var(--logo-pad); }
.logo img { display: block; height: 40px; width: auto; max-width: 100%; }   /* le fond gris tres clair de l'image devient blanc */
/* Logo + accroche : cote a cote sur ordinateur, l'une sous l'autre sur telephone */
.marque-site { display: flex; align-items: center; gap: 14px; flex: none; }
.accroche { margin: 0; max-width: 26ch; padding-left: 14px; border-left: 2px solid var(--brand-soft); font-family: var(--f-display); font-weight: 600; font-size: 14px; line-height: 1.25; color: var(--brand); text-wrap: balance; }
.accroche sup { font-size: .65em; }
.search { position: relative; flex: 1 1 320px; max-width: 560px; }
.search input { width: 100%; padding: 13px 16px 13px 46px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--brand) 30%, var(--line)); background: var(--bg); color: var(--ink); font-size: 16px; }
.search input:focus { border-color: var(--brand); background: var(--surface); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.search input::placeholder { color: var(--muted); }
.search svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--brand); pointer-events: none; }
.pro-link { margin-left: auto; flex: none; color: var(--brand); font-size: 14px; font-weight: 700; text-decoration: none; border: 1.5px solid var(--brand); padding: 8px 14px; border-radius: 999px; }
.pro-link:hover { background: var(--brand-soft); }
.pro-link .court { display: none; }

/* ---- Menu des categories : reste visible en haut quand on fait defiler ---- */
.menu { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 6; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 3px 10px rgba(10, 40, 28, .05); }
.chips { display: flex; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; text-decoration: none; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--ink); padding: 13px 8px 11px; cursor: pointer; font-size: 14px; font-weight: 650; display: inline-flex; gap: 6px; align-items: baseline; white-space: nowrap; }
.chip:first-child { padding-left: 0; }
.chip:hover { color: var(--brand); }
.chip small { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 500; }
.chip[aria-pressed="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.chip.promo-lien { color: var(--deal); }

/* ---- Bandeau vert ---- */
.hero { background: var(--brand-deep); color: #eaf5ef; }
.hero .wrap { padding-block: 26px 28px; display: grid; gap: 10px; }
.hero h1 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(23px, 3.6vw, 38px); line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; color: #fff; }
.hero p { margin: 0; color: #bfe3d0; max-width: 62ch; }
.tag-ar { font-family: var(--f-ar); font-size: 15px; color: #9fd8bb; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: #bfe3d0; }
.facts strong { color: #fff; font-variant-numeric: tabular-nums; }

/* ---- Filtres et tri (repliables sur telephone) ---- */
.toolbar .wrap { padding-block: 16px 0; display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.filtres > summary { display: none; }
.controls { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; font-size: 14px; }
.controls label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.controls select { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; max-width: 230px; color: var(--ink); }
.controls input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--brand); }
.count { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; }

/* ---- Grille ---- */
main .wrap { padding-block: 22px 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
.card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-1px); }
.tile { aspect-ratio: 4 / 3; max-width: 100%; border-radius: 9px; display: grid; place-items: center; background: hsl(var(--h) var(--tile-s) var(--tile-l)); color: hsl(var(--h) 45% var(--tile-ink-l)); overflow: hidden; position: relative; }
.tile b { font-family: var(--f-display); font-weight: 800; font-size: 34px; letter-spacing: -.03em; }
.tile i { position: absolute; left: 8px; bottom: 7px; font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 6px; box-sizing: border-box; }
.brand { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.brand span:last-child { letter-spacing: 0; text-transform: none; font-weight: 600; background: var(--brand-soft); color: var(--brand); padding: 0 7px; border-radius: 5px; white-space: nowrap; }
.name { font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.price { display: grid; gap: 4px; }
.price .row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price strong { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.price .where { font-size: 13px; color: var(--muted); }
.price .meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.save { background: var(--deal-soft); color: var(--deal); font-weight: 700; padding: 2px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.more { display: flex; justify-content: center; padding-top: 26px; }
.btn { background: var(--brand); color: var(--on-brand); border: 0; border-radius: 999px; padding: 11px 22px; font-weight: 600; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.empty, .loading { padding: 50px 0; text-align: center; color: var(--muted); display: grid; gap: 12px; justify-items: center; }
.loading .dots { display: flex; gap: 6px; }
.loading .dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: pulse 1s infinite ease-in-out; }
.loading .dots span:nth-child(2) { animation-delay: .15s; } .loading .dots span:nth-child(3) { animation-delay: .3s; }
@keyframes pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ---- Fiche produit ---- */
dialog { overflow-y: auto; overscroll-behavior: contain; border: 0; padding: 0; border-radius: 16px; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 32px); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(6, 20, 14, .55); }
/* Barre de retour toujours visible en haut de la fiche, meme apres defilement */
.retour-barre { position: sticky; top: 0; z-index: 3; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 14px; }
.retour { display: inline-flex; align-items: center; gap: 4px; background: var(--brand-soft); color: var(--brand); border: 0; border-radius: 999px; padding: 9px 16px 9px 10px; font-weight: 700; font-size: 15px; cursor: pointer; }
.retour:hover { filter: brightness(.97); }
.sheet { display: grid; gap: 18px; padding: 22px; }
.sheet header { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: start; }
.sheet .tile { aspect-ratio: 1; }
.sheet .tile b { font-size: 26px; }
.sheet h2 { margin: 2px 0 6px; font-family: var(--f-display); font-weight: 600; font-size: 21px; line-height: 1.2; text-wrap: balance; overflow-wrap: anywhere; }
.close { background: transparent; border: 1px solid var(--line); border-radius: 50%; width: 36px; height: 36px; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.summary { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 14px 16px; border-radius: 10px; background: var(--brand-soft); }
.summary div { display: grid; }
.summary small { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.summary strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.summary .deal strong { color: var(--deal); }
.ladder { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ladder li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.ladder li.best { border-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 55%, transparent); }
.ladder .who { font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
.ladder .badge { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 1px 7px; border-radius: 5px; }
.badge.best { background: var(--brand); color: var(--on-brand); }
.badge.out { color: var(--out); border: 1px solid currentColor; }
.badge.promo { color: var(--deal); border: 1px solid currentColor; }
.ladder .amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 17px; white-space: nowrap; }
.ladder .amt s { color: var(--muted); font-weight: 400; font-size: 13px; margin-right: 6px; }
.ladder .track { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.ladder .track span { display: block; height: 100%; background: var(--muted); border-radius: 3px; }
.ladder li.best .track span { background: var(--brand); }
.ladder .go { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); gap: 8px; }
.ladder .go a { color: var(--brand); font-weight: 600; text-decoration: none; white-space: nowrap; }
.ladder .go a:hover { text-decoration: underline; }
.note { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ---- Espace marchands ---- */
.pro .wrap { padding-block: 30px 46px; display: grid; gap: 28px; }
.pro h2 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
.pro h3 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 19px; }
.pro p { margin: 0; max-width: 66ch; }
.pro .lead { color: var(--muted); font-size: 16.5px; }
.back { justify-self: start; color: var(--brand); font-weight: 600; text-decoration: none; }
.offres-pro { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.offres-pro article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 8px; align-content: start; }
.offres-pro article.mise { border-color: var(--brand); }
.offres-pro small { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--brand); }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: var(--brand-soft); border-radius: var(--r); padding: 16px 18px; }
.contact code { font-family: var(--f-body); font-weight: 700; font-size: 18px; user-select: all; overflow-wrap: anywhere; }
.contact .btn { padding: 8px 16px; }
.regles { display: grid; gap: 10px; margin: 0; padding-left: 20px; max-width: 70ch; }
.liste-sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-variant-numeric: tabular-nums; }
.liste-sites li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.liste-sites span { color: var(--muted); }

/* ---- Texte de presentation (referencement), en bas de l'accueil ---- */
.seo-accueil { border-top: 1px solid var(--line); background: var(--surface); }
.seo-accueil .wrap { padding-block: 28px 30px; display: grid; gap: 12px; max-width: 1240px; }
.seo-accueil h2 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(19px, 2.4vw, 24px); text-wrap: balance; }
.seo-accueil h3 { margin: 8px 0 0; font-size: 16px; }
.seo-accueil p { margin: 0; color: var(--muted); max-width: 75ch; }
.seo-accueil .top-marques { display: flex; flex-wrap: wrap; gap: 6px; }
.seo-accueil .top-marques a { text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--brand); font-weight: 600; font-size: 14px; }
.seo-accueil .top-marques a:hover { border-color: var(--brand); }

footer { border-top: 1px solid var(--line); }
footer .wrap { padding-block: 22px 34px; display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
footer .sites { display: flex; flex-wrap: wrap; gap: 6px 14px; }

/* ---- Telephone (la majorite des visiteurs) ---- */
@media (max-width: 760px) {
  .head-row { padding-block: 8px 10px; gap: 8px 12px; }
  .logo img { height: 30px; }
  .marque-site { flex-direction: column; align-items: flex-start; gap: 0; flex: 0 1 auto; min-width: 0; }
  .accroche { max-width: 200px; padding-left: 4px; border-left: 0; font-size: 11px; line-height: 1.2; margin-top: -2px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .pro-link { padding: 6px 12px; font-size: 13px; }
  .pro-link .long { display: none; }
  .pro-link .court { display: inline; }
  .chip { font-size: 14.5px; padding: 11px 10px 9px; }
  .chips { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .hero .wrap { padding-block: 14px 16px; gap: 6px; }
  .hero h1 { font-size: 22px; }
  .hero p { display: none; }   /* sur telephone, on va droit aux produits */
  .tag-ar { font-size: 14px; }
  .facts { font-size: 12px; }
  /* Filtres : un bouton qui ouvre le panneau */
  .toolbar .wrap { padding-block: 12px 0; }
  .filtres { flex: 1 1 100%; }
  .filtres > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; list-style: none; cursor: pointer; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; font-weight: 650; }
  .filtres > summary::-webkit-details-marker { display: none; }
  .filtres > summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--brand); }
  .filtres[open] > summary::after { content: "−"; }
  .filtres[open] > summary { border-radius: 10px 10px 0 0; }
  .filtres .controls { display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; padding: 12px 14px 14px; }
  .controls label { display: grid; grid-template-columns: 70px 1fr; }
  .controls label:has(input[type="checkbox"]) { display: flex; }
  .controls select { max-width: none; width: 100%; padding: 9px 8px; font-size: 15px; }
  .count { margin-left: 0; }
  main .wrap { padding-block: 14px 32px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 10px; gap: 7px; }
  .tile b { font-size: 26px; }
  .brand { font-size: 11px; }
  .brand span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .name { font-size: 14px; }
  .price strong { font-size: 18px; }
  .price .where { font-size: 12px; }
  .price .meta { flex-wrap: wrap; font-size: 11.5px; }
  /* Fiche produit : panneau qui monte du bas de l'ecran */
  dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 18px 18px 0 0; max-height: 92vh; }
  .sheet { padding: 16px 16px max(20px, env(safe-area-inset-bottom, 0px)); }
  .sheet header { grid-template-columns: 64px 1fr auto; }
  .sheet h2 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---- Pages marques ---- */
.fil { font-size: 13px; color: #bfe3d0; display: flex; flex-wrap: wrap; gap: 6px; }
.fil a { color: #fff; text-decoration: none; }
.fil a:hover { text-decoration: underline; }
.liste { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.ligne { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; }
.ligne .tile { aspect-ratio: 1; grid-row: span 2; }
.ligne .tile b { font-size: 20px; }
.ligne h3 { margin: 0; font-size: 15.5px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.rayon { display: grid; gap: 10px; scroll-margin-top: 60px; }
.rayon h2, .faq h2, .autres-marques h2 { margin: 10px 0 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(19px, 2.4vw, 23px); line-height: 1.2; color: var(--ink); text-wrap: balance; }
.gammes { display: flex; flex-wrap: wrap; gap: 8px; }
.gammes a { text-decoration: none; padding: 7px 14px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--brand) 35%, var(--line)); background: var(--surface); color: var(--brand); font-weight: 650; font-size: 14px; }
.gammes a:hover { background: var(--brand-soft); }
.gammes small { color: var(--muted); font-weight: 500; }
.avantages { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.avantages li { background: var(--brand-soft); border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.4; }
.avantages strong { color: var(--brand); }
.bon-plan { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--deal-soft); color: var(--ink); }
.bon-plan strong { color: var(--deal); }
.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { margin: 8px 0 0; color: var(--muted); }
.autres-marques nav { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.autres-marques a { color: var(--brand); font-weight: 600; text-decoration: none; }
.autres-marques a:hover { text-decoration: underline; }
/* Promotions */
.promos { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.promo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.promo .pct { background: var(--deal); color: #fff; font-weight: 800; font-size: 15px; border-radius: 8px; padding: 6px 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.promo .qui { display: grid; min-width: 0; }
.promo .qui strong { font-weight: 650; font-size: 14.5px; line-height: 1.3; overflow-wrap: anywhere; }
.promo .qui small, .promo .px small { color: var(--muted); font-size: 12.5px; }
.promo .qui a, .promo .px a { color: var(--brand); text-decoration: none; }
.promo .px { display: grid; justify-items: end; text-align: right; font-variant-numeric: tabular-nums; }
.promo .px s { color: var(--muted); font-size: 12.5px; }
.promo .px strong { font-size: 17px; color: var(--deal); }
.lien-fort { color: var(--brand); font-weight: 700; text-decoration: none; }
.chip.promo-lien { color: var(--deal); }
@media (max-width: 760px) {
  .promo { grid-template-columns: auto minmax(0, 1fr); }
  .promo .px { grid-column: 2; justify-items: start; text-align: left; }
}
/* Bandeau de marque : couleurs de la marque, ou sa banniere officielle si elle a ete fournie */
.hero-marque { background: linear-gradient(115deg, hsl(var(--hm) 42% 24%) 0%, var(--brand-deep) 75%); }
.hero-marque.avec-banniere { background: linear-gradient(90deg, rgba(6, 40, 28, .94) 0%, rgba(6, 40, 28, .7) 55%, rgba(6, 40, 28, .25) 100%), var(--banniere) center / cover no-repeat; }
.hero-marque .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 28px; padding-block: 30px 32px; }
.hero-texte { display: grid; gap: 10px; min-width: 0; }
.phares { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.phares span { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); color: #fff; border-radius: 999px; padding: 3px 11px; font-size: 13px; font-weight: 600; }
.logo-marque { display: grid; place-items: center; width: 170px; height: 110px; background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.logo-marque img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-marque.txt { font-family: var(--f-display); font-weight: 800; font-size: 19px; line-height: 1.1; text-align: center; letter-spacing: -.01em; color: hsl(var(--hm) 55% 28%); overflow-wrap: anywhere; }
.phares-grille h2 { margin: 0 0 10px; font-family: var(--f-display); font-size: 22px; }
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tuiles a { display: grid; gap: 6px; justify-items: center; text-decoration: none; color: var(--muted); font-size: 12.5px; }
.tuiles .logo-marque { width: 100%; height: 86px; box-shadow: none; border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.tuiles a:hover .logo-marque { border-color: var(--brand); transform: translateY(-1px); }
.tuiles .logo-marque.txt { font-size: 16px; }
.ligne .infos { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.ligne .meilleur { text-align: right; display: grid; justify-items: end; }
.ligne .meilleur strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.ligne .meilleur span { font-size: 12.5px; color: var(--muted); }
.ligne details { grid-column: 1 / -1; font-size: 14px; }
.ligne summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.ligne details ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.ligne details li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding: 5px 0; }
.ligne details a { color: var(--ink); }
.ligne details .px { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.annuaire { display: grid; gap: 22px; }
.lettres { display: flex; flex-wrap: wrap; gap: 6px; }
.lettres a { min-width: 34px; text-align: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-decoration: none; font-weight: 650; color: var(--brand); }
.groupe h2 { margin: 0 0 8px; font-family: var(--f-display); font-size: 22px; color: var(--brand); }
.groupe ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px 18px; }
.groupe li a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.groupe li a:hover { color: var(--brand); }
.groupe li span { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.texte { max-width: 70ch; color: var(--muted); }
@media (max-width: 760px) {
  .ligne { grid-template-columns: 52px minmax(0, 1fr); padding: 12px; }
  .ligne .meilleur { grid-column: 2; text-align: left; justify-items: start; }
  .ligne .tile { grid-row: span 3; }
  .gammes { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .hero-marque .wrap { grid-template-columns: 1fr; padding-block: 18px 20px; }
  .hero-marque .logo-marque { order: -1; width: 130px; height: 72px; padding: 8px; }
  .hero-marque .logo-marque.txt { font-size: 15px; }
  .tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}