/* ============================================================
   PadelMatch — Design System v4 PREMIUM
   Palette : Deep Navy-Black + Electric Lime + Gold Pro
   ============================================================ */

:root {
  /* ── Brand Colors ── */
  --primary:       #05E27A;   /* Electric lime-green — plus vibrant, sportif */
  --primary-dark:  #03B860;   /* Hover/dark variant */
  --primary-light: #EDFBF3;   /* Backgrounds légers */
  --primary-ultra: #00FF8C;   /* Glow effects */
  --gold:          #F59E0B;   /* Pro plan / premium accent */
  --gold-light:    #FFFBEB;

  /* ── Neutrals premium ── */
  --dark:          #09090D;   /* Near-black — très premium */
  --dark-2:        #13151F;   /* Sections sombres */
  --dark-3:        #1C1F2E;   /* Cards sombres */
  --text:          #374151;
  --muted:         #6B7280;
  --border:        #E5E7EB;
  --border-light:  #F3F4F6;
  --bg:            #F9FAFB;
  --white:         #FFFFFF;

  /* ── Status ── */
  --danger:        #EF4444;
  --danger-bg:     #FEF2F2;
  --success:       #10B981;
  --success-bg:    #ECFDF5;
  --warning:       #D97706;
  --warning-bg:    #FFFBEB;
  --info:          #3B82F6;
  --info-bg:       #EFF6FF;

  /* ── Radii ── */
  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-2xl: 32px;
  --radius-full:9999px;

  /* ── Shadows ── */
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.05);
  --shadow:     0 4px 6px rgba(0,0,0,0.07), 0 10px 30px rgba(0,0,0,0.07);
  --shadow-lg:  0 8px 24px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-xl:  0 24px 64px rgba(0,0,0,0.16), 0 4px 16px rgba(0,0,0,0.08);
  --shadow-green: 0 4px 20px rgba(5,226,122,0.40);
  --shadow-gold:  0 4px 20px rgba(245,158,11,0.35);

  --transition: 0.18s cubic-bezier(0.2, 0, 0, 1);
  --header-h: 72px;
}

/* ── Dark Mode ───────────────────────────────────────────── */
[data-theme="dark"] {
  --primary:       #05E27A;
  --primary-dark:  #03B860;
  --primary-light: #03200F;
  --dark:          #F9FAFB;
  --dark-2:        #1C1F2E;
  --dark-3:        #252838;
  --text:          #E5E7EB;
  --muted:         #9CA3AF;
  --border:        #2D3145;
  --border-light:  #1E2132;
  --bg:            #0D0F1A;
  --white:         #161926;
  --danger:        #F87171;
  --danger-bg:     #450A0A;
  --success:       #34D399;
  --success-bg:    #022C22;
  --warning:       #FBBF24;
  --warning-bg:    #451A03;
  --info:          #60A5FA;
  --info-bg:       #0C1A3A;
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.4);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.4);
  --shadow:     0 4px 6px rgba(0,0,0,0.6), 0 10px 30px rgba(0,0,0,0.5);
  --shadow-lg:  0 8px 24px rgba(0,0,0,0.7), 0 2px 8px rgba(0,0,0,0.5);
  --shadow-xl:  0 24px 64px rgba(0,0,0,0.8);
  --shadow-green: 0 4px 20px rgba(5,226,122,0.18);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px; scroll-behavior: smooth;
  overflow-x: hidden; /* ← Empêche le scroll horizontal sur mobile */
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text); background: var(--white);
  line-height: 1.6; min-height: 100vh;
  display: flex; flex-direction: column;
  overflow-x: hidden; /* ← Critique pour mobile */
  -webkit-text-size-adjust: 100%; /* Empêche zoom auto iOS */
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; max-width: 100%; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5 { font-family: 'Kanit', 'Inter', sans-serif; font-weight: 700; line-height: 1.2; color: var(--dark); }
/* Empêche le débordement des tables et éléments larges */
table { max-width: 100%; overflow-x: auto; display: block; }
pre, code { overflow-x: auto; max-width: 100%; }

/* ── Variables de positionnement ──────────────────────────── */
/* Variables de positionnement — définies UNE seule fois */
:root {
  --urgency-h: 0px;    /* Hauteur barre verte (0 si absente) */
}
/* Quand la classe has-urgency est présente sur body */
body.has-urgency { --urgency-h: 36px; }

/* ── Layout ───────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Barre verte fixe en haut */
.top-urgency-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
  height: var(--urgency-h, 36px);
  background: linear-gradient(90deg, #03B860, #05E27A, #00F5A0, #05E27A, #03B860);
  background-size: 300% auto;
  animation: urgency-slide 6s linear infinite;
  color: #fff; font-size: .74rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  white-space: nowrap; overflow: hidden;
}
.top-urgency-bar a { color: #fff; opacity: .95; text-decoration: underline; }
.top-urgency-bar a:hover { opacity: 1; }
.urgency-text-mobile { display: none; }
@keyframes urgency-slide {
  0%   { background-position: 0%   center; }
  100% { background-position: 300% center; }
}

/* Header juste sous la barre verte */
.site-main { flex: 1; padding-top: calc(var(--header-h) + var(--urgency-h)); }

/* ── HEADER ──────────────────────────────────────────────── */
.site-header {
  position: fixed; top: var(--urgency-h); left: 0; right: 0; z-index: 1000;
  background: rgba(var(--white-rgb, 255, 255, 255), 0.75); 
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-h); display: flex; align-items: center;
  transition: box-shadow var(--transition), background var(--transition);
}
[data-theme="dark"] .site-header {
  background: rgba(30, 41, 59, 0.75); /* --white in dark mode */
}
.site-header.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.08); }
.header-inner { width: 100%; display: flex; align-items: center; gap: 16px; }

.logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo-icon { font-size: 1.4rem; }
.logo-text { font-family: 'Kanit', sans-serif; font-weight: 800; font-size: 1.25rem; color: var(--dark); letter-spacing: -0.5px; }
.logo-text span { color: var(--primary); }
.logo--light .logo-text { color: #fff; }
.logo--light .logo-text span { color: var(--primary); }

.nav-main { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; overflow: hidden; }
.nav-link { padding: 8px 12px; border-radius: var(--radius-sm); color: var(--muted); font-size: .875rem; font-weight: 500; transition: color var(--transition), background var(--transition); white-space: nowrap; }
.nav-link:hover { color: var(--dark); background: var(--bg); }
.nav-link.active { color: var(--dark); font-weight: 600; }
.nav-link--create { background: var(--primary); color: #fff !important; font-weight: 700; padding: 9px 18px; border-radius: var(--radius-full); }
.nav-link--create:hover { background: var(--primary-dark); box-shadow: var(--shadow-green); }
.icon-plus { margin-right: 2px; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.lang-btn { font-size: 1.25rem; padding: 6px; border-radius: var(--radius-sm); transition: background var(--transition); display: block; }
.lang-btn:hover { background: var(--bg); }

.notif-btn, .msg-btn {
  position: relative; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full); font-size: 1.1rem; color: var(--muted);
  transition: background var(--transition), color var(--transition);
  border: 1px solid transparent;
}
.notif-btn:hover, .notif-btn.active,
.msg-btn:hover,   .msg-btn.active { background: var(--bg); color: var(--dark); border-color: var(--border-light); }
.notif-badge, .msg-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--danger); color: #fff;
  font-size: .58rem; font-weight: 700; min-width: 16px; height: 16px;
  border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center;
  padding: 0 3px; line-height: 1; border: 2px solid var(--white);
}

.user-menu { position: relative; }
.user-menu-toggle { display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 12px; border-radius: var(--radius-full); border: 1px solid var(--border); background: var(--white); transition: box-shadow var(--transition); }
.user-menu-toggle:hover { box-shadow: var(--shadow-sm); }
.user-avatar-sm { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--bg); }
.user-name-sm { color: var(--dark); font-size: .85rem; font-weight: 600; max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chevron { color: var(--muted); font-size: .65rem; transition: transform var(--transition); margin-right: 6px; }
.user-menu.open .chevron { transform: rotate(180deg); }

.user-menu-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 230px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light); opacity: 0; transform: translateY(-6px);
  pointer-events: none; transition: opacity var(--transition), transform var(--transition);
  z-index: 200; overflow: hidden;
}
.user-menu.open .user-menu-dropdown { opacity: 1; transform: translateY(0); pointer-events: all; }
.user-menu-header { padding: 14px 16px; border-bottom: 1px solid var(--border-light); }
.user-menu-header strong { display: block; color: var(--dark); font-size: .875rem; }
.user-menu-header small  { color: var(--muted); font-size: .77rem; }
.dropdown-item { display: flex; align-items: center; gap: 10px; padding: 11px 16px; color: var(--text); font-size: .875rem; transition: background var(--transition); }
.dropdown-item:hover { background: var(--bg); }
.dropdown-item--danger { color: var(--danger); }
.dropdown-item--danger:hover { background: var(--danger-bg); }
.dropdown-divider { height: 1px; background: var(--border-light); margin: 4px 0; }

