/* --- VARIABLES --- */
:root {
    --couleur-jaune: #ffca28;
    --fond-sombre: #333333;
    --fond-gris: #f6f6f6;
    --texte-noir: #333333;
    --texte-blanc: #ffffff;
    --police-titre: 'Anton', sans-serif;
    --police-texte: 'Roboto', sans-serif;
}

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

body {
    font-family: var(--police-texte);
    color: var(--texte-noir);
    background-color: var(--texte-blanc);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Regle d'or pour eviter les images SVG geantes */
img {
    max-width: 100%;
    height: auto;
}

/* --- HEADER (Glassmorphism) --- */
.main-header {
    background-color: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 40px;
    border-radius: 50px;
    position: fixed;
    top: 20px;
    left: 10%;
    right: 10%;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    max-height: 50px;
    display: block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--texte-noir);
    font-family: var(--police-titre);
    font-weight: 400;
    font-size: 1.3rem;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--couleur-jaune);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.menu-toggle.active img {
    transform: rotate(90deg);
}

.btn-connexion,
.btn-primary {
    display: inline-flex;
    background-color: var(--couleur-jaune);
    color: var(--texte-noir);
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-family: var(--police-titre);
    font-weight: 400;
    font-size: 1.2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-items: center;
    gap: 0.5rem;
}

/* Icon inside buttons */
.btn-connexion img.btn-icon,
.btn-primary img.btn-icon {
    width: 1.4rem;
    height: auto;
    vertical-align: middle;
}

.btn-connexion:hover,
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 202, 40, 0.4);
}

/* --- HERO SECTION --- */
.hero-section {
    background-color: var(--fond-sombre);
    background-image: url('img/accueil.png');
    background-size: cover;
    background-position: center;
    color: var(--texte-blanc);
    padding: 150px 10% 50px 10%;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-content h1 {
    font-family: var(--police-titre);
    font-size: 4rem;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 10px;
}

.hero-content h2 {
    font-weight: 300;
    font-size: 1.5rem;
    margin-bottom: 40px;
}

/* Regles strictes pour les logos et icones du Hero */
.logo-trail {
    max-height: 80px;
    width: auto;
    margin-bottom: 15px;
    display: block;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    /* S'adapte sur les petits ecrans */
}

.social-icons {
    display: flex;
    align-items: center;
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--texte-blanc);
    width: 52px !important;
    /* Ajusté pour correspondre à la hauteur du bouton */
    height: 52px !important;
    border-radius: 50%;
    margin: 0 5px;
    transition: transform 0.3s ease, background-color 0.3s;
    overflow: hidden;
}

.icon img {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain;
}

.icon:hover {
    transform: scale(1.1);
    background-color: var(--couleur-jaune);
}

/* --- SCROLL ICON --- */
.scroll-icon {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    text-align: center;
}

.scroll-icon img {
    width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

/* --- CONTENU PRINCIPAL --- */
.disciplines-container {
    width: 80%;
    margin: 40px auto;
}

.discipline-row {
    display: flex;
    align-items: center;
    background-color: var(--fond-gris);
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
}

.discipline-row.reverse {
    flex-direction: row-reverse;
    background-color: var(--texte-blanc);
    border: 1px solid #eee;
}

.discipline-text {
    flex: 1;
    padding: 50px 8%;
}

.discipline-image {
    flex: 1;
}

.discipline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.discipline-text h3 {
    font-family: var(--police-titre);
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.discipline-text h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--texte-noir);
}

.right-align h3::after {
    left: auto;
    right: 0;
}

.right-align {
    text-align: right;
}

.discipline-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #444;
}

/* --- ANIMATION AU SCROLL --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- FOOTER --- */
.main-footer {
    background-color: #333333;
    color: var(--texte-blanc);
    padding: 60px 10% 20px 10%;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    border-bottom: 1px solid #555;
    padding-bottom: 40px;
    margin-bottom: 20px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-family: var(--police-titre);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    text-decoration: none;
    color: #cccccc;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--couleur-jaune);
}

