/* =========================================================
   TALENT D'OR FC — En-tête clair « V1 »
   Extrait autonome de style.css, pour les pages qui tournent
   sur main-v2.css (index, academie, categorie, contact) et qui
   doivent porter le même en-tête clair que galerie/actualités.

   ⚠️ Ne pas charger sur galerie.html / actualites.html : elles
   ont déjà ces styles via style.css.
   N'utilise que des variables communes aux deux feuilles.
   ========================================================= */

/* ---------------- TOP BAR ---------------- */
.topbar {
  background: var(--midnight);
  color: #b9c4dc;
  font-family: var(--cond);
  font-size: .9rem; letter-spacing: .04em;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.topbar a { color: #b9c4dc; }
.topbar a:hover { color: var(--gold); }
.topbar__info { display: flex; gap: 24px; }
.topbar__info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar__social { display: flex; gap: 16px; text-transform: uppercase; font-weight: 600; }

/* ---------------- HEADER / NAV ---------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,243,236,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header::after { /* liseré « maillot » sous le header */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--stripes); background-size: 14px 100%; opacity: .9;
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 13px; }
/* Cercle bordé or, comme le logo du pied de page */
.brand img {
  height: 54px; width: 54px; object-fit: cover;
  border-radius: 50%; border: 2px solid var(--gold);
}
.brand__text strong {
  display: block; font-family: var(--display); color: var(--navy);
  font-size: 1.35rem; line-height: .9; letter-spacing: .01em;
}
.brand__text span {
  font-family: var(--cond); font-size: .72rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .16em; font-weight: 600;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: .06em;
  padding: 10px 15px; font-weight: 600; font-size: 1.02rem; color: var(--navy);
  position: relative; transition: color .18s;
  white-space: nowrap; /* jamais de libellé sur 2 lignes */
}
.nav a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--navy); }
.nav__cta { margin-left: 12px; }
.nav__cta::after { display: none; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { width: 27px; height: 3px; background: var(--navy); border-radius: 3px; transition: .3s; }

/* Décale les ancres sous l'en-tête collant */
section[id] { scroll-margin-top: 96px; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1200px) {
  .header .container { height: 66px; }
  .brand img { height: 46px; width: 46px; }
  .brand__text strong { font-size: 1.15rem; }
  .nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: 82%; max-width: 320px;
    background: var(--paper); flex-direction: column; align-items: stretch; padding: 92px 24px 30px;
    box-shadow: -10px 0 40px rgba(0,0,0,.2); gap: 2px; overflow-y: auto; display: none;
  }
  .nav.open { display: flex; animation: navIn .24s ease both; }
  @keyframes navIn { from { opacity: 0; } to { opacity: 1; } }
  .nav > a { padding: 15px 12px; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav > a::after { display: none; }
  .nav__cta { margin: 16px 0 0; justify-content: center; }
  .burger { display: flex; z-index: 120; }
  .burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .topbar__info span.hide-sm { display: none; }
}

@media (max-width: 560px) {
  .topbar__info { display: none; }
  .topbar .container { justify-content: center; }
  .topbar__social { justify-content: center; }
}
