/* =============================================================================
   FRENCH AURA — BUNDLE-PAGE.CSS
   Fiche produit bundle (Bundle 1 — Trio Signature, Bundle 2), page dédiée
   /trio-signature/ ou /bundle-2/.

   Composant autonome (chantier découplage du 20/08) : toutes les classes de
   présentation propres à cette page (préfixe .bp-*) sont définies ICI, pas
   ailleurs — plus aucune classe partagée avec front-page.css/front-page.php
   (la vignette "Trio Signature"/"Bundle 2" de l'accueil a ses propres
   classes .signature-bundle/.bundle-*, non touchées, et aura sa propre
   refonte séparément).

   Deux familles de classes RESTENT volontairement partagées, pas dupliquées :
     - .prdt-* / .fa-single-product / #imgModal (single-product.css) :
       similarités assumées avec la fiche produit simple.
     - .trio-slot* : sortie HTML de fa_bundles_render_slots() (inc/bundles.php,
       logique métier centralisée — état réel du panier). Le nom de classe
       n'est donc pas renommé ici, seule sa présentation reste définie dans CE
       fichier puisque cette page est aujourd'hui son unique consommateur.
   ============================================================================= */

/* ── Espacement du haut de page : neutraliser le doublon avec front-page.css ──
   front-page.css définit un `main{margin-top:110px;padding:20px 0}` générique
   (chargé ici pour d'autres classes de l'accueil) qui s'ajoutait au
   padding-top:130px de .fa-single-product (single-product.css) — absent sur
   la fiche produit simple, qui ne charge jamais front-page.css. On aligne : seul
   .fa-single-product doit gouverner l'espacement du haut, comme sur cette page. */
.fa-bundle-page-main {
  margin-top: 0;
}

/* ── Galerie collante (mockup : .gal{position:sticky}) — la colonne d'achat
   est plus longue que la galerie (fioles, prix, slots, puces, accordéon…).
   position:sticky natif fonctionne (overflow-x:clip sur html/body depuis
   main.css — ne crée pas de scroll container, contrairement à `hidden`,
   donc ne casse pas le sticky ; voir main.css). .bp-gallery-slot reste
   dans le flux flex (occupe la colonne, s'étire à la hauteur de la colonne
   d'achat par le align-items:stretch par défaut) ; .prdt-imgs-outer à
   l'intérieur est l'élément réellement sticky. */
.bp-gallery-slot {
  position: relative;
  max-width: 50%;
  width: 100%;
}
/* .prdt-imgs-outer hérite aussi max-width:50% de single-product.css (pensé
   pour être enfant direct de .prdt-section) — ici il est enfant de
   .bp-gallery-slot (déjà à 50%), sans ce correctif il ferait 50% de 50%. */
.fa-bundle-page .prdt-imgs-outer {
  max-width: 100%;
  width: 100%;
  position: sticky;
  top: 130px;
}

/* ── Colonne d'achat ── */
.bp-buy {
  display: flex;
  flex-direction: column;
}
.bp-tag {
  color: var(--color-gold-active);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  display: block;
}
.bp-desc {
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.6;
  max-width: 70%;
}
.bp-img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    var(--color-shimmer-start) 0%,
    var(--color-shimmer-mid) 50%,
    var(--color-shimmer-start) 100%
  );
  background-size: 200% 100%;
  animation: bp-shimmer 2s infinite;
}
@keyframes bp-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ── Prix ── */
.bp-pricing {
  right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: flex-start;
}
.bp-price-old {
  color: var(--color-text-secondary);
  font-size: 14px;
  text-decoration: line-through;
}
.bp-price-new {
  font-size: 35px;
  font-weight: 600;
  color: var(--color-heading);
}
.bp-price-badge {
  background-color: var(--color-accent-wash);
  border: 1px solid var(--color-gold-warm-1);
  color: var(--color-gold-warm-1);
  letter-spacing: 0.1em;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
}

/* ── En-tête du composeur ── */
.bp-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.bp-picker-header span:first-child {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
}
.bp-counter {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-gold-active);
  text-align: right;
}

/* ── Emplacements de sélection (.trio-slot* = sortie de
   fa_bundles_render_slots(), inc/bundles.php — voir note d'en-tête) ── */
