/* --- CONFIGURATION GLOBALE --- */
:root {
    --bg-dark: #0a1128;
    --bg-card: #121b3a;
    --orange-primary: #f26522;
    --orange-hover: #d44d13;
    --text-white: #ffffff;
    --text-muted: #8fa0dd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
}

/* --- BANDEAU TICKET --- */
.ticket-banner {
    background-color: var(--bg-card);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 5%;
    border-bottom: 2px solid var(--orange-primary);
}

.banner-date {
    font-weight: bold;
    margin-right: 15px;
    font-size: 0.9rem;
}

.btn-ticket {
    background-color: var(--orange-primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.btn-ticket:hover {
    background-color: var(--orange-hover);
}

/* --- EN-TÊTE NAV --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: linear-gradient(180deg, rgba(10,17,40,1) 0%, rgba(10,17,40,0.8) 100%);
}

.club-logo {
    height: 60px;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.main-nav ul li a:hover {
    color: var(--orange-primary);
}

/* --- HERO BANNER --- */
.hero-section {
    background: linear-gradient(rgba(10,17,40,0.4), rgba(10,17,40,0.9)), url('hero-bg.jpg') center/cover;
    height: 60vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin: 15px 0;
    max-width: 600px;
}

.badge {
    background-color: rgba(255,255,255,0.1);
    padding: 4px 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.btn-orange {
    display: inline-block;
    background-color: var(--orange-primary);
    color: white;
    padding: 12px 28px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
}

/* --- MATCH CENTER --- */
.match-center {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px 5%;
}

.match-card, .mini-ranking {
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.league-tag {
    display: inline-block;
    color: var(--orange-primary);
    font-size: 0.8rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.vs-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 20px 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.score {
    font-size: 2rem;
    color: var(--orange-primary);
}

/* --- CLASSEMENT --- */
.mini-ranking ul {
    list-style: none;
    margin: 15px 0;
    text-align: left;
}

.mini-ranking li {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mini-ranking li.active {
    background-color: var(--orange-primary);
    font-weight: bold;
    border-radius: 4px;
}

.btn-orange-sm {
    display: inline-block;
    background-color: var(--orange-primary);
    color: white;
    padding: 6px 12px;
    font-size: 0.8rem;
    text-decoration: none;
    border-radius: 4px;
}

/* --- FIL INFO --- */
.news-section {
    padding: 40px 5%;
}

.news-list {
    margin: 20px 0;
}

.news-item {
    display: flex;
    align-items: center;
    background-color: var(--bg-card);
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 4px;
    position: relative;
}

.news-item::before {
    content: attr(data-date);
    font-weight: bold;
    color: var(--orange-primary);
    min-width: 80px;
    font-size: 0.9rem;
}

.news-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-right: 20px;
}

/* --- FOOTER --- */
.main-footer {
    background-color: #050917;
    padding: 50px 5% 20px;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-links ul {
    list-style: none;
    margin-top: 10px;
}

.footer-links ul li a {
    color: var(--text-muted);
    text-decoration: none;
    line-height: 2;
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
}

.footer-bottom a {
    color: var(--orange-primary);
    text-decoration: none;
}


/* --- SECTION EFFECTIF & CARROUSEL --- */
.roster-section {
    padding: 60px 5%;
    background-color: var(--bg-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.2rem;
    letter-spacing: 2px;
}

.sub-tag {
    display: inline-block;
    background-color: var(--orange-primary);
    color: white;
    font-size: 0.75rem;
    padding: 3px 10px;
    font-weight: bold;
    margin-top: 5px;
    border-radius: 3px;
}

/* Positionnement des flèches et du rail */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.carousel-container {
    overflow: hidden;
    width: 100%;
    padding: 10px 0;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* Cartes Joueurs */
.player-card {
    min-width: calc(25% - 15px); /* Affiche 4 joueurs simultanément sur grand écran */
    background: linear-gradient(180deg, #16224f 0%, var(--bg-card) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* Arrière-plan spécifique pour le gardien (Maillot Vert Menthe dans la maquette) */
.player-card.goalkeeper {
    background: linear-gradient(180deg, #113834 0%, var(--bg-card) 100%);
}

.player-image-box {
    position: relative;
    padding-top: 15px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.player-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.6));
}

.player-number {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.15);
}

.player-info {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-top: 2px solid var(--orange-primary);
}

.player-firstname {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.player-lastname {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-white);
    margin-top: 2px;
}

/* Boutons Flèches */
.carousel-btn {
    background-color: var(--orange-primary);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.carousel-btn:hover {
    background-color: var(--orange-hover);
    transform: scale(1.1);
}

.prev-btn { left: -25px; }
.next-btn { right: -25px; }

.text-center {
    text-align: center;
    margin-top: 20px;
}

/* Adaptabilité Mobile */
@media (max-width: 992px) {
    .player-card { min-width: calc(33.33% - 14px); } /* 3 Joueurs */
}
@media (max-width: 768px) {
    .player-card { min-width: calc(50% - 10px); } /* 2 Joueurs */
    .prev-btn { left: -10px; }
    .next-btn { right: -10px; }
}
@media (max-width: 480px) {
    .player-card { min-width: 100%; } /* 1 Joueur */
}


/* --- COMPOSANT DES STATISTIQUES --- */
.stats-section {
    padding: 50px 5%;
    background-color: var(--bg-dark);
}

.stats-container {
    max-width: 800px;
    margin: 0 auto;
}

.stats-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.stats-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.stats-card-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.stats-subtitle {
    color: var(--orange-primary);
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.btn-outline-orange {
    border: 1px solid var(--orange-primary);
    color: var(--text-white);
    text-decoration: none;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-outline-orange:hover {
    background-color: var(--orange-primary);
    color: white;
}

/* Zone focus joueur n°1 */
.top-performer {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(242,101,34,0.1) 0%, rgba(0,0,0,0) 100%);
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    border-left: 4px solid var(--orange-primary);
}

.performer-avatar-box {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    overflow: hidden;
    margin-right: 25px;
    border: 2px solid rgba(255,255,255,0.1);
}

.performer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.performer-details {
    flex-grow: 1;
    position: relative;
}

.rank-badge {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 2rem;
    font-weight: 900;
    color: rgba(242, 101, 34, 0.2);
}

.performer-firstname {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.performer-lastname {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-white);
    line-height: 1.2;
}

.main-stat {
    margin-top: 5px;
    display: flex;
    align-items: baseline;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--orange-primary);
    margin-right: 5px;
}

.stat-unit {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: bold;
}

/* Liste des barres de progression */
.stats-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ranking-item {
    display: flex;
    flex-direction: column;
}

.ranking-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.player-score {
    color: var(--orange-primary);
    font-weight: bold;
}

.progress-bar-container {
    background-color: rgba(255, 255, 255, 0.05);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f26522 0%, #ff8a4f 100%);
    border-radius: 3px;
    transform: scaleX(0); /* Géré par l'animation JS */
    transform-origin: left;
    transition: transform 1.2s cubic-bezier(0.1, 1, 0.1, 1);
}

/* Version Mobile adaptative */
@media (max-width: 576px) {
    .stats-card-header {
        flex-direction: column;
        gap: 15px;
    }
    .top-performer {
        flex-direction: column;
        text-align: center;
    }
    .performer-avatar-box {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .main-stat {
        justify-content: center;
    }
    .rank-badge {
        display: none;
    }
}



/* --- COMPOSANT PALMARÈS --- */
.trophy-section {
    padding: 60px 5%;
    background-color: #080d1f; /* Légèrement plus sombre pour contraster */
}

.section-title-container {
    text-align: center;
    margin-bottom: 50px;
}

.section-title-container h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 5px;
    letter-spacing: 1px;
}

/* Grille Responsive */
.trophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cartes des Trophées */
.trophy-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.02);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.trophy-card:hover {
    transform: translateY(-5px);
    border-color: rgba(242, 101, 34, 0.3);
}

/* Zone d'affichage de la coupe */
.trophy-display {
    position: relative;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.trophy-icon {
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 10px rgba(0,0,0,0.5)) grayscale(0.2);
    transition: filter 0.3s ease;
}

.trophy-card:hover .trophy-icon {
    filter: drop-shadow(0 10px 15px rgba(242,101,34,0.3)) grayscale(0);
}

/* Effet brillant doré exclusif pour le titre de champion 2012 */
.gold-glow {
    filter: drop-shadow(0 8px 12px rgba(212, 175, 55, 0.4)) !important;
}

/* Grand chiffre du nombre de titres */
.trophy-count {
    position: absolute;
    bottom: -10px;
    right: 25%;
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-white);
    line-height: 1;
    text-shadow: 2px 2px 0px var(--bg-card), 4px 4px 10px rgba(0,0,0,0.8);
}

/* Détails textuels */
.trophy-details h3 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    min-height: 44px; /* Aligne les textes sur plusieurs lignes */
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: bold;
    color: #8fa0dd; /* Bleu clair / Muted */
    border: 1px solid rgba(143, 160, 221, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.team-tag.women {
    color: #ff94b8; /* Teinte spécifique pour l'équipe féminine */
    border-color: rgba(255, 148, 184, 0.2);
}

.team-tag.u20 {
    color: #4fe3ff; /* Teinte spécifique pour les jeunes U20 */
    border-color: rgba(79, 227, 255, 0.2);
}

.trophy-years {
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--orange-primary);
}

.text-center-btn {
    text-align: center;
    margin-top: 45px;
}

/* Ajustements tablettes/mobiles */
@media (max-width: 768px) {
    .trophy-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }
    .trophy-count {
        right: 30%;
    }
}



/* --- COMPOSANT INSTAGRAM FEED --- */
.instagram-section {
    padding: 60px 5%;
    background-color: var(--bg-dark);
}

.instagram-header {
    text-align: center;
    margin-bottom: 40px;
}

.instagram-header h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.instagram-header .brand-text {
    color: var(--orange-primary);
    margin-left: 5px;
}

.btn-insta-handle {
    display: inline-block;
    background-color: var(--orange-primary);
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 8px 24px;
    border-radius: 20px;
    margin-top: 12px;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
}

.btn-insta-handle:hover {
    background-color: var(--orange-hover);
}

/* Configuration de la grille */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Conteneur des posts */
.insta-post-card {
    position: relative;
    aspect-ratio: 1 / 1; /* Force le format carré Instagram standard */
    background-color: rgba(255,255,255,0.02);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.insta-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Icône de type de contenu (Ex: Multi-photos) */
.post-type-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 5px;
    border-radius: 4px;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- CALQUE EXCLUSIF LECTURE VIDÉO --- */
.video-play-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.15); /* Voile léger initial */
    transition: background-color 0.3s ease;
}

/* Triangle de lecture Play */
.play-button-arrow {
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid white; /* Dessine le triangle */
    margin-left: 6px; /* Ajustement optique pour centrer le triangle */
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Animation au survol de la vidéo */
.insta-post-card.is-video:hover .play-button-arrow {
    transform: scale(1.2);
}

.insta-post-card.is-video:hover .video-play-layer {
    background-color: rgba(0, 0, 0, 0.4);
}

/* --- CALQUE GLOBAL DE SURVOL STANDARD (Likes / Vues) --- */
.insta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 17, 40, 0.7); /* Teinte bleu nuit club */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    z-index: 3;
    transition: opacity 0.3s ease;
}

.insta-overlay span {
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Comportement au survol complet de la carte */
.insta-post-card:hover .insta-overlay {
    opacity: 1;
}

.insta-post-card:hover .insta-img {
    transform: scale(1.05);
}

/* Adaptabilité Responsiveness de la grille */
@media (max-width: 992px) {
    .insta-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 sur tablettes */
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .insta-grid {
        grid-template-columns: 1fr; /* 1 seule colonne sur mobile */
    }
}



/* Alignement du logo de la compétition avec le texte */
.league-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Espace entre le logo et le texte */
    color: var(--orange-primary);
    font-size: 0.8rem;
    margin-bottom: 15px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Dimensionnement du logo de la Ligue 2 */
.league-logo {
    height: 20px; /* Taille adaptée pour rester discret mais visible */
    width: auto;
    object-fit: contain;
}



/* --- COMPOSANT TABLEAU DE CLASSEMENT --- */
.ranking-section {
    padding: 40px 5%;
    background-color: var(--bg-dark);
}

.ranking-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.ranking-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.league-tag-main {
    color: var(--orange-primary);
    font-weight: bold;
    font-size: 0.9rem;
}

/* Table Responsive Box */
.table-responsive {
    overflow-x: auto; /* Permet le défilement horizontal sur très petit écran */
}

.full-ranking-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

/* En-tête du tableau */
.full-ranking-table th {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 12px 8px;
    font-weight: bold;
}

/* Cellules du tableau */
.full-ranking-table td {
    padding: 14px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.95rem;
}

/* Alignements spécifiques colonnes */
.col-rank {
    width: 60px;
}

.col-club {
    text-align: left;
    width: 30%;
}

.club-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ranking-logo {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

/* Style de la colonne Points */
.col-pts {
    font-weight: 800;
    color: var(--text-white);
    width: 60px;
}

/* Mise en valeur de la ligne de Montpellier HSC */
.row-highlight-club {
    background-color: var(--orange-primary);
}

.row-highlight-club td {
    border-bottom: none;
}

.highlight-text {
    font-weight: bold;
    color: white;
}

/* Effet de survol sur les autres lignes */
.full-ranking-table tbody tr:not(.row-highlight-club):hover {
    background-color: rgba(255, 255, 255, 0.02);
}


/* Zone globale des sponsors en bas de carte */
.card-sponsors {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Petit texte indicatif */
.sponsor-title {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* Alignement horizontal des logos */
.sponsor-logos-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* Traitement graphique des images de sponsors */
.match-sponsor-logo {
    height: 18px; /* Hauteur harmonieuse pour ne pas surcharger la carte */
    width: auto;
    object-fit: contain;
    opacity: 0.6; /* Effet de transparence initial */
    filter: brightness(0) invert(1); /* Aligne automatiquement tous les logos en blanc pur */
    transition: opacity 0.3s ease;
}

/* Effet au survol de la carte ou du logo */
.match-card:hover .match-sponsor-logo {
    opacity: 0.9;
}



/* --- COMPOSANT NEWSLETTER --- */
.newsletter-section {
    background: linear-gradient(135deg, #121b3a 0%, #0a1128 100%);
    padding: 50px 5%;
    border-top: 2px solid var(--orange-primary);
    border-bottom: 2px solid var(--orange-primary);
}

.newsletter-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.newsletter-text {
    flex: 1;
}

.newsletter-text h2 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.newsletter-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.newsletter-form {
    flex: 1;
    width: 100%;
}

/* Alignement du champ et du bouton */
.input-group {
    display: flex;
    width: 100%;
    margin-bottom: 12px;
}

.input-group input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px 0 0 4px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input[type="email"]:focus {
    border-color: var(--orange-primary);
}

.btn-submit {
    background-color: var(--orange-primary);
    color: white;
    border: none;
    padding: 0 25px;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: var(--orange-hover);
}

/* Case à cocher RGPD */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--orange-primary);
}

.checkbox-group label {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    cursor: pointer;
}

/* Version Mobile */
@media (max-width: 768px) {
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    .input-group {
        flex-direction: column;
        gap: 10px;
    }
    .input-group input[type="email"], .btn-submit {
        border-radius: 4px;
        padding: 14px;
    }
    .checkbox-group {
        text-align: left;
    }
}



/* --- MINI CLASSEMENT --- */
.mini-ranking {
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mini-ranking h3 {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.mini-ranking-list {
    list-style: none;
    margin: 15px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Ligne générique de classement */
.ranking-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: background 0.2s ease;
}

.ranking-row:hover:not(.active-row) {
    background-color: rgba(255, 255, 255, 0.05);
}

.club-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rank-num {
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--text-muted);
    min-width: 15px;
}

.mini-club-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.club-name {
    font-size: 0.95rem;
}

.club-pts {
    font-weight: bold;
    font-size: 0.9rem;
}

/* Style de mise en valeur pour Montpellier HSC */
.active-row {
    background-color: var(--orange-primary) !important;
    border-color: var(--orange-primary);
}

.active-row .rank-num,
.active-row .club-name,
.active-row .club-pts {
    color: #ffffff;
    font-weight: bold;
}

.ranking-footer {
    margin-top: 10px;
}

/* Ajustement de la grille pour accueillir 3 éléments sur grand écran */
@media (min-width: 992px) {
    .match-center {
        grid-template-columns: repeat(3, 1fr); /* Aligne les 3 blocs côte à côte */
    }
}



/* --- FOOTER MODERNE --- */
.main-footer {
    background-color: #040814; /* Bleu nuit encore plus profond */
    position: relative;
    padding-top: 40px;
    margin-top: 60px;
}

/* Ligne supérieure décorative orange */
.footer-top-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--orange-primary) 0%, #ff8a4f 100%);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 5% 40px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

/* Colonne de marque */
.footer-brand-col {
    flex: 1.5;
    min-width: 250px;
}

.footer-logo {
    height: 70px;
    object-fit: contain;
    margin-bottom: 12px;
}

.footer-brand-text {
    font-size: 0.9rem;
    color: var(--text-white);
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
}

/* Bloc Réseaux Sociaux */
.social-box h4 {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--orange-primary);
    border-color: var(--orange-primary);
    color: white;
    transform: translateY(-3px);
}

/* Colonnes de liens */
.footer-links-col {
    flex: 1;
    min-width: 180px;
}

.footer-links-col h4 {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: 1px;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
}

/* Petite barre d'accent sous les titres de colonnes */
.footer-links-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--orange-primary);
}

.footer-links-col ul {
    list-style: none;
    padding: 0;
}

.footer-links-col ul li {
    margin-bottom: 10px;
}

.footer-links-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links-col ul li a:hover {
    color: var(--orange-primary);
    padding-left: 4px; /* Léger décalage dynamique au survol */
}

/* Zone bas de page mentions */
.footer-bottom {
    background-color: #02050d;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 20px 5%;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-bottom-content a {
    color: var(--orange-primary);
    text-decoration: none;
    font-weight: bold;
}

.footer-bottom-content a:hover {
    text-decoration: underline;
}

/* Adaptabilité Écrans Mobiles */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 35px;
    }
    .footer-brand-col {
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
    .footer-links-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-links-col {
        text-align: center;
    }
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}



/* --- BANDEAU TICKET SUPÉRIEUR --- */
.ticket-banner {
    background-color: var(--bg-card);
    border-bottom: 2px solid var(--orange-primary);
    padding: 10px 5%;
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.banner-date {
    font-weight: bold;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: var(--text-white);
}

.btn-ticket {
    background-color: var(--orange-primary);
    color: white;
    padding: 6px 18px;
    text-decoration: none;
    font-weight: 800;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-ticket:hover {
    background-color: var(--orange-hover);
    transform: scale(1.03);
}

/* --- HEADER PRINCIPAL --- */
.main-header {
    background-color: rgba(10, 17, 40, 0.95);
    backdrop-filter: blur(8px); /* Effet flou moderne en arrière-plan */
    position: sticky;
    top: 0;
    z-index: 100; /* Reste toujours au-dessus du contenu au défilement */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.club-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.club-logo:hover {
    transform: rotate(5deg) scale(1.05);
}

/* Navigation Bureau */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--orange-primary);
}

/* Barre d'accentuation animée sous les liens au survol */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--orange-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.mobile-only {
    display: none;
}

/* --- DESIGN RESPONSIVE & MENU MOBILE --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Affiche le bouton hamburgé */
    }

    /* Transformation de la barre de navigation en rideau latéral complet */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Masqué par défaut à droite */
        width: 75%;
        height: 100vh;
        background-color: #060b1a;
        padding: 100px 10% 40px;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .main-nav.open {
        right: 0; /* Déploiement du menu */
    }

    .main-nav ul {
        flex-direction: column;
        gap: 25px;
    }

    .nav-link {
        font-size: 1.2rem;
        display: block;
    }

    .mobile-only {
        display: block;
        margin-top: 20px;
    }

    .nav-link-orange {
        display: block;
        text-align: center;
        background-color: var(--orange-primary);
        color: white;
        text-decoration: none;
        padding: 12px;
        font-weight: bold;
        border-radius: 4px;
    }

    /* Animation du bouton Hamburgé en croix (X) quand ouvert */
    .menu-toggle.open .bar:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }
    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.open .bar:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }
}


