/* =============================================
   SGA — Styles globaux (complément Tailwind)
   Direction "sportif moderne"
   ============================================= */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #0a0a0a;
    color: white;
}
body > main { flex: 1; }

/* Pas de padding-top par défaut : la nav est fixed translucide
   et les pages section gèrent leur propre hero plein écran. */
body:has(> footer) { padding-bottom: 0; }

body > header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}
/* Voile sombre par défaut pour assurer la lisibilité du texte blanc */
body > header.nav-initial {
    background-color: rgba(10,10,10,0.55);
    backdrop-filter: blur(4px);
}
body > header.is-scrolled {
    background-color: rgba(10,10,10,0.92) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

body > footer {
    /* Footer non plus fixé (chaque page le fait remonter naturellement) */
}

/* View Transitions (Chrome 126+, Safari 18+) — fondu global rapide */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 180ms; }

/* ---- Typo display ---- */
.display { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.02em; }

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;
    vertical-align: middle;
}

/* ---- Filet "accent bar" devant les eyebrow ---- */
.accent-bar::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 3px;
    background: var(--section-color, white);
    margin-right: 12px;
    vertical-align: middle;
}

/* ---- Boutons impact ---- */
.btn-impact {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.08em;
    font-size: 1.15rem;
    padding: 0.9rem 2rem;
    border-radius: 4px;
    transition: all .25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    line-height: 1;
}
.btn-primary { background: var(--section-color, white); color: white; }
.btn-primary:hover {
    background: var(--section-color-light, white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.btn-outline { border: 2px solid white; color: white; }
.btn-outline:hover { background: white; color: var(--section-color, black); }
.btn-dark { background: #0a0a0a; color: white; }
.btn-dark:hover { background: white; color: #0a0a0a; }

/* ---- Pastilles de section (header desktop) ---- */
.section-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 32px;
}
.section-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--pill-color, #fff);
    color: white;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.78rem;
    line-height: 1;
    position: relative;
    opacity: 0.85;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-decoration: none;
}
.section-pill:hover {
    opacity: 1;
    transform: scale(1.15);
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* Section courante : un peu plus grosse + halo subtle */
.section-pill.is-current {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.28), 0 4px 12px rgba(0,0,0,0.45);
}
.section-pill.is-current:hover { transform: scale(1.08); }

/* Tooltip horizontal au hover */
.section-pill::after {
    content: attr(data-name);
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: rgba(0,0,0,0.92);
    color: white;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    padding: 5px 12px;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 60;
    border-bottom: 2px solid var(--pill-color, white);
}
.section-pill:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
/* Petite flèche au-dessus du tooltip */
.section-pill::before {
    content: '';
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: rgba(0,0,0,0.92);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}
.section-pill:hover::before { opacity: 1; }

/* ---- Card hover ---- */
.card-push {
    transition: transform .35s ease, box-shadow .35s ease;
}
.card-push:hover { transform: translateY(-6px); }

/* ---- Grain photo overlay ---- */
.photo-grain { position: relative; }
.photo-grain::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 3px 3px;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* ---- Marquee défilant ---- */
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.marquee-track { animation: marquee 30s linear infinite; }

/* ---- Stat numbers ---- */
.stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
}

/* ---- Lightbox galerie ---- */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}
#lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* ---- Admin ---- */
.admin-sidebar a.active {
    background: rgba(255,255,255,0.15);
    font-weight: 600;
}

/* ---- Formulaires ---- */
.form-input {
    display: block;
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: white;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}
.form-input::placeholder { color: rgba(255,255,255,0.4); }
.form-input:focus {
    border-color: var(--section-color, #E62423);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--section-color, #E62423) 20%, transparent);
}

/* Form sur fond clair (admin / contact light) */
.form-light .form-input {
    background: white;
    border-color: #d1d5db;
    color: #111;
}
.form-light .form-input::placeholder { color: #9ca3af; }
.form-light .form-input:focus { background: white; }
.form-light textarea.form-input,
.form-light input.form-input,
.form-light select.form-input { background: white; color: #111; }

/* ---- Alertes ---- */
.alert-success {
    background: rgba(16,185,129,0.1);
    border-left: 4px solid #10b981;
    color: #6ee7b7;
    padding: 0.85rem 1.1rem;
    border-radius: 4px;
}
.alert-error {
    background: rgba(239,68,68,0.1);
    border-left: 4px solid #ef4444;
    color: #fca5a5;
    padding: 0.85rem 1.1rem;
    border-radius: 4px;
}

/* ---- Page hero compact (toutes pages sauf accueil section) ---- */
.page-hero {
    position: relative;
    min-height: 50vh;
    padding-top: 120px;
    padding-bottom: 60px;
    overflow: hidden;
}
.page-hero-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.page-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.page-hero > .container {
    position: relative;
    z-index: 2;
}
