/**
 * ============================================================
 *  PARIS-BET — VARIABLES CSS GLOBALES
 *  Toutes les couleurs, polices et espacements du site.
 *  Modifier ici = modifier partout automatiquement.
 * ============================================================
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&display=swap');

:root {

  /* ── Couleurs principales ── */
  --blue:           #1a56ff;
  --blue-dark:      #1040d4;
  --blue-light:     #4d7fff;
  --blue-pale:      #e8f0ff;
  --blue-xpale:     #f0f4ff;
  --white:          #ffffff;

  /* ── Texte ── */
  --text-dark:      #0d1b3e;
  --text-body:      #2c3e6b;
  --text-muted:     #6b7fa3;
  --text-light:     #a0aec8;

  /* ── Fond ── */
  --bg:             #ffffff;
  --bg-soft:        #f7f9ff;
  --bg-card:        #ffffff;

  /* ── Bordures ── */
  --border:         #e2e8f5;
  --border-focus:   rgba(26, 86, 255, 0.4);

  /* ── États ── */
  --success:        #00c853;
  --success-pale:   #e6f9ee;
  --error:          #ff3d3d;
  --error-pale:     #fff0f0;
  --warning:        #ffab00;
  --warning-pale:   #fff8e1;
  --pending:        #6b7fa3;
  --pending-pale:   #f0f4ff;

  /* ── Typographie ── */
  --font-display:   'DM Sans', sans-serif;   /* Titres */
  --font-body:      'DM Sans', sans-serif;   /* Texte courant */

  /* ── Espacements ── */
  --space-xs:       4px;
  --space-sm:       8px;
  --space-md:       16px;
  --space-lg:       24px;
  --space-xl:       40px;
  --space-2xl:      64px;
  --space-3xl:      96px;

  /* ── Rayons ── */
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --radius-full:    100px;

  /* ── Ombres ── */
  --shadow-sm:      0 1px 3px rgba(13,27,62,0.08);
  --shadow-md:      0 4px 16px rgba(13,27,62,0.10);
  --shadow-lg:      0 8px 32px rgba(13,27,62,0.12);
  --shadow-blue:    0 8px 32px rgba(26,86,255,0.20);

  /* ── Transitions ── */
  --transition:     0.2s ease;
  --transition-slow:0.4s ease;

  /* ── Layout ── */
  --max-width:      1180px;
  --nav-height:     72px;
}

/* ── Reset de base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); }

/* ── Utilitaires réutilisables ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: 56px 0;
}

.section-label {
  display: inline-block;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 720px;
}

/* ── Boutons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(26,86,255,0.30);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-outline:hover {
  background: var(--blue-pale);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--white);
  color: var(--blue);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  background: var(--blue-xpale);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

/* ── Badges de statut ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.badge-won      { background: var(--success-pale);  color: var(--success); }
.badge-lost     { background: var(--error-pale);    color: var(--error); }
.badge-cancelled{ background: var(--warning-pale);  color: var(--warning); }
.badge-pending  { background: var(--pending-pale);  color: var(--pending); }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ── Inputs ── */
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.input {
  width: 100%;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-dark);
  font-size: 0.95rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(26,86,255,0.08);
  background: var(--white);
}
.input::placeholder { color: var(--text-light); }
.input.error { border-color: var(--error); }
.input.valid { border-color: var(--success); }

/* ── Animations communes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

.animate-fade-up { animation: fadeUp 0.5s ease both; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .container { padding: 0 var(--space-md); }
  .section   { padding: 40px 0; }
}
