:root {
    --color-primary: #1B4332;
    /* Vert profond forêt */
    --color-secondary: #2D6A4F;
    /* Vert émeraude sombre */
    --color-accent: #D4AF37;
    /* Or / Doré */
    --color-earth: #9C6644;
    /* Terre cuite */
    --color-wood: #7F4F24;
    /* Bois foncé */
    --color-text: #333333;
    --color-light: #F8F9FA;
    --color-white: #FFFFFF;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-light);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Navigation & Header de la Fraternelle --- */
.main-header {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 1.2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    /* Empêche structurellement les menus de coller au logo */
}

.logo {
    flex-shrink: 0;
    /* Bloque l'écrasement ou la déformation du logo */
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-white);
    text-decoration: none;
    letter-spacing: 1px;
    white-space: nowrap;
}

.logo span {
    color: var(--color-accent);
}

.main-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-grow: 1;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.8rem;
    /* Espacement optimal et fluide des blocs parents */
    align-items: center;
}

.burger-menu {
    display: none;
    background: transparent;
    border: none;
    color: var(--color-white);
    cursor: pointer;
}

.main-nav a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.main-nav a:hover {
    color: var(--color-accent);
}

.btn-member {
    background-color: var(--color-accent);
    color: var(--color-primary) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-member:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* --- Système de Dropdown Immersif --- */
.main-nav .dropdown {
    position: relative;
}

/* 1. On masque STRICTEMENT les sous-menus par défaut */
.dropdown-menu {
    display: none !important;
    /* Le !important force le masquage, peu importe les autres règles */
    position: absolute;
    top: calc(100% + 0.8rem);
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-secondary);
    min-width: 230px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    z-index: 200;
    list-style: none;
    flex-direction: column;
    padding: 0.5rem 0;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 2. On affiche UNIQUEMENT quand le JavaScript détecte le clic et ajoute la classe "active" */
.main-nav .dropdown.active .dropdown-menu {
    display: flex !important;
    /* Le !important force l'affichage au clic */
}

/* Flèche d'ancrage supérieure */
.dropdown-menu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: var(--color-secondary);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    padding: 0.7rem 1.5rem;
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.25s ease;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: var(--color-primary);
    color: var(--color-accent);
    padding-left: 1.8rem;
    /* Effet de glissement dynamique */
}

/* Restant des styles inchangés */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.btn-primary:hover {
    background-color: #bfa032;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.hero-section {
    position: relative;
    background-image: url('../../Media/Image_accueil.jpeg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    color: var(--color-white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(27, 67, 50, 0.9), rgba(45, 106, 79, 0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-content h1 span {
    color: var(--color-accent);
}

.hero-content .subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

section {
    padding: 5rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 3rem;
    text-align: center;
}

.news-grid {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-bottom: 2rem;
}

.news-grid::-webkit-scrollbar {
    height: 8px;
}

.news-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.news-grid::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

.news-card {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    min-width: 300px;
    max-width: 350px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 2rem;
}

.news-date {
    font-size: 0.9rem;
    color: var(--color-earth);
    font-weight: 600;
}

.news-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 0.5rem 0 1rem;
    color: var(--color-primary);
}

.anthem-section {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.anthem-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.anthem-info h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

.audio-player-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 500px;
    margin-top: 2rem;
}

/* ==========================================================================
   GLOBAL AUDIO PLAYER (FLOATING & PERSISTENT)
   ========================================================================== */
/* Removed duplicate global-audio-player CSS */

