:root { 
    --gold: #C5A059; 
    --black: #050505; 
    --dark-grey: #121212; 
    --white: #ffffff; 
    --transition: all 0.4s ease; 
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Poppins', sans-serif; 
    background-color: var(--black); 
    color: var(--white); 
    overflow-x: hidden; 
}

h1, h2, h3, h4 { 
    font-family: 'Oswald', sans-serif; 
    text-transform: uppercase; 
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: var(--transition); 
}

ul { list-style: none; }

/* ========== NAVBAR ========== */
.navbar { 
    padding: 15px 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: rgba(5, 5, 5, 0.968); 
    border-bottom: 1px solid rgba(197, 160, 89, 0.3); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    backdrop-filter: blur(10px); 
    flex-wrap: wrap; 
    gap: 15px; 
}

.nav-links { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    font-weight: bold; 
    flex-wrap: wrap; 
    text-transform: uppercase; 
    font-size: 0.9rem; 
}

.nav-links a:hover { color: var(--gold); }
.active-link { 
    color: var(--gold); 
    border-bottom: 2px solid var(--gold); 
    padding-bottom: 5px; 
}

.search-form { 
    display: flex; 
    align-items: center; 
    background: #1a1a1a; 
    border-radius: 20px; 
    padding: 5px 15px; 
    border: 1px solid #333; 
}

.search-form input { 
    background: transparent; 
    border: none; 
    color: white; 
    outline: none; 
    padding: 5px; 
    width: 180px; 
    font-family: 'Poppins', sans-serif; 
    font-size: 0.9rem; 
    margin: 0; 
}

.search-form button { 
    background: transparent; 
    border: none; 
    color: var(--gold); 
    cursor: pointer; 
    font-size: 1rem; 
}

/* ========== BUTTONS & FORMS ========== */
.btn { 
    background: var(--gold); 
    color: var(--black); 
    padding: 10px 20px; 
    border: none; 
    border-radius: 5px; 
    font-weight: bold; 
    cursor: pointer; 
    transition: var(--transition); 
}

.btn:hover { 
    background: var(--white); 
    transform: translateY(-2px); 
}

input, select, textarea { 
    width: 100%; 
    padding: 12px; 
    margin-bottom: 15px; 
    background: #222; 
    border: 1px solid #444; 
    color: white; 
    border-radius: 5px; 
    outline: none; 
    font-family: 'Poppins', sans-serif; 
}

input:focus, select:focus, textarea:focus { 
    border-color: var(--gold); 
}

/* ========== FLEXIBLE SLIDER (PC) ========== */
.news-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
    border: 1px solid #333;
    aspect-ratio: 16 / 9;
}

.slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.slide.active {
    display: block;
}

/* ✅ SLIDER FIX: fills the container, keeps faces visible */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* ← Shows the FULL image, no cropping */
    display: block;
    background: #000;
    position: absolute;
    top: 0;
    left: 0;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.1) 70%
    );
    pointer-events: none;
}

/* Bandeau de titre : toujours en superposition pleine largeur */
.slide .content {
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 15px;
    z-index: 10;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    box-sizing: border-box;
    background: rgba(5, 5, 5, 0);
    padding: 16px 18px;
    border-radius: 10px;
}

.slide .content h2 {
    font-size: clamp(1.05rem, 4vw, 2.2rem);
    line-height: 1.25;
    margin-bottom: 8px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

.slide .content p {
    font-size: clamp(0.75rem, 2vw, 1rem);
    color: #eee;
    margin-bottom: 12px;
    line-height: 1.4;
}

.slide .content a {
    display: inline-block;
    background: var(--gold);
    color: black;
    padding: 8px 20px;
    font-weight: bold;
    font-family: 'Oswald';
    border-radius: 5px;
    transition: 0.3s;
}

.slide .content a:hover {
    background: white;
    transform: translateY(-2px);
}

.news-slider button.prev,
.news-slider button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0,0,0,0.6);
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 12px 18px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 5px;
}

.news-slider button.prev { left: 15px; }
.news-slider button.next { right: 15px; }
.news-slider button:hover {
    background: var(--gold);
    color: black;
}