/* --- GRAND CARROUSEL HÉROS --- */
.hero-carousel-section {
    position: relative;
    width: 100%;
    height: 75vh; /* Grande hauteur immersive */
    overflow: hidden;
    background-color: #070d1f;
}

.carousel-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Style de chaque diapositive */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 8%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 1;
}

/* La diapositive active prend le dessus */
.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Zone de contenu de la diapositive */
.slide-content {
    max-width: 700px;
    transform: translateY(20px);
    transition: transform 0.6s ease-out 0.2s;
}

.slide.active .slide-content {
    transform: translateY(0);
}

.badge-club {
    display: inline-block;
    background-color: var(--orange-primary);
    color: white;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.slide-content h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 15px;
    color: white;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.slide-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.btn-orange {
    display: inline-block;
    background-color: var(--orange-primary);
    color: white;
    padding: 14px 32px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(242, 101, 34, 0.4);
}

.btn-orange:hover {
    background-color: var(--orange-hover);
    transform: translateY(-2px);
}

/* --- FLÈCHES DE NAVIGATION --- */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(10, 17, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}

.nav-arrow:hover {
    background-color: var(--orange-primary);
    border-color: var(--orange-primary);
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow.prev { left: 25px; }
.nav-arrow.next { right: 25px; }

/* --- INDICATEURS DE POSITION (DOTS) --- */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: var(--orange-primary);
    width: 28px; /* Effet étiré moderne sur le point actif */
    border-radius: 6px;
}

/* Adaptabilité Mobile */
@media (max-width: 768px) {
    .hero-carousel-section { height: 60vh; }
    .slide-content h1 { font-size: 2.2rem; }
    .slide-content p { font-size: 1rem; }
    .nav-arrow { display: none; } /* On cache les flèches sur mobile pour privilégier le tactile */
}



html {
    scroll-behavior: smooth;
    /* Compense la hauteur du header fixe pour que le titre de la section ne soit pas caché en dessous */
    scroll-padding-top: 90px; 
}


/* --- SECTION FIL INFOS & TIMELINE --- */
.news-section {
    padding: 60px 5%;
    background-color: var(--bg-dark);
}

.news-header-block {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto 40px;
}

.news-header-block h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.news-count-badge {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--orange-primary);
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Conteneur principal de la liste */
.news-timeline-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Élément individuel (Ligne de la timeline) */
.news-timeline-item {
    display: flex;
    background-color: var(--bg-card);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-left: 4px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-timeline-item:hover {
    transform: translateX(5px);
    border-left-color: var(--orange-primary);
}

/* Colonne Date Gauche */
.news-date-col {
    background-color: rgba(0, 0, 0, 0.15);
    min-width: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.news-day {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--orange-primary);
    line-height: 1;
}

.news-month {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--text-white);
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* Colonne Contenu Droite */
.news-content-col {
    padding: 20px 25px;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

/* Badges de catégories */
.news-category-badge {
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.category-masc {
    background-color: rgba(143, 160, 221, 0.15);
    color: #8fa0dd;
}

.category-stats {
    background-color: rgba(79, 227, 255, 0.15);
    color: #4fe3ff;
}

.news-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Titre de l'actualité */
.news-title-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.3;
    margin-bottom: 6px;
}

/* Extrait ou description courte */
.news-excerpt {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.news-footer-actions {
    text-align: center;
    margin-top: 35px;
}

/* Adaptabilité Écrans Mobiles */
@media (max-width: 576px) {
    .news-timeline-item {
        flex-direction: column; /* Bascule la date au-dessus du texte sur mobile */
    }
    .news-date-col {
        flex-direction: row;
        min-width: 100%;
        justify-content: flex-start;
        gap: 10px;
        padding: 10px 20px;
    }
    .news-day { font-size: 1.3rem; }
    .news-month { margin-top: 0; font-size: 0.8rem; }
    .news-content-col { padding: 15px 20px; }
}


/* --- GRILLE ASYMÉTRIQUE DU DASHBOARD --- */
.match-center-layout {
    display: grid;
    grid-template-columns: 1.7fr 1.3fr; /* Respect strict des proportions de la maquette */
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 5%;
}

.matches-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* --- DESIGN DES BLOCS DE MATCH --- */
.match-box {
    background-color: var(--bg-card);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
}

.border-orange { border-top: 4px solid var(--orange-primary); }
.border-blue { border-top: 4px solid var(--text-muted); }

/* Badge de Statut (Dernier Résultat / Prochaine Rencontre) */
.match-status-badge {
    position: absolute;
    top: 0;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 6px 12px;
    font-size: 0.65rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    border-radius: 0 0 4px 4px;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: none;
}

.match-body {
    padding: 40px 30px 20px;
    text-align: center;
}

.competition-info {
    color: var(--orange-primary);
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

/* Ligne d'affrontement */
.versus-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.club-side {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.home-team { justify-content: flex-end; text-align: right; }
.away-team { justify-content: flex-start; text-align: left; }

.club-name-text {
    font-size: 1.1rem;
    font-weight: 800;
}

/* Cadre circulaire pour les blasons */
.club-logo-wrapper {
    width: 55px;
    height: 55px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.logo-img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

/* Score central & Badge VS */
.score-display {
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 6px 18px;
    border-radius: 4px;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--orange-primary);
    letter-spacing: 1px;
}

.vs-badge {
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.04);
    padding: 4px 10px;
    border-radius: 12px;
}

.match-meta {
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Pied de carte Sponsors */
.match-sponsors-bar {
    background-color: rgba(0, 0, 0, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bar-title {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: bold;
    letter-spacing: 0.5px;
}

.bar-logos {
    display: flex;
    gap: 12px;
}

.sponsor-mono {
    height: 12px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.35;
}

/* --- SECTION DE DROITE : CLASSEMENT --- */
.ranking-aside-box {
    background-color: var(--bg-card);
    border-radius: 6px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    border: 1px solid rgba(255, 255, 255, 0.02);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ranking-aside-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.ranking-aside-header h3 {
    font-size: 1.25rem;
    font-weight: 900;
}

.ranking-aside-league {
    font-size: 0.75rem;
    color: var(--orange-primary);
    font-weight: bold;
}

.ranking-aside-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.ranking-aside-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.row-club-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.row-index {
    font-weight: bold;
    font-size: 0.85rem;
    color: var(--text-muted);
    width: 15px;
}

.row-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.row-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.row-pts {
    font-weight: 800;
    font-size: 0.9rem;
}

.row-pts small {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Ligne Active MHSC */
.active-club-row {
    background-color: var(--orange-primary);
}

.active-club-row .row-index,
.active-club-row .row-name,
.active-club-row .row-pts,
.active-club-row .row-pts small {
    color: white;
}

/* Bouton bas de bloc */
.ranking-aside-footer {
    margin-top: 20px;
}

.btn-outline-block {
    display: block;
    text-align: center;
    border: 1px solid var(--orange-primary);
    color: var(--text-white);
    padding: 12px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-outline-block:hover {
    background-color: var(--orange-primary);
}

/* --- RE-COUPAGE COMPATIBILITÉ MOBILE --- */
@media (max-width: 992px) {
    .match-center-layout {
        grid-template-columns: 1fr; /* Les blocs s'empilent verticalement sur tablette/mobile */
    }
}

@media (max-width: 640px) {
    .versus-row { flex-direction: column; gap: 15px; }
    .home-team { flex-direction: column-reverse; justify-content: center; text-align: center; }
    .away-team { flex-direction: column; justify-content: center; text-align: center; }
    .match-sponsors-bar { flex-direction: column; gap: 10px; }
}



/* --- VARIABLES ET RESET COMPOSANT --- */
:root {
    --mhsc-dark-blue: #040914;
    --mhsc-orange: #f26522;
    --mhsc-royal-blue: #00458e;
}

.mhsc-header {
    background-color: rgba(4, 9, 20, 0.85);
    backdrop-filter: blur(10px);
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    font-family: 'Arial', sans-serif;
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* --- STRUCTURE GAUCHE --- */
.header-left {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
}

/* Bouton Hamburger Exact */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.hamburger-bar {
    display: block;
    width: 22px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-item {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.nav-item:hover {
    color: var(--mhsc-orange);
}

/* --- STRUCTURE CENTRALE --- */
.header-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-link {
    display: block;
    position: relative;
    z-index: 10;
}

.mhsc-crest {
    height: 52px;
    width: auto;
    object-fit: contain;
}

/* --- STRUCTURE DROITE --- */
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex: 1;
}

/* Boutons d'actions asymétriques arrondis */
.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.action-btn:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

.btn-billetterie {
    background-color: var(--mhsc-orange);
}

.btn-store {
    background-color: var(--mhsc-royal-blue);
}

/* Outil Recherche */
.search-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 5px;
    transition: color 0.2s;
}

.search-btn:hover {
    color: var(--mhsc-orange);
}

/* Sélecteur de langue */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    padding: 5px;
}

.lang-arrow {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --- DESIGN RESPONSIVE SMARTPHONE --- */
@media (max-width: 1024px) {
    .nav-menu {
        display: none; /* Masque les liens textes directs sur tablette et mobile */
    }
}

@media (max-width: 768px) {
    .action-btn span {
        display: none; /* Épargne de la place en cachant les textes des boutons */
    }
    .action-btn {
        padding: 10px; /* Transforme les capsules en cercles compacts */
    }
}



/* Positionnement du bloc parent */
.lang-selector {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
}

/* Liste déroulante des langues */
.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #040914;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    list-style: none;
    padding: 5px 0;
    margin-top: 5px;
    width: 60px;
    display: none; /* Masqué par défaut */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

/* Affichage de la liste via JavaScript */
.lang-dropdown.show {
    display: block;
}

.lang-dropdown li {
    padding: 8px 12px;
    text-align: center;
    color: #ffffff;
    transition: background-color 0.2s, color 0.2s;
}

.lang-dropdown li:hover {
    background-color: var(--mhsc-orange);
    color: white;
}


/* Masque définitivement la bannière publicitaire supérieure de Google Translate */
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important; /* Empêche Google de décaler le site vers le bas */
    position: static !important;
}

/* Masque les encadrés d'infobulles au survol des textes traduits */
.goog-tooltip, .goog-tooltip:hover {
    display: none !important;
    box-shadow: none !important;
}
.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box;
}


/* Conteneur parent du sélecteur */
.lang-selector {
    position: relative; /* Indispensable pour aligner la liste en dessous */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
    user-select: none;
    z-index: 1000; /* Force le bouton à rester au-dessus du carrousel */
}

/* La liste déroulante (masquée par défaut) */
.lang-dropdown {
    position: absolute;
    top: 100%; /* Se place pile sous le texte FR */
    right: 0;
    background-color: #040914; /* Fond bleu nuit identique à l'en-tête */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    list-style: none;
    padding: 5px 0;
    margin: 5px 0 0 0;
    min-width: 65px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    
    /* Blocage initial */
    display: none; 
    z-index: 9999; /* Force la liste à s'afficher au-dessus de TOUT le site */
}

/* CLASSE DE DÉBLOCAGE : Appliquée par le JavaScript au clic */
.lang-dropdown.show {
    display: block !important;
}

/* Style des options de langue (EN, ES...) */
.lang-dropdown li {
    padding: 8px 14px;
    text-align: center;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: bold;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Effet au survol d'une langue */
.lang-dropdown li:hover {
    background-color: #f26522; /* Passe en orange MHSC au survol */
    color: #ffffff;
}


/* Permet d'afficher la liste quand la classe .show est ajoutée */
.lang-dropdown.show {
    display: block !important;
}

/* Force le bouton à ne pas se faire traduire visuellement par Google */
.notranslate {
    translate: no;
}



/* Animation de l'icône Hamburgé en croix (X) */
#menu-toggle-btn.open .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#menu-toggle-btn.open .hamburger-bar:nth-child(2) {
    opacity: 0; /* Masque la barre centrale */
}

#menu-toggle-btn.open .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Optionnel : transition fluide sur les barres */
.hamburger-bar {
    transition: all 0.3s ease;
}


/* Conteneur du bouton Hamburger */
.hamburger-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px; /* Hauteur globale pour créer l'espace entre les barres */
    padding: 0;
    z-index: 1001;
}

/* Style individuel des 3 barres */
.hamburger-bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* --- ANIMATION EN CROIX (X) AU CLIC --- */
.hamburger-btn.open .hamburger-bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger-btn.open .hamburger-bar:nth-child(2) {
    opacity: 0; /* Masque la barre du milieu */
}

.hamburger-btn.open .hamburger-bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* --- AFFICHAGE DU RIDEAU DE NAVIGATION --- */
.main-nav {
    position: fixed;
    top: 0;
    right: -100%; /* Caché à droite par défaut */
    width: 75%;
    height: 100vh;
    background-color: #040914;
    transition: right 0.4s ease;
    z-index: 1000;
}

/* Quand le menu est ouvert, il glisse à l'écran */
.main-nav.open {
    right: 0;
}


@media (max-width: 768px) {
    /* Transforme la barre horizontale en rideau vertical masqué à droite */
    .nav-menu.main-nav {
        display: flex !important; /* Force l'affichage flex */
        flex-direction: column;
        gap: 20px;
        position: fixed;
        top: 0;
        right: -100%; /* Totalement invisible hors de l'écran */
        width: 75%;
        height: 100vh;
        background-color: #040914; /* Fond bleu nuit officiel */
        padding: 100px 10% 40px;
        transition: right 0.4s ease;
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    /* Déploie le rideau à l'écran quand la classe .open est activée */
    .nav-menu.main-nav.open {
        right: 0;
    }

    /* Augmente la surface de clic des liens sur smartphone */
    .nav-item {
        font-size: 1.2rem;
        display: block;
        padding: 10px 0;
    }
}


/* --- CONFIGURATION ORDINATEUR / LARGE ÉCRAN --- */
@media (min-width: 769px) {
    .hamburger-btn {
        display: none !important; /* Masque le bouton sur ordinateur */
    }
    .nav-menu {
        display: flex !important;
        gap: 20px;
    }
}

/* --- CONFIGURATION MOBILE / PETIT ÉCRAN --- */
@media (max-width: 768px) {
    /* Assure que le parent ne masque pas le rideau */
    .header-left {
        display: flex;
        align-items: center;
    }

    /* Force l'affichage et l'espacement des 3 barres blanches */
    .hamburger-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10001; /* Reste au-dessus du rideau */
    }

    .hamburger-bar {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #ffffff;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* Animation du bouton en croix (X) */
    .hamburger-btn.open .hamburger-bar:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }
    .hamburger-btn.open .hamburger-bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger-btn.open .hamburger-bar:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    /* Transformation de la liste en rideau mobile complet */
    .nav-menu {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start;
        gap: 25px;
        
        position: fixed !important;
        top: 0 !important;
        right: -100% !important; /* Masqué à droite au départ */
        
        width: 75vw;
        height: 100vh;
        background-color: #040914 !important; /* Fond bleu nuit */
        padding: 100px 10% 40px !important;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        transition: right 0.4s cubic-bezier(0.1, 1, 0.1, 1) !important;
        z-index: 10000;
    }

    /* Déploiement du rideau à l'écran */
    .nav-menu.open {
        right: 0 !important;
    }

    .nav-item {
        font-size: 1.2rem !important;
        color: #ffffff !important;
        display: block;
        width: 100%;
    }
}


@media (max-width: 768px) {
    /* CONTENEUR DU RIDEAU MOBILE */
    #mobile-navbar {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0; /* Géré par les paddings des liens pour une plus grande zone tactile */
        
        /* Positionnement absolu fixe */
        position: fixed !important;
        top: 0 !important;
        right: -100% !important; /* Caché par défaut à droite */
        width: 80vw; /* Prend 80% de la largeur de l'écran */
        max-width: 320px;
        height: 100vh;
        
        /* Habillage Visuel (Bleu nuit profond avec flou de texture) */
        background-color: rgba(4, 9, 20, 0.96) !important; 
        backdrop-filter: blur(15px);
        padding: 90px 30px 40px !important;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        
        /* Animation d'ouverture fluide */
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
        z-index: 9999;
    }

    /* ÉTAT OUVERT (Activé par le JavaScript) */
    #mobile-navbar.open {
        right: 0 !important;
    }

    /* LES LIENS DU MENU (`.nav-item`) */
    #mobile-navbar .nav-item {
        display: block;
        width: 100%;
        color: #ffffff !important;
        text-decoration: none;
        font-size: 1.15rem !important;
        font-weight: 800;
        letter-spacing: 1px;
        padding: 16px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        
        /* État initial pour l'animation d'apparition en cascade */
        opacity: 0;
        transform: translateX(20px);
        transition: color 0.3s, padding-left 0.3s, opacity 0.4s, transform 0.4s;
    }

    /* ANIMATION EN CASCADE LORSQUE LE MENU S'OUVRE */
    #mobile-navbar.open .nav-item {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Décalage temporel de l'apparition pour chaque lien (effet de vague) */
    #mobile-navbar.open .nav-item:nth-child(1) { transition-delay: 0.1s; }
    #mobile-navbar.open .nav-item:nth-child(2) { transition-delay: 0.15s; }
    #mobile-navbar.open .nav-item:nth-child(3) { transition-delay: 0.2s; }
    #mobile-navbar.open .nav-item:nth-child(4) { transition-delay: 0.25s; }

    /* EFFET AU CLIC OU AU TOUCHER (SURVOL MOBILE) */
    #mobile-navbar .nav-item:active,
    #mobile-navbar .nav-item:hover {
        color: #f26522 !important; /* Couleur orange MHSC */
        padding-left: 8px; /* Léger décalage vers la droite */
        border-bottom-color: rgba(242, 101, 34, 0.3);
    }

    /* Retrait de la bordure sur le tout dernier lien pour un rendu plus propre */
    #mobile-navbar .nav-item:last-child {
        border-bottom: none;
    }
}



/* --- COMPOSANT BOUTON FLOTTANT GLOBAL --- */
.floating-ticket-cta {
    position: fixed;
    bottom: 25px; /* Distance depuis le bas de l'écran */
    right: 25px;  /* Distance depuis la droite de l'écran */
    z-index: 99999; /* Force le composant à rester au-dessus de TOUT le site */
    
    background-color: #0c1530; /* Fond bleu nuit officiel du club */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--orange-primary, #f26522); /* Rappel de la ligne orange */
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Effet de lévitation au survol */
.floating-ticket-cta:hover {
    transform: translateY(-5px);
}

/* Alignement des mini-blasons */
.floating-logos {
    display: flex;
    align-items: center;
    gap: 6px;
}

.float-crest {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Zone d'informations textuelles */
.floating-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.float-date {
    font-size: 0.7rem;
    font-weight: bold;
    color: #8fa0dd; /* Couleur muted text */
    letter-spacing: 0.5px;
}

/* Design du bouton interne orange */
.btn-float-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--orange-primary, #f26522);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 6px 14px;
    border-radius: 20px;
    transition: background-color 0.2s ease;
}

.btn-float-action:hover {
    background-color: var(--orange-hover, #d44d13);
}

.float-arrow {
    transition: transform 0.2s;
}

.btn-float-action:hover .float-arrow {
    transform: translateX(2px); /* Décale la flèche au survol */
}

/* --- ADAPTABILITÉ RESPONSIVE COMPACTE --- */
@media (max-width: 480px) {
    .floating-ticket-cta {
        bottom: 15px;
        right: 15px;
        padding: 10px 12px;
        gap: 10px;
    }
    .float-date {
        display: none; /* Épargne l'espace sur les très petits écrans de téléphones */
    }
}



/* --- CONTENEUR GLOBAL FLOTTANT FIXED (BAS DROITE) --- */
.match-banner-floating {
    position: fixed;
    bottom: 25px; /* Aligné en bas */
    right: 25px;  /* Aligné à droite */
    z-index: 99999; /* Toujours au-dessus de tout le site */
    
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: 'Arial', sans-serif;
}

/* --- BOUTON FLÈCHE CIRCULAIRE GAUCHE --- */
.banner-circle-arrow {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: radial-gradient(circle, #f26522 0%, #762a07 100%); /* Dégradé orange brûlé vers marron */
    border: 12px solid #33211c; /* Double cercle épais marron transparent */
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    padding: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-circle-arrow:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(242, 101, 34, 0.3);
}

/* --- BLOC PRINCIPAL DE DROITE (FOND BLEU NUIT) --- */
.banner-main-box {
    background-color: #0b122c; /* Bleu nuit très profond exact de la maquette */
    padding: 20px 24px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 260px;
}

/* Alignement et dimensionnement des logos */
.banner-clubs-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.club-crest-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

/* Bloc d'informations inférieur */
.banner-info-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

/* Texte de la date en gras blanc pur */
.banner-date-text {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Bouton d'action pilule Orange */
.banner-cta-orange {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #f26522; /* Orange vif de la charte MHSC */
    color: #ffffff;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    border-radius: 25px; /* Forme capsule / pilule parfaite */
    box-shadow: 0 4px 12px rgba(242, 101, 34, 0.2);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.banner-cta-orange:hover {
    background-color: #d44d13; /* Orange plus sombre au survol */
    transform: translateY(-1px);
}

/* --- COMPATIBILITÉ ÉCRANS SMARTPHONES --- */
@media (max-width: 480px) {
    .match-banner-floating {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }
    .banner-circle-arrow {
        width: 52px;
        height: 52px;
        border-width: 8px;
    }
    .banner-main-box {
        padding: 15px 18px;
        min-width: 210px;
    }
    .club-crest-img {
        height: 40px;
    }
    .banner-date-text {
        font-size: 1rem;
    }
}


/* --- BOUTON FLÈCHE CIRCULAIRE AVEC EFFET DE VAGUES --- */
.banner-circle-arrow {
    position: relative; /* Indispensable pour ancrer les vagues autour */
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: radial-gradient(circle, #f26522 0%, #762a07 100%);
    border: 12px solid #33211c;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    padding: 0;
    transition: transform 0.3s ease;
    z-index: 2; /* Reste au-dessus de ses propres vagues */
}

/* --- STRUCTURE COMMUNE DES ONDES (VAGUES) --- */
.banner-circle-arrow::before,
.banner-circle-arrow::after {
    content: '';
    position: absolute;
    top: -12px;  /* Aligné sur la bordure marron */
    left: -12px; /* Aligné sur la bordure marron */
    right: -12px;
    bottom: -12px;
    border-radius: 50%;
    /* Crée un anneau orange translucide identique à l'image */
    border: 4px solid rgba(242, 101, 34, 0.6); 
    background-color: rgba(242, 101, 34, 0.05);
    z-index: -1; /* Se déploie derrière le bouton */
    pointer-events: none; /* N'interfère pas avec les clics */
    
    /* Application de l'animation de vague */
    animation: pulse-wave 3s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}

/* Décalage de la deuxième vague pour créer un effet de vagues successives */
.banner-circle-arrow::after {
    animation-delay: 1.5s;
}

/* --- ANIMATION DES VAGUES EN CONTINU --- */
@keyframes pulse-wave {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: scale(1.6); /* La vague s'agrandit de 60% */
        opacity: 0;           /* La vague s'efface totalement à la fin */
    }
}

/* Effet au survol : accélère légèrement le rythme des vagues */
.banner-circle-arrow:hover {
    transform: scale(1.05);
}



/* --- ÉTAT INITIAL DU LOGO (TOUT EN HAUT DE LA PAGE) --- */
.mhsc-crest {
    height: 55px; /* Taille de base normale de votre en-tête */
    width: auto;
    object-fit: contain;
    
    /* Animation ultra-fluide pour éviter les saccades au défilement */
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s ease; 
    transform-origin: center;
}

/* --- ÉTAT AGRANDI (DÉCLENCHÉ EN SCROLLANT VERS LE BAS) --- */
.mhsc-crest.grow-on-scroll {
    height: 80px; /* Le logo s'agrandit à 80px (ajustable selon vos besoins) */
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3)); /* Ajoute du relief à l'agrandissement */
}


.mhsc-header {
    position: fixed; /* ou sticky */
    top: 42px; /* Descend l'en-tête de 42px depuis le haut absolu de l'écran */
    left: 0;
    width: 100%;
    z-index: 1000;
    
    /* Animation fluide au cas où la valeur changerait en JavaScript */
    transition: top 0.3s ease; 
}


.mhsc-header {
    margin-top: 20px; /* Pousse tout le bloc de l'en-tête vers le bas de 20px */
}



.mhsc-header {
    /* Rend le fond 100% transparent */
    background-color: transparent !important; 
    
    /* Supprime les filtres de floutage s'ils étaient activés */
    backdrop-filter: none !important; 
    
    /* Supprime la bordure du bas pour fusionner l'en-tête avec le carrousel héros */
    border-bottom: none !important; 
    
    /* Optionnel : supprime l'ombre portée si elle existe */
    box-shadow: none !important; 
}


/* Rappel de la règle sur vos slides pour assombrir le haut de l'image sous le texte */
.slide {
    background-image: linear-gradient(180deg, rgba(10, 17, 40, 0.7) 0%, rgba(10, 17, 40, 0.2) 40%, rgba(10, 17, 40, 0.9) 100%);
}

/* --- CONFIGURATION RESPONSIVE MOBILE / PETIT ÉCRAN --- */
@media (max-width: 768px) {
    /* Cache l'intégralité du bloc contenant les boutons et la recherche */
    .header-right {
        display: none !important;
    }
}


@media (max-width: 768px) {
    /* Cache uniquement les deux boutons capsules et l'icône de recherche */
    .header-right .btn-billetterie,
    .header-right .btn-store,
    .header-right .search-btn {
        display: none !important;
    }
    
    /* Optionnel : aligne proprement le sélecteur de langue restant à droite */
    .header-right {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }
}


/* --- CONFIGURATION POUR PETIT ÉCRAN (MOBILE & TABLETTE) --- */
@media (max-width: 768px) {
    
    /* 1. Masque uniquement les deux boutons capsules et la loupe */
    .header-right .btn-billetterie,
    .header-right .btn-store,
    .header-right .search-btn {
        display: none !important;
    }
    
    /* 2. Assure que le bloc parent reste actif et aligne la langue proprement à droite */
    .header-right {
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
        flex: 1; /* Permet d'occuper l'espace disponible à droite */
    }

    /* 3. Ajuste le style du sélecteur de langue pour le rendre bien visible sur mobile */
    .header-right #lang-btn {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        color: #ffffff;
        font-weight: bold;
        padding: 8px 12px;
        background-color: rgba(255, 255, 255, 0.05); /* Léger fond pour l'ergonomie tactile */
        border-radius: 4px;
        z-index: 10002; /* Reste visible au-dessus du rideau de navigation mobile */
    }

    /* 4. Force la liste déroulante des langues à s'ouvrir correctement sur mobile */
    .header-right #lang-list {
        background-color: #040914; /* Fond bleu nuit opaque pour la lisibilité */
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
}


/* --- CONFIGURATION GLOBALE DE LA SECTION --- */
.roster-section {
    background-color: #060b16; /* Fond bleu nuit très sombre comme sur l'image */
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

/* --- BOUTONS FLÉCHÉS DU CARROUSEL (SIDES) --- */
.carousel-wrapper {
    position: relative;
    max-width: 94%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.8rem; /* Flèches fines et épurées de la maquette */
    cursor: pointer;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
    padding: 10px;
}

.carousel-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: -15px; }
.next-btn { right: -15px; }

/* --- CONTENEUR DES CARTES --- */
.carousel-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 16px; /* Espacement serré entre les fiches joueurs */
}

/* --- FILTRAGE ET HABILLAGE DES CARTES --- */
.player-card {
    min-width: calc(20% - 13px); /* Ajusté pour aligner 5 éléments à l'écran */
    background: linear-gradient(180deg, rgba(14,24,53,0.3) 0%, rgba(11,18,38,0.9) 100%);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    text-align: center;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

/* Zone d'image du joueur */
.player-image-box {
    position: relative;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
}

/* Maillot vert menthe du gardien Mathieu Michel */
.player-card.goalkeeper {
    background: linear-gradient(180deg, rgba(17,56,52,0.4) 0%, rgba(11,18,38,0.9) 100%);
}

.player-img {
    height: 95%;
    width: auto;
    object-fit: contain;
}

/* Typographies inférieures des noms */
.player-info {
    padding: 15px 10px 25px;
    background: linear-gradient(180deg, transparent 0%, rgba(4,9,22,0.9) 80%);
}

.player-firstname {
    display: block;
    font-size: 0.75rem;
    color: #8fa0dd; /* Couleur de texte adoucie de la maquette */
    font-weight: bold;
    letter-spacing: 0.5px;
}

.player-lastname {
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    margin-top: 2px;
}

/* --- BOUTON CENTRAL INFERIEUR CAPSULE --- */
.text-center {
    text-align: center;
    margin-top: 35px;
}

.text-center .btn-orange {
    display: inline-block;
    background-color: #f26522; /* Orange officiel du MHSC */
    color: #ffffff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 10px 26px;
    border-radius: 20px; /* Forme pilule parfaite */
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(242, 101, 34, 0.3);
    transition: background-color 0.2s, transform 0.2s;
}

.text-center .btn-orange:hover {
    background-color: #d44d13;
    transform: translateY(-2px);
}


/* --- ADAPTATION MOBILE (EMPILEMENT) --- */
@media (max-width: 1024px) {
    .player-card { min-width: calc(33.33% - 11px); } /* 3 joueurs sur tablette */
}

@media (max-width: 600px) {
    .player-card { min-width: calc(50% - 8px); } /* 2 joueurs sur mobile */
    .carousel-btn { display: none; } /* Navigation tactile au doigt privilégiée */
}
/* --- LE CONTENEUR DE LA CARTE --- */
.player-card {
    position: relative; /* Indispensable pour superposer les éléments */
    min-width: calc(25% - 15px); /* Ajustable selon le nombre de joueurs visibles */
    background: #0f162d; /* Fond bleu nuit uni et sombre comme sur l'image */
    border-radius: 12px; /* Bords légèrement arrondis aux quatre coins */
    padding: 24px 20px 30px; /* Espace interne pour créer le retrait */
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* --- LE LISERÉ BLANC FIN EN ARRIÈRE-PLAN --- */
.player-card-border-box {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15); /* Ligne blanche très fine et discrète */
    border-radius: 4px;
    pointer-events: none; /* N'interfère pas avec les clics */
    z-index: 1;
}

/* --- LE NUMÉRO GÉANT EN FILIGRANE --- */
.player-bg-number {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11rem; /* Taille gigantesque */
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03); /* Couleur blanche presque totalement transparente */
    user-select: none;
    z-index: 1;
}

/* --- LA PHOTO DU JOUEUR --- */
.player-image-box {
    width: 100%;
    height: 340px; /* Ajustez la hauteur selon vos images détourées */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    z-index: 2; /* Passe devant le liseré et le numéro de fond */
}

.player-img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

/* --- BLOC TEXTE EN BAS DE CARTE --- */
.player-info {
    position: relative;
    z-index: 3; /* Reste au premier plan absolu */
    text-align: center;
    margin-top: 15px;
    width: 100%;
}

/* Le prénom en gris clair, plus petit */
.player-firstname {
    display: block;
    font-size: 0.85rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.6); /* Blanc adouci */
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Le nom de famille massif en blanc pur */
.player-lastname {
    font-size: 1.8rem;
    font-weight: 900; /* Impact maximal */
    color: #ffffff;
    text-transform: uppercase;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* --- LIGNE DE LA TIMELINE STRUCTURÉE --- */
.news-timeline-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #0b122c; /* Fond bleu nuit de la carte */
    padding: 18px 22px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.news-timeline-item:hover {
    transform: translateX(4px);
    border-color: rgba(242, 101, 34, 0.3);
}

/* --- COLONNE IMAGE / MINIATURE --- */
.news-img-col {
    flex-shrink: 0;
    width: 140px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #040914;
}

.news-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit le cadre proprement sans déformer l'image */
    transition: transform 0.3s ease;
}

.news-timeline-item:hover .news-thumb {
    transform: scale(1.05); /* Effet de zoom léger au survol de l'article */
}

/* --- ADAPTATION MOBILE --- */
@media (max-width: 768px) {
    .news-timeline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .news-img-col {
        width: 100%;
        height: 160px; /* Agrandit l'image sur smartphone pour un meilleur impact visuel */
    }
}
/* --- GRILLE DE COMPOSANT DE BANDEAU --- */
.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Crée 4 colonnes sur grand écran */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- STRUCTURE VERTICALE BLOC PAR BLOC --- */
.news-vertical-card {
    background-color: #0b122c; /* Bleu nuit officiel */
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Force l'alignement vertical : Image en haut, texte en bas */
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.news-vertical-card:hover {
    transform: translateY(-5px); /* Légère lévitation au survol */
    border-color: rgba(242, 101, 34, 0.3);
}

/* --- ZONE IMAGE (TOUJOURS EN HAUT) --- */
.news-img-col {
    position: relative;
    width: 100%;
    height: 160px; /* Hauteur fixe pour harmoniser toutes les vignettes photo */
    overflow: hidden;
}

.news-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- BADGE DE DATE INCRUSTÉ SUR L'IMAGE --- */
.news-card-date {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(4, 9, 20, 0.85);
    backdrop-filter: blur(4px);
    padding: 6px 10px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.08);
}

.news-day {
    font-size: 1.1rem;
    font-weight: 900;
    color: #f26522; /* Orange MHSC */
    line-height: 1;
}

.news-month {
    font-size: 0.6rem;
    font-weight: bold;
    color: #ffffff;
    margin-top: 2px;
}

/* --- ZONE DE TEXTE (TOUJOURS EN BAS) --- */
.news-content-col {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1; /* Remplit le bas de la carte uniformément */
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-title-text {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    min-height: 52px; /* Aligne la hauteur des titres sur plusieurs lignes */
}

.news-excerpt {
    font-size: 0.8rem;
    color: #8fa0dd;
    line-height: 1.4;
}
/* --- CONTENEUR EN 3 COLONNES --- */
.news-maquette-section {
    background-color: #040914;
    padding: 40px 20px;
    width: 100%;
}

.news-maquette-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1240px;
    margin: 0 auto;
}

/* --- STRUCTURE UNIFIÉE DE CHAQUE CARTE --- */
.news-maquette-card {
    position: relative;
    height: 340px;
    border-radius: 8px;
    overflow: hidden;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* --- LOGIQUE INTÉGRATION DE L'IMAGE DE FOND HTML --- */
.card-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit tout le cadre sans distorsion */
    z-index: 1; /* Reste en arrière-plan absolu */
}

/* --- CALQUE DE DÉGRADÉ SOMBRE ASSURANT LA LISIBILITÉ --- */
.card-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(4, 9, 20, 0.95) 100%);
    z-index: 2; /* Se place par-dessus l'image de fond */
}

/* Teinte subtilement bleutée de l'overlay de la billetterie */
.ticket-overlay-color {
    background: linear-gradient(180deg, rgba(12, 62, 117, 0.1) 0%, rgba(4, 9, 20, 0.95) 100%);
}

/* --- ÉLÉMENTS DE TEXTE ET BADGES (Z-INDEX SUPÉRIEUR) --- */
.card-maquette-badge {
    position: relative;
    z-index: 3; /* Passe devant l'image et l'overlay */
    align-self: flex-start;
    background-color: #0b4cb4;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.card-ticket-layout .card-maquette-badge {
    background-color: #0c3e75;
}

.card-maquette-body {
    position: relative;
    z-index: 3; /* Passe devant l'image et l'overlay */
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.card-maquette-date {
    font-size: 0.7rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.card-maquette-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.card-maquette-link {
    align-self: flex-start;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 2px;
    border-bottom: 2px solid #f26522;
    margin-top: 5px;
}

/* --- STRUCTURE INTERNE SÉPARÉE DE LA BILLETTERIE --- */
.ticket-split-container {
    flex-direction: row !important;
    justify-content: space-between;
    align-items: flex-end;
    gap: 15px;
}

.ticket-split-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.ticket-split-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.ticket-crests-row {
    display: flex;
    gap: 8px;
}

.ticket-crest-round {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.ticket-match-date-bold {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 900;
    white-space: nowrap;
}

/* --- ADAPTATION MOBILE --- */
@media (max-width: 992px) {
    .news-maquette-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .news-maquette-grid { grid-template-columns: 1fr; }
    .ticket-split-container { flex-direction: column !important; align-items: flex-start; }
    .ticket-split-right { align-items: flex-start; margin-top: 5px; }
}
/* --- CONFIGURATION GLOBALE DE LA SECTION --- */
.teams-section {
    background-color: #040914; /* Fond bleu nuit officiel */
    padding: 60px 20px;
    width: 100%;
}

/* --- CONTENEUR ET DESIGN DES ONGLETS --- */
.teams-tabs-container {
    max-width: 900px;
    margin: 0 auto 40px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.teams-tabs-list {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.tab-item {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 14px 28px;
    cursor: pointer;
    position: relative;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

/* Effet au survol d'un onglet non actif */
.tab-item:hover {
    color: #ffffff;
}

/* --- DESIGN DE L'ONGLET ACTIF (ORANGE MHSC) --- */
.tab-item.active {
    color: #f26522 !important; /* Orange de la charte */
}

/* Barre d'accentuation orange sous l'onglet actif */
.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px; /* Se cale pile sur la bordure inférieure du conteneur */
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #f26522;
    border-radius: 2px 2px 0 0;
}

/* --- AFFICHAGE / MASQUAGE DES PANELS DE CONTENU --- */
.tab-content-panel {
    display: none; /* Masqué par défaut */
    max-width: 1240px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Déploiement fluide du panel actif */
.tab-content-panel.active {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}

/* Boîte de présentation temporaire interne */
.teams-grid-placeholder {
    background-color: #0b122c;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: #8fa0dd;
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* --- CONFIGURATION COMPOSANT LE CLUB --- */
.club-section-wrapper {
    background-color: #040914; /* Fond bleu nuit profond */
    padding: 60px 20px;
    width: 100%;
}

.club-tabs-container {
    max-width: 1000px;
    margin: 0 auto 40px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.club-tabs-list {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    flex-wrap: wrap; /* Évite que les onglets ne se chevauchent sur tablette */
}

.club-tab-item {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 14px 22px;
    cursor: pointer;
    position: relative;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.club-tab-item:hover {
    color: #ffffff;
}

/* Onglet Actif */
.club-tab-item.active {
    color: #f26522 !important; /* Orange MHSC */
}

.club-tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #f26522;
    border-radius: 2px 2px 0 0;
}

/* --- AFFICHAGE FLUIDE DES CONTENUS --- */
.club-tab-panel {
    display: none;
    max-width: 1240px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.club-tab-panel.active {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}

.club-grid-placeholder {
    background-color: #0b122c; /* Fond bleu de carte */
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 45px;
    text-align: center;
    color: #8fa0dd;
    font-size: 0.95rem;
    line-height: 1.6;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Version Smartphone */
@media (max-width: 640px) {
    .club-tabs-list {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .club-tab-item {
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }
    .club-tab-item.active::after {
        bottom: 0;
        height: 2px;
    }
}


/* --- CONFIGURATION COMPOSANT AFD TV --- */
.afdtv-section-wrapper {
    background-color: #040914; /* Fond bleu nuit profond */
    padding: 60px 20px;
    width: 100%;
}

.afdtv-tabs-container {
    max-width: 800px;
    margin: 0 auto 40px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.afdtv-tabs-list {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 15px;
}

.afdtv-tab-item {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 14px 28px;
    cursor: pointer;
    position: relative;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.afdtv-tab-item:hover {
    color: #ffffff;
}

/* Style de l'onglet Actif (Orange) */
.afdtv-tab-item.active {
    color: #f26522 !important; /* Orange de la charte MHSC */
}

.afdtv-tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #f26522;
    border-radius: 2px 2px 0 0;
}

/* --- PANELS DE CONTENU --- */
.afdtv-tab-panel {
    display: none;
    max-width: 1240px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.afdtv-tab-panel.active {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}

.afdtv-grid-placeholder {
    background-color: #0b122c; /* Fond de carte bleu nuit */
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 45px;
    text-align: center;
    color: #8fa0dd;
    font-size: 0.95rem;
    line-height: 1.6;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Ajustements Écrans Mobiles */
@media (max-width: 640px) {
    .afdtv-tabs-list {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .afdtv-tab-item {
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }
    .afdtv-tab-item.active::after {
        bottom: 0;
        height: 2px;
    }
}

/* --- CONFIGURATION COMPOSANT AFD FANS --- */
.afdfans-section-wrapper {
    background-color: #040914; /* Fond bleu nuit profond */
    padding: 60px 20px;
    width: 100%;
}

.afdfans-tabs-container {
    max-width: 800px;
    margin: 0 auto 40px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.afdfans-tabs-list {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 15px;
}

.afdfans-tab-item {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 14px 28px;
    cursor: pointer;
    position: relative;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.afdfans-tab-item:hover {
    color: #ffffff;
}

/* Style de l'onglet Actif (Orange) */
.afdfans-tab-item.active {
    color: #f26522 !important; /* Orange de la charte MHSC */
}

.afdfans-tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #f26522;
    border-radius: 2px 2px 0 0;
}

/* --- PANELS DE CONTENU --- */
.afdfans-tab-panel {
    display: none;
    max-width: 1240px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.afdfans-tab-panel.active {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}

.afdfans-grid-placeholder {
    background-color: #0b122c; /* Fond de carte bleu nuit */
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 45px;
    text-align: center;
    color: #8fa0dd;
    font-size: 0.95rem;
    line-height: 1.6;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Ajustements Écrans Mobiles */
@media (max-width: 640px) {
    .afdfans-tabs-list {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .afdfans-tab-item {
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }
    .afdfans-tab-item.active::after {
        bottom: 0;
        height: 2px;
    }
}


/* --- CONTENEURS D'ONGLETS (VERSION BUREAU) --- */
.club-tabs-container, 
.teams-tabs-container, 
.afdtv-tabs-container, 
.afdfans-tabs-container {
    max-width: 1000px;
    margin: 0 auto 40px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.club-tabs-list, 
.teams-tabs-list, 
.afdtv-tabs-list, 
.afdfans-tabs-list {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 15px;
}

.club-tab-item, 
.teams-tab-item, 
.afdtv-tab-item, 
.afdfans-tab-item {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 14px 28px;
    cursor: pointer;
    position: relative;
    text-transform: uppercase;
    transition: color 0.3s ease;
    text-align: center;
}

.club-tab-item:hover, 
.teams-tab-item:hover, 
.afdtv-tab-item:hover, 
.afdfans-tab-item:hover {
    color: #ffffff;
}

/* --- ONGLET ACTIF (LIGNE ORANGE EN BAS) --- */
.club-tab-item.active, 
.teams-tab-item.active, 
.afdtv-tab-item.active, 
.afdfans-tab-item.active {
    color: #f26522 !important;
}

.club-tab-item.active::after, 
.teams-tab-item.active::after, 
.afdtv-tab-item.active::after, 
.afdfans-tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #f26522;
    border-radius: 2px 2px 0 0;
}

/* --- PASSAGE EN MODE VERTICAL SANS CHANGER LE DESIGN D'ORIGINE --- */
@media (max-width: 768px) {
    .club-tabs-container, 
    .teams-tabs-container, 
    .afdtv-tabs-container, 
    .afdfans-tabs-container {
        border-bottom: none; /* Retire la ligne du bas globale sur mobile */
    }

    .club-tabs-list, 
    .teams-tabs-list, 
    .afdtv-tabs-list, 
    .afdfans-tabs-list {
        flex-direction: column; /* Empile les onglets verticalement */
        gap: 5px; 
    }

    .club-tab-item, 
    .teams-tab-item, 
    .afdtv-tab-item, 
    .afdfans-tab-item {
        width: 100%;
        padding: 12px 16px;
        background: transparent; /* Conserve le fond transparent d'origine */
    }
}


/* --- ADAPTATION RESPONSIVE DU CARROUSEL SUR PETIT ÉCRAN --- */
@media (max-width: 1024px) {
    .carousel-wrapper {
        padding: 0 40px; /* Réduit l'espace sur les côtés pour laisser de la place aux flèches */
    }
}

@media (max-width: 768px) {
    .roster-section {
        padding: 40px 10px;
    }

    .carousel-wrapper {
        padding: 0 30px;
        position: relative;
    }

    /* Ajustement de la taille des flèches sur mobile pour ne pas cacher les cartes */
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .prev-btn { left: -5px; }
    .next-btn { right: -5px; }

    /* Forçage de la taille des cartes pour s'adapter aux écrans étroits (1 ou 2 visibles) */
    .carousel-track .player-card {
        min-width: 220px; /* Largeur idéale pour un affichage net sur mobile */
        max-width: 260px;
        height: 340px;
    }
}

@media (max-width: 480px) {
    .carousel-wrapper {
        padding: 0 25px;
    }
    
    .carousel-track .player-card {
        min-width: 200px;
        height: 320px;
    }
}



/* --- CONTENEUR GLOBAL DU CARROUSEL RESPONSIVE --- */
.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 50px;
}

.carousel-container {
    width: 100%;
    overflow: hidden; /* Cache les éléments qui débordent sur PC */
}

.carousel-track {
    display: flex;
    gap: 16px;
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- TAILLE DES CARTES DE JOUEURS --- */
.player-card {
    min-width: 260px; /* Largeur de base pour ordinateur */
    flex: 0 0 260px;
    height: 380px;
    position: relative;
    background-color: #0b122c;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- BOUTONS DE NAVIGATION --- */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #f26522;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

/* --- CORRECTION MOBILE STRICTE --- */
@media (max-width: 768px) {
    .carousel-wrapper {
        padding: 0 10px; /* Supprime l'espace latéral inutile sur mobile */
    }

    /* On masque les flèches sur smartphone si on privilégie le swipe tactile, ou on les garde compactes */
    .carousel-btn {
        display: none; /* Le défilement au doigt devient l'unique et meilleur moyen sur mobile */
    }

    .carousel-container {
        overflow-x: auto; /* Active le défilement horizontal natif au doigt */
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory; /* Effet d'aimant propre sur chaque carte */
        padding-bottom: 15px;
    }

    .carousel-container::-webkit-scrollbar {
        display: none; /* Masque la barre de défilement */
    }

    .carousel-track {
        display: flex;
        gap: 12px;
        transform: none !important; /* Désactive le JS de translation rigide sur petit écran au profit du scroll natif fluide */
    }

    .player-card {
        min-width: 220px;
        flex: 0 0 220px;
        height: 340px;
        scroll-snap-align: start;
    }
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icons a {
    color: #ffffff; /* Couleur blanche par défaut des logos */
    font-size: 1.2rem; /* Taille visible de l'icône */
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: #f26522; /* Passage en orange MHSC au survol */
    transform: translateY(-2px);
}



/* --- FORÇAGE DE VISIBILITÉ DES LOGOS SOCIAUX --- */
.social-icons {
    display: flex;
    align-items: center;
    gap: 18px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05); /* Fond discret pour chaque icône */
    border-radius: 50%;
    color: #ffffff !important; /* Force la couleur blanche des logos */
    font-size: 1.2rem !important; /* Force une taille bien visible */
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a i {
    visibility: visible !important;
    opacity: 1 !important;
}

.social-icons a:hover {
    background-color: #f26522; /* Fond orange MHSC au survol */
    color: #ffffff !important;
    transform: translateY(-3px);
}


.social-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    color: #ffffff; /* Définit la couleur blanche de base */
    transition: all 0.3s ease;
}

/* La propriété currentColor dans le HTML écoute directement la couleur du lien */
.social-icons a svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

/* Effet au survol : fond orange, logo blanc et légère lévitation */
.social-icons a:hover {
    background-color: #f26522; /* Orange officiel */
    color: #ffffff;
    transform: translateY(-2px);
}


/* --- BANDEAU CONTACT ULTRA-MODERNE --- */
.contact-banner {
    background-color: var(--bg-card);
    border-bottom: 2px solid var(--orange-primary);
    padding: 8px 5%;
    width: 100%;
    position: relative;
    z-index: 100;
}

.banner-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.info-item {
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-white);
}

.info-icon {
    font-size: 0.95rem;
    opacity: 0.9;
}

.info-text {
    color: var(--text-muted);
}

/* Badge distinct pour le nom des stades */
.stadium-badge {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: 5px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-link {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease;
}

.info-link:hover {
    color: var(--orange-primary);
}

/* Alignement des boutons de réseaux sociaux */
.social-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Boutons circulaires premium */
.social-box {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
}

.social-box:hover {
    background-color: var(--orange-primary);
    color: var(--text-white);
    border-color: var(--orange-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 101, 34, 0.3);
}

/* --- ADAPTABILITÉ MOBILE DU BANDEAU --- */
@media (max-width: 992px) {
    .banner-container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 6px 0;
    }
    .contact-info {
        justify-content: center;
        gap: 15px;
    }
    .stadium-badge {
        display: inline-block;
        margin-top: 4px;
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
    .info-item {
        flex-direction: column;
        gap: 4px;
    }
}



/* --- CONFIGURATION DU BANDEAU RESPONSIVE --- */
.contact-banner {
    background-color: var(--bg-card);
    border-bottom: 2px solid var(--orange-primary);
    padding: 10px 5%;
    width: 100%;
}

.banner-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Permet au bloc social de passer dessous si nécessaire */
    gap: 15px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap; /* Aligne les blocs de contact ou les empile proprement */
    flex: 1;
    min-width: 280px;
}

.info-item {
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start; /* Aligne l'icône en haut si le texte fait 2 lignes */
    gap: 8px;
    word-break: break-word; /* Empêche l'adresse email de dépasser de l'écran */
}

.info-icon {
    flex-shrink: 0; /* Évite que l'émoji se déforme si le texte prend de la place */
}

.info-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    color: var(--text-muted);
}

.stadium-badge {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    padding: 1px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    align-self: flex-start; /* Aligne le badge à gauche */
}

.info-link {
    color: var(--text-white);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.info-link:hover {
    color: var(--orange-primary);
}

/* --- ADAPTATION DES LIENS SOCIAUX (6 ICÔNES) --- */
.social-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.social-box {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.25s ease;
}

.social-box:hover {
    background-color: var(--orange-primary);
    color: white;
    border-color: var(--orange-primary);
    transform: translateY(-2px);
}

/* --- MEDIA QUERIES ULTRA-CIBLÉES --- */

/* Écrans intermédiaires (Tablettes / Gros Mobiles) */
@media (max-width: 992px) {
    .banner-container {
        flex-direction: column; /* Sépare contacts et réseaux */
        text-align: center;
    }
    .contact-info {
        justify-content: center; /* Centre les contacts */
        width: 100%;
    }
    .social-links {
        justify-content: center; /* Centre la ligne de réseaux */
        width: 100%;
    }
}

/* Petits écrans de smartphones (Moins de 600px) */
@media (max-width: 600px) {
    .contact-info {
        flex-direction: column; /* Empilement vertical strict des lignes de contact */
        gap: 12px;
    }
    .info-item {
        flex-direction: column; /* Met l'icône au-dessus du texte */
        align-items: center;
        text-align: center;
    }
    .info-text-wrapper {
        align-items: center; /* Centre le badge du stade */
    }
    .social-links {
        /* Transformation en grille compacte de 3x2 pour économiser l'espace */
        display: grid;
        grid-template-columns: repeat(3, 45px);
        gap: 12px;
        justify-content: center;
    }
    .social-box {
        width: 45px; /* Légèrement plus grand pour faciliter le clic tactile */
        height: 45px;
    }
}



/* ==========================================================================
   1. STYLE DU BANDEAU DE CONTACT SUPÉRIEUR
   ========================================================================== */
.contact-banner {
    background-color: var(--bg-card);
    border-bottom: 2px solid var(--orange-primary);
    padding: 10px 5%;
    width: 100%;
}

.banner-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 280px;
}

.info-item {
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    word-break: break-word;
}

.info-icon {
    flex-shrink: 0;
}

.info-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    color: var(--text-muted);
}

.stadium-badge {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    padding: 1px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    align-self: flex-start;
}

.info-link {
    color: var(--text-white);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.info-link:hover {
    color: var(--orange-primary);
}

/* Réseaux Sociaux */
.social-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.social-box {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.25s ease;
}

.social-box:hover {
    background-color: var(--orange-primary);
    color: white;
    border-color: var(--orange-primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   2. STYLE DE L'EN-TÊTE DE NAVIGATION (HEADER)
   ========================================================================== */
.mhsc-header {
    background-color: var(--bg-dark);
    padding: 15px 5%;
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Zone Gauche & Menu de Navigation */
.header-left {
    display: flex;
    align-items: center;
}

.hamburger-btn {
    display: none; /* Caché sur grand écran */
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-white);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-item {
    color: var(--text-white);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.nav-item:hover {
    color: var(--orange-primary);
}

/* Zone Centrale & Crest */
.header-center {
    display: flex;
    justify-content: center;
}

.mhsc-crest {
    height: 55px;
    object-fit: contain;
}

/* Zone Droite & Outils Globaux */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.btn-billetterie { background-color: var(--orange-primary); color: white; }
.btn-billetterie:hover { background-color: var(--orange-hover); }

.btn-store {
    background-color: #16224f;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-store:hover { background-color: #1f306d; }

.search-btn {
    background: none;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.search-btn:hover { color: var(--orange-primary); }

/* Sélecteur de langue */
.lang-selector { position: relative; cursor: pointer; font-size: 0.85rem; font-weight: bold; }
.lang-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: var(--text-white);
}
.lang-arrow { font-size: 0.6rem; color: var(--text-muted); transition: transform 0.2s; }

.lang-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    list-style: none;
    padding: 5px 0;
    min-width: 70px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 200;
}

.lang-selector:hover .lang-dropdown, .lang-selector.active .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-selector:hover .lang-arrow { transform: rotate(180deg); }
.lang-dropdown li { padding: 8px 14px; color: var(--text-muted); text-align: center; }
.lang-dropdown li:hover { background-color: rgba(255, 255, 255, 0.05); color: var(--text-white); }


/* ==========================================================================
   3. MEDIA QUERIES APPLICATIVES (RESPONSIVE CRITIQUE)
   ========================================================================== */

/* --- TABLETTES ET ÉCRANS INTERMÉDIAIRES --- */
@media (max-width: 992px) {
    /* 1. Ajustements Bandeau Contact */
    .banner-container {
        flex-direction: column;
        text-align: center;
    }
    .contact-info, .social-links {
        justify-content: center;
        width: 100%;
    }

    /* 2. Activation du Menu Tiroir (Hamburger Mobile) */
    .hamburger-btn {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 86px; /* Ajusté par rapport à la hauteur du header */
        left: -100%;
        width: 280px;
        height: calc(100vh - 86px);
        background-color: var(--bg-card);
        flex-direction: column;
        gap: 0;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
        transition: left 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
        padding: 20px 0;
    }

    .nav-menu.open {
        left: 0;
    }

    .nav-item {
        padding: 18px 25px;
        border-bottom: 1px solid rgba(255,255,255,0.03);
        display: block;
    }
    
    .nav-item:hover {
        background-color: rgba(255,255,255,0.02);
    }

    /* Réorganisation de l'ordre d'affichage (Logo à Gauche, Actions à droite) */
    .header-inner {
        gap: 10px;
    }
    .header-center {
        order: -1; /* Place le logo tout à gauche */
    }
    .header-left {
        order: 0; /* Garde le hamburger à côté */
    }
}

/* --- SMARTPHONES (MOINS DE 650PX) --- */
@media (max-width: 650px) {
    /* Bandeau Contact en colonnes */
    .contact-info {
        flex-direction: column;
        gap: 12px;
    }
    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .info-text-wrapper {
        align-items: center;
    }

    /* Passage des réseaux sociaux en grille de boutons confortables */
    .social-links {
        display: grid;
        grid-template-columns: repeat(3, 42px);
        gap: 10px;
        justify-content: center;
    }
    .social-box {
        width: 42px;
        height: 42px;
    }

    /* Masquage des textes longs dans l'en-tête */
    .action-btn .btn-text {
        display: none;
    }
    .action-btn {
        padding: 0;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        justify-content: center;
    }
    .header-right {
        gap: 8px;
    }
    .lang-dropdown li {
        padding: 12px; /* Zone tactile élargie */
    }
}

/* --- PETITS MOBILES (MOINS DE 380PX) --- */
@media (max-width: 380px) {
    .btn-billetterie {
        display: none; /* Élimination de la billetterie pour préserver l'espace */
    }
}

.mhsc-header {
    background-color: var(--bg-dark);
    padding: 15px 5%;
    
    /* --- PROPRIÉTÉS POUR RENDRE LE MENU FIGÉ --- */
    position: top; /* Reste figé dès qu'il atteint le haut de l'écran */
    position: sticky; 
    top: 0; 
    z-index: 1000; /* Assure que le menu passe au-dessus de tout le contenu du site */
    
    border-bottom: 1px solid rgba(255,255,255,0.05);
}


/* --- PROPRIÉTÉS REQUISES POUR L'EN-TÊTE FIGÉ --- */
.mhsc-header {
    background-color: var(--bg-dark);
    padding: 15px 5%;
    position: sticky; /* Reste figé au défilement */
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* --- RESPONSIVE CHIRURGICAL SUR PETIT ÉCRAN --- */
@media (max-width: 992px) {
    
    /* 1. Configuration globale du conteneur en-tête */
    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    /* 2. FORCE L'ORDRE VISUEL STRICT : Hamburger (1er) | Logo (2e) | Langue (3e) */
    .header-left {
        order: 1;    /* Fixe la zone hamburger tout à gauche */
        flex: 1;     /* Distribue l'espace pour équilibrer le centrage */
        display: flex;
        justify-content: flex-start;
    }

    .header-center {
        order: 2;    /* Positionne le logo au centre exact */
        flex: 0 0 auto;
    }

    .header-right {
        order: 3;    /* Envoie les outils à droite */
        flex: 1;     /* Distribue l'espace pour équilibrer le centrage */
        display: flex;
        justify-content: flex-end;
        gap: 10px;
    }

    /* 3. Masquage des éléments secondaires sur mobile pour ne garder QUE la langue */
    .header-right .action-btn,
    .header-right .search-btn {
        display: none !important; /* Retire Billetterie, Store et Loupe sur petit écran */
    }

    /* 4. Ajustement du bouton hamburger mobile */
    .hamburger-btn {
        display: flex; /* Rend le bouton visible */
    }

    /* 5. Ajustement du menu tiroir pour qu'il s'ouvre proprement sous le menu figé */
    .nav-menu {
        position: fixed;
        top: 85px; /* S'ajuste précisément sous la hauteur de votre header */
        left: -100%;
        width: 280px;
        height: calc(100vh - 85px);
        background-color: var(--bg-card);
        flex-direction: column;
        gap: 0;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
        transition: left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        padding: 20px 0;
    }

    .nav-menu.open {
        left: 0;
    }

    .nav-item {
        padding: 18px 25px;
        border-bottom: 1px solid rgba(255,255,255,0.03);
        display: block;
        text-align: left;
    }

    /* 6. Optimisation de l'affichage du menu déroulant de langue sur mobile */
    .lang-dropdown {
        right: 0;
        top: calc(100% + 12px);
    }
    
    .lang-dropdown li {
        padding: 12px 20px; /* Plus grand pour le clic tactile sur smartphone */
    }
}



/* --- CONFIGURATION INITIALE DES BARRES (Rappel structurel) --- */
.hamburger-btn {
    display: none; /* Rendu visible via votre media query mobile existante */
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px; /* Hauteur ajustée pour un ratio parfait */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100; /* Reste au-dessus du tiroir de navigation */
}

.hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-white);
    transform-origin: center; /* Assure une rotation parfaitement centrée */
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                opacity 0.25s ease-in-out;
}

/* --- ANIMATION CHIRURGICALE DE LA CROIX (X) --- */

/* 1. La barre supérieure pivote à 45 degrés et descend au centre */
.hamburger-btn.active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background-color: var(--orange-primary); /* Optionnel : passe en orange pour marquer l'action */
}

/* 2. La barre centrale devient totalement invisible */
.hamburger-btn.active .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px); /* Léger effet de glissement vers la gauche avant de s'effacer */
}

/* 3. La barre inférieure pivote à -45 degrés et monte au centre */
.hamburger-btn.active .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background-color: var(--orange-primary);
}

/* Verrouillage du scroll de la page */
body.no-scroll {
    overflow: hidden;
}

/* ==========================================================================
   STYLE COMPLET ET RESPONSIVE DU PIED DE PAGE (MAIN FOOTER)
   ========================================================================== */
.main-footer {
    background-color: #050917; /* Fond sombre profond pour le contraste */
    padding: 60px 5% 20px;
    margin-top: 60px;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--orange-primary) 0%, #ff8a4f 100%);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr; /* Donne plus de largeur à la colonne marque */
    gap: 50px;
}

/* Style de la colonne Identité / Logo */
.footer-brand-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    height: 70px;
    object-fit: contain;
    margin-bottom: 15px;
}

.footer-brand-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-white);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.social-block-footer h4 {
    color: var(--text-white);
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.social-icons-footer {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Boutons de réseaux sociaux circulaires du footer */
.footer-social-box {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
}

.footer-social-box:hover {
    background-color: var(--orange-primary);
    color: var(--text-white);
    border-color: var(--orange-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(242, 101, 34, 0.3);
}

/* Style des Colonnes de Liens Navigation & Services */
.footer-links-col h4 {
    color: var(--text-white);
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    font-weight: bold;
}

/* Ligne d'accentuation orange sous les titres */
.footer-links-col h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--orange-primary);
}

.footer-links-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-col ul li {
    margin-bottom: 12px;
}

.footer-links-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links-col ul li a:hover {
    color: var(--orange-primary);
    padding-left: 6px; /* Effet de décalage fluide au survol */
}

/* Zone de Bas de Page (Copyright) */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom-content a {
    color: var(--orange-primary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.footer-bottom-content a:hover {
    color: var(--orange-hover);
    text-decoration: underline;
}

/* ==========================================================================
   MEDIA QUERIES - RESPONSIVITÉ DU FOOTER
   ========================================================================== */

/* Tablettes (Moins de 992px) */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1.2fr 1fr; /* Bascule sur 2 colonnes */
        gap: 40px;
    }
    .footer-links-col:last-child {
        grid-column: span 2; /* Fait prendre toute la largeur à la dernière colonne */
    }
}

/* Smartphones et Mobiles (Moins de 650px) */
@media (max-width: 650px) {
    .main-footer {
        padding: 50px 5% 30px;
    }
    
    .footer-container {
        grid-template-columns: 1fr; /* Alignement strict en une seule colonne */
        gap: 35px;
        text-align: center; /* Centre les textes institutionnels */
    }

    .footer-brand-col {
        align-items: center; /* Centre le logo et le nom du club */
    }

    .social-icons-footer {
        justify-content: center; /* Centre la ligne des réseaux sociaux */
    }

    .footer-links-col h4::after {
        left: 50%;
        transform: translateX(-50%); /* Centre la ligne d'accentuation orange */
    }

    .footer-links-col ul li a:hover {
        padding-left: 0; /* Désactive le décalage sur mobile */
        color: var(--orange-primary);
    }

    /* Ajustement de la zone basse de copyright */
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}


/* --- CODE DE BASE DESKTOP (Inchangé et stable) --- */
.main-footer {
    background-color: #050917;
    padding: 60px 5% 20px;
    margin-top: 60px;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--orange-primary) 0%, #ff8a4f 100%);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    height: 65px;
    object-fit: contain;
    margin-bottom: 12px;
}

.footer-brand-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-white);
    margin-bottom: 20px;
}

.social-block-footer h4 {
    color: var(--text-white);
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.social-icons-footer {
    display: flex;
    gap: 12px;
}

.footer-social-box {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.25s ease;
}

.footer-social-box:hover {
    background-color: var(--orange-primary);
    color: white;
}

.footer-accordion-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-white);
    font-size: 0.95rem;
    letter-spacing: 1px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: left;
}

.footer-accordion-content ul {
    list-style: none;
    padding: 0;
}

.footer-accordion-content ul li {
    margin-bottom: 12px;
}

.footer-accordion-content ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-accordion-content ul li a:hover {
    color: var(--orange-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom-content a {
    color: var(--orange-primary);
    text-decoration: none;
    font-weight: bold;
}


/* ==========================================================================
   REFONTE RADICALE SUR PETIT ÉCRAN (MOINS DE 650PX)
   ========================================================================== */
@media (max-width: 650px) {
    .main-footer {
        padding: 30px 4% 20px; /* Réduction drastique de la hauteur globale */
    }

    /* 1. Dissolution de la grille complexe au profit d'un alignement vertical centré */
    .footer-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-bottom: 25px;
    }

    /* 2. Logo et marque ultra-simplifiés */
    .footer-brand-col {
        align-items: center;
    }
    
    .footer-logo {
        height: 50px; /* Plus petit pour économiser de la place */
        margin-bottom: 8px;
    }

    .footer-brand-text {
        font-size: 1.05rem;
        margin-bottom: 0; /* Supprime le vide inutile */
    }

    /* Supprime le texte "SUIVEZ-NOUS" redondant sur mobile */
    .social-block-footer h4 {
        display: none;
    }

    /* Alignement parfait des 6 icônes sur une seule ligne équilibrée */
    .social-icons-footer {
        margin-top: 15px;
        gap: 8px;
    }

    .footer-social-box {
        width: 38px;
        height: 38px;
        background-color: rgba(255, 255, 255, 0.04); /* Plus contrasté */
    }

    /* 3. TRANSFORMATION DES LIENS EN BLOC DE NAVIGATION HORIZONTAL (STYLE DOCK) */
    .footer-links-col {
        display: inline;
        width: auto;
    }

    /* Masque les titres de colonnes ("SERVICES", etc.) inutiles dans ce mode */
    .footer-accordion-btn {
        display: none;
    }

    /* Fusionne tous les liens importants au sein d'une seule ligne fluide */
    .footer-accordion-content {
        display: block;
    }

    .footer-accordion-content ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 16px; /* Espacement optimal pour les clics du pouce */
    }

    .footer-accordion-content ul li {
        margin-bottom: 0;
    }

    .footer-accordion-content ul li a {
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: bold;
        color: var(--text-white); /* Plus lisible sur smartphone */
        background-color: rgba(255, 255, 255, 0.03);
        padding: 5px 12px;
        border-radius: 15px; /* Forme de capsule premium */
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* 4. Condensation des mentions légales de bas de page */
    .footer-bottom {
        padding-top: 15px;
        font-size: 0.72rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
    }

    .copyright-text, .dev-text {
        line-height: 1.4;
    }
}



/* ==========================================================================
   PRÉSENTATION EMPILÉE DU FOOTER SUR PETIT ÉCRAN (MOINS DE 768PX)
   ========================================================================== */
@media (max-width: 768px) {
    
    /* 1. Désactive la grille et empile verticalement les 3 blocs principaux */
    .footer-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Aligne tout le contenu proprement à gauche */
        gap: 30px; /* Espace équilibré entre chaque bloc empilé */
    }

    /* 2. Style de la colonne Identité / Logo */
    .footer-brand-col {
        align-items: flex-start;
        width: 100%;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Ligne de séparation discrète */
    }

    .footer-logo {
        height: 60px; /* Taille optimisée sur smartphone */
    }

    .social-icons-footer {
        flex-wrap: wrap; /* Permet aux 6 icônes de passer à la ligne si l'écran est très petit */
        gap: 10px;
    }

    /* 3. Style des colonnes de liens (Empilées l'une en dessous de l'autre) */
    .footer-links-col {
        width: 100%; /* Prend toute la largeur pour un alignement propre */
        display: block; /* Force l'empilement vertical */
    }

    /* Maintient les boutons comme de vrais titres textuels non cliquables */
    .footer-accordion-btn {
        display: block;
        pointer-events: none; /* Désactive le comportement de clic */
        font-size: 0.95rem;
        color: var(--text-white);
        letter-spacing: 1px;
        font-weight: bold;
        margin-bottom: 15px;
        padding: 0;
        background: none;
        border: none;
        text-align: left;
    }

    /* Optionnel : Ajoute la petite ligne orange sous vos titres sur mobile */
    .footer-accordion-btn::after {
        content: '';
        display: block;
        width: 30px;
        height: 2px;
        background-color: var(--orange-primary);
        margin-top: 6px;
    }

    /* Maintient les listes de liens toujours visibles et déployées */
    .footer-accordion-content {
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .footer-accordion-content ul {
        display: flex;
        flex-direction: column; /* Aligne les liens du haut vers le bas */
        gap: 12px; /* Espace confortable pour le clic tactile sur mobile */
        padding-left: 0;
    }

    .footer-accordion-content ul li a {
        font-size: 0.9rem;
        color: var(--text-muted); /* Couleur douce pour les liens secondaires */
        display: inline-block;
        padding: 4px 0; /* Augmente la zone de clic sans déformer le texte */
        text-transform: none; /* Conserve la casse d'origine de votre HTML */
        background: none;
        border: none;
    }

    /* 4. Zone de Copyright en bas de page */
    .footer-bottom-content {
        flex-direction: column;
        align-items: flex-start; /* Reste aligné à gauche en harmonie avec les liens */
        gap: 8px;
    }
}



@media (max-width: 768px) {
    
    /* --- AJOUT DES FLÈCHES DÉCORATIVES SUR MOBILE --- */
    .footer-accordion-content ul li a {
        display: inline-flex;
        align-items: center;
        gap: 6px; /* Espace entre la flèche et le texte du lien */
        transition: transform 0.2s ease, color 0.2s ease;
    }

    /* Génération automatique de la flèche orange avant le texte */
    .footer-accordion-content ul li a::before {
        content: '›'; /* Utilisation d'un chevron fin et élégant */
        font-size: 1.1rem;
        font-weight: bold;
        color: var(--orange-primary); /* Reprend l'orange de votre charte */
        line-height: 1;
        transition: transform 0.2s ease;
    }

    /* Micro-animation au clic/survol sur mobile */
    .footer-accordion-content ul li a:active {
        color: var(--orange-primary);
        transform: translateX(3px); /* Le lien glisse légèrement vers la droite au toucher */
    }
}


/* ==========================================================================
   BOUTON DE RETOUR EN HAUT (BACK TO TOP)
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--bg-card);
    color: var(--text-white);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    text-decoration: none;
    z-index: 999; /* Reste au-dessus de tout le contenu du site, mais sous le menu mobile */
    
    /* Animation de transition */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Classe active qui sera injectée par le JavaScript lors du défilement */
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Effet au survol sur ordinateur */
.back-to-top:hover {
    background-color: var(--orange-primary);
    border-color: var(--orange-primary);
    color: var(--text-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(242, 101, 34, 0.3);
}

/* --- AJUSTEMENT PETIT ÉCRAN (MOBILE) --- */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        background-color: var(--orange-primary); /* Sur mobile, on le met directement en orange pour être visible */
        border-color: var(--orange-primary);
    }
    
    .back-to-top:hover {
        transform: none; /* Désactive l'élévation PC sur l'écran tactile */
    }
    
    .back-to-top:active {
        background-color: var(--orange-hover);
        transform: scale(0.95); /* Effet d'enfoncement au toucher sur smartphone */
    }
}



.btn-login {
    background-color: var(--orange-primary);
    color: var(--text-white);
    border: 1px solid var(--orange-primary);
    box-shadow: 0 4px 10px rgba(242, 101, 34, 0.15);
}

.btn-login:hover {
    background-color: var(--orange-hover);
    border-color: var(--orange-hover);
    transform: translateY(-1px);
}

/* Rappel pour l'intégration mobile sur petit écran */
@media (max-width: 992px) {
    /* Cache le texte sur smartphone pour ne garder que la pastille ronde avec l'icône avatar */
    .btn-login .btn-text {
        display: none;
    }
    .btn-login {
        padding: 0;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        justify-content: center;
    }
}



@media (max-width: 992px) {
    /* 1. Ajustement de la zone droite pour accueillir le bouton de connexion */
    .header-right {
        order: 3;
        flex: 1;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 12px; /* Espace équilibré entre la pastille connexion et la langue */
    }

    /* 2. ON PREND EN COMPTE LE BOUTON LOGIN : Masquage du texte long */
    .btn-login .btn-text {
        display: none !important; /* Enlève le texte sur mobile */
    }

    /* 3. Transformation du bouton de connexion en pastille tactile circulaire */
    .btn-login {
        display: flex !important; /* Force l'affichage du bouton */
        background-color: var(--orange-primary);
        color: var(--text-white);
        width: 40px; /* Taille optimale recommandée pour les écrans tactiles */
        height: 40px;
        border-radius: 50%; /* Crée un cercle parfait */
        justify-content: center;
        align-items: center;
        padding: 0; /* Supprime les espacements internes de la version PC */
        border: 1px solid var(--orange-primary);
        box-shadow: 0 4px 10px rgba(242, 101, 34, 0.2);
        transition: background-color 0.2s, transform 0.1s;
    }

    /* Agrandit légèrement l'icône SVG à l'intérieur pour une meilleure lisibilité mobile */
    .btn-login .icon-user {
        width: 18px;
        height: 18px;
    }

    /* Micro-interaction au toucher sur smartphone */
    .btn-login:active {
        background-color: var(--orange-hover);
        transform: scale(0.95); /* Effet d'enfoncement fluide */
    }
    
    /* 4. Sélecteur de langue positionné juste à côté */
    .lang-trigger {
        padding: 10px 12px;
        height: 40px; /* Aligne la hauteur sur celle du bouton login */
        display: flex;
        align-items: center;
    }
}



/* ==========================================================================
   STYLE DE L'EN-TÊTE CONFIGURATION DE BASE (ORDINATEUR)
   ========================================================================== */
.mhsc-header {
    background-color: var(--bg-dark);
    padding: 15px 5%;
    position: sticky; /* Reste figé en haut lors du défilement */
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Zone Gauche & Navigation Bureau */
.header-left {
    display: flex;
    align-items: center;
}

.hamburger-btn {
    display: none; /* Masqué sur ordinateur */
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-white);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.25s ease;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-item {
    color: var(--text-white);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.nav-item:hover {
    color: var(--orange-primary);
}

/* Zone Centrale (Logo) */
.header-center {
    display: flex;
    justify-content: center;
}

.mhsc-crest {
    height: 55px;
    object-fit: contain;
}

/* Zone Droite (Connexion & Langue) */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.btn-login {
    background-color: var(--orange-primary);
    color: var(--text-white);
    border: 1px solid var(--orange-primary);
    box-shadow: 0 4px 10px rgba(242, 101, 34, 0.15);
}

.btn-login:hover {
    background-color: var(--orange-hover);
    border-color: var(--orange-hover);
    transform: translateY(-1px);
}

/* Composant Langue */
.lang-selector {
    position: relative;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
}

.lang-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: var(--text-white);
    height: 38px;
}

.lang-arrow {
    font-size: 0.6rem;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    list-style: none;
    padding: 5px 0;
    min-width: 70px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 200;
}

.lang-selector:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-selector:hover .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown li {
    padding: 8px 14px;
    color: var(--text-muted);
    text-align: center;
}

.lang-dropdown li:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
}

/* ==========================================================================
   INTERACTION SMARTPHONE & PETIT ÉCRAN (MOINS DE 992PX)
   ========================================================================== */
@media (max-width: 992px) {
    
    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    /* 1. Ordonnancement asymétrique parfait */
    .header-left {
        order: 1;      /* Hamburger figé à gauche */
        flex: 1;
        display: flex;
        justify-content: flex-start;
    }

    .header-center {
        order: 2;      /* Logo figé au centre exact */
        flex: 0 0 auto;
    }

    .header-right {
        order: 3;      /* Connexion et langue figées à droite */
        flex: 1;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 10px;
    }

    /* 2. Transformation du bouton Se Connecter */
    .btn-login .btn-text {
        display: none !important; /* Masque le texte long */
    }

    .btn-login {
        display: flex !important;
        width: 40px;
        height: 40px;
        border-radius: 50%; /* Devient un cercle parfait */
        padding: 0;
        justify-content: center;
        align-items: center;
    }

    .btn-login .icon-user {
        width: 18px;
        height: 18px; /* Agrandissement icône pour le tactile */
    }

    /* 3. Activation et déploiement du bouton Hamburger */
    .hamburger-btn {
        display: flex;
    }

    /* Animation de la croix (X) */
    .hamburger-btn.active .hamburger-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        background-color: var(--orange-primary);
    }
    .hamburger-btn.active .hamburger-bar:nth-child(2) {
        opacity: 0;
        transform: translateX(-5px);
    }
    .hamburger-btn.active .hamburger-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        background-color: var(--orange-primary);
    }

    /* Tiroir de menu latéral mobile */
    .nav-menu {
        position: fixed;
        top: 86px; /* Aligné précisément sous votre barre figée */
        left: -100%;
        width: 285px;
        height: calc(100vh - 86px);
        background-color: var(--bg-card);
        flex-direction: column;
        gap: 0;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
        transition: left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        padding: 15px 0;
    }

    .nav-menu.open {
        left: 0;
    }

    .nav-item {
        padding: 18px 25px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        display: block;
        font-size: 0.95rem;
    }

    /* Ajustement de la hauteur du trigger de langue pour correspondre au cercle de connexion */
    .lang-trigger {
        height: 40px;
    }
}


/* Bloque le défilement du site si le menu est ouvert (géré par le JS) */
body.no-scroll {
    overflow: hidden !important;
}

@media (max-width: 992px) {
    /* 1. Force le bouton hamburger à devenir visible sur mobile */
    .hamburger-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        z-index: 2000; /* Force le bouton à rester visible AU-DESSUS du menu ouvert */
    }

    /* 2. Position de départ du menu (Masqué à gauche de l'écran) */
    .nav-menu {
        position: fixed !important;
        top: 80px; /* À ajuster selon la hauteur de votre header figé */
        left: -100% !important; /* Totalement invisible à gauche */
        width: 280px;
        height: calc(100vh - 80px);
        background-color: #121b3a; /* Var(--bg-card) */
        display: flex !important;
        flex-direction: column;
        transition: left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
        z-index: 1500;
    }

    /* 3. CLASSE CRITIQUE : Injectée par le JavaScript pour afficher le menu */
    .nav-menu.open {
        left: 0 !important; /* Le menu glisse et s'affiche instantanément à l'écran */
    }
}


/* ==========================================================================
   FORCE L'AFFICHAGE DU BOUTON DE CONNEXION SUR PETIT ÉCRAN
   ========================================================================== */
@media (max-width: 992px) {

    /* 1. Configuration de la zone droite (Connexion + Langue) */
    .header-right {
        order: 3;
        flex: 1;
        display: flex !important; /* Force la zone droite à s'afficher */
        justify-content: flex-end;
        align-items: center;
        gap: 10px; /* Espace entre le bouton de connexion et le bouton FR/EN */
    }

    /* 2. Élimination du texte pour économiser l'espace sur smartphone */
    .btn-login .btn-text {
        display: none !important; /* Masque uniquement le mot "SE CONNECTER" */
    }

    /* 3. CONFIGURATION PREVALENTE DU BOUTON UNIQUE SUR MOBILE */
    .action-btn.btn-login {
        display: flex !important; /* FORCE L'AFFICHAGE (Annule les display:none précédents) */
        visibility: visible !important;
        opacity: 1 !important;
        
        /* Transformation en icône pastille ronde */
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important; /* Devient un cercle parfait */
        padding: 0 !important;
        justify-content: center !important;
        align-items: center !important;
        
        background-color: var(--orange-primary) !important;
        border: 1px solid var(--orange-primary) !important;
        color: var(--text-white) !important;
        box-shadow: 0 4px 10px rgba(242, 101, 34, 0.2);
    }

    /* Ajustement de l'icône à l'intérieur du cercle */
    .btn-login .icon-user {
        width: 18px !important;
        height: 18px !important;
        display: block !important;
    }

    /* Micro-interaction tactile au toucher */
    .btn-login:active {
        background-color: var(--orange-hover) !important;
        transform: scale(0.95);
    }

    /* 4. Alignement du sélecteur de langue adjacent */
    .lang-selector {
        display: block !important;
    }
    .lang-trigger {
        height: 40px; /* Aligne la hauteur sur celle de la pastille connexion */
        display: flex;
        align-items: center;
    }
}


/* ==========================================================================
   FENÊTRE MODALE DE CONNEXION (POP-UP)
   ========================================================================== */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(5, 9, 23, 0.8); /* Fond sombre transparent */
    backdrop-filter: blur(8px); /* Effet de flou de fond premium */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2500; /* Doit passer au-dessus du menu figé et de tout le site */
    padding: 20px;
    
    /* Animation de transition */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Classe injectée par JavaScript pour ouvrir la fenêtre */
.login-modal.active {
    opacity: 1;
    visibility: visible;
}

/* La carte centrale du formulaire */
.modal-card {
    background-color: var(--bg-card);
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    
    /* Animation d'apparition par le bas */
    transform: translateY(30px);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.login-modal.active .modal-card {
    transform: translateY(0);
}

/* Bouton fermer de la modale */
.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: var(--orange-primary);
}

/* En-tête de la modale */
.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-logo {
    height: 60px;
    margin-bottom: 15px;
    object-fit: contain;
}

.modal-header h3 {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.modal-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Formulaire et Champs de saisie */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.form-group input {
    background-color: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 12px 15px;
    color: var(--text-white);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    border-color: var(--orange-primary);
    box-shadow: 0 0 8px rgba(242, 101, 34, 0.2);
}

/* Options supplémentaires */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-muted);
}

.remember-me input {
    accent-color: var(--orange-primary); /* Colore la case à cocher en orange */
}

.forgot-link, .register-link {
    color: var(--orange-primary);
    text-decoration: none;
    font-weight: bold;
}

.forgot-link:hover, .register-link:hover {
    text-decoration: underline;
}

/* Bouton de soumission large */
.btn-submit-login {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
}

/* Pied de la modale */
.modal-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Ajustements pour les petits mobiles tactiles */
@media (max-width: 480px) {
    .modal-card {
        padding: 30px 20px;
    }
    .modal-header h3 {
        font-size: 1.4rem;
    }
}



/* Alignement sur 2 colonnes pour Prénom/Nom sur PC */
.form-row-2col {
    display: flex;
    gap: 15px;
    width: 100%;
}

.form-row-2col .form-group {
    flex: 1;
}

/* --- ADAPTATION ULTRA-RESPONSIVE INSCRIPTION --- */
@media (max-width: 576px) {
    /* Sur petit mobile, on sépare le Prénom et le Nom verticalement pour éviter l'écrasement des champs */
    .form-row-2col {
        flex-direction: column;
        gap: 20px;
    }
    
    #register-modal-overlay .modal-card {
        padding: 25px 20px;
        max-height: 90vh; /* Évite que la modale dépasse sur de tout petits écrans */
        overflow-y: auto;  /* Permet le défilement interne de la modale si nécessaire */
    }
}



/* ==========================================================================
   OPTIMISATION DE LA MODALE D'INSCRIPTION SUR GRAND ÉCRAN
   ========================================================================== */

/* 1. Élargissement de la carte sur ordinateur pour un affichage en double colonne */
#register-modal-overlay .modal-card {
    max-width: 700px; /* Augmenté de 420px à 700px pour un confort visuel optimal */
    padding: 40px;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 2. Transformation du formulaire en grille à deux colonnes sur grand écran */
#register-form {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Deux colonnes de largeur égale */
    gap: 20px; /* Espace uniforme entre tous les champs */
}

/* 3. Forçage des éléments qui doivent prendre toute la largeur (Plein écran) */
#register-form .form-row-2col {
    grid-column: span 1; /* Le bloc prénom/nom s'aligne proprement à gauche */
    display: flex;
    gap: 15px;
}

#register-form .form-row-2col .form-group {
    flex: 1;
}

/* Le champ téléphone passe sur la colonne de gauche */
#register-form .form-group:nth-child(2) {
    grid-column: span 1;
}

/* L'email et le mot de passe se placent automatiquement sur la colonne de droite */
#register-form .form-group:nth-child(3),
#register-form .form-group:nth-child(4) {
    grid-column: span 1;
}

/* Les options (case à cocher), le bouton et le footer prennent toute la largeur de la grille */
#register-form .form-options,
#register-form .btn-submit-login {
    grid-column: span 2; /* S'étirent sur les deux colonnes */
}

/* Aligne le bouton créer mon compte au centre sur grand écran */
.btn-submit-login {
    width: 100%;
    max-width: 320px;
    margin: 10px auto 0; /* Centre le bouton horizontalement */
}


/* ==========================================================================
   STRUCTURE VERTICALE STRICTE POUR L'INSCRIPTION
   ========================================================================== */
#register-modal-overlay .modal-card {
    max-width: 420px; /* Largeur universelle élégante pour PC et Mobile */
    width: 92%;
    padding: 40px 30px;
}

#register-form {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Écartement vertical fixe et régulier entre chaque champ */
}

/* Force tous les conteneurs à occuper 100% de la largeur du bloc */
#register-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

#register-form .form-options,
#register-form .btn-submit-login {
    width: 100%;
}

