/* ══════════════════════════════════════════════════════════════════════
   Beauté & parfums : l'aperçu boutique du Club Privilège Plus

   La page reprend la mécanique de la boutique source : en-tête à trois
   zones avec une recherche large au centre, barre de rayons pleine largeur,
   fil d'Ariane, rail d'affinage à gauche, compteur et tri, grille de quatre
   colonnes. Tout le reste est à la charte CE Premium.

   Le bandeau de service du haut a été retiré le 26/10 : il portait le
   numéro vert du partenaire.

   Différence voulue avec la page Mode : ici la grille est une vraie grille
   CSS de quatre colonnes, parce que la source ne fait pas couler ses lignes
   autour du rail. Chaque boutique garde sa mécanique.
   ══════════════════════════════════════════════════════════════════════ */

:root{
  --navy:        #071a3d;
  --navy-soft:   #0b2a5b;
  --rose:        #ff0b4f;
  --rose-pale:   #fff1f5;
  --gold:        #d89c24;
  --gold-pale:   #fdf5e8;
  --grey:        #536078;
  --muted:       #98a1b4;
  --line:        #eceff2;
  --line-3:      #e3e7ef;
  --paper:       #f6f7fa;
  --creme:       #fdf8f3;
  --photo:       #fff;
  --font:        "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-alt:    "Inter", "Segoe UI", system-ui, sans-serif;

  --page:        1280px;
  --rail:        220px;
  --gouttiere:   24px;
}

*, *::before, *::after{ box-sizing:border-box; }