.play-btn {
    background: var(--color-accent);
    color: var(--color-primary);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.play-btn:hover {
    transform: scale(1.05);
}

.progress-container {
    flex-grow: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: var(--color-accent);
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s linear;
}

.time-display {
    font-size: 0.9rem;
    font-weight: 600;
}

.volume-control {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.volume-slider {
    width: 80px;
    cursor: pointer;
    accent-color: var(--color-accent);
}

.president-word {
    background-color: var(--color-earth);
    color: var(--color-white);
    text-align: center;
}

.quote-box blockquote {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.quote-box .author {
    font-weight: 600;
    color: var(--color-accent);
    font-size: 1.2rem;
}

.main-footer {
    background-color: #111;
    color: var(--color-light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-info h3 {
    font-family: var(--font-heading);
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.footer-links h4 {
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #888;
}

.login-box {
    max-width: 400px;
    margin: 5rem auto;
    padding: 3rem;
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.admin-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.admin-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.admin-card p {
    margin-bottom: 1.5rem;
}

.culture-immersive {
    background-image: linear-gradient(rgba(27, 67, 50, 0.85), rgba(45, 106, 79, 0.85)), url('../../Media/WhatsApp Image 2026-06-28 at 18.56.37.jpeg');
    background-size: cover;
    background-attachment: fixed;
    color: var(--color-white);
    padding: 6rem 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--color-accent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--color-white);
    border: 4px solid var(--color-accent);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-left {
    left: 0;
}

.timeline-right {
    left: 50%;
}

.timeline-right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--color-white);
    color: var(--color-text);
    position: relative;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.doc-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--color-primary);
}

.doc-card.expired {
    border-left-color: #dc3545;
    opacity: 0.7;
}

.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.badge-active {
    color: #fff;
    background-color: #28a745;
}

.badge-expired {
    color: #fff;
    background-color: #dc3545;
}

.doc-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

/* --- Responsive Mobile Panel --- */
@media (max-width: 900px) {
    .burger-menu {
        display: block;
        z-index: 1001;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--color-primary);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 6rem;
        justify-content: flex-start;
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 2rem;
        gap: 1rem;
        width: 100%;
    }

    .main-nav li {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.15);
        padding-left: 1rem;
        margin-top: 0.5rem;
        min-width: 100%;
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown-menu li a {
        padding: 0.6rem 1rem;
    }

    .btn-member {
        display: inline-block;
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }
}

/* --- Responsive Global (Mobile) --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .anthem-container {
        padding: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links p {
        margin-bottom: 0.5rem;
    }
    
    /* Responsive Timeline */
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 15px;
    }
    
    .timeline-item::after {
        left: 21px;
    }
    
    .timeline-right {
        left: 0;
    }
    
    .quote-box blockquote {
        font-size: 1.4rem;
    }
}

/* --- NOUVELLES FONCTIONNALITÉS ÉVÉNEMENTIELLES 2026 --- */

/* 1. Compte à Rebours */
.countdown-container {
    margin-top: 2rem;
    text-align: center;
}
.countdown-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.cd-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 1rem;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cd-box span {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--color-accent);
    line-height: 1;
}
.cd-box small {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    color: var(--color-white);
}

/* 2. Chiffres Clés Animés */
.stats-section {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 4rem 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}
.stat-number {
    font-size: 4rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 3. Appel à l'action (CTA) */
.cta-section {
    background-color: var(--color-light);
}
.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.cta-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.cta-card:hover {
    transform: translateY(-10px);
}
.cta-featured {
    background: var(--color-primary);
    color: var(--color-white);
}
.cta-featured h3 {
    color: var(--color-accent) !important;
}
.cta-featured p {
    color: rgba(255,255,255,0.9);
}
.cta-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.cta-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}
.cta-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

/* 4. Social Wall */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.social-card {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: #eee;
    aspect-ratio: 1 / 1;
}
.social-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #ddd; /* fallback */
    transition: transform 0.3s ease;
}
.social-card:hover .social-img {
    transform: scale(1.05);
}
.social-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 1rem;
    font-size: 0.9rem;
    display: flex;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.social-card:hover .social-meta {
    opacity: 1;
}