.btn-submit-login {
    padding: 14px;
    margin-top: 5px;
}

/* --- ADAPTATION TACTILE PETITS MOBILES --- */
@media (max-width: 576px) {
    #register-modal-overlay .modal-card {
        padding: 30px 20px;
        max-height: 90vh;
        overflow-y: auto; /* Permet un scroll au pouce si l'écran est très bas */
    }
}


/* ==========================================================================
   CONTRÔLE DU DÉFILEMENT DE LA FENÊTRE MODALE (GRAND ET PETIT ÉCRAN)
   ========================================================================== */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(5, 9, 23, 0.8);
    backdrop-filter: blur(8px);
    
    /* MODIFICATIONS CLÉS POUR LE DÉFILEMENT */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Aligne la carte vers le haut plutôt qu'au centre strict */
    overflow-y: auto;        /* Permet à l'overlay de défiler si le contenu dépasse */
    padding: 40px 20px;      /* Ajoute de l'espace en haut et en bas lors du défilement */
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2500;
}

.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 17, 40, 0.95); /* Fond sombre transparent */
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Force l'affichage par-dessus tout */
}


/* La carte centrale s'adapte à la hauteur disponible */
#register-modal-overlay .modal-card {
    background-color: var(--bg-card);
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    
    /* ÉVITE LE BLOCAGE VISUEL */
    margin: auto 0; /* Centre verticalement s'il y a de la place, sinon permet le défilement */
    
    transform: translateY(30px);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.login-modal.active .modal-card {
    transform: translateY(0);
}