.burger-btn { display: none; flex-direction: column; gap: 5px; padding: 8px; border-radius: var(--radius-sm); }
.burger-btn span { display: block; width: 20px; height: 2px; background: var(--dark); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 22px; border-radius: var(--radius-full); font-size: .875rem; font-weight: 600; transition: all var(--transition); white-space: nowrap; cursor: pointer; border: 1.5px solid transparent; text-decoration: none; }
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-green); }
.btn-accent  { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-accent:hover { background: var(--primary-dark); box-shadow: var(--shadow-green); }
.btn-white   { background: #fff; color: var(--primary); border-color: #fff; }
.btn-white:hover { background: var(--bg); box-shadow: var(--shadow); }
.btn-ghost   { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.8); }
.btn-hero-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-hero-ghost:hover { background: rgba(255,255,255,.16); }
.btn-outline  { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-dark     { background: var(--dark); color: #fff; border-color: var(--dark); }
.btn-dark:hover { background: #333; }
.btn-danger   { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #a0290f; }
.btn-success  { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { background: #006504; }
.btn-secondary { background: var(--white); color: var(--dark); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg); box-shadow: var(--shadow-xs); }
.btn-nav { background: transparent; color: var(--dark); border-color: var(--border); }
.btn-nav:hover { background: var(--bg); }
.btn-sm   { padding: 8px 16px; font-size: .78rem; }
.btn-lg   { padding: 14px 28px; font-size: .975rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ── ALERTS ──────────────────────────────────────────────── */
.alert { padding: 13px 16px; border-radius: var(--radius); margin: 12px 0; font-size: .875rem; display: flex; align-items: flex-start; gap: 10px; border: 1px solid transparent; }
.alert-success { background: var(--success-bg); color: #166534; border-color: #86efac; }
.alert-error   { background: var(--danger-bg);  color: #9b1c1c; border-color: #fca5a5; }
.alert-info    { background: var(--info-bg);    color: #1e40af; border-color: #93c5fd; }
.toast-alert { position: fixed !important; bottom: 24px; right: 24px; z-index: 9999; max-width: 380px; min-width: 260px; box-shadow: var(--shadow-lg); margin: 0 !important; animation: slideInRight .3s ease; }
@keyframes slideInRight { from { transform: translateX(100%); opacity:0; } to { transform:translateX(0);opacity:1; } }

/* ── FORMS ───────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; margin-bottom: 6px; font-size: .85rem; font-weight: 600; color: var(--dark); }
.form-label .req { color: var(--danger); margin-left: 2px; }
.form-control { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: .875rem; color: var(--text); background: var(--white); transition: border-color var(--transition), box-shadow var(--transition); outline: none; appearance: none; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,200,150,.12); }
.form-control::placeholder { color: #AAAAAA; }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23767676' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-help { margin-top: 5px; font-size: .78rem; color: var(--muted); }
.form-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input-password-wrap { position: relative; }
.input-password-wrap .form-control { padding-right: 44px; }
.pw-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1rem; padding: 4px; }
.pw-toggle:hover { color: var(--dark); }
.level-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.level-option { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: all var(--transition); }
.level-option input[type=radio] { display: none; }
.level-option:hover { border-color: var(--border-light); box-shadow: var(--shadow-xs); }
.level-option--active { border-color: var(--primary); background: var(--primary-light); }
.level-option-emoji { font-size: 1.2rem; flex-shrink: 0; }
.level-option-name  { font-weight: 700; font-size: .85rem; color: var(--dark); }
.level-option-desc  { font-size: .72rem; color: var(--muted); }
.char-counter { font-size: .72rem; color: var(--muted); margin-top: 4px; text-align: right; }
.pw-strength-bar { height: 4px; background: var(--border); border-radius: 2px; margin: 6px 0 3px; overflow: hidden; }

/* ── BADGES ──────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius-full); font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.level-tous          { background: #F1F5F9; color: #475569; }
.level-debutant      { background: #DCFCE7; color: #166534; }
.level-intermediaire { background: #FEF9C3; color: #854D0E; }
.level-avance        { background: #FFEDD5; color: #9A3412; }
.level-competition   { background: #FCE7F3; color: #9D174D; }
.status-ouvert  { background: #DCFCE7; color: #166534; }
.status-complet { background: #FEE2E2; color: #991B1B; }
.status-annule  { background: #F1F5F9; color: #6B7280; }
.stars    { color: #FBBF24; letter-spacing: 1px; font-size: .9rem; }
.stars-sm { font-size: .75rem; letter-spacing: .5px; }
.star-rating-display { display: flex; align-items: center; gap: 5px; }
.star-rating-display .avg { font-weight: 700; color: var(--dark); font-size: .875rem; }
.star-rating-display .count { color: var(--muted); font-size: .78rem; }

/* ── NOUVEAUX NIVEAUX — badges ──────────────────────────── */
.level-rookie            { background:#F3F4F6; color:#6B7280; }
.level-debutant          { background:#D1FAE5; color:#065F46; }
.level-debutant-plus     { background:#A7F3D0; color:#064E3B; }
.level-intermediaire     { background:#FEF3C7; color:#92400E; }
.level-intermediaire-plus{ background:#FDE68A; color:#78350F; }
.level-avance            { background:#FEE2E2; color:#991B1B; }
.level-competition       { background:#FECACA; color:#7F1D1D; }
.level-competiteur       { background:#FCE7F3; color:#831843; }
.level-elite             { background:linear-gradient(135deg,#4F46E5,#7C3AED); color:#fff; }
.level-tous              { background:#F1F5F9; color:#475569; }

/* ── LEVEL PICKER V2 (register) ─────────────────────────── */
.level-picker-v2 { display:flex; flex-direction:column; gap:8px; }
.level-option-v2 {
  display:flex; align-items:center; gap:12px;
  padding:12px 14px; border:1.5px solid var(--border);
  border-radius:var(--radius); cursor:pointer;
  transition:all var(--transition); background:var(--white);
  position:relative;
}
.level-option-v2 input[type=radio] { display:none; }
.level-option-v2:hover:not(.disabled) { border-color:var(--primary); background:var(--primary-light); }
.level-option-v2.active { border-color:var(--primary); background:var(--primary-light); box-shadow:0 0 0 3px rgba(5,226,122,.15); }
.level-option-v2.disabled { opacity:.5; cursor:not-allowed; }
.level-opt-emoji { font-size:1.4rem; flex-shrink:0; }
.level-opt-body  { flex:1; min-width:0; }
.level-opt-name  { display:block; font-weight:700; font-size:.88rem; color:var(--dark); }
.level-opt-desc  { display:block; font-size:.75rem; color:var(--muted); }
.level-opt-locked {
  font-size:.68rem; color:var(--muted); background:var(--bg);
  padding:2px 8px; border-radius:var(--radius-full); border:1px solid var(--border-light);
}

/* ── MATCH BOOST ─────────────────────────────────────────── */
.boost-option-card {
  border:1.5px dashed var(--border); border-radius:var(--radius-lg);
  padding:16px; transition:all var(--transition);
}
.boost-option-card.active { border-style:solid; border-color:var(--gold); background:var(--gold-light); }
.boost-option-label { cursor:pointer; display:block; }
.boost-option-content { display:flex; align-items:center; gap:12px; }
.boost-option-content input[type=checkbox] { display:none; }
.boost-option-icon { font-size:1.8rem; flex-shrink:0; }
.boost-option-content strong { display:block; font-size:.9rem; color:var(--dark); }
.boost-option-content p { font-size:.8rem; color:var(--muted); margin-top:3px; line-height:1.45; }
.boost-badge-preview {
  background:var(--gold); color:#fff;
  font-size:.68rem; font-weight:800; padding:3px 10px;
  border-radius:var(--radius-full); white-space:nowrap; flex-shrink:0;
}
.card-boost-badge {
  position:absolute; top:10px; right:10px; z-index:3;
  background:linear-gradient(135deg,#F59E0B,#D97706);
  color:#fff; font-size:.65rem; font-weight:800;
  padding:3px 10px; border-radius:var(--radius-full);
  animation:boost-pulse 2s ease-in-out infinite;
  box-shadow:0 2px 8px rgba(245,158,11,.4);
}
@keyframes boost-pulse {
  0%,100% { box-shadow:0 2px 8px rgba(245,158,11,.4); }
  50%      { box-shadow:0 2px 16px rgba(245,158,11,.7); }
}

/* ── CLUB HERO ───────────────────────────────────────────── */
.club-hero {
  background:linear-gradient(155deg,#0a1628 0%,#0d2338 60%,#09090D 100%);
  padding:80px 0 72px; position:relative; overflow:hidden;
}
.club-hero::before {
  content:''; position:absolute; inset:0;
  background:
    repeating-linear-gradient(0deg,transparent,transparent 79px,rgba(255,255,255,.018) 79px,rgba(255,255,255,.018) 80px),
    repeating-linear-gradient(90deg,transparent,transparent 79px,rgba(255,255,255,.018) 79px,rgba(255,255,255,.018) 80px);
}
.club-hero-inner { max-width:700px; position:relative; z-index:1; }
.club-hero-title {
  font-size:clamp(2rem,5vw,3.6rem); color:#fff; font-weight:800;
  line-height:1.08; margin:12px 0 16px; letter-spacing:-.5px;
}
.club-hero-title span {
  background:linear-gradient(135deg,#05E27A,#00C896);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.club-hero-sub { color:rgba(255,255,255,.68); font-size:1rem; line-height:1.7; max-width:580px; }

.club-stats-bar {
  background:rgba(5,226,122,.06); border-bottom:1px solid rgba(5,226,122,.12);
  padding:16px 0;
}

/* ── SCROLL REVEAL ───────────────────────────────────────── */
/* js-reveal-ready est ajouté par main.js au chargement — sans JS tout reste visible */
.js-reveal-ready .reveal { opacity:0; transform:translateY(28px); transition:opacity .65s cubic-bezier(.2,0,0,1), transform .65s cubic-bezier(.2,0,0,1); }
.js-reveal-ready .reveal.revealed { opacity:1; transform:translateY(0); }
.reveal-delay-1 { transition-delay:.1s; }
.reveal-delay-2 { transition-delay:.2s; }
.reveal-delay-3 { transition-delay:.3s; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  background: #080F1E;
  padding: 80px 0 72px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg,  transparent, transparent 79px, rgba(255,255,255,.022) 79px, rgba(255,255,255,.022) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(255,255,255,.022) 79px, rgba(255,255,255,.022) 80px),
    linear-gradient(155deg, #0a2218 0%, #0e2240 50%, #080F1E 100%);
}
/* Glowing orbs */
.hero-bg-glow {
  position: absolute; border-radius: 50%;
  pointer-events: none; filter: blur(80px); opacity: .55;
}
.hero-bg-glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,200,150,.18), transparent 70%);
  right: -80px; top: -80px;
}
.hero-bg-glow-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(59,130,246,.12), transparent 70%);
  left: -60px; bottom: -60px;
}
.hero > .container { position: relative; z-index: 1; }

.hero-content { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.hero-live-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.9); padding: 6px 16px; border-radius: var(--radius-full); font-size: .75rem; font-weight: 600; margin-bottom: 18px; backdrop-filter: blur(8px); }
.hero-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 2px rgba(0,200,150,.3); animation: blink 2s infinite; flex-shrink: 0; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.4} }
.hero-h1 {
  font-size: clamp(2.2rem, 6vw, 4.2rem); color: #fff; font-weight: 800;
  line-height: 1.06; margin-bottom: 16px; letter-spacing: -.8px;
}
.hero-h1 span {
  background: linear-gradient(135deg, #00E8B0 0%, #00C896 50%, #00A878 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  display: inline-block;
}
.hero-sub { color: rgba(255,255,255,.7); font-size: 1.08rem; line-height: 1.7; max-width: 540px; margin: 0 auto; }
.hero-cta-row { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin:22px 0; }
.hero-cta-primary { font-size: 1rem !important; padding: 16px 32px !important; box-shadow: 0 8px 28px rgba(0,200,150,.4); }

/* Pill search bar */
.hero-search-pill {
  background: var(--white); border-radius: var(--radius-full);
  box-shadow: var(--shadow-xl);
  display: flex; align-items: center;
  max-width: 780px; margin: 0 auto 20px;
  overflow: hidden; border: 1px solid var(--border-light);
}
.search-pill-field { flex: 1; padding: 14px 20px; border-right: 1px solid var(--border-light); cursor: pointer; transition: background var(--transition); min-width: 0; }
.search-pill-field:hover { background: var(--bg); }
.search-pill-location { flex: 1.4; }
.search-pill-field label { display: block; font-size: .65rem; font-weight: 700; color: var(--dark); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.search-pill-field input, .search-pill-field select { width: 100%; border: none; outline: none; background: transparent; font-size: .875rem; color: var(--text); appearance: none; padding: 0; font-family: inherit; }
.search-pill-field input::placeholder { color: var(--muted); }
.search-pill-input-wrap { display: flex; align-items: center; gap: 6px; }
.geo-btn { flex-shrink: 0; font-size: .9rem; color: var(--muted); cursor: pointer; padding: 2px; transition: color var(--transition); }
.geo-btn:hover { color: var(--primary); }
.search-pill-btn { flex-shrink: 0; background: var(--primary); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 13px 22px; font-size: .875rem; font-weight: 700; margin: 6px; border-radius: var(--radius-full); transition: background var(--transition), box-shadow var(--transition); white-space: nowrap; }
.search-pill-btn:hover { background: var(--primary-dark); box-shadow: var(--shadow-green); }
.search-pill-btn-icon { font-size: .95rem; }

/* Level chips */
.hero-chips { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; max-width: 780px; margin: 0 auto 20px; }
.hero-chip { display: flex; align-items: center; gap: 6px; padding: 7px 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.8); border-radius: var(--radius-full); font-size: .8rem; font-weight: 500; transition: all var(--transition); backdrop-filter: blur(4px); }
.hero-chip:hover { background: rgba(255,255,255,.18); color: #fff; }
.hero-chip.active { background: var(--white); color: var(--dark); font-weight: 700; }
.hero-chip-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Stats bar */
.hero-stats-row { display: flex; align-items: center; justify-content: center; max-width: 460px; margin: 0 auto; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-full); padding: 10px 6px; backdrop-filter: blur(8px); flex-wrap: wrap; }
.hero-stat-item { text-align: center; padding: 0 18px; }
.hero-stat-item strong { display: block; font-family: 'Kanit', sans-serif; font-size: 1.15rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat-item strong small { font-size: .68rem; color: rgba(255,255,255,.6); }
.hero-stat-item span { font-size: .68rem; color: rgba(255,255,255,.5); margin-top: 2px; display: block; }
.hero-stat-sep { width: 1px; height: 28px; background: rgba(255,255,255,.14); flex-shrink: 0; }

/* ── TRUST BAR ───────────────────────────────────────────── */
.hero-trust-bar {
  background: rgba(255,255,255,.04); border-top: 1px solid rgba(255,255,255,.07);
  padding: 16px 0;
}
.trust-bar-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap;
}
.trust-bar-item {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; color: rgba(255,255,255,.55); font-weight: 500;
}
.trust-bar-item strong { color: #fff; font-weight: 700; }
.trust-bar-sep { width: 1px; height: 20px; background: rgba(255,255,255,.12); }

/* ── MATCHES SECTION ─────────────────────────────────────── */
.matches-home { padding: 28px 0 56px; background: var(--white); }

.matches-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 18px; border-bottom: 1px solid var(--border-light); margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
.matches-toolbar-left  { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.matches-toolbar-right { display: flex; align-items: center; gap: 8px; }
.matches-count-badge { font-size: .875rem; font-weight: 700; color: var(--dark); background: var(--bg); border: 1px solid var(--border-light); padding: 6px 14px; border-radius: var(--radius-full); }
.clear-filters-btn { font-size: .8rem; color: var(--muted); border: 1px solid var(--border); padding: 6px 12px; border-radius: var(--radius-full); transition: all var(--transition); }
.clear-filters-btn:hover { color: var(--dark); border-color: var(--border); }
.filter-trigger-btn { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius-full); border: 1px solid var(--border); background: var(--white); font-size: .8rem; font-weight: 600; color: var(--dark); transition: box-shadow var(--transition); position: relative; }
.filter-trigger-btn:hover { box-shadow: var(--shadow-sm); }
.filter-trigger-icon { font-size: .85rem; }
.filter-active-dot { width: 7px; height: 7px; background: var(--primary); border-radius: 50%; position: absolute; top: 6px; right: 6px; }
.view-toggle { display: flex; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-full); overflow: hidden; }
.view-toggle-btn { padding: 7px 13px; font-size: .78rem; font-weight: 600; color: var(--muted); transition: all var(--transition); border: none; background: transparent; }
.view-toggle-btn.active { background: var(--white); color: var(--dark); box-shadow: var(--shadow-xs); border-radius: var(--radius-full); }

.matches-split { display: grid; grid-template-columns: 1fr 460px; gap: 24px; align-items: start; }
.matches-list  { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.matches-map-pane { position: sticky; top: calc(var(--header-h) + 12px); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
#map-container { height: 68vh; min-height: 480px; }

/* Airbnb listing card */
.match-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow var(--transition), transform var(--transition);
  display: flex; flex-direction: column; position: relative; cursor: pointer;
}
.match-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.match-card-photo {
  position: relative; padding-top: 62%;
  background: linear-gradient(135deg, var(--dark) 0%, #1C3145 100%);
  overflow: hidden;
}
.match-card-photo-inner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 5rem; opacity: .13; }
.match-card-photo.lvl-debutant      { background: linear-gradient(135deg, #064E3B, #065F46); }
.match-card-photo.lvl-intermediaire { background: linear-gradient(135deg, #78350F, #92400E); }
.match-card-photo.lvl-avance        { background: linear-gradient(135deg, #7C2D12, #991B1B); }
.match-card-photo.lvl-competition   { background: linear-gradient(135deg, #312E81, #3730A3); }
.match-card-fav { position: absolute; top: 10px; right: 10px; z-index: 2; background: none; border: none; cursor: pointer; color: rgba(255,255,255,.7); font-size: 1.3rem; transition: color var(--transition), transform var(--transition); line-height: 1; }
.match-card-fav:hover { color: #fff; transform: scale(1.1); }
.match-card-fav.active { color: #fff; }
.match-card-level-overlay { position: absolute; bottom: 10px; left: 10px; z-index: 2; }
.match-card-body { padding: 14px 14px 10px; flex: 1; }
.match-card-title { font-size: .9rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.match-card-meta  { font-size: .78rem; color: var(--muted); margin-bottom: 6px; }
.match-card-org   { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--muted); }
.match-card-org img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.match-card-footer { padding: 10px 14px 13px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border-light); }
.match-spots-label { font-size: .8rem; font-weight: 700; color: var(--dark); }
.match-spots-sub   { font-size: .7rem; color: var(--muted); }
.match-card-dots   { display: flex; gap: 3px; margin-top: 4px; }
.match-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.match-dot.on   { background: var(--primary); }
.match-dot.full { background: var(--danger); }

.matches-empty { grid-column: 1/-1; text-align: center; padding: 52px 20px; color: var(--muted); border: 2px dashed var(--border); border-radius: var(--radius-lg); background: var(--bg); }
.matches-empty .icon { font-size: 3rem; margin-bottom: 12px; }
.matches-empty h3 { font-size: 1.05rem; color: var(--text); margin-bottom: 8px; }
.matches-empty p  { margin-bottom: 16px; font-size: .875rem; }

/* ── HOW IT WORKS ────────────────────────────────────────── */
.how-section { padding: 68px 0; background: var(--bg); }
.section-head { margin-bottom: 36px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin: 0 auto; }
.section-label { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-light); color: var(--primary-dark); padding: 5px 13px; border-radius: var(--radius-full); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--dark); margin-bottom: 8px; }
.section-sub   { color: var(--muted); font-size: .95rem; line-height: 1.6; max-width: 500px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.how-grid::before { content: ''; position: absolute; top: 44px; left: calc(16.7% + 12px); right: calc(16.7% + 12px); height: 2px; background: linear-gradient(90deg, var(--primary), var(--border-light), var(--primary)); pointer-events: none; }
.how-card { background: var(--white); border-radius: var(--radius-lg); padding: 30px 22px 26px; border: 1px solid var(--border-light); text-align: center; position: relative; z-index: 1; transition: all var(--transition); }
.how-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.how-num { width: 46px; height: 46px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Kanit', sans-serif; font-size: 1.2rem; font-weight: 800; color: #fff; margin: 0 auto 16px; box-shadow: 0 4px 14px rgba(0,200,150,.28); }
.how-icon { font-size: 2.2rem; margin-bottom: 12px; }
.how-card h3 { font-size: 1rem; color: var(--dark); margin-bottom: 8px; }
.how-card p  { font-size: .83rem; color: var(--muted); line-height: 1.65; }

/* ── STATS ───────────────────────────────────────────────── */
.pm-stats-dark { background: var(--dark); padding: 52px 0; }
.pm-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.pm-stat { text-align: center; padding: 20px 14px; border-right: 1px solid rgba(255,255,255,.08); }
.pm-stat:last-child { border-right: none; }
.pm-stat-value { font-family: 'Kanit', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 5px; display: block; }
.pm-stat-label { color: rgba(255,255,255,.65); font-size: .8rem; }
.pm-stat-sub   { color: rgba(255,255,255,.3); font-size: .65rem; margin-top: 2px; display: block; }

/* ── TESTIMONIALS ────────────────────────────────────────── */
.testi-section { padding: 68px 0; background: var(--white); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testi-card {
  background: var(--white); border-radius: var(--radius-xl);
  padding: 24px; border: 1px solid var(--border-light);
  transition: all var(--transition); display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.testi-card::before {
  content: '"'; position: absolute; top: -10px; right: 16px;
  font-size: 7rem; font-family: Georgia,serif;
  color: rgba(5,226,122,.06); line-height: 1; pointer-events: none;
}
.testi-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: rgba(5,226,122,.25); }
.testi-stars { color: #FBBF24; font-size: .9rem; letter-spacing: 2px; margin-bottom: 12px; }
.testi-text  { font-size: .875rem; color: var(--text); line-height: 1.75; font-style: italic; flex: 1; margin-bottom: 16px; }
.testi-author { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border-light); }
.testi-av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--dark)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: .9rem; flex-shrink: 0; }
.testi-name { font-weight: 700; color: var(--dark); font-size: .875rem; }
.testi-city { color: var(--muted); font-size: .72rem; margin-top: 1px; }

/* ── CTA ─────────────────────────────────────────────────── */
.cta-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); padding: 76px 0; text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: '🎾'; position: absolute; left: 5%; top: 50%; transform: translateY(-50%) rotate(-15deg); font-size: 10rem; opacity: .06; pointer-events: none; }
.cta-section::after  { content: '🎾'; position: absolute; right: 5%; top: 50%; transform: translateY(-50%) rotate(15deg); font-size: 10rem; opacity: .06; pointer-events: none; }
.cta-section h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: #fff; margin-bottom: 10px; position: relative; z-index:1; }
.cta-section p  { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 30px; position: relative; z-index:1; }
.cta-btns  { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; position: relative; z-index:1; }
.cta-trust { margin-top: 16px; font-size: .75rem; color: rgba(255,255,255,.5); position: relative; z-index:1; }

/* ── AUTH ────────────────────────────────────────────────── */
.auth-page { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; justify-content: center; padding: 40px 16px; background: var(--bg); }
.auth-card { width: 100%; max-width: 460px; background: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--border-light); }
.auth-card-wide { max-width: 540px; }
.auth-header { background: linear-gradient(135deg, var(--dark), #1C3145); padding: 26px 30px; text-align: center; }
.auth-header .logo { justify-content: center; margin-bottom: 14px; }
.auth-header h1 { color: #fff; font-size: 1.45rem; }
.auth-header-sub { color: rgba(255,255,255,.55); font-size: .8rem; margin-top: 5px; }
.auth-body   { padding: 24px 30px; }
.auth-footer { text-align: center; padding: 0 30px 22px; font-size: .875rem; color: var(--muted); }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* Login 2-col */
.login-page   { min-height: calc(100vh - var(--header-h)); display: flex; align-items: stretch; }
.login-layout { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.login-promo  { background: linear-gradient(160deg, var(--dark) 0%, #1a3a28 100%); padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.login-promo-title { font-size: clamp(1.4rem, 2.8vw, 2rem); color: #fff; margin-bottom: 10px; }
.login-promo-sub   { color: rgba(255,255,255,.6); font-size: .9rem; margin-bottom: 28px; line-height: 1.65; }
.login-features { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.login-feature { display: flex; align-items: flex-start; gap: 12px; }
.login-feature-icon { width: 38px; height: 38px; background: rgba(0,200,150,.15); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.login-feature strong { display: block; color: #fff; font-size: .85rem; margin-bottom: 2px; }
.login-feature p { color: rgba(255,255,255,.45); font-size: .78rem; }
.login-promo-stats { display: flex; gap: 22px; }
.login-promo-stat strong { display: block; font-family: 'Kanit', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.login-promo-stat span { color: rgba(255,255,255,.4); font-size: .7rem; }
.login-form-col { display: flex; align-items: center; justify-content: center; padding: 40px 44px; background: var(--white); }
.login-card { width: 100%; max-width: 340px; }
.login-card-title { font-size: 1.45rem; color: var(--dark); margin-bottom: 5px; }
.login-card-sub   { color: var(--muted); font-size: .875rem; margin-bottom: 22px; }
.login-card-footer { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 18px; font-size: .875rem; color: var(--muted); }
.login-card-footer a { color: var(--primary); font-weight: 600; }

/* ── PAGE HEADER ─────────────────────────────────────────── */
.page-header { background: linear-gradient(135deg, var(--dark) 0%, #1C3145 100%); padding: 38px 0 30px; color: #fff; }
.page-header h1 { font-size: 1.75rem; margin-bottom: 4px; }
.page-header p  { color: rgba(255,255,255,.58); font-size: .85rem; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .75rem; color: rgba(255,255,255,.45); margin-bottom: 10px; }
.breadcrumb a { color: rgba(255,255,255,.45); } .breadcrumb a:hover { color: #fff; } .breadcrumb-sep { opacity: .4; }

/* ── MATCH DETAIL ────────────────────────────────────────── */
.match-detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; padding: 32px 0; align-items: start; }
.match-info-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); overflow: hidden; margin-bottom: 18px; }
.match-info-header { padding: 18px 22px; border-bottom: 1px solid var(--border-light); }
.match-info-header h2 { font-size: 1.25rem; color: var(--dark); margin-top: 8px; }
.match-info-body { padding: 18px 22px; }
.detail-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.detail-info-item { display: flex; align-items: flex-start; gap: 10px; }
.detail-info-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.detail-info-label { display: block; font-size: .68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.detail-info-val   { font-size: .875rem; color: var(--dark); font-weight: 600; }
.match-description { padding: 14px 16px; background: var(--bg); border-radius: var(--radius); color: var(--muted); font-size: .875rem; line-height: 1.7; margin-bottom: 18px; }
.detail-players-section { margin-bottom: 18px; }
.detail-players-header  { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.detail-players-count   { font-weight: 700; color: var(--dark); font-size: .875rem; }
.detail-header-row    { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.detail-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.progress-bar  { height: 6px; background: var(--bg); border-radius: var(--radius-full); overflow: hidden; margin: 8px 0; }
.progress-fill { height: 100%; background: var(--primary); border-radius: var(--radius-full); transition: width .5s; }
.progress-fill.full { background: var(--danger); }
.participants-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; margin-top: 10px; }
.participant-item  { display: flex; align-items: center; gap: 8px; padding: 9px 11px; background: var(--bg); border-radius: var(--radius); font-size: .8rem; }
.participant-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--border); }

.action-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--border-light); padding: 20px; margin-bottom: 14px; }
.action-card h3 { font-size: .95rem; margin-bottom: 14px; color: var(--dark); font-weight: 700; }
.organizer-profile { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.organizer-avatar-lg { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); flex-shrink: 0; background: var(--border); }
.organizer-info strong { display: block; color: var(--dark); font-weight: 700; }
.organizer-info small  { color: var(--muted); font-size: .75rem; }
.organizer-rating { display: flex; align-items: center; gap: 5px; margin-top: 2px; font-size: .75rem; color: var(--muted); }
.contact-info { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.contact-item { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--text); padding: 8px 11px; background: var(--bg); border-radius: var(--radius-sm); }
.contact-item a { color: var(--primary); font-weight: 500; }
.status-info { padding: 12px 14px; border-radius: var(--radius); text-align: center; font-size: .875rem; font-weight: 600; margin-bottom: 12px; }
.status-info.pending   { background: var(--warning-bg); color: var(--warning); }
.status-info.accepted  { background: var(--success-bg); color: var(--success); }
.status-info.refused   { background: var(--danger-bg);  color: var(--danger); }
.status-info.full      { background: var(--danger-bg);  color: var(--danger); }
.status-info.cancelled { background: var(--bg);          color: var(--muted); }

/* ── MESSAGES / CHAT ─────────────────────────────────────── */
.messages-page { height: calc(100vh - var(--header-h)); display: flex; overflow: hidden; background: var(--white); }
.inbox-sidebar { width: 340px; flex-shrink: 0; border-right: 1px solid var(--border-light); display: flex; flex-direction: column; overflow: hidden; }
.inbox-header  { padding: 18px 18px 12px; border-bottom: 1px solid var(--border-light); flex-shrink: 0; }
.inbox-header h2 { font-size: 1.15rem; color: var(--dark); margin-bottom: 10px; }
.inbox-search input { width: 100%; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-full); font-size: .82rem; outline: none; background: var(--bg); }
.inbox-search input:focus { border-color: var(--primary); background: var(--white); }
.inbox-list { flex: 1; overflow-y: auto; }
.inbox-item { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; cursor: pointer; transition: background var(--transition); border-bottom: 1px solid var(--border-light); text-decoration: none; color: inherit; }
.inbox-item:hover, .inbox-item.active { background: var(--bg); }
.inbox-item.active { border-left: 3px solid var(--primary); }
.inbox-item.unread { background: var(--primary-light); }
.inbox-avatar  { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--border); }
.inbox-content { flex: 1; min-width: 0; }
.inbox-name    { font-weight: 700; font-size: .85rem; color: var(--dark); margin-bottom: 2px; display: flex; align-items: center; justify-content: space-between; }
.inbox-match   { font-size: .7rem; color: var(--primary); font-weight: 600; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-preview { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-time    { font-size: .68rem; color: var(--muted); flex-shrink: 0; }
.inbox-unread-badge { background: var(--primary); color: #fff; font-size: .62rem; font-weight: 700; min-width: 17px; height: 17px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.chat-area    { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }
.chat-header  { background: var(--white); border-bottom: 1px solid var(--border-light); padding: 13px 18px; display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.chat-header-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--border); }
.chat-header-info strong { display: block; font-size: .875rem; color: var(--dark); }
.chat-header-info small  { font-size: .72rem; color: var(--muted); }
.chat-header-actions { margin-left: auto; display: flex; gap: 7px; }
/* ── Messages chat area ─────────────────────────────────── */
.chat-messages {
  flex: 1; overflow-y: auto; padding: 20px 20px 8px;
  display: flex; flex-direction: column; gap: 4px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

.chat-date-sep {
  text-align: center; font-size: .68rem; color: var(--muted);
  margin: 12px 0 6px;
  display: flex; align-items: center; gap: 10px;
}
.chat-date-sep::before, .chat-date-sep::after {
  content: ''; flex: 1; height: 1px; background: var(--border-light);
}

.msg-row {
  display: flex; align-items: flex-end; gap: 8px;
  max-width: 72%; animation: msgSlideIn .2s ease both;
}
@keyframes msgSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.msg-row.mine { flex-direction: row-reverse; margin-left: auto; }
.msg-row + .msg-row { margin-top: 2px; }
.msg-row-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  background: var(--border); border: 2px solid var(--border-light);
}

.msg-bubble {
  padding: 10px 14px; border-radius: 20px;
  font-size: .875rem; line-height: 1.55;
  max-width: 100%; word-break: break-word;
  position: relative;
}
.msg-bubble.theirs {
  background: var(--surface);
  color: var(--text);
  border-radius: 4px 20px 20px 20px;
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.msg-bubble.mine {
  background: linear-gradient(135deg, #05E27A, #00C896);
  color: #000;
  border-radius: 20px 20px 4px 20px;
  font-weight: 500;
}
[data-theme="dark"] .msg-bubble.theirs {
  background: #1a2332;
  border-color: #2a3547;
}

.msg-time {
  font-size: .62rem; color: var(--muted);
  margin-top: 4px; white-space: nowrap;
  display: flex; align-items: center; gap: 3px;
}
.msg-row.mine .msg-time { justify-content: flex-end; }

/* Typing indicator */
.typing-indicator {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 14px; background: var(--surface);
  border-radius: 4px 20px 20px 20px;
  border: 1px solid var(--border-light);
  width: fit-content;
}
.typing-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted);
  animation: typingBounce 1.2s ease infinite;
}
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes typingBounce {
  0%,60%,100% { transform: translateY(0); }
  30%         { transform: translateY(-6px); }
}

/* Chat input */
.chat-input-area {
  background: var(--white);
  border-top: 1px solid var(--border-light);
  padding: 12px 16px;
  flex-shrink: 0;
}
.chat-input-row { display: flex; gap: 10px; align-items: flex-end; }
.chat-input-box {
  flex: 1; padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  font-size: .875rem; outline: none; resize: none;
  min-height: 42px; max-height: 120px;
  background: var(--bg); font-family: inherit;
  line-height: 1.5; overflow-y: auto;
  transition: border-color .2s, box-shadow .2s;
}
.chat-input-box:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5,226,122,.1);
  background: var(--white);
}
.chat-send-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary); color: #000; border: none;
  cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 2px 10px rgba(5,226,122,.3);
}
.chat-send-btn:hover { background: var(--primary-dark); transform: scale(1.08); }
.chat-send-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }

/* Match banner */
.chat-match-banner {
  background: var(--surface);
  border-radius: 12px; padding: 10px 14px; margin-bottom: 12px;
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border-light);
  flex-shrink: 0; flex-wrap: wrap;
}
.chat-match-title { font-weight: 700; font-size: .85rem; color: var(--dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-match-meta  { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.chat-match-info  { flex: 1; min-width: 0; }
.chat-match-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* Empty chat state */
.chat-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: var(--muted);
  padding: 40px 20px; text-align: center;
}
.chat-empty .icon { font-size: 4rem; margin-bottom: 16px; opacity: .25; }
.chat-empty h3 { color: var(--text); font-size: 1.05rem; margin-bottom: 6px; }

/* ── PLAYER PROFILE ──────────────────────────────────────── */
.player-page   { padding: 36px 0 56px; }
.player-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.player-card   { background: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow); border: 1px solid var(--border-light); overflow: hidden; position: sticky; top: calc(var(--header-h) + 14px); }
.player-card-top { padding: 26px 22px 18px; text-align: center; border-bottom: 1px solid var(--border-light); }
.player-avatar-lg { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); margin: 0 auto 12px; background: var(--border); }
.player-name  { font-size: 1.25rem; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.player-meta  { font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.player-rating-row { display: flex; align-items: center; justify-content: center; gap: 7px; margin-bottom: 8px; }
.player-badge  { display: inline-block; padding: 3px 11px; border-radius: var(--radius-full); font-size: .72rem; font-weight: 700; background: var(--primary-light); color: var(--primary-dark); }
.player-card-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 14px 0; }
.player-stat  { text-align: center; padding: 7px 4px; border-right: 1px solid var(--border-light); }
.player-stat:last-child { border-right: none; }
.player-stat strong { display: block; font-family: 'Kanit', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--dark); }
.player-stat span   { font-size: .68rem; color: var(--muted); }
.player-info-list { padding: 14px 20px; display: flex; flex-direction: column; gap: 9px; }
.player-info-row  { display: flex; align-items: center; gap: 9px; font-size: .82rem; color: var(--text); }
.player-info-row .icon { font-size: .95rem; flex-shrink: 0; }
.player-message-btn { display: block; margin: 0 14px 14px; }

.reviews-section { margin-top: 24px; }
.reviews-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.review-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border-light); padding: 18px 20px; margin-bottom: 12px; transition: box-shadow var(--transition); }
.review-card:hover { box-shadow: var(--shadow-sm); }
.review-header  { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.review-avatar  { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--border); flex-shrink: 0; }
.review-info strong { display: block; font-size: .875rem; color: var(--dark); }
.review-info small  { font-size: .72rem; color: var(--muted); }
.review-stars  { margin-left: auto; flex-shrink: 0; }
.review-text   { font-size: .875rem; color: var(--text); line-height: 1.65; font-style: italic; }
.review-match  { margin-top: 7px; font-size: .72rem; color: var(--muted); }
.review-match a { color: var(--primary); }

.star-input { display: flex; gap: 3px; flex-direction: row-reverse; justify-content: flex-end; }
.star-input input { display: none; }
.star-input label { font-size: 1.8rem; color: var(--border); cursor: pointer; transition: color var(--transition); }
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label { color: #FBBF24; }

/* ── DASHBOARD ───────────────────────────────────────────── */
.dashboard-page { padding: 32px 0; }
.dash-header-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-welcome-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.5); margin-bottom: 2px; }
.dash-header-sub    { color: rgba(255,255,255,.5); font-size: .8rem; margin-top: 3px; }
.dash-stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.07); border-radius: var(--radius); overflow: hidden; }
.dash-stat-box { padding: 13px 14px; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.dash-stat-box:last-child { border-right: none; }
.dash-stat-box strong { display: block; font-family: 'Kanit', sans-serif; font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1; }
.dash-stat-box span   { font-size: .7rem; color: rgba(255,255,255,.5); margin-top: 2px; display: block; }
.dash-stat-box--alert strong { color: var(--primary); }
.dash-grid { display: flex; flex-direction: column; gap: 32px; }
.dash-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.dash-section-title  { font-size: 1.15rem; color: var(--dark); }
.dash-count { font-size: .78rem; color: var(--muted); background: var(--bg); padding: 3px 10px; border-radius: var(--radius-full); border: 1px solid var(--border-light); font-weight: 600; }
.upcoming-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.upcoming-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border-light); overflow: hidden; display: flex; cursor: pointer; text-decoration: none; color: inherit; transition: box-shadow var(--transition), transform var(--transition); }
.upcoming-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.upcoming-card-accent { width: 5px; flex-shrink: 0; }
.upcoming-card-body { padding: 12px; flex: 1; }
.upcoming-card-countdown { font-family: 'Kanit', sans-serif; font-size: .72rem; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.upcoming-card-countdown.urgent { color: var(--danger); }
.upcoming-card-title { font-weight: 700; font-size: .85rem; color: var(--dark); margin-bottom: 5px; }
.upcoming-card-meta  { font-size: .72rem; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.upcoming-card-org   { font-size: .7rem; color: var(--muted); margin-top: 5px; }
.match-manage-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); border: 1px solid var(--border-light); margin-bottom: 10px; overflow: hidden; }
.match-manage-level-bar { height: 4px; }
.level-debutant.match-manage-level-bar      { background: var(--success); }
.level-intermediaire.match-manage-level-bar { background: var(--warning); }
.level-avance.match-manage-level-bar        { background: var(--danger); }
.level-competition.match-manage-level-bar   { background: #7C3AED; }
.level-tous.match-manage-level-bar          { background: #94a3b8; }
.match-manage-header { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; gap: 10px; flex-wrap: wrap; }
.match-manage-info { flex: 1; min-width: 0; }
.match-manage-title { font-weight: 700; color: var(--dark); font-size: .875rem; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-manage-meta  { font-size: .72rem; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.match-manage-actions { display: flex; gap: 5px; flex-shrink: 0; flex-wrap: wrap; align-items: center; }
.pending-section { border-top: 1px solid var(--border-light); padding: 12px 16px; background: var(--warning-bg); }
.pending-section-title { font-size: .7rem; font-weight: 700; color: var(--warning); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.request-item { display: flex; align-items: flex-start; gap: 9px; padding: 9px 11px; background: var(--white); border-radius: var(--radius); margin-bottom: 7px; border: 1px solid var(--border-light); flex-wrap: wrap; }
.request-avatar  { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--border); }
.request-info    { flex: 1; min-width: 0; }
.request-name    { font-weight: 700; font-size: .82rem; color: var(--text); }
.request-detail  { font-size: .7rem; color: var(--muted); }
.request-message { width: 100%; margin-top: 5px; padding: 6px 9px; background: var(--bg); border-radius: var(--radius-sm); font-size: .72rem; color: var(--muted); font-style: italic; border: 1px solid var(--border-light); }
.request-actions { display: flex; gap: 5px; flex-shrink: 0; }
.my-request-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border-light); padding: 12px 14px; margin-bottom: 9px; display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.my-request-info  { flex: 1; min-width: 0; }
.my-request-title { font-weight: 700; color: var(--dark); margin-bottom: 3px; font-size: .85rem; }
.my-request-meta  { font-size: .72rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 9px; }
.my-request-status { flex-shrink: 0; }
.req-pending  { background: var(--warning-bg); color: var(--warning); }
.req-accepted { background: var(--success-bg); color: var(--success); }
.req-refused  { background: var(--danger-bg);  color: var(--danger); }
.dash-empty { text-align: center; padding: 36px 18px; color: var(--muted); background: var(--bg); border-radius: var(--radius-lg); border: 2px dashed var(--border); }
.dash-empty-icon { font-size: 2.4rem; margin-bottom: 10px; opacity: .45; }
.dash-empty h3 { color: var(--text); margin-bottom: 7px; font-size: .95rem; }

/* ── NOTIFICATIONS ───────────────────────────────────────── */
.notif-page { padding: 32px 0 52px; max-width: 680px; margin: 0 auto; }
.notif-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.notif-header h2 { font-size: .95rem; color: var(--text); }
.notif-day-group { margin-bottom: 22px; }
.notif-day-label { font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 7px; }
.notif-item { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--border-light); margin-bottom: 7px; transition: background var(--transition); color: inherit; text-decoration: none; }
.notif-item--unread { background: var(--primary-light); border-color: rgba(0,200,150,.22); }
.notif-item:hover { background: var(--bg); }
.notif-item-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 1px; }
.notif-content { flex: 1; }
.notif-text  { font-size: .875rem; color: var(--text); line-height: 1.5; }
.notif-time  { font-size: .7rem; color: var(--muted); margin-top: 3px; }
.notif-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 5px; }
.notif-empty { text-align: center; padding: 52px 18px; color: var(--muted); }
.notif-empty-icon { font-size: 2.8rem; margin-bottom: 10px; }

/* ── PROFILE ─────────────────────────────────────────────── */
.profile-page { padding: 32px 0 52px; }
.profile-grid { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.profile-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.profile-header-identity { display: flex; align-items: center; gap: 16px; }
.profile-header-avatar-wrap { position: relative; flex-shrink: 0; }
.profile-header-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); background: var(--border); }
.profile-header-avatar-edit { position: absolute; bottom: 0; right: 0; background: var(--white); border: 2px solid var(--border); width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .75rem; cursor: pointer; }
.profile-header-sub { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.profile-header-stats { display: flex; gap: 22px; }
.profile-hstat strong { display: block; font-family: 'Kanit', sans-serif; font-size: 1.3rem; font-weight: 800; color: #fff; }
.profile-hstat span   { font-size: .7rem; color: rgba(255,255,255,.5); }
.profile-aside { display: flex; flex-direction: column; gap: 12px; }
.profile-aside-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border-light); overflow: hidden; }
.profile-aside-avatar-wrap { position: relative; display: flex; align-items: center; justify-content: center; padding: 22px 0 14px; }
.profile-aside-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); background: var(--border); }
.profile-aside-avatar-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); border-radius: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #fff; font-size: .75rem; cursor: pointer; opacity: 0; transition: all var(--transition); }
.profile-aside-avatar-wrap:hover .profile-aside-avatar-overlay { background: rgba(0,0,0,.42); opacity: 1; }
.profile-aside-info-row { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-top: 1px solid var(--border-light); font-size: .82rem; color: var(--text); }
.profile-main { display: flex; flex-direction: column; gap: 16px; }
.profile-section { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border-light); overflow: hidden; }
.profile-section-header { padding: 14px 18px; border-bottom: 1px solid var(--border-light); font-size: .9rem; font-weight: 700; color: var(--dark); }
.profile-section-body   { padding: 18px; }

/* ── CREATE/EDIT ─────────────────────────────────────────── */
.create-page { padding: 32px 0; }
.create-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.create-card { background: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow); border: 1px solid var(--border-light); overflow: hidden; }
.create-card-header { background: linear-gradient(135deg, var(--dark), #1C3145); padding: 22px 26px; text-align: center; }
.create-card-header h1 { color: #fff; font-size: 1.5rem; }
.create-card-header p  { color: rgba(255,255,255,.52); font-size: .8rem; margin-top: 4px; }
.create-card-body   { padding: 22px 26px; }
.create-card-footer { padding: 0 26px 22px; display: flex; gap: 10px; justify-content: flex-end; }
.create-tips {}
.create-tip-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border-light); padding: 18px; margin-bottom: 12px; }
.create-tip-icon { font-size: 1.4rem; margin-bottom: 8px; }
.create-tip-card h3 { font-size: .875rem; color: var(--dark); margin-bottom: 9px; }
.create-tip-list { display: flex; flex-direction: column; gap: 6px; }
.create-tip-list li { font-size: .8rem; color: var(--muted); }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(180deg, #0a0f1a 0%, #080d16 100%);
  color: rgba(255,255,255,.6);
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(5,226,122,.5), transparent);
}
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; padding: 48px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-tagline { color: rgba(255,255,255,.35); font-size: .83rem; margin: 8px 0 18px; line-height: 1.65; max-width: 290px; }
.footer-stats { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-stat strong { display: block; font-size: 1.15rem; color: var(--primary); font-family: 'Kanit', sans-serif; font-weight: 800; }
.footer-stat span   { font-size: .68rem; color: rgba(255,255,255,.35); }
.footer-links { display: flex; gap: 36px; }
.footer-col   { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 { color: #fff; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 3px; }
.footer-col a  { font-size: .8rem; color: rgba(255,255,255,.35); transition: color var(--transition); }
.footer-col a:hover, .footer-col a.active { color: var(--primary); }
.footer-bottom { padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .72rem; color: rgba(255,255,255,.22); flex-wrap: wrap; }

/* ── UTILITIES ───────────────────────────────────────────── */
.text-center { text-align: center; } .text-muted { color: var(--muted); } .text-primary { color: var(--primary); } .text-danger { color: var(--danger); } .text-dark { color: var(--dark); }
.mt-1{margin-top:8px} .mb-1{margin-bottom:8px} .mt-2{margin-top:16px} .mb-2{margin-bottom:16px} .mt-3{margin-top:24px} .mb-3{margin-bottom:24px}
.d-flex{display:flex} .align-center{align-items:center} .gap-1{gap:8px} .gap-2{gap:16px} .flex-wrap{flex-wrap:wrap} .font-bold{font-weight:700} .w-100{width:100%}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .match-detail-layout, .profile-layout, .profile-grid,
  .player-layout, .create-layout, .matches-split { grid-template-columns: 1fr; }
  .player-card { position: static; }
  .create-tips, .matches-map-pane { display: none; }
  .messages-page { flex-direction: column; height: auto; min-height: calc(100vh - var(--header-h)); }
  .inbox-sidebar { width: 100%; max-height: 280px; border-right: none; border-bottom: 1px solid var(--border-light); }
}

@media (max-width: 768px) {
  /* Grilles et composants responsives */
  .hero-search-pill { flex-direction: column; border-radius: var(--radius-lg); }
  .search-pill-field { border-right: none; border-bottom: 1px solid var(--border-light); }
  .search-pill-btn { margin: 8px 10px; justify-content: center; }
  .hero-stats-row { flex-wrap: wrap; border-radius: var(--radius-lg); }
  .hero-stat-sep { display: none; }
  .how-grid { grid-template-columns: 1fr; }
  .how-grid::before { display: none; }
  .pm-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .matches-list { grid-template-columns: 1fr; }
  .login-layout { grid-template-columns: 1fr; }
  .login-promo  { display: none; }
  .form-row, .info-grid, .detail-info-grid, .level-picker { grid-template-columns: 1fr; }
  .dash-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 20px; }
  .footer-links { flex-direction: column; gap: 16px; }
  .match-manage-header { flex-direction: column; align-items: flex-start; }
  .match-manage-actions { width: 100%; }
  .cta-btns { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .matches-list { grid-template-columns: 1fr; }
  .hero-h1 { font-size: 1.85rem; }
  .auth-body, .auth-header { padding: 18px; }
  .auth-footer { padding: 0 18px 18px; }
  .create-card-body, .create-card-footer { padding-left: 16px; padding-right: 16px; }
  .create-card-footer { flex-direction: column; }
}

/* ── INDEX PAGE v2 COMPONENTS ────────────────────────────────── */

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

/* Airbnb-style card v2 */
.match-card-v2 {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; transition: box-shadow var(--transition), transform var(--transition);
  display: flex; flex-direction: column; position: relative; cursor: pointer;
  border: 1px solid var(--border-light);
}
.match-card-v2:hover { 
  box-shadow: var(--shadow-lg); 
  transform: translateY(-4px) scale(1.01); 
  border-color: var(--primary);
}

/* Visual / photo area */
.card-visual {
  position: relative; padding-top: 62%;
  background: linear-gradient(135deg, var(--dark) 0%, #1C3145 100%);
  overflow: hidden;
}
.card-visual::before { content: '🎾'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 5rem; opacity: .1; pointer-events: none; }
.card-visual.level-rookie            { background: linear-gradient(135deg, #1f2937, #374151); }
.card-visual.level-debutant          { background: linear-gradient(135deg, #064E3B, #05E27A22, #065F46); }
.card-visual.level-debutant-plus     { background: linear-gradient(135deg, #052e16, #065F46); }
.card-visual.level-intermediaire     { background: linear-gradient(135deg, #78350F, #D9770620, #92400E); }
.card-visual.level-intermediaire-plus{ background: linear-gradient(135deg, #6b3000, #92400E); }
.card-visual.level-avance            { background: linear-gradient(135deg, #7C2D12, #EF444420, #991B1B); }
.card-visual.level-competiteur       { background: linear-gradient(135deg, #4C1D95, #7C3AED20, #5B21B6); }
.card-visual.level-competition       { background: linear-gradient(135deg, #312E81, #4F46E520, #3730A3); }
.card-visual.level-elite             { background: linear-gradient(135deg, #0f172a, #05E27A15, #0a0e1a); }

/* Badges on card */
.card-new-badge, .card-full-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: .7rem; font-weight: 700;
}
.card-new-badge  { background: var(--primary); color: #fff; }
.card-full-badge { background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(4px); }

/* Favorite heart */
.fav-btn {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.85); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
  backdrop-filter: blur(4px);
}
.fav-btn:hover { background: #fff; transform: scale(1.1); }
.fav-icon { font-size: 1rem; color: var(--dark); line-height: 1; transition: color var(--transition); }
.fav-btn--active .fav-icon { color: var(--danger); }

/* Date badge overlay */
.card-date-badge {
  position: absolute; bottom: 10px; left: 10px; z-index: 2;
  background: rgba(0,0,0,.55); color: #fff;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: .72rem; font-weight: 600; backdrop-filter: blur(4px);
}

/* Card body */
.card-body-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.card-body      { padding: 13px 14px 8px; flex: 1; }
.card-body-top  { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.card-title     { font-size: .9rem; font-weight: 700; color: var(--dark); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta      { display: flex; flex-direction: column; gap: 3px; font-size: .75rem; color: var(--muted); }

/* Card footer */
.card-footer    { padding: 10px 14px 13px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border-light); }
.card-organizer { display: flex; align-items: center; gap: 7px; font-size: .75rem; color: var(--muted); min-width: 0; }
.card-organizer img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--border); }
.card-organizer span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-spots-pill { padding: 4px 11px; border-radius: var(--radius-full); font-size: .73rem; font-weight: 700; background: var(--primary-light); color: var(--primary-dark); flex-shrink: 0; }
.card-spots-pill.last { background: #FEF9C3; color: #854D0E; }
.card-spots-pill.full { background: var(--danger-bg); color: var(--danger); }

/* Empty state */
.empty-state { text-align: center; padding: 52px 20px; color: var(--muted); border: 2px dashed var(--border); border-radius: var(--radius-lg); background: var(--bg); }
.empty-state .icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state p { margin-bottom: 16px; font-size: .875rem; }

/* ── FILTER PANEL (Airbnb drawer) ────────────────────────────── */
.filter-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 900;
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
  backdrop-filter: blur(2px);
}
.filter-overlay.open { opacity: 1; pointer-events: all; }

.filter-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 901;
  width: 380px; max-width: 100vw; 
  background: rgba(var(--white-rgb, 255, 255, 255), 0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-xl);
  transform: translateX(110%); transition: transform .3s cubic-bezier(0.2,0,0,1);
  display: flex; flex-direction: column; overflow: hidden;
  border-left: 1px solid var(--border-light);
}
[data-theme="dark"] .filter-panel {
  background: rgba(30, 41, 59, 0.85); /* --white in dark mode */
}
.filter-panel.open { transform: translateX(0); }

.filter-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border-light); flex-shrink: 0;
}
.filter-panel-header h3 { font-size: .975rem; color: var(--dark); }
.filter-panel-close {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: var(--dark); cursor: pointer; transition: background var(--transition);
}
.filter-panel-close:hover { background: var(--bg); }
.filter-reset { font-size: .82rem; color: var(--dark); text-decoration: underline; cursor: pointer; }
.filter-reset:hover { color: var(--primary); }
.filter-panel-body { flex: 1; overflow-y: auto; padding: 20px; }

.filter-group { margin-bottom: 20px; }
.filter-group h4 { font-size: .875rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; }

.filter-level-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filter-level-option {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 13px; border: 1.5px solid var(--border);
  border-radius: var(--radius); cursor: pointer; transition: all var(--transition); user-select: none;
}
.filter-level-option input { display: none; }
.filter-level-option:hover, .filter-level-option.checked { border-color: var(--primary); }
.filter-level-option.checked { background: var(--primary-light); font-weight: 700; }
.filter-level-icon { font-size: 1.1rem; flex-shrink: 0; }

.filter-divider { height: 1px; background: var(--border-light); margin: 0 0 20px; }

.filter-date-options { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filter-quick-date {
  padding: 7px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-full); font-size: .8rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition); user-select: none;
}
.filter-quick-date input { display: none; }
.filter-quick-date:hover { border-color: var(--primary); }
.filter-quick-date.checked { border-color: var(--primary); background: var(--primary); color: #fff; }

.filter-panel-footer { padding: 14px 20px; border-top: 1px solid var(--border-light); flex-shrink: 0; }

/* ── MAP ─────────────────────────────────────────────────────── */
.leaflet-map-container { height: 500px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-light); }
.map-hint { text-align: center; font-size: .78rem; color: var(--muted); margin-top: 8px; }

/* ── HOW IT WORKS (new layout) ───────────────────────────────── */
.how-home { padding: 64px 0; background: var(--bg); }
.how-home-head { text-align: center; max-width: 520px; margin: 0 auto 36px; }
.home-section-label {
  display: inline-flex; align-items: center; background: var(--primary-light); color: var(--primary-dark);
  padding: 5px 14px; border-radius: var(--radius-full);
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px;
}
.home-section-title { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--dark); margin-bottom: 8px; }
.home-section-sub   { color: var(--muted); font-size: .95rem; line-height: 1.65; }

.how-steps { display: flex; align-items: center; justify-content: center; gap: 0; }
.how-step {
  flex: 1; max-width: 260px; text-align: center; padding: 24px 20px;
  background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border-light);
  transition: box-shadow var(--transition), transform var(--transition);
}
.how-step:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.how-step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Kanit', sans-serif; font-size: 1.1rem; font-weight: 800; color: #fff;
  margin: 0 auto 12px; box-shadow: 0 4px 12px rgba(0,200,150,.25);
}
.how-step-icon { font-size: 2rem; margin-bottom: 10px; }
.how-step h3 { font-size: .95rem; color: var(--dark); margin-bottom: 6px; }
.how-step p  { font-size: .82rem; color: var(--muted); line-height: 1.65; }
.how-step-arrow { flex-shrink: 0; font-size: 1.5rem; color: var(--border); padding: 0 12px; }

/* ── NUMBERS ─────────────────────────────────────────────────── */
.numbers-home { background: var(--dark); padding: 52px 0; }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.number-item  { text-align: center; padding: 20px 14px; border-right: 1px solid rgba(255,255,255,.08); }
.number-item:last-child { border-right: none; }
.number-item strong { display: block; font-family: 'Kanit', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 5px; }
.number-item strong small { font-size: .68rem; color: rgba(255,255,255,.6); }
.number-item span { color: rgba(255,255,255,.55); font-size: .8rem; }

/* ── TESTIMONIALS (updated) ──────────────────────────────────── */
.testi-home      { padding: 68px 0; background: var(--white); }
.testi-home-head { text-align: center; max-width: 520px; margin: 0 auto 32px; }
.testi-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--dark)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: .9rem; flex-shrink: 0; }
.testi-meta   { color: var(--muted); font-size: .72rem; margin-top: 1px; }

/* ── CTA SECTION (new layout) ────────────────────────────────── */
.cta-home { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); padding: 72px 0; position: relative; overflow: hidden; }
.cta-home::before { content: '🎾'; position: absolute; left: 4%; top: 50%; transform: translateY(-50%) rotate(-15deg); font-size: 9rem; opacity: .07; pointer-events: none; }
.cta-home::after  { content: '🎾'; position: absolute; right: 4%; top: 50%; transform: translateY(-50%) rotate(15deg); font-size: 9rem; opacity: .07; pointer-events: none; }
.cta-home-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap; position: relative; z-index: 1;
}
.cta-home-text h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); color: #fff; margin-bottom: 8px; }
.cta-home-text p  { color: rgba(255,255,255,.8); font-size: .975rem; }
.cta-home-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
.btn-cta-ghost {
  background: rgba(255,255,255,.12); color: #fff;
  border-color: rgba(255,255,255,.35);
}
.btn-cta-ghost:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.6); box-shadow: none; }

/* ── INBOX META ──────────────────────────────────────────────── */
.inbox-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }

/* ── RESPONSIVE (new components) ────────────────────────────── */
@media (max-width: 900px) {
  .how-steps { flex-direction: column; align-items: center; }
  .how-step  { max-width: 100%; width: 100%; }
  .how-step-arrow { transform: rotate(90deg); padding: 4px 0; }
}
@media (max-width: 768px) {
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .number-item:nth-child(odd)  { border-right: 1px solid rgba(255,255,255,.08); }
  .number-item:nth-child(even) { border-right: none; }
  .number-item { border-bottom: 1px solid rgba(255,255,255,.08); }
  .number-item:nth-last-child(-n+2) { border-bottom: none; }
  .cta-home-inner { flex-direction: column; text-align: center; }
  .cta-home-actions { justify-content: center; width: 100%; }
  .filter-panel { width: 100%; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
}
}
@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   WHY PADELMATCH SECTION
   ============================================================ */
.why-home { padding: 72px 0; background: var(--white); }
.why-home-head { margin-bottom: 36px; }
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.why-item {
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: var(--radius-xl); padding: 28px 22px;
  transition: box-shadow .22s, transform .22s, border-color .22s;
}
.why-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--primary); }
.why-item--cta { background: var(--primary-light); border-color: rgba(0,200,150,.3); }
.why-icon { font-size: 2rem; margin-bottom: 12px; }
.why-item h3 { font-size: .95rem; color: var(--dark); margin-bottom: 8px; font-weight: 700; }
.why-item p  { font-size: .83rem; color: var(--muted); line-height: 1.65; }

@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } .why-home { padding: 48px 0; } }

/* ============================================================
   CLASSEMENT TABS & RANK CTA
   ============================================================ */
.classement-tabs {
  display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap;
}
.rank-tab {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-radius: var(--radius-full);
  border: 1.5px solid var(--border); background: var(--white);
  font-weight: 600; font-size: .85rem; color: var(--text);
  text-decoration: none; transition: all var(--transition);
}
.rank-tab:hover  { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-light); }
.rank-tab.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.rank-tab-icon   { font-size: 1rem; }

.rank-zone-form {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap;
}
.classement-context {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap;
}
.rank-context-badge {
  font-size: .85rem; font-weight: 700; color: var(--dark);
  background: var(--bg); border: 1px solid var(--border-light);
  padding: 6px 16px; border-radius: var(--radius-full);
}
.rank-context-badge.muted { color: var(--muted); }

.rank-cta-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, #0F2A1D 0%, #0D2338 100%);
  border-radius: var(--radius-xl); padding: 24px 28px; margin-top: 28px;
}
.rank-cta-text strong { display: block; font-size: 1rem; color: #fff; margin-bottom: 4px; }
.rank-cta-text span   { font-size: .85rem; color: rgba(255,255,255,.6); }

/* ============================================================
   TARIFS / PRICING PAGE
   ============================================================ */
.pricing-hero {
  background: linear-gradient(155deg, #0F2A1D 0%, #0D2338 60%, #091220 100%);
  padding: 72px 0 56px; text-align: center;
  position: relative; overflow: hidden;
}
.pricing-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(255,255,255,.02) 79px, rgba(255,255,255,.02) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(255,255,255,.02) 79px, rgba(255,255,255,.02) 80px);
}
.pricing-hero-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.pricing-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem); color: #fff; font-weight: 800;
  line-height: 1.1; margin: 12px 0 14px; letter-spacing: -.5px;
}
.pricing-hero-title span {
  background: linear-gradient(135deg,#00C896,#00E8B0);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.pricing-hero-sub { color: rgba(255,255,255,.65); font-size: 1rem; line-height: 1.65; margin-bottom: 28px; }

.pricing-toggle {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  padding: 8px 16px; border-radius: var(--radius-full);
}
.pricing-toggle-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pricing-annual-explain {
  background: rgba(0,200,150,.12); border: 1px solid rgba(0,200,150,.25);
  color: rgba(255,255,255,.85); padding: 10px 18px; border-radius: var(--radius);
  font-size: .82rem; text-align: center; max-width: 480px;
}
.pricing-annual-explain strong { color: var(--primary); }

.pricing-toggle-label {
  font-size: .85rem; color: rgba(255,255,255,.5); font-weight: 600;
  transition: color var(--transition); text-align: center;
}
.pricing-toggle-label.active { color: #fff; }
.toggle-sub { display: block; font-size: .68rem; font-weight: 400; margin-top: 2px; opacity: .65; }
.pricing-save-badge {
  background: var(--primary); color: #fff;
  font-size: .65rem; font-weight: 800; padding: 2px 7px;
  border-radius: var(--radius-full); margin-left: 5px; vertical-align: middle;
}
.pricing-toggle-switch {
  width: 44px; height: 24px; background: rgba(255,255,255,.2);
  border-radius: var(--radius-full); position: relative; transition: background var(--transition);
  border: none; cursor: pointer;
}
.pricing-toggle-switch.on { background: var(--primary); }
.pricing-toggle-knob {
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  position: absolute; top: 3px; left: 3px; transition: transform var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.pricing-toggle-switch.on .pricing-toggle-knob { transform: translateX(20px); }

.pricing-section { padding: 56px 0 40px; background: var(--bg); }
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; max-width: 1080px; margin: 0 auto;
  align-items: start;
}

.pricing-card {
  background: var(--white); border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl); padding: 28px 24px;
  position: relative; transition: box-shadow .22s, transform .22s;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-card--popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0,200,150,.15), var(--shadow-lg);
  transform: scale(1.03);
}
.pricing-card--popular:hover { transform: scale(1.03) translateY(-4px); }
.pricing-card--pro { border-color: var(--dark); }

.pricing-popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: .72rem; font-weight: 800;
  padding: 4px 14px; border-radius: var(--radius-full); white-space: nowrap;
  letter-spacing: .04em;
}

.pricing-card-header { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--border-light); margin-bottom: 20px; }
.pricing-plan-name { font-family: 'Kanit', sans-serif; font-size: 1.25rem; font-weight: 800; color: var(--dark); margin-bottom: 6px; }
.pricing-plan-icon { font-size: 2.2rem; margin-bottom: 10px; }
.pricing-price { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin-bottom: 6px; }
.price-amount { font-family: 'Kanit', sans-serif; font-size: 2.8rem; font-weight: 800; color: var(--dark); line-height: 1; }
.price-period { font-size: .85rem; color: var(--muted); }
.pricing-annual-note { font-size: .75rem; color: var(--success); font-weight: 600; margin-bottom: 8px; }
.pricing-plan-for {
  font-size: .78rem; font-weight: 700; color: var(--primary-dark);
  background: var(--primary-light); padding: 4px 10px;
  border-radius: var(--radius-full); display: inline-block;
  margin-bottom: 10px; margin-top: 4px;
}
.pricing-card--popular .pricing-plan-for { background: rgba(0,200,150,.12); color: var(--primary); }
.pricing-card--pro .pricing-plan-for { background: #F1F5F9; color: var(--dark); }

.pricing-billing-explain {
  font-size: .72rem; color: var(--muted); margin: 6px 0 4px; min-height: 16px;
}

.pricing-plan-desc { font-size: .82rem; color: var(--muted); line-height: 1.6; margin-top: 8px; }

.pricing-features { margin-bottom: 22px; }
.pricing-features li { padding: 7px 0; font-size: .85rem; line-height: 1.4; border-bottom: 1px solid var(--border-light); display: flex; align-items: flex-start; gap: 8px; }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li.no { color: var(--muted); }

.pricing-cta { margin-bottom: 10px; }
.pricing-cta-note { font-size: .72rem; color: var(--muted); text-align: center; }

/* Comparatif */
.pricing-compare-wrap { max-width: 1080px; margin: 28px auto 0; }
.pricing-compare-toggle {
  display: block; width: 100%; padding: 14px; background: var(--white);
  border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  font-size: .9rem; font-weight: 600; color: var(--text); cursor: pointer;
  transition: background var(--transition);
}
.pricing-compare-toggle:hover { background: var(--bg); }
.pricing-compare-table { margin-top: 12px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-light); }
.pricing-compare-table table { width: 100%; border-collapse: collapse; font-size: .83rem; }
.pricing-compare-table th { background: var(--bg); padding: 12px 16px; text-align: left; font-weight: 700; border-bottom: 1px solid var(--border-light); }
.pricing-compare-table .th-popular { background: var(--primary-light); color: var(--primary-dark); }
.pricing-compare-table td { padding: 10px 16px; border-bottom: 1px solid var(--border-light); text-align: left; }
.pricing-compare-table tr:last-child td { border-bottom: none; }
.compare-section { background: var(--bg); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }

/* Garantie */
.pricing-guarantee { padding: 40px 0; background: var(--white); border-top: 1px solid var(--border-light); }
.guarantee-inner { display: flex; align-items: center; gap: 20px; max-width: 680px; margin: 0 auto; background: var(--success-bg); border-radius: var(--radius-xl); padding: 24px 28px; }
.guarantee-icon { font-size: 2.5rem; flex-shrink: 0; }
.guarantee-inner h3 { color: var(--dark); margin-bottom: 6px; font-size: 1rem; }
.guarantee-inner p  { color: var(--muted); font-size: .85rem; line-height: 1.6; }

/* FAQ */
.pricing-faq { padding: 60px 0; background: var(--bg); }
.pricing-faq-title { font-size: 1.5rem; color: var(--dark); text-align: center; margin-bottom: 36px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 900px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 20px; }
.faq-q { font-size: .9rem; color: var(--dark); margin-bottom: 8px; font-weight: 700; line-height: 1.35; }
.faq-a { font-size: .83rem; color: var(--muted); line-height: 1.65; }

/* CTA final */
.pricing-final-cta {
  background: linear-gradient(135deg, #0F2A1D 0%, #0D2338 100%);
  padding: 72px 0; text-align: center;
}
.pricing-final-inner h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: #fff; margin-bottom: 10px; }
.pricing-final-inner p  { color: rgba(255,255,255,.6); font-size: .95rem; margin-bottom: 24px; }
.pricing-final-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.pricing-final-trust { font-size: .78rem; color: rgba(255,255,255,.4); }

/* Nav link tarifs */
.nav-link--tarifs { color: var(--primary-dark) !important; font-weight: 700; }
.nav-link--tarifs:hover { background: var(--primary-light) !important; }

/* Nav link clubs */
.nav-link--club { color: var(--gold) !important; font-weight: 600; }
.nav-link--club:hover { background: rgba(245,158,11,.12) !important; }

/* Responsive pricing */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
  .pricing-card--popular { transform: none; }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pricing-hero { padding: 52px 0 40px; }
  .guarantee-inner { flex-direction: column; text-align: center; padding: 20px; }
}

/* ============================================================
   TERRAIN SELECTOR (match-create)
   ============================================================ */
.terrain-steps { display: flex; flex-direction: column; gap: 14px; }
.terrain-step { transition: opacity .2s; }
.terrain-step-hidden { opacity: 0; height: 0; overflow: hidden; pointer-events: none; }
.terrain-step-label {
  display: flex; align-items: center; gap: 10px;
  font-size: .85rem; font-weight: 700; color: var(--dark); margin-bottom: 8px;
}
.terrain-step-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: .72rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.terrain-cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 10px;
}
.terrain-card {
  border: 2px solid var(--border); border-radius: var(--radius);
  cursor: pointer; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.terrain-card:hover { border-color: var(--primary); }
.terrain-card input[type=radio] { display: none; }
.terrain-card:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,200,150,.15); }
.terrain-card-inner { display: flex; flex-direction: column; }
.terrain-card-photo {
  width: 100%; height: 100px; object-fit: cover; display: block;
}
.terrain-card-photo--fallback {
  width: 100%; height: 100px;
  background: linear-gradient(135deg, #0F2A1D, #0D2338);
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem;
}
.terrain-card-body { padding: 10px; }
.terrain-card-name { font-weight: 700; font-size: .82rem; color: var(--dark); margin-bottom: 4px; }
.terrain-card-details { font-size: .72rem; color: var(--muted); }
.terrain-card-adresse { font-size: .7rem; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.terrain-card-custom { border-style: dashed; }
.terrain-card-custom .terrain-card-inner { flex-direction: row; align-items: center; gap: 10px; padding: 12px; }
.terrain-card-custom .terrain-card-icon { font-size: 1.4rem; }
.terrain-card-custom .terrain-card-name { color: var(--muted); }
.terrain-loading { padding: 20px; text-align: center; color: var(--muted); font-size: .85rem; }

.terrain-selected-box {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--primary-light); border: 1.5px solid var(--primary);
  border-radius: var(--radius); padding: 14px 16px;
}
.terrain-selected-info { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.terrain-selected-info strong { display: block; font-size: .9rem; color: var(--dark); }
.terrain-selected-info span { font-size: .78rem; color: var(--muted); }

/* ============================================================
   PRICING TRUST BAR + SOCIAL PROOF
   ============================================================ */
.pricing-hero-promo-bar {
  display: inline-block; background: rgba(0,200,150,.15); border: 1px solid rgba(0,200,150,.3);
  color: #fff; padding: 8px 20px; border-radius: var(--radius-full);
  font-size: .82rem; margin-bottom: 20px;
}
.pricing-hero-promo-bar strong { color: var(--primary); }

.pricing-social-proof {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  flex-wrap: wrap; margin-top: 24px; padding: 16px;
  background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border-light);
}
.psp-item { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text); }
.psp-sep  { color: var(--border); font-size: 1.2rem; }

.pricing-trust-bar { padding: 44px 0; background: var(--white); border-top: 1px solid var(--border-light); }
.trust-items {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  max-width: 1000px; margin: 0 auto;
}
.trust-item { display: flex; align-items: flex-start; gap: 14px; }
.trust-icon { font-size: 2rem; flex-shrink: 0; }
.trust-item strong { display: block; font-size: .9rem; color: var(--dark); margin-bottom: 3px; }
.trust-item span   { font-size: .8rem; color: var(--muted); }

/* Comparatif <details> */
.pricing-compare-wrap { max-width: 1080px; margin: 24px auto 0; }
.pricing-compare-wrap summary {
  list-style: none; padding: 14px 18px; background: var(--white);
  border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  font-size: .9rem; font-weight: 600; color: var(--text); cursor: pointer;
  transition: background var(--transition);
}
.pricing-compare-wrap summary:hover { background: var(--bg); }
.pricing-compare-wrap[open] summary { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

@media (max-width: 900px) {
  .trust-items { grid-template-columns: 1fr 1fr; }
  .pricing-social-proof { flex-direction: column; gap: 8px; }
  .psp-sep { display: none; }
  .terrain-cards-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .trust-items { grid-template-columns: 1fr; }
  .terrain-cards-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   TESTIMONIALS — Masonry / scroll-drag
   ============================================================ */
.testi-home { padding: 80px 0; background: var(--bg); overflow: hidden; }
.testi-home-head { margin-bottom: 40px; text-align: center; }
.testi-home-head .home-section-label { margin: 0 auto 10px; }
.testi-home-head .home-section-title { text-align: center; }

.testi-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.testi-card {
  background: var(--white); border-radius: var(--radius-xl);
  padding: 24px; border: 1px solid var(--border-light);
  transition: box-shadow .25s, transform .25s;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.testi-card::before {
  content: '"';
  position: absolute; top: -10px; right: 16px;
  font-size: 7rem; font-family: Georgia, serif; font-weight: 900;
  color: var(--primary); opacity: .07; line-height: 1; pointer-events: none;
}
.testi-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.testi-card--featured {
  background: linear-gradient(135deg, #0F2A1D, #0D2338);
  border-color: transparent;
  color: #fff;
}
.testi-card--featured::before { color: var(--primary); opacity: .15; }

.testi-plan-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .65rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; padding: 3px 10px; border-radius: var(--radius-full);
  margin-bottom: 12px; width: fit-content;
}
.plan-starter     { background: #EEF2FF; color: #4338CA; }
.plan-player      { background: var(--primary-light); color: var(--primary-dark); }
.plan-pro         { background: #FDF4FF; color: #7E22CE; }
.testi-card--featured .plan-player { background: rgba(0,200,150,.2); color: var(--primary); }

.testi-stars { color: #FBBF24; font-size: .95rem; letter-spacing: 2px; margin-bottom: 10px; }
.testi-card--featured .testi-stars { color: #FBBF24; }

.testi-text {
  font-size: .9rem; color: var(--text); line-height: 1.75;
  font-style: italic; flex: 1; margin-bottom: 18px;
}
.testi-card--featured .testi-text { color: rgba(255,255,255,.85); }

.testi-author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border-light); }
.testi-card--featured .testi-author { border-top-color: rgba(255,255,255,.12); }

.testi-avatar-circle {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: #fff; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.testi-name  { font-weight: 700; color: var(--dark); font-size: .875rem; }
.testi-meta  { color: var(--muted); font-size: .72rem; margin-top: 2px; }
.testi-card--featured .testi-name { color: #fff; }
.testi-card--featured .testi-meta { color: rgba(255,255,255,.5); }

.testi-date { font-size: .68rem; color: var(--muted); margin-left: auto; flex-shrink: 0; }
.testi-card--featured .testi-date { color: rgba(255,255,255,.3); }

.testi-score-row {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 40px; flex-wrap: wrap;
}
.testi-score-big {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius-full); padding: 10px 20px;
}
.testi-score-big .stars { font-size: 1rem; color: #FBBF24; }
.testi-score-big strong { font-family: 'Kanit', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--dark); }
.testi-score-big span   { font-size: .78rem; color: var(--muted); }

@media (max-width: 900px) { .testi-masonry { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .testi-masonry { grid-template-columns: 1fr; } }

/* ============================================================
   WHY PAY SECTION (tarifs.php)
   ============================================================ */
.why-pay-section {
  padding: 72px 0; background: var(--white);
  border-top: 1px solid var(--border-light);
}
.why-pay-title { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--dark); text-align: center; margin-bottom: 8px; }
.why-pay-sub   { text-align: center; color: var(--muted); font-size: .95rem; margin-bottom: 40px; }

.why-pay-vs-wrap {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 20px; align-items: start; max-width: 800px; margin: 0 auto 32px;
}
.why-pay-col { border-radius: var(--radius-xl); overflow: hidden; }
.why-pay-col-head {
  padding: 16px 20px; font-weight: 800; font-size: .9rem; display: flex; align-items: center; gap: 8px;
}
.before-head { background: #FEE2E2; color: #991B1B; }
.after-head  { background: #DCFCE7; color: #166534; }
.why-pay-col-body { padding: 0 4px 8px; background: var(--bg); }
.why-pay-col-body li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 16px; font-size: .85rem; color: var(--text);
  border-bottom: 1px solid var(--border-light);
}
.why-pay-col-body li:last-child { border-bottom: none; }
.before-li { color: var(--muted); text-decoration: line-through; }

.why-pay-vs-badge {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--dark); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .9rem; margin-top: 48px; flex-shrink: 0;
}
.why-pay-roi {
  max-width: 640px; margin: 0 auto;
  background: linear-gradient(135deg, var(--primary-light), #E0FFF6);
  border: 1px solid rgba(0,200,150,.25); border-radius: var(--radius-xl);
  padding: 18px 24px; text-align: center; font-size: .9rem; color: var(--primary-dark);
  font-weight: 600; line-height: 1.6;
}

@media (max-width: 600px) {
  .why-pay-vs-wrap { grid-template-columns: 1fr; }
  .why-pay-vs-badge { display: none; }
}

/* ============================================================
   PROFIL — AVATAR AMÉLIORÉ + COMPLETION BAR
   ============================================================ */
.profile-avatar-hero {
  position: relative; width: 120px; margin: 0 auto 16px;
}
.avatar-ring {
  width: 120px; height: 120px; border-radius: 50%;
  padding: 3px;
  background: conic-gradient(var(--primary) var(--ring-pct, 0%), var(--border) var(--ring-pct, 0%));
}
.avatar-ring img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--white); display: block;
}
.avatar-ring--uploading {
  background: conic-gradient(var(--primary) 100%, var(--primary) 100%);
  animation: ring-spin 1s linear infinite;
}
@keyframes ring-spin { to { transform: rotate(360deg); } }

.avatar-edit-overlay {
  position: absolute; bottom: 4px; right: 4px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 2px solid var(--white);
}
.avatar-edit-overlay:hover { transform: scale(1.1); box-shadow: 0 4px 14px rgba(0,200,150,.3); }

.profile-completion {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 16px 18px; margin-top: 14px;
}
.profile-completion-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;
}
.profile-completion-label { font-size: .78rem; font-weight: 700; color: var(--dark); }
.profile-completion-pct   { font-size: .78rem; font-weight: 800; color: var(--primary-dark); }
.profile-completion-bar   {
  height: 6px; background: var(--border-light); border-radius: var(--radius-full); overflow: hidden; margin-bottom: 8px;
}
.profile-completion-fill  {
  height: 100%; background: linear-gradient(90deg, var(--primary), #00E8B0);
  border-radius: var(--radius-full); transition: width .8s cubic-bezier(.2,0,0,1);
}
.profile-completion-items { display: flex; flex-direction: column; gap: 4px; }
.profile-completion-item  { font-size: .72rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.profile-completion-item.done { color: var(--success); }

/* ============================================================
   SPORTY DESIGN EXTRAS
   ============================================================ */
/* Section labels sportifs */
.sport-label {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, var(--primary), #00A878);
  color: #fff; padding: 5px 16px; border-radius: var(--radius-full);
  font-size: .7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 12px;
}

/* Cards plus sportives */
.match-card-v2:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,.15), 0 4px 12px rgba(0,200,150,.08);
  transform: translateY(-6px);
  border-color: var(--primary);
}

/* Stat boxes avec gradient */
.hero-stat-item strong {
  background: linear-gradient(135deg, #fff, rgba(255,255,255,.8));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  font-size: 1.35rem;
}
.hero-stat-sep { height: 32px; }

/* Better section titles */
.home-section-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: -.4px; font-weight: 800;
}

/* Glowing primary button */
.btn-accent, .btn-primary {
  position: relative; overflow: hidden;
}
.btn-accent::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,.12));
  pointer-events: none;
}

/* Numbers section gradient */
.numbers-home { position: relative; }
.numbers-home::before {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 29px, rgba(0,200,150,.03) 29px, rgba(0,200,150,.03) 30px);
}
.numbers-home .numbers-grid { position: relative; z-index: 1; }

/* Better match card visual */
.card-visual::before {
  content: '🎾'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; opacity: .08; pointer-events: none;
  filter: grayscale(1);
}

/* Animate hero live dot */
.hero-live-dot { animation: pulse-green 1.8s ease-in-out infinite; }
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,200,150,.6); }
  50% { box-shadow: 0 0 0 6px rgba(0,200,150,0); }
}

/* ============================================================
   COMMENT ÇA MARCHE PAGE
   ============================================================ */
.cmm-page { padding: 40px 0 80px; }

.cmm-flow { margin-bottom: 56px; }
.cmm-flow-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; flex-wrap: wrap; background: var(--white);
  border: 1px solid var(--border-light); border-radius: var(--radius-2xl);
  padding: 28px 24px;
}
.cmm-flow-step { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.cmm-step-num  {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: var(--dark);
  font-weight: 800; font-size: .72rem; display: flex; align-items: center; justify-content: center;
}
.cmm-step-icon  { font-size: 1.6rem; }
.cmm-step-label { font-size: .72rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.cmm-flow-arrow { font-size: 1.2rem; color: var(--primary); opacity: .5; flex-shrink: 0; }

.cmm-sections { display: flex; flex-direction: column; gap: 4px; }

.cmm-section {
  display: flex; gap: 28px; align-items: flex-start;
  padding: 36px 32px; background: var(--white);
  border: 1px solid var(--border-light); border-radius: var(--radius-xl);
  margin-bottom: 14px;
}
.cmm-section--important {
  border-color: var(--primary); background: linear-gradient(135deg, var(--primary-light), var(--white));
}
.cmm-section--dark {
  background: linear-gradient(135deg, var(--dark-2), var(--dark-3));
  border-color: transparent; color: rgba(255,255,255,.85);
}
.cmm-section--dark h2, .cmm-section--dark h3 { color: #fff; }
.cmm-section--dark strong { color: var(--primary); }
.cmm-section--dark p { color: rgba(255,255,255,.7); }

.cmm-section-icon {
  font-size: 3rem; flex-shrink: 0; width: 72px; height: 72px;
  background: var(--primary-light); border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
}
.cmm-section--dark .cmm-section-icon { background: rgba(5,226,122,.12); }

.cmm-section-body { flex: 1; }
.cmm-section-num {
  font-size: .68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--primary); margin-bottom: 4px;
}
.cmm-section-body h2 { font-size: 1.35rem; color: var(--dark); margin-bottom: 12px; }
.cmm-section-body p  { font-size: .9rem; color: var(--text); line-height: 1.75; margin-bottom: 12px; }
.cmm-section-body h3 { font-size: 1rem; color: var(--dark); margin-bottom: 10px; }

.cmm-list { list-style: none; margin: 12px 0 14px; display: flex; flex-direction: column; gap: 7px; }
.cmm-list li { font-size: .88rem; color: var(--text); display: flex; align-items: flex-start; gap: 8px; line-height: 1.55; }
.cmm-list-light li { color: rgba(255,255,255,.75); }

.cmm-tip {
  background: var(--info-bg); border-left: 4px solid var(--info);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 16px; font-size: .85rem; line-height: 1.6;
  color: var(--info); margin: 14px 0;
}
.cmm-tip-light {
  background: rgba(59,130,246,.1); border-left-color: rgba(59,130,246,.5); color: rgba(255,255,255,.8);
}
.cmm-alert {
  background: var(--warning-bg); border-left: 4px solid var(--warning);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 16px; font-size: .85rem; color: var(--warning);
  margin: 14px 0;
}
.cmm-alert a { color: var(--primary-dark); font-weight: 700; text-decoration: underline; }

.cmm-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.cmm-validate-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin: 16px 0; }
.cmm-validate-item {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 14px;
}
.cmm-validate-icon { font-size: 1.5rem; flex-shrink: 0; }
.cmm-validate-item strong { display: block; font-size: .85rem; color: var(--dark); margin-bottom: 4px; }
.cmm-validate-item p { font-size: .78rem; color: var(--muted); line-height: 1.55; margin: 0; }

.cmm-result-flow { display: flex; flex-direction: column; gap: 0; margin: 14px 0; }
.cmm-result-step {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 14px 16px;
}
.cmm-result-step.ok      { border-color: var(--success); background: var(--success-bg); }
.cmm-result-step.dispute { border-color: var(--warning); background: var(--warning-bg); }
.cmm-result-step strong { display: block; font-size: .88rem; color: var(--dark); margin-bottom: 4px; }
.cmm-result-step p { font-size: .8rem; color: var(--muted); line-height: 1.55; margin: 0; }
.cmm-result-num {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--dark); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem;
}
.cmm-result-connector { text-align: center; color: var(--muted); font-size: 1.2rem; padding: 4px 0; }

.cmm-rating-criteria {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin: 14px 0;
}
.cmm-criterion {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--bg); border-radius: var(--radius); padding: 12px;
}
.cmm-criterion > span { font-size: 1.5rem; flex-shrink: 0; }
.cmm-criterion strong { display: block; font-size: .82rem; color: var(--dark); margin-bottom: 3px; }
.cmm-criterion p { font-size: .75rem; color: var(--muted); margin: 0; line-height: 1.4; }

.cmm-cert-ladder { display: flex; gap: 0; margin: 16px 0; flex-direction: column; }
.cmm-cert-level  {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px; border: 1px solid var(--border-light);
  border-bottom: none; background: var(--white);
}
.cmm-cert-level:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.cmm-cert-level:last-child  { border-bottom: 1px solid var(--border-light); border-radius: 0 0 var(--radius) var(--radius); }
.cmm-cert-info strong { display: block; font-size: .8rem; color: var(--dark); }
.cmm-cert-info span   { font-size: .72rem; color: var(--muted); }

.cmm-flow-mini {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0;
  background: var(--bg); border-radius: var(--radius); padding: 12px 16px;
}
.cmm-flow-mini-item { font-size: .8rem; font-weight: 600; color: var(--text); }
.cmm-flow-mini-item.ok { color: var(--success); }
.cmm-flow-mini-arrow { color: var(--primary); font-size: 1rem; }

.cmm-faq { margin-top: 48px; }
.cmm-faq-title { font-size: 1.5rem; color: var(--dark); margin-bottom: 24px; text-align: center; }
.cmm-faq-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cmm-faq-item  { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 20px; }
.cmm-faq-item h3 { font-size: .9rem; color: var(--dark); margin-bottom: 8px; font-weight: 700; line-height: 1.35; }
.cmm-faq-item p  { font-size: .82rem; color: var(--muted); line-height: 1.65; }

.cmm-cta {
  text-align: center; margin-top: 48px;
  background: linear-gradient(135deg, var(--dark-2), var(--dark-3));
  border-radius: var(--radius-2xl); padding: 48px 32px;
}
.cmm-cta h2 { font-size: 1.8rem; color: #fff; margin-bottom: 8px; }
.cmm-cta p  { color: rgba(255,255,255,.6); font-size: .95rem; }

@media (max-width: 900px) {
  .cmm-validate-grid  { grid-template-columns: 1fr; }
  .cmm-rating-criteria{ grid-template-columns: 1fr; }
  .cmm-section        { flex-direction: column; gap: 16px; padding: 24px 20px; }
  .cmm-section-icon   { width: 52px; height: 52px; font-size: 2rem; }
  .cmm-faq-grid       { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cmm-flow-steps     { gap: 4px; padding: 16px 12px; }
  .cmm-step-icon      { font-size: 1.2rem; }
  .cmm-step-label     { font-size: .62rem; }
  .cmm-flow-arrow     { font-size: .9rem; }
}

/* ============================================================
   RÉSULTATS MATCH — composants
   ============================================================ */
.result-score-display {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: var(--bg); border-radius: var(--radius); padding: 12px 16px;
}
.result-set-score {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 6px 14px;
  font-family: 'Kanit', sans-serif; font-size: 1.1rem; font-weight: 800; color: var(--dark);
  min-width: 70px; text-align: center;
}
.result-winner-badge {
  background: var(--success-bg); color: var(--success);
  border: 1px solid #A7F3D0; border-radius: var(--radius-full);
  padding: 4px 12px; font-size: .75rem; font-weight: 700; margin-left: auto;
}

.match-result-section {
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 20px; margin-top: 18px;
}
.match-result-section h4 { font-size: .88rem; color: var(--dark); margin-bottom: 14px; }

/* Rating stars interactive */
.rating-stars-input { display: flex; gap: 4px; flex-direction: row; }
.rating-stars-input input { display: none; }
.rating-stars-input label {
  font-size: 1.6rem; color: var(--border); cursor: pointer;
  transition: color .15s, transform .15s;
}
.rating-stars-input input:checked ~ label,
.rating-stars-input label:hover,
.rating-stars-input label:hover ~ label { color: #F59E0B; transform: scale(1.1); }

/* ── UI/UX Extras (Skeleton, Toggles) ────────────────────── */
.theme-toggle-btn {
  font-size: 1.25rem; padding: 6px; border-radius: var(--radius-sm);
  transition: background var(--transition); display: block;
}
.theme-toggle-btn:hover { background: var(--bg); }
[data-theme="dark"] .theme-icon-light { display: none !important; }
[data-theme="dark"] .theme-icon-dark { display: inline !important; }

/* ============================================================
   CERTIFICATION BADGES
   ============================================================ */
.cert-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  white-space: nowrap;
}
.cert-badge-lg  { font-size: .8rem; padding: 4px 12px; }
.cert-badge-xl  { font-size: 1rem; padding: 6px 18px; }
.cert-rookie        { background:#F1F5F9; color:#64748B; border:1px solid #CBD5E1; }
.cert-debutant-plus { background:#ECFDF5; color:#047857; border:1px solid #A7F3D0; }
.cert-confirme      { background:#EFF6FF; color:#1D4ED8; border:1px solid #BFDBFE; }
.cert-confirme-pro  { background:#FFFBEB; color:#B45309; border:1px solid #FDE68A; }
.cert-certifie      { background:#FFF7ED; color:#C2410C; border:1px solid #FED7AA; }
.cert-elite         { background:linear-gradient(135deg,#4F46E5,#7C3AED); color:#fff; border:none; }

/* ============================================================
   TYPE MATCH BADGES
   ============================================================ */
.type-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: var(--radius-full);
  font-size: .72rem; font-weight: 600; white-space: nowrap;
}
.type-complet     { background:#F0FDF9; color:#047857; border:1px solid #A7F3D0; }
.type-binome      { background:#EEF2FF; color:#4338CA; border:1px solid #C7D2FE; }
.type-adversaires { background:#FFF1F2; color:#BE123C; border:1px solid #FECDD3; }

.card-type-badge {
  position: absolute; bottom: 10px; left: 10px;
}

/* ============================================================
   TYPE SELECTOR (match-create)
   ============================================================ */
.type-selector {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 10px;
}
.type-option {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 6px; padding: 16px 10px; border: 2px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: all var(--transition); background: var(--white);
  position: relative;
}
.type-option input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.type-option:hover { border-color: var(--primary); background: var(--primary-light); }
.type-option.active { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 3px rgba(0,200,150,.15); }
.type-option-icon  { font-size: 1.8rem; }
.type-option-label { font-weight: 700; font-size: .88rem; color: var(--dark); }
.type-option-desc  { font-size: .75rem; color: var(--muted); line-height: 1.3; }

/* ============================================================
   HERO CHIPS — TYPE
   ============================================================ */
.hero-chips--type { margin-top: 8px; }
.hero-chip--type  { font-size: .78rem; }

/* ============================================================
   CLASSEMENT PAGE
   ============================================================ */
.classement-page { padding: 40px 0 60px; }

.classement-page-header h1 { font-size: 2rem; color: var(--dark); }
.classement-page-header .page-header-sub { color: var(--muted); margin-top: 6px; }

.classement-filters {
  display: flex; gap: 10px; margin-bottom: 28px;
  flex-wrap: wrap; align-items: center;
}
.rank-filter-btn {
  padding: 8px 18px; border-radius: var(--radius-full);
  border: 1.5px solid var(--border); background: var(--white);
  font-weight: 600; font-size: .85rem; color: var(--text);
  text-decoration: none; transition: all var(--transition);
}
.rank-filter-btn:hover, .rank-filter-btn.active {
  border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark);
}
.rank-city-form { display: flex; gap: 8px; align-items: center; }
.rank-total-badge {
  margin-left: auto; font-size: .8rem; color: var(--muted);
  background: var(--bg); padding: 4px 12px; border-radius: var(--radius-full);
}

/* Podium */
.rank-podium {
  display: flex; align-items: flex-end; justify-content: center; gap: 12px;
  margin-bottom: 36px; padding: 20px 0 0;
}
.podium-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.podium-avatar-link { position: relative; display: inline-block; }
.podium-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--border); }
.podium-avatar-lg { width: 72px; height: 72px; }
.podium-medal { position: absolute; bottom: -6px; right: -6px; font-size: 1.2rem; }
.podium-name  { font-weight: 700; font-size: .85rem; color: var(--dark); }
.podium-score { font-size: .78rem; color: var(--muted); }
.podium-block { border-radius: var(--radius-sm) var(--radius-sm) 0 0; width: 80px; margin-top: 8px; }
.podium-block-1 { height: 80px; background: linear-gradient(180deg,#F59E0B,#D97706); }
.podium-block-2 { height: 60px; background: linear-gradient(180deg,#94A3B8,#64748B); }
.podium-block-3 { height: 44px; background: linear-gradient(180deg,#C2855A,#A16207); }

/* Tableau */
.rank-table { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border-light); overflow: hidden; margin-bottom: 28px; }

.rank-header-row {
  display: grid; grid-template-columns: 60px 1fr 130px 80px 90px 90px;
  gap: 12px; padding: 12px 20px; background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted);
}
.rank-row {
  display: grid; grid-template-columns: 60px 1fr 130px 80px 90px 90px;
  gap: 12px; padding: 14px 20px; align-items: center;
  border-bottom: 1px solid var(--border-light); transition: background var(--transition);
}
.rank-row:last-child { border-bottom: none; }
.rank-row:hover      { background: var(--bg); }
.rank-row--self      { background: var(--primary-light) !important; }

.rank-pos      { font-size: 1.1rem; font-weight: 800; color: var(--muted); text-align: center; }
.rank-pos.gold   { color: #F59E0B; }
.rank-pos.silver { color: #94A3B8; }
.rank-pos.bronze { color: #C2855A; }

.rank-player { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.rank-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rank-name   { font-weight: 700; font-size: .9rem; color: var(--dark); }
.rank-meta   { font-size: .75rem; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rank-you-badge { background: var(--primary); color: #fff; font-size: .65rem; padding: 1px 6px; border-radius: var(--radius-full); font-weight: 700; }

.rank-matches { font-size: .88rem; color: var(--dark); }
.rank-matches small { display: block; font-size: .72rem; color: var(--muted); }
.rank-rating  { font-size: .88rem; color: var(--dark); }
.rank-rating .rank-stars { color: #F59E0B; }
.rank-rating small { color: var(--muted); font-size: .72rem; }
.rank-score   { font-weight: 800; font-size: 1rem; color: var(--primary-dark); }
.rank-score small { font-size: .72rem; font-weight: 400; color: var(--muted); }

.rank-legend {
  background: var(--bg); border-radius: var(--radius); padding: 16px 20px;
  margin-bottom: 28px; font-size: .85rem; color: var(--text);
}
.rank-legend ul { list-style: none; display: flex; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.rank-legend li { display: flex; align-items: center; gap: 6px; }

/* Cert guide */
.cert-guide {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 24px; margin-top: 8px;
}
.cert-guide h3 { font-size: 1rem; color: var(--dark); margin-bottom: 16px; }
.cert-guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 12px; }
.cert-guide-item { display: flex; flex-direction: column; gap: 6px; }
.cert-guide-cond { font-size: .78rem; color: var(--muted); }

/* ============================================================
   TOP PLAYERS HOME SECTION
   ============================================================ */
.top-players-home { padding: 60px 0; background: var(--bg); }
.top-players-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 24px;
}
.top-players-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px;
}
.top-player-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border-light); text-decoration: none; color: inherit;
  transition: box-shadow var(--transition), transform var(--transition);
}
.top-player-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.top-player-rank {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-weight: 800; font-size: .8rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.top-player-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.top-player-info { flex: 1; min-width: 0; }
.top-player-name { font-weight: 700; font-size: .88rem; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-player-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; align-items: center; }
.top-player-score { font-size: .75rem; color: var(--muted); margin-top: 3px; }
.top-player-pts { font-weight: 800; font-size: .9rem; color: var(--primary-dark); white-space: nowrap; }
.top-player-pts small { font-weight: 400; font-size: .7rem; color: var(--muted); }

/* ============================================================
   DASHBOARD — request items améliorés
   ============================================================ */
.request-stats {
  display: flex; gap: 14px; margin-top: 6px; flex-wrap: wrap; align-items: center;
}
.request-stat-badge {
  font-size: .78rem; color: var(--text);
  display: flex; align-items: center; gap: 4px;
  background: var(--bg); padding: 3px 10px; border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

/* Player score pill on player.php */
.player-score-pill {
  margin-top: 10px; background: var(--primary-light); color: var(--primary-dark);
  font-weight: 700; font-size: .85rem; padding: 6px 16px;
  border-radius: var(--radius-full); border: 1px solid rgba(0,200,150,.3);
  display: inline-block;
}

/* ============================================================
   MON EVOLUTION PAGE
   ============================================================ */
.evo-page { padding: 32px 0 60px; }
.evo-page-header .page-header-sub { color: var(--muted); margin-top: 6px; }

.evo-page-header { padding: 28px 0; }
.evo-header-identity {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; flex: 1;
}
.evo-header-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.evo-header-avatar {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(255,255,255,.3); flex-shrink: 0;
}
.evo-page-header { display: flex; }
.evo-page-header .container > * { display: flex; }
.evo-page-header .page-header { background: var(--dark); color: #fff; }

.evo-header-rank {
  display: flex; gap: 24px; align-items: center; background: rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 14px 20px; flex-shrink: 0;
}
.evo-rank-item { text-align: center; }
.evo-rank-item strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.evo-rank-item span { font-size: .78rem; color: var(--muted); }
.evo-rank-sep { width: 1px; height: 40px; background: var(--border); }

.evo-grid {
  display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start;
}
.evo-section { margin-bottom: 28px; }
.evo-section-title {
  font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border-light);
}

.evo-stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.evo-stat-card {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 18px 16px; text-align: center;
  transition: box-shadow var(--transition);
}
.evo-stat-card:hover { box-shadow: var(--shadow-sm); }
.evo-stat-primary { border-color: var(--primary); background: var(--primary-light); }
.evo-stat-value { font-size: 2rem; font-weight: 800; color: var(--dark); line-height: 1; }
.evo-stat-value small { font-size: 1rem; color: var(--muted); font-weight: 400; }
.evo-stat-label { font-size: .78rem; color: var(--muted); margin-top: 6px; }

/* Progress card */
.evo-progress-card {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 20px;
}
.evo-progress-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap;
}
.evo-progress-arrow { font-size: 1.2rem; color: var(--muted); }
.evo-criterion { margin-bottom: 14px; }
.evo-criterion.done .evo-progress-bar { background: var(--success); }
.evo-criterion-label {
  display: flex; align-items: center; gap: 8px; font-size: .85rem;
  color: var(--text); margin-bottom: 8px; font-weight: 600;
}
.evo-criterion-label strong { margin-left: auto; color: var(--dark); }
.evo-progress-bar-wrap {
  height: 8px; background: var(--border-light); border-radius: var(--radius-full); overflow: hidden;
}
.evo-progress-bar {
  height: 100%; background: var(--primary); border-radius: var(--radius-full);
  transition: width 0.6s ease;
}
.evo-upgrade-ready {
  background: var(--success-bg); color: var(--success); border-radius: var(--radius);
  padding: 10px 14px; font-size: .85rem; font-weight: 600; margin-top: 10px;
}
.evo-progress-hint { font-size: .82rem; color: var(--muted); margin-top: 10px; }

/* History list */
.evo-history-list { display: flex; flex-direction: column; gap: 10px; }
.evo-history-item {
  display: flex; align-items: center; gap: 14px; padding: 14px;
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); text-decoration: none; color: inherit;
  transition: box-shadow var(--transition);
}
.evo-history-item:hover { box-shadow: var(--shadow-sm); }
.evo-history-date {
  text-align: center; min-width: 36px; flex-shrink: 0;
}
.evo-history-date strong { display: block; font-size: 1.2rem; font-weight: 800; color: var(--dark); line-height: 1; }
.evo-history-date span  { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; }
.evo-history-date small { display: block; font-size: .68rem; color: var(--muted); }
.evo-history-accent {
  width: 4px; height: 40px; border-radius: 2px; flex-shrink: 0;
}
.evo-history-info { flex: 1; min-width: 0; }
.evo-history-title { font-weight: 700; font-size: .9rem; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evo-history-meta  { font-size: .78rem; color: var(--muted); margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.evo-history-status { font-size: 1.1rem; flex-shrink: 0; }

.evo-empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.evo-empty .icon { font-size: 2.5rem; margin-bottom: 10px; opacity: .35; }

/* Aside cards */
.evo-aside { display: flex; flex-direction: column; gap: 16px; }
.evo-aside-card {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 20px;
}
.evo-aside-title { font-size: .9rem; font-weight: 700; color: var(--dark); margin-bottom: 14px; }

.evo-cert-card { text-align: center; }
.evo-cert-icon { font-size: 3rem; margin-bottom: 10px; }
.evo-cert-name { display: inline-flex; }
.evo-cert-desc { font-size: .82rem; color: var(--muted); margin-top: 10px; line-height: 1.5; }

.evo-rank-display { display: flex; gap: 16px; }
.evo-rank-big { flex: 1; text-align: center; }
.evo-rank-big strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--primary-dark); }
.evo-rank-big span   { font-size: .78rem; color: var(--muted); }

.evo-org-item {
  display: flex; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--border-light); text-decoration: none; color: inherit;
}
.evo-org-item:last-child { border-bottom: none; }
.evo-org-title { font-size: .85rem; font-weight: 600; color: var(--dark); }
.evo-org-meta  { font-size: .75rem; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 6px; }

.evo-quick-actions { background: var(--primary-light); border-color: rgba(0,200,150,.2); }

/* ============================================================
   RESPONSIVE AMÉLIORÉ
   ============================================================ */
@media (max-width: 1024px) {
  .evo-grid { grid-template-columns: 1fr; }
  .evo-aside { display: grid; grid-template-columns: 1fr 1fr; }
  .rank-header-row, .rank-row { grid-template-columns: 50px 1fr 110px 70px 80px 80px; }
}

@media (max-width: 900px) {
  .type-selector { grid-template-columns: 1fr; }
  .rank-header-row, .rank-row { grid-template-columns: 40px 1fr 80px 60px 70px; }
  .rank-header-row > *:nth-child(4),
  .rank-row > *:nth-child(4) { display: none; }
  .top-players-grid { grid-template-columns: 1fr 1fr; }
  .evo-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .evo-aside { grid-template-columns: 1fr; }
  .top-players-grid { grid-template-columns: 1fr; }
  .rank-podium { gap: 6px; }
  .podium-avatar    { width: 44px; height: 44px; }
  .podium-avatar-lg { width: 56px; height: 56px; }
  .rank-header-row, .rank-row {
    grid-template-columns: 36px 1fr 70px 70px;
    gap: 8px; padding: 12px 14px;
  }
  .rank-header-row > *:nth-child(3),
  .rank-row > *:nth-child(3),
  .rank-header-row > *:nth-child(4),
  .rank-row > *:nth-child(4) { display: none; }
  .evo-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .type-selector { grid-template-columns: 1fr; }
  .evo-header-rank { display: none; }
}

@media (max-width: 480px) {
  .evo-stats-grid { grid-template-columns: 1fr 1fr; }
  .cert-guide-grid { grid-template-columns: 1fr 1fr; }
  .rank-legend ul { flex-direction: column; gap: 8px; }
  .evo-history-date { display: none; }
  .top-player-card { padding: 10px 12px; }
}

/* ============================================================
   DESIGN POLISH v4 — PC & MOBILE IMPROVEMENTS
   ============================================================ */

/* ── Cards v2 visual improvements ── */
.card-visual {
  position: relative; padding-top: 58%;
  background: linear-gradient(135deg, #0D2137 0%, #1C3145 100%);
  overflow: hidden;
}
/* Court lines overlay */
.card-visual::after {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(255,255,255,.06) 19px, rgba(255,255,255,.06) 20px),
    repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(255,255,255,.04) 19px, rgba(255,255,255,.04) 20px);
  pointer-events: none;
}
.card-visual.level-debutant      { background: linear-gradient(135deg, #054030, #076048); }
.card-visual.level-intermediaire { background: linear-gradient(135deg, #6B2F08, #8A3C0A); }
.card-visual.level-avance        { background: linear-gradient(135deg, #6F2510, #921B1B); }
.card-visual.level-competition   { background: linear-gradient(135deg, #2A2480, #4338CA); }

.match-card-v2 {
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.match-card-v2:hover {
  box-shadow: 0 14px 40px rgba(0,0,0,.14), 0 2px 10px rgba(0,0,0,.07);
  transform: translateY(-5px);
  border-color: var(--primary);
}

/* ── Hero search pill — better mobile ── */
@media (max-width: 700px) {
  .hero-search-pill {
    flex-direction: column; border-radius: var(--radius-xl); gap: 0;
  }
  .search-pill-field { border-right: none; border-bottom: 1px solid var(--border-light); }
  .search-pill-field:last-of-type { border-bottom: none; }
  .search-pill-btn { width: calc(100% - 12px); margin: 6px; border-radius: var(--radius); }
}

/* ── Hero chips better spacing ── */
.hero-chips { gap: 6px; margin-bottom: 18px; }
.hero-chip { font-size: .78rem; padding: 6px 12px; }

/* ── Matches toolbar — better wrapping ── */
@media (max-width: 600px) {
  .matches-toolbar { flex-direction: column; align-items: stretch; }
  .matches-toolbar-right { justify-content: space-between; }
}

/* ── Cards grid — 1 col on small screens ── */
@media (max-width: 540px) {
  .cards-grid { grid-template-columns: 1fr !important; }
}

/* ── Page header — desktop improvements ── */
.page-header {
  background: linear-gradient(155deg, #0F2A1D 0%, #0D2338 60%, #091220 100%);
  padding: 44px 0 36px;
}
.page-header h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.3px; }

/* ── Auth cards — nicer on PC ── */
.auth-card { box-shadow: 0 20px 60px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.06); }
.auth-header { background: linear-gradient(155deg, #0F2A1D 0%, #0D2338 100%); padding: 30px; }

/* ── How-section home ── */
.how-home {
  padding: 72px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--white) 100%);
}
.home-section-label {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-light); color: var(--primary-dark);
  padding: 5px 14px; border-radius: var(--radius-full);
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  margin-bottom: 12px;
}
.home-section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: var(--dark);
  font-weight: 800; line-height: 1.1; margin-bottom: 8px;
}
.home-section-sub { color: var(--muted); font-size: .95rem; line-height: 1.65; max-width: 540px; }

.how-steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 36px; }
.how-step {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius-xl); padding: 28px 22px 24px; text-align: center;
  transition: box-shadow .22s, transform .22s;
}
.how-step:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.how-step-num {
  font-family: 'Kanit', sans-serif; font-size: 2.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1; margin-bottom: 10px;
}
.how-step-icon { font-size: 1.8rem; margin-bottom: 10px; }
.how-step h3 { font-size: 1rem; color: var(--dark); margin-bottom: 7px; }
.how-step p  { font-size: .83rem; color: var(--muted); line-height: 1.65; }
.how-step-arrow { font-size: 1.6rem; color: var(--primary); opacity: .5; }

/* ── Numbers section ── */
.numbers-home {
  background: linear-gradient(155deg, #0F2A1D 0%, #0D2338 60%, #091220 100%);
  padding: 52px 0;
}
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.number-item { text-align: center; padding: 18px 12px; border-right: 1px solid rgba(255,255,255,.08); }
.number-item:last-child { border-right: none; }
.number-item strong { display: block; font-family: 'Kanit', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 4px; }
.number-item span { color: rgba(255,255,255,.6); font-size: .78rem; }

/* ── Testimonials ── */
.testi-home { padding: 72px 0; background: var(--white); }
.testi-home-head { margin-bottom: 32px; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testi-card {
  background: var(--bg); border-radius: var(--radius-xl); padding: 24px;
  border: 1px solid var(--border-light); transition: all .22s;
  display: flex; flex-direction: column;
}
.testi-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); background: var(--white); }
.testi-stars { color: #FBBF24; font-size: 1rem; letter-spacing: 2px; margin-bottom: 12px; }
.testi-text  { font-size: .875rem; color: var(--text); line-height: 1.75; font-style: italic; flex: 1; margin-bottom: 16px; }
.testi-author { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border-light); }
.testi-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #0D2338); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: .9rem; flex-shrink: 0; }
.testi-name { font-weight: 700; color: var(--dark); font-size: .875rem; }
.testi-meta { color: var(--muted); font-size: .72rem; margin-top: 1px; }

/* ── CTA Home ── */
.cta-home {
  background: linear-gradient(135deg, #091220 0%, #0F2A1D 50%, #091220 100%);
  position: relative; overflow: hidden; padding: 72px 0;
}
.cta-home::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 59px, rgba(0,200,150,.02) 59px, rgba(0,200,150,.02) 60px);
}
.cta-home-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap; position: relative; z-index: 1;
}
.cta-home-text h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: #fff; margin-bottom: 8px; }
.cta-home-text p  { color: rgba(255,255,255,.6); font-size: .95rem; max-width: 440px; }
.cta-home-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-cta-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-cta-ghost:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); }

/* ── MOBILE BOTTOM NAVIGATION ── */
.mobile-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: var(--white); border-top: 1px solid var(--border-light);
  padding: 6px 4px max(8px, env(safe-area-inset-bottom, 8px));
  box-shadow: 0 -6px 24px rgba(0,0,0,.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
[data-theme="dark"] .mobile-bottom-nav { background: rgba(30,41,59,.95); }

.mbn-inner { display: flex; align-items: center; }
.mbn-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; flex: 1; padding: 6px 4px 2px;
  text-decoration: none; color: var(--muted);
  font-size: .62rem; font-weight: 600; letter-spacing: .02em;
  transition: color var(--transition); min-width: 0;
  border-radius: var(--radius-sm);
}
.mbn-item:hover, .mbn-item.active { color: var(--primary); }
.mbn-icon { font-size: 1.25rem; line-height: 1; display: block; }
.mbn-label { display: block; font-size: .6rem; white-space: nowrap; }
.mbn-item--create {
  background: var(--primary); color: #fff !important;
  border-radius: var(--radius-full); padding: 12px 18px 10px;
  margin: -8px 4px 0; box-shadow: 0 4px 16px rgba(0,200,150,.35);
  font-size: .75rem; font-weight: 700;
}
.mbn-item--create:hover { background: var(--primary-dark); transform: translateY(-2px); }
.mbn-item--create .mbn-icon { font-size: 1.5rem; }

@media (max-width: 768px) {
  .mobile-bottom-nav { display: block; }
  .site-main { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  .toast-alert { bottom: 84px; }
  /* Hide some desktop nav links on mobile */
  .nav-main .nav-link:not(.nav-link--create) { display: none; }
}

/* ── IMPROVED RESPONSIVE — PC ── */
@media (min-width: 1280px) {
  .container { max-width: 1300px; padding: 0 32px; }
  .cards-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .hero-h1 { font-size: 4rem; }
}

/* ============================================================
   URGENCE PLACE — animation flash sur dernières places
   ============================================================ */
@keyframes urgence-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .6; }
}
.card-spots-pill.last {
  background: linear-gradient(135deg, #EF4444, #DC2626) !important;
  color: #fff !important;
  animation: urgence-pulse 1.6s ease-in-out infinite;
  font-weight: 700;
}

/* ============================================================
   PARRAINAGE
   ============================================================ */
.ref-link-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px;
  margin-bottom: 10px;
}
.ref-link-url {
  flex: 1; font-size: .78rem; color: var(--primary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: monospace;
}
.ref-code-display {
  font-size: .85rem; color: var(--muted); text-align: center;
}
.ref-code-display strong {
  color: var(--text); letter-spacing: .15em; font-size: 1rem;
}
.btn-share {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-full); font-size: .8rem;
  font-weight: 600; text-decoration: none; cursor: pointer; border: none;
}
.btn-share--whatsapp { background: #25D366; color: #fff; }
.btn-share--email    { background: var(--surface-hover); color: var(--text); border: 1px solid var(--border); }
.btn-share--facebook { background: #1877F2; color: #fff; }
.btn-share--native   { background: var(--primary); color: #000; }
.ref-steps { display: flex; flex-direction: column; gap: 16px; }
.ref-step {
  display: flex; align-items: flex-start; gap: 14px;
}
.ref-step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem; flex-shrink: 0;
}
.ref-step p { margin: 2px 0 0; font-size: .82rem; color: var(--muted); }
.ref-tier {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: var(--radius);
  background: var(--surface-hover); margin-bottom: 8px;
  opacity: .55; transition: opacity .2s;
}
.ref-tier--done { opacity: 1; }
.ref-tier-icon { font-size: 1.5rem; flex-shrink: 0; }
.ref-tier-info { flex: 1; }
.ref-tier-info span { font-size: .78rem; color: var(--muted); display: block; }
.ref-tier-check { font-size: 1.1rem; }

/* Explication points */
.ref-explain-block {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 40px;
}
.ref-explain-header { margin-bottom: 28px; }
.ref-explain-header h2 { font-size: 1.3rem; margin-bottom: 10px; }
.ref-explain-header p { color: var(--muted); line-height: 1.7; }
.ref-points-sources h3,
.ref-benefits-grid h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.ref-sources-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px;
}
.ref-source-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--surface-hover); border-radius: var(--radius);
  padding: 14px; border: 1px solid var(--border);
}
.ref-source-item--highlight {
  border-color: var(--gold); background: rgba(245,158,11,.06);
}
.ref-source-icon { font-size: 1.5rem; flex-shrink: 0; }
.ref-source-body strong { font-size: .9rem; display: block; margin-bottom: 4px; }
.ref-source-body p { font-size: .78rem; color: var(--muted); margin: 4px 0 0; line-height: 1.5; }
.ref-source-pts {
  display: inline-block; background: var(--primary); color: #000;
  font-size: .72rem; font-weight: 800; padding: 2px 8px;
  border-radius: 999px; margin-bottom: 4px;
}
.ref-source-pts--gold { background: var(--gold); color: #000; }

.ref-example-box {
  background: var(--surface-hover); border-radius: var(--radius);
  padding: 20px; margin-bottom: 28px; border: 1px solid var(--border);
}
.ref-example-box h3 { font-size: .95rem; margin-bottom: 12px; }
.ref-example-box p { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.ref-calc { display: flex; flex-direction: column; gap: 6px; }
.ref-calc-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; padding: 6px 10px; border-radius: 6px;
  background: var(--surface);
}
.ref-calc-row--total { font-weight: 700; border-top: 1px solid var(--border); margin-top: 4px; }
.ref-calc-row--referral { background: rgba(245,158,11,.08); }
.ref-calc-row--final {
  background: linear-gradient(135deg,rgba(5,226,122,.12),rgba(5,226,122,.04));
  font-weight: 800; font-size: .9rem; border: 1px solid rgba(5,226,122,.2);
}
.ref-calc-pts { font-weight: 700; color: var(--primary); }
.ref-calc-pts--gold { color: var(--gold); }
.ref-my-score {
  margin-top: 12px; font-size: .85rem;
  background: var(--surface); padding: 10px 14px; border-radius: var(--radius);
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}

.ref-benefits-list { display: flex; flex-direction: column; gap: 14px; }
.ref-benefit {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px; border-radius: var(--radius);
  background: var(--surface-hover); border: 1px solid var(--border);
}
.ref-benefit-icon { font-size: 1.5rem; flex-shrink: 0; }
.ref-benefit strong { display: block; font-size: .9rem; margin-bottom: 4px; }
.ref-benefit p { font-size: .78rem; color: var(--muted); margin: 0; line-height: 1.5; }

@media (max-width: 600px) {
  .ref-explain-block { padding: 20px 16px; }
  .ref-sources-grid { grid-template-columns: 1fr; }
  .ref-tier-info span:last-child { display: none; }
}

/* ============================================================
   ONBOARDING
   ============================================================ */
.onb-page { background: var(--bg); min-height: 80vh; }
.onb-progress-wrap { background: var(--surface); border-radius: var(--radius-lg); padding: 20px; }
.onb-progress-bar {
  height: 10px; background: var(--border); border-radius: 999px; overflow: hidden;
}
.onb-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #00f5a0);
  border-radius: 999px;
  transition: width .8s cubic-bezier(.2, 0, 0, 1);
}
.onb-step {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 18px;
  text-decoration: none; color: var(--text);
  transition: border-color .2s, transform .2s;
}
.onb-step:hover { border-color: var(--primary); transform: translateX(4px); }
.onb-step--done { opacity: .6; background: var(--surface-hover); }
.onb-step--done:hover { transform: none; border-color: var(--border); }
.onb-step-check { font-size: 1.3rem; flex-shrink: 0; }
.onb-step-body { flex: 1; }
.onb-step-body strong { font-size: .95rem; }
.onb-step-pts {
  font-size: .75rem; font-weight: 700; color: var(--gold);
  background: rgba(245,158,11,.12); padding: 2px 8px; border-radius: 999px;
  margin-left: 8px;
}
.onb-step-arrow { color: var(--primary); font-weight: 700; }

/* ============================================================
   MOBILE PREMIUM — Améliorations complètes
   ============================================================ */
@media (max-width: 600px) {

  /* Hero plus compact et percutant */
  .hero { padding: 20px 0 24px; }
  .hero-content { text-align: center; }
  .hero-live-badge { justify-content: center; margin-bottom: 14px; }
  .hero-h1 { font-size: 2rem; line-height: 1.2; margin-bottom: 12px; }
  .hero-h1 span { display: inline; }
  .hero-sub { font-size: .9rem; }
  .hero-cta-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta-row .btn { width: 100%; text-align: center; }

  /* Search pill pleine largeur */
  .hero-search-pill {
    flex-direction: column; gap: 0; border-radius: 16px;
    overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,.18);
  }
  .search-pill-field {
    border-right: none !important; border-bottom: 1px solid var(--border);
    padding: 12px 16px;
  }
  .search-pill-btn {
    width: 100%; border-radius: 0 0 16px 16px;
    padding: 14px; font-size: 1rem;
  }

  /* Chips scrollables horizontalement */
  .hero-chips, .hero-chips--type {
    flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .hero-chips::-webkit-scrollbar { display: none; }
  .hero-chip { flex-shrink: 0; white-space: nowrap; }

  /* Stats hero 2×2 */
  .hero-stats-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px; margin-top: 20px;
  }
  .hero-stat-sep { display: none; }
  .hero-stat-item {
    background: var(--surface); border-radius: var(--radius);
    padding: 12px; text-align: center;
  }
  .hero-stat-item strong { font-size: 1.5rem; display: block; }

  /* Trust bar scroll */
  .trust-bar-inner {
    flex-wrap: nowrap; overflow-x: auto;
    scrollbar-width: none; padding: 0 4px;
  }
  .trust-bar-inner::-webkit-scrollbar { display: none; }
  .trust-bar-item { flex-shrink: 0; font-size: .75rem; white-space: nowrap; }

  /* Match cards pleine largeur */
  .cards-grid { grid-template-columns: 1fr !important; gap: 14px; }
  .match-card-v2 { border-radius: 16px; }
  .card-visual { height: 160px; }

  /* Toolbar matchs */
  .matches-toolbar { flex-direction: column; gap: 10px; align-items: stretch; }
  .matches-toolbar-right { justify-content: space-between; }
  .view-toggle { flex: 1; }
  .view-toggle-btn { flex: 1; text-align: center; }

  /* Page headers */
  .page-header { padding: 24px 0 20px; }
  .page-header h1 { font-size: 1.5rem; }

  /* Grilles 1 colonne */
  .evo-section-grid,
  [style*="grid-template-columns:2fr 1fr"],
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Section Mon Espace */
  .evo-stat-card { padding: 16px 12px; }
  .evo-stat-value { font-size: 1.8rem; }

  /* Parrainage mobile */
  .ref-link-box { flex-direction: column; align-items: stretch; }
  .ref-link-url { font-size: .7rem; }

  /* Pricing mobile */
  .pricing-grid { grid-template-columns: 1fr !important; max-width: 100% !important; }
  .pricing-card--popular { transform: scale(1) !important; }
  .pricing-toggle { font-size: .85rem; }

  /* Auth card */
  .auth-card, .auth-card-wide { padding: 24px 16px; margin: 12px; }

  /* Footer mobile */
  .footer-top { grid-template-columns: 1fr 1fr !important; gap: 24px; }
  .footer-brand { grid-column: span 2; }

  /* Classement mobile */
  .rank-grid { grid-template-columns: 1fr !important; }
  .rank-podium { flex-direction: column; align-items: center; gap: 12px; }
  .rank-podium-item { width: 100%; max-width: 220px; }
  .rank-podium-1 { order: -1; }

  /* CMM mobile */
  .cmm-flow-steps { flex-direction: column; gap: 8px; align-items: center; }
  .cmm-flow-arrow { transform: rotate(90deg); }
  .cmm-section { flex-direction: column; }
  .cmm-section-icon { font-size: 2rem; }
  .cmm-validate-grid { grid-template-columns: 1fr !important; }
  .cmm-rating-criteria { grid-template-columns: 1fr !important; }

  /* Bottom nav mieux ancré */
  .mobile-bottom-nav {
    padding-bottom: env(safe-area-inset-bottom, 8px);
  }
  .mbn-inner { padding: 0 4px; }
  .mbn-item { flex: 1; padding: 8px 4px 4px; }
  .mbn-label { font-size: .6rem; }
}

/* Tablette */
@media (min-width: 601px) and (max-width: 900px) {
  .hero-h1 { font-size: 2.5rem; }
  .cards-grid { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="grid-template-columns:2fr 1fr"] { grid-template-columns: 1fr !important; }
  .pricing-grid { grid-template-columns: 1fr 1fr !important; max-width: 100% !important; }
  .footer-top { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ============================================================
   STICKY CTA mobile — bouton flottant "Trouver un match"
   ============================================================ */
.sticky-cta-mobile {
  display: none;
  position: fixed; bottom: 75px; left: 50%; transform: translateX(-50%);
  z-index: 90;
  background: var(--primary); color: #000;
  padding: 13px 28px; border-radius: var(--radius-full);
  font-weight: 700; font-size: .9rem;
  box-shadow: 0 4px 20px rgba(5,226,122,.5);
  text-decoration: none; white-space: nowrap;
  transition: transform .2s, box-shadow .2s;
}
.sticky-cta-mobile:hover { transform: translateX(-50%) scale(1.04); }
@media (max-width: 600px) {
  .sticky-cta-mobile { display: flex; align-items: center; gap: 8px; }
}


@media (min-width: 1600px) {
  .container { max-width: 1480px; }
  .cards-grid { grid-template-columns: repeat(4, 1fr) !important; }
}

/* ── IMPROVED RESPONSIVE — TABLET ── */
@media (max-width: 900px) {
  .hero { padding: 60px 0 52px; }
  .hero-stats-row { gap: 0; }
  .hero-stat-item { padding: 0 12px; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .number-item { border-bottom: 1px solid rgba(255,255,255,.08); }
  .number-item:nth-child(2n) { border-right: none; }
  .number-item:nth-last-child(-n+2) { border-bottom: none; }
  .match-detail-layout { grid-template-columns: 1fr; }
  .match-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
}

/* ── IMPROVED RESPONSIVE — MOBILE ── */
@media (max-width: 768px) {
  .hero { padding: 52px 0 44px; }
  .hero-content { margin-bottom: 20px; }
  .hero-live-badge { font-size: .7rem; padding: 5px 12px; }
  .hero-stats-row { padding: 8px 2px; }
  .hero-stat-item { padding: 0 8px; }
  .hero-stat-item strong { font-size: 1rem; }

  .matches-home { padding: 20px 0 40px; }
  .cards-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  .how-steps { grid-template-columns: 1fr; gap: 0; }
  .how-step { border-radius: 0; border-bottom: none; }
  .how-step:first-child { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
  .how-step:last-child  { border-radius: 0 0 var(--radius-xl) var(--radius-xl); border-bottom: 1px solid var(--border-light); }
  .how-step-arrow { display: none; }

  .testi-grid { grid-template-columns: 1fr; }
  .cta-home-inner { text-align: center; flex-direction: column; }
  .cta-home-actions { justify-content: center; }

  .page-header { padding: 32px 0 24px; }
  .page-header h1 { font-size: 1.5rem; }

  .match-sidebar { grid-template-columns: 1fr; }
  .login-layout { grid-template-columns: 1fr; }
  .login-promo { display: none; }

  .match-manage-header { flex-direction: column; align-items: stretch; }
  .match-manage-actions { justify-content: flex-start; flex-wrap: wrap; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 480px) {
  .hero-h1 { font-size: 1.8rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero-search-pill { border-radius: var(--radius-xl); }
  .container { padding: 0 16px; }
  .how-home, .testi-home, .cta-home { padding: 48px 0; }
}

/* ── IMPROVED HEADER MOBILE ── */
@media (max-width: 768px) {
  .nav-main {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border-light);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 16px 16px;
    transform: translateY(-110%); opacity: 0;
    transition: transform .28s cubic-bezier(.25,.46,.45,.94), opacity .22s;
    z-index: 998; box-shadow: var(--shadow-lg);
  }
  .nav-main.open {
    transform: translateY(0); opacity: 1;
  }
  .nav-link { padding: 13px 16px; border-radius: var(--radius); font-size: .95rem; display: block; }
  .nav-link--create { text-align: center; margin-top: 8px; }
  .burger-btn { display: flex; }
  .user-name-sm { display: none; }
}

/* ── FOOTER improvements ── */
.site-footer {
  background: #0A1220;
  color: rgba(255,255,255,.65);
  padding: 0;
}
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px; padding: 56px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand .logo-text { color: #fff; }
.footer-tagline { color: rgba(255,255,255,.45); font-size: .83rem; line-height: 1.65; margin-top: 10px; max-width: 280px; }
.footer-stats { display: flex; gap: 20px; margin-top: 20px; }
.footer-stat strong { display: block; font-family: 'Kanit', sans-serif; font-size: 1.2rem; font-weight: 800; color: var(--primary); }
.footer-stat span   { font-size: .7rem; color: rgba(255,255,255,.35); }
.footer-col h4 { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.35); margin-bottom: 16px; }
.footer-col a  { display: block; font-size: .83rem; color: rgba(255,255,255,.55); padding: 4px 0; transition: color var(--transition); }
.footer-col a:hover, .footer-col a.active { color: var(--primary); }
.footer-links { display: contents; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; font-size: .78rem; color: rgba(255,255,255,.3);
  flex-wrap: wrap; gap: 8px;
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; padding: 40px 0 28px; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; padding: 32px 0 24px; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   BLOG / ARTICLES SEO
   ============================================================ */
.blog-listing-page { padding: 40px 0 72px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.blog-card {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius-xl); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .22s, transform .22s;
  text-decoration: none; color: inherit;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.blog-card-visual {
  padding-top: 52%; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0F2A1D, #0D2338);
}
.blog-card-visual-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
}
.blog-card-visual-inner::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 19px, rgba(255,255,255,.04) 19px, rgba(255,255,255,.04) 20px);
}
.blog-card-cat {
  position: absolute; bottom: 10px; left: 10px; z-index: 2;
  background: var(--primary); color: #fff;
  font-size: .68rem; font-weight: 700; padding: 3px 10px;
  border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: .06em;
}
.blog-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.blog-card-title { font-size: 1rem; font-weight: 700; color: var(--dark); line-height: 1.3; margin-bottom: 8px; }
.blog-card-excerpt { font-size: .82rem; color: var(--muted); line-height: 1.65; flex: 1; }
.blog-card-footer { padding: 12px 18px; border-top: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; font-size: .75rem; color: var(--muted); }
.blog-card-reading { display: flex; align-items: center; gap: 5px; }

/* Article page */
.blog-article-wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; padding: 48px 0 72px; align-items: start; }

.blog-content {
  font-size: .95rem; line-height: 1.78; color: var(--text);
}
.blog-content h2 {
  font-size: 1.5rem; color: var(--dark); margin: 36px 0 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--primary-light);
}
.blog-content h3 { font-size: 1.15rem; color: var(--dark); margin: 28px 0 10px; }
.blog-content p  { margin-bottom: 16px; }
.blog-content ul, .blog-content ol { margin: 0 0 16px 20px; }
.blog-content li { margin-bottom: 8px; line-height: 1.7; }
.blog-content ul li { list-style: disc; }
.blog-content ol li { list-style: decimal; }
.blog-content strong { color: var(--dark); }
.blog-content a  { color: var(--primary); text-decoration: underline; }
.blog-content blockquote {
  border-left: 4px solid var(--primary); padding: 14px 20px; margin: 20px 0;
  background: var(--primary-light); border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--primary-dark);
}
.blog-content .tip-box {
  background: var(--info-bg); border: 1px solid #BFDBFE; border-radius: var(--radius);
  padding: 14px 18px; margin: 20px 0; font-size: .88rem;
}
.blog-content table {
  width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .88rem;
}
.blog-content th { background: var(--bg); font-weight: 700; padding: 10px 14px; border: 1px solid var(--border-light); text-align: left; }
.blog-content td { padding: 10px 14px; border: 1px solid var(--border-light); }
.blog-content tr:nth-child(even) td { background: var(--bg); }

.blog-article-header {
  background: linear-gradient(155deg, #0F2A1D 0%, #0D2338 60%, #091220 100%);
  padding: 52px 0 40px; color: #fff;
}
.blog-article-meta { display: flex; align-items: center; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.blog-article-meta span { font-size: .78rem; color: rgba(255,255,255,.5); display: flex; align-items: center; gap: 6px; }
.blog-cat-badge { background: var(--primary); color: #fff; font-size: .7rem; font-weight: 700; padding: 3px 11px; border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: .06em; }

.blog-sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 20px; }
.blog-sidebar-card {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 20px;
}
.blog-sidebar-title { font-size: .88rem; font-weight: 700; color: var(--dark); margin-bottom: 14px; }
.blog-related-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-light); text-decoration: none; color: inherit; }
.blog-related-item:last-child { border-bottom: none; padding-bottom: 0; }
.blog-related-icon { font-size: 1.6rem; flex-shrink: 0; }
.blog-related-title { font-size: .82rem; font-weight: 600; color: var(--dark); line-height: 1.3; }
.blog-cta-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg); padding: 22px; color: #fff; text-align: center;
}
.blog-cta-card h3 { font-size: 1rem; margin-bottom: 8px; }
.blog-cta-card p  { font-size: .82rem; opacity: .85; margin-bottom: 14px; }

/* Blog preview on home */
.blog-home { padding: 72px 0; background: var(--bg); }
.blog-home-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-sidebar { grid-template-columns: 1fr; }
  .blog-layout { padding: 28px 0 48px; }
}

/* ============================================================
   PAGES LÉGALES
   ============================================================ */
.legal-content { color: var(--text); }
.legal-content h2 {
  font-size: 1.2rem; font-weight: 700; color: var(--text);
  margin: 36px 0 12px; padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.legal-content h3 { font-size: 1rem; font-weight: 700; margin: 20px 0 8px; }
.legal-content p  { font-size: .9rem; color: var(--muted); line-height: 1.8; margin-bottom: 12px; }
.legal-content ul { margin: 0 0 16px 20px; }
.legal-content li { font-size: .88rem; color: var(--muted); margin-bottom: 6px; line-height: 1.7; }
.legal-content a  { color: var(--primary); }
.legal-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .85rem; }
.legal-content th, .legal-content td { padding: 10px 14px; border: 1px solid var(--border); }
.legal-content th { background: var(--surface-hover); font-weight: 700; }

/* ── Blog sidebar links ── */
.blog-sidebar-card h3 { font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.blog-sidebar-card a  { display: block; font-size: .82rem; color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--border); text-decoration: none; transition: color .15s; }
.blog-sidebar-card a:last-child { border-bottom: none; }
.blog-sidebar-card a:hover { color: var(--primary); }
.blog-sidebar-cta { background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important; border: none !important; }
.blog-sidebar-cta h3, .blog-sidebar-cta p { color: #fff !important; }
.blog-sidebar-cta p { font-size: .8rem; opacity: .85; margin-bottom: 12px; }

/* ── Blog à la une ── */
.blog-featured { margin-bottom: 8px; }
.blog-featured-link {
  display: grid; grid-template-columns: 280px 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s;
}
.blog-featured-link:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,.15); }
.blog-featured-visual {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 32px;
}
.blog-featured-emoji { font-size: 4rem; }
.blog-featured-body { padding: 32px; }
.blog-featured-body h2 { font-size: 1.4rem; margin: 0 0 12px; line-height: 1.3; }
.blog-featured-body p  { color: var(--muted); font-size: .9rem; line-height: 1.7; }
.blog-readmore { color: var(--primary); font-weight: 700; font-size: .85rem; }

/* ── Blog keypoints box ── */
.blog-keypoints {
  background: linear-gradient(135deg, rgba(5,226,122,.07), rgba(5,226,122,.02));
  border: 1.5px solid rgba(5,226,122,.25);
  border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 28px;
}
.blog-keypoints h3 { font-size: .95rem; font-weight: 700; margin-bottom: 10px; color: var(--primary); }
.blog-keypoints ul { margin: 0; padding-left: 18px; }
.blog-keypoints li { font-size: .87rem; margin-bottom: 6px; line-height: 1.6; }

/* ── Blog tip box ── */
.blog-tip {
  background: rgba(245,158,11,.08); border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px; margin: 20px 0; font-size: .88rem; line-height: 1.6;
}

/* ── Blog CTA box ── */
.blog-cta-box {
  display: flex; gap: 20px; align-items: flex-start;
  background: linear-gradient(135deg, #0F2A1D, #0D2338);
  border-radius: var(--radius-xl); padding: 28px; margin-top: 40px;
}
.blog-cta-icon { font-size: 2.5rem; flex-shrink: 0; }
.blog-cta-box h3 { color: #fff; font-size: 1.1rem; margin-bottom: 8px; }
.blog-cta-box p  { color: rgba(255,255,255,.75); font-size: .88rem; margin-bottom: 16px; }

/* ── Blog compare table ── */
.blog-compare-table { overflow-x: auto; margin: 20px 0; }
.blog-compare-table table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.blog-compare-table th { background: var(--surface-hover); font-weight: 700; padding: 10px 14px; border: 1px solid var(--border); text-align: center; }
.blog-compare-table td { padding: 10px 14px; border: 1px solid var(--border); }
.blog-compare-table tr:nth-child(even) td { background: var(--surface-hover); }
.blog-compare-table td:first-child { font-weight: 600; }

/* ── Blog terrain card ── */
.blog-terrain-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; margin: 16px 0;
}
.blog-terrain-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.blog-terrain-header h3 { font-size: 1.05rem; margin: 0; }
.blog-terrain-badge {
  background: var(--primary); color: #000; font-size: .7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}
.blog-terrain-card p { font-size: .85rem; color: var(--muted); margin: 6px 0; }
.blog-terrain-infos {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.blog-terrain-infos span {
  background: var(--surface-hover); border: 1px solid var(--border);
  font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}

@media (max-width: 600px) {
  .blog-featured-link { grid-template-columns: 1fr; }
  .blog-featured-visual { padding: 24px; min-height: 120px; }
  .blog-featured-body { padding: 20px; }
  .blog-featured-body h2 { font-size: 1.1rem; }
  .blog-cta-box { flex-direction: column; }
}

/* ============================================================
   FAQ PAGE
   ============================================================ */
.faq-category { margin-bottom: 40px; }
.faq-category-title {
  font-size: 1rem; font-weight: 800; color: var(--primary);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 16px; padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none;
  padding: 18px 0; cursor: pointer; color: var(--text);
  font-size: .95rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-question:hover { color: var(--primary); }
.faq-chevron { flex-shrink: 0; transition: transform .25s; font-size: 1.1rem; color: var(--muted); }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--primary); }
.faq-answer { display: none; padding: 0 0 18px; }
.faq-item.open .faq-answer { display: block; }
.faq-answer p { font-size: .88rem; color: var(--muted); line-height: 1.75; margin: 0; }

/* ============================================================
   BADGES
   ============================================================ */
.badges-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px;
}
.badge-item {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 12px; text-align: center;
  transition: border-color .2s, transform .2s;
}
.badge-item:hover { border-color: var(--primary); transform: translateY(-2px); }
.badge-item--earned { border-color: var(--gold); background: rgba(245,158,11,.06); }
.badge-item--locked { opacity: .4; filter: grayscale(1); }
.badge-item-icon { font-size: 2rem; margin-bottom: 6px; }
.badge-item-label { font-size: .75rem; font-weight: 700; color: var(--text); display: block; }
.badge-item-desc  { font-size: .68rem; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.badge-item-date  { font-size: .65rem; color: var(--gold); margin-top: 4px; }

/* ============================================================
   JOUEURS — Page recherche
   ============================================================ */
.joueurs-filters { background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:20px;margin-bottom:24px; }
.joueurs-filter-row { display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end; }
.joueurs-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px; }
.joueur-card {
  background: var(--surface);
  border: 1.5px solid var(--border-light);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .22s, border-color .22s, box-shadow .22s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.joueur-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #00a86b);
  opacity: 0;
  transition: opacity .22s;
}
.joueur-card:hover {
  transform: translateY(-6px);
  border-color: rgba(5,226,122,.3);
  box-shadow: 0 12px 36px rgba(5,226,122,.12);
}
.joueur-card:hover::before { opacity: 1; }

.joueur-card-top {
  position: relative;
  background: linear-gradient(135deg, #0a1628 0%, #0d2333 60%, #071510 100%);
  padding: 24px 16px 16px;
  text-align: center;
}
.joueur-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(5,226,122,.4);
  box-shadow: 0 4px 16px rgba(5,226,122,.2);
  transition: transform .22s;
}
.joueur-card:hover .joueur-avatar { transform: scale(1.06); }
.joueur-cert {
  position: absolute; top: 10px; right: 10px;
  font-size: 1.1rem;
  background: rgba(0,0,0,.4);
  border-radius: 8px; padding: 2px 6px;
}

.joueur-card-body { padding: 14px 14px 12px; flex: 1; display: flex; flex-direction: column; }
.joueur-name { font-weight: 800; font-size: .95rem; margin-bottom: 3px; }
.joueur-ville { font-size: .73rem; color: var(--muted); margin-bottom: 8px; }
.joueur-stats {
  display: flex; flex-wrap: wrap; gap: 5px; font-size: .7rem;
  margin-top: auto; padding-top: 8px;
  border-top: 1px solid var(--border-light);
}
.joueur-stats span {
  background: var(--surface-hover); padding: 3px 9px;
  border-radius: 99px; font-weight: 600;
}

@media (max-width: 600px) { .joueurs-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ============================================================
   EXIT INTENT POPUP
   ============================================================ */
.exit-popup-overlay {
  position:fixed;inset:0;background:rgba(0,0,0,.7);z-index:9999;
  display:none;align-items:center;justify-content:center;padding:24px;
  backdrop-filter:blur(4px);
}
.exit-popup-overlay.open { display:flex; }
.exit-popup {
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-xl);
  padding:40px 32px;max-width:440px;width:100%;text-align:center;
  position:relative;animation:popup-in .3s cubic-bezier(.2,0,0,1);
}
@keyframes popup-in { from { transform:scale(.9);opacity:0; } to { transform:scale(1);opacity:1; } }
.exit-popup-close {
  position:absolute;top:14px;right:14px;background:none;border:none;
  font-size:1.2rem;color:var(--muted);cursor:pointer;line-height:1;
}
.exit-popup-close:hover { color:var(--text); }
.exit-popup-icon { font-size:3rem;margin-bottom:12px; }
.exit-popup h2 { font-size:1.5rem;margin-bottom:10px; }
.exit-popup p  { color:var(--muted);font-size:.9rem;line-height:1.7;margin-bottom:16px; }
.exit-popup-proof { display:flex;justify-content:center;gap:10px;font-size:.8rem;color:var(--muted);margin-bottom:20px; }
.exit-popup-cta { font-size:1rem;padding:14px 28px; }

/* ============================================================
   DÉFIS MENSUELS
   ============================================================ */
.challenge-item {
  display:flex;align-items:center;gap:14px;
  background:var(--surface);border:1.5px solid var(--border);
  border-radius:var(--radius-lg);padding:14px 16px;margin-bottom:10px;
}
.challenge-item--done { border-color:var(--primary);background:rgba(5,226,122,.04); }
.challenge-icon { font-size:1.6rem;flex-shrink:0; }
.challenge-body { flex:1 }
.challenge-body strong { font-size:.9rem;display:block;margin-bottom:2px; }
.challenge-body span   { font-size:.75rem;color:var(--muted); }
.challenge-progress { margin-top:6px; }
.challenge-bar { height:5px;background:var(--border);border-radius:999px;overflow:hidden;margin-top:3px; }
.challenge-bar-fill { height:100%;background:var(--primary);border-radius:999px;transition:width .5s; }
.challenge-pts { font-size:.75rem;font-weight:700;color:var(--gold);flex-shrink:0; }

/* ============================================================
   ██████╗ ██████╗ ███████╗███╗   ███╗██╗██╗   ██╗███╗   ███╗
   ██╔══██╗██╔══██╗██╔════╝████╗ ████║██║██║   ██║████╗ ████║
   ██████╔╝██████╔╝█████╗  ██╔████╔██║██║██║   ██║██╔████╔██║
   ██╔═══╝ ██╔══██╗██╔══╝  ██║╚██╔╝██║██║██║   ██║██║╚██╔╝██║
   ██║     ██║  ██║███████╗██║ ╚═╝ ██║██║╚██████╔╝██║ ╚═╝ ██║
   ╚═╝     ╚═╝  ╚═╝╚══════╝╚═╝     ╚═╝╚═╝ ╚═════╝ ╚═╝     ╚═╝
   DESIGN v5 ULTRA PREMIUM — Glassmorphism + Neon + Cinematic
   ============================================================ */

/* ── KEYFRAMES PREMIUM ──────────────────────────────────────── */
@keyframes gradient-shift {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes float-y {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes float-y-slow {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-20px) rotate(5deg); }
}
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 20px rgba(5,226,122,.3), 0 0 40px rgba(5,226,122,.1); }
  50%      { box-shadow: 0 0 40px rgba(5,226,122,.6), 0 0 80px rgba(5,226,122,.2); }
}
@keyframes pulse-gold {
  0%,100% { box-shadow: 0 0 20px rgba(245,158,11,.3); }
  50%      { box-shadow: 0 0 40px rgba(245,158,11,.6), 0 0 80px rgba(245,158,11,.2); }
}
@keyframes shimmer {
  0%   { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(200%) skewX(-15deg); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes neon-flicker {
  0%,95%,100% { opacity: 1; }
  96%          { opacity: .8; }
  97%          { opacity: 1; }
  98%          { opacity: .7; }
}
@keyframes slide-up-fade {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes mesh-move {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30px, -20px) scale(1.05); }
  66%  { transform: translate(-20px, 30px) scale(.98); }
  100% { transform: translate(0, 0) scale(1); }
}

/* ── UTILITAIRES PREMIUM ────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, #05E27A 0%, #00F5A0 40%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #FCD34D 50%, #F97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.glow-green { box-shadow: 0 0 30px rgba(5,226,122,.5), 0 0 60px rgba(5,226,122,.2) !important; }
.glow-gold  { box-shadow: 0 0 30px rgba(245,158,11,.5), 0 0 60px rgba(245,158,11,.2) !important; }
.glass {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.12);
}
.glass-dark {
  background: rgba(9,9,13,.6);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.07);
}
.float { animation: float-y 4s ease-in-out infinite; }
.float-slow { animation: float-y-slow 7s ease-in-out infinite; }

/* ── HEADER ULTRA ───────────────────────────────────────────── */
.site-header {
  background: rgba(9,9,13,.85) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(5,226,122,.1) !important;
  transition: all .3s ease !important;
}
[data-theme="dark"] .site-header { background: rgba(9,9,13,.9) !important; }
.site-header.scrolled {
  background: rgba(9,9,13,.95) !important;
  box-shadow: 0 1px 0 rgba(5,226,122,.15), 0 4px 32px rgba(0,0,0,.6) !important;
}
.logo-text { color: #fff !important; }
.logo-text span { color: var(--primary) !important; }
.nav-link { color: rgba(255,255,255,.6) !important; }
.nav-link:hover { color: #fff !important; background: rgba(255,255,255,.06) !important; }
.nav-link.active { color: var(--primary) !important; font-weight: 700 !important; }

/* ── HERO ULTRA PREMIUM ─────────────────────────────────────── */
.hero {
  background: #09090D !important;
  position: relative;
  overflow: hidden;
  padding: 80px 0 64px !important;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

/* Mesh gradient animé */
.hero::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse 60% 50% at 20% 40%, rgba(5,226,122,.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(0,200,200,.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 60% 80%, rgba(99,102,241,.12) 0%, transparent 60%);
  animation: mesh-move 15s ease-in-out infinite;
  pointer-events: none;
}

/* Grid lines ultra subtiles */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(5,226,122,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5,226,122,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-bg-glow-1 {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5,226,122,.12) 0%, transparent 70%);
  top: -200px; left: -100px;
  animation: float-y-slow 10s ease-in-out infinite;
  pointer-events: none;
}
.hero-bg-glow-2 {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,.08) 0%, transparent 70%);
  bottom: -100px; right: -50px;
  animation: float-y-slow 12s ease-in-out infinite reverse;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }

.hero-live-badge {
  background: rgba(5,226,122,.12) !important;
  border: 1px solid rgba(5,226,122,.25) !important;
  color: var(--primary) !important;
  animation: neon-flicker 6s ease-in-out infinite;
}
.hero-live-dot {
  background: var(--primary) !important;
  box-shadow: 0 0 8px var(--primary), 0 0 16px rgba(5,226,122,.5) !important;
}

.hero-h1 {
  color: #ffffff !important;
  font-size: clamp(2.2rem, 5vw, 4.2rem) !important;
  font-weight: 900 !important;
  letter-spacing: -2px !important;
  line-height: 1.08 !important;
  text-shadow: 0 0 80px rgba(5,226,122,.15);
}
.hero-h1 span {
  background: linear-gradient(135deg, #05E27A 0%, #00F5A0 45%, #05E27A 100%) !important;
  background-size: 200% 200% !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: gradient-shift 4s ease infinite !important;
  display: inline !important;
  filter: drop-shadow(0 0 20px rgba(5,226,122,.4)) !important;
}
.hero-sub { color: rgba(255,255,255,.65) !important; font-size: 1.1rem !important; }

/* Hero CTA buttons premium */
.btn-accent,
.hero-cta-primary {
  background: linear-gradient(135deg, #05E27A 0%, #00D09C 100%) !important;
  color: #051C0D !important;
  font-weight: 800 !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all .3s ease !important;
  border: none !important;
}
.btn-accent::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}
.btn-accent:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 30px rgba(5,226,122,.5), 0 0 60px rgba(5,226,122,.2) !important;
}

.btn-hero-ghost {
  background: rgba(255,255,255,.06) !important;
  color: rgba(255,255,255,.85) !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  backdrop-filter: blur(8px) !important;
}
.btn-hero-ghost:hover {
  background: rgba(255,255,255,.12) !important;
  border-color: rgba(255,255,255,.3) !important;
  color: #fff !important;
}

/* Hero search premium */
.hero-search-pill {
  background: rgba(255,255,255,.06) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: 0 8px 40px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.08) !important;
}
.hero-search-pill:focus-within {
  border-color: rgba(5,226,122,.4) !important;
  box-shadow: 0 8px 40px rgba(0,0,0,.4), 0 0 0 1px rgba(5,226,122,.2) !important;
}
.search-pill-field label { color: rgba(255,255,255,.5) !important; }
.search-pill-field input,
.search-pill-field select { color: #fff !important; background: transparent !important; }
.search-pill-field input::placeholder { color: rgba(255,255,255,.35) !important; }
.search-pill-btn {
  background: linear-gradient(135deg, #05E27A, #00D09C) !important;
  color: #051C0D !important; font-weight: 800 !important;
}

/* Hero chips premium */
.hero-chip {
  background: rgba(255,255,255,.07) !important;
  color: rgba(255,255,255,.7) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  backdrop-filter: blur(8px) !important;
  transition: all .2s ease !important;
}
.hero-chip:hover, .hero-chip.active {
  background: rgba(5,226,122,.15) !important;
  color: var(--primary) !important;
  border-color: rgba(5,226,122,.3) !important;
}
.hero-chip--type { background: rgba(255,255,255,.06) !important; }
.hero-chip--type.active { background: rgba(245,158,11,.15) !important; color: var(--gold) !important; border-color: rgba(245,158,11,.3) !important; }

/* Hero stats premium */
.hero-stats-row { position: relative; z-index: 2; }
.hero-stat-item strong { color: var(--primary) !important; text-shadow: 0 0 20px rgba(5,226,122,.4); }
.hero-stat-item span { color: rgba(255,255,255,.5) !important; }
.hero-stat-sep { background: rgba(255,255,255,.1) !important; }

/* Live badge hero */
.hero-live-badge strong { color: var(--primary) !important; }

/* ── TRUST BAR ULTRA ─────────────────────────────────────────── */
.hero-trust-bar {
  background: rgba(9,9,13,.9) !important;
  border-top: 1px solid rgba(5,226,122,.1) !important;
  border-bottom: 1px solid rgba(255,255,255,.05) !important;
  backdrop-filter: blur(12px) !important;
}
.trust-bar-item strong { color: var(--primary) !important; }
.trust-bar-sep { background: rgba(255,255,255,.08) !important; }

/* ── MATCH CARDS ULTRA ──────────────────────────────────────── */
.match-card-v2 {
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  transition: all .3s cubic-bezier(.2,0,0,1) !important;
  overflow: hidden !important;
}
.match-card-v2:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.15), 0 0 0 1px rgba(5,226,122,.15) !important;
  border-color: rgba(5,226,122,.3) !important;
}
.match-card-v2::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(5,226,122,.03), transparent);
  opacity: 0; transition: opacity .3s;
  pointer-events: none; z-index: 0;
}
.match-card-v2:hover::after { opacity: 1; }

/* Boost badge neon */
.boost-badge {
  background: linear-gradient(135deg, #F59E0B, #F97316) !important;
  box-shadow: 0 0 12px rgba(245,158,11,.5) !important;
  animation: pulse-gold 2s ease-in-out infinite !important;
}

/* ── SECTIONS PREMIUM ───────────────────────────────────────── */
.numbers-home {
  background: linear-gradient(180deg, #09090D 0%, #0D1117 100%) !important;
  border-top: 1px solid rgba(5,226,122,.08) !important;
  border-bottom: 1px solid rgba(5,226,122,.08) !important;
  padding: 48px 0 !important;
}
.number-item strong {
  background: linear-gradient(135deg, var(--primary), #00F5A0) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-size: 2.8rem !important;
  filter: drop-shadow(0 0 12px rgba(5,226,122,.3)) !important;
}
.number-item span { color: rgba(255,255,255,.5) !important; }

.why-home { background: var(--bg); }
.why-item {
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  transition: all .3s ease !important;
  position: relative; overflow: hidden !important;
}
.why-item::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0; transition: opacity .3s;
}
.why-item:hover { transform: translateY(-4px) !important; box-shadow: 0 12px 40px rgba(0,0,0,.1) !important; }
.why-item:hover::before { opacity: 1; }
.why-icon { font-size: 2rem !important; margin-bottom: 12px !important; }
.why-item--cta {
  background: linear-gradient(135deg, #09090D 0%, #0F2A1D 100%) !important;
  border-color: rgba(5,226,122,.2) !important;
}
.why-item--cta h3, .why-item--cta p { color: rgba(255,255,255,.8) !important; }

/* ── TÉMOIGNAGES ULTRA ──────────────────────────────────────── */
.testi-card {
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  transition: all .3s ease !important;
  position: relative; overflow: hidden !important;
}
.testi-card--featured {
  background: linear-gradient(135deg, #09090D 0%, #0F2A1D 100%) !important;
  border-color: rgba(5,226,122,.25) !important;
  box-shadow: 0 8px 32px rgba(5,226,122,.1), inset 0 1px 0 rgba(5,226,122,.1) !important;
}
.testi-card--featured .testi-text,
.testi-card--featured .testi-stars { color: rgba(255,255,255,.85) !important; }
.testi-card--featured .testi-author-name { color: #fff !important; }

/* ── TOP JOUEURS ULTRA ──────────────────────────────────────── */
.top-player-card {
  transition: all .3s ease !important;
  position: relative; overflow: hidden !important;
}
.top-player-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 12px 40px rgba(5,226,122,.15) !important;
  border-color: rgba(5,226,122,.3) !important;
}
.top-player-card:hover .top-player-avatar {
  box-shadow: 0 0 20px rgba(5,226,122,.4) !important;
}
.top-player-rank {
  background: linear-gradient(135deg, var(--primary), #00D09C) !important;
  color: #051C0D !important;
  font-weight: 900 !important;
  box-shadow: 0 2px 8px rgba(5,226,122,.3) !important;
}

/* ── PAGE HEADERS ULTRA ─────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, #09090D 0%, #0D1117 60%, #0F2A1D 100%) !important;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: -20px;
  background:
    radial-gradient(ellipse 50% 80% at 10% 50%, rgba(5,226,122,.1) 0%, transparent 60%),
    radial-gradient(ellipse 30% 50% at 90% 30%, rgba(0,200,200,.06) 0%, transparent 60%);
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { color: #fff !important; }
.page-header-sub { color: rgba(255,255,255,.6) !important; }

/* ── CERTIFICATION BADGES ULTRA ─────────────────────────────── */
.cert-rookie        { background: linear-gradient(135deg,#374151,#4B5563) !important; box-shadow: 0 2px 8px rgba(55,65,81,.3) !important; }
.cert-debutant-plus { background: linear-gradient(135deg,#047857,#059669) !important; box-shadow: 0 2px 8px rgba(4,120,87,.35) !important; }
.cert-confirme      { background: linear-gradient(135deg,#1D4ED8,#3B82F6) !important; box-shadow: 0 2px 8px rgba(29,78,216,.4) !important; }
.cert-confirme-pro  { background: linear-gradient(135deg,#B45309,#D97706) !important; box-shadow: 0 2px 8px rgba(180,83,9,.4) !important; }
.cert-certifie      { background: linear-gradient(135deg,#C2410C,#EA580C) !important; box-shadow: 0 2px 8px rgba(194,65,12,.4) !important; }
.cert-elite         { background: linear-gradient(135deg,#6D28D9,#7C3AED) !important; box-shadow: 0 0 12px rgba(109,40,217,.5), 0 0 24px rgba(109,40,217,.2) !important; animation: pulse-glow 3s ease-in-out infinite !important; }

/* ── FORMS ULTRA ────────────────────────────────────────────── */
.form-control {
  transition: all .2s ease !important;
}
.form-control:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(5,226,122,.15), 0 0 20px rgba(5,226,122,.1) !important;
  outline: none !important;
}

/* ── ÉVOLUTION + MON ESPACE ULTRA ───────────────────────────── */
.evo-stat-card {
  position: relative; overflow: hidden !important;
  transition: transform .2s, box-shadow .2s !important;
}
.evo-stat-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
}
.evo-stat-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: .5;
}
.evo-stat-primary {
  background: linear-gradient(135deg, #09090D, #0F2A1D) !important;
  border-color: rgba(5,226,122,.2) !important;
}
.evo-stat-primary .evo-stat-value { color: var(--primary) !important; text-shadow: 0 0 20px rgba(5,226,122,.4) !important; }
.evo-stat-value {
  font-size: 2.2rem !important;
  font-weight: 900 !important;
  letter-spacing: -1px !important;
}

/* ── CLASSEMENT ULTRA ───────────────────────────────────────── */
.rank-podium-1 .rank-podium-card {
  background: linear-gradient(135deg, #09090D, #1A1200) !important;
  border-color: rgba(245,158,11,.3) !important;
  box-shadow: 0 8px 32px rgba(245,158,11,.15), 0 0 0 1px rgba(245,158,11,.1) !important;
}

/* ── FOOTER ULTRA ───────────────────────────────────────────── */
.site-footer {
  background: #09090D !important;
  border-top: 1px solid rgba(5,226,122,.08) !important;
}
.site-footer h4 { color: rgba(255,255,255,.9) !important; }
.site-footer a  { color: rgba(255,255,255,.45) !important; }
.site-footer a:hover { color: var(--primary) !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.05) !important; }
.footer-bottom p { color: rgba(255,255,255,.3) !important; }
.footer-stat strong { color: var(--primary) !important; }

/* ── DARK MODE AMÉLIORÉ ─────────────────────────────────────── */
[data-theme="dark"] .match-card-v2 { background: #13151F !important; border-color: #2D3145 !important; }
[data-theme="dark"] .why-item { background: #13151F !important; border-color: #2D3145 !important; }
[data-theme="dark"] .testi-card { background: #13151F !important; border-color: #2D3145 !important; }
[data-theme="dark"] .evo-stat-card { background: #13151F !important; border-color: #2D3145 !important; }
[data-theme="dark"] .form-control { background: #1C1F2E !important; border-color: #2D3145 !important; color: #E5E7EB !important; }
[data-theme="dark"] .btn-secondary { background: #1C1F2E !important; border-color: #2D3145 !important; color: #E5E7EB !important; }
[data-theme="dark"] .auth-card { background: #13151F !important; border-color: #2D3145 !important; }

/* ============================================================
   TARIFS — Améliorations premium
   ============================================================ */
.pricing-urgency-banner {
  background: linear-gradient(135deg, #09090D, #0F1A0A);
  border-bottom: 1px solid rgba(5,226,122,.15);
  padding: 12px 0;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
}
.pricing-urgency-banner strong { color: var(--primary); }
.pricing-countdown {
  display: flex; align-items: center; gap: 8px;
  background: rgba(5,226,122,.1); border: 1px solid rgba(5,226,122,.2);
  border-radius: 999px; padding: 4px 12px; font-size: .8rem;
}
.pricing-countdown strong { color: var(--primary); font-family: 'Kanit',sans-serif; font-size: 1rem; }

.pricing-compare-table {
  width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 500px;
}
.pricing-compare-table th {
  background: var(--surface-hover); padding: 14px 16px; text-align: center;
  font-weight: 700; border: 1px solid var(--border);
}
.pricing-compare-table th small { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; }
.pricing-compare-table td { padding: 10px 16px; border: 1px solid var(--border); }
.pricing-compare-table td:first-child { font-weight: 600; text-align: left; }
.pricing-compare-table td.text-center { text-align: center; }
.pricing-compare-table tr:nth-child(even) td { background: var(--surface-hover); }
.pricing-compare-table tr:hover td { background: rgba(5,226,122,.04); }

/* ============================================================
   CLASSEMENT — Podium premium animé
   ============================================================ */
.rank-podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 12px;
  padding: 40px 0 0;
  margin-bottom: 40px;
  position: relative;
}
.rank-podium::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: min(440px, 100%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

/* Crown above #1 */
.podium-item.podium-1::before {
  content: '👑';
  font-size: 1.6rem;
  position: absolute;
  top: -30px;
  animation: crownFloat 2.5s ease-in-out infinite;
}
@keyframes crownFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

.podium-avatar-link { position: relative; display: inline-block; }

.podium-avatar {
  border-radius: 50%;
  object-fit: cover;
  width: 64px; height: 64px;
  border: 3px solid rgba(255,255,255,.15);
  transition: transform .3s, box-shadow .3s;
  display: block;
}
.podium-avatar-lg { width: 84px !important; height: 84px !important; }

/* Ring glow per rank */
.podium-item.podium-1 .podium-avatar {
  border-color: #F59E0B;
  box-shadow: 0 0 0 4px rgba(245,158,11,.2), 0 0 20px rgba(245,158,11,.3);
}
.podium-item.podium-2 .podium-avatar {
  border-color: #94A3B8;
  box-shadow: 0 0 0 3px rgba(148,163,184,.2);
}
.podium-item.podium-3 .podium-avatar {
  border-color: #C2855A;
  box-shadow: 0 0 0 3px rgba(194,133,90,.2);
}
.podium-avatar-link:hover .podium-avatar { transform: scale(1.08); }

.podium-medal {
  position: absolute;
  bottom: -8px; right: -8px;
  font-size: 1.3rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
}

.podium-name {
  font-weight: 800;
  font-size: .88rem;
  color: var(--text);
  max-width: 90px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.podium-item.podium-1 .podium-name { font-size: .95rem; }

.podium-score {
  font-size: .75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
}
.podium-item.podium-1 .podium-score { color: #F59E0B; background: rgba(245,158,11,.1); }
.podium-item.podium-2 .podium-score { color: #94A3B8; background: rgba(148,163,184,.1); }
.podium-item.podium-3 .podium-score { color: #C2855A; background: rgba(194,133,90,.1); }

/* Blocks */
.podium-block {
  border-radius: 8px 8px 0 0;
  width: 88px;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}
.podium-block::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  animation: podiumShimmer 3s ease-in-out infinite;
}
@keyframes podiumShimmer {
  0%   { left: -100%; }
  40%,100% { left: 150%; }
}
.podium-block-1 {
  height: 80px;
  background: linear-gradient(180deg, #F59E0B, #D97706);
  box-shadow: 0 -4px 20px rgba(245,158,11,.3);
}
.podium-block-2 {
  height: 55px;
  background: linear-gradient(180deg, #94A3B8, #64748B);
  box-shadow: 0 -2px 12px rgba(100,116,139,.2);
}
.podium-block-3 {
  height: 38px;
  background: linear-gradient(180deg, #C2855A, #92400E);
  box-shadow: 0 -2px 12px rgba(194,133,90,.2);
}

/* Podium rank number inside block */
.podium-block-num {
  position: absolute;
  bottom: 6px; left: 50%;
  transform: translateX(-50%);
  font-family: 'Kanit', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: rgba(255,255,255,.4);
  line-height: 1;
}

.podium-item.podium-1 { animation: slide-up-fade .5s ease .1s both; }
.podium-item.podium-2 { animation: slide-up-fade .5s ease .3s both; }
.podium-item.podium-3 { animation: slide-up-fade .5s ease .5s both; }

.rank-row--self {
  background: linear-gradient(135deg, rgba(5,226,122,.06), rgba(5,226,122,.02)) !important;
  border: 1px solid rgba(5,226,122,.2) !important;
}
.rank-you-badge {
  background: var(--primary); color: #000; font-size: .65rem; font-weight: 800;
  padding: 2px 7px; border-radius: 999px; margin-left: 6px;
}

/* ============================================================
   BANNIÈRE TRIAL EXPIRY (mon-espace)
   ============================================================ */
.trial-expiry-banner {
  background: linear-gradient(135deg, #1A0800, #2D1200);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.trial-expiry-banner .trial-icon { font-size: 1.5rem; flex-shrink: 0; }
.trial-expiry-banner .trial-body { flex: 1; }
.trial-expiry-banner .trial-body strong { color: var(--gold); display: block; margin-bottom: 2px; }
.trial-expiry-banner .trial-body span { font-size: .83rem; color: rgba(255,255,255,.6); }

/* ============================================================
   MON-ESPACE — Dashboard premium
   ============================================================ */
.evo-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 20px;
  transition: box-shadow .2s;
}
.evo-section:hover { box-shadow: 0 4px 24px rgba(0,0,0,.06); }
.evo-section-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.evo-aside-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
}
.evo-aside-title {
  font-size: .85rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin-bottom: 14px;
}

/* ── HERO DÉCORATIONS FLOTTANTES ───────────────────────────── */
.hero-deco {
  position: absolute;
  font-size: 4rem;
  opacity: .04;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}
.hero-deco-1 { top: 15%; left: 5%; font-size: 8rem; }
.hero-deco-2 { top: 60%; right: 8%; font-size: 6rem; }
.hero-deco-3 { bottom: 20%; left: 12%; font-size: 5rem; }

.hero-float-badge {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}
.hero-float-badge-1 { top: 20%; right: 15%; }
.hero-float-badge-2 { top: 45%; right: 8%; }
.hero-float-badge-3 { bottom: 25%; right: 12%; }

@media (max-width: 900px) {
  .hero-float-badge { display: none; }
  .hero-deco { display: none; }
}

/* ── HERO PROOF ROW ─────────────────────────────────────────── */
.hero-proof-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.hero-proof-avatars {
  display: flex;
}
.hero-proof-avatars img {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
  border: 2px solid #09090D;
  margin-left: -8px;
}
.hero-proof-avatars img:first-child { margin-left: 0; }
.hero-proof-text {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}
.hero-proof-text strong { color: var(--primary); }

/* ── SCROLLBAR CUSTOM ───────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #09090D; }
::-webkit-scrollbar-thumb { background: rgba(5,226,122,.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── SÉLECTION TEXTE ────────────────────────────────────────── */
::selection { background: rgba(5,226,122,.25); color: #fff; }

/* ── FOCUS VISIBLE PREMIUM ──────────────────────────────────── */
:focus-visible {
  outline: 2px solid rgba(5,226,122,.6);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skeleton Loaders */
.skeleton {
  background: linear-gradient(90deg, var(--bg) 25%, var(--border-light) 50%, var(--bg) 75%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
  color: transparent !important;
  pointer-events: none;
}
.skeleton * { visibility: hidden; }
@keyframes skeleton-loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ============================================================
   BADGES GRID — Mon évolution
   ============================================================ */
.evo-badge-count {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #000;
  font-size: .7rem; font-weight: 800; min-width: 20px; height: 20px;
  border-radius: 999px; padding: 0 6px; margin-left: 8px;
  vertical-align: middle;
}
.evo-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 12px;
}
.evo-badge-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 8px 12px;
  text-align: center;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  cursor: default;
}
.evo-badge-item:hover {
  transform: translateY(-3px);
  border-color: rgba(5,226,122,.4);
  box-shadow: 0 6px 20px rgba(5,226,122,.12);
}
.evo-badge-icon { font-size: 2rem; line-height: 1; margin-bottom: 6px; }
.evo-badge-name {
  font-size: .68rem; font-weight: 700; color: var(--text);
  line-height: 1.3; margin-bottom: 4px;
}
.evo-badge-date { font-size: .6rem; color: var(--muted); }

/* ============================================================
   AUTH SPLIT PAGE — Login / Register premium
   ============================================================ */
.auth-split-page {
  display: flex; min-height: 100vh;
}
.auth-split-left {
  flex: 0 0 44%; max-width: 560px; position: relative; overflow: hidden;
  background: #09090D;
  display: flex; flex-direction: column; padding: 40px 48px;
  /* Sticky so it stays visible while the right side scrolls */
  position: sticky; top: 0; height: 100vh;
}
.auth-left-mesh {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(5,226,122,.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 70%, rgba(5,226,122,.07) 0%, transparent 70%);
  animation: mesh-move 12s ease-in-out infinite alternate;
}
.auth-split-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 48px; z-index: 1; }
.auth-split-content { flex: 1; display: flex; flex-direction: column; justify-content: center; z-index: 1; }
.auth-split-title {
  font-size: 2.6rem; font-weight: 900; color: #fff; line-height: 1.15;
  margin-bottom: 16px; letter-spacing: -1px;
}
.auth-split-title span { color: var(--primary); }
.auth-split-sub {
  color: rgba(255,255,255,.55); font-size: 1rem; line-height: 1.7;
  margin-bottom: 36px; max-width: 400px;
}
.auth-split-features { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.auth-split-feature {
  display: flex; align-items: flex-start; gap: 14px;
}
.auth-split-feature-icon {
  font-size: 1.4rem; flex-shrink: 0;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: rgba(5,226,122,.1); border-radius: var(--radius-md);
}
.auth-split-feature strong { display: block; color: #fff; font-size: .88rem; margin-bottom: 2px; }
.auth-split-feature span { color: rgba(255,255,255,.4); font-size: .78rem; }
.auth-split-stats {
  display: flex; align-items: center; gap: 0;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg); padding: 16px 20px;
  margin-bottom: 28px;
}
.auth-split-stat { text-align: center; flex: 1; }
.auth-split-stat strong { display: block; font-size: 1.3rem; font-weight: 900; color: var(--primary); }
.auth-split-stat span { font-size: .72rem; color: rgba(255,255,255,.4); }
.auth-split-stat-sep { width: 1px; height: 32px; background: rgba(255,255,255,.08); }
.auth-split-testimonial {
  background: rgba(5,226,122,.06); border: 1px solid rgba(5,226,122,.15);
  border-radius: var(--radius-lg); padding: 20px;
}
.auth-split-testi-stars { font-size: .85rem; margin-bottom: 8px; }
.auth-split-testimonial p { color: rgba(255,255,255,.7); font-size: .88rem; line-height: 1.6; margin-bottom: 8px; font-style: italic; }
.auth-split-testi-author { font-size: .75rem; color: rgba(255,255,255,.35); }

.auth-split-right {
  flex: 1;
  display: flex;
  /* align-items: flex-start permet le scroll correct du formulaire */
  align-items: flex-start;
  justify-content: center;
  padding: 48px 48px 64px;
  background: var(--bg);
  overflow-y: auto;
  min-height: 100vh;
}
.auth-split-form-wrap {
  width: 100%;
  max-width: 480px;
  /* Centrage vertical pour les formulaires courts sans bloquer le scroll */
  margin: auto 0;
}
.auth-split-form-header { margin-bottom: 28px; }
.auth-split-form-header h1 { font-size: 1.9rem; font-weight: 900; margin-bottom: 8px; }
.auth-split-form-header p { color: var(--muted); font-size: .92rem; line-height: 1.6; }

.auth-form .form-group { margin-bottom: 16px; }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--muted); font-size: .8rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-trust-row {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 16px; font-size: .72rem; color: var(--muted);
}
.auth-submit-btn { margin-top: 4px; }

@media (max-width: 900px) {
  .auth-split-left  { display: none !important; position: static; height: auto; }
  .auth-split-right { padding: 32px 24px !important; min-height: 100vh; align-items: flex-start; }
  .auth-split-form-wrap { max-width: 100%; margin: 0 !important; }
}

/* ── PAGE AUTH FULL-SCREEN (login, register, forgot-password) ──────────────── */
body.page-auth .top-urgency-bar  { display: none !important; }
body.page-auth .site-header      { display: none !important; }
body.page-auth .site-main        { padding-top: 0 !important; }
body.page-auth .site-footer      { display: none !important; }
body.page-auth .mobile-bottom-nav { display: none !important; }
body.page-auth #scroll-top       { display: none !important; }
body.page-auth .pwa-install-banner { display: none !important; }
body.page-auth .cookie-banner    { bottom: 16px; }
/* Full-screen layout — body scrolls, left panel sticks */
body.page-auth .auth-split-left  {
  position: sticky;
  top: 0;
  height: 100vh;
}
/* Remove nested scroll — let body scroll instead */
body.page-auth .auth-split-right {
  display: flex;
  align-items: flex-start;
  overflow-y: visible;
  min-height: 100vh;
  padding: 40px 48px 60px;
}
body.page-auth .auth-split-form-wrap {
  margin: auto 0;
  padding-top: 0;
}
body.page-auth .auth-split-page  { min-height: 100vh; }

/* ── NAV : masquer liens secondaires selon largeur ─────────────────────────── */
@media (max-width: 1200px) and (min-width: 769px) {
  .nav-hide-md { display: none !important; }
}
@media (max-width: 1080px) and (min-width: 769px) {
  .nav-hide-sm { display: none !important; }
}

/* ============================================================
   DASHBOARD — Améliorations premium
   ============================================================ */
.dash-pending-alert {
  background: linear-gradient(135deg, rgba(245,158,11,.12), rgba(245,158,11,.06));
  border: 1px solid rgba(245,158,11,.25);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.dash-pending-alert strong { color: #F59E0B; }
.dash-pending-alert a { color: #F59E0B; font-weight: 600; text-decoration: underline; }

.dash-header-user {
  display: flex; align-items: center; gap: 16px; margin-bottom: 8px;
}
.dash-header-avatar {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(5,226,122,.3);
}
.dash-cert-inline {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}
.dash-score-stat {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(5,226,122,.1); border: 1px solid rgba(5,226,122,.2);
  color: var(--primary); font-weight: 700; font-size: .82rem;
  padding: 4px 12px; border-radius: 999px;
}

/* ============================================================
   NOTIFICATIONS — Premium redesign
   ============================================================ */
.notif-page { max-width: 720px; margin: 0 auto; padding: 32px 0 80px; }

.notif-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
}
.notif-header h2 { font-size: 1.25rem; font-weight: 800; }

.notif-day-group { margin-bottom: 28px; }
.notif-day-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--surface-hover);
  margin-bottom: 10px;
}

.notif-list { display: flex; flex-direction: column; gap: 6px; }

.notif-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  text-decoration: none;
  color: var(--text);
  transition: background .15s, transform .15s, box-shadow .15s;
  position: relative;
  overflow: hidden;
}
.notif-item:hover {
  background: var(--surface-hover);
  transform: translateX(3px);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.notif-item--unread {
  background: var(--surface-hover);
  border-left: 3px solid currentColor;
}

.notif-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform .2s;
}
.notif-item:hover .notif-item-icon { transform: scale(1.1); }

.notif-content { flex: 1; min-width: 0; }
.notif-text {
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 4px;
}
.notif-time {
  font-size: .71rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.notif-time::before { content: '🕐'; font-size: .65rem; }

.notif-unread-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: notifPulse 2s ease infinite;
}
@keyframes notifPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.8); }
}

.notif-empty {
  text-align: center;
  padding: 80px 20px;
  background: var(--surface);
  border-radius: 20px;
  border: 1px dashed var(--border);
}
.notif-empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: .3;
  display: block;
}
.notif-empty p { color: var(--muted); font-size: .9rem; }

/* ============================================================
   PROFIL — Badges mini + aperçu public
   ============================================================ */
.profile-aside-title {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin-bottom: 12px;
}
.profile-badges-mini {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.profile-badge-mini {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  background: var(--surface-hover); display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem; cursor: default;
  border: 1px solid var(--border);
  transition: transform .15s;
}
.profile-badge-mini:hover { transform: scale(1.15); }
.profile-badge-more {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  background: rgba(5,226,122,.1); border: 1px solid rgba(5,226,122,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; color: var(--primary);
  text-decoration: none;
}
.profile-public-preview { border: 1px dashed rgba(5,226,122,.2) !important; }

/* Profile completion bar premium */
.profile-completion { margin-top: 18px; }
.profile-completion-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.profile-completion-label { font-size: .78rem; color: var(--muted); font-weight: 600; }
.profile-completion-pct { font-size: .82rem; font-weight: 800; color: var(--primary); }
.profile-completion-bar {
  height: 6px; background: var(--border); border-radius: 99px; overflow: hidden;
  margin-bottom: 12px;
}
.profile-completion-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), #00C47A);
  transition: width .6s cubic-bezier(.4,0,.2,1);
}
.profile-completion-items { display: flex; flex-direction: column; gap: 6px; }
.profile-completion-item {
  font-size: .75rem; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
}
.profile-completion-item.done { color: var(--text); }

/* ============================================================
   CORRECTIFS MOBILE GLOBAUX — Anti-overflow + Layout fixes
   ============================================================ */

/* Tous les éléments positionnés en absolute/fixed avec débordement */
.hero, .page-header, .cta-home, .cta-section,
.numbers-home, .testi-home, .pricing-hero,
.blog-article-header, .auth-split-left {
  overflow: hidden;
}

/* Conteneurs qui peuvent dépasser */
.hero-chips, .hero-chips--type, .trust-bar-inner {
  max-width: 100%;
}

/* ── CORRECTIONS LAYOUT MOBILE SPÉCIFIQUES ── */
@media (max-width: 768px) {

  /* Fix général container */
  .container { padding: 0 16px; max-width: 100%; }

  /* Hero */
  .hero-page-header { flex-direction: column !important; gap: 12px; align-items: flex-start !important; }
  .evo-page-header .container > div { flex-direction: column !important; gap: 16px; }
  .evo-header-rank { width: 100%; justify-content: space-around; }
  .evo-grid { grid-template-columns: 1fr; }
  .evo-aside { display: contents; }
  .evo-aside > * { order: 0; }

  /* Profil page */
  .profile-grid { grid-template-columns: 1fr; }
  .profile-aside { display: contents; }

  /* Auth split */
  .auth-split-left  { display: none !important; position: static; height: auto; }
  .auth-split-right { min-height: 100vh; padding: 24px 20px !important; align-items: flex-start; }
  .auth-split-form-wrap { max-width: 100%; margin: 0 !important; }

  /* Footer compact */
  .footer-top { grid-template-columns: 1fr 1fr !important; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-stats { gap: 12px; }

  /* Classement */
  .rank-grid { grid-template-columns: 1fr !important; }

  /* Dashboard */
  .dash-stats-bar { grid-template-columns: 1fr 1fr; }

  /* Tables overflow scroll */
  .pricing-compare-table, .blog-compare-table, table {
    display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
  }

  /* Prix — cartes empilées */
  .pricing-grid { grid-template-columns: 1fr !important; padding: 0; }

  /* Notifications */
  .notif-page { padding: 20px 0 80px; }
  .notif-item { padding: 12px; gap: 10px; }

  /* Bottom nav — évite collision avec contenu */
  .site-main { padding-bottom: 72px; }
}

@media (max-width: 480px) {

  /* Textes qui débordent */
  h1 { font-size: clamp(1.4rem, 6vw, 2rem) !important; word-break: break-word; }
  h2 { font-size: clamp(1.15rem, 5vw, 1.6rem); }

  /* Cards full width */
  .match-card-v2, .blog-card, .joueur-card { border-radius: 12px; }

  /* Formulaires */
  .form-control { font-size: 16px !important; } /* Empêche zoom iOS sur input focus */

  /* Auth */
  .auth-split-form-wrap { padding: 0; }
  .auth-form .form-group { margin-bottom: 14px; }

  /* Blog */
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { display: none; }

  /* Profil */
  .profile-section-header { font-size: .95rem; }
  .profile-aside-card { padding: 16px; }

  /* Evolution */
  .evo-stats-grid { grid-template-columns: 1fr 1fr; }
  .evo-stat-value { font-size: 1.6rem; }

  /* Badges */
  .evo-badges-grid { grid-template-columns: repeat(3, 1fr); }

  /* Référencement / scroll chips */
  .hero-chips, .hero-chips--type {
    flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px;
    scrollbar-width: none;
  }
  .hero-chips::-webkit-scrollbar, .hero-chips--type::-webkit-scrollbar { display: none; }
}

/* ============================================================
   PERFORMANCE — CSS Containment
   ============================================================ */
.match-card-v2, .blog-card, .joueur-card, .top-player-card {
  contain: layout style;
  will-change: transform;
}

/* Optimise les animations coûteuses */
.hero-badge-float, .auth-left-mesh {
  will-change: transform;
  contain: strict;
}

/* Sections hors écran → rendering différé */
.testi-home, .blog-home, .top-players-home {
  content-visibility: auto;
  contain-intrinsic-size: 0 400px;
}

/* ============================================================
   RENTABILITÉ — Éléments de conversion premium
   ============================================================ */

/* .top-urgency-bar — défini en haut du fichier (position:fixed) */

/* ── Badge social proof live ── */
.social-proof-live {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(5,226,122,.1); border: 1px solid rgba(5,226,122,.2);
  border-radius: var(--radius-full); padding: 6px 14px;
  font-size: .78rem; color: var(--primary); font-weight: 600;
}
.social-proof-live::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary);
  animation: pulse-glow 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── Carte premium "populaire" flottante ── */
.pricing-card--popular::before {
  content: '🔥 Choix le plus populaire';
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--gold), #FBBF24);
  color: #000; font-size: .7rem; font-weight: 800;
  padding: 4px 14px; border-radius: var(--radius-full);
  white-space: nowrap; z-index: 2;
}

/* ── Garantie section ── */
.guarantee-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; flex-wrap: wrap;
  padding: 14px 0; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 24px 0;
}
.guarantee-item {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--muted); font-weight: 600;
}
.guarantee-item strong { color: var(--text); }

/* ── Compteur actifs en live ── */
.live-users-badge {
  position: fixed; bottom: 90px; right: 16px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 10px 14px;
  font-size: .78rem; display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow); z-index: 85;
  animation: slide-up-fade .4s cubic-bezier(.2,0,0,1) .5s both;
}
.live-users-badge strong { color: var(--primary); font-weight: 800; }
.live-users-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0;
  animation: pulse-glow 1.5s ease-in-out infinite;
}
@media (max-width: 600px) {
  .live-users-badge { bottom: 80px; right: 12px; font-size: .72rem; }
}

/* ── Bouton CTA premium avec shimmer ── */
.btn-shimmer {
  position: relative; overflow: hidden;
}
.btn-shimmer::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  animation: shimmer 2.5s ease-in-out infinite;
}

/* ── Trust badge ── */
.trust-badges {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  justify-content: center; margin: 16px 0;
}
.trust-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: .72rem; color: var(--muted);
}
.trust-badge::before { font-size: .9rem; }

/* ── Score visible en header ── */
.header-score-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(5,226,122,.12); border: 1px solid rgba(5,226,122,.2);
  color: var(--primary); font-size: .72rem; font-weight: 700;
  padding: 2px 9px; border-radius: var(--radius-full);
}

/* ── Notification badge sur nav ── */
.nav-notif-badge {
  position: absolute; top: -3px; right: -3px;
  background: var(--danger); color: #fff;
  width: 16px; height: 16px; border-radius: 50%;
  font-size: .6rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--white);
}

/* ── Section avis Google/Trust ── */
.trust-section {
  padding: 32px 0; background: var(--bg);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.trust-row {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  font-size: .85rem; font-weight: 600;
}
.trust-item-icon { font-size: 1.4rem; }
.trust-item-label { color: var(--muted); font-size: .72rem; font-weight: 400; }

/* ── PC — Améliorations layout grand écran ── */
@media (min-width: 1200px) {
  .hero-content { padding-right: 40px; }
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
  .top-players-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-top { grid-template-columns: 1.8fr 1fr 1fr 1fr; }
}

@media (min-width: 1400px) {
  .container { max-width: 1320px; }
  .cards-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Safari/iOS fixes ── */
@supports (-webkit-touch-callout: none) {
  .site-main { padding-top: calc(var(--header-h) + var(--urgency-h) + env(safe-area-inset-top, 0px)); }
  .mobile-bottom-nav { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .sticky-cta-mobile { bottom: calc(75px + env(safe-area-inset-bottom)); }
}

/* ── Dropdown invite friends ── */
.dropdown-item--invite {
  background: rgba(37,211,102,.08) !important;
  color: #1a9e5a !important;
  font-weight: 700 !important;
}
.dropdown-item--invite:hover {
  background: rgba(37,211,102,.15) !important;
}

/* ── Mon Réseau ── */
.reseau-grid { display: flex; flex-direction: column; gap: 8px; }
.reseau-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  text-decoration: none; color: var(--text);
  transition: border-color .15s, transform .15s;
}
.reseau-card:hover { border-color: var(--primary); transform: translateX(3px); }
.reseau-rank {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary); color: #000;
  font-size: .72rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.reseau-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.reseau-info { flex: 1; min-width: 0; }
.reseau-name { font-size: .85rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reseau-meta { display: flex; align-items: center; gap: 6px; margin-top: 2px; flex-wrap: wrap; }
.reseau-score { text-align: right; flex-shrink: 0; }
.reseau-score strong { font-size: .95rem; font-weight: 800; color: var(--primary); }
.reseau-score small { font-size: .62rem; color: var(--muted); }

.espace-invite-box {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(37,211,102,.06); border: 1.5px dashed rgba(37,211,102,.3);
  border-radius: var(--radius-lg); padding: 16px;
  flex-wrap: wrap;
}
.espace-invite-icon { font-size: 2rem; flex-shrink: 0; }
.espace-invite-box strong { display: block; font-size: .9rem; margin-bottom: 4px; }
.espace-invite-box p { font-size: .78rem; color: var(--muted); line-height: 1.5; margin: 0; }

/* ── Hero — Recherche améliorée ── */
.search-date-wrap {
  display: flex; flex-direction: column; gap: 4px;
}
.search-date-shortcuts {
  display: flex; gap: 4px;
}
.date-shortcut {
  background: rgba(5,226,122,.1); border: 1px solid rgba(5,226,122,.2);
  color: rgba(255,255,255,.7); border-radius: var(--radius-full);
  padding: 2px 8px; font-size: .68rem; font-weight: 700; cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
.date-shortcut:hover, .date-shortcut.active {
  background: var(--primary); color: #000; border-color: var(--primary);
}

/* Chips villes populaires */
.hero-cities-row {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 10px; padding: 0 4px;
}
.hero-cities-label {
  font-size: .72rem; color: rgba(255,255,255,.35); font-weight: 600;
  flex-shrink: 0; margin-right: 2px;
}
.hero-city-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.65); border-radius: var(--radius-full);
  padding: 3px 12px; font-size: .72rem; font-weight: 600;
  text-decoration: none; transition: all .15s; white-space: nowrap;
}
.hero-city-chip:hover {
  background: rgba(5,226,122,.15); border-color: rgba(5,226,122,.3);
  color: var(--primary);
}
.hero-city-chip.active {
  background: rgba(5,226,122,.2); border-color: var(--primary);
  color: var(--primary);
}
@media (max-width: 600px) {
  .hero-cities-row { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
  .hero-cities-row::-webkit-scrollbar { display: none; }
  .hero-city-chip { flex-shrink: 0; }
}

/* ── Hero trust mini row ── */
.hero-trust-mini {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 12px; font-size: .78rem; color: rgba(255,255,255,.55);
}
.hero-trust-sep { color: rgba(255,255,255,.2); }
.hero-trust-mini span:not(.hero-trust-sep) { font-weight: 600; }

/* ── Match detail — WhatsApp + Waitlist ── */
.detail-whatsapp-btn {
  background: #25D366; color: #fff; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
}
.detail-whatsapp-btn:hover { background: #1ebe5d; color: #fff; }

.detail-waitlist-box {
  background: rgba(245,158,11,.08);
  border: 1.5px solid rgba(245,158,11,.25);
  border-radius: var(--radius-lg);
  padding: 16px; margin-top: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.detail-waitlist-box--active {
  background: rgba(16,185,129,.08);
  border-color: rgba(16,185,129,.25);
  color: var(--success); font-size: .85rem; font-weight: 600;
}
.detail-waitlist-icon { font-size: 1.5rem; }
.detail-waitlist-box strong { font-size: .9rem; color: var(--text); }
.detail-waitlist-box p { font-size: .82rem; color: var(--muted); margin: 0; }
.detail-waitlist-count {
  font-size: .72rem; font-weight: 700;
  background: rgba(245,158,11,.15); color: #D97706;
  padding: 2px 8px; border-radius: 999px;
}

/* ── Register steps indicator ── */
.reg-steps {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 20px; font-size: .75rem;
}
.reg-step {
  padding: 4px 12px; border-radius: var(--radius-full);
  background: var(--border); color: var(--muted);
  font-weight: 600; transition: all .2s;
}
.reg-step.active {
  background: var(--primary); color: #000; font-weight: 800;
}
.reg-step-sep { color: var(--muted); font-size: .65rem; }

/* Level picker compact pour register */
.level-picker-v2 {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.level-option-v2 {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: var(--radius);
  border: 1.5px solid var(--border);
  cursor: pointer; transition: border-color .15s, background .15s;
  font-size: .82rem; font-weight: 600;
}
.level-option-v2 input { display: none; }
.level-option-v2.active {
  border-color: var(--primary);
  background: rgba(5,226,122,.08);
}
.level-option-v2.disabled { opacity: .4; cursor: not-allowed; }
.level-opt-emoji { font-size: 1.1rem; flex-shrink: 0; }
.level-opt-name { font-size: .78rem; line-height: 1.3; }
@media (max-width: 480px) {
  .level-picker-v2 { grid-template-columns: 1fr; }
}

/* ── Footer réseaux sociaux premium ── */
.footer-socials {
  padding: 24px 0 0;
  border-top: 1px solid rgba(255,255,255,.07);
  margin-bottom: 4px;
}
.footer-socials-title {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: rgba(255,255,255,.35);
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.footer-socials-row {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.footer-social-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px;
  font-size: .8rem; font-weight: 700; text-decoration: none;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.65);
  transition: all .22s;
}
.footer-social-btn:hover { transform: translateY(-2px); }
.footer-social-ig:hover { background: linear-gradient(135deg,rgba(225,48,108,.25),rgba(253,136,47,.2)); border-color: rgba(225,48,108,.4); color: #E1306C; }
.footer-social-tt:hover { background: rgba(0,0,0,.3); border-color: rgba(255,255,255,.3); color: #fff; }
.footer-social-fb:hover { background: rgba(24,119,242,.2); border-color: rgba(24,119,242,.4); color: #1877F2; }
.footer-social-yt:hover { background: rgba(255,0,0,.15); border-color: rgba(255,0,0,.4); color: #FF0000; }
@media (max-width: 600px) {
  .footer-socials-row { gap: 8px; }
  .footer-social-btn { padding: 8px 12px; font-size: .75rem; }
}

/* ============================================================
   MOBILE BOTTOM NAVIGATION
   ============================================================ */
.mobile-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 990;
  background: var(--white);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mbn-inner {
  display: flex; align-items: center;
  height: 60px; padding: 0 4px;
}
.mbn-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px; padding: 6px 4px; border-radius: var(--radius-sm);
  color: var(--muted); text-decoration: none;
  font-size: .6rem; font-weight: 600; letter-spacing: .02em;
  transition: color var(--transition), background var(--transition);
  min-height: 48px; position: relative;
}
.mbn-item:hover, .mbn-item.active { color: var(--primary); }
.mbn-item.active .mbn-icon { transform: scale(1.18); }
.mbn-icon { font-size: 1.35rem; line-height: 1; display: block; transition: transform .18s; }
.mbn-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56px; }
.mbn-item--create {
  background: var(--primary); color: #fff !important;
  border-radius: var(--radius-full);
  width: 52px; height: 52px; flex: none;
  margin: 0 8px; padding: 0;
  box-shadow: 0 4px 16px rgba(5,226,122,.45);
  justify-content: center;
}
.mbn-item--create .mbn-icon { font-size: 1.6rem; }
.mbn-item--create:hover { background: var(--primary-dark); transform: scale(1.06); }
[data-theme="dark"] .mobile-bottom-nav {
  background: var(--white);
  border-top-color: var(--border);
}

/* ── Badge sur bottom nav ── */
.mbn-badge {
  position: absolute; top: 4px; right: calc(50% - 18px);
  background: var(--danger); color: #fff;
  font-size: .5rem; font-weight: 700; min-width: 14px; height: 14px;
  border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center;
  padding: 0 3px; border: 2px solid var(--white);
}

/* ============================================================
   MOBILE REFONTE GLOBALE — ≤ 768px
   ============================================================ */
@media (max-width: 768px) {
  /* ── Activer bottom nav ── */
  .mobile-bottom-nav { display: block; }

  /* ── Espace pour la bottom nav ── */
  .site-main   { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .site-footer { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }

  /* ── Toast & PWA au-dessus de la bottom nav ── */
  .toast-alert { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); right: 12px; left: 12px; max-width: none; }

  /* ── Variables mobile ── */
  :root { --header-h: 56px; }
  body.has-urgency { --urgency-h: 32px; }

  /* ── Top urgency bar mobile ── */
  .top-urgency-bar { height: 32px !important; font-size: .64rem !important; padding: 0 8px !important; gap: 6px !important; }
  .urgency-text-full   { display: none; }
  .urgency-text-mobile { display: inline; }

  /* ── Header mobile ── */
  .site-header { height: 56px; }
  .logo-text { font-size: 1.1rem; }
  .header-inner { gap: 8px; padding: 0 14px; }
  .lang-switcher { display: none; }
  .user-name-sm { display: none; }
  .user-avatar-sm { width: 28px; height: 28px; }
  .user-menu-toggle { padding: 4px 4px 4px 8px; gap: 5px; }

  /* Dropdown plein écran mobile */
  .user-menu-dropdown {
    position: fixed;
    top: calc(var(--header-h) + var(--urgency-h));
    left: 0; right: 0;
    min-width: auto;
    max-height: calc(100vh - var(--header-h) - var(--urgency-h) - 60px);
    overflow-y: auto; border-radius: 0;
    border-left: none; border-right: none; border-top: none;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
  }
  .dropdown-item { padding: 14px 20px; font-size: .9rem; }
  .user-menu-header { padding: 16px 20px; }

  /* ── Burger ── */
  .burger-btn { display: flex; }

  /* ── Navigation mobile ── */
  .nav-main {
    position: fixed;
    top: calc(var(--header-h) + var(--urgency-h));
    left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: stretch;
    padding: 8px 12px 80px; gap: 2px;
    transform: translateY(-110%); opacity: 0; pointer-events: none;
    transition: transform .28s ease, opacity .28s ease;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 8px 24px rgba(0,0,0,.1); z-index: 999;
    max-height: calc(100vh - var(--header-h) - var(--urgency-h));
    overflow-y: auto;
  }
  .nav-main.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-link { padding: 13px 14px; font-size: .9rem; border-radius: var(--radius); }
  .nav-link--create { text-align: center; margin-top: 4px; }

  /* ── HERO mobile ── */
  .hero { padding: 40px 0 36px; }

  /* Masquer badges flottants (trop encombrants) */
  .hero-float-badge, .hero-deco { display: none; }

  .hero-h1 { font-size: clamp(1.7rem, 7.5vw, 2.6rem); letter-spacing: -.4px; margin-bottom: 12px; }
  .hero-sub { font-size: .88rem; line-height: 1.6; }
  .hero-content { margin-bottom: 20px; }

  .hero-cta-row { flex-direction: column; align-items: stretch; gap: 10px; margin: 16px 0; }
  .hero-cta-row .btn { justify-content: center; font-size: .875rem !important; padding: 14px 20px !important; }
  .btn-hero-ghost { border-color: rgba(255,255,255,.4); }

  .hero-trust-mini { gap: 6px; font-size: .72rem; flex-wrap: wrap; justify-content: center; }
  .hero-trust-sep { display: none; }
  .hero-trust-mini span:not(.hero-trust-sep) { background: rgba(255,255,255,.06); padding: 4px 8px; border-radius: 20px; border: 1px solid rgba(255,255,255,.1); }

  .hero-proof-row { flex-direction: column; align-items: center; gap: 6px; }
  .hero-proof-avatars img { width: 26px; height: 26px; }

  .hero-stats-row { flex-wrap: wrap; border-radius: var(--radius-lg); padding: 12px; }
  .hero-stat-sep { display: none; }
  .hero-stat { flex: 1; min-width: 80px; padding: 8px; }

  /* ── Search pill mobile ── */
  .hero-search-pill {
    flex-direction: column; border-radius: var(--radius-lg);
    margin: 0 0 14px; box-shadow: var(--shadow-lg);
  }
  .search-pill-field {
    border-right: none; border-bottom: 1px solid var(--border-light);
    padding: 12px 16px;
  }
  .search-pill-field:last-of-type { border-bottom: none; }
  .search-pill-field input,
  .search-pill-field select { font-size: 1rem; min-height: 36px; }
  .search-pill-location { flex: none; }
  .search-pill-btn {
    margin: 10px 12px; border-radius: var(--radius);
    justify-content: center; padding: 14px;
    font-size: .9rem;
  }
  .search-date-shortcuts { gap: 5px; }
  .date-shortcut { padding: 5px 10px; font-size: .72rem; min-height: 32px; }

  /* ── City chips mobile ── */
  .hero-cities-row { gap: 6px; margin-bottom: 16px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .hero-city-chip { white-space: nowrap; flex-shrink: 0; font-size: .72rem; padding: 6px 12px; }

  /* ── Match cards mobile ── */
  .matches-list { grid-template-columns: 1fr; gap: 12px; }
  .cards-grid   { grid-template-columns: 1fr; gap: 12px; }

  /* ── Match card v2 mobile ── */
  .match-card-v2 { border-radius: var(--radius); }
  .card-visual   { padding-top: 48%; }
  .card-body     { padding: 14px; }

  /* ── Stat grid ── */
  .pm-stats-grid      { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .dash-stats-bar     { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .dash-stat-card     { padding: 14px; }
  .dash-stat-num      { font-size: 1.6rem; }

  /* ── How it works grid ── */
  .how-grid { grid-template-columns: 1fr; gap: 16px; }
  .how-grid::before { display: none; }

  /* ── Formulaires mobile (touch targets) ── */
  .form-control { padding: 13px 14px; font-size: 1rem; min-height: 48px; }
  select.form-control { min-height: 48px; }
  .btn { min-height: 44px; }
  .btn-sm { min-height: 36px; padding: 8px 16px; }

  /* ── Level picker ── */
  .level-picker   { grid-template-columns: 1fr; }
  .level-picker-v2 { gap: 6px; }
  .level-option-v2 { padding: 11px 12px; }

  /* ── Form rows ── */
  .form-row, .info-grid, .detail-info-grid { grid-template-columns: 1fr; }

  /* ── Login / register layout ── */
  .login-layout { grid-template-columns: 1fr; }
  .login-promo  { display: none; }
  .auth-header  { padding: 20px 18px 16px; }
  .auth-body    { padding: 0 18px 20px; }
  .auth-footer  { padding: 0 18px 20px; }

  /* ── CTA row ── */
  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btns .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* ── Footer ── */
  .footer-top   { grid-template-columns: 1fr; gap: 24px; }
  .footer-links { flex-direction: column; gap: 16px; }
  .footer-stats { flex-wrap: wrap; gap: 12px; }
  .footer-stat  { min-width: 60px; }

  /* ── Social footer ── */
  .footer-socials-row { gap: 8px; flex-wrap: wrap; justify-content: center; }
  .footer-social-btn  { padding: 9px 14px; font-size: .78rem; }

  /* ── Match manage ── */
  .match-manage-header  { flex-direction: column; align-items: flex-start; gap: 10px; }
  .match-manage-actions { width: 100%; display: flex; gap: 8px; flex-wrap: wrap; }
  .match-manage-actions .btn { flex: 1; min-width: 120px; justify-content: center; }

  /* ── Detail page ── */
  .detail-info-grid   { grid-template-columns: 1fr; gap: 10px; }
  .detail-actions-row { flex-direction: column; gap: 8px; }
  .detail-actions-row .btn { width: 100%; justify-content: center; }

  /* ── Tables responsive ── */
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 500px; }

  /* ── Classement tabs mobile ── */
  .classement-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; gap: 6px; }
  .rank-tab { white-space: nowrap; flex-shrink: 0; }

  /* ── Testi grid ── */
  .testi-grid { grid-template-columns: 1fr; }

  /* ── Notifications ── */
  .notif-item { padding: 12px 14px; }

  /* ── Page header ── */
  .page-header { padding: 24px 0 20px; }
  .page-title  { font-size: 1.5rem; }

  /* ── Create match card ── */
  .create-card-body   { padding-left: 16px; padding-right: 16px; }
  .create-card-footer { flex-direction: column; padding: 16px; gap: 8px; }
  .create-card-footer .btn { width: 100%; justify-content: center; }

  /* ── Mon espace ── */
  .espace-stats-grid  { grid-template-columns: repeat(2,1fr); }
  .reseau-grid        { grid-template-columns: 1fr; }

  /* ── Scrollbar horizontal masquée mais fonctionnelle ── */
  .hero-cities-row::-webkit-scrollbar,
  .classement-tabs::-webkit-scrollbar { display: none; }
}

/* ============================================================
   MOBILE EXTRA SMALL — ≤ 390px (iPhone SE, petits Android)
   ============================================================ */
@media (max-width: 390px) {
  .container { padding: 0 12px; }
  .hero-h1   { font-size: 1.55rem; }
  .hero-sub  { font-size: .82rem; }
  .hero { padding: 32px 0 28px; }

  .pm-stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pm-stat-num   { font-size: 1.6rem; }

  .mbn-inner { padding: 0 2px; }
  .mbn-label { font-size: .55rem; }
  .mbn-item--create { width: 46px; height: 46px; margin: 0 5px; }

  .user-menu-toggle { padding: 3px; gap: 3px; }
  .chevron { display: none; }

  .hero-cta-row .btn { font-size: .82rem !important; padding: 13px 16px !important; }

  .auth-header { padding: 16px 14px 12px; }
  .auth-body   { padding: 0 14px 16px; }
  .auth-footer { padding: 0 14px 16px; }

  .level-option-v2 { padding: 10px 10px; gap: 8px; }
  .level-opt-emoji  { font-size: 1.1rem; }
  .level-opt-name   { font-size: .78rem; }
}

/* ============================================================
   TABLETTE — 769px–1024px
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
  .nav-main { gap: 1px; }
  .nav-link { padding: 8px 9px; font-size: .8rem; }
  .matches-list { grid-template-columns: repeat(2,1fr); }
  .pm-stats-grid  { grid-template-columns: repeat(2,1fr); }
  .hero-float-badge { display: none; }
}

/* ── Quick Join button on cards ─────────────────────────── */
.card-quick-join { padding: 0 14px 14px; }
.quick-join-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 9px; border-radius: var(--radius);
  background: var(--primary); color: #fff; font-size: .8rem; font-weight: 700;
  border: none; cursor: pointer; text-decoration: none;
  transition: all var(--transition); font-family: inherit;
}
.quick-join-btn:hover  { background: var(--primary-dark); box-shadow: var(--shadow-green); }
.quick-join-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── Profile completion widget (dashboard) ───────────────── */
.prof-comp-card {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 20px; overflow: hidden;
}
[data-theme="dark"] .prof-comp-card { background: var(--dark-3); border-color: var(--border); }
.prof-comp-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.prof-comp-pct { font-family: 'Kanit',sans-serif; font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.prof-comp-bar-wrap { height: 8px; background: var(--border-light); border-radius: 99px; overflow: hidden; margin-bottom: 16px; }
.prof-comp-bar { height: 100%; background: linear-gradient(90deg, var(--primary), #00F5A0); border-radius: 99px; transition: width .5s ease; }
.prof-comp-steps { display: flex; flex-direction: column; gap: 6px; }
.prof-comp-step {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: var(--radius); background: var(--bg); color: var(--text);
  text-decoration: none; font-size: .83rem; transition: background var(--transition);
}
.prof-comp-step:hover { background: var(--border-light); }
.prof-comp-step.done { opacity: .55; text-decoration: line-through; }
.prof-comp-pts { margin-left: auto; font-size: .72rem; font-weight: 700; color: var(--primary); white-space: nowrap; }

/* ── Suggested match cards (dashboard) ──────────────────── */
.sugg-card {
  display: flex; flex-direction: column; border-radius: var(--radius);
  border: 1px solid var(--border-light); background: var(--white);
  overflow: hidden; text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.sugg-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--primary); }
.sugg-card-accent { height: 4px; flex-shrink: 0; }
.sugg-card-body { padding: 14px; flex: 1; }
[data-theme="dark"] .sugg-card { background: var(--dark-3); border-color: var(--border); }

/* ============================================================
   DESIGN UPGRADE — Améliorations visuelles globales
   ============================================================ */

/* ── Scroll-to-top button ────────────────────────────────── */
#scroll-top {
  position: fixed; bottom: 90px; right: 18px; z-index: 800;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary); color: #fff;
  border: none; cursor: pointer; font-size: 1rem;
  box-shadow: 0 4px 16px rgba(5,226,122,.4);
  opacity: 0; transform: translateY(20px);
  transition: opacity .25s, transform .25s;
  display: flex; align-items: center; justify-content: center;
}
#scroll-top.visible { opacity: 1; transform: translateY(0); }
#scroll-top:hover { background: var(--primary-dark); transform: translateY(-2px) !important; }
@media (max-width: 768px) { #scroll-top { bottom: 80px; right: 12px; width: 38px; height: 38px; } }

/* ── Numbers section upgrade ─────────────────────────────── */
.number-item strong {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800; line-height: 1;
  display: block; margin-bottom: 6px;
}
.number-item span {
  font-size: .875rem; color: var(--muted); font-weight: 500;
}
.number-item {
  text-align: center; padding: 24px 16px;
  transition: transform var(--transition);
}
.number-item:hover { transform: translateY(-4px); }

/* ── How-steps v2 ────────────────────────────────────────── */
.how-steps-v2 {
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1fr;
  align-items: center;
  gap: 0;
  margin-top: 48px;
}

.how-step-v2 {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: 24px;
  padding: 36px 28px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.how-step-v2::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(5,226,122,.04) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .25s;
  border-radius: inherit;
  pointer-events: none;
}
.how-step-v2:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(5,226,122,.12);
  border-color: rgba(5,226,122,.35);
}
.how-step-v2:hover::after { opacity: 1; }

.how-step-v2-num {
  font-family: 'Kanit', sans-serif;
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(5,226,122,.07);
  position: absolute;
  top: 8px; right: 14px;
  pointer-events: none;
  user-select: none;
}

.how-step-v2-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  border: 1.5px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 18px;
  transition: transform .25s;
}
.how-step-v2:hover .how-step-v2-icon {
  transform: scale(1.12) rotate(-5deg);
}

.how-step-v2 h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}
.how-step-v2 p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.how-step-v2-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* Connector between steps */
.how-connector-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  height: 60px;
}
.how-connector-line {
  width: 2px;
  height: 32px;
  background: linear-gradient(180deg, transparent, var(--primary), transparent);
  display: none;
}
.how-connector-arrow {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  opacity: .6;
  line-height: 1;
  display: block;
}

/* ── How-steps responsive ─── */
@media (max-width: 768px) {
  .how-steps-v2 {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 32px;
  }
  .how-step-v2 {
    border-radius: 0;
    border-bottom: none;
  }
  .how-step-v2:first-child {
    border-radius: 20px 20px 0 0;
  }
  .how-step-v2:last-child {
    border-radius: 0 0 20px 20px;
    border-bottom: 1.5px solid var(--border-light);
  }
  .how-connector-v2 {
    height: 0;
    display: none;
  }
}

/* ── How-step h3 upgrade ───────────────────────────────────── */
.how-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.how-step p  { font-size: .85rem; color: var(--muted); line-height: 1.6; }

/* ── Gradient text utility ───────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, #05E27A, #00C896);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.text-gradient-gold {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Glass card effect ───────────────────────────────────── */
.glass-card {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
}
[data-theme="dark"] .glass-card {
  background: rgba(30,41,59,.6);
  border-color: rgba(255,255,255,.08);
}

/* ── Section headers upgrade ────────────────────────────── */
.section-title-premium {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -.4px;
}
.section-eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--primary);
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: ''; flex: 0 0 24px; height: 1px; background: var(--primary); opacity: .4;
}

/* ── Stat number upgrade ─────────────────────────────────── */
.stat-num-hero {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,.7));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Card hover glow effect ──────────────────────────────── */
.card-glow-hover {
  transition: box-shadow var(--transition), transform var(--transition);
}
.card-glow-hover:hover {
  box-shadow: 0 0 0 2px var(--primary), var(--shadow-lg);
  transform: translateY(-4px);
}

/* ── Shimmer animation ───────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
.btn-shimmer {
  background: linear-gradient(90deg, var(--primary) 0%, #00F5A0 50%, var(--primary) 100%) !important;
  background-size: 200% auto !important;
  animation: shimmer 3s linear infinite;
}
.btn-shimmer:hover { animation-duration: 1.5s; }

/* ── Pulse badge ─────────────────────────────────────────── */
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: .6; }
  70%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}
.badge-pulse {
  position: relative;
}
.badge-pulse::after {
  content: '';
  position: absolute; inset: -4px; border-radius: 50%;
  background: var(--primary); opacity: .4;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

/* ── Improved match cards ────────────────────────────────── */
.match-card-v2 {
  border-radius: var(--radius-lg) !important;
}
.match-card-v2:hover {
  transform: translateY(-6px) scale(1.008) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,.14), 0 0 0 1px var(--primary) !important;
}
.card-visual {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}

/* ── Page header premium ─────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, #080F1E 0%, #0e2240 60%, #080F1E 100%);
  position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 39px,
    rgba(255,255,255,.015) 39px, rgba(255,255,255,.015) 40px
  ),
  repeating-linear-gradient(
    90deg, transparent, transparent 39px,
    rgba(255,255,255,.015) 39px, rgba(255,255,255,.015) 40px
  );
}
.page-header::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(5,226,122,.5), transparent);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { color: #fff !important; }
.page-header p, .page-header .page-header-sub { color: rgba(255,255,255,.6) !important; }
.breadcrumb { color: rgba(255,255,255,.4) !important; }
.breadcrumb a { color: rgba(255,255,255,.5) !important; }
.breadcrumb a:hover { color: var(--primary) !important; }
.breadcrumb-sep { color: rgba(255,255,255,.25) !important; }

/* ── Dashboard header premium ────────────────────────────── */
.dash-header-row { padding: 12px 0; }

/* ── Stat cards hover ────────────────────────────────────── */
.dash-stat-box {
  transition: background var(--transition), transform var(--transition);
}
.dash-stat-box:hover { transform: translateY(-2px); background: rgba(255,255,255,.15) !important; }

/* ── Section divider ─────────────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 48px 0;
}

/* ── Input focus upgrade ─────────────────────────────────── */
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(5,226,122,.1), 0 0 0 1px var(--primary);
  outline: none;
}

/* ── Avatar with ring ────────────────────────────────────── */
.avatar-ring {
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 3px rgba(5,226,122,.15);
}

/* ── Notification dot upgrade ────────────────────────────── */
.notif-badge, .msg-badge {
  box-shadow: 0 0 0 2px var(--white), 0 2px 8px rgba(239,68,68,.4) !important;
  animation: badge-pop .3s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
@keyframes badge-pop { from { transform: scale(0); } to { transform: scale(1); } }

/* ── Toast upgrade ───────────────────────────────────────── */
.toast-alert {
  border-radius: var(--radius-lg) !important;
  padding: 14px 18px !important;
  font-size: .875rem !important;
  backdrop-filter: blur(12px);
}
.alert-success.toast-alert {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5) !important;
  border-color: #6ee7b7 !important;
  box-shadow: 0 8px 32px rgba(5,150,105,.2), var(--shadow-lg) !important;
}
.alert-error.toast-alert {
  background: linear-gradient(135deg, #fef2f2, #fee2e2) !important;
  border-color: #fca5a5 !important;
  box-shadow: 0 8px 32px rgba(239,68,68,.2), var(--shadow-lg) !important;
}

/* ── Section background alternance ──────────────────────── */
section.section-alt { background: var(--bg); }
[data-theme="dark"] section.section-alt { background: var(--dark-2); }

/* ── Hero stats row upgrade ──────────────────────────────── */
.hero-stats-row {
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  backdrop-filter: blur(12px);
}

/* ── Trust bar upgrade ───────────────────────────────────── */
.hero-trust-bar {
  background: linear-gradient(90deg, var(--bg), white, var(--bg)) !important;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
[data-theme="dark"] .hero-trust-bar {
  background: linear-gradient(90deg, var(--dark-2), var(--dark-3), var(--dark-2)) !important;
}

/* ── Cert badges upgrade ─────────────────────────────────── */
.cert-badge {
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  transition: transform var(--transition), box-shadow var(--transition);
}
.cert-badge:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(0,0,0,.15); }

/* ── Footer brand upgrade ────────────────────────────────── */
.footer-tagline { color: rgba(255,255,255,.45) !important; line-height: 1.7; }
.footer-col h4 {
  font-family: 'Kanit', sans-serif;
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.35); margin-bottom: 16px;
}
.footer-col a {
  color: rgba(255,255,255,.55); font-size: .82rem;
  transition: color var(--transition), padding-left var(--transition);
  padding-left: 0;
}
.footer-col a:hover { color: var(--primary); padding-left: 4px; }

/* ── Skeleton loader (cartes en chargement) ──────────────── */
@keyframes skeleton {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, var(--bg) 50%, var(--border-light) 75%);
  background-size: 800px 100%;
  animation: skeleton 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

/* ── Floating label forms (inputs premium) ───────────────── */
.form-floating { position: relative; }
.form-floating .form-control { padding-top: 22px; padding-bottom: 6px; }
.form-floating label {
  position: absolute; top: 50%; left: 14px;
  transform: translateY(-50%);
  font-size: .875rem; color: var(--muted);
  transition: all .15s; pointer-events: none;
}
.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
  top: 10px; font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--primary);
}

/* ── Responsive grid upgrades ────────────────────────────── */
@media (min-width: 769px) {
  /* Cartes de match — 3 colonnes sur grand écran */
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

  /* Hero legèrement plus grand */
  .hero { padding: 96px 0 80px; }
  .hero-content { max-width: 720px; }
}

@media (min-width: 1200px) {
  /* 4 colonnes sur très grand écran */
  .cards-grid { grid-template-columns: repeat(4, 1fr); }
  .matches-list { grid-template-columns: repeat(3, 1fr); }
}

/* ── Mobile design upgrade ───────────────────────────────── */
@media (max-width: 768px) {
  /* Meilleure typographie mobile */
  body { font-size: 15px; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.15rem; }

  /* Cartes plus arrondies sur mobile */
  .match-card-v2 { border-radius: var(--radius-lg) !important; }

  /* Section padding réduit */
  section { padding: 40px 0 !important; }

  /* Page header mobile compact */
  .page-header { padding: 20px 0 22px !important; }
  .page-header h1 { font-size: 1.4rem !important; }

  /* Dashboard stats en 2 colonnes égales */
  .dash-stats-bar { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .dash-stat-box  { padding: 12px !important; }
  .dash-stat-box strong { font-size: 1.4rem !important; }

  /* Sections mobile avec padding correct */
  .section-eyebrow { justify-content: center; }

  /* Container padding réduit */
  .container { padding: 0 14px; }

  /* Toast plein largeur mobile */
  .toast-alert {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    left: 12px !important; right: 12px !important;
    max-width: none !important;
    border-radius: var(--radius) !important;
  }

  /* Scroll-to-top au-dessus de la bottom nav */
  #scroll-top { bottom: calc(72px + 10px + env(safe-area-inset-bottom, 0px)); }
}

/* ============================================================
   GRILLES RESPONSIVE — Classes utilitaires
   ============================================================ */

/* 2 colonnes → 1 sur mobile */
.rg-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
/* 3 colonnes → 1 sur mobile */
.rg-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
/* Main + Aside (2fr 1fr) → 1 colonne sur mobile */
.rg-main-aside {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
/* 4 colonnes → 2 sur mobile */
.rg-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .rg-4col { grid-template-columns: repeat(2, 1fr); }
  .rg-main-aside { grid-template-columns: 1.5fr 1fr; }
}
@media (max-width: 768px) {
  .rg-2col        { grid-template-columns: 1fr; gap: 14px; }
  .rg-3col        { grid-template-columns: 1fr; gap: 12px; }
  .rg-main-aside  { grid-template-columns: 1fr; gap: 16px; }
  .rg-4col        { grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (max-width: 480px) {
  .rg-4col { grid-template-columns: 1fr; }
}

/* ============================================================
   CORRECTIF MOBILE — INLINE GRID OVERRIDE
   Corrige tous les style="grid-template-columns:..." qui
   ne passaient pas en 1 colonne sur mobile.
   ============================================================ */
@media (max-width: 768px) {

  /* ── Override global de TOUS les grids inline ── */
  div[style*="grid-template-columns"],
  section[style*="grid-template-columns"],
  form[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* ── Exceptions : grids 2 colonnes intentionnels ── */
  /* Stats 2 colonnes (OK sur mobile) */
  div[style*="repeat(2,1fr)"],
  div[style*="repeat(2, 1fr)"],
  div[style*="1fr 1fr"][style*="gap:8px"],
  div[style*="1fr 1fr"][style*="gap: 8px"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* ── Gap réduit sur mobile pour les grids inline ── */
  div[style*="gap:48px"] { gap: 20px !important; }
  div[style*="gap:44px"] { gap: 18px !important; }
  div[style*="gap:40px"] { gap: 16px !important; }
  div[style*="gap:36px"] { gap: 14px !important; }
  div[style*="gap:32px"] { gap: 14px !important; }
  div[style*="gap:28px"] { gap: 12px !important; }
  div[style*="gap:24px"] { gap: 14px !important; }

  /* ── Mon-espace layout override ── */
  .evo-stat-card { min-height: 80px; }

  /* ── Club page sidebar ── */
  div[style*="1fr 340px"] { grid-template-columns: 1fr !important; }
  div[style*="1fr 360px"] { grid-template-columns: 1fr !important; }
  div[style*="1fr 320px"] { grid-template-columns: 1fr !important; }
  div[style*="1fr 280px"] { grid-template-columns: 1fr !important; }

  /* ── Contact page ── */
  div[style*="1fr 1.5fr"] { grid-template-columns: 1fr !important; }
  div[style*="1.5fr 1fr"] { grid-template-columns: 1fr !important; }
  div[style*="1.2fr 1fr"] { grid-template-columns: 1fr !important; }

  /* ── Dashboard grid ── */
  div[style*="2fr 1fr"] { grid-template-columns: 1fr !important; }
  div[style*="1fr 2fr"] { grid-template-columns: 1fr !important; }

  /* ── Padding override inline ── */
  div[style*="padding:48px"] { padding: 20px 14px !important; }
  div[style*="padding:80px"] { padding: 24px 14px !important; }
  div[style*="padding:60px"] { padding: 20px 14px !important; }
  div[style*="padding: 48px"] { padding: 20px 14px !important; }
  div[style*="padding: 80px"] { padding: 24px 14px !important; }

  /* ── Columns flex wrapping ── */
  div[style*="display:flex"][style*="gap:48px"] { gap: 16px !important; flex-wrap: wrap !important; }
  div[style*="display:flex"][style*="gap:40px"] { gap: 14px !important; flex-wrap: wrap !important; }
  div[style*="display:flex"][style*="gap:32px"] { gap: 12px !important; flex-wrap: wrap !important; }

  /* ── Section padding ── */
  section[style*="padding:60px"] { padding: 36px 0 !important; }
  section[style*="padding: 60px"] { padding: 36px 0 !important; }

  /* ── Font-size override inline ── */
  h1[style*="font-size:2"] { font-size: 1.5rem !important; }
  h1[style*="font-size: 2"] { font-size: 1.5rem !important; }
  [style*="font-size:2.4rem"] { font-size: 1.5rem !important; }
  [style*="font-size:2.2rem"] { font-size: 1.4rem !important; }
  [style*="font-size:2rem"]   { font-size: 1.3rem !important; }

  /* ── Max-width override ── */
  div[style*="max-width:740px"] { max-width: 100% !important; }
  div[style*="max-width:700px"] { max-width: 100% !important; }

}

/* ── Extra small phones (< 390px) ── */
@media (max-width: 390px) {
  div[style*="grid-template-columns"],
  section[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="repeat(2,1fr)"],
  div[style*="1fr 1fr"][style*="gap:8px"] {
    grid-template-columns: 1fr !important;
  }
}

/* ================================================================
   MATCH-DETAIL — Hero premium
   ================================================================ */
.detail-hero {
  --c1: #05E27A;
  --c2: #00a86b;
  position: relative;
  padding: 36px 0 32px;
  overflow: hidden;
  background: linear-gradient(160deg, #0a0f1e, #0d1118);
}
.detail-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, color-mix(in srgb, var(--c1) 10%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 80% 30%, color-mix(in srgb, var(--c2) 6%, transparent) 0%, transparent 50%);
  pointer-events: none;
}
.detail-hero-inner {
  display: flex; align-items: flex-start; gap: 28px;
  flex-wrap: wrap; position: relative;
}
.detail-hero-left { flex: 1; min-width: 260px; }
.detail-hero-title {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 900; color: #fff; line-height: 1.15;
  margin: 10px 0 12px;
}
.detail-hero-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  font-size: .82rem; color: rgba(255,255,255,.55);
}
.detail-hero-countdown {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 99px; padding: 5px 14px;
  font-size: .82rem; color: rgba(255,255,255,.8);
}
.detail-hero-right {
  display: flex; flex-direction: column; gap: 14px;
  min-width: 220px; flex-shrink: 0;
}
.detail-hero-fill-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 14px 16px;
}
.detail-hero-fill-label {
  display: flex; justify-content: space-between;
  font-size: .78rem; margin-bottom: 8px;
  color: rgba(255,255,255,.6);
}
.detail-hero-fill-bar {
  height: 8px; background: rgba(255,255,255,.1);
  border-radius: 99px; overflow: hidden;
}
.detail-hero-fill-progress {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  transition: width 1s cubic-bezier(.22,1,.36,1);
}
.detail-hero-org {
  display: flex; align-items: center; gap: 10px;
}
.detail-hero-org-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.2);
  flex-shrink: 0;
}
.detail-header-actions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;
}
@media (max-width: 640px) {
  .detail-hero { padding: 24px 0; }
  .detail-hero-right { width: 100%; }
}

/* ================================================================
   COMMENT ÇA MARCHE — Flow visuel v2
   ================================================================ */
.cmm-flow-v2 {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap; margin-bottom: 48px;
  padding: 28px; background: var(--surface);
  border: 1px solid var(--border-light); border-radius: 20px;
}
.cmm-flow-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.cmm-flow-bubble {
  width: 56px; height: 56px; border-radius: 16px;
  border: 1.5px solid; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  transition: transform .2s, box-shadow .2s;
}
.cmm-flow-bubble:hover { transform: scale(1.1) translateY(-3px); }
.cmm-flow-lbl {
  font-size: .68rem; font-weight: 700; color: var(--muted);
  text-align: center; max-width: 64px;
}
.cmm-flow-conn {
  font-size: 1.2rem; color: var(--border); padding: 0 4px;
  margin-bottom: 24px; /* aligns with bubbles */
}
@media (max-width: 600px) {
  .cmm-flow-v2 { gap: 8px; padding: 20px 14px; }
  .cmm-flow-bubble { width: 44px; height: 44px; border-radius: 12px; }
  .cmm-flow-bubble span:first-child { font-size: 1.1rem !important; }
  .cmm-flow-conn { padding: 0 2px; font-size: 1rem; }
}

/* ================================================================
   CLASSEMENT — Table v2
   ================================================================ */
.rank-table-v2 .rank-row {
  border-radius: 10px; margin-bottom: 4px;
  transition: transform .15s, box-shadow .15s;
}
.rank-table-v2 .rank-row:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

/* ================================================================
   MATCH-CREATE — Wizard progress bar
   ================================================================ */
.create-wizard-bar {
  padding: 20px 0 28px;
}
.create-wizard-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0; max-width: 480px; margin: 0 auto;
}
.create-wiz-step {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer;
}
.create-wiz-dot {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Kanit', sans-serif; font-weight: 800; font-size: .85rem;
  color: var(--muted); transition: all .2s;
}
.create-wiz-step.active .create-wiz-dot,
.create-wiz-step:first-child .create-wiz-dot {
  background: var(--primary); border-color: var(--primary); color: #000;
}
.create-wiz-step span {
  font-size: .68rem; font-weight: 600; color: var(--muted);
  white-space: nowrap;
}
.create-wiz-line {
  flex: 1; height: 2px; background: var(--border);
  max-width: 80px; margin-bottom: 22px;
}

/* ================================================================
   PARRAINAGE — Paliers & jauge
   ================================================================ */
.ref-paliers-wrap {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 28px;
}
.ref-paliers-track {
  display: flex; align-items: center; gap: 0;
}
.ref-palier {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; flex-shrink: 0;
}
.ref-palier-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--border-light); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.1rem; border: 2px solid var(--border);
  transition: all .2s;
}
.ref-palier.done .ref-palier-icon {
  background: rgba(5,226,122,.15); border-color: var(--primary);
}
.ref-palier.current .ref-palier-icon {
  background: rgba(245,158,11,.15); border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,.2);
  animation: crownFloat 2s ease infinite;
}
.ref-palier-nb {
  font-size: .65rem; font-weight: 800; color: var(--muted);
}
.ref-palier-line {
  flex: 1; height: 2px; background: var(--border); margin-bottom: 18px;
  transition: background .3s;
}
.ref-palier-line.done { background: var(--primary); }

/* ================================================================
   JOUEURS — Toggle vue grille/liste
   ================================================================ */
.joueurs-view-toggle {
  display: flex; border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
}
.jvt-btn {
  padding: 6px 12px; background: none; border: none;
  cursor: pointer; font-size: .95rem; color: var(--muted);
  transition: background .15s, color .15s;
}
.jvt-btn.active { background: var(--primary); color: #000; }
.jvt-btn:not(.active):hover { background: var(--surface-hover); }

/* Mode liste pour joueurs */
.joueurs-grid.list-view {
  grid-template-columns: 1fr !important;
}
.joueurs-grid.list-view .joueur-card {
  flex-direction: row;
  border-radius: 12px;
}
.joueurs-grid.list-view .joueur-card-top {
  width: 80px; flex-shrink: 0;
  padding: 14px 10px;
}
.joueurs-grid.list-view .joueur-avatar { width: 52px; height: 52px; }
.joueurs-grid.list-view .joueur-card-body { padding: 12px 16px; }
.joueurs-grid.list-view .joueur-name { font-size: 1rem; }

/* ================================================================
   NAVBAR — Recherche rapide
   ================================================================ */
.navbar-search-wrap { position: relative; }
.navbar-search-trigger {
  background: none; border: none; cursor: pointer;
  font-size: 1rem; padding: 6px; border-radius: 8px;
  color: var(--text); transition: background .15s;
  display: flex; align-items: center;
}
.navbar-search-trigger:hover { background: var(--surface-hover); }
.navbar-search-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px; min-width: 240px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 200;
}
.navbar-search-wrap.open .navbar-search-dropdown {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
#navbar-search-input {
  width: 100%; border: 1.5px solid var(--border); border-radius: 8px;
  padding: 9px 14px; font-size: .88rem; outline: none;
  background: var(--bg); color: var(--text); font-family: inherit;
}
#navbar-search-input:focus { border-color: var(--primary); }

/* ================================================================
   TARIFS — Urgency row + Timer + Guarantee
   ================================================================ */
.pricing-urgency-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  font-size: .82rem;
}
.pricing-urgency-live {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-muted, var(--muted));
}
.pricing-urgency-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16,185,129,.5);
  animation: urgentPulse 1.5s infinite;
  flex-shrink: 0;
}
.pricing-timer-wrap {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600;
  color: var(--text);
}
.pricing-timer {
  font-family: 'Kanit', monospace;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ef4444;
  background: #fee2e2;
  padding: 2px 10px;
  border-radius: 8px;
  letter-spacing: .04em;
}

/* Guarantee badge */
.pricing-guarantee {
  margin: 10px 0 4px;
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.2);
  border-radius: 10px;
  padding: 8px 12px;
  line-height: 1.5;
}
.pricing-guarantee strong { color: #059669; }

/* Social proof joined */
.pricing-social-joined {
  text-align: center;
  font-size: .83rem;
  color: var(--muted);
  margin-top: 12px;
  padding: 10px;
  background: rgba(239,68,68,.05);
  border-radius: 10px;
  border: 1px solid rgba(239,68,68,.12);
}
.pricing-social-joined strong { color: #ef4444; }

/* ================================================================
   PROFIL — Avatar drop zone
   ================================================================ */
.avatar-drop-zone {
  position: relative;
  display: flex;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  width: fit-content;
  margin: 0 auto 8px;
}
.avatar-drop-zone::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px dashed transparent;
  transition: border-color .2s;
  pointer-events: none;
}
.avatar-drop-zone:hover::after,
.avatar-drop-zone.dragover::after {
  border-color: var(--primary);
}
.avatar-drop-zone.dragover { background: rgba(5,226,122,.08); border-radius: 50%; }

.avatar-drop-hint {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(0,0,0,.45);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
  font-size: .7rem; font-weight: 700; color: #fff;
}
.avatar-drop-hint span:first-child { font-size: 1.4rem; }
.avatar-drop-zone:hover .avatar-drop-hint,
.avatar-drop-zone.dragover .avatar-drop-hint { opacity: 1; }

/* ================================================================
   MON-ÉVOLUTION — Graphique activité mensuelle
   ================================================================ */
.evo-graph-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
}
.evo-graph-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 120px;
}
.evo-graph-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}
.evo-graph-bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  background: var(--border-light);
  border-radius: 6px 6px 0 0;
  overflow: hidden;
}
.evo-graph-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  border-radius: 6px 6px 0 0;
  transition: height 1s cubic-bezier(.22,1,.36,1);
  position: relative;
  min-height: 3px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.evo-graph-val {
  font-size: .65rem;
  font-weight: 800;
  color: #000;
  margin-top: 4px;
  line-height: 1;
}
.evo-graph-label {
  font-size: .68rem;
  color: var(--muted);
  margin-top: 6px;
  text-align: center;
}

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-channel-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 18px 20px;
  text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.contact-channel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(5,226,122,.12);
  border-color: rgba(5,226,122,.3);
}
.contact-channel-icon { font-size: 2rem; flex-shrink: 0; }
.contact-channel-card strong { display: block; font-size: .88rem; font-weight: 700; color: var(--dark); }
.contact-channel-card span  { display: block; font-size: .78rem; color: var(--primary); font-weight: 600; }
.contact-channel-card small { display: block; font-size: .7rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 640px) {
  .contact-channel-card { flex-direction: column; text-align: center; gap: 8px; padding: 14px; }
}

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.contact-success {
  text-align: center;
  padding: 60px 24px;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
}
.contact-success-icon { font-size: 4rem; margin-bottom: 16px; display: block; }
.contact-success h2 { font-size: 1.6rem; margin-bottom: 10px; }
.contact-success p { color: var(--muted); }

/* ================================================================
   FAQ — Accordion animé premium
   ================================================================ */
.faq-category { margin-bottom: 40px; }
.faq-category-title {
  font-size: 1.05rem; font-weight: 800;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
  color: var(--dark);
}
.faq-category-title::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.faq-item {
  border-radius: 14px;
  border: 1px solid var(--border-light);
  background: var(--surface);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item:has(.faq-answer[style*="max-height"]:not([style*="max-height: 0"])) {
  border-color: rgba(5,226,122,.3);
  box-shadow: 0 4px 16px rgba(5,226,122,.06);
}
.faq-question {
  width: 100%; background: none; border: none;
  padding: 16px 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: .9rem; font-weight: 600; color: var(--text);
  text-align: left; font-family: inherit;
  transition: color .2s;
}
.faq-question:hover { color: var(--primary); }
.faq-question[aria-expanded="true"] { color: var(--primary); }
.faq-chevron {
  font-size: .75rem; flex-shrink: 0;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  color: var(--muted);
}
.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
  padding: 0 20px;
}
.faq-answer.open {
  max-height: 800px;
  padding: 0 20px 18px;
}
.faq-answer p {
  font-size: .875rem; color: var(--muted); line-height: 1.75;
  margin: 0; padding-top: 4px;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}

/* ================================================================
   COOKIE CONSENT BANNER — RGPD
   ================================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 0 16px 16px;
  transform: translateY(110%);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.cookie-banner--visible {
  transform: translateY(0);
}
/* Sur mobile avec bottom nav, décaler vers le haut */
@media (max-width: 768px) {
  .cookie-banner { padding-bottom: 76px; }
}
.cookie-banner-inner {
  max-width: 900px;
  margin: 0 auto;
  background: var(--dark, #09090D);
  border: 1px solid rgba(5,226,122,.25);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(5,226,122,.08);
  flex-wrap: wrap;
}
.cookie-banner-text {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 200px;
}
.cookie-banner-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.cookie-banner-text strong {
  display: block;
  color: #fff;
  font-size: .9rem;
  margin-bottom: 3px;
}
.cookie-banner-text p {
  color: rgba(255,255,255,.5);
  font-size: .78rem;
  line-height: 1.5;
  margin: 0;
}
.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-btn-refuse {
  background: transparent;
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.6);
}
.cookie-btn-refuse:hover {
  border-color: rgba(255,255,255,.3);
  color: #fff;
}
.cookie-more-link {
  font-size: .73rem;
  color: rgba(255,255,255,.35);
  text-decoration: underline;
  white-space: nowrap;
}
.cookie-more-link:hover { color: rgba(255,255,255,.6); }

[data-theme="light"] .cookie-banner-inner {
  background: #fff;
  border-color: rgba(5,226,122,.3);
  box-shadow: 0 8px 40px rgba(0,0,0,.15);
}
[data-theme="light"] .cookie-banner-text strong { color: var(--dark); }
[data-theme="light"] .cookie-banner-text p { color: var(--muted); }
[data-theme="light"] .cookie-btn-refuse {
  border-color: var(--border);
  color: var(--muted);
}
[data-theme="light"] .cookie-more-link { color: var(--muted); }

/* ── Print ── */
@media print {
  .site-header, .site-footer, .mobile-bottom-nav,
  .sticky-cta-mobile, .exit-popup-overlay, .pwa-install-banner { display: none !important; }
  body { color: #000; background: #fff; }
}

/* ================================================================
   URGENT MATCHES SECTION — index.php
   ================================================================ */
.urgent-matches-section {
  padding: 60px 0 48px;
  background: linear-gradient(160deg, #0a0f1e 0%, #0d1a12 60%, #071510 100%);
  position: relative;
  overflow: hidden;
}
.urgent-matches-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 50%, rgba(5,226,122,.08) 0%, transparent 60%),
              radial-gradient(ellipse 60% 40% at 80% 30%, rgba(5,226,122,.04) 0%, transparent 50%);
  pointer-events: none;
}
.urgent-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.urgent-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}
[data-theme="light"] .urgent-title { color: var(--text); }

/* Pulsing dot */
.urgent-pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(5,226,122,.6);
  animation: urgentPulse 1.6s infinite;
}
@keyframes urgentPulse {
  0%   { box-shadow: 0 0 0 0 rgba(5,226,122,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(5,226,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(5,226,122,0); }
}

/* Grid */
.urgent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Card */
.urgent-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
}
.urgent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(5,226,122,.15);
  border-color: rgba(5,226,122,.4);
}
[data-theme="light"] .urgent-card {
  background: #fff;
  border-color: var(--border);
}
[data-theme="light"] .urgent-card:hover {
  box-shadow: 0 12px 32px rgba(5,226,122,.18);
  border-color: var(--primary);
}

.urgent-card-bar {
  height: 4px;
  width: 100%;
  flex-shrink: 0;
}
.urgent-card-bar.badge-debutant   { background: #22c55e; }
.urgent-card-bar.badge-intermediaire { background: #3b82f6; }
.urgent-card-bar.badge-confirme   { background: #8b5cf6; }
.urgent-card-bar.badge-expert     { background: #ef4444; }
.urgent-card-bar.badge-open       { background: linear-gradient(90deg,#05e27a,#3b82f6); }

.urgent-card-inner {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.urgent-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.urgent-countdown {
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(5,226,122,.15);
  color: var(--primary);
  border: 1px solid rgba(5,226,122,.3);
  white-space: nowrap;
}
.urgent-countdown.today {
  background: rgba(239,68,68,.15);
  color: #ef4444;
  border-color: rgba(239,68,68,.3);
  animation: urgentPulse 1.4s infinite;
}
.urgent-spots {
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.15);
  white-space: nowrap;
}
.urgent-spots.last {
  background: rgba(239,68,68,.15);
  color: #ef4444;
  border-color: rgba(239,68,68,.3);
}
[data-theme="light"] .urgent-spots {
  background: #f3f4f6;
  color: var(--text-muted);
  border-color: var(--border);
}
[data-theme="light"] .urgent-spots.last {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

.urgent-card-title {
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-theme="light"] .urgent-card-title { color: var(--text); }

.urgent-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  color: rgba(255,255,255,.55);
  flex-wrap: wrap;
}
[data-theme="light"] .urgent-card-meta { color: var(--text-muted); }

.urgent-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.07);
}
[data-theme="light"] .urgent-card-footer {
  color: var(--text-muted);
  border-top-color: var(--border);
}

.urgent-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(5,226,122,.4);
  flex-shrink: 0;
}

/* ================================================================
   WHY ICON V2 — colored circle icon
   ================================================================ */
.why-icon-v2 {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1.5px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 14px;
  flex-shrink: 0;
  transition: transform .2s;
}
.why-item:hover .why-icon-v2 {
  transform: scale(1.1) rotate(-4deg);
}

/* ================================================================
   BLOG GRID — 4 cols for 8 articles
   ================================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Time badge on blog card visual */
.blog-card-time-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(0,0,0,.5);
  color: rgba(255,255,255,.9);
  backdrop-filter: blur(4px);
  pointer-events: none;
}

/* ================================================================
   RESPONSIVE — urgent + blog + why v2
   ================================================================ */
@media (max-width: 1100px) {
  .urgent-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid   { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .urgent-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .urgent-matches-section { padding: 40px 0 32px; }
  .urgent-title { font-size: 1.35rem; }
  .urgent-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .urgent-header { align-items: center; }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .why-icon-v2 {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .urgent-grid { grid-template-columns: 1fr; }
  .blog-grid   { grid-template-columns: 1fr; }
  .urgent-card-title { font-size: .85rem; }
}

/* ================================================================
   PAGE TRANSITIONS — fade-in on load
   ================================================================ */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.site-main {
  animation: pageFadeIn .35s ease both;
}

/* ================================================================
   LAZY LOADING — blur-up technique
   ================================================================ */
img[loading="lazy"] {
  transition: filter .3s;
}
img[loading="lazy"]:not([src]) {
  filter: blur(8px);
}

/* ================================================================
   404 PAGE — animated
   ================================================================ */
.page-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 60px 24px 100px;
}
.page-404-ball {
  font-size: 5rem;
  display: block;
  animation: ball404 1.2s cubic-bezier(.36,.07,.19,.97) infinite;
  margin-bottom: 8px;
}
@keyframes ball404 {
  0%,100% { transform: translateY(0) rotate(0deg); }
  40%     { transform: translateY(-36px) rotate(-15deg); }
  60%     { transform: translateY(-24px) rotate(10deg); }
  80%     { transform: translateY(-10px) rotate(-5deg); }
}
.page-404-shadow {
  width: 48px;
  height: 8px;
  background: rgba(0,0,0,.15);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: shadowPulse 1.2s ease infinite;
}
@keyframes shadowPulse {
  0%,100% { transform: scaleX(1); opacity: .3; }
  40%     { transform: scaleX(.5); opacity: .1; }
}
.page-404-num {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), #00a86b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.page-404-title {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 14px;
}
.page-404-text {
  color: var(--muted);
  max-width: 400px;
  line-height: 1.7;
  margin-bottom: 32px;
  font-size: .95rem;
}
.page-404-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.page-404-quick {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.page-404-quick a {
  font-size: .8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.page-404-quick a:hover { color: var(--primary); }

/* ================================================================
   EMAIL TEMPLATE PREVIEW in admin (if needed)
   ================================================================ */
.email-preview-wrapper {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f0f4f8;
}

/* ================================================================
   DASHBOARD — Stat progress bars
   ================================================================ */
.dash-stat-bar {
  height: 4px;
  border-radius: 99px;
  background: var(--border-light);
  margin-top: 6px;
  overflow: hidden;
}
.dash-stat-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transition: width 1s cubic-bezier(.22,1,.36,1);
}

/* ================================================================
   PLAYER PROFILE — Hero redesign
   ================================================================ */
.player-hero {
  background: linear-gradient(160deg, #0a0f1e, #0d1a12);
  padding: 48px 0 0;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}
.player-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 30% 50%, rgba(5,226,122,.06), transparent);
  pointer-events: none;
}
.player-hero-inner {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  flex-wrap: wrap;
  position: relative;
}
.player-hero-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.player-hero-avatar {
  width: 110px;
  height: 110px;
  border-radius: 24px;
  object-fit: cover;
  border: 3px solid rgba(5,226,122,.4);
  box-shadow: 0 8px 32px rgba(5,226,122,.2);
}
.player-hero-cert {
  position: absolute;
  bottom: -10px; right: -10px;
  background: var(--dark);
  border: 2px solid rgba(5,226,122,.3);
  border-radius: 10px;
  padding: 3px 8px;
  font-size: .65rem;
  font-weight: 700;
}
.player-hero-info { flex: 1; min-width: 200px; padding-bottom: 24px; }
.player-hero-name {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
}
.player-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 14px;
}
.player-hero-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.player-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.player-hero-stat strong {
  font-family: 'Kanit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.player-hero-stat span {
  font-size: .7rem;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.player-hero-score-pill {
  position: absolute;
  top: 16px; right: 0;
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: .82rem;
  font-weight: 700;
  color: #F59E0B;
}

@media (max-width: 600px) {
  .player-hero { padding: 32px 0 0; }
  .player-hero-avatar { width: 80px; height: 80px; border-radius: 18px; }
  .player-hero-score-pill { display: none; }
}

/* ============================================================
   TERRAINS PUBLIC — Hero + Search + Cards
   ============================================================ */
.terrains-hero {
  background: linear-gradient(135deg, #07110D 0%, #0A1F14 50%, #051A1F 100%);
  padding: 64px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.terrains-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 80%, rgba(5,226,122,.12) 0%, transparent 70%);
  pointer-events: none;
}
.terrains-hero-badge {
  display: inline-block;
  background: rgba(5,226,122,.15);
  border: 1px solid rgba(5,226,122,.3);
  color: var(--primary);
  padding: 5px 16px;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.terrains-hero h1 {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.1;
}
.terrains-hero > .container > p {
  color: rgba(255,255,255,.55);
  font-size: .95rem;
  margin: 0 0 32px;
}

/* Search bar */
.terrains-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 10px;
  max-width: 860px;
  margin: 0 auto 24px;
  backdrop-filter: blur(8px);
}
.tsb-field {
  display: flex;
  align-items: center;
  flex: 2;
  min-width: 200px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  padding: 0 12px;
  gap: 8px;
}
.tsb-field-sm { flex: 1.5; min-width: 160px; }
.tsb-field-xs { flex: 1; min-width: 130px; }
.tsb-icon { font-size: .9rem; opacity: .6; flex-shrink: 0; }
.tsb-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: .85rem;
  padding: 10px 0;
  width: 100%;
}
.tsb-input::placeholder { color: rgba(255,255,255,.35); }
.tsb-input option { background: #1a1a2e; color: #fff; }
.tsb-btn {
  flex-shrink: 0;
  white-space: nowrap;
}
.tsb-btn-reset {
  flex-shrink: 0;
  padding: 10px 14px;
}

/* Hero stats */
.terrains-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.ths-item {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.ths-item strong {
  font-family: 'Kanit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}
.ths-item span {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
}
.ths-sep {
  color: rgba(255,255,255,.2);
  font-size: 1.2rem;
}

/* Region pills */
.terrains-region-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.trp-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s, background .2s, color .2s;
  white-space: nowrap;
}
.trp-pill sup {
  font-size: .65rem;
  color: var(--muted);
  font-weight: 400;
}
.trp-pill:hover, .trp-pill.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--dark);
}
.trp-pill.active sup { color: var(--dark); opacity: .7; }

/* Results bar */
.terrains-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: .85rem;
  color: var(--muted);
}
.terrains-results-bar strong { color: var(--text); }

/* Region header */
.terrains-region-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0 16px;
}
.terrains-region-header h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
  white-space: nowrap;
  margin: 0;
}
.terrains-region-header h2 span {
  font-weight: 400;
  color: var(--muted);
  font-size: .8rem;
  margin-left: 6px;
}
.trh-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Cards grid */
.terrains-pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.tpg-card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.tpg-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(5,226,122,.1);
  transform: translateY(-2px);
}
.tpg-photo {
  position: relative;
  height: 140px;
  overflow: hidden;
}
.tpg-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.tpg-photo-fallback {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #0F2A1D, #0D2338);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.tpg-badges {
  position: absolute;
  top: 8px; left: 8px;
  display: flex;
  gap: 6px;
}
.tpg-badge {
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  backdrop-filter: blur(8px);
}
.tpg-badge-indoor {
  background: rgba(59,130,246,.85);
  color: #fff;
}
.tpg-badge-outdoor {
  background: rgba(245,158,11,.85);
  color: #fff;
}
.tpg-body {
  padding: 14px 16px 16px;
}
.tpg-name {
  font-weight: 800;
  font-size: .92rem;
  color: var(--dark);
  margin-bottom: 5px;
  line-height: 1.3;
}
.tpg-ville {
  font-size: .8rem;
  color: var(--text);
  margin-bottom: 3px;
}
.tpg-adresse {
  font-size: .72rem;
  color: var(--muted);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tpg-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.tpg-courts, .tpg-surface {
  font-size: .72rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 3px 10px;
  color: var(--text);
  font-weight: 600;
}
.tpg-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tpg-btn {
  font-size: .72rem;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 8px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}
.tpg-btn-primary {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}
.tpg-btn-primary:hover { opacity: .85; }
.tpg-btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.tpg-btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.tpg-btn-accent {
  background: var(--primary);
  color: var(--dark);
  border-color: var(--primary);
}
.tpg-btn-accent:hover { opacity: .85; }

/* Top villes */
.terrains-top-villes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.ttv-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: 8px 16px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: all .2s;
}
.ttv-pill:hover {
  border-color: var(--primary);
  background: rgba(5,226,122,.06);
  color: var(--dark);
}
.ttv-count {
  background: var(--primary);
  color: var(--dark);
  font-size: .65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  min-width: 20px;
  text-align: center;
}

/* CTA block */
.terrains-cta-block {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, #07110D, #0A1F14);
  border: 1px solid rgba(5,226,122,.2);
  border-radius: 20px;
  padding: 28px 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.tcta-icon {
  font-size: 2.4rem;
  flex-shrink: 0;
}
.terrains-cta-block h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
}
.terrains-cta-block p {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  margin: 0;
}
.terrains-cta-block > a {
  margin-left: auto;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .terrains-hero { padding: 40px 0 32px; }
  .terrains-search-bar { flex-direction: column; }
  .tsb-field, .tsb-field-sm, .tsb-field-xs { min-width: 100%; flex: none; width: 100%; }
  .tsb-btn { width: 100%; justify-content: center; }
  .terrains-pub-grid { grid-template-columns: 1fr 1fr; }
  .terrains-cta-block { flex-direction: column; text-align: center; }
  .terrains-cta-block > a { margin: 0 auto; }
}
@media (max-width: 480px) {
  .terrains-pub-grid { grid-template-columns: 1fr; }
  .terrains-region-pills { gap: 5px; }
  .trp-pill { font-size: .72rem; padding: 5px 10px; }
}

/* ============================================================
   MATCHS PUBLIC — Hero + Filter + Cards list
   ============================================================ */
.matchs-hero {
  background: linear-gradient(135deg, #07110D 0%, #0A1F14 60%, #070D14 100%);
  padding: 56px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.matchs-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 45% at 50% 90%, rgba(5,226,122,.1) 0%, transparent 70%);
  pointer-events: none;
}
.matchs-hero-badge {
  display: inline-block;
  background: rgba(5,226,122,.15);
  border: 1px solid rgba(5,226,122,.3);
  color: var(--primary);
  padding: 5px 16px;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.matchs-hero h1 {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.1;
}
.matchs-hero > .container > p {
  color: rgba(255,255,255,.5);
  font-size: .9rem;
  margin: 0 0 28px;
}

/* Filter bar */
.matchs-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 10px;
  max-width: 900px;
  margin: 0 auto 20px;
  backdrop-filter: blur(8px);
}
.mfb-field {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 130px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  padding: 0 10px;
  gap: 6px;
}
.mfb-field > span { font-size: .85rem; opacity: .6; flex-shrink: 0; }
.mfb-field-date { min-width: 140px; }
.mfb-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: .82rem;
  padding: 10px 0;
  width: 100%;
}
.mfb-input::placeholder { color: rgba(255,255,255,.35); }
.mfb-input option { background: #1a1a2e; color: #fff; }
.mfb-input::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.4); }

