/* ============================================================
   PronoCDM 2026 — Design System
   Palette : Bleu nuit / Or / Blanc
   Font : Bebas Neue (titres) + Outfit (corps)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --bg:           #080c18;
  --bg2:          #0f1628;
  --bg3:          #16203a;
  --card:         #111827;
  --card2:        #1a2744;
  --border:       rgba(255,255,255,0.08);
  --gold:         #e8b923;
  --gold-light:   #f5d050;
  --gold-dark:    #c49a1a;
  --white:        #f0f4ff;
  --muted:        #8b95b0;
  --danger:       #ef4444;
  --success:      #22c55e;
  --warning:      #f59e0b;
  --info:         #3b82f6;
  --font-title:   'Bebas Neue', sans-serif;
  --font-body:    'Outfit', sans-serif;
  --radius:       12px;
  --radius-lg:    20px;
  --shadow:       0 4px 24px rgba(0,0,0,0.4);
  --shadow-gold:  0 0 32px rgba(232,185,35,0.2);
  --transition:   0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; display: block; }

/* ── Layout ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm { max-width: 540px; }
.container-md { max-width: 780px; }

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,12,24,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-size: 26px;
  letter-spacing: 1px;
  color: var(--white);
}
.logo span { color: var(--gold); }
.logo img { width: 36px; height: 36px; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  padding: 8px 16px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  transition: all var(--transition);
}
.nav a:hover, .nav a.active { color: var(--white); background: var(--card2); }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* ── Boutons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0a0a0a;
  box-shadow: 0 4px 16px rgba(232,185,35,0.3);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(232,185,35,0.45);
  color: #0a0a0a;
}

.btn-secondary {
  background: var(--card2);
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--bg3);
  border-color: rgba(255,255,255,0.15);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,0.2); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 17px; }
.btn-full { width: 100%; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition);
}
.card:hover { border-color: rgba(255,255,255,0.14); }
.card-gold {
  border-color: rgba(232,185,35,0.3);
  box-shadow: var(--shadow-gold);
}

/* ── Formulaires ─────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232,185,35,0.12);
}
.form-control::placeholder { color: #4a5568; }
.form-control.error { border-color: var(--danger); }

.form-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.form-error { font-size: 13px; color: var(--danger); margin-top: 5px; }

/* ── Checkbox / Radio ────────────────────────────────────────── */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}
.form-check-label { font-size: 14px; color: var(--muted); }