/* Positionnement du conteneur du mot de passe */
.password-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

/* On s'assure que l'input laisse de la place à droite pour le bouton sans que le texte passe dessous */
.password-wrapper input {
    width: 100%;
    padding-right: 45px !important; /* Espace requis pour ne pas masquer les caractères */
}

/* Style du bouton œil */
.toggle-password-btn {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: color 0.2s ease;
}

.toggle-password-btn:hover {
    color: var(--orange-primary); /* L'œil passe en orange au survol */
}

.eye-icon {
    display: block;
    pointer-events: none; /* Évite les conflits de clic sur le SVG */
}



/* Positionnement à l'intérieur du champ de saisie */
.password-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 45px !important; /* Laisse la place pour l'icône de l'œil */
}

/* Style du bouton œil */
.toggle-password-btn {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: color 0.2s ease;
}

.toggle-password-btn:hover {
    color: var(--orange-primary); /* L'œil s'illumine en orange au survol */
}

.eye-icon {
    display: block;
    pointer-events: none; /* Évite les erreurs de ciblage tactile sur le dessin SVG */
}



/* --- ANIMATION DE CHARGEMENT SUR LES BOUTONS --- */
.btn-submit-login {
    position: relative;
    transition: all 0.2s ease;
}

/* Classe active injectée par JavaScript pendant le chargement */
.btn-submit-login.is-loading {
    color: transparent !important; /* Rend le texte invisible pour laisser place au spinner */
    pointer-events: none; /* Désactive le bouton pour éviter les doubles clics */
    cursor: not-allowed;
}