.footer-bottom {
    text-align: center;
}

.social-icons-footer {
    margin-bottom: 15px;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
    .main-header {
        position: static;
        left: 0;
        right: 0;
        border-radius: 0;
        top: 0;
        padding: 10px 20px;
    }

    .header-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        width: 100%;
        display: none;
        animation: fadeIn 0.3s ease-in-out;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        margin: 15px 0;
        gap: 15px;
    }

    .btn-connexion {
        display: none;
        margin: 10px auto;
        width: max-content;
    }

    .main-nav.active~.btn-connexion {
        display: inline-flex;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .disciplines-container {
        width: 95%;
    }

    .discipline-row,
    .discipline-row.reverse {
        flex-direction: column;
    }

    .right-align {
        text-align: left;
    }

    .right-align h3::after {
        left: 0;
        right: auto;
    }
}

/* --- STYLES SPECIFIQUES AUX PAGES INTERNES (ENTRAINEMENTS) --- */

/* Mini bandeau d'en-tête */
.mini-hero {
    background-color: var(--fond-sombre);
    background-image: url('img/fond-hero.jpg');
    background-size: cover;
    background-position: center 20%;
    color: var(--texte-blanc);
    padding: 180px 10% 40px 10%;
    /* Increased top padding from 120px to 180px */
    text-align: center;
    position: relative;
}

.mini-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    /* Assombrit l'image pour lire le titre */
    z-index: 1;
}

.mini-hero .hero-content {
    position: relative;
    z-index: 2;
}

.page-container {
    width: 80%;
    margin: 60px auto;
}

.page-container h2 {
    font-family: var(--police-titre);
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--couleur-jaune);
    display: inline-block;
    padding-bottom: 5px;
}

/* Carte Prochaine Séance */
.prochaine-seance {
    margin-bottom: 60px;
}

.seance-card {
    background-color: var(--fond-gris);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border-left: 5px solid var(--couleur-jaune);
}

.seance-header {
    background-color: var(--texte-noir);
    color: var(--texte-blanc);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.discipline-tag {
    background-color: var(--couleur-jaune);
    color: var(--texte-noir);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-family: var(--police-titre);
    text-transform: uppercase;
}

.seance-body {
    padding: 30px;
    font-size: 1.1rem;
}

.seance-body p {
    margin-bottom: 10px;
}

/* Grille du planning de la semaine */
.planning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.planning-card {
    background-color: var(--texte-blanc);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.planning-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--couleur-jaune);
}

.planning-card h4 {
    font-family: var(--police-titre);
    font-size: 1.5rem;
    color: var(--texte-noir);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.planning-card .heure {
    font-weight: bold;
    color: #666;
    margin-bottom: 10px;
}

.planning-card .discipline {
    font-size: 1.2rem;
    color: var(--couleur-jaune);
    font-weight: bold;
    margin-bottom: 10px;
}

.planning-card .lieu {
    font-size: 0.9rem;
    color: #888;
}

@media (max-width: 900px) {
    .seance-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .page-container {
        width: 95%;
    }
}

/* --- PAGE LOADER --- */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--fond-gris);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-bars {
    display: flex;
    gap: 10px;
    height: 40px;
}

.loader-bars .bar {
    width: 12px;
    height: 100%;
    border-radius: 6px;
    animation: loader-bounce 1s ease-in-out infinite;
}

.bar-yellow {
    background-color: var(--couleur-jaune);
    animation-delay: 0s !important;
}

.bar-red {
    background-color: #e30613;
    /* Rouge */
    animation-delay: 0.15s !important;
}

.bar-black {
    background-color: var(--texte-noir);
    animation-delay: 0.3s !important;
}

@keyframes loader-bounce {

    0%,
    100% {
        transform: scaleY(0.5);
    }

    50% {
        transform: scaleY(1);
    }
}