/* ========== MATCH BANNER ========== */
.match-banner { 
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('DZ.jpg'); 
    background-size: cover; 
    background-position: center; 
    padding: 60px 20px; 
    text-align: center; 
    border-bottom: 4px solid var(--gold); 
}
.teams-vs { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 40px; 
    margin: 40px 0; 
    flex-wrap: wrap; 
}
.team-block { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 15px; 
}
.flag-img { 
    width: 120px; 
    height: 120px; 
    object-fit: fill; 
    border-radius: 50%; 
    border: 4px solid var(--gold); 
    box-shadow: 0 0 25px rgba(197, 160, 89, 0.4); 
    background-color: #f0f0f0; 
}
.team-name { 
    font-size: 2.2rem; 
    font-family: 'Oswald', sans-serif; 
    color: white; 
    text-shadow: 0 5px 10px rgba(0,0,0,0.8); 
}
.vs-badge { 
    background: var(--gold); 
    color: black; 
    font-weight: bold; 
    width: 50px; 
    height: 50px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    border-radius: 50%; 
    font-family: 'Oswald'; 
    font-size: 1.2rem; 
}
.match-meta { 
    color: #ccc; 
    margin-bottom: 30px; 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    flex-wrap: wrap; 
}
.match-meta i { color: var(--gold); margin-right: 5px; }
.countdown-box { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    flex-wrap: wrap; 
}
.time-unit { 
    background: rgba(0,0,0,0.6); 
    border: 1px solid var(--gold); 
    padding: 15px; 
    border-radius: 10px; 
    min-width: 80px; 
    backdrop-filter: blur(5px); 
}
.time-unit span { 
    display: block; 
    font-family: 'Oswald'; 
    font-size: 2rem; 
    color: var(--gold); 
    line-height: 1; 
}
.time-unit small { font-size: 0.7rem; text-transform: uppercase; }

/* ========== CATEGORY HORIZONTAL SLIDERS ========== */
.category-section { 
    max-width: 1400px; 
    margin: 50px auto; 
    padding: 0 5%; 
}
.category-title { 
    color: var(--gold); 
    font-family: 'Oswald', sans-serif; 
    font-size: 2rem; 
    border-left: 5px solid var(--gold); 
    padding-left: 15px; 
    margin-bottom: 20px; 
    text-transform: uppercase; 
}
.cards-slider { 
    display: flex; 
    gap: 20px; 
    overflow-x: auto; 
    padding-bottom: 20px; 
    scroll-snap-type: x mandatory; 
    scrollbar-width: thin; 
    scrollbar-color: var(--gold) #222; 
}
.cards-slider::-webkit-scrollbar { height: 8px; }
.cards-slider::-webkit-scrollbar-track { background: #222; border-radius: 4px; }
.cards-slider::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
.cards-slider .card { 
    min-width: 280px; 
    max-width: 280px; 
    scroll-snap-align: start; 
    flex-shrink: 0; 
}

/* ========== NEWS GRID ========== */
.news-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 30px; 
    padding: 50px 5%; 
    max-width: 1400px; 
    margin: 0 auto; 
}
.card { 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    border-radius: 15px; 
    overflow: hidden; 
    transition: var(--transition); 
    display: flex; 
    flex-direction: column; 
}
.card:hover { 
    transform: translateY(-10px); 
    border-color: var(--gold); 
}

.card-img {
    width: 100%;
    height: auto;
    min-height: 200px;
    object-fit: contain;
    background: #000;
}

.card-body { 
    padding: 20px; 
    display: flex; 
    flex-direction: column; 
}

.tag { 
    background: var(--gold); 
    color: black; 
    padding: 4px 10px; 
    font-size: 0.75rem; 
    font-weight: bold; 
    border-radius: 20px; 
    display: inline-block; 
    margin-bottom: 10px; 
    align-self: flex-start; 
}

/* ========== ARTICLE PAGE ========== */
.hero-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    background: #000;
}