/* Hero stats */
.matchs-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(255,255,255,.45);
  font-size: .82rem;
  margin-top: 16px;
}
.matchs-hero-stats strong { color: var(--primary); }
.mhs-dot { color: rgba(255,255,255,.2); }

/* Results bar */
.matchs-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: .85rem;
  color: var(--muted);
}
.matchs-results-bar strong { color: var(--text); }

/* Match card list */
.matchs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.matchs-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.matchs-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(5,226,122,.1);
  transform: translateX(2px);
}

/* Date bloc */
.mc-date {
  flex-shrink: 0;
  width: 68px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.mc-date-today {
  background: rgba(5,226,122,.1);
  border-color: rgba(5,226,122,.3);
}
.mc-date-day {
  font-size: .72rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.mc-date-full {
  font-size: .65rem;
  color: var(--muted);
}
.mc-date-time {
  font-size: .78rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 2px;
}

/* Body */
.mc-body { flex: 1; min-width: 0; }
.mc-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.mc-titre {
  font-weight: 800;
  font-size: .9rem;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-badge {
  flex-shrink: 0;
  font-size: .62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
}
.mc-badge-full { background: rgba(239,68,68,.1); color: #ef4444; }
.mc-badge-last { background: rgba(245,158,11,.12); color: #f59e0b; }

.mc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: .73rem;
  color: var(--muted);
  margin-bottom: 8px;
}

/* Fill bar */
.mc-fill-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mc-fill-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  max-width: 160px;
}
.mc-fill-inner {
  height: 100%;
  background: var(--primary);
  border-radius: 99px;
  transition: width .4s ease;
}
.mc-fill-high { background: #f59e0b; }
.mc-fill-full { background: #ef4444; }
.mc-fill-label {
  font-size: .7rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Organisateur */
.mc-org {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mc-org-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.mc-org-name {
  font-size: .72rem;
  font-weight: 700;
  color: var(--dark);
}
.mc-org-cert { font-size: .75rem; }

/* Action */
.mc-action { flex-shrink: 0; }
.mc-join-btn {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 9px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text);
  white-space: nowrap;
  transition: all .2s;
}
.matchs-card:hover .mc-join-btn {
  border-color: var(--primary);
  color: var(--primary);
}
.mc-join-btn-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--dark);
}
.matchs-card:hover .mc-join-btn-active { opacity: .85; }
.mc-join-btn-full {
  background: rgba(239,68,68,.08);
  border-color: rgba(239,68,68,.2);
  color: #ef4444;
}

/* CTA créer */
.matchs-cta-create {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #07110D, #0A1F14);
  border: 1px solid rgba(5,226,122,.2);
  border-radius: 20px;
  padding: 24px 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.matchs-cta-create h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
}
.matchs-cta-create p {
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .matchs-hero { padding: 36px 0 28px; }
  .matchs-filter-bar { flex-direction: column; }
  .mfb-field { min-width: 100%; width: 100%; }
  .matchs-card { flex-wrap: wrap; gap: 10px; }
  .mc-date { width: 60px; }
  .mc-org { display: none; }
  .mc-action { margin-left: auto; }
  .matchs-cta-create { flex-direction: column; }
  .matchs-cta-create > a { width: 100%; text-align: center; }
}
@media (max-width: 480px) {
  .mc-meta { gap: 5px; }
  .mc-fill-bar { max-width: 100px; }
}

/* ============================================================
   DÉFIS — Centre des défis
   ============================================================ */
.defis-stats-row {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.dsr-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px 24px;
  text-align: center;
  flex: 1;
  min-width: 100px;
}
.dsr-item strong {
  display: block;
  font-family: 'Kanit', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.dsr-item span {
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 3px;
  display: block;
}

/* Tabs défis */
.defis-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.defis-tabs::-webkit-scrollbar { display: none; }
.defis-tab {
  padding: 12px 18px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.defis-tab:hover { color: var(--dark); }
.defis-tab.active {
  color: var(--dark);
  border-bottom-color: var(--primary);
}
.defis-tab-badge {
  background: #ef4444;
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 99px;
  min-width: 18px;
  text-align: center;
}
.defis-tab-badge-blue { background: #3b82f6; }

/* Panels */
.defis-panel { display: none; }
.defis-panel.active { display: block; }

/* Card défi */
.defis-list { display: flex; flex-direction: column; gap: 12px; }
.defi-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.defi-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(5,226,122,.08); }
.defi-card-received { border-left: 4px solid #8b5cf6; }
.defi-card-sent     { border-left: 4px solid #3b82f6; }
.defi-card-history  { opacity: .85; }
.defi-avatar-wrap { position: relative; display: inline-block; }
.defi-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.defi-cert {
  position: absolute;
  bottom: -2px; right: -2px;
  font-size: .75rem;
  background: var(--white);
  border-radius: 50%;
  padding: 1px;
}
.defi-card-body { flex: 1; min-width: 0; }
.defi-challenger-name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 5px;
}
.defi-challenger-name a { color: var(--primary); }
.defi-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: .72rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.defi-message {
  font-size: .78rem;
  color: var(--muted);
  font-style: italic;
  background: var(--bg);
  border-radius: 8px;
  padding: 6px 10px;
  margin-top: 5px;
}
.defi-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

/* Panel envoyer un défi */
.defis-send-wrap { max-width: 600px; margin: 0 auto; }
.defis-send-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}
.defis-send-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 8px;
}
.defi-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  z-index: 50;
  display: none;
  overflow: hidden;
  margin-top: 4px;
}
.dsdr-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .15s;
  font-size: .83rem;
}
.dsdr-item:hover { background: var(--bg); }
.defi-target-preview { margin-bottom: 14px; }
.defi-target-selected {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(5,226,122,.06);
  border: 1.5px solid rgba(5,226,122,.3);
  border-radius: 12px;
  padding: 10px 14px;
}
.defis-suggestions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.defi-suggestion-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s;
}
.defi-suggestion-card:hover {
  border-color: var(--primary);
  background: rgba(5,226,122,.04);
}
.defi-sug-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

/* ============================================================
   TERRAIN PAGE INDIVIDUELLE
   ============================================================ */
.terrain-hero {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.terrain-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.terrain-hero-bg-fallback {
  background: linear-gradient(135deg, #07110D, #0A1F14, #0D1A2E);
}
.terrain-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,17,13,.95) 0%, rgba(7,17,13,.5) 60%, rgba(7,17,13,.2) 100%);
}
.terrain-hero-content {
  position: relative;
  z-index: 2;
  padding: 32px 24px;
  width: 100%;
}
.terrain-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}
.terrain-breadcrumb a { color: rgba(255,255,255,.55); text-decoration: none; }
.terrain-breadcrumb a:hover { color: var(--primary); }
.terrain-hero-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.terrain-hero-badges { display: flex; gap: 6px; margin-bottom: 10px; }
.terrain-hero-title {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.1;
}
.terrain-hero-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}
.terrain-hero-stats {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}
.ths-stat { text-align: center; }
.ths-stat strong {
  display: block;
  font-family: 'Kanit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.ths-stat span { font-size: .7rem; color: rgba(255,255,255,.4); }

/* Layout */
.terrain-detail-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}
.terrain-info-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 24px;
}
.terrain-info-card h2 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 18px;
  color: var(--dark);
}
.tic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
.tic-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.tic-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.tic-label { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.tic-value { font-size: .85rem; font-weight: 700; color: var(--dark); margin-top: 2px; }
.tic-value a { color: var(--primary); text-decoration: none; }
.tic-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Aside */
.terrain-aside-cta {
  background: linear-gradient(135deg, #07110D, #0A1F14);
  border: 1px solid rgba(5,226,122,.2);
  border-radius: 18px;
  padding: 22px;
}
.terrain-aside-cta h3 {
  font-size: .95rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
}
.terrain-aside-cta p {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  margin: 0 0 14px;
}
.terrain-aside-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.terrain-aside-card h4 {
  font-size: .82rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 12px;
}
.terrain-near-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  transition: color .2s;
}
.terrain-near-item:last-child { border-bottom: none; }
.terrain-near-item:hover div > div:first-child { color: var(--primary); }
.terrain-near-icon { font-size: 1.1rem; flex-shrink: 0; }

@media (max-width: 900px) {
  .terrain-detail-grid { grid-template-columns: 1fr; }
  .terrain-hero { min-height: 200px; }
}
@media (max-width: 480px) {
  .tic-grid { grid-template-columns: 1fr; }
  .defis-stats-row { gap: 8px; }
  .dsr-item { padding: 12px; }
}

/* ============================================================
   HOMEPAGE — Section matchs live
   ============================================================ */
.home-live-section {
  padding: 72px 0;
  background: var(--white);
  border-top: 1px solid var(--border-light);
}
.home-live-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.home-live-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  font-size: .85rem;
  color: var(--muted);
}
.hls-item { display: flex; align-items: baseline; gap: 5px; }
.hls-item strong { font-family: 'Kanit', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.hls-sep { color: var(--border); }
.home-live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.home-live-card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: 16px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.home-live-card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(5,226,122,.1);
  transform: translateY(-2px);
}
.hlc-header { display: flex; align-items: center; gap: 8px; }
.hlc-date {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  text-align: center;
  flex-shrink: 0;
}
.hlc-date-today { background: rgba(5,226,122,.1); border-color: rgba(5,226,122,.3); }
.hlc-date span { display: block; font-size: .7rem; font-weight: 700; color: var(--primary); }
.hlc-date span:last-child { font-size: .75rem; font-weight: 800; color: var(--dark); margin-top: 1px; }
.hlc-title {
  font-weight: 800;
  font-size: .9rem;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hlc-ville { font-size: .75rem; color: var(--muted); }
.hlc-fill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
  color: var(--muted);
}
.hlc-fill-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.hlc-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .75rem;
  color: var(--muted);
}
.hlc-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.hlc-spots {
  margin-left: auto;
  font-size: .68rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(5,226,122,.1);
  padding: 2px 7px;
  border-radius: 99px;
}
.hlc-full {
  margin-left: auto;
  font-size: .68rem;
  font-weight: 700;
  color: #ef4444;
  background: rgba(239,68,68,.08);
  padding: 2px 7px;
  border-radius: 99px;
}
.home-live-empty {
  text-align: center;
  padding: 40px;
  color: var(--muted);
}

