/* =================================================================== */
/* FICHIER DE STYLES CONSOLIDÉ ET RÉORGANISÉ POUR LE SITE DE LA FBTT    */
/* =================================================================== */

/* ---------------------------------- */
/* 1. VARIABLES & STYLES GLOBAUX      */
/* ---------------------------------- */

:root {
    --primary-color: #006A4E; /* Vert du logo */
    --secondary-color: #FCD116; /* Jaune du logo */
    --accent-color: #E8112D; /* Rouge du logo */
    --dark-text: #1E1E1E; /* Noir/Gris très foncé pour le texte */
    --light-text: #ffffff;
    --background-light: #f7f7f7; /* Un gris très léger pour le fond */
    --border-color: #e1e1e1;
    --font-primary: 'Poppins', sans-serif;
}

/* Reset de base et typographie */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: var(--font-primary);
    color: var(--dark-text);
    line-height: 1.6;
    background-color: var(--background-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { 
    color: var(--accent-color); 
    text-decoration: none; 
    transition: color 0.3s ease; 
}
a:hover { color: #b90e24; }
ul { list-style-type: none; }
img { max-width: 100%; height: auto; }

h2 {
    font-size: 2.2rem;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

/* ---------------------------------- */
/* 2. STRUCTURE PRINCIPALE            */
/* ---------------------------------- */

/* --- Sections Communes --- */
main { padding: 2rem 5%; flex: 1 0 auto; }
footer { flex-shrink: 0; }
.container { max-width: 1100px; margin: 0 auto; }

.page-header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 2.5rem 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}
.page-header h1 { font-size: 2.5rem; }

.page-intro {
    text-align: center;
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    color: #555;
}

/* --- Header --- */
.top-bar {
    background-color: var(--background-light);
    padding: 0.5rem 5%;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9em;
}
.top-bar-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.top-bar .btn-member {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 5px 15px;
    border-radius: 20px;
    transition: background-color 0.3s ease;
}
.top-bar .btn-member:hover { background-color: #00583E; }

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--light-text); /* Fond par défaut */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background-image: url('../images/fond_header.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.main-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}
.main-header > * { position: relative; z-index: 2; }
.main-header .logo-link img { height: 50px; }

/* --- Footer --- */
footer { background-color: var(--dark-text); color: var(--light-text); text-align: left; }
.footer-logo { height: 70px; width: auto; }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; padding: 2.5rem 5%; max-width: 1200px; margin: 0 auto; }
.footer-section { flex: 1; min-width: 280px; }
.footer-section h3 { color: var(--light-text); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary-color); }
.footer-section.about .contact span { display: block; margin-top: 10px; }
.footer-section.links ul li { margin-bottom: 10px; }
.footer-section.links a { color: #ccc; }
.footer-section.links a:hover { color: var(--light-text); }
.newsletter-form { display: flex; margin-top: 1rem; }
.newsletter-form .text-input { flex: 1; padding: 10px; border: 1px solid #555; border-radius: 4px 0 0 4px; background: #333; color: var(--light-text); }
.newsletter-form .btn-subscribe { padding: 10px 15px; background-color: var(--accent-color); color: var(--light-text); border: none; cursor: pointer; border-radius: 0 4px 4px 0; transition: background-color 0.3s ease; white-space: nowrap; }
.newsletter-form .btn-subscribe:hover { background-color: #b90e24; }
.credit-link { color: var(--light-text); font-weight: bold; text-decoration: none; }
.credit-link:hover { text-decoration: underline; color: var(--secondary-color); }

/* Styles pour la barre inférieure du footer */

.footer-bottom {
    display: flex; /* Active le mode Flexbox */
    justify-content: space-between; /* Pousse les éléments aux extrémités */
    align-items: center; /* Centre verticalement les éléments */
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne sur mobile */
    gap: 15px; /* Espace entre les éléments s'ils passent à la ligne */
    padding: 1rem 5%;
    background-color: #1a1a1a;
    border-top: 1px solid #444;
    font-size: 0.9em;
}

.footer-bottom p {
    margin: 0; /* Annule la marge par défaut du paragraphe */
    color: #ccc;
}

.footer-legal a {
    color: #ccc;
    margin: 0 5px; /* Ajoute un petit espace entre les liens */
}

.footer-legal a:hover {
    color: var(--light-text);
}

/* Correction pour l'alignement du footer-bottom */


/* ---------------------------------- */
/* 3. NAVIGATION (MOBILE & DESKTOP)   */
/* ---------------------------------- */

/* --- Menu Burger Animé (Visible sur mobile) --- */
.menu-toggle {
    width: 25px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}
.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--light-text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* --- Navigation (Base pour Mobile) --- */
.main-nav ul {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--light-text);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 60px 20px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
}
.main-nav a { font-weight: 600; color: var(--dark-text); padding: 10px 0; }

/* Menu mobile actif */
body.nav-active .main-nav ul { transform: translateX(0); }
body.nav-active .menu-toggle span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
body.nav-active .menu-toggle span:nth-child(2) { opacity: 0; }
body.nav-active .menu-toggle span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* Menu déroulant sur mobile */
.dropdown { position: relative; }
.main-nav .dropdown-menu { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out; list-style: none; }
.dropdown.is-open .dropdown-menu { max-height: 500px; }
.dropdown-toggle { display: block; position: absolute; right: 0; top: 5px; width: 30px; height: 30px; background: transparent; border: none; cursor: pointer; }
.dropdown-toggle::after { content: ''; position: absolute; top: 12px; left: 10px; border: solid var(--dark-text); border-width: 0 2px 2px 0; padding: 3px; transform: rotate(45deg); transition: transform 0.3s ease; }
.dropdown.is-open .dropdown-toggle::after { transform: rotate(-135deg); top: 15px; }

/* Visibilité sous-menu mobile */
.main-nav .dropdown-menu { background-color: var(--background-light); border-radius: 8px; margin-top: 10px; margin-left: 15px; padding: 10px 15px; box-shadow: inset 0 1px 4px rgba(0,0,0,0.06); border: 1px solid #e0e0e0; }
.dropdown-menu li a { display: block; color: var(--dark-text); font-weight: 500; font-size: 0.9em; padding: 8px 0; }
.dropdown-menu li a::before { content: '›'; margin-right: 8px; font-weight: bold; color: var(--primary-color); }

/* --- Styles pour Desktop (écran large) --- */
@media (min-width: 992px) {
    .menu-toggle { display: none; }
    .dropdown-toggle { display: none; }
    
    .main-nav ul {
        position: static;
        flex-direction: row;
        width: auto;
        height: auto;
        background-color: transparent;
        box-shadow: none;
        transform: translateX(0);
        padding: 0;
        gap: 20px;
    }
    .main-nav a {
        font-size: 0.9em;
        white-space: nowrap;
        position: relative;
        color: var(--light-text);
        text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    }
    .main-nav a::after {
        content: '';
        position: absolute;
        bottom: 0; left: 0;
        width: 100%; height: 3px;
        background-color: var(--accent-color);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease-out;
    }
    .main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

    /* Menu déroulant sur desktop */
    .main-nav .dropdown-menu { display: none; position: absolute; top: 100%; left: 0; width: 220px; background-color: var(--light-text); box-shadow: 0 8px 16px rgba(0,0,0,0.1); z-index: 100; padding: 10px 0; border-radius: 0 0 8px 8px; max-height: none; margin-top: 0; margin-left: 0; border: none; overflow: visible; }
    .main-nav .dropdown:hover .dropdown-menu { display: block; }
    .dropdown-menu li { width: 220px; }
    .dropdown-menu li a { color: var(--dark-text); text-shadow: none; padding: 10px 20px; }
    .dropdown-menu li a:hover { background-color: var(--background-light); }
    .dropdown-menu li a::before { content: ''; margin-right: 0; }
    .footer-bottom { flex-direction: row; }
}

/* ---------------------------------- */
/* 4. STYLES SPÉCIFIQUES AUX PAGES    */
/* ---------------------------------- */

/* --- Page d'Accueil --- */
#hero { background: url('../images/fond_hero.jpg') no-repeat center center/cover; height: 70vh; display: flex; justify-content: center; align-items: center; text-align: center; }
#hero .hero-logo { max-width: 150px; margin-bottom: 1rem; }
#hero h1 { font-size: 2.8rem; margin-bottom: 0.5rem; background: none; color: var(--light-text); text-shadow: 2px 2px 5px rgba(0,0,0,0.7); }
#hero p { font-size: 1.2rem; color: var(--light-text); text-shadow: 1px 1px 3px rgba(0,0,0,0.7); }
#latest-news .articles-container, #upcoming-competitions .competitions-container { margin-bottom: 1.5rem; }
.btn { display: inline-block; padding: 10px 20px; background-color: var(--accent-color); color: var(--light-text); border: none; border-radius: 5px; text-decoration: none; cursor: pointer; transition: background-color 0.3s ease; }
.btn:hover { background-color: #b90e24; }

/* --- Page À Propos --- */
.presidents-welcome { display: flex; align-items: center; flex-wrap: wrap; gap: 2rem; background-color: var(--background-light); padding: 2rem; border-radius: 8px; margin-bottom: 3rem; }
.president-photo { flex-shrink: 0; width: 180px; height: 180px; border-radius: 50%; background-color: #ccc; background-size: cover; background-position: center; border: 5px solid var(--light-text); box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.president-text { flex: 1; min-width: 300px; }
.president-text h2 { text-align: left; margin-bottom: 1rem; }
.president-text h2::after { left: 0; transform: translateX(0); }
.president-signature { margin-top: 1.5rem; font-style: italic; text-align: right; }

/* --- Pages Fédération (Bureau, Commissions) --- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.member-card { background-color: var(--light-text); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); text-align: center; padding: 2rem; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.member-card:hover { transform: translateY(-5px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.member-photo { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 1.5rem auto; background-color: #e9ecef; background-size: cover; background-position: center; border: 4px solid var(--primary-color); }
.member-name { font-size: 1.4rem; margin-bottom: 0.25rem; }
.member-name::after { display: none; }
.member-role { color: var(--accent-color); font-weight: bold; }
.president-card { display: flex; flex-direction: column; align-items: center; text-align: center; background-color: #fff; padding: 2rem; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.president-info { margin-top: 1.5rem; }
.president-bio { font-size: 0.95em; color: #444; margin-top: 1rem; text-align: left; }
@media (min-width: 768px) {
    .president-card { flex-direction: row; text-align: left; }
    .president-card .member-photo { margin: 0 2rem 0 0; }
    .president-info { margin-top: 0; }
}

/* --- Page Classement --- */
#ranking-filters form { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; padding: 1.5rem; background-color: var(--light-text); border-radius: 8px; margin-bottom: 2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-size: 0.9em; margin-bottom: 5px; color: #555; }
.form-group select { padding: 10px; border: 1px solid var(--border-color); border-radius: 4px; font-size: 1em; }
#ranking-filters .btn { background-color: var(--primary-color); color: var(--light-text); padding: 10px 20px; border: none; align-self: flex-end; }
.table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#ranking-table table { width: 100%; border-collapse: collapse; background-color: var(--light-text); box-shadow: 0 2px 8px rgba(0,0,0,0.08); border-radius: 8px; overflow: hidden; }
#ranking-table caption { padding: 1rem; font-size: 1.2em; font-weight: bold; color: var(--dark-text); text-align: left; }
#ranking-table th, #ranking-table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border-color); }
#ranking-table th { background-color: var(--accent-color); color: var(--light-text); font-size: 1.1em; text-transform: uppercase; }
#ranking-table tbody tr:nth-child(even) { background-color: var(--background-light); }
#ranking-table tbody tr:hover { background-color: #e9f5ff; }
#ranking-table .rank { width: 10%; text-align: center; font-weight: bold; }
#ranking-table .player { width: 40%; }
#ranking-table .club { width: 35%; }
#ranking-table .points { width: 15%; text-align: center; font-weight: bold; }

/* --- Page Clubs & Ligues --- */
.leagues-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.league-card { background-color: var(--light-text); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.league-card:hover { transform: translateY(-5px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.league-header { padding: 1rem 1.5rem; color: var(--light-text); display: flex; justify-content: space-between; align-items: center; }
.league-header h2 { color: inherit; font-size: 1.5rem; margin: 0; padding: 0; }
.league-header h2::after { display: none; }
.club-count { background-color: rgba(0,0,0,0.2); padding: 5px 12px; border-radius: 15px; font-size: 0.9em; font-weight: bold; }
.header-nord { background-color: var(--primary-color); }
.header-centre { background-color: var(--secondary-color); color: var(--dark-text); }
.header-sud { background-color: var(--accent-color); }
.league-body { padding: 1.5rem; flex-grow: 1; }
.department-list { margin-bottom: 1.5rem; }
.department-list:last-child { margin-bottom: 0; }
.department-list h4 { margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--border-color); color: var(--dark-text); }
.department-list ul { list-style-position: inside; padding-left: 5px; }
.department-list li { margin-bottom: 5px; color: #555; }

/* --- Page Actualités --- */
.articles-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.article-card { background-color: var(--light-text); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s ease; }
.article-card:hover { transform: translateY(-5px); }
.article-image { height: 200px; background-size: cover; background-position: center; }
.article-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.article-title { font-size: 1.3rem; margin-bottom: 0.5rem; }
.article-title::after { display: none; }
.article-meta { font-size: 0.8em; color: #777; margin-bottom: 1rem; }
.article-excerpt { flex-grow: 1; margin-bottom: 1.5rem; }
.btn-read-more { display: inline-block; padding: 10px 15px; background-color: var(--primary-color); color: var(--light-text); border-radius: 4px; text-align: center; align-self: flex-start; }
.btn-read-more:hover { background-color: #00583E; color: var(--light-text); }

/* --- Page Compétitions --- */
.competition-item { background-color: var(--light-text); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); margin-bottom: 1.5rem; padding: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; border-left: 5px solid var(--primary-color); }
.competition-info { flex: 3; min-width: 300px; }
.competition-name { font-size: 1.4rem; color: var(--dark-text); margin-bottom: 0.5rem; }
.competition-name::after { display: none; }
.competition-meta { font-size: 0.9em; color: #666; margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: 1.5rem; }
.competition-description { font-size: 1em; }
.competition-status { flex: 1; min-width: 150px; text-align: right; }
.status-badge { display: inline-block; padding: 6px 12px; border-radius: 20px; font-weight: bold; font-size: 0.8em; color: var(--light-text); margin-bottom: 1rem; }
.status-badge.status-a-venir { background-color: var(--primary-color); }
.status-badge.status-termine { background-color: #888; }
.status-badge.status-en-cours { background-color: #007bff; }
.btn-results { display: inline-block; padding: 8px 16px; background-color: var(--accent-color); color: var(--light-text); border-radius: 4px; font-size: 0.9em; }
.btn-results:hover { background-color: #b90e24; color: var(--light-text); }

/* --- Page Joueurs & Profil --- */
.player-filters { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 2rem; padding: 1.5rem; background-color: var(--light-text); border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
#player-search { flex-grow: 1; padding: 10px; border: 1px solid var(--border-color); border-radius: 4px; font-size: 1em; }
.players-grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.player-card { background-color: var(--light-text); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); overflow: hidden; text-decoration: none; color: var(--dark-text); display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.player-card:hover { transform: translateY(-5px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.player-card-image { height: 280px; background-size: cover; background-position: center; }
.player-card-info { padding: 1rem; position: relative; }
.player-card-name { font-size: 1.2rem; margin-bottom: 0.25rem; }
.player-card-name::after { display: none; }
.player-card-club { color: #666; font-size: 0.9em; }
.player-card-category { position: absolute; top: 1rem; right: 1rem; background-color: var(--secondary-color); color: var(--dark-text); padding: 4px 10px; border-radius: 12px; font-size: 0.8em; font-weight: bold; }
#player-profile-container { background-color: var(--light-text); padding: 2rem; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.profile-header { display: flex; align-items: center; flex-wrap: wrap; gap: 2rem; padding-bottom: 2rem; border-bottom: 2px solid var(--border-color); }
.profile-image { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 5px solid var(--primary-color); }
.profile-name { font-size: 2.5rem; margin-bottom: 0; }
.profile-name::after { display: none; }
.profile-club { font-size: 1.2rem; color: #555; font-weight: 500; }
.profile-details { padding-top: 2rem; }
.profile-details ul { list-style: none; padding: 0; margin-top: 1rem; }
.profile-details li { padding: 0.5rem 0; font-size: 1.1em; border-bottom: 1px solid #f0f0f0; }
.profile-details li:last-child { border-bottom: none; }

/* --- Page Documents --- */
.documents-container { display: flex; flex-direction: column; gap: 1.5rem; }
.document-item { background-color: var(--light-text); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); padding: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; transition: box-shadow 0.3s ease; }
.document-item:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.document-icon { font-size: 2.5rem; color: var(--primary-color); }
.document-details { flex: 1; min-width: 250px; }
.document-title { font-size: 1.3rem; margin-bottom: 0.25rem; }
.document-title::after { display: none; }
.document-description { font-size: 0.95em; color: #555; margin-bottom: 0.5rem; }
.document-meta { font-size: 0.8em; color: #777; }
.btn-download { padding: 10px 20px; background-color: var(--accent-color); color: var(--light-text); border-radius: 4px; text-align: center; font-weight: bold; white-space: nowrap; }
.btn-download:hover { background-color: #b90e24; color: var(--light-text); }

/* --- Formulaire de Contact --- */
#contact-section form { display: flex; flex-direction: column; max-width: 600px; margin: 0 auto; background-color: var(--light-text); padding: 2rem; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
#contact-section label { margin-bottom: 0.5rem; font-weight: 600; }
#contact-section input, #contact-section textarea { width: 100%; padding: 0.8rem; margin-bottom: 1.5rem; border: 1px solid var(--border-color); border-radius: 4px; font-size: 1rem; font-family: var(--font-primary); }
#contact-section input:focus, #contact-section textarea:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(232, 17, 45, 0.2); }
#contact-section button { background-color: var(--primary-color); color: var(--light-text); border: none; padding: 1rem; font-size: 1.1rem; font-weight: bold; border-radius: 4px; cursor: pointer; transition: background-color 0.3s ease; }
#contact-section button:hover { background-color: #00583E; }
#form-status { text-align: center; margin-top: 1rem; font-weight: bold; }

/* STYLES PAGE PARTENAIRES & SPONSORS */

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
}

.sponsor-card {
    background-color: var(--light-text);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.sponsor-card img {
    max-width: 100%;
    max-height: 80px;
    filter: grayscale(100%); /* Logos en noir et blanc par défaut */
    opacity: 0.8;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.sponsor-card:hover img {
    filter: grayscale(0%); /* Logos en couleur au survol */
    opacity: 1;
}

/* STYLES PAGE ARTICLE UNIQUE */

.article-full-content {
    background-color: var(--light-text);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.article-full-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
.article-full-title::after {
    display: none;
}

.article-full-meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 2rem;
}

.article-feature-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.article-body-content {
    font-size: 1.1em;
    line-height: 1.7;
}

.article-body-content p {
    margin-bottom: 1.5rem;
}

/* STYLES PAGE RÉSULTATS */

#results-container .page-header {
    margin-bottom: 2rem;
    border-radius: 8px;
}
#results-container .page-header p {
    color: #eee;
    font-size: 1.1em;
    margin-top: 0.5rem;
}

.results-content {
    background-color: var(--light-text);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.results-category {
    margin-bottom: 2rem;
}
.results-category:last-child {
    margin-bottom: 0;
}

.results-category h4 {
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.podium-list {
    list-style: none;
    padding-left: 0;
}

.podium-list li {
    font-size: 1.1em;
    padding: 0.5rem 0;
}

.medal {
    font-size: 1.2em;
    margin-right: 10px;
}

/* STYLES PAGE DASHBOARD */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

#welcome-message {
    font-size: 2rem;
    margin-bottom: 0;
}
#welcome-message::after {
    display: none;
}

#logout-button {
    background-color: var(--accent-color);
}

#logout-button:hover {
    background-color: #b90e24;
}

.dashboard-content {
    background-color: var(--light-text);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
/* Message d'information sur la page de connexion */
.login-notice {
    background: #f0f7f4;
    border-left: 4px solid var(--primary-color);
    padding: 0.9rem 1.1rem;
    margin: 0 0 1.5rem;
    border-radius: 4px;
    font-size: 0.95em;
    line-height: 1.5;
}
