/* ============================================================
   Billard Club de Nandy — Maquette CSS
   Palette : vert #1B4332 · or #C9A84C · noir #111
   ============================================================ */

/* --- Polices auto-hébergées --- */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/lato-300.716309aab2bc.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato-400.e1b3b5908c9c.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lato-700.de69cf9e514d.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/playfair-display.ef05b30d6e5c.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --vert:        #1B4332;
  --vert-hover:  #2D6A4F;
  --or:          #C9A84C;
  --or-hover:    #b8963e;
  --or-text:     #111111;
  --noir:        #111111;
  --gris:        #f5f5f5;
  --gris-bd:     #e2e8e4;
  --texte:       #333333;
  --texte-clair: #666666;
}

/* --- Base --- */
body { font-family: 'Lato', sans-serif; color: var(--texte); }
h1, h2, h3, h4, .title { font-family: 'Playfair Display', serif; }

/* --- Navbar --- */
.navbar {
  background-color: var(--vert) !important;
  border-bottom: 3px solid var(--or);
  padding: 0;
}
.navbar-brand .navbar-item {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: white !important;
  gap: 0.5rem;
}
.navbar-menu .navbar-item {
  color: rgba(255,255,255,0.88) !important;
  font-size: 0.85rem;
  letter-spacing: 0.2px;
  padding: 0.5rem 0.8rem;
}
.navbar-menu .navbar-item:hover,
.navbar-menu .navbar-item.is-active {
  background-color: var(--vert-hover) !important;
  color: var(--or) !important;
}
.navbar-burger span { background-color: white !important; }
.btn-login {
  background-color: var(--or) !important;
  color: var(--or-text) !important;
  font-weight: 700 !important;
  border: none !important;
  font-size: 0.85rem !important;
}
.btn-login:hover { background-color: var(--or-hover) !important; }

/* --- Hero accueil --- */
.hero-accueil {
  min-height: 88vh;
  background: linear-gradient(160deg, #0c2117 0%, var(--vert) 55%, #1e4735 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-accueil::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 65%, rgba(201,168,76,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 25%, rgba(255,255,255,0.04) 0%, transparent 45%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; width: 100%; padding: 4rem 1.5rem; }
.hero-surtitre {
  color: var(--or);
  font-family: 'Lato', sans-serif;
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.hero-titre {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  color: white;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hero-sous-titre {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  letter-spacing: 1px;
}

/* --- En-tête de page --- */
.page-header {
  background: linear-gradient(135deg, var(--vert) 0%, var(--vert-hover) 100%);
  padding: 2.8rem 0;
  border-bottom: 3px solid var(--or);
}
.page-header .title { color: white !important; margin-bottom: 0.75rem; }
.page-header .subtitle { color: rgba(255,255,255,0.65) !important; font-family: 'Lato', sans-serif; }

/* --- Titres de section --- */
.titre-section {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  color: var(--vert);
}
.titre-section::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--or);
  margin-top: 0.6rem;
}
.titre-section.centre::after { margin: 0.6rem auto 0; }

/* --- Boutons --- */
.button.is-vert  { background-color: var(--vert) !important; border-color: transparent !important; color: white !important; }
.button.is-vert:hover  { background-color: var(--vert-hover) !important; }
.button.is-or    { background-color: var(--or)   !important; border-color: transparent !important; color: var(--or-text) !important; font-weight: 700; }
.button.is-or:hover    { background-color: var(--or-hover) !important; }
.button.is-blanc-outline { background: transparent !important; border-color: white !important; color: white !important; }
.button.is-blanc-outline:hover { background: rgba(255,255,255,0.12) !important; }
.button.is-vert-outline { background: transparent !important; border-color: var(--vert) !important; color: var(--vert) !important; }
.button.is-vert-outline:hover { background: var(--vert) !important; color: white !important; }

/* --- Cartes génériques --- */
.card {
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.12); }

/* --- Cartes disciplines --- */
.card-discipline {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 4px solid var(--or);
  height: 100%;
}
.discipline-icon { font-size: 2.4rem; margin-bottom: 0.8rem; display: block; }

/* --- Actualités --- */
.actu-date  { font-size: 0.78rem; color: #999; margin-bottom: 0.3rem; }
.actu-titre { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--vert); margin-bottom: 0.5rem; }
.actu-une   { background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75) 100%); }

/* --- Événements --- */
.event-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem 1.4rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  margin-bottom: 0.9rem;
  border-left: 4px solid var(--or);
}
.date-badge {
  background: var(--vert);
  color: white;
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  min-width: 56px;
  flex-shrink: 0;
}
.date-badge .mois { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 1px; color: var(--or); display: block; }
.date-badge .jour { font-size: 1.55rem; font-weight: 700; line-height: 1.1; display: block; }

