/* ═══════════════════════════════════════════════════════════════
   BOOKMAKER CHOICE — LISTE PREMIUM COMPACTE
   Version 5.0 — Refonte layout : grille → pile de lignes
   ═══════════════════════════════════════════════════════════════ */

/* ── Body ── */
.bookmaker-choice-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--t1);
  font-family: 'Poppins', var(--font-body);
  position: relative;
  overflow-x: hidden;
}

.bookmaker-choice-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(245,166,35,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(0,212,255,0.04) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 60%, rgba(0,229,160,0.03) 0%, transparent 50%);
}

/* ── Animated background shapes ── */
.animated-background { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.floating-shape { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .04; }
.shape-1 { width: 300px; height: 300px; background: var(--amber); top: 10%; left: -8%; animation: floatShape 18s ease-in-out infinite; }
.shape-2 { width: 400px; height: 400px; background: var(--cyan); bottom: 15%; right: -10%; animation: floatShape 22s ease-in-out 3s infinite reverse; }
.shape-3 { width: 200px; height: 200px; background: var(--green); top: 50%; left: 40%; animation: floatShape 15s ease-in-out 6s infinite; }
.shape-4 { width: 250px; height: 250px; background: var(--red); top: 20%; right: 20%; animation: floatShape 20s ease-in-out 2s infinite reverse; }

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.1); }
  66%       { transform: translate(-20px, 25px) scale(.95); }
}

/* ── Language switcher top ── */
.language-switcher-top {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50;
}

/* ── Main content ── */
.main-content { position: relative; z-index: 1; padding: 60px 16px 40px; }
.container-choice { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }

/* ══════════════════════════════════════════
   HERO HEADER
   ══════════════════════════════════════════ */
.choice-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 28px 20px 20px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
}

.choice-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--g-amber);
}

.choice-logo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.choice-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 18px rgba(245,166,35,.65));
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

.logo-glow {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,.18) 0%, transparent 70%);
  animation: glowP 3s ease-in-out infinite;
}

@keyframes glowP {
  0%, 100% { opacity: .6; transform: scale(1); }
  50%       { opacity: 1;  transform: scale(1.2); }
}

.choice-title {
  font-family: var(--font-hud);
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--g-amber);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  line-height: 1.2;
}

.choice-subtitle { color: var(--t2); font-size: .88rem; line-height: 1.5; }

/* ══════════════════════════════════════════
   BOUTON FACEBOOK — sobre, une seule ligne
   ══════════════════════════════════════════ */
.facebook-video-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  width: 100%;
  border: 1px solid rgba(0,212,255,.2);
  background: rgba(0,212,255,.04);
  border-radius: var(--r-md);
  color: var(--t2);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  text-decoration: none;
}

.facebook-video-button:hover {
  background: rgba(0,212,255,.09);
  border-color: rgba(0,212,255,.35);
  color: var(--cyan);
}

.fb-button-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,212,255,.1);
  border: 1px solid rgba(0,212,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cyan);
}

.fb-button-icon svg { width: 15px; height: 15px; }

.fb-button-label {
  flex: 1;
  font-size: .82rem;
  font-weight: 500;
  color: inherit;
  text-align: left;
  font-family: 'Poppins', var(--font-body);
  letter-spacing: .2px;
}

.fb-button-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t3);
  transition: color var(--t-fast), transform var(--t-fast);
}

.fb-button-arrow svg { width: 14px; height: 14px; }
.facebook-video-button:hover .fb-button-arrow { color: var(--cyan); transform: translateX(2px); }

/* ══════════════════════════════════════════
   LISTE BOOKMAKERS — pile verticale premium
   ══════════════════════════════════════════ */
/* 12/09/2026 (Prosper, vidéo IMG_9564) : « les bookmakers doivent être sur des
   cadres moins longs mais tout aussi larges ». Chaque bookmaker est donc son
   propre cadre (bordure + fond), pleine largeur, hauteur resserrée — au lieu
   d'un seul grand panneau contenant des lignes séparées par un filet. */
.bookmaker-options-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

/* Cadre identique à la vidéo de Prosper (12/09/2026) : badge en haut à droite,
   grand logo sur pastille blanche, nom, 3 avantages, bouton pleine largeur. */
.bookmaker-option {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 18px 16px 16px;
  border: 1px solid var(--stroke);
  border-radius: var(--r-xl);
  text-decoration: none;
  background: var(--panel);
  position: relative;
  cursor: pointer;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.bookmaker-option[data-bookmaker="1xbet"]  { border-color: rgba(30,64,255,.45); }
.bookmaker-option[data-bookmaker="melbet"] { border-color: rgba(255,215,0,.35); }

.bookmaker-row-top { display: contents; }

.bookmaker-option::after {
  /* Indicateur de survol — ligne à gauche */
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--g-amber);
  opacity: 0;
  transition: opacity var(--t-fast);
  border-radius: 0 2px 2px 0;
}