/* ============================================================
   PLAYER — Graphique activité + historique
   ============================================================ */
.player-section-block {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: 16px;
  padding: 20px 22px;
}
.player-section-title {
  font-size: .95rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 16px;
}
.player-prog-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
}
.ppc-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  gap: 3px;
}
.ppc-val {
  font-size: .65rem;
  font-weight: 700;
  color: var(--primary);
  height: 14px;
  display: flex;
  align-items: center;
}
.ppc-bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
}
.ppc-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: var(--border);
  min-height: 3px;
  transition: height .4s ease;
}
.ppc-bar-active { background: linear-gradient(180deg, var(--primary), #00a86b); }
.ppc-label {
  font-size: .62rem;
  color: var(--muted);
  text-transform: capitalize;
}

.player-history-list { display: flex; flex-direction: column; gap: 6px; }
.player-history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s;
}
.player-history-item:hover { border-color: var(--primary); }
.phi-date {
  flex-shrink: 0;
  text-align: center;
  min-width: 38px;
}
.phi-date span { display: block; font-size: .78rem; font-weight: 700; color: var(--dark); }
.phi-year { font-size: .62rem !important; color: var(--muted) !important; font-weight: 400 !important; }
.phi-body { flex: 1; min-width: 0; }
.phi-title { font-size: .82rem; font-weight: 700; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phi-meta { font-size: .7rem; color: var(--muted); margin-top: 2px; }

/* ============================================================
   NOTIFICATIONS — Onglets
   ============================================================ */
.notif-urgent-defis {
  background: linear-gradient(135deg, #2d0a5c, #1a0a3c);
  border: 1px solid rgba(139,92,246,.3);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.nud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
  font-weight: 700;
  color: #c4b5fd;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.nud-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(139,92,246,.2);
}
.nud-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.nud-info { flex: 1; font-size: .82rem; color: rgba(255,255,255,.8); }
.nud-info strong { color: #fff; }
.nud-actions { display: flex; gap: 6px; flex-shrink: 0; }

.notif-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
}
.notif-tabs::-webkit-scrollbar { display: none; }
.notif-tab-btn {
  padding: 10px 16px;
  font-size: .83rem;
  font-weight: 600;
  color: var(--muted);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.notif-tab-btn:hover { color: var(--dark); }
.notif-tab-btn.active { color: var(--dark); border-bottom-color: var(--primary); }
.ntb-count {
  background: #ef4444;
  color: #fff;
  font-size: .6rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 99px;
}
.ntb-count-purple { background: #8b5cf6; }
.ntb-count-green  { background: #10b981; }
.notif-panel { display: none; }
.notif-panel.active { display: block; }

/* ============================================================
   REGISTER — Stepper premium + force mdp
   ============================================================ */
.reg-stepper {
  margin-bottom: 24px;
}
.reg-stepper-bar {
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  margin-bottom: 14px;
  overflow: hidden;
}
.reg-stepper-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #00d4b1);
  border-radius: 99px;
  transition: width .4s ease;
}
.reg-stepper-steps {
  display: flex;
  justify-content: space-between;
}
.reg-stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 1;
}
.rss-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
}
.reg-stepper-step.active .rss-circle {
  background: var(--primary);
  color: var(--dark);
  box-shadow: 0 0 0 4px rgba(5,226,122,.2);
}
.reg-stepper-step.done .rss-circle {
  background: #10b981;
  color: #fff;
}
.reg-stepper-step.done .rss-circle::after { content: '✓'; }
.rss-label {
  font-size: .68rem;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}
.reg-stepper-step.active .rss-label { color: var(--dark); }

/* Force mot de passe v2 */
.pw-strength-v2 {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.psv-bars {
  display: flex;
  gap: 3px;
  flex: 1;
}
.psv-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  transition: background .3s;
}
.psv-label {
  font-size: .7rem;
  font-weight: 700;
  white-space: nowrap;
  min-width: 60px;
}

@media (max-width: 600px) {
  .home-live-grid { grid-template-columns: 1fr; }
  .terrain-hero-stats { display: none; }
  .defi-card { flex-wrap: wrap; }
  .defi-card-actions { flex-direction: row; margin-left: auto; }
}

/* ============================================================
   DASHBOARD — Prochain match hero widget
   ============================================================ */
.dash-next-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.dash-next-match::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--primary);
  border-radius: 99px 0 0 99px;
}
.dash-next-today {
  background: linear-gradient(135deg, rgba(5,226,122,.06), rgba(5,226,122,.02));
  border-color: rgba(5,226,122,.3);
  box-shadow: 0 0 0 4px rgba(5,226,122,.06);
}
.dash-next-today::before { background: linear-gradient(180deg,#05e27a,#00d4b1); }
.dnm-left { flex: 1; min-width: 0; }
.dnm-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(5,226,122,.12);
  border: 1px solid rgba(5,226,122,.25);
  border-radius: 99px;
  padding: 3px 10px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.dash-next-today .dnm-badge {
  animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 0 0 rgba(5,226,122,.3); }
  50%      { box-shadow: 0 0 0 6px rgba(5,226,122,0); }
}
.dnm-title {
  font-family: 'Kanit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dnm-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 5px;
}
.dnm-org { font-size: .75rem; color: var(--muted); }
.dnm-org strong { color: var(--text); }
.dnm-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.dnm-countdown {
  text-align: center;
  background: var(--dark);
  border-radius: 14px;
  padding: 10px 20px;
}
.dnm-h {
  display: block;
  font-family: 'Kanit', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.dnm-unit {
  display: block;
  font-size: .62rem;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-top: 2px;
}
.dash-no-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg);
  border: 1.5px dashed var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .dash-next-match { flex-direction: column; align-items: flex-start; }
  .dnm-right { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
  .dnm-countdown { padding: 8px 14px; }
}

/* ============================================================
   CLASSEMENT — Position personnelle highlight
   ============================================================ */
.rank-my-position {
  background: linear-gradient(135deg, #07110D, #0A1F14);
  border: 1.5px solid rgba(5,226,122,.3);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.rmp-rank {
  font-family: 'Kanit', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  flex-shrink: 0;
}
.rmp-rank span { font-size: .75rem; font-weight: 400; color: rgba(255,255,255,.4); vertical-align: super; }
.rmp-info { flex: 1; }
.rmp-name { font-weight: 700; color: #fff; font-size: .9rem; }
.rmp-sub  { font-size: .72rem; color: rgba(255,255,255,.45); margin-top: 2px; }
.rmp-pct  {
  font-size: .72rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(5,226,122,.12);
  padding: 2px 8px;
  border-radius: 99px;
}

/* ============================================================
   SHARE BUTTON
   ============================================================ */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: all .2s;
}
.share-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.share-btn.copied {
  border-color: #10b981;
  color: #10b981;
  background: rgba(16,185,129,.08);
}

/* ============================================================
   PWA INSTALL BANNER
   ============================================================ */
.pwa-install-banner {
  position: fixed;
  bottom: 80px;
  left: 12px;
  right: 12px;
  background: var(--dark);
  border: 1px solid rgba(5,226,122,.25);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 999;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  animation: slideUp .3s ease;
  max-width: 420px;
  margin: 0 auto;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.pwa-install-banner .pwa-icon { font-size: 1.8rem; flex-shrink: 0; }
.pwa-install-banner .pwa-text { flex: 1; }
.pwa-install-banner .pwa-title { font-weight: 800; color: #fff; font-size: .85rem; }
.pwa-install-banner .pwa-sub   { font-size: .72rem; color: rgba(255,255,255,.45); margin-top: 2px; }
.pwa-install-btn {
  background: var(--primary);
  color: var(--dark);
  border: none;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: .75rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.pwa-close-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.3);
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  flex-shrink: 0;
}
@media (min-width: 768px) { .pwa-install-banner { display: none !important; } }

/* ============================================================
   MOBILE AMÉLIORATIONS — Nouvelles pages & composants
   ============================================================ */

/* ── Dashboard "Prochain match" ── */
@media (max-width: 768px) {
  .dash-next-match {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
  }
  .dnm-right {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .dnm-countdown { padding: 8px 16px; }
  .dnm-title { font-size: 1rem; }
}

/* ── matchs.php filtres ── */
@media (max-width: 600px) {
  .matchs-filter-bar { padding: 8px; gap: 6px; }
  .mfb-field { min-width: 100%; }
  .matchs-card { padding: 10px 12px; gap: 10px; }
  .mc-date { width: 54px; }
  .mc-date-day { font-size: .65rem; }
  .mc-date-time { font-size: .72rem; }
  .mc-titre { font-size: .82rem; }
}

/* ── terrains.php / terrain.php ── */
@media (max-width: 600px) {
  .terrains-hero { padding: 32px 0 24px; }
  .terrains-search-bar { padding: 8px; }
  .terrains-pub-grid { grid-template-columns: 1fr; }
  .tpg-photo { height: 120px; }
  .terrain-detail-grid { grid-template-columns: 1fr; }
  .terrain-hero { min-height: 180px; }
  .terrain-hero-main { flex-direction: column; gap: 12px; }
  .terrain-hero-title { font-size: 1.3rem; }
  .tic-grid { grid-template-columns: 1fr; }
  .terrain-aside-cta, .terrain-aside-card { margin-top: 0; }
}

/* ── Défis ── */
@media (max-width: 600px) {
  .defis-stats-row { gap: 8px; }
  .dsr-item { padding: 10px 8px; }
  .dsr-item strong { font-size: 1.3rem; }
  .defis-tabs { gap: 0; }
  .defis-tab { padding: 10px 12px; font-size: .78rem; }
  .defi-card { flex-wrap: wrap; gap: 10px; padding: 12px; }
  .defi-card-actions { flex-direction: row; margin-left: auto; flex-wrap: wrap; gap: 4px; }
  .defis-send-card { padding: 16px; }
  .defis-suggestions { gap: 6px; }
}

/* ── Notifications ── */
@media (max-width: 600px) {
  .notif-tabs { gap: 0; }
  .notif-tab-btn { padding: 8px 10px; font-size: .72rem; }
  .notif-urgent-defis { padding: 12px; }
  .nud-actions { gap: 4px; }
}

/* ── Classement position personnelle ── */
@media (max-width: 600px) {
  .rank-my-position { flex-wrap: wrap; gap: 10px; padding: 12px; }
  .rmp-rank { font-size: 1.6rem; }
  .rmp-pct  { order: -1; }
  .rank-my-position > a { width: 100%; text-align: center; }
}

/* ── Homepage live matchs ── */
@media (max-width: 600px) {
  .home-live-section { padding: 40px 0; }
  .home-live-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .home-live-grid { grid-template-columns: 1fr; gap: 10px; }
  .home-live-stats { font-size: .78rem; gap: 8px; }
  .hls-sep { display: none; }
}

/* ── Player historique ── */
@media (max-width: 600px) {
  .player-section-block { padding: 14px; }
  .player-prog-chart { height: 60px; }
  .player-history-item { gap: 8px; padding: 8px; }
  .phi-date span { font-size: .7rem; }
  .phi-title { font-size: .78rem; }
}

/* ── Register stepper ── */
@media (max-width: 480px) {
  .reg-stepper-steps { gap: 0; }
  .rss-circle { width: 24px; height: 24px; font-size: .68rem; }
  .rss-label { font-size: .6rem; }
}

/* ── City pages ── */
@media (max-width: 600px) {
  .rg-main-aside,
  [style*="grid-template-columns:1fr 300px"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Terrain cards hover (touch) ── */
@media (hover: none) {
  .tpg-card:hover { transform: none; box-shadow: none; border-color: var(--border-light); }
  .matchs-card:hover { transform: none; box-shadow: none; }
  .home-live-card:hover { transform: none; box-shadow: none; }
  .defi-card:hover { box-shadow: none; }
  .trp-pill:hover { background: var(--white); color: var(--text); border-color: var(--border); }
}

/* ── Touch targets améliorés ── */
@media (max-width: 768px) {
  .tpg-btn { min-height: 36px; padding: 7px 12px; }
  .mc-join-btn { min-height: 36px; padding: 7px 12px; }
  .admin-btn-mini { min-height: 32px; padding: 5px 10px; }
  .defis-tab { min-height: 44px; }
  .notif-tab-btn { min-height: 44px; }
  .trp-pill { min-height: 36px; padding: 7px 12px; }
  .ttv-pill { min-height: 40px; }

  /* Espacement général réduit sur mobile */
  .container { padding: 0 14px; }
  .page-header .container { padding: 20px 14px 18px; }

  /* Headers de page moins hauts */
  .terrains-hero h1 { font-size: 1.6rem; }
  .matchs-hero h1   { font-size: 1.5rem; }
  .defis-hero h1    { font-size: 1.5rem; }

  /* PWA banner repositionné */
  .pwa-install-banner {
    bottom: 72px;
    left: 8px;
    right: 8px;
    border-radius: 14px;
    padding: 12px 14px;
  }

  /* Forget password centré */
  .auth-split-form-wrap { padding: 20px 16px; }

  /* Prochain match compact */
  .dash-no-next { padding: 14px; }
}

/* ── Très petits écrans (≤ 360px) ── */
@media (max-width: 360px) {
  .defis-tab { font-size: .7rem; padding: 8px 8px; }
  .notif-tab-btn { font-size: .68rem; padding: 8px 8px; }
  .mc-meta { gap: 4px; font-size: .65rem; }
  .mc-fill-bar { max-width: 80px; }
  .terrain-hero-title { font-size: 1.1rem; }
  .dnm-title { font-size: .9rem; }
}

/* ── Safe area bottom pour iPhone notch ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .mobile-bottom-nav { padding-bottom: env(safe-area-inset-bottom); }
  .pwa-install-banner { bottom: calc(72px + env(safe-area-inset-bottom)); }
  .toast-alert { bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* ── Scroll horizontal masqué sur mobile ── */
@media (max-width: 768px) {
  .defis-tabs::-webkit-scrollbar,
  .notif-tabs::-webkit-scrollbar,
  .terrains-region-pills::-webkit-scrollbar { display: none; }
  .defis-tabs, .notif-tabs, .terrains-region-pills { scrollbar-width: none; }
}

/* ═══════════════════════════════════════════════════
   UNIVERSAL SEARCH OVERLAY
   ═══════════════════════════════════════════════════ */
#universal-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(9,9,13,.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
#universal-search-overlay.open {
  display: flex;
}
.usr-modal {
  width: 100%;
  max-width: 620px;
  background: var(--dark-2);
  border: 1px solid rgba(5,226,122,.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(5,226,122,.08);
  overflow: hidden;
  animation: usrSlideIn .18s ease;
}
@keyframes usrSlideIn {
  from { opacity:0; transform:translateY(-16px) scale(.97); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}
.usr-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.usr-search-icon {
  font-size: 1.1rem;
  opacity: .5;
  flex-shrink: 0;
}
#universal-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
}
#universal-search-input::placeholder { color: rgba(255,255,255,.3); }
.usr-esc-hint {
  font-size: .72rem;
  color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.07);
  border-radius: 4px;
  padding: 2px 6px;
  flex-shrink: 0;
}
#universal-search-results {
  max-height: 420px;
  overflow-y: auto;
  padding: 8px 0;
}
#universal-search-results::-webkit-scrollbar { width: 4px; }
#universal-search-results::-webkit-scrollbar-track { background: transparent; }
#universal-search-results::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 2px; }
.usr-group-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  padding: 10px 18px 4px;
}
.usr-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  cursor: pointer;
  text-decoration: none;
  transition: background .12s;
}
.usr-result-item:hover,
.usr-result-item:focus {
  background: rgba(255,255,255,.06);
  outline: none;
}
.usr-result-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--dark-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,.1);
}
.usr-result-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.usr-result-body {
  flex: 1;
  min-width: 0;
}
.usr-result-name {
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.usr-result-meta {
  color: rgba(255,255,255,.4);
  font-size: .75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.usr-result-badge {
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(5,226,122,.12);
  color: var(--primary);
  flex-shrink: 0;
}
.usr-empty {
  text-align: center;
  padding: 28px 18px;
  color: rgba(255,255,255,.3);
  font-size: .88rem;
}
.usr-footer {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 10px 18px;
  display: flex;
  gap: 16px;
  font-size: .72rem;
  color: rgba(255,255,255,.25);
}
.usr-footer span { display: flex; align-items: center; gap: 4px; }
.usr-footer kbd {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 3px;
  padding: 1px 5px;
  font-family: inherit;
  font-size: .68rem;
  color: rgba(255,255,255,.4);
}

@media (max-width: 640px) {
  #universal-search-overlay { padding-top: 20px; align-items: flex-start; }
  .usr-modal { border-radius: var(--radius) var(--radius) 0 0; max-height: 85vh; }
  #universal-search-results { max-height: 55vh; }
}

/* ═══════════════════════════════════════════════════
   PRIVATE MATCH TOGGLE (match-create)
   ═══════════════════════════════════════════════════ */
.private-match-toggle {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  transition: border-color .2s, background .2s;
}
.private-match-toggle.active {
  border-color: rgba(245,158,11,.4);
  background: rgba(245,158,11,.05);
}
.private-match-label {
  display: flex; cursor: pointer; width: 100%;
}
.private-match-label input[type=checkbox] { display: none; }
.private-match-content {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; flex: 1;
}
.private-match-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.private-match-content > div { flex: 1; }
.private-match-content > div strong { display: block; margin-bottom: 3px; font-size: .9rem; }
.private-match-content > div p { font-size: .78rem; color: var(--muted); margin: 0; }
.private-match-badge {
  font-size: 1.1rem; flex-shrink: 0; opacity: .3;
  transition: opacity .2s;
}
.private-match-toggle.active .private-match-badge { opacity: 1; }

/* Invite code display on match-detail */
.invite-code-box {
  background: linear-gradient(135deg, rgba(245,158,11,.12), rgba(245,158,11,.06));
  border: 1.5px dashed rgba(245,158,11,.4);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
}
.invite-code-label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: rgba(255,255,255,.45); margin-bottom: 8px;
}
.invite-code-value {
  font-family: 'Kanit', monospace; font-size: 1.8rem; font-weight: 800;
  letter-spacing: .15em; color: #f59e0b;
}
.invite-code-hint {
  font-size: .72rem; color: rgba(255,255,255,.3); margin-top: 6px;
}
.invite-code-copy {
  margin-top: 10px; background: rgba(245,158,11,.15);
  border: 1px solid rgba(245,158,11,.3); color: #f59e0b;
  border-radius: var(--radius-sm); padding: 6px 14px;
  font-size: .78rem; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: background .15s;
}
.invite-code-copy:hover { background: rgba(245,158,11,.25); }

/* ═══════════════════════════════════════════════════
   UNIVERSAL SEARCH — Close button
   ═══════════════════════════════════════════════════ */
.usr-close-btn {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  color: rgba(255,255,255,.5);
  font-size: .78rem;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s;
}
.usr-close-btn:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ═══════════════════════════════════════════════════
   SKELETON LOADERS — shimmer pour cartes en attente
   ═══════════════════════════════════════════════════ */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.skeleton {
  background: linear-gradient(90deg,
    rgba(0,0,0,.06) 25%,
    rgba(0,0,0,.12) 50%,
    rgba(0,0,0,.06) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: var(--radius-sm);
}
[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,.05) 25%,
    rgba(255,255,255,.10) 50%,
    rgba(255,255,255,.05) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.6s infinite linear;
}
/* Joueur card skeleton */
.joueur-card-skeleton {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 20px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.joueur-card-skeleton .sk-avatar {
  width: 72px; height: 72px; border-radius: 50%;
}
.joueur-card-skeleton .sk-line { height: 12px; width: 80%; }
.joueur-card-skeleton .sk-line-sm { height: 10px; width: 55%; }
/* Match card skeleton */
.match-card-skeleton {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.match-card-skeleton .sk-title { height: 14px; width: 70%; }
.match-card-skeleton .sk-meta  { height: 10px; width: 45%; }
.match-card-skeleton .sk-bar   { height: 6px;  width: 100%; border-radius: 99px; }

/* ═══════════════════════════════════════════════════
   BADGE "NOUVEAU" sur les matchs récents
   ═══════════════════════════════════════════════════ */
.badge-nouveau {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, var(--primary), #00C47A);
  color: #fff; font-size: .6rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 7px; border-radius: var(--radius-full);
  white-space: nowrap;
  animation: nouveauPulse 2s ease infinite;
}
@keyframes nouveauPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(5,226,122,.4); }
  50%       { box-shadow: 0 0 0 4px rgba(5,226,122,0); }
}