/* ── Flash messages ──────────────────────────────────────────── */
.flash {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  border-left: 4px solid;
}
.flash-success { background: rgba(34,197,94,0.1);  border-color: var(--success); color: #86efac; }
.flash-error   { background: rgba(239,68,68,0.1);  border-color: var(--danger);  color: #fca5a5; }
.flash-warning { background: rgba(245,158,11,0.1); border-color: var(--warning); color: #fcd34d; }
.flash-info    { background: rgba(59,130,246,0.1); border-color: var(--info);    color: #93c5fd; }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge-gold    { background: rgba(232,185,35,0.15); color: var(--gold); }
.badge-blue    { background: rgba(59,130,246,0.15); color: #93c5fd; }
.badge-green   { background: rgba(34,197,94,0.15);  color: #86efac; }
.badge-red     { background: rgba(239,68,68,0.15);  color: #fca5a5; }
.badge-muted   { background: rgba(255,255,255,0.06); color: var(--muted); }

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 13px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Titre stylé ─────────────────────────────────────────────── */
.page-title {
  font-family: var(--font-title);
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: 2px;
  line-height: 1.1;
}
.page-title span { color: var(--gold); }

.section-title {
  font-family: var(--font-title);
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: 1px;
  margin-bottom: 24px;
}

/* ── Socials ─────────────────────────────────────────────────── */
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  border: 1px solid var(--border);
  background: var(--card2);
  color: var(--white);
}
.social-btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.2); color: var(--white); }
.social-btn.google { }
.social-btn.twitter { }
.social-btn.facebook { }
.social-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-family: var(--font-title);
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--muted); font-size: 14px; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-desc { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.social-links { display: flex; gap: 12px; }
.social-icon {
  width: 38px; height: 38px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: 16px;
  transition: all var(--transition);
}
.social-icon:hover { background: var(--card2); color: var(--white); border-color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--gold); }

/* ── Auth pages ──────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-visual {
  background: linear-gradient(160deg, #0f1e44 0%, #1a0a2e 50%, #0a1a0f 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.auth-visual::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,185,35,0.12) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.auth-visual-title {
  font-family: var(--font-title);
  font-size: 52px;
  letter-spacing: 3px;
  text-align: center;
  line-height: 1.1;
  position: relative;
  z-index: 1;
}
.auth-visual-title span { color: var(--gold); display: block; }
.auth-visual-sub {
  color: var(--muted);
  text-align: center;
  margin-top: 16px;
  font-size: 16px;
  position: relative;
  z-index: 1;
}
.auth-visual-balls {
  font-size: 80px;
  margin-bottom: 24px;
  animation: float 3s ease-in-out infinite;
  position: relative; z-index: 1;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.auth-form-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 72px;
  background: var(--bg);
  overflow-y: auto;
}
.auth-form-title { font-family: var(--font-title); font-size: 36px; letter-spacing: 1px; margin-bottom: 8px; }
.auth-form-sub { color: var(--muted); font-size: 15px; margin-bottom: 36px; }

/* ── Password strength ───────────────────────────────────────── */
.pwd-strength { margin-top: 8px; }
.pwd-strength-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}
.pwd-strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
  width: 0;
}
.pwd-strength-label { font-size: 12px; color: var(--muted); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-side { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Header mobile : logo centré + menu en dessous */
  .header-inner {
    flex-wrap: wrap;
    height: auto !important;
    padding: 10px 0;
    justify-content: center;
    gap: 8px;
  }
  .header-inner > a:first-child { /* logo */
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .nav {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 4px;
    order: 2;
  }
  .nav a {
    font-size: 12px;
    padding: 5px 10px;
  }
  .header-actions {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }
  .header-actions .btn {
    font-size: 12px;
    padding: 6px 12px;
  }
  .social-icon { display: none; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .countdown-unit { min-width: 52px !important; padding: 8px 10px !important; }
  .countdown-value { font-size: 32px !important; }
  .countdown-sep { font-size: 28px !important; padding-top: 8px !important; }
  .countdown-label { font-size: 9px !important; }
}

/* ── Spinner ─────────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Animations d'entrée ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease forwards; }
.fade-up-1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-2 { animation-delay: 0.2s; opacity: 0; }
.fade-up-3 { animation-delay: 0.3s; opacity: 0; }
.fade-up-4 { animation-delay: 0.4s; opacity: 0; }

/* ── Utilitaires ─────────────────────────────────────────────── */
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--muted); }
.text-center { text-align: center; }
.text-sm     { font-size: 13px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ── Dashboard nav items (utilisés aussi dans solo.php) ── */
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.dash-nav-item:hover { background: var(--card); color: var(--white); }
.dash-nav-item.active { background: var(--card); color: var(--white); border-left: 3px solid var(--gold); }

/* ── Fix listes déroulantes (select/option) ───────────────────
   Sur Windows, les options héritent parfois du thème système
   → on force le fond sombre et le texte blanc */
select option {
  background-color: #111827;
  color: #f0f4ff;
}
select option:hover,
select option:focus,
select option:checked {
  background-color: #1a2744;
  color: #f0f4ff;
}
/* Fallback pour navigateurs WebKit */
select:focus option:checked {
  background: linear-gradient(#1a2744, #1a2744);
  color: #f0f4ff;
}

/* ── Logo image dans le header ───────────────────────────────── */
.logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

/* ── Fix onglets manquants ───────────────────────────────────── */
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.dash-nav-item:hover { background: var(--card); color: var(--white); }
.dash-nav-item.active { background: var(--card); color: var(--white); border-left: 3px solid var(--gold); }

/* ── Message flash margin ─────────────────────────────────────── */
.mb-12 { margin-bottom: 12px; }
.mb-14 { margin-bottom: 14px; }

/* ── Fix Chrome/Windows : listes déroulantes ─────────────────
   color-scheme: dark force Chrome à utiliser le thème sombre
   pour TOUT le contrôle natif (y compris le popup ouvert) */
select {
  color-scheme: dark;
  background-color: #111827 !important;
  color: #f0f4ff !important;
}
select option {
  color-scheme: dark;
  background-color: #111827 !important;
  color: #f0f4ff !important;
}
/* Sélection active dans la liste */
select option:checked,
select option:focus,
select option:hover {
  background-color: #1a2744 !important;
  color: var(--gold) !important;
}
/* Logo plus grand */
.logo img {
  height: 64px !important;
  width: auto;
  object-fit: contain;
  display: block;
}
.site-header { min-height: 76px; }
@media (min-width: 901px) {
  .header-inner { height: 76px !important; }
}