/* Création du cercle de chargement (Spinner) */
.btn-submit-login.is-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    border: 3px solid rgba(255, 255, 255, 0.3); /* Cercle de fond transparent */
    border-radius: 50%;
    border-top-color: #ffffff; /* Partie blanche brillante qui tourne */
    animation: spin-button 0.8s linear infinite; /* Rotation continue */
}

/* Règle de rotation CSS */
@keyframes spin-button {
    to {
        transform: rotate(360deg);
    }
}


/* --- COMPOSANT DE NOTIFICATION INTÉGRÉ --- */
.form-notification {
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: left;
    animation: fadeInNotification 0.3s ease;
}

/* Style d'erreur (Ex: Mauvais mot de passe) */
.form-notification.error-style {
    background-color: rgba(212, 77, 19, 0.1);
    border-left: 4px solid var(--orange-primary);
    color: #ff6b4a;
}

/* Style de succès (Ex: Compte créé) */
.form-notification.success-style {
    background-color: rgba(43, 209, 162, 0.1);
    border-left: 4px solid #2bd1a2;
    color: #2bd1a2;
}

@keyframes fadeInNotification {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}



/* --- BANDEAUX DE NOTIFICATION DU TABLEAU DE BORD --- */
.dash-notification {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.4;
    animation: slideInNotif 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.dash-notification.success {
    background-color: rgba(43, 209, 162, 0.08);
    border-left: 4px solid #2bd1a2;
    color: #2bd1a2;
}

.dash-notification.error {
    background-color: rgba(212, 77, 19, 0.08);
    border-left: 4px solid var(--orange-primary);
    color: #ff6b4a;
}

@keyframes slideInNotif {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}



/* --- COMPOSANT BUSINESS AFD --- */
.business-afd-section {
    background-color: var(--bg-dark);
    padding: 60px 5%;
    width: 100%;
}

/* Grille principale */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch; /* Aligne la hauteur de toutes les cartes */
}

/* Design des cartes individuelles */
.business-item-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.business-item-card:hover {
    transform: translateY(-5px);
    border-color: rgba(242, 101, 34, 0.2);
}

/* Zone Icône */
.business-icon-box {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* Titres des items */
.business-item-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* Textes de description */
.business-item-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1; /* Pousse la zone de bouton tout en bas uniformément */
}

/* --- CARTE MISE EN AVANT (BOUTIQUE) --- */
.business-item-card.featured-business {
    border: 2px solid var(--orange-primary);
    background: linear-gradient(180deg, #131d3f 0%, var(--bg-card) 100%);
    transform: scale(1.02);
}

.business-item-card.featured-business:hover {
    box-shadow: 0 15px 30px rgba(242, 101, 34, 0.15);
}

/* --- RESPONSIVE SMARTPHONE --- */
@media (max-width: 992px) {
    .business-item-card.featured-business {
        transform: scale(1); /* Annule l'agrandissement sur tablette et mobile */
    }
}

@media (max-width: 576px) {
    .business-grid {
        grid-template-columns: 1fr; /* Force 1 seule colonne sur petit écran */
        gap: 20px;
    }
    .business-item-card {
        padding: 30px 20px;
    }
}

