/* Accueil de D2B Parfumerie (passe 1). Mêmes jetons, même typo (Barlow Condensed, IBM Plex Mono pour les petites
   étiquettes) et même gris produit (#F5F5F5) que les autres sites D2B : la couleur vient de la vidéo, la page reste
   noire, blanche et grise. Trois temps : l'ouverture vidéo, la recherche, les parfums phares. */
:root {
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --marge: clamp(14px, 4vw, 56px);
  --carte: min(64vw, 290px);   /* téléphone : la carte active du carrousel */
}
@media (min-width: 701px) { :root { --carte: min(28vw, 340px); } }
@media (min-width: 1680px) { :root { --carte: min(21vw, 390px); } }   /* passe 11 : grand écran, carte un peu plus grande */

body.page-accueil { overflow-x: hidden; }

/* ---------- 1. ouverture : la vidéo plein écran ---------- */
.ouverture {
  position: relative; height: 100vh; height: 100svh; min-height: 480px; overflow: hidden;
  background: #3a1206 url("../assets/video/hero-poster.jpg") center / cover no-repeat; color: #fff;
}
.ouverture-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* voile : assombrit le bas (lisibilité du bouton) sans éteindre les rouges et les oranges du haut */
.ouverture-voile {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(12, 4, 2, .62) 0%, rgba(12, 4, 2, .28) 30%, rgba(12, 4, 2, 0) 56%),
    linear-gradient(to bottom, rgba(12, 4, 2, .22) 0%, rgba(12, 4, 2, 0) 22%);
}
.ouverture-contenu {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center;
  padding: 0 20px calc(clamp(44px, 9vh, 88px) + env(safe-area-inset-bottom));
}
/* le bouton : absent au départ, il apparaît en fondu vers 3,1 s (hero/accueil.js) et ne repart plus */
.ouverture-appel {
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
  opacity: 0; transform: translateY(14px); visibility: hidden;
  transition: opacity 1.1s var(--doux), transform 1.1s var(--doux), visibility 0s linear 1.1s;
}
.ouverture.appel-visible .ouverture-appel { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.ouverture-surtitre {
  margin: 0; font: 400 12px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .9);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
.bouton-ouverture {
  display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 30px 0 32px;
  background: #fff; color: var(--encre); text-decoration: none;
  font: 700 23px/1 var(--cond); letter-spacing: .02em; text-transform: uppercase;
  box-shadow: 0 10px 34px -12px rgba(0, 0, 0, .55);
  transition: background-color .2s ease, color .2s ease;
}
.bouton-ouverture svg { transition: transform .35s var(--doux); }
.bouton-ouverture:hover, .bouton-ouverture:focus-visible { background: #000; color: #fff; }
.bouton-ouverture:hover svg { transform: translateY(3px); }
.bouton-ouverture:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media (max-width: 640px) {
  .bouton-ouverture { height: 54px; padding: 0 24px 0 26px; font-size: 21px; }
  .ouverture-surtitre { font-size: 11px; letter-spacing: .13em; }
}

/* ---------- en-têtes de section ---------- */
.section-tete { margin: 0 0 30px; }
.surtitre { margin: 0 0 10px; font: 400 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gris); }
.section-titre { margin: 0; font: 700 clamp(36px, 4.6vw, 60px)/.95 var(--cond); text-transform: uppercase; letter-spacing: .005em; color: var(--encre); }
.section-chapo { margin: 12px 0 0; max-width: 34em; font: 500 19px/1.35 var(--cond); color: var(--gris-fonce); }
.bloc-titre { margin: 0 0 12px; padding: 0; font: 700 15px/1 var(--cond); letter-spacing: .04em; text-transform: uppercase; color: var(--gris); }
.lien-souligne {
  display: inline-flex; align-items: center; min-height: 44px; font: 700 19px/1 var(--cond); text-transform: uppercase; color: var(--encre);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: rgba(17, 17, 17, .25);
  transition: text-decoration-color .15s ease;
}
.lien-souligne:hover, .lien-souligne:focus-visible { text-decoration-color: currentColor; }
.lien-souligne::after { content: " →"; white-space: pre; }

/* ---------- 2. le conseiller parfum (passe 2, maquette « Conseiller parfum monochrome élégant » de Lucas) ----------
   Direction monochrome : fond très clair, noir, gris, aucune couleur. Passe 3 (Lucas) : la typographie du site D2B
   partout (Barlow Condensed, IBM Plex Mono pour les petites étiquettes), plus de police à empattements. Ordinateur : panneau à 4 colonnes, univers,
   bouton noir. Téléphone (700 px et moins) : parcours pas à pas, une question par écran. */
:root { --creme: #f5f5f3; --filet: #dcdcda; }
.conseiller {
  padding: 88px var(--marge) 96px; background: var(--creme); color: var(--encre);
  scroll-margin-top: calc(var(--pilule-haut) + var(--pilule-h) + 8px);
}
.conseiller-tete { text-align: center; }
.conseiller-titre { margin: 0; font: 700 clamp(46px, 6.4vw, 96px)/.92 var(--cond); text-transform: uppercase; letter-spacing: .005em; color: #111; }
.conseiller-chapo { margin: 16px auto 0; max-width: 30em; font: 500 clamp(18px, 1.6vw, 21px)/1.35 var(--cond); color: #3a3a3a; }
.etapes, .etape-question, .tuile-tous, .conseiller-actions .lien-retour-etape, .conseiller-actions #etape-suiv { display: none; }

/* le panneau : 3 colonnes séparées par des filets fins (passe 10 : plus de colonne budget) */
.conseiller-panneau {
  display: grid; grid-template-columns: 1fr 1fr 1.15fr; max-width: 1180px; margin: 52px auto 0; padding: 30px 0 32px;
  border: 1px solid var(--filet); background: #fafaf9;
}
.etape { border: 0; margin: 0; padding: 0 34px; min-width: 0; }
.conseiller-panneau .etape + .etape { border-left: 1px solid #e4e4e2; }
.etape-titre { display: block; width: 100%; margin: 0 0 22px; padding: 0; font: 700 16px/1 var(--cond); letter-spacing: .16em; text-transform: uppercase; color: #1d1d1d; }


/* saison et occasion : icônes au trait dans des cercles, le cercle choisi plein en noir */
.choix-ronds { display: grid; gap: 8px; }
.rond[hidden] { display: none; }   /* passe 8 : « À offrir » masqué tant qu’aucun produit ne le porte */
.rond {
  display: flex; align-items: center; gap: 16px; min-height: 44px; padding: 0; border: 0; background: none; color: #1a1a1a;
  font: 700 17px/1.1 var(--cond); text-transform: uppercase; letter-spacing: .01em; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.rond-icone {
  flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid #a9a9a7; border-radius: 50%; display: grid; place-items: center;
  color: #1a1a1a; background: transparent; transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.rond:hover .rond-icone { border-color: #111; }
.rond[aria-pressed="true"] .rond-icone { background: #111; border-color: #111; color: #fff; }
.rond:focus-visible { outline: none; }
.rond:focus-visible .rond-icone { box-shadow: 0 0 0 3px var(--creme), 0 0 0 4px #111; }

/* familles olfactives : cases à cocher, liste qui défile avec une fine barre */
.liste-familles {
  list-style: none; margin: 0; padding: 0 14px 0 0; max-height: 176px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: #111 #e6e6e4;
}
.liste-familles::-webkit-scrollbar { width: 2px; }
.liste-familles::-webkit-scrollbar-track { background: #e6e6e4; }
.liste-familles::-webkit-scrollbar-thumb { background: #111; }
.liste-familles label { display: flex; align-items: center; gap: 14px; min-height: 44px; cursor: pointer; font: 700 17px/1.1 var(--cond); text-transform: uppercase; letter-spacing: .01em; color: #1a1a1a; }
.liste-familles input {
  -webkit-appearance: none; appearance: none; flex: 0 0 auto; width: 18px; height: 18px; margin: 0; border: 1px solid #8f8f8d; background: #fff;
  display: grid; place-content: center; cursor: pointer; transition: background-color .15s ease, border-color .15s ease;
}
.liste-familles input::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 1.6px 1.6px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.liste-familles input:checked { background: #111; border-color: #111; }
.liste-familles input:checked::after { opacity: 1; }
.liste-familles input:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.liste-familles .nb { margin-left: auto; font: 400 11px/1 var(--mono); color: #9a9a98; }

/* univers : titre entre deux longs filets, vignettes photo noir et blanc, flèches rondes */
.univers { max-width: 1180px; margin: 64px auto 0; padding: 0; }
.univers-titre { display: flex; align-items: center; justify-content: center; gap: 34px; margin: 0 0 30px; }
.univers-titre::before, .univers-titre::after { content: ""; flex: 0 1 260px; height: 1px; background: #a9a9a7; }
.univers-titre span { font: 700 18px/1 var(--cond); letter-spacing: .3em; padding-left: .3em; text-transform: uppercase; color: #1d1d1d; }
.univers-rangee { display: flex; align-items: center; gap: 18px; }
.rond-fleche {
  flex: 0 0 auto; width: 44px; height: 44px; padding: 0; border: 1px solid #8f8f8d; border-radius: 50%; background: #fff; color: #111;
  display: grid; place-items: center; cursor: pointer; transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}
.rond-fleche:hover { background: #111; color: #fff; }
.rond-fleche:disabled { opacity: .3; cursor: default; background: #fff; color: #111; }
.univers-piste {
  flex: 1 1 auto; min-width: 0; list-style: none; margin: 0; padding: 6px 4px; display: flex; gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.univers-piste::-webkit-scrollbar { display: none; }
.univers-piste li { flex: 0 0 calc((100% - 40px) / 5); min-width: 150px; scroll-snap-align: start; }
.tuile {
  position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; overflow: hidden; background: #111; color: #fff;
  cursor: pointer; -webkit-tap-highlight-color: transparent; outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .2s ease;
}
.tuile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--doux); }
.tuile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .1) 46%, rgba(0, 0, 0, 0) 70%); }
.tuile:hover img { transform: scale(1.05); }
.tuile-titre { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 1; padding: 0 12px; text-align: center; text-wrap: balance; font: 700 clamp(20px, 1.9vw, 27px)/1 var(--cond); text-transform: uppercase; letter-spacing: .02em; }
.tuile-titre sup { margin-left: 3px; font: 400 10px/1 var(--mono); letter-spacing: 0; opacity: .75; vertical-align: super; }
.tuile-coche {
  position: absolute; top: 10px; right: 10px; z-index: 1; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #111;
  display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: opacity .2s ease, transform .25s var(--doux);
}
.tuile[aria-pressed="true"] { outline-color: #111; }
.tuile[aria-pressed="true"] .tuile-coche { opacity: 1; transform: none; }
.tuile:focus-visible { outline-color: #111; }
.tuile.sans-parfum img { opacity: .55; }

/* bouton noir pleine largeur centré */
.conseiller-actions { display: flex; justify-content: center; margin: 54px auto 0; }
.bouton-conseiller {
  display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 60px; padding: 0 54px; border: 0;
  background: #111; color: #fff; cursor: pointer; font: 700 21px/1 var(--cond); letter-spacing: .06em; text-transform: uppercase;
  -webkit-tap-highlight-color: transparent; transition: background-color .2s ease;
}
.bouton-conseiller svg { transition: transform .35s var(--doux); }
.bouton-conseiller:hover { background: #2b2b2b; }
.bouton-conseiller:hover svg { transform: translateX(4px); }
.bouton-conseiller:focus-visible { outline: 2px solid #111; outline-offset: 4px; }

/* recommandations */
.resultats { max-width: 1180px; margin: 64px auto 0; padding-top: 34px; border-top: 1px solid var(--filet); }
.resultats-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.resultats-titre { margin: 0; font: 700 clamp(30px, 3.2vw, 42px)/1 var(--cond); text-transform: uppercase; color: #111; outline: none; }
.resultats-compte { margin: 0; font: 400 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #6b6b69; }
.resultats-grille { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.resultats-grille .vignette { animation: apparition .55s var(--doux) both; }
.resultats-grille .vignette:nth-child(2) { animation-delay: .05s; }
.resultats-grille .vignette:nth-child(3) { animation-delay: .1s; }
.resultats-grille .vignette:nth-child(n+4) { animation-delay: .15s; }
@keyframes apparition { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.resultats-vide p { margin: 10px 0 0; font: 500 19px/1.35 var(--cond); color: #3a3a3a; }
.resultats-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; margin-top: 28px; }
.effacer {
  min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; font: 700 17px/1 var(--cond); text-transform: uppercase; color: var(--gris);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: transparent;
  transition: color .15s ease, text-decoration-color .15s ease;
}
.effacer:hover, .effacer:focus-visible { color: var(--encre); text-decoration-color: currentColor; }
#modifier { display: none; }
.vignette .texte .coloris { color: var(--gris); }

/* tablette : le panneau passe sur deux rangées */
@media (min-width: 701px) and (max-width: 1080px) {
  .conseiller-panneau { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .conseiller-panneau .etape:nth-child(3) { border-left: 0; grid-column: 1 / -1; }   /* familles sur toute la largeur */
  .univers-piste li { flex-basis: calc((100% - 20px) / 3); }
}

/* ---------- téléphone : le parcours pas à pas ---------- */
@media (max-width: 700px) {
  .conseiller { padding: 50px 0 48px; }
  .conseiller-tete { padding: 0 16px; }
  .conseiller-titre { margin-top: 0; font-size: 48px; line-height: .95; }
  .conseiller-chapo { margin-top: 12px; font-size: 18px; max-width: 19em; }
  /* barre des 4 étapes : des points reliés */
  .etapes { display: flex; list-style: none; width: 184px; margin: 26px auto 0; padding: 0; }
  .etapes li { position: relative; flex: 1; display: flex; justify-content: center; }
  .etapes li + li::before { content: ""; position: absolute; right: 50%; left: -50%; top: 50%; height: 1px; background: #9d9d9b; }
  .etapes button {
    position: relative; z-index: 1; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center;
  }
  .etapes button::before { content: ""; width: 11px; height: 11px; border-radius: 50%; border: 1px solid #6f6f6d; background: var(--creme); transition: background-color .25s ease, transform .25s var(--doux); }
  .etapes button.fait::before { background: #111; border-color: #111; }
  .etapes button[aria-current="step"]::before { background: #111; border-color: #111; transform: scale(1.25); }

  .conseiller-panneau { display: block; margin: 0; padding: 0; border: 0; background: none; }
  .etape, .univers { display: none; }
  .conseiller[data-etape="1"] .etape[data-etape="1"], .conseiller[data-etape="2"] .etape[data-etape="2"], .conseiller[data-etape="3"] .etape[data-etape="3"],
  .conseiller[data-etape="4"] .etape[data-etape="4"] { display: block; animation: etape-entree .5s var(--doux) both; }
  @keyframes etape-entree { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
  .conseiller-panneau .etape + .etape { border-left: 0; }
  .etape { padding: 0; }
  .etape-titre, .univers-titre { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
  .etape-question { display: block; margin: 30px 16px 22px; text-align: center; font: 700 27px/1.05 var(--cond); text-transform: uppercase; color: #111; }

  /* saison, occasion, univers : des cartes qui défilent, celle du centre agrandie et choisie */
  .choix-ronds, .univers-piste {
    position: relative; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
    padding: 12px calc(50% - 78px) 16px;
  }
  .choix-ronds::-webkit-scrollbar { display: none; }
  .rond {
    flex: 0 0 156px; height: 186px; flex-direction: column; justify-content: center; gap: 18px; padding: 0 12px; scroll-snap-align: center;
    background: #fff; border: 1px solid #e0e0de; font-size: 19px; text-align: center;
    transform: scale(.86); opacity: .55; transition: transform .35s var(--doux), opacity .35s ease, border-color .25s ease;
  }
  .rond.centre { transform: none; opacity: 1; border-color: #111; }
  .rond-icone { width: 64px; height: 64px; }
  .rond-icone svg { width: 28px; height: 28px; }
  .liste-familles { max-height: 320px; margin: 0 24px; padding-right: 16px; }
  .liste-familles label { font-size: 19px; min-height: 48px; }

  .univers { margin: 0; }
  .univers-rangee { display: block; }
  .rond-fleche { display: none; }
  .univers-piste { padding: 12px calc(50% - 100px) 16px; }
  .univers-piste li { flex: 0 0 200px; min-width: 0; scroll-snap-align: center; }
  .univers-piste .tuile-tous { display: block; }
  .tuile { aspect-ratio: 4 / 5; transform: scale(.86); opacity: .6; transition: transform .35s var(--doux), opacity .35s ease, outline-color .2s ease; }
  .tuile.centre { transform: none; opacity: 1; }
  .tuile-titre { font-size: 27px; bottom: 24px; }
  .tuile-tous .tuile { background: linear-gradient(160deg, #3a3a3a, #0c0c0c); }
  .tuile-tous .tuile-titre { top: 50%; bottom: auto; transform: translateY(-50%); font-size: 26px; line-height: 1.05; }

  .conseiller-actions { flex-direction: column; align-items: stretch; gap: 6px; margin: 22px 24px 0; }
  .bouton-conseiller { min-height: 58px; padding: 0 20px; font-size: 21px; letter-spacing: .04em; }
  .conseiller-actions #voir-reco { display: none; }
  .conseiller-actions #etape-suiv { display: inline-flex; order: 1; }
  .conseiller[data-etape="4"] .conseiller-actions #etape-suiv { display: none; }
  .conseiller[data-etape="4"] .conseiller-actions #voir-reco { display: inline-flex; order: 1; }
  .conseiller-actions .lien-retour-etape {
    display: inline-flex; order: 2; align-self: center; min-height: 44px; padding: 0 14px; background: none; color: #6b6b69;
    font: 700 17px/1 var(--cond); letter-spacing: .04em; text-transform: uppercase;
  }
  .lien-retour-etape:hover { background: none; color: #111; }
  .conseiller[data-etape="1"] .lien-retour-etape { visibility: hidden; }

  /* dernier écran : les recommandations */
  .conseiller[data-etape="5"] .conseiller-actions { display: none; }
  .resultats { margin: 30px 16px 0; padding-top: 24px; }
  .resultats-tete { flex-direction: column; align-items: center; gap: 8px; text-align: center; }
  .resultats-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resultats-pied { justify-content: center; }
  #modifier { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  .resultats-grille .vignette, .etape { animation: none !important; }
  .rond, .tuile { transition: none; }
}

/* flèches rondes du carrousel des parfums phares */
.fleche {
  width: 52px; height: 52px; padding: 0; border: 1px solid #d4d4d4; border-radius: 50%; background: #fff; color: var(--encre);
  display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, opacity .2s ease;
}
.fleche:hover { background: var(--encre); color: #fff; border-color: var(--encre); }
.fleche:active { transform: scale(.96); }
.fleche:disabled { opacity: .35; cursor: default; background: #fff; color: var(--encre); border-color: #d4d4d4; }
.fleche-petite { width: 44px; height: 44px; }

/* ---------- 3. parfums phares : carrousel en perspective ---------- */
.phares { padding: 72px 0 80px; border-top: 1px solid #ececec; overflow: hidden; }
.phares .section-tete { padding: 0 var(--marge); text-align: center; }
.phares .surtitre { text-align: center; }
.vitrine { position: relative; display: flex; flex-direction: column; align-items: center; }
.piste {
  position: relative; width: 100%; height: calc(var(--carte) + 126px); flex: 0 0 auto;
  perspective: 1300px; perspective-origin: 50% 40%;
  isolation: isolate; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.carte {
  position: absolute; left: 50%; top: 0; width: var(--carte); margin-left: calc(var(--carte) / -2);
  display: block; color: var(--encre); text-decoration: none; transform-origin: 50% 45%; transform-style: preserve-3d;
  transition: transform .7s var(--doux), opacity .7s var(--doux);
  will-change: transform, opacity; -webkit-tap-highlight-color: transparent; cursor: pointer; outline: none;
}
.carte-photo { display: block; aspect-ratio: 1; background: var(--fond-produit); transition: box-shadow .7s var(--doux); }
.carte-photo img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.carte.active .carte-photo { box-shadow: 0 36px 50px -34px rgba(17, 17, 17, .42); }
.carte-texte { display: block; padding: 14px 4px 0; text-align: center; transition: opacity .5s var(--doux); }
.carte:not(.active) .carte-texte { opacity: .55; }
.carte-texte span { display: block; }
.carte-marque { font: 700 13px/1.1 var(--cond); letter-spacing: .06em; text-transform: uppercase; color: #6b6b6b; }
.carte-nom { margin-top: 5px; font: 700 25px/1 var(--cond); text-transform: uppercase; letter-spacing: .01em; text-wrap: balance; }
.carte-info { margin-top: 6px; font: 500 16px/1.1 var(--cond); letter-spacing: .02em; color: var(--gris-fonce); }
.carte-prix { margin-top: 7px; font: 700 19px/1 var(--cond); }
.carte:focus-visible .carte-photo { outline: 2px solid var(--encre); outline-offset: 6px; }
.piste.sans-transition .carte, .piste.glisse .carte, .carte.sans-transition { transition: none; }
.piste.glisse .carte { cursor: grabbing; }
@media (max-width: 700px) { .carte-nom { font-size: 22px; } .carte-info { font-size: 14px; } }

.vitrine-commandes { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.reperes-vitrine { display: flex; max-width: calc(100vw - 150px); }
.reperes-vitrine button {
  flex: 0 1 44px; min-width: 24px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center;
  -webkit-tap-highlight-color: transparent;
}
.reperes-vitrine button::before { content: ""; width: 22px; max-width: calc(100% - 8px); height: 4px; background: #d6d6d6; transition: background-color .3s ease; }
.reperes-vitrine button[aria-current="true"]::before { background: var(--encre); }
.reperes-vitrine button:hover::before { background: #9a9a9a; }
.reperes-vitrine button[aria-current="true"]:hover::before { background: var(--encre); }
.reperes-vitrine button:focus-visible { outline: 2px solid var(--encre); outline-offset: -6px; }
@media (max-width: 700px) { .fleche { width: 48px; height: 48px; } .fleche-petite { width: 44px; height: 44px; } }
.sans-js { text-align: center; font-size: 20px; text-transform: uppercase; }

/* ouverture vers la fiche : voile blanc + la photo qui s'agrandit (créés par hero/accueil.js) */
.voile-ouverture { position: fixed; inset: 0; z-index: 3; background: #fff; opacity: 0; pointer-events: none; }
.carte-ouverture { position: fixed; z-index: 4; background: var(--fond-produit); transform-origin: 0 0; pointer-events: none; will-change: transform; }
.carte-ouverture img { display: block; width: 100%; height: 100%; object-fit: contain; }
body.ouverture-en-cours { pointer-events: none; }
@media (max-width: 640px) { body.ouverture-en-cours .navbar { opacity: 0; transition: opacity .25s ease; } }

/* ---------- services (passe 11) : bande noire pleine largeur, 4 blocs séparés par des filets fins ---------- */
.services { padding: 96px var(--marge) 104px; background: #0d0d0d; color: #f4f4f2; }
.services-tete { max-width: 1180px; margin: 0 auto 56px; text-align: center; }
.services-surtitre { margin: 0 0 14px; font: 400 11px/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: #9b9b98; }
.services-titre { margin: 0; font: 700 clamp(38px, 4.8vw, 64px)/.95 var(--cond); text-transform: uppercase; letter-spacing: .005em; color: #fff; text-wrap: balance; }
.services-liste {
  list-style: none; max-width: 1180px; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .22); border-bottom: 1px solid rgba(255, 255, 255, .22);
}
.service { padding: 34px 30px 38px; min-width: 0; }
.service + .service { border-left: 1px solid rgba(255, 255, 255, .14); }
.service-haut { display: flex; align-items: center; justify-content: space-between; margin: 0 0 40px; }
.service-num { font: 400 12px/1 var(--mono); letter-spacing: .18em; color: #8c8c89; }
.service-icone { width: 52px; height: 52px; border: 1px solid rgba(255, 255, 255, .38); border-radius: 50%; display: grid; place-items: center; color: #fff; }
.service-titre { margin: 0 0 12px; font: 400 12px/1.3 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: #bdbdba; }
.service-fort { margin: 0 0 16px; font: 700 clamp(30px, 2.9vw, 44px)/.95 var(--cond); text-transform: uppercase; letter-spacing: .005em; color: #fff; }
.service-fort span { font-size: .5em; letter-spacing: .04em; color: #bdbdba; }
.service-texte { margin: 0; font: 500 18px/1.35 var(--cond); color: #c9c9c6; overflow-wrap: anywhere; }
.service-texte a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.service-texte a:hover, .service-texte a:focus-visible { text-decoration-color: currentColor; }
.services :focus-visible { outline-color: #fff; }
.services + .pied { border-top: 1px solid rgba(255, 255, 255, .12); }
/* tablette : deux colonnes */
@media (min-width: 701px) and (max-width: 1080px) {
  .services-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service:nth-child(3) { border-left: 0; }
  .service:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
}
/* téléphone : une colonne, chaque bloc en ligne (icône à gauche) */
@media (max-width: 700px) {
  .services { padding: 64px 16px 68px; }
  .services-tete { margin-bottom: 34px; }
  .services-titre { font-size: 42px; }
  .services-liste { grid-template-columns: 1fr; }
  .service { display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; padding: 26px 0 28px; }
  .service + .service { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
  .service-haut { grid-row: 1 / span 3; flex-direction: column; justify-content: flex-start; gap: 12px; margin: 0; }
  .service-num { order: 2; }
  .service-titre { margin-bottom: 8px; }
  .service-fort { margin-bottom: 10px; font-size: 32px; }
  .service-texte { font-size: 17px; }
}

/* ---------- pied de page ---------- */
.pied {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 30px;
  padding: 34px var(--bord) calc(34px + env(safe-area-inset-bottom)); background: #000; color: #fff;
}
.pied-nom { margin: 0; font: 700 22px/1 var(--cond); text-transform: uppercase; letter-spacing: .02em; }
.pied-liens { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
.pied-liens a {
  display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 5px; text-decoration-color: transparent; font: 700 18px/1 var(--cond); text-transform: uppercase; transition: text-decoration-color .15s ease;
}
.pied-liens a:hover, .pied-liens a:focus-visible { text-decoration-color: currentColor; outline: none; }
@media (min-width: 701px) { .pied { padding-left: 28px; padding-right: 28px; } }

@media (prefers-reduced-motion: reduce) {
  .carte { transition-duration: .01ms; }
  .ouverture-appel { transition: none; }
  .resultats-grille .vignette { animation: none; }
}

/* ---------- écran de chargement : celui des autres sites D2B, à l'identique, avec PARFUMERIE sous le logo ---------- */
.chargement {
  position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: radial-gradient(120% 90% at 50% 70%, #807f7b 0%, #6d6c69 45%, #3a3936 100%);
  transition: opacity 1.1s var(--doux), visibility 0s linear 1.1s; z-index: 10;
  animation: chargement-secours .6s ease 10s forwards;   /* filet si le script ne tourne pas */
}
.chargement-logo { display: flex; flex-direction: column; align-items: center; gap: 9px; margin-bottom: 18px; }
.chargement-logo img { width: auto; height: 62px; opacity: .94; }
.chargement-logo span {
  font: 500 13px/1 var(--cond); letter-spacing: .42em; padding-left: .42em; text-transform: uppercase; color: rgba(236, 235, 231, .9);
}
.chargement .texte {
  margin: 0; font: 400 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: rgba(236, 235, 231, .8); font-variant-numeric: tabular-nums;
}
.chargement .barre { width: 140px; height: 1px; background: rgba(236, 235, 231, .2); overflow: hidden; }
.chargement .barre i { display: block; height: 100%; background: #ecebe7; transform: scaleX(0); transform-origin: left; }
.chargement.fini { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes chargement-secours { to { opacity: 0; visibility: hidden; pointer-events: none; } }
body.chargement-en-cours { overflow: hidden; }
body.chargement-en-cours .navbar { visibility: hidden; }
@media (max-width: 640px) { .chargement-logo img { height: 52px; } .chargement-logo span { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .chargement { transition: none; } }
html.intro-vue .chargement { display: none; }
html.intro-vue body.chargement-en-cours { overflow: auto; }
html.intro-vue body.chargement-en-cours .navbar { visibility: visible; }
html.intro-vue body.chargement-en-cours .bulle-panier { opacity: 1; visibility: visible; pointer-events: auto; }
