/* ============================================================================
 * bffr.fr/prestige et /prestige/gift - FINITIONS (2026-12-05, demande ratox :
 * « polish sans changer l'identité »).
 * Chargée APRÈS /prestige/style.css (elle gagne le cascade). Même DA : fond
 * #070709, Archivo, couleurs des formules (turquoise, violet, rouge). On retire
 * ce qui faisait « effet » (titres en dégradé, halos, pulsations), on cale la
 * grille des cartes, les contrastes, et le rendu téléphone (390 px).
 * La feuille prestige_dark.css est partagée avec /prestige/admin : on n'y touche
 * pas, tout passe par ici.
 * ========================================================================== */

/* ---- Accessibilité : focus visible au clavier ---- */
.tier-cta:focus-visible, .tf-toggle:focus-visible, .gift-cta-btn:focus-visible, .vhero__pills a:focus-visible,
.tier-select-btn:focus-visible, .dur-btn:focus-visible, .gift-onyx-btn:focus-visible, .gift-self-btn:focus-visible,
.tier-compare-link:focus-visible {
  outline: 2px solid #A78BFF;
  outline-offset: 3px;
}

/* ==========================================================================
   TITRES DE SECTION : blancs, nets, même taille partout (plus de dégradé ni de halo)
   ========================================================================== */