/* 5. Sponsors Marquee */
.sponsor-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}
.marquee-content {
    display: inline-block;
    animation: scroll 80s linear infinite;
}
.marquee-content:hover, .marquee-content:active, .sponsor-marquee:hover, .sponsor-marquee:active {
    animation-play-state: paused;
}
.sponsor-logo {
    display: inline-block;
    margin: 0 2rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #999;
    font-family: var(--font-heading);
    transition: color 0.3s;
    cursor: pointer;
}
.sponsor-logo:hover {
    color: var(--color-primary);
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* Global Audio Player (Glassmorphism & Compact) */
.global-audio-player { position: fixed; bottom: 30px; left: 20px; background: rgba(255, 255, 255, 0.35); padding: 8px 15px; border-radius: 50px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); display: flex; align-items: center; gap: 10px; z-index: 1000; width: auto; max-width: calc(100vw - 40px); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.4); transition: all 0.3s ease; }
.global-audio-player:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.6); border-color: rgba(255, 255, 255, 0.7); }
.global-audio-player .player-info { display: flex; flex-direction: column; min-width: 100px; font-size: 0.85rem; }
.global-audio-player .player-controls { display: flex; align-items: center; flex-grow: 1; min-width: 150px; }
@media (max-width: 600px) { .global-audio-player { bottom: 20px; left: 10px; right: 10px; max-width: calc(100vw - 20px); border-radius: 25px; padding: 8px 12px; } }

/* Gallery Preview */
.gallery-item-preview:hover img { transform: scale(1.05); }
.gallery-item-preview:hover .overlay { opacity: 1; }
.gallery-item-preview:hover .overlay h4, .gallery-item-preview:hover .overlay p { transform: translateY(0); }

/* --- Nouvelles Pages Internes --- */
/* Parallax Header */
.parallax-header {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    padding: 8rem 0;
}
.parallax-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}
.parallax-header .container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

/* Profile Cards (Bureau) */
.profile-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--color-light);
}
.profile-role {
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.profile-quote {
    font-style: italic;
    color: #666;
    font-size: 0.95rem;
}

/* Culture Cards (Gastronomie/Art) */
.culture-card {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.culture-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.culture-card:hover img {
    transform: scale(1.1);
}
.culture-card-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.culture-card:hover .culture-card-content {
    opacity: 1;
}

/* FAQ Accordion (Statuts) */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}
.accordion-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}
.accordion-header {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--color-primary);
    transition: background 0.3s ease;
}
.accordion-header:hover {
    background: var(--color-light);
}
.accordion-content {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555;
    line-height: 1.6;
}
.accordion-item.active .accordion-content {
    padding: 0 2rem 1.5rem 2rem;
    max-height: 500px;
}


/* --- Equipes et Calendrier --- */
/* Equipes Grid */
.teams-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.team-card-new {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.team-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.team-crest {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-primary);
    border: 3px solid #eee;
}
.team-name {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.team-village {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.team-hover-action {
    position: absolute;
    inset: 0;
    background: rgba(14, 52, 96, 0.9); /* Primary color */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.team-card-new:hover .team-hover-action {
    opacity: 1;
}

/* Tabs */
.tabs-header {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}
.tab-btn {
    padding: 1rem 2rem;
    background: white;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}
.tab-btn.active, .tab-btn:hover {
    background: var(--color-primary);
    color: white;
}
.tab-content {
    display: none;
    animation: fadeUp 0.5s ease;
}
.tab-content.active {
    display: block;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Classement Tables */
.classement-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.classement-table th {
    background: var(--color-primary);
    color: white;
    padding: 1rem;
    text-align: center;
}
.classement-table th:first-child, .classement-table td:first-child {
    text-align: left;
    padding-left: 1.5rem;
}
.classement-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}
.classement-table tr:last-child td {
    border-bottom: none;
}
.classement-table tr:hover {
    background: #f9f9f9;
}
.qualifie {
    border-left: 4px solid var(--color-accent);
}

/* Bracket */
.bracket-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0;
}
.bracket-round {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 2rem;
    min-width: 250px;
}
.bracket-match {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}
.bracket-team {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}
.bracket-team:last-child {
    border-bottom: none;
}
.bracket-score {
    color: var(--color-accent);
}


/* --- Alertes Urgentes --- */
.urgent-section {
    padding: 3rem 0 1rem 0;
    background: #fff5f5; /* Fond très légèrement rouge */
    border-bottom: 2px solid #ffe3e3;
}
.urgent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.urgent-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.15); /* Ombre rouge subtile */
    border-left: 5px solid #dc3545; /* Bordure rouge vif */
    padding: 1.5rem;
    position: relative;
    transition: transform 0.3s ease;
    overflow: hidden;
}
.urgent-card:hover {
    transform: translateY(-5px);
}
.urgent-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #dc3545;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
    animation: pulse-red 1.5s infinite;
}
@keyframes pulse-red {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}
.urgent-title {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}
.urgent-img-container {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
    display: block;
}
.urgent-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.urgent-img-container:hover img {
    transform: scale(1.1);
}
.urgent-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.urgent-img-container:hover .urgent-img-overlay {
    opacity: 1;
}
.urgent-date-huge {
    font-size: 3rem;
    font-weight: 900;
    color: #dc3545;
    text-align: center;
    line-height: 1;
    margin: 1rem 0;
}
.urgent-date-month {
    display: block;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--color-primary);
    letter-spacing: 2px;
}

