/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap');

/* --- VARIABLES GLOBALES --- */
:root {
    --primary: #DA251D; /* Rouge Lyon */
    --primary-hover: #b81c15;
    --secondary: #1d4ed8; /* Bleu Lyon */
    --bg-main: #0f172a; /* Fond sombre moderne */
    --bg-card: rgba(30, 41, 59, 0.75);
    --bg-sidebar: #090d16;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.12);
    --transition: all 0.25s ease-in-out;
}

/* --- RESET & BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- BACKGROUND HERO (.fond) --- */
.fond {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url("../img_index/fond.jpg") no-repeat center center/cover;
    filter: brightness(40%);
}

.fond::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30vh;
    background: linear-gradient(to top, var(--bg-main), transparent);
}

/* --- HERO TITRE / DEVISE (BANDEAU ULTRA COMPACT & COMPACT) --- */
.devise-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.devise {
    position: relative;
    width: 100% !important;
    height: 90px !important; /* Hauteur ajustée et fine pour éviter le pavé */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 20px !important;
    font-size: clamp(20px, 3.5vw, 44px) !important;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.devise::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dégradé bicolore Lyon (50% bleu / 50% rouge) */
    background: linear-gradient(to bottom, #1d4ed8 50%, #DA251D 50%);
    z-index: -1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

/* --- NAVIGATION HEADER (BOUTONS AGRANDIS) --- */
.boutons_pages {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important; /* Maintient le conteneur principal centré */
    padding: 24px 40px !important;
    z-index: 100;
    transition: var(--transition);
}

.boutons_pages.scrolled {
    background: rgba(9, 13, 22, 0.95);
    backdrop-filter: blur(10px);
    padding: 14px 40px !important;
    border-bottom: 1px solid var(--border-color);
}

/* Les 4 boutons principaux parfaitement centrés sur l'écran */
.nav-links-main {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 auto; /* Centrage strict */
    transform: none !important;
}

/* Style de base des boutons */
.nav-btn, .historique, .calendrier, .contact {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    padding: 14px 28px !important;
    min-width: 160px !important;
    background-color: rgba(15, 23, 42, 0.85) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.nav-btn:hover, .historique:hover, .calendrier:hover, .contact:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(218, 37, 29, 0.45);
}

/* Bouton Contact plaqué à droite indépendamment du reste */
.nav-btn-contact {
    position: absolute !important;
    right: 40px !important; /* Même marge que le padding de la nav */
    min-width: 130px !important;
    border-color: rgba(218, 37, 29, 0.6) !important;
}

.nav-btn-contact:hover {
    background-color: var(--primary) !important;
}

/* --- SECTION PRESENTATION & RESUME --- */
.presentation-section {
    position: relative;
    z-index: 3;
    max-width: 1100px;
    margin: 80px auto 60px auto; /* Marge positive pour le placer en-dessous du Hero */
    padding: 0 20px;
}

.descriptif {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.img-container {
    flex-shrink: 0;
}

.img_lion {
    max-width: 280px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
    transition: var(--transition);
}

.img_lion:hover {
    transform: scale(1.03);
}

.total_resume {
    flex: 1;
}

.resume {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.resume h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
    display: inline-block;
}

.resume p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    text-align: justify;
}

/* --- FOOTER / COPYRIGHTS --- */
.copyrights {
    margin-top: auto;
    text-align: center;
    background-color: var(--bg-sidebar);
    color: var(--text-muted);
    padding: 24px 20px;
    font-size: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.copyrights p {
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.copyrights a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.copyrights a:hover {
    color: var(--primary);
}

/* --- RESPONSIVE MOBILE & TABLETTE --- */
@media (max-width: 950px) {
    .boutons_pages {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 12px !important;
    }

    .nav-links-main {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }

    .nav-btn-contact {
        position: static !important; /* Repasse dans le flux normal sur petit écran */
        width: 100%;
    }

    .nav-btn, .historique, .calendrier, .contact {
        min-width: auto !important;
        font-size: 0.85rem !important;
        padding: 10px 12px !important;
    }
}

@media (max-width: 768px) {
    .presentation-section {
        margin-top: 40px; /* Ajustement mobile */
    }

    .descriptif {
        flex-direction: column;
        padding: 25px;
        text-align: center;
    }

    .img_lion {
        max-width: 180px;
    }

    .resume h2 {
        font-size: 1.25rem;
    }

    .resume p {
        font-size: 0.88rem;
        text-align: left;
    }

    .devise {
        height: 70px !important;
        font-size: 1.25rem !important;
    }

    .boutons_pages {
        flex-wrap: wrap;
    }

    .nav-btn, .historique, .calendrier, .contact {
        flex: 1 1 calc(50% - 10px) !important;
        font-size: 0.85rem !important;
        padding: 10px 8px !important;
    }
}