/* --- Placeholder image --- */
.img-ph {
  background: linear-gradient(135deg, var(--vert-hover) 0%, var(--vert) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.22);
  font-size: 3rem;
}

/* --- Bureau --- */
.avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--gris-bd);
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  border: 3px solid var(--or);
}
.role-badge {
  color: var(--or);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
}

/* --- Tableaux --- */
.table-header-vert thead th {
  background-color: var(--vert) !important;
  color: white !important;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
}
.table-header-vert tbody tr:hover { background-color: #f0f7f3 !important; }

/* --- Étapes --- */
.etape { display: flex; gap: 1.2rem; align-items: flex-start; margin-bottom: 1.4rem; }
.etape-num {
  background: var(--or); color: var(--noir);
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; flex-shrink: 0; margin-top: 2px;
}

/* --- Tags statut --- */
.tag.en-cours { background-color: #22c55e !important; color: white !important; }
.tag.termine  { background-color: #64748b !important; color: white !important; }

/* --- Bracket / Compétitions --- */
.bracket-wrap { overflow-x: auto; padding-bottom: 1rem; }
.bracket-cols { display: flex; gap: 2.5rem; min-width: max-content; }
.bracket-round-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #999;
  margin-bottom: 0.8rem;
  font-weight: 700;
}
.match-card {
  border: 1.5px solid var(--gris-bd);
  border-radius: 7px;
  margin-bottom: 1rem;
  overflow: hidden;
  min-width: 190px;
  background: white;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.match-card.live { border-color: #22c55e; }
.match-card.done { border-color: var(--gris-bd); }
.match-joueur {
  padding: 0.45rem 0.9rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  gap: 1rem;
}
.match-joueur + .match-joueur { border-top: 1px solid var(--gris-bd); }
.match-joueur.winner { background: #f0f7f3; font-weight: 700; color: var(--vert); }
.match-joueur .score { color: var(--or); font-weight: 700; }
.match-label {
  font-size: 0.65rem;
  text-align: center;
  padding: 0.15rem;
  background: var(--gris);
  color: #999;
  letter-spacing: 0.5px;
}
.poule-table { font-size: 0.85rem; }
.phase-info {
  background: #fff8e6;
  border: 1px solid var(--or);
  border-radius: 6px;
  padding: 0.8rem 1.2rem;
  font-size: 0.88rem;
  color: #6b4c00;
  margin-bottom: 1.5rem;
}

/* --- Formulaires --- */
.form-card { background: white; border-radius: 10px; box-shadow: 0 3px 20px rgba(0,0,0,0.09); padding: 2.2rem; }
.field .label { font-weight: 700; font-size: 0.88rem; color: var(--vert); }
.input:focus, .textarea:focus, .select select:focus {
  border-color: var(--vert) !important;
  box-shadow: 0 0 0 2px rgba(27,67,50,0.15) !important;
}
.captcha-box {
  background: var(--gris);
  border: 1px solid var(--gris-bd);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: #888;
}
.captcha-img { background: #ddd; width: 120px; height: 42px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: #888; letter-spacing: 3px; font-family: monospace; }

/* --- Section alternée --- */
.section-alt { background-color: var(--gris); }

/* --- Footer --- */
.site-footer { background: var(--noir); color: #bbb; padding: 3rem 1.5rem 1.5rem; }
.footer-col-title {
  color: var(--or);
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  display: block;
  margin-bottom: 1rem;
}
.site-footer a { color: #bbb; text-decoration: none; display: block; margin-bottom: 0.35rem; font-size: 0.86rem; }
.site-footer a:hover { color: var(--or); }
.footer-sep { border-top: 1px solid #2a2a2a; margin: 2rem 0 1.5rem; }
.footer-bottom { font-size: 0.77rem; color: #555; }
.footer-bottom a { display: inline; color: #555; }
.footer-bottom a:hover { color: var(--or); }

/* --- Espace membres --- */
.membre-banner {
  background: linear-gradient(135deg, var(--vert) 0%, var(--vert-hover) 100%);
  color: white;
  border-radius: 10px;
  padding: 1.8rem 2rem;
  margin-bottom: 2rem;
}
.stat-number { font-size: 2rem; font-weight: 700; color: var(--or); display: block; }


/* --- Arbitre mobile --- */
.arbitre-score-box {
  font-size: 4rem;
  font-weight: 700;
  color: var(--vert);
  font-family: 'Playfair Display', serif;
  line-height: 1;
  text-align: center;
}
.arbitre-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: none;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.arbitre-btn-plus  { background: var(--vert); color: white; }
.arbitre-btn-moins { background: var(--gris-bd); color: var(--texte); }