.bp-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 14px 0 4px;
}
.trio-slot {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.trio-slot:hover {
  border-color: var(--color-gold-active);
  background: var(--color-accent-light);
}
.trio-slot__plus {
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  color: var(--color-gold-active);
}
.trio-slot.is-filled {
  background: var(--color-surface);
  border-color: var(--color-gold-active);
  overflow: hidden;
}
.trio-slot.is-filled img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trio-slot__name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.72);
  color: var(--color-surface);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trio-slot__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.72);
  color: var(--color-surface);
  font-size: 11px;
  line-height: 20px;
  text-align: center;
  transition: background 0.2s ease;
}
.trio-slot__remove:hover {
  background: var(--color-red);
}
.trio-slot__add {
  appearance: none;
  background: transparent;
  border: none;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.trio-slot--free {
  cursor: default;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.trio-slot--free:hover {
  border-color: var(--color-border);
  background: var(--color-bg-subtle);
}
/* Icône boîte cadeau (fa_bundles_gift_icon_svg) — même icône aux 2 états
   (verrouillé / débloqué non accordé), seule la couleur change. */
.trio-slot--free .trio-slot__gift-icon {
  width: 40px;
  aspect-ratio: 1;
}
.trio-slot--free.is-locked .trio-slot__gift-icon .fa-gift-dark {
  fill: var(--color-text-secondary);
}
.trio-slot--free.is-locked .trio-slot__gift-icon .fa-gift-light {
  fill: var(--color-text-subtle);
}
.trio-slot--free:not(.is-locked):not(.is-filled) .trio-slot__gift-icon .fa-gift-dark {
  fill: var(--color-gold-hover);
}
.trio-slot--free:not(.is-locked):not(.is-filled) .trio-slot__gift-icon .fa-gift-light {
  fill: var(--color-gold-active);
}
.trio-slot--free .trio-slot__hint {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
.trio-slot--free.is-locked {
  opacity: 0.55;
}
.trio-slot--free:not(.is-locked):not(.is-filled) .trio-slot__hint {
  color: var(--color-gold-active);
}
/* Palier débloqué, pas encore accordé : slot cliquable (ouvre la modale de
   choix offert), même traitement visuel que les slots payants. */
.trio-slot--free[data-fa-claim-free] {
  cursor: pointer;
}
.trio-slot--free[data-fa-claim-free]:hover {
  border-color: var(--color-gold-active);
  background: var(--color-accent-light);
}
/* Offert déjà accordé : slot cliquable pour en changer (retire puis rouvre
   le sélecteur offert), même affordance que les slots payants remplis. */
.trio-slot--free.is-filled {
  cursor: pointer;
}
.trio-slot--free.is-filled:hover {
  border-color: var(--color-gold-active);
  background: var(--color-accent-light);
}
.trio-slot--free.is-filled .trio-slot__free-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--color-gold-active);
  color: var(--color-ui-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
}

/* ── Bouton principal (CTA panier, nudge, barre collante) — reprend le
   design du bouton "Ajouter au panier" de la fiche produit simple
   (.primary-btn.add-cart-btn, single-product.css), copié ici plutôt que
   partagé entre pages (indépendance assumée, voir en-tête de fichier). ── */
.bp-cta {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid var(--color-gold-warm-1);
  border-radius: 5px;
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 2%;
  padding: 16px 32px;
  margin-top: 1.25rem;
  cursor: pointer;
  text-decoration: none;
  background: var(--color-ui-dark);
  color: var(--color-surface);
  transition: background-color 0.3s ease;
  animation: bp-border-effect 1.8s ease-out infinite;
}
.bp-cta p:first-child {
  padding: 0 10px;
  border-right: 1px solid var(--color-surface);
}
.bp-cta:hover {
  background: var(--color-gold-hover);
}
.bp-cta:active {
  transform: scale(0.97);
}
@keyframes bp-border-effect {
  0% { border-color: var(--color-gold-warm-1); }
  70% { border-color: var(--color-gold-warm-2); }
  100% { border-color: var(--color-gold-warm-1); }
}

/* ── Note de bas de bloc ── */
.bp-footnote {
  font-size: 10px;
  color: var(--color-text-secondary);
  text-align: center;
  margin-top: 10px;
}

/* ── Fioles payé / offert ── */
.bp-fioles {
  margin-top: 16px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
}
.bp-fiole {
  width: 22px;
  height: 34px;
  flex: none;
}
.bp-fiole svg {
  width: 100%;
  height: 100%;
  display: block;
}
.bp-fiole--paye .bp-fiole__cap,
.bp-fiole--paye .bp-fiole__body {
  fill: var(--color-heading);
}
.bp-fiole--don .bp-fiole__body {
  fill: rgba(197, 160, 40, 0.1);
  stroke: var(--color-gold-active);
  stroke-width: 1.3;
}
.bp-fiole--don .bp-fiole__cap {
  fill: var(--color-gold-active);
}
.bp-fioles__legend {
  margin-left: 10px;
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.4;
}
.bp-fioles__legend strong {
  display: block;
  color: var(--color-heading);
  font-weight: 600;
}
.bp-fioles__tag {
  display: block;
  margin-top: 1px;
  color: var(--color-gold-active);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Bandeau vers l'autre offre ── */
.bp-nudge {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  background: var(--color-ui-dark);
}
.bp-nudge__content {
  position: relative;
  width: 100%;
  max-width: 1280px;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0.1em;
}
.bp-nudge__title {
  font-weight: 300;
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--color-surface);
}
.bp-nudge__title strong {
  color: var(--color-gold-active);
}
.bp-nudge__desc {
  margin-top: 4px;
  font-size: 13px;
  color: var(--color-surface);
}
.bp-nudge__cta {
  animation: unset;
  background-color: var(--color-gold-warm-1);
  color: var(--color-heading);
  width: auto;
  flex: none;
  padding: 12px 20px;
  margin-top: 0;
  letter-spacing: 0.1em;
  font-size: 13px;
}

/* ── Barre collante ── */
.bp-sbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
  transform: translateY(100%);
  transition: transform 0.35s var(--easing, ease);
}
.bp-sbar.is-visible {
  transform: none;
}
.bp-sbar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.bp-sbar__info {
  display: flex;
  flex-direction: column;
}
.bp-sbar__name {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-heading);
}
.bp-sbar__price {
  font-size: 13px;
  color: var(--color-text-secondary);
}
.bp-sbar .bp-cta {
  width: auto;
  margin-top: 0;
  padding: 13px 22px;
}

/* ── Responsive ── */
@media (max-width: 880px) {
  .bp-nudge {
    padding: 24px;
  }
}
@media (max-width: 868px) {
  /* Layout une colonne (cf. single-product.css) : rien à accrocher, une
     galerie sticky y gênerait plutôt qu'autre chose. */
  .fa-bundle-page .prdt-imgs-outer {
    position: static;
  }
}
