/* Essences de Dubai : fiches produits + vitrines du blog + barres d'achat.
   Reprend les codes du site : noir profond, or #c9a84c → #ead08b, titres Luxerie en capitales espacées. */
:root {
  --or: #c9a84c;
  --or-clair: #ead08b;
  --or-degrade: linear-gradient(135deg, #c9a84c 0%, #ead08b 100%);
  --noir: #050505;
  --noir-carte: #0e0d0b;
  --creme: #f6f1e7;
  --trait-or: rgba(201, 168, 76, 0.28);
  --texte-doux: rgba(255, 255, 255, 0.68);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================== FICHE PRODUIT ============================== */
body.page-fiche { background: var(--noir); color: #fff; }
.fiche { font-family: var(--font-body, 'Inter', sans-serif); }
.fiche-wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

.fiche-hero {
  position: relative; overflow: hidden;
  padding: clamp(130px, 14vw, 170px) 0 clamp(60px, 7vw, 100px);
  background:
    radial-gradient(60% 55% at 25% 30%, rgba(201, 168, 76, 0.16), transparent 70%),
    radial-gradient(40% 40% at 85% 10%, rgba(234, 208, 139, 0.07), transparent 70%),
    var(--noir);
}
.fiche-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("/assets/noise.svg"); opacity: 0.05; mix-blend-mode: overlay;
}
.fiche-ariane { font-size: 0.75rem; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.45); margin-bottom: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.fiche-ariane a { color: rgba(255, 255, 255, 0.6); text-decoration: none; transition: color .3s; }
.fiche-ariane a:hover { color: var(--or-clair); }

.fiche-grille { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }

.fiche-galerie { position: relative; }
.fiche-visuel {
  position: relative; aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden;
  background: linear-gradient(145deg, #1b150a, #0b0a08);
  border: 1px solid var(--trait-or);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.65), 0 0 120px rgba(201, 168, 76, 0.10);
}
.fiche-visuel img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.fiche-visuel:hover img { transform: scale(1.04); }
.fiche-vignettes { display: flex; gap: 12px; margin-top: 16px; }
.fiche-vignette {
  width: 76px; height: 76px; padding: 0; border-radius: 14px; overflow: hidden; cursor: pointer;
  background: #111; border: 1px solid rgba(255, 255, 255, 0.12); opacity: .65; transition: all .3s;
}
.fiche-vignette img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fiche-vignette.active, .fiche-vignette:hover { opacity: 1; border-color: var(--or); box-shadow: 0 0 0 1px var(--or); }

.fiche-achat { position: sticky; top: 120px; }
.fiche-surtitre { font-size: 0.7rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--or); margin: 0 0 14px; }
.fiche-surtitre--centre { text-align: center; }
.fiche-titre {
  font-family: var(--font-main, "Luxerie", serif); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.6rem, 5.2vw, 4.4rem); letter-spacing: 0.12em; line-height: 1.02; margin: 0 0 18px; color: #fff;
}
.fiche-puces { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.fiche-puces span, .vitrine-puces span {
  font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--or-clair);
  border: 1px solid var(--trait-or); border-radius: 999px; padding: 6px 12px; background: rgba(201, 168, 76, 0.06);
}
.fiche-accroche { font-size: 1.05rem; line-height: 1.75; color: var(--texte-doux); margin: 0 0 26px; max-width: 34em; }
.fiche-prix { display: flex; align-items: baseline; gap: 14px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.fiche-montant { font-size: 2.6rem; font-weight: 600; letter-spacing: -0.01em; background: var(--or-degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fiche-tva { font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); }
.fiche-seuil { font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); margin: 6px 0 22px; }

.fiche-actions { display: flex; gap: 12px; margin-bottom: 12px; }
.fiche-qte {
  display: flex; align-items: center; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); overflow: hidden; flex-shrink: 0;
}
.fiche-qte button { width: 42px; height: 54px; background: none; border: 0; color: #fff; font-size: 1.2rem; cursor: pointer; transition: color .3s; }
.fiche-qte button:hover { color: var(--or-clair); }
.fiche-qte input { width: 34px; text-align: center; background: none; border: 0; color: #fff; font-size: 1rem; -moz-appearance: textfield; }
.fiche-qte input::-webkit-outer-spin-button, .fiche-qte input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.fiche-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px; cursor: pointer; text-decoration: none;
  font-family: var(--font-body, 'Inter', sans-serif); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s, color .3s;
}
.fiche-btn--or { flex: 1; border: 0; color: #0a0a0a; background: var(--or-degrade); box-shadow: 0 12px 30px rgba(201, 168, 76, 0.25); }
.fiche-btn--or:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(201, 168, 76, 0.38); }
.fiche-btn--contour { width: 100%; background: transparent; color: var(--or-clair); border: 1px solid var(--or); }
.fiche-btn--contour:hover { background: rgba(201, 168, 76, 0.1); }
.fiche-btn.est-ajoute { background: #1d1a12; color: var(--or-clair); box-shadow: none; }

.fiche-garanties { list-style: none; padding: 22px 0 0; margin: 24px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.08); display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.fiche-garanties li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.8rem; line-height: 1.45; color: rgba(255, 255, 255, 0.55); }
.fiche-garanties svg { color: var(--or); flex-shrink: 0; margin-top: 1px; }
.fiche-garanties strong { display: block; color: #fff; font-weight: 600; font-size: 0.82rem; }

/* Pyramide olfactive (section claire, comme les sections crème de l'accueil) */
.fiche-pyramide { background: var(--creme); color: #141414; padding: clamp(70px, 9vw, 120px) 0; }
.fiche-h2 { font-family: var(--font-main, "Luxerie", serif); font-weight: 400; text-transform: uppercase; letter-spacing: 0.14em; text-align: center; font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 0 0 18px; }
.fiche-description { max-width: 46em; margin: 0 auto 50px; text-align: center; font-size: 1.02rem; line-height: 1.85; color: rgba(20, 20, 20, 0.7); }
.fiche-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fiche-note {
  background: #fff; border-radius: 22px; padding: 34px 28px; text-align: center;
  border: 1px solid rgba(201, 168, 76, 0.22); box-shadow: 0 20px 50px rgba(60, 45, 10, 0.07);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.fiche-note:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(60, 45, 10, 0.12); }
.fiche-note-num { display: block; font-size: 1.6rem; color: var(--or); margin-bottom: 10px; }
.fiche-note-label { font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(20, 20, 20, 0.5); margin: 0 0 12px; }
.fiche-note-valeur { font-size: 1.12rem; font-weight: 600; margin: 0 0 8px; color: #141414; }
.fiche-note-aide { font-size: 0.82rem; color: rgba(20, 20, 20, 0.5); margin: 0; font-style: italic; }

/* Coffret */
.fiche-coffret { background: var(--creme); padding: 0 0 clamp(70px, 9vw, 120px); }
.fiche-coffret-carte {
  max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; overflow: hidden;
  background: radial-gradient(70% 90% at 0% 0%, rgba(201, 168, 76, 0.18), transparent 60%), #0a0907;
  border-radius: 30px; color: #fff; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25);
  margin-left: clamp(16px, 4vw, 40px); margin-right: clamp(16px, 4vw, 40px);
}
@media (min-width: 1200px) { .fiche-coffret-carte { margin-left: auto; margin-right: auto; } }
.fiche-coffret-carte img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; display: block; }
.fiche-coffret-infos { padding: clamp(28px, 4vw, 56px); }
.fiche-coffret-infos h2 { font-weight: 400; text-transform: uppercase; letter-spacing: 0.14em; font-size: clamp(1.5rem, 2.8vw, 2.2rem); margin: 0 0 14px; }
.fiche-coffret-infos p { color: var(--texte-doux); line-height: 1.7; margin: 0 0 20px; }
.fiche-coffret-prix { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.fiche-coffret-prix s { color: rgba(255, 255, 255, 0.4); }
.fiche-coffret-prix span { font-size: 2.2rem; font-weight: 600; color: var(--or-clair); }
.fiche-coffret-infos .fiche-btn { flex: none; }

/* Suggestions */
.fiche-suggestions { padding: clamp(70px, 9vw, 120px) 0; background: radial-gradient(50% 60% at 50% 0%, rgba(201, 168, 76, 0.08), transparent 70%), var(--noir); }
.fiche-suggestions .fiche-h2 { color: #fff; margin-bottom: 44px; }
.fiche-sugg-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fiche-sugg { background: var(--noir-carte); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 22px; overflow: hidden; transition: transform .5s var(--ease), border-color .5s; }
.fiche-sugg:hover { transform: translateY(-8px); border-color: var(--trait-or); }
.fiche-sugg-visuel { display: block; aspect-ratio: 1; overflow: hidden; }
.fiche-sugg-visuel img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.fiche-sugg:hover .fiche-sugg-visuel img { transform: scale(1.06); }
.fiche-sugg-infos { padding: 18px 18px 20px; }
.fiche-sugg-nom { display: block; color: #fff; text-decoration: none; text-transform: uppercase; letter-spacing: 0.12em; font-size: 1rem; margin-bottom: 4px; }
.fiche-sugg-famille { font-size: 0.75rem; color: rgba(255, 255, 255, 0.45); margin: 0 0 14px; }
.fiche-sugg-bas { display: flex; align-items: center; justify-content: space-between; }
.fiche-sugg-bas span { color: var(--or-clair); font-weight: 600; }
.fiche-sugg-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.3rem; line-height: 1;
  background: var(--or-degrade); color: #0a0a0a; transition: transform .3s;
}
.fiche-sugg-btn:hover { transform: scale(1.1) rotate(90deg); }

/* ============================== BARRE D'ACHAT FIXE ============================== */
.barre-achat {
  position: fixed; left: 50%; bottom: calc(16px + var(--barre-decalage, 0px)); z-index: 900;
  transform: translate(-50%, 140%); opacity: 0;
  display: flex; align-items: center; gap: 14px; width: min(560px, calc(100vw - 24px));
  padding: 10px 10px 10px 12px; border-radius: 999px;
  background: rgba(12, 11, 9, 0.88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--trait-or); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  transition: transform .6s var(--ease), opacity .4s;
}
.barre-achat[hidden] { display: flex; visibility: hidden; }
.barre-achat.visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.barre-achat img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1px solid var(--trait-or); }
.barre-achat-infos { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.barre-achat-nom { color: #fff; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre-achat-prix { color: var(--or-clair); font-weight: 600; font-size: 0.9rem; }
.barre-achat .fiche-btn { flex: none; min-height: 46px; padding: 0 22px; font-size: 0.7rem; }

/* ============================== VITRINE DU BLOG ============================== */
.vitrine { margin: 34px 0 46px; font-family: var(--font-body, 'Inter', sans-serif); }
.vitrine-surtitre { font-size: 0.68rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--or); margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.vitrine-surtitre::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--trait-or), transparent); }
.vitrine-grille { display: grid; gap: 16px; }
.vitrine--duo .vitrine-grille { grid-template-columns: 1fr 1fr; }
.vitrine-carte {
  position: relative; display: grid; grid-template-columns: 220px 1fr; gap: 0; overflow: hidden;
  border-radius: 24px; border: 1px solid var(--trait-or);
  background: radial-gradient(80% 120% at 0% 0%, rgba(201, 168, 76, 0.14), transparent 60%), linear-gradient(160deg, #13110c, #080807);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.vitrine-carte:hover { transform: translateY(-4px); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(201, 168, 76, 0.08); }
.vitrine-carte--grande { grid-template-columns: 260px 1fr; }
.vitrine--duo .vitrine-carte { grid-template-columns: 1fr; }
.vitrine-visuel { display: block; overflow: hidden; background: #0b0a08; aspect-ratio: 1; }
.vitrine-visuel img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.vitrine-carte:hover .vitrine-visuel img { transform: scale(1.05); }
.vitrine-infos { padding: 22px 26px 22px; display: flex; flex-direction: column; justify-content: center; }
.vitrine-puces { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.vitrine-puces span { font-size: 0.6rem; padding: 4px 10px; }
.vitrine-nom { font-family: var(--font-main, "Luxerie", serif); color: #fff; text-transform: uppercase; letter-spacing: 0.12em; font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0 0 4px; line-height: 1.1; }
.vitrine-format { font-size: 0.74rem; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.45); margin: 0 0 12px; }
.vitrine-accroche { font-size: 0.92rem; line-height: 1.65; color: var(--texte-doux); margin: 0 0 16px; }
.vitrine-notes { font-size: 0.82rem; color: var(--texte-doux); margin: 0 0 16px; }
.vitrine-achat { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.vitrine-prix { font-size: 1.6rem; font-weight: 600; color: var(--or-clair); display: flex; align-items: baseline; gap: 8px; }
.vitrine-avant { font-size: 0.95rem; font-weight: 400; color: rgba(255, 255, 255, 0.4); }
.vitrine-btn {
  flex: 1; min-width: 170px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--or-degrade); color: #0a0a0a; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(201, 168, 76, 0.22); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.vitrine-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(201, 168, 76, 0.36); }
.vitrine-btn.est-ajoute { background: #1d1a12; color: var(--or-clair); box-shadow: none; }
.vitrine-lien { margin-top: 14px; font-size: 0.78rem; letter-spacing: 0.08em; color: var(--or-clair); text-decoration: none; align-self: flex-start; border-bottom: 1px solid transparent; transition: border-color .3s; }
.vitrine-lien:hover { border-color: var(--or-clair); }
.vitrine-rassurance { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 14px 0 0; }
.vitrine-rassurance li { font-size: 0.74rem; color: rgba(255, 255, 255, 0.5); display: flex; align-items: center; gap: 8px; }
.vitrine-rassurance li::before { content: "✓"; color: var(--or); font-weight: 700; }

/* ============================== MOBILE ============================== */
@media (max-width: 900px) {
  .fiche-grille { grid-template-columns: 1fr; }
  .fiche-achat { position: static; }
  .fiche-notes { grid-template-columns: 1fr; }
  .fiche-coffret-carte { grid-template-columns: 1fr; }
  .fiche-coffret-carte img { max-height: 300px; }
  .fiche-sugg-grille { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 640px) {
  .fiche-hero { padding-top: 120px; }
  .fiche-visuel { border-radius: 22px; }
  .fiche-vignette { width: 62px; height: 62px; }
  .fiche-garanties { grid-template-columns: 1fr; }
  .fiche-actions { flex-direction: row; }
  .fiche-btn { font-size: 0.7rem; letter-spacing: 0.12em; padding: 0 18px; white-space: nowrap; }
  .vitrine-carte, .vitrine-carte--grande { grid-template-columns: 1fr; }
  .vitrine-visuel { aspect-ratio: 16 / 11; }
  .vitrine--duo .vitrine-grille { grid-template-columns: 1fr 1fr; gap: 10px; }
  .vitrine--duo .vitrine-visuel { aspect-ratio: 1; }
  .vitrine--duo .vitrine-infos { padding: 14px; }
  .vitrine--duo .vitrine-puces, .vitrine--duo .vitrine-format, .vitrine--duo .vitrine-lien { display: none; }
  .vitrine--duo .vitrine-nom { font-size: 1.05rem; }
  .vitrine--duo .vitrine-notes { font-size: 0.72rem; margin-bottom: 10px; }
  .vitrine--duo .vitrine-prix { font-size: 1.2rem; }
  .vitrine--duo .vitrine-btn { min-width: 0; width: 100%; font-size: 0.62rem; letter-spacing: 0.12em; padding: 0 10px; }
  .barre-achat { border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .fiche *, .vitrine *, .barre-achat { transition: none !important; }
}
