/* BDX — Pages vivantes : hero + stats + cartes + bande CTA (chargé sur assistance,
   contact et les endpoints fidélité/parrainage uniquement). */

/* Pleine largeur pour les deux pages classiques (le remède anti-rétrécissement flex). */
body.page-id-1000 .bdx-content, body.page-id-2274 .bdx-content { max-width: none !important; width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; box-sizing: border-box; padding: 0 clamp(12px, 2vw, 28px); }
body.page-id-1000 .bdx-page-content, body.page-id-2274 .bdx-page-content { max-width: 100% !important; width: 100%; }
body.page-id-1000 .bdx-page-body, body.page-id-2274 .bdx-page-body { background: none; border: none; padding: 0; box-shadow: none; width: 100%; box-sizing: border-box; }
/* Le titre thème devient redondant (le hero porte le sien). */
body.page-id-1000 .bdx-page-header, body.page-id-2274 .bdx-page-header { display: none; }

/* Hero */
.bdxv-hero { position: relative; overflow: hidden; text-align: center; background: linear-gradient(120deg, #111827, #1f2937 55%, #374151); border-radius: 20px; padding: 48px 24px 42px; margin: 0 0 24px; }
.bdxv-hero::before { content: ""; position: absolute; right: -60px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(252,175,59,.3), transparent 70%); }
.bdxv-hero::after { content: ""; position: absolute; left: -80px; bottom: -120px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(252,175,59,.14), transparent 70%); }
.bdxv-hero-compact { padding: 34px 20px 30px; border-radius: 16px; }
.bdxv-eyebrow { position: relative; display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #FCAF3B; margin-bottom: 10px; }
.bdxv-hero h1 { position: relative; color: #fff; font-size: clamp(24px, 3vw, 36px); font-weight: 900; margin: 0 0 10px; line-height: 1.15; }
.bdxv-hero-compact h1 { font-size: clamp(21px, 2.4vw, 28px); }
.bdxv-hero p { position: relative; color: rgba(255,255,255,.84); font-size: 15.5px; max-width: 640px; margin: 0 auto 20px; line-height: 1.55; }
.bdxv-stats { position: relative; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.bdxv-stats span { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 999px; padding: 7px 16px; font-size: 13.5px; font-weight: 600; }
.bdxv-stats strong { font-weight: 800; margin-right: 4px; color: #FCAF3B; }

/* Cartes-liens */
.bdxv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 0 0 26px; }
.bdxv-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1.5px solid #e5e7eb; border-radius: 14px; padding: 18px 20px; text-decoration: none !important; transition: border-color .15s, box-shadow .15s, transform .15s; }
.bdxv-card:hover { border-color: #FCAF3B; box-shadow: 0 6px 20px rgba(0,0,0,.07); transform: translateY(-2px); }
.bdxv-card strong { font-size: 15px; font-weight: 800; color: #111; }
.bdxv-card span { font-size: 13px; color: #6b7280; line-height: 1.5; }
.bdxv-card b { font-size: 13px; font-weight: 800; color: #b45309; margin-top: 4px; }

/* Tête de section */
.bdxv-sec-head h2 { font-size: 18px; font-weight: 800; color: #111; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.bdxv-sec-head h2::after { content: ""; flex: 1; height: 1.5px; background: linear-gradient(90deg, #e5e7eb, transparent); }

/* Bande CTA */
.bdxv-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: linear-gradient(120deg, #111827, #1f2937 55%, #374151); border-radius: 16px; padding: 20px 26px; margin: 28px 0 0; position: relative; overflow: hidden; }
.bdxv-cta::before { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(252,175,59,.28), transparent 70%); }
.bdxv-cta-txt { display: flex; flex-direction: column; gap: 4px; position: relative; }
.bdxv-cta-txt strong { color: #fff; font-size: 16.5px; font-weight: 800; }
.bdxv-cta-txt span { color: rgba(255,255,255,.75); font-size: 13.5px; }
.bdxv-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
.bdxv-cta-btn { display: inline-block; padding: 10px 18px; border-radius: 10px; font-size: 13.5px; font-weight: 700; text-decoration: none !important; color: #fff !important; border: 1.5px solid rgba(255,255,255,.35); transition: border-color .15s, color .15s, transform .15s, background .15s; }
.bdxv-cta-btn:hover { border-color: #FCAF3B; color: #FCAF3B !important; transform: translateY(-1px); }
.bdxv-cta-btn-plein { background: #FCAF3B; border-color: #FCAF3B; color: #111 !important; }
.bdxv-cta-btn-plein:hover { background: #f5a017; color: #111 !important; }

@media (max-width: 640px) { .bdxv-hero { padding: 34px 16px 30px; } }

/* ══════════════════════════════════════════════════════════════════════════
   PLEINE LARGEUR — correctifs du 13/08 (mesurés, pas devinés)
   ══════════════════════════════════════════════════════════════════════════
   Chaque page était bridée par un élément DIFFÉRENT :
   · /contact/ (2274) : un <style> INLINE de la page à 1280px — corrigé dans le contenu ;
   · /assistance/ (1000) : déjà pleine largeur, mais .bdx-assist se centrait sur 900px ;
   · fidélité/parrainage : .bdx-page-content 1000px + .woocommerce(-MyAccount-content) 1100px,
     et aucune classe de body ne distinguait ces endpoints → marqueur `bdxv-large` posé en PHP. */

/* — Mon compte : fidélité + parrainage uniquement — */
body.bdxv-large .bdx-content { max-width: none !important; width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; box-sizing: border-box; }
body.bdxv-large .bdx-page-content { max-width: 100% !important; width: 100%; }
body.bdxv-large .bdx-page-body { background: none; border: none; padding: 0; box-shadow: none; width: 100%; box-sizing: border-box; }
body.bdxv-large .woocommerce,
body.bdxv-large .woocommerce-MyAccount-content { max-width: 100% !important; width: 100%; box-sizing: border-box; }
/* Le titre « Mon compte » du thème fait doublon avec le hero de la section. */
body.bdxv-large .bdx-page-header { display: none; }

/* — Assistance : deux colonnes (formulaire + tickets à gauche, FAQ à droite) — */
body.page-id-1000 .bdx-assist {
  max-width: 100%; margin: 0;
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  gap: 26px; align-items: start;
}
body.page-id-1000 .bdx-assist > .bdx-tabs { grid-column: 1; grid-row: 1; margin-bottom: 18px; }
body.page-id-1000 .bdx-assist > .bdx-tab-panel { grid-column: 1; grid-row: 2; }
body.page-id-1000 .bdx-assist > .bdx-faq { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; border-top: none; padding-top: 0; position: sticky; top: 90px; }
@media (max-width: 1000px) {
  body.page-id-1000 .bdx-assist { grid-template-columns: 1fr; }
  body.page-id-1000 .bdx-assist > .bdx-tabs,
  body.page-id-1000 .bdx-assist > .bdx-tab-panel,
  body.page-id-1000 .bdx-assist > .bdx-faq { grid-column: 1; grid-row: auto; position: static; }
}

/* — Assistance : le formulaire passe à la charte (il était bleu générique) — */
body.page-id-1000 .bdx-assist > .bdx-tab-panel { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 16px; padding: 22px 24px; }
body.page-id-1000 .bdx-tabs { border-bottom: 1.5px solid #e5e7eb; }
body.page-id-1000 .bdx-tab { font-weight: 700; color: #6b7280; }
body.page-id-1000 .bdx-tab.active { color: #111827; border-bottom-color: #FCAF3B; }
body.page-id-1000 .bdx-form-group label { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #374151; }
body.page-id-1000 .bdx-form-group input,
body.page-id-1000 .bdx-form-group select,
body.page-id-1000 .bdx-form-group textarea { border: 1.5px solid #d1d5db; border-radius: 9px; padding: 11px 13px; font-family: inherit; }
body.page-id-1000 .bdx-form-group input:focus,
body.page-id-1000 .bdx-form-group select:focus,
body.page-id-1000 .bdx-form-group textarea:focus { border-color: #FCAF3B; box-shadow: 0 0 0 3px rgba(252,175,59,.18); }
body.page-id-1000 .bdx-btn { background: #FCAF3B; color: #111; font-weight: 800; border-radius: 10px; padding: 12px 22px; }
body.page-id-1000 .bdx-btn:hover { background: #f5a017; }
body.page-id-1000 .bdx-faq h3 { font-size: 17px; font-weight: 800; }
body.page-id-1000 .bdx-faq-item { border-color: #e5e7eb; border-radius: 12px; }
body.page-id-1000 .bdx-faq-q { background: #fff; font-weight: 700; font-size: 14px; }
body.page-id-1000 .bdx-faq-q:hover { background: #fffbeb; }

/* — Fidélité & Parrainage fusionnés : deux colonnes qui remplissent l'écran — */
.bdxv-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; margin: 0 0 26px; }
.bdxv-duo-col { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 16px; padding: 22px 24px; box-sizing: border-box; min-width: 0; }
.bdxv-duo-col > h2 { font-size: 18px; font-weight: 900; color: #111827; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1.5px solid #f3f4f6; }
/* Les deux widgets de class-bdx-loyalty s'ouvrent sur un max-width:700px inline —
   c'était LA cause des « conteneurs petits ». Dans la grille, la colonne fait la largeur. */
.bdxv-duo-col div[style*="max-width:700px"] { max-width: 100% !important; }
@media (max-width: 1100px) { .bdxv-duo { grid-template-columns: 1fr; } }