body{
  margin:0; background:#fff; color:var(--navy);
  font-family:var(--font); font-size:16px; line-height:1.45;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img{ display:block; max-width:100%; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
a{ color:inherit; }

.sprite{ position:absolute; width:0; height:0; overflow:hidden; }
.ico{ width:20px; height:20px; flex:none;
      fill:none; stroke:currentColor; stroke-width:1.7;
      stroke-linecap:round; stroke-linejoin:round; }

/* ───────────────────────────── En-tête ───────────────────────────── */
.tete{ position:sticky; top:0; z-index:40; background:#fff; border-bottom:1px solid var(--line); }
.tete__haut{
  max-width:var(--page); margin:0 auto; padding:0 24px; height:86px;
  display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:34px;
}
.tete__logo img{ height:44px; width:auto; object-fit:contain; }

.chercher{
  position:relative; height:46px;
  display:flex; align-items:center; gap:10px; padding:0 18px;
  border:1px solid var(--line-3); border-radius:4px; background:#fff;
  transition:border-color .16s, box-shadow .16s;
}
.chercher:focus-within{ border-color:var(--navy); box-shadow:0 0 0 3px rgba(7,26,60,.06); }
.chercher__ico{ width:18px; height:18px; color:var(--gold); stroke-width:2; }
.chercher input{
  flex:1; min-width:0; border:0; outline:0; background:none;
  font-family:var(--font); font-size:14px; color:var(--navy);
}
.chercher input::placeholder{ color:var(--muted); }
.chercher input::-webkit-search-cancel-button{ display:none; }
.chercher__x{ width:20px; height:20px; display:grid; place-items:center; color:var(--muted); }
.chercher__x:hover{ color:var(--navy); }
.chercher__x .ico{ width:13px; height:13px; stroke-width:2.2; }

.tete__outils{ display:flex; align-items:center; gap:26px; }
.outil{
  display:flex; flex-direction:column; align-items:center; gap:3px;
  color:var(--navy); font-size:11px; font-weight:500;
}
.outil:hover{ color:var(--rose); }
.outil .ico{ width:22px; height:22px; stroke-width:1.5; }

/* ─────────────────────── La barre des rayons ─────────────────────── */
.rayons{
  max-width:var(--page); margin:0 auto; padding:0 24px; height:44px;
  display:flex; align-items:center; justify-content:space-between; gap:6px;
  border-top:1px solid var(--line);
}
.rayons__l{
  position:relative; padding:5px 10px; border-radius:4px; white-space:nowrap;
  font-size:12.5px; font-weight:600; letter-spacing:.045em; text-transform:uppercase;
  color:var(--navy);
}
.rayons__l:hover{ color:var(--rose); }
.rayons__l.is-on{ background:var(--rose); color:#fff; }
.rayons__l.is-on:hover{ color:#fff; }
.rayons__l--fort{ font-weight:800; }
.rayons__l--gold{ color:var(--gold); }
.rayons__l--creme{ background:var(--gold-pale); }
.rayons__l[disabled]{ color:var(--muted); cursor:default; }
.rayons__l[disabled]:hover{ color:var(--muted); }
.rayons__n{
  margin-left:5px; font-family:var(--font-alt); font-size:10.5px;
  font-weight:400; opacity:.65; text-transform:none; letter-spacing:0;
}

/* ───────────────────────────── La page ───────────────────────────── */
.page{ max-width:var(--page); margin:0 auto; padding:22px 24px 80px; }
.page::after{ content:""; display:block; clear:both; }

.fil{
  margin:0 0 20px; font-size:13.5px; font-weight:500; color:var(--grey);
  padding-bottom:12px; border-bottom:2px solid var(--gold); display:inline-block;
}
.fil a{ text-decoration:none; }
.fil a:hover{ color:var(--rose); }
.fil span{ margin:0 6px; color:var(--muted); }
.fil b{ font-weight:700; color:var(--navy); }

/* ──────────────────────── Rail d'affinage ──────────────────────── */
.rail{ float:left; width:var(--rail); margin:0 40px 32px 0; }
.rail__t{
  margin:0 0 14px; font-size:17px; font-weight:800; letter-spacing:-.015em;
  color:var(--gold);
}
.rail__l{ margin:0; padding:0; list-style:none; }
.rail__b{
  width:100%; display:flex; align-items:baseline; gap:8px; padding:7px 0;
  text-align:left; font-size:13.5px; font-weight:500; color:var(--navy);
}
.rail__b:hover{ color:var(--rose); }
.rail__b.is-on{ color:var(--rose); font-weight:800; }
.rail__nom{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rail__n{ font-family:var(--font-alt); font-size:11.5px; color:var(--muted); font-weight:400; }
.rail__b.is-on .rail__n{ color:var(--rose); }
.rail__plus{
  margin-top:12px; text-decoration:underline; text-underline-offset:3px;
  font-size:12.5px; font-weight:600; color:var(--grey);
}
.rail__plus:hover{ color:var(--rose); }

/* ─────────────────────── Compteur, tri, filtres ─────────────────────── */
.boutique{ overflow:hidden; }

.barre{
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding-bottom:14px; border-bottom:1px solid var(--line-3);
}
.barre__n{ margin:0; font-size:13.5px; font-weight:700; color:var(--navy); }
.barre__n i{ font-style:normal; font-weight:500; color:var(--muted); font-family:var(--font-alt); font-size:12px; }

.chips{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:16px 0 0; }
.chip-wrap{ position:relative; }

.chip{
  height:38px; padding:0 16px; border-radius:4px;
  border:1px solid var(--line-3); background:#fff;
  display:inline-flex; align-items:center; gap:8px;
  font-size:13px; font-weight:600; color:var(--navy); white-space:nowrap;
  transition:border-color .16s, background .16s;
}
.chip:hover{ border-color:var(--navy); }
.chip[aria-expanded="true"]{ border-color:var(--navy); background:var(--paper); }
.chip.a-filtre{ border-color:var(--rose); color:var(--rose); background:var(--rose-pale); }
.chip--tri{ border:0; padding-right:0; }
.chip--tri b{ font-weight:700; }
.chip__v{ width:15px; height:15px; stroke-width:2.2; transition:transform .2s; }
.chip[aria-expanded="true"] .chip__v{ transform:rotate(180deg); }
.chip__badge{
  min-width:18px; height:18px; padding:0 5px; border-radius:9px;
  background:var(--rose); color:#fff;
  font-size:10.5px; font-weight:800; line-height:18px; text-align:center;
}

.menu{
  position:absolute; left:0; top:calc(100% + 8px); z-index:30;
  min-width:250px; background:#fff;
  border:1px solid var(--line-3); border-radius:8px;
  box-shadow:0 2px 10px rgba(7,26,60,.05), 0 14px 40px rgba(7,26,60,.13);
  overflow:hidden;
}
.menu[hidden]{ display:none; }
.menu--large{ width:520px; }
.menu--droite{ left:auto; right:0; min-width:230px; }
.menu__corps{ max-height:340px; overflow:auto; padding:10px; }
.menu--large .menu__corps{ display:grid; grid-template-columns:1fr 1fr; gap:0 10px; align-content:start; }
.menu__pied{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:10px 14px; border-top:1px solid var(--line); background:var(--paper);
}
.menu__raz{ font-size:12.5px; font-weight:600; color:var(--grey); text-decoration:underline; text-underline-offset:3px; }
.menu__raz:hover{ color:var(--rose); }
.menu__ok{ height:32px; padding:0 16px; border-radius:4px; background:var(--rose); color:#fff; font-size:12.5px; font-weight:700; }
.menu__ok:hover{ background:#e00945; }

.opt{
  width:100%; display:flex; align-items:center; gap:10px;
  padding:8px 10px; border-radius:6px; text-align:left;
  font-size:13.5px; font-weight:500; color:var(--navy);
}
.opt:hover{ background:var(--paper); }
.opt__case{
  width:17px; height:17px; flex:none; border-radius:3px;
  border:1.5px solid var(--line-3); display:grid; place-items:center; color:#fff;
}
.opt__case .ico{ width:12px; height:12px; stroke-width:3; opacity:0; }
.opt.is-on .opt__case{ background:var(--rose); border-color:var(--rose); }
.opt.is-on .opt__case .ico{ opacity:1; }
.opt.is-on{ font-weight:700; }
.opt__nom{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.opt__n{ font-family:var(--font-alt); font-size:12px; color:var(--muted); font-weight:400; }
.opt[disabled]{ opacity:.38; cursor:default; }
.opt[disabled]:hover{ background:none; }
.opt--radio .opt__case{ border-radius:50%; }

.actifs{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:16px 0 0; }
.actifs[hidden]{ display:none; }
.actif{
  display:inline-flex; align-items:center; gap:7px;
  height:30px; padding:0 8px 0 12px; border-radius:4px;
  background:var(--rose-pale); color:var(--rose); font-size:12.5px; font-weight:700;
}
.actif .ico{ width:13px; height:13px; stroke-width:2.4; opacity:.75; }
.actifs__raz{ font-size:12.5px; font-weight:600; color:var(--grey); text-decoration:underline; text-underline-offset:3px; }
.actifs__raz:hover{ color:var(--rose); }

/* ───────────────────────────── La grille ───────────────────────── */
.grille{
  margin:22px 0 0; padding:0; list-style:none;
  display:grid; grid-template-columns:repeat(4, 1fr); gap:0;
  border-top:1px solid var(--line);
}
.fiche{
  position:relative; padding:34px 14px 22px;
  border-right:1px solid var(--line); border-bottom:1px solid var(--line);
  display:flex; flex-direction:column; text-align:center;
}
.fiche:nth-child(4n){ border-right:0; }
.fiche:hover{ background:var(--paper); }

.fiche__pastille{
  position:absolute; top:10px; padding:3px 8px; border-radius:3px;
  font-size:9.5px; font-weight:800; letter-spacing:.07em; text-transform:uppercase;
}
.fiche__pastille--promo{ right:10px; background:var(--rose); color:#fff; }
.fiche__pastille--neuf{ left:10px; color:var(--gold); }

.fiche__vue{ aspect-ratio:4 / 5; background:var(--photo); display:grid; place-items:center; }
.fiche__img{
  max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain;
  transition:transform .5s cubic-bezier(.22,.61,.36,1);
}
.fiche:hover .fiche__img{ transform:scale(1.05); }
.fiche__vide{
  width:100%; height:100%; display:grid; place-items:center;
  font-family:var(--font-alt); font-size:11px; color:var(--muted); background:var(--paper);
}

.fiche__ref{
  margin:14px 0 0; font-family:var(--font-alt); font-size:10.5px;
  color:var(--muted); letter-spacing:.04em;
}
.fiche__marque{
  margin:3px 0 0; font-size:13.5px; font-weight:800; letter-spacing:.02em; color:var(--navy);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.fiche__nom{
  margin:1px 0 0; font-size:13.5px; font-weight:700; color:var(--navy); line-height:1.25;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.fiche__ligne{
  margin:5px 0 0; font-size:11.5px; font-weight:500; color:var(--grey); line-height:1.3;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}

.fiche__bas{ margin-top:auto; padding-top:14px; }
.fiche__apd{ margin:0; font-family:var(--font-alt); font-size:10.5px; color:var(--muted); }
.fiche__avant{
  margin:0; font-family:var(--font-alt); font-size:11.5px; color:var(--muted);
  text-decoration:line-through;
}
.fiche__avant i{ font-style:normal; text-decoration:none; }
.fiche__prix{ margin:2px 0 0; font-size:19px; font-weight:800; letter-spacing:-.015em; color:var(--navy); }
.fiche--promo .fiche__prix{ color:var(--rose); }
.fiche__btn{
  margin:12px auto 0; height:34px; padding:0 20px; border-radius:4px;
  border:1px solid var(--navy); background:#fff; color:var(--navy);
  font-size:12.5px; font-weight:700;
}
.fiche__btn:hover{ background:var(--navy); color:#fff; }

/* ──────────────────── Vide, sentinelle ──────────────────── */
.vide{ clear:both; padding:48px 0; text-align:center; font-size:15px; font-weight:500; color:var(--grey); }
.vide[hidden]{ display:none; }
.vide__raz{
  display:block; margin:14px auto 0; height:38px; padding:0 20px; border-radius:4px;
  background:var(--rose); color:#fff; font-size:13px; font-weight:700;
}
.sentinelle{ clear:both; height:4px; }

/* ─────────────────────── Écrans plus étroits ─────────────────────── */
@media (max-width:1180px){
  .rayons{ overflow-x:auto; justify-content:flex-start; }
  .grille{ grid-template-columns:repeat(3, 1fr); }
  .fiche:nth-child(4n){ border-right:1px solid var(--line); }
  .fiche:nth-child(3n){ border-right:0; }
}
@media (max-width:900px){
  .rail{ float:none; width:auto; margin:0 0 28px; }
  .tete__haut{ grid-template-columns:auto 1fr auto; gap:18px; height:72px; }
  .outil span{ display:none; }
}
@media (max-width:640px){
  .grille{ grid-template-columns:repeat(2, 1fr); }
  .fiche:nth-child(3n){ border-right:1px solid var(--line); }
  .fiche:nth-child(2n){ border-right:0; }
  .menu--large{ width:min(92vw,520px); }
}
@media (prefers-reduced-motion:reduce){
  .fiche__img, .chip__v{ transition:none; }
  .fiche:hover .fiche__img{ transform:none; }
}
