/**
 * pair-pages.css — SUREBET v1007
 * Pages de sélection des paires : design premium, responsive
 * Routes : /pair/1xbet-1win · /pair/1win-betwinner
 */

/* ══════════════════════════════════════════
   CONTENEUR PRINCIPAL
══════════════════════════════════════════ */

.pair-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-sizing: border-box;
}

/* ══════════════════════════════════════════
   LIEN RETOUR
══════════════════════════════════════════ */

.pair-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
  width: fit-content;
}
.pair-back-link:hover {
  color: rgba(255,255,255,0.85);
  gap: 10px;
}

/* ══════════════════════════════════════════
   EN-TÊTE DE PAGE — Hero Card
══════════════════════════════════════════ */

.pair-page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 24px 22px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(14, 21, 37, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl, 24px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s ease both;
}

/* Trait lumineux haut */
.pair-page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #1976D2, transparent);
  opacity: 0.8;
}

.pair-page-header:has(.pair-page-badge-green)::before {
  background: linear-gradient(90deg, transparent, #43A047, transparent);
}

/* Badge de la paire */
.pair-page-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(25, 118, 210, 0.15);
  border: 1px solid rgba(25, 118, 210, 0.35);
  border-radius: 99px;
  padding: 6px 16px;
  width: fit-content;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #82B1FF;
  text-transform: uppercase;
}
.pair-page-badge-green {
  background: rgba(46, 125, 50, 0.15);
  border-color: rgba(46, 125, 50, 0.35);
  color: #69F0AE;
}

.pair-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5C8EE8;
  box-shadow: 0 0 8px rgba(92,142,232,0.8);
  animation: dotPulse 1.8s infinite alternate ease-in-out;
}
.pair-badge-dot-green {
  background: #4CAF50;
  box-shadow: 0 0 8px rgba(76,175,80,0.8);
}

/* Titre principal */
.pair-page-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.05rem, 3.5vw, 1.35rem);
  font-weight: 700;
  line-height: 1.45;
  color: #FFFFFF;
  margin: 0;
  text-align: center;
  letter-spacing: -0.01em;
  max-width: 520px;
}

/* ══════════════════════════════════════════
   SECTION "JE CHOISIS"
══════════════════════════════════════════ */

.pair-select-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Label "Je choisis" — centré, hiérarchisé */
.pair-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  margin: 0;
  text-align: center;         /* ← centrage horizontal */
  padding: 4px 0 2px;
  line-height: 1.5;
}

/* Grille des choix */
.pair-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Carte de choix de plateforme ── */
.pair-choice-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 20px 22px;
  border-radius: var(--radius-xl, 24px);
  border: 1.5px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.pair-choice-card:hover {
  transform: translateY(-4px);
}

.blue-choice {
  border-color: rgba(25, 118, 210, 0.2);
}
.blue-choice:hover {
  border-color: rgba(25, 118, 210, 0.6);
  background: rgba(25, 118, 210, 0.07);
  box-shadow: 0 8px 28px rgba(25, 118, 210, 0.15);
}

.green-choice {
  border-color: rgba(46, 125, 50, 0.2);
}
.green-choice:hover {
  border-color: rgba(46, 125, 50, 0.6);
  background: rgba(46, 125, 50, 0.07);
  box-shadow: 0 8px 28px rgba(46, 125, 50, 0.15);
}

/* ── Logo SANS fond blanc ── */
.pair-choice-logo-wrap {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* Pas de background, pas de border, pas de padding */
}

.pair-choice-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  transition: transform 0.25s ease;
}
.pair-choice-card:hover .pair-choice-logo {
  transform: scale(1.08);
}

/* Nom de la plateforme */
.pair-choice-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.2px;
  text-align: center;
}

/* ── Bouton "Choisir" ── */
.pair-choose-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 24px;
  border-radius: 99px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: #fff;
  background: linear-gradient(135deg, #1565C0, #1976D2);
  box-shadow: 0 3px 12px rgba(21,101,192,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  width: 100%;
  text-align: center;
}
.pair-choose-btn-green {
  background: linear-gradient(135deg, #2E7D32, #388E3C);
  box-shadow: 0 3px 12px rgba(46,125,50,0.3);
}

.pair-choice-card:hover .pair-choose-btn {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(21,101,192,0.4);
  filter: brightness(1.1);
}
.pair-choice-card:hover .pair-choose-btn-green {
  box-shadow: 0 6px 20px rgba(46,125,50,0.4);
}

/* ══════════════════════════════════════════
   BLOCS INFORMATIFS
══════════════════════════════════════════ */

/* Bloc (!) — Pourquoi un compte */
.pair-info-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-radius: var(--radius-xl, 24px);
  border: 1px solid rgba(255, 180, 0, 0.2);
  background: rgba(255, 180, 0, 0.04);
  padding: 20px 22px;
  animation: fadeInUp 0.5s 0.15s both;
}

.pair-info-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.9;
}

.pair-info-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pair-info-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFB400;
  margin: 0;
  line-height: 1.3;
}

.pair-info-text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
  word-break: normal;
  overflow-wrap: break-word;
}

/* Bloc Attention ! */
.pair-attention-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-radius: var(--radius-xl, 24px);
  border: 1px solid rgba(239, 83, 80, 0.2);
  background: rgba(239, 83, 80, 0.04);
  padding: 20px 22px;
  animation: fadeInUp 0.5s 0.25s both;
}

.pair-attention-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.9;
}

.pair-attention-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pair-attention-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #EF5350;
  margin: 0;
}

.pair-attention-text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
  word-break: normal;
  overflow-wrap: break-word;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */

/* Tablette */
@media (max-width: 768px) {
  .pair-page {
    padding: 28px 20px 64px;
    gap: 20px;
  }
  .pair-choice-logo-wrap { width: 72px; height: 72px; }
  .pair-page-title { font-size: clamp(0.95rem, 3.2vw, 1.15rem); }
}

/* Mobile */
@media (max-width: 540px) {
  .pair-page {
    padding: 24px 16px 56px;
    gap: 18px;
  }
  .pair-choices {
    gap: 12px;
  }
  .pair-choice-card {
    padding: 22px 14px 18px;
    gap: 12px;
  }
  .pair-choice-logo-wrap { width: 64px; height: 64px; }
  .pair-choice-name { font-size: 0.95rem; }
  .pair-choose-btn { font-size: 0.78rem; padding: 8px 16px; }
  .pair-info-block, .pair-attention-block {
    padding: 16px 18px;
    gap: 12px;
  }
  .pair-info-text, .pair-attention-text { font-size: 0.84rem; }
}

/* Petit mobile */
@media (max-width: 375px) {
  .pair-choice-card { padding: 18px 10px 14px; gap: 10px; }
  .pair-choice-logo-wrap { width: 56px; height: 56px; }
  .pair-choice-name { font-size: 0.88rem; }
}

/* Très petit mobile */
@media (max-width: 320px) {
  .pair-choices { grid-template-columns: 1fr; }
  .pair-choice-card { flex-direction: row; padding: 14px 16px; gap: 14px; align-items: center; }
  .pair-choice-logo-wrap { width: 48px; height: 48px; flex-shrink: 0; }
  .pair-choice-name { flex: 1; text-align: left; }
  .pair-choose-btn { width: auto; }
}