.compare-title, .convert-title, .lb-title, .gift-header h2 {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #F2F2F6 !important;
  color: #F2F2F6 !important;
  font-size: clamp(1.55rem, 3.4vw, 2.15rem) !important;
  font-weight: 800 !important;
  letter-spacing: -.02em !important;
  line-height: 1.15;
}
.convert-title i { -webkit-text-fill-color: #A78BFF !important; }
.lb-title i { -webkit-text-fill-color: #F5C451 !important; }
.gift-header i { background: none !important; -webkit-text-fill-color: #A78BFF !important; color: #A78BFF !important; }
.lb-title-glow { display: none !important; }
.lb-card--streak .lb-header h3 { background: none !important; -webkit-text-fill-color: #FFB27A !important; }

/* Sous-titres : #5a6a7e était trop pâle sur le fond quasi noir (3,4:1). */
.compare-sub, .convert-sub, .lb-subtitle { color: #9C9CAB !important; line-height: 1.6; }
.compare-header, .convert-header, .lb-section-header { margin-bottom: 30px !important; }
.compare-sub { max-width: 620px; margin: 0 auto; }

/* ==========================================================================
   HERO : pastilles des formules cliquables (vers la carte), sans halo
   ========================================================================== */
.vhero__pills a { text-decoration: none; border-radius: 99px; }
.vhero__pills a span { transition: border-color .2s, background-color .2s; }
.vhero__pills a:hover span { border-color: rgba(255, 255, 255, .32); background: rgba(7, 7, 9, .62); }
.vhero__pills i { box-shadow: none !important; }

/* ==========================================================================
   CARTES DES FORMULES
   ========================================================================== */
.tier-card { scroll-margin-top: 88px; }
/* PC : les trois cartes ont la même hauteur, les boutons « Souscrire » sont alignés en bas. */
@media (min-width: 961px) {
  .tiers-grid { align-items: stretch !important; }
  .tier-card { height: 100%; }
  .tier-card .tier-features { flex: 1 1 auto; }
}

/* Téléphone : chaque carte montre ses 6 premiers avantages, un bouton déplie le reste
   (finitions.js). La liste complète reste dans le HTML (référencement, lecteurs d'écran). */
.tf-toggle { display: none; }
@media (max-width: 960px) {
  .tier-card.tf-pliable:not(.tf-ouvert) .tier-features li:nth-child(n+7) { display: none; }
  .tier-card.tf-pliable .tier-features { margin-bottom: 14px; }
  .tier-card.tf-pliable .tf-toggle {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; min-height: 44px; margin: 0 0 18px; padding: 10px 14px;
    border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .025);
    color: #D7D7E0; font-size: .86rem; font-weight: 600; cursor: pointer;
    transition: background-color .2s, border-color .2s;
  }
  .tier-card.tf-pliable .tf-toggle:hover { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .18); }
  .tf-toggle i { font-size: 1rem; transition: transform .25s ease; }
  .tier-card--prestige .tf-toggle i { color: #4ecdc4; }
  .tier-card--max .tf-toggle i { color: #a29bfe; }
  .tier-card--ultra .tf-toggle i { color: #ff6b6b; }
  .tier-card.tf-ouvert .tf-toggle i { transform: rotate(180deg); }
}

/* Lien « Voir le comparatif complet » sous les cartes empilées. */
.tier-compare-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: #C7C7D2 !important; font-weight: 600; text-decoration: none;
  padding: 8px 12px; border-radius: 10px;
}
.tier-compare-link:hover { color: #fff !important; background: rgba(255, 255, 255, .04); }

/* ==========================================================================
   COMPARATIF : sur téléphone, les 4 colonnes tiennent dans l'écran
   (avant : seule la colonne Prestige était visible, il fallait faire défiler en largeur)
   ========================================================================== */
#comparatif { scroll-margin-top: 80px; }
@media (max-width: 700px) {
  .compare-table-wrap { overflow-x: visible !important; margin: 0 !important; }
  .compare-table { min-width: 0 !important; table-layout: fixed; }
  .compare-table thead th:not(:first-child),
  .compare-table tbody tr:not(.cat-row) td:not(:first-child) { width: 60px; padding-left: 2px !important; padding-right: 2px !important; }
  .compare-table thead th { font-size: .6rem !important; letter-spacing: .05em !important; padding: 14px 2px 12px !important; }
  .compare-table thead th:first-child { padding-left: 14px !important; }
  .compare-table tbody td { font-size: .72rem !important; line-height: 1.35; }
  .compare-table tbody td:first-child { padding: 11px 8px 11px 14px !important; font-size: .8rem !important; }
  .compare-table .cat-row td:first-child { padding-left: 14px !important; }
  .compare-table tbody td i { font-size: 1.05rem; }
  /* Cases à valeur (collecte, boost, parrainage) : l'icône prend la place du texte, la couleur de
     colonne suffit à dire la formule. */
  .compare-table .cv i { display: none; }
  .compare-table .cv { display: inline-block; line-height: 1.3; }
}

/* ==========================================================================
   BLOC « OFFRIR LE PRESTIGE » (bas de /prestige) : carte plate, bouton aux couleurs de la page
   ========================================================================== */
.gift-card {
  background: #0e0e14 !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
.gift-subtitle { color: #B5B7C0 !important; }
.gift-price-preview strong { background: none !important; -webkit-text-fill-color: #F2F2F6 !important; color: #F2F2F6 !important; }
.gift-price-preview { flex-wrap: wrap; justify-content: center; gap: 10px 14px !important; }
.gift-price-preview .onyx-ico { height: 1em; width: auto; vertical-align: -0.14em; }
.gift-discount-tag { white-space: nowrap; background: #16a34a !important; }
.gift-cta-btn {
  background: linear-gradient(135deg, #a29bfe, #8b7cf7) !important;
  color: #fff !important; box-shadow: none !important; font-weight: 700 !important;
}
.gift-cta-btn:hover { transform: translateY(-1px) !important; filter: brightness(1.06); box-shadow: none !important; }

/* Bloc « S'abonner » déconnecté : la phrase sous le bouton répétait le sous-titre. */
#purchase-login .login-hint { display: none; }

/* ==========================================================================
   PAGE /prestige/gift
   ========================================================================== */
/* Hero compact : c'est une page de formulaire, le formulaire doit arriver vite à l'écran. */
.vhero.vhero--compact { min-height: 0 !important; padding: 128px 0 40px !important; }
.vhero--compact h1 { font-size: clamp(2.4rem, 6.4vw, 5rem) !important; }
.vhero--compact .vhero__fruit.f1 { width: 150px; top: 18%; }
.vhero--compact .vhero__fruit.f2 { width: 100px; bottom: 12%; }
.vhero--compact .vhero__fruit.f3 { width: 80px; bottom: 14%; }
@media (max-width: 860px) {
  .vhero.vhero--compact { padding: 104px 0 22px !important; }
  .vhero--compact .vhero__badge { margin-bottom: 18px; }
  .vhero--compact .vhero__p { margin-top: 18px; }
  .vhero--compact .vhero__back { margin-top: 16px; }
}

/* Couleur de la formule choisie, reprise par les étapes, la durée, le récapitulatif et le bouton. */
#gift-form-content { --t: #4ecdc4; --t-rgb: 78, 205, 196; --t-ink: #06201e; }
#gift-form-content[data-tier="max"] { --t: #a29bfe; --t-rgb: 162, 155, 254; --t-ink: #ffffff; }
#gift-form-content[data-tier="ultra"] { --t: #ff5a5a; --t-rgb: 255, 90, 90; --t-ink: #ffffff; }

.gift-main-card { background: #0e0e14 !important; border-color: rgba(255, 255, 255, .08) !important; }
.gift-main-card h2 i { color: #A78BFF; }
.gift-step { margin-bottom: 12px !important; }
.gift-step-num { background: rgba(var(--t-rgb, 162, 155, 254), .13) !important; color: var(--t, #a29bfe) !important; transition: background-color .25s, color .25s; }
.gift-step-label { color: #E4E4EC !important; font-size: .92rem !important; }

/* Formules : plus de zoom ni de halo sur la carte choisie, une bordure nette suffit. */
.tier-select-btn { border-width: 1px !important; transition: border-color .2s, background-color .2s !important; }
.tier-select-btn.active { transform: none !important; box-shadow: none !important; }
.tier-select-btn[data-tier="prestige"].active { border-color: rgba(78, 205, 196, .65) !important; }
.tier-select-btn[data-tier="max"].active { border-color: rgba(162, 155, 254, .65) !important; }
.tier-select-btn[data-tier="ultra"].active { border-color: rgba(255, 90, 90, .65) !important; }
.tier-select-name { color: #9C9CAB !important; }
.tier-select-from { color: #8a8c97 !important; font-size: .74rem !important; white-space: nowrap; }
.tier-select-btn.active .tier-select-from { color: #C7C7D2 !important; }

/* Durées */
.dur-btn { border-width: 1px !important; transition: border-color .2s, background-color .2s !important; }
.dur-btn.active { border-color: rgba(var(--t-rgb), .6) !important; background: rgba(var(--t-rgb), .07) !important; }
.dur-price { color: var(--t) !important; }
/* Pastilles de remise centrées en haut de leur case, comme « MEILLEUR PRIX » (avant, la pastille
   de 3 mois, collée à droite, touchait celle de 6 mois sur téléphone). */
.dur-discount { background: #16a34a !important; right: auto !important; left: 50% !important; transform: translateX(-50%); white-space: nowrap; }
.dur-best { background: #e5484d !important; }

/* Bandeau Ultra 6 mois : plus de pulsation lumineuse en boucle. */
.ultra-6m-banner { animation: none !important; }

/* Destinataire */
.gift-recipient input { font-size: 1rem !important; min-height: 50px; }
.gift-recipient input:focus { border-color: rgba(var(--t-rgb), .55) !important; }
.gift-recipient .input-hint { color: #8a8c97 !important; line-height: 1.5; }
.gift-recipient-row { display: flex; gap: 8px; align-items: stretch; }
.gift-recipient-row input { flex: 1 1 auto; min-width: 0; }
.gift-self-btn {
  flex: 0 0 auto; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .03); color: #E4E4EC; font-size: .85rem; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: background-color .2s, border-color .2s;
}
.gift-self-btn:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .22); }
.gift-self-btn[hidden] { display: none; }

/* Récapitulatif + paiement : le bouton de paiement est LE bouton principal de la page. */
.gift-summary-price { color: var(--t) !important; }
.gift-onyx-balance { color: #B5B7C0 !important; }
.gift-onyx-balance a, .gift-onyx-link { color: #C4B5FF !important; }
.gift-onyx-btn {
  background: var(--t) !important; color: var(--t-ink) !important; border: none !important;
  min-height: 54px; font-size: 1rem !important; font-weight: 800 !important; border-radius: 14px !important;
  transition: filter .2s, transform .2s, background-color .25s !important;
}
.gift-onyx-btn:hover:not(:disabled) { filter: brightness(1.07); transform: translateY(-1px); }
.gift-stripe-hint { color: #8a8c97 !important; font-size: .78rem !important; line-height: 1.5; }
.gift-login-hint { color: #8a8c97 !important; }

@media (max-width: 520px) {
  .tier-select-from { font-size: .7rem !important; }
  .gift-self-btn { padding: 0 12px; font-size: .8rem; }
}

/* ==========================================================================
   BLOC D'ACHAT : bouton PayPal sans fond blanc (2026-12-05)
   Le site est en `color-scheme: dark` ; la fenêtre intégrée de PayPal est en thème clair, et un
   navigateur peint alors un fond OPAQUE (blanc) derrière une iframe dont le thème diffère.
   Même thème des deux côtés = fond transparent.
   ========================================================================== */
#purchase-paypal-container, #purchase-paypal-container iframe, #purchase-paypal-container .paypal-buttons {
  color-scheme: light;
  background: transparent !important;
}
#purchase-paypal-container { min-height: 45px; }
.payment-options .stripe-button { min-height: 45px; border-radius: 999px; }
