/* ===========================================================
   Raquette d'OR A.T.T. — feuille de style
   Palette extraite du logo et du maillot du club :
   noir, or, rouge, sur fond blanc cassé.
   =========================================================== */

:root {
  --black: #0d0d0c;
  --black-soft: #1c1b18;
  --gold: #b8912a;
  --gold-light: #e8cf7a;
  --gold-dark: #8f7518;
  --red: #c8102e;
  --white: #ffffff;
  --off-white: #faf8f2;
  --gray-100: #f2f0e9;
  --gray-300: #dbd8cd;
  --gray-600: #6b6862;
  --gray-800: #33322e;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(13, 13, 12, 0.08);
  --shadow-lg: 0 12px 32px rgba(13, 13, 12, 0.16);
  --max-width: 1160px;
  --font-heading: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--red); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--black);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--white); }
.section-dark {
  background: var(--black);
  color: var(--gray-300);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark a { color: var(--gold-light); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}
.section-dark .eyebrow { color: var(--gold-light); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-head p { margin: 0; color: var(--gray-600); max-width: 46ch; }
.section-dark .section-head p { color: var(--gray-300); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--black); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--gray-800); color: var(--gold-light); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: #9c0c23; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- En-tête / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 12, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(184, 145, 42, 0.25);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.brand img { height: 42px; width: auto; }
.brand:hover { color: var(--gold-light); }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  color: var(--gray-300);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--white); background: rgba(184, 145, 42, 0.16); }
.main-nav a.active { color: var(--gold-light); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 880px) {
  .main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--black);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 30px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow-y: auto;
  }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a { padding: 14px 10px; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 15% 20%, rgba(184, 145, 42, 0.35), transparent 45%), var(--black);
  color: var(--white);
  padding: 84px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 620px; }
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero h1 .gold-word { color: var(--gold); }
.hero p.lead { color: var(--gray-300); font-size: 1.1rem; max-width: 52ch; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges {
  display: flex;
  gap: 28px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-badge { color: var(--gray-300); }
.hero-badge strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--gold);
}
.hero-badge span { font-size: 0.85rem; }

/* ---------- Cartes ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--gray-300);
}
.card-body { padding: 22px; }
.card h3 { margin-bottom: 8px; }
.card .meta { font-size: 0.82rem; color: var(--gold-dark); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.card img.card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Listes de matchs ---------- */
.match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.match-row .team-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-dark);
  background: var(--gray-100);
  padding: 4px 10px;
  border-radius: 999px;
}
.match-row .opponent { font-weight: 600; color: var(--black); }
.match-row .date { color: var(--gray-600); font-size: 0.88rem; }
.match-row .score { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--black); }
.badge-domicile { color: var(--gold-dark); }
.badge-exterieur { color: var(--gray-600); }
.badge-victoire { color: #1e7a3a; }
.badge-defaite { color: var(--red); }

/* ---------- Tableaux (tarifs) ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--gray-300); }
table.pricing { width: 100%; border-collapse: collapse; background: var(--white); min-width: 640px; }
table.pricing th, table.pricing td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--gray-300); }
table.pricing thead th { background: var(--black); color: var(--white); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
table.pricing tbody tr:last-child td { border-bottom: none; }
table.pricing tbody tr:hover { background: var(--gray-100); }

/* ---------- Timeline / créneaux ---------- */
.schedule-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-300);
}
.schedule-item:last-child { border-bottom: none; }
.schedule-item .when { font-weight: 700; color: var(--gold-dark); font-family: var(--font-heading); }
.schedule-item .venue-name { font-size: 0.85rem; color: var(--gray-600); margin-top: 6px; }
@media (max-width: 600px) { .schedule-item { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Organigramme ---------- */
.member-card { text-align: center; padding: 26px 16px; }
.member-avatar {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--black);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem;
  margin: 0 auto 14px;
}
.member-card .role { color: var(--gray-600); font-size: 0.88rem; }

/* ---------- Galerie ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: 8px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: 1fr; } .gallery-grid img { height: auto; } }

/* ---------- Partenaires ---------- */
.partner-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px; gap: 12px; }
.partner-card img { max-height: 70px; width: auto; margin: 0 auto; }
.partner-placeholder {
  width: 100%; height: 70px; display: flex; align-items: center; justify-content: center;
  background: var(--gray-100); border-radius: 8px; color: var(--gray-600); font-size: 0.8rem;
}

/* ---------- Formulaires ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--black); }
.field .hint { font-size: 0.78rem; color: var(--gray-600); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="date"], input[type="time"], input[type="number"], input[type="url"],
select, textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  background: var(--white);
  color: var(--black);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 145, 42, 0.18);
}
textarea { resize: vertical; min-height: 120px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 0.92rem; }
.alert-error { background: #fbe6e9; color: #8a1226; border: 1px solid #f2b8c1; }
.alert-success { background: #e5f4ea; color: #1e5c31; border: 1px solid #b6ddc2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--gray-300); padding: 56px 0 26px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--gray-300); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 36px; }
.footer-brand span { color: var(--white); font-family: var(--font-heading); font-weight: 700; }
.social-links { display: flex; gap: 10px; margin-top: 14px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 0.9rem;
}
.social-links a:hover { background: var(--gold); color: var(--black); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  font-size: 0.82rem;
  color: var(--gray-600);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ---------- Admin ---------- */
.admin-shell { display: flex; min-height: 100vh; background: var(--off-white); }
.admin-sidebar {
  width: 240px; background: var(--black); color: var(--gray-300);
  padding: 24px 16px; flex-shrink: 0;
}
.admin-sidebar .brand { margin-bottom: 28px; }
.admin-sidebar nav a {
  display: block; padding: 10px 12px; border-radius: 8px; color: var(--gray-300); font-size: 0.92rem; margin-bottom: 2px;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(184,145,42,0.16); color: var(--gold-light); }
.admin-main { flex: 1; padding: 32px 36px; max-width: 1100px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; flex-wrap: wrap; gap: 12px; }
.admin-topbar h1 { margin: 0; font-size: 1.5rem; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 32px; }
@media (max-width: 800px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card { background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius); padding: 20px; }
.stat-card strong { display: block; font-family: var(--font-heading); font-size: 1.8rem; color: var(--black); }
.stat-card span { font-size: 0.85rem; color: var(--gray-600); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius); overflow: hidden; }
.admin-table th, .admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--gray-300); text-align: left; font-size: 0.92rem; }
.admin-table thead th { background: var(--gray-100); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-600); }
.admin-table tbody tr:hover { background: var(--gray-100); }
.row-actions { display: flex; gap: 8px; }
.admin-panel { background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.admin-panel h2 { font-size: 1.1rem; margin-bottom: 16px; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.tag-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.tag-a-venir { background: #fdf1d9; color: #8a5a00; }
.tag-joue { background: var(--gray-100); color: var(--gray-600); }
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--black); padding: 20px; }
.login-card { background: var(--white); padding: 40px; border-radius: var(--radius); width: 100%; max-width: 380px; box-shadow: var(--shadow-lg); text-align: center; }
.login-card img { height: 64px; margin: 0 auto 18px; }

/* ---------- Divers ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--gray-600); margin-bottom: 18px; }
.breadcrumb a { color: var(--gray-600); }
.empty-state { text-align: center; padding: 50px 20px; color: var(--gray-600); }
.text-muted { color: var(--gray-600); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.pagination a, .pagination span {
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--gray-300); font-size: 0.88rem; color: var(--gray-800);
}
.pagination .current { background: var(--black); color: var(--white); border-color: var(--black); }
