/* =====================================================================
   STYLES COMMUNS — LA PALIFICUP
   Partagés par index.html, classement.html et editions.html :
   variables de couleur, reset, header, logo, navigation, footer.
   Les styles propres à chaque page restent dans son <style> local.
   ===================================================================== */
:root {
  --navy:        #FDF5EC;   /* fond principal — blanc crème chaud       */
  --navy-hdr:    #FFF8F0;   /* header — blanc très légèrement orangé    */
  --navy-row:    #FFF1E0;   /* lignes impaires — crème doux             */
  --navy-alt:    #FFFFFF;   /* lignes paires — blanc pur                */
  --navy-card:   #FDE8D0;   /* cartes — pêche très clair                */

  --blue-lt:     #C05A00;   /* labels, sous-titres — orange foncé       */
  --blue-med:    #A04500;   /* rang 4+ — brun orangé                    */
  --blue-bright: #FF7A00;   /* barre progression — orange vif           */
  --accent:      #E85500;   /* accent principal — orange Perudo         */

  --gold:        #E6AC00;   /* or                                       */
  --silver:      #909090;   /* argent                                   */
  --bronze:      #A0622A;   /* bronze cuivré                            */

  --white:       #1A0800;   /* texte principal — brun très foncé        */
  --text-dim:    #9A6A40;   /* texte discret — caramel moyen            */

  --green:       #1A9E4A;   /* hausse / prize money                     */
  --red:         #CC2020;   /* baisse / supprimer                       */
  --separator:   #F0D0B0;   /* bordures — beige orangé discret          */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
}

/* ── HEADER ─────────────────────────────────────────── */
.site-header {
  background: var(--navy-hdr);
  border-bottom: 3px solid var(--accent);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-img { height: 54px; width: auto; object-fit: contain; border-radius: 6px; }
.logo-fallback {
  width: 54px; height: 54px;
  background: linear-gradient(135deg, var(--gold), #e8a000);
  border-radius: 8px;
  display: none; align-items: center; justify-content: center;
  font-size: 26px;
}
.logo-text { line-height: 1.2; }
.logo-title { font-size: 18px; font-weight: 800; letter-spacing: 2px; color: var(--blue-lt); }
.logo-sub   { font-size: 10px; color: var(--blue-lt); letter-spacing: 3px; text-transform: uppercase; }

/* ── NAV ─────────────────────────────────────────────── */
nav { display: flex; gap: 4px; align-items: center; }
.nav-link {
  padding: 8px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  color: var(--blue-lt); text-decoration: none;
  transition: all .18s; letter-spacing: .3px;
  border: 1px solid transparent;
}
.nav-link:hover { background: var(--navy-card); color: var(--white); }
.nav-link.active {
  background: var(--accent); color: #fff;
  border-color: var(--accent);
}
.nav-burger { display: none; background: none; border: none; cursor: pointer; font-size: 22px; color: var(--blue-lt); }

/* ── NAV MOBILE ───────────────────────────────────────── */
.nav-mobile {
  display: none;
  flex-direction: column;
  position: fixed; top: 70px; left: 0; right: 0;
  background: var(--navy-hdr);
  border-bottom: 2px solid var(--separator);
  padding: 12px 16px;
  gap: 4px; z-index: 99;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link { width: 100%; padding: 12px 16px; }

/* ── BOUTONS ────────────────────────────────────────────── */
.btn {
  padding: 12px 24px; border-radius: 8px; font-size: 14px;
  font-weight: 700; cursor: pointer; border: none;
  transition: all .18s; letter-spacing: .3px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #c94400; }
.btn-ghost {
  background: transparent; color: var(--blue-lt);
  border: 1.5px solid var(--separator);
}
.btn-ghost:hover { background: var(--navy-card); color: var(--white); }

/* ── FOOTER ───────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--separator);
  padding: 24px;
  text-align: center;
  font-size: 12px; color: var(--text-dim);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--separator); border-radius: 3px; }

/* ── RESPONSIVE — Mobile (≤ 640px) ──────────────────────── */
@media (max-width: 640px) {
  .site-header { padding: 0 12px; height: 56px; }
  .logo-img { height: 38px; }
  .logo-title { font-size: 14px; letter-spacing: 1px; }
  .logo-sub { display: none; }
  nav { display: none; }
  .nav-burger { display: block; }
  .nav-mobile { top: 56px; }
}