.article-content img,
.article-body img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ========== TOAST ========== */
.toast-container { 
    position: fixed; 
    top: 20px; 
    right: 20px; 
    z-index: 9999; 
}
.toast { 
    background: rgba(18, 18, 18, 0.95); 
    color: white; 
    padding: 15px 25px; 
    margin-bottom: 10px; 
    border-radius: 8px; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    min-width: 300px; 
    transform: translateX(120%); 
    transition: transform 0.5s, opacity 0.5s; 
    opacity: 0; 
    backdrop-filter: blur(10px); 
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.hide { transform: translateX(120%); opacity: 0; }
.toast.success { border-left: 4px solid var(--gold); } 
.toast.success i { color: var(--gold); }
.toast.error { border-left: 4px solid #ff4444; } 
.toast.error i { color: #ff4444; }

/* ========== ADMIN PANEL ========== */
.layout { display: flex; min-height: 100vh; }
.sidebar { 
    width: 250px; 
    background: #000000; 
    padding: 20px; 
    border-right: 1px solid #333; 
    position: fixed; 
    height: 100%; 
    overflow-y: auto; 
    transition: transform 0.3s ease; 
    z-index: 1000; 
}
.content { 
    flex: 1; 
    padding: 40px; 
    margin-left: 250px; 
}
.menu-toggle { 
    display: none; 
    position: fixed; 
    top: 15px; 
    left: 15px; 
    z-index: 1100; 
    background: var(--gold); 
    color: black; 
    border: none; 
    padding: 8px 15px; 
    border-radius: 5px; 
    font-weight: bold; 
    cursor: pointer; 
}

/* ========== FORCE FULL IMAGES ========== */
.hero-img,
.article-content img,
.article-body img,
.news-grid .card-img,
.cards-slider .card-img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
    background: #000 !important;
}

/* ==========================================================================
   MOBILE & RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 768px) {
    /* 1. Navbar Mobile Layout */
    .navbar {
        padding: 12px 15px;
        justify-content: center;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 12px;
        font-size: 0.85rem;
    }
    
    .search-form {
        width: 100%;
        margin-bottom: 5px;
        justify-content: space-between;
    }
    
    .search-form input {
        width: 100%;
    }

    /* 2. Headline Adjustments */
    div[style*="font-size:4rem"] h1,
    div[style*="font-size:4rem"] {
        font-size: 2.2rem !important;
        padding: 25px 15px !important;
    }

    /* 3. Responsive Slider */
    .news-slider {
        margin: 15px 10px;
        box-shadow: none;
        border-radius: 15px;
    }

    .slide .content a {
        padding: 5px 15px !important;
        font-size: 0.8rem !important;
        display: inline-block !important;
    }

    .news-slider button.prev,
    .news-slider button.next {
        top: 50% !important;
        transform: translateY(-50%) !important;
        padding: 8px 12px !important;
        font-size: 1rem !important;
        z-index: 15 !important;
    }

    /* 4. Match Banner Details */
    .match-banner {
        padding: 30px 10px;
    }
    
    .teams-vs {
        gap: 15px;
        margin: 20px 0;
    }
    
    .flag-img {
        width: 75px;
        height: 75px;
        border-width: 2px;
    }
    
    .team-name {
        font-size: 1.25rem;
    }
    
    .vs-badge {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .match-meta {
        font-size: 0.8rem;
        gap: 10px;
        flex-direction: column;
        align-items: center;
    }
    
    .countdown-box {
        gap: 8px;
    }
    
    .time-unit {
        padding: 8px;
        min-width: 60px;
    }
    
    .time-unit span {
        font-size: 1.3rem;
    }
    
    .time-unit small {
        font-size: 0.6rem;
    }

    /* 5. Sections and Cards Layout */
    .category-section {
        padding: 0 15px;
        margin: 30px auto;
    }
    
    .category-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 15px;
    }

    .card-body {
        padding: 20px !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .tag {
        background: var(--gold) !important;
        color: black !important;
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
        font-weight: bold !important;
        border-radius: 20px !important;
        display: inline-block !important;
        margin-bottom: 10px !important;
        align-self: flex-start !important;
    }

    /* 6. Article Details Layout & Typography */
    .article-container {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .article-title {
        font-size: 1.8rem;
        line-height: 1.25;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .share-buttons {
        display: flex;
        width: 100%;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .share-buttons a {
        flex: 1;
        justify-content: center;
        margin-right: 0;
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .article-content {
        font-size: 1rem;
        line-height: 1.7;
    }

    /* 7. Cookie Banner Adjustments */
    #cookie-banner {
        padding: 15px;
    }
    
    #cookie-banner p {
        font-size: 0.85rem;
    }
    
    #cookie-banner .buttons {
        width: 100%;
        gap: 10px;
    }
    
    #cookie-banner .btn-consent, 
    #cookie-banner .btn-deny {
        flex: 1;
        padding: 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .nav-links a {
        font-size: 0.75rem;
    }
    
    .team-name {
        font-size: 1.1rem;
    }
    
    .time-unit {
        padding: 6px;
        min-width: 50px;
    }
}