.bookmaker-option:hover {
  background: rgba(245,166,35,.03);
  border-color: var(--stroke-2);
}

.bookmaker-option:hover::after {
  opacity: 1;
}

/* ── Logo : grand, à gauche (demandé le 12/09/2026 : « de gros logos ») ── */
.bookmaker-logo-wrapper {
  width: 130px;
  height: 130px;
  margin: 4px auto 0;
  flex-shrink: 0;
  border-radius: var(--r-md);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bookmaker-logo {
  width: 118px;
  height: 118px;
  object-fit: contain;
}

/* ── Zone info : nom + badge ── */
.bookmaker-row-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.bookmaker-name {
  font-family: var(--font-hud);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .5px;
  line-height: 1;
}
.bookmaker-option[data-bookmaker="1xbet"]  .bookmaker-name { color: #4a6fff; }
.bookmaker-option[data-bookmaker="melbet"] .bookmaker-name { color: #ffd700; }

/* ── Liste des avantages (comme la vidéo) ── */
.bookmaker-features {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bookmaker-features li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid var(--stroke-soft);
  color: var(--t2);
  font-size: .84rem;
}
.bookmaker-features li:last-child { border-bottom: none; }
.bookmaker-features svg { width: 14px; height: 14px; flex-shrink: 0; }
.bookmaker-option[data-bookmaker="1xbet"]  .bookmaker-features svg { color: #4a6fff; }
.bookmaker-option[data-bookmaker="melbet"] .bookmaker-features svg { color: #ffd700; }

/* ── Badge : pastille en haut à droite du cadre (comme la vidéo) ── */
.bookmaker-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px 5px 9px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1e40ff 0%, #4a6fff 100%);
  color: #fff;
  font-family: var(--font-hud);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .6px;
  width: fit-content;
}

.bookmaker-badge svg { flex-shrink: 0; }

.bookmaker-badge-alt {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #1a1200;
}

/* ── CTA : bouton pleine largeur, aux couleurs du bookmaker ──
   Mêmes teintes que le thème du site pour chaque bookmaker (bleu 1xBet,
   or Melbet), cf. applyBookmakerCSSVars() dans translations.js. */
.bookmaker-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #1e40ff 0%, #4a6fff 100%);
  color: #fff;
  font-family: var(--font-hud);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.bookmaker-cta-alt {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #1a1200;
}

.bookmaker-option:hover .bookmaker-cta {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}

.cta-icon { display: block; flex-shrink: 0; }
.cta-text { display: inline; }

.card-shine { display: none; }
.card-glow  { display: none; }

/* ══════════════════════════════════════════
   INFO CARDS
   ══════════════════════════════════════════ */
.info-cards-container { display: flex; flex-direction: column; gap: 10px; }

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 1px solid var(--stroke-soft);
}

.info-card-primary { border-left: 3px solid var(--cyan); }
.info-card-success { border-left: 3px solid var(--amber); }
.info-card-warning { border-left: 3px solid var(--red); }

.info-card-icon { flex-shrink: 0; }
.info-card-primary .info-card-icon { color: var(--cyan); }
.info-card-success .info-card-icon { color: var(--amber); }
.info-card-warning .info-card-icon { color: var(--red); }

.info-card-title {
  font-family: var(--font-hud);
  font-size: .72rem;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.info-card-text { color: var(--t2); font-size: .85rem; line-height: 1.65; }
.info-card-text strong { color: var(--t1); }

.promo-highlight {
  font-family: var(--font-hud);
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--amber);
  background: rgba(245,166,35,.12);
  padding: 1px 6px;
  border-radius: var(--r-xs);
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.choice-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 14px;
  border: 1px solid var(--stroke-soft);
  border-radius: var(--r-md);
  background: var(--panel);
}

.footer-icon { color: var(--t3); flex-shrink: 0; }
.footer-text { color: var(--t3); font-size: .78rem; text-align: center; }

/* ══════════════════════════════════════════
   RESPONSIVE — TABLETTE
   ══════════════════════════════════════════ */
@media (min-width: 480px) {
  .bookmaker-option { padding: 20px 18px 18px; }
  .bookmaker-logo-wrapper { width: 150px; height: 150px; }
  .bookmaker-logo { width: 136px; height: 136px; }
}

@media (min-width: 640px) {
  .container-choice { gap: 18px; }
  .choice-header { padding: 32px 28px 24px; gap: 14px; }
}

/* ══════════════════════════════════════════
   ACCESSIBILITÉ & PRÉFÉRENCES
   ══════════════════════════════════════════ */
.bookmaker-option:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: -2px;
  background: rgba(245,166,35,.04);
}

.facebook-video-button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
