/* =====================================================================
   free-ielts-general-pricing.css
   Feuille de style PROPRE à la page vitrine/tarification de la démo
   gratuite IELTS General Training.
   Chargée uniquement par free-ielts-general-pricing-{fr,en}.php
   (constante CSS_FREE_IELTS_GENERAL_PRICING).

   Palette IELTS : bleu #1f7cff (alignée sur free-ielts-general.css).
   Classes ciblées : .test-info-wrapper, .test-quick-stats, .stat-item,
   .stat-icon, .stat-value-label, .stat-label, .test-conditions,
   .conditions-title, .conditions-list, .btn-start, .centrer.
   ===================================================================== */

:root {
  --ielts-blue: #1f7cff;
  --ielts-blue-dark: #1763cf;
  --ielts-ink: #1a2b4a;
  --ielts-muted: #5b6b85;
  --ielts-border: #d9e2f2;
  --ielts-surface: #f5f8ff;
}

/* ── Canvas WebGL (vagues) en arrière-plan plein écran ───────────────
   Le canvas doit rester DERRIÈRE le contenu, fixé au viewport, sans
   intercepter les clics. Placé en haut de <main> dans le HTML. */
canvas.webgl {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  display: block;
  pointer-events: none;
}

/* ── Conteneur de contenu : au-dessus du canvas ─────────────────────── */
.contenu-principal {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

/* ── Titre de la page vitrine ───────────────────────────────────────── */
.contenu-principal > h2 {
  margin: 0 auto 1.5rem;
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--ielts-ink);
}

/* ── Conteneur principal ─────────────────────────────────────────── */
.test-info-wrapper {
  max-width: 760px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--ielts-border);
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(31, 124, 255, 0.08);
}

/* ── Statistiques rapides (durée / compétences) ──────────────────── */
.test-quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 200px;
  min-width: 180px;
  padding: 1rem 1.25rem;
  background: var(--ielts-surface);
  border: 1px solid var(--ielts-border);
  border-radius: 12px;
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  font-size: 1.4rem;
  color: #fff;
  background: var(--ielts-blue);
  border-radius: 50%;
}

.stat-value-label {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ielts-ink);
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--ielts-muted);
}

/* ── Conditions de passation ─────────────────────────────────────── */
.test-conditions {
  padding-top: 1.25rem;
  border-top: 1px solid var(--ielts-border);
}

.conditions-title {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  color: var(--ielts-ink);
}

.conditions-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.conditions-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.75rem;
  color: var(--ielts-ink);
  line-height: 1.5;
}

.conditions-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.4rem;
  font-weight: 700;
  color: var(--ielts-blue);
}

/* ── Bouton de démarrage ─────────────────────────────────────────── */
.centrer {
  text-align: center;
  margin: 1.75rem 0 0.5rem;
}

.btn-start {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: var(--ielts-blue);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(31, 124, 255, 0.3);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-start:hover,
.btn-start:focus-visible {
  background: var(--ielts-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(31, 124, 255, 0.38);
}

.btn-start:active {
  transform: translateY(0);
}

/* ── Adaptation mobile ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .test-info-wrapper {
    margin: 1.25rem;
    padding: 1.1rem;
  }
  .test-quick-stats {
    flex-direction: column;
  }
  .stat-item {
    flex: 1 1 auto;
  }
}