/* --- News Ticker --- */
.news-ticker-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0f172a; /* Dark background */
    color: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
    height: 40px;
    font-family: var(--font-body);
}

.ticker-label {
    background: #dc3545; /* Red alert */
    color: white;
    font-weight: bold;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 10px solid #dc3545;
}

.ticker-content {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
}

.ticker-text {
    display: inline-flex;
    white-space: nowrap;
    align-items: center;
    height: 100%;
    animation: ticker-scroll 140s linear infinite;
    padding-left: 100%; /* Start off-screen */
}

.ticker-text:hover, .ticker-text:active, .ticker-content:hover, .ticker-content:active {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 50px;
    font-size: 0.95rem;
}

.ticker-item a {
    color: #ffd700;
    text-decoration: underline;
    margin-left: 8px;
    font-weight: bold;
}

.ticker-item a:hover {
    color: white;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Spacer for footer to not hide under the ticker */
body {
    padding-bottom: 40px;
}

/* ==========================================================================
   TIFO 2000 VUES (SPECIAL EVENT)
   ========================================================================== */
.tifo-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

.tifo-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.tifo-banner {
    margin-top: -100vh; /* Start completely hidden above */
    width: 90%;
    max-width: 1200px;
    background: linear-gradient(135deg, var(--color-primary), #004d00);
    color: #FFD700;
    text-align: center;
    padding: 4rem 2rem;
    border: 10px solid #FFD700;
    border-top: none;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset 0 -10px 20px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.tifo-overlay.active .tifo-banner {
    animation: unrollTifo 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.tifo-title {
    font-size: 5vw;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 4px 4px 10px rgba(0,0,0,0.8);
    margin: 0;
    line-height: 1.2;
}

.tifo-subtitle {
    font-size: 2.5vw;
    color: white;
    margin-top: 1rem;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
}

@keyframes unrollTifo {
    0% { margin-top: -100vh; transform: rotateX(60deg); }
    70% { margin-top: 0; transform: rotateX(-10deg); }
    100% { margin-top: 0; transform: rotateX(0deg); }
}

@media (max-width: 768px) {
    .tifo-title { font-size: 2.5rem; }
    .tifo-subtitle { font-size: 1.2rem; }
    .tifo-banner { padding: 2rem 1rem; border-width: 5px; }
}

/* ==========================================================================
   MISE EN FORME GLOBALE DES ARTICLES (JUSTIFICATION ET RETRAIT PUCES)
   ========================================================================== */
.article-content {
    text-align: justify !important;
}
.article-content p, 
.article-content li, 
.article-content div, 
.article-content span {
    text-align: justify;
}
.article-content ul:not([style*="list-style: none"]), 
.article-content ol {
    margin-top: 0.5rem !important;
    margin-bottom: 1.5rem !important;
    margin-left: 25px !important;
    padding-left: 15px !important;
    list-style-position: outside !important;
}
.article-content ul[style*="list-style: none"] {
    padding: 15px !important;
    margin: 0 !important;
}
.article-content li {
    margin-bottom: 10px !important;
    text-align: justify !important;
    line-height: 1.8 !important;
}
.article-content h1, 
.article-content h2, 
.article-content h3, 
.article-content h4, 
.article-content h5, 
.article-content h6 {
    text-align: left !important;
}

/* Anti-disparition : force l'affichage permanent et immédiat des pages et sections d'articles */
.article-page-header,
.article-section,
.article-card,
.article-content {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}
