body {
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    color: #212529;
    min-height: 100vh;
}

/* Logo header background */
/* header {
    z-index: 1000;
    text-align: center;
    padding: 20px 0;
    background-color: #2c3e50;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header img {
    max-width: 200px;
} */
/* Navigation menu */
nav {
    background-color: #2c3e50; /* Gris anthracite */
    padding: 10px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: color 0.3s;
    display: inline-block;
}

nav a:hover {
    color: #f1c40f; /* Jaune or pour le hover */
}


main {
    
    flex: 1;
    flex-direction: column;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    margin-top: 20%;
}

aside {
    flex: 1;
    min-width: 200px;
    margin: 10px;
}

section {
    flex: 2;
    margin: 10px;
}

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

.footer-content {
    max-width: 1000px;
    margin: auto;
}

.footer-links a {
    color: #f1c40f;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}


/* Responsive */
@media (max-width: 768px) {
    main {
        flex-direction: column;
    }

    aside {
        display: none;
    }

    nav a {
        display: block;
        margin: 5px 0;
    }
}
/* Urgent News Section avec les couleurs admin panel */
.urgent-news {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    color: white;
    padding: 12px 20px;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 3px solid #c0392b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    direction: rtl;
}

.urgent-label {
    flex-shrink: 0;
    margin-left: 20px;
    background: white;
    color: #e74c3c;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
}

.urgent-marquee {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.urgent-marquee:hover{
    animation-play-state: paused;
}

.urgent-track {
    display: flex;
    white-space: nowrap;
    animation: scrollLoop 30s linear infinite;
}

.urgent-items a {
    color: #ffffff;
    margin: 0 30px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.urgent-items a:hover {
    color: #f1c40f;
    animation-play-state: paused;
}

/* Continuous scroll animation */
@keyframes scrollLoop {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}


/* Pause on hover */
/* .urgent-marquee:hover .urgent-items {
    animation-play-state: paused;
} */
/* Global container */
.main-container {
    display: flex;
    margin: 40px auto;
    margin-top: 20%;
    max-width: 1200px;
    width: 90%;
    gap: 20px;
}

/* Ads styling */
.main-container aside {
    width: 20%;
    text-align: center;
}

.main-container aside img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.main-container aside img:hover {
    transform: scale(1.05);
}

/* Center news section */
.main-container section {
    width: 60%;
    padding: 0 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.main-container section h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
}

.main-container section h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 20px;
}

.main-container section h3 a {
    text-decoration: none;
    color: #2980b9;
    transition: color 0.3s;
}

.main-container section h3 a:hover {
    color: #f1c40f;
}

.main-container section p {
    color: #555;
    line-height: 1.6;
}

/* Responsive design */
@media (max-width: 900px) {
    .main-container {
        flex-direction: column;
        gap: 30px;
    }

    .main-container aside,
    .main-container section {
        width: 100%;
    }
}
/* News item design */
.news-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.news-thumbnail {
    width: 30%;
    margin-right: 20px;
}

.news-thumbnail img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s;
}

.news-thumbnail img:hover {
    transform: scale(1.05);
}

.news-content {
    width: 70%;
}

.news-content h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 20px;
}

.news-content h3 a {
    text-decoration: none;
    color: #2980b9;
    transition: color 0.3s;
}

.news-content h3 a:hover {
    color: #f1c40f;
}

.news-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.read-more {
    text-decoration: none;
    color: #2980b9;
    font-weight: bold;
    transition: color 0.3s;
}

.read-more:hover {
    color: #f1c40f;
}

/* Fade In Animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.load-more {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2980b9;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.load-more:hover {
    background-color: #1c5980;
}
/* Style des articles */
.category-article, .live-news-item {
    display: flex;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-article:hover, .live-news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Image des articles */
.category-article-image img,
.live-news-item img {
    width: 180px;
    height: 120px;
    object-fit: cover;
}

/* Contenu des articles */
.category-article-content,
.live-news-content {
    padding: 15px;
    flex: 1;
}

.category-article-content h3,
.live-news-content h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 18px;
}

.category-article-content p,
.live-news-content p {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #e74c3c;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.read-more:hover {
    color: #c0392b;
}

/* Badge Live */
.live-badge {
    background: #e74c3c;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-right: 8px;
    animation: blink 1s infinite;
}

/* Animation clignotement du badge */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    background: #2980b9;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.pagination a:hover {
    background: #1c5980;
}
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.live-counter {
    background: #e74c3c;
    color: white;
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
    border-radius: 4px;
    font-weight: bold;
}
/* Formulaire de filtre */
form {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: #f9f9f9;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

form label {
    margin-right: 10px;
    font-weight: bold;
    color: #2c3e50;
}

form input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 15px;
    font-size: 14px;
    transition: border-color 0.3s;
}

form input[type="date"]:focus {
    border-color: #2980b9;
    outline: none;
}

form button {
    background-color: #2980b9;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: bold;
}

form button:hover {
    background-color: #1c5980;
}

.nav-separator {
    display: inline-block;
    width: 2px;
    height: 16px;
    background: white;
    margin: 0 15px;
    vertical-align: middle;
    opacity: 0.5;
}
#resetButton {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: bold;
    margin-left: 10px;
}

#resetButton:hover {
    background-color: #c0392b;
}
/* Style général du formulaire */
.form-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
}

/* Inputs texte et date */
.form-container input[type="text"],
.form-container input[type="date"],
.form-container select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 200px;
    background-color: white;
    color: #2c3e50;
    outline: none;
    flex: 1;
    min-width: 180px;
}

.form-container input[type="text"]:focus,
.form-container input[type="date"]:focus,
.form-container select:focus {
    border-color: #2980b9;
    box-shadow: 0 0 5px rgba(41, 128, 185, 0.5);
}

/* Placeholder color */
.form-container input::placeholder {
    color: #aaa;
}

/* Select styling */
.form-container select {
    background-color: white;
    color: #2c3e50;
    cursor: pointer;
}

/* Bouton Reset */
#resetButton {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
    min-width: 120px;
}

#resetButton:hover {
    background-color: #c0392b;
}
.language-switcher {
    position: relative;
    text-align: right;
    padding: 10px 20px;
   
    border-bottom: 1px solid #ddd;
    font-family: 'Roboto', sans-serif;
    z-index: 1000;
}

.language-toggle {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    color: #fff;
}

.language-toggle:hover {
    color: #e74c3c;
}

.language-options {
    position: absolute;
    right: 20px;
    top: 100%;
  
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: none; /* hidden by default */
    flex-direction: column;
    min-width: 150px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 2000;
}

.language-options.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}


.language-options a {
    display: block;
    padding: 10px;
    color: #2c3e50;
    text-decoration: none;
    transition: background-color 0.3s;
}

.language-options a:hover {
    background-color: #e74c3c;
    color: white;
}
.language-options {
    position: absolute;
    right: 20px;
    top: 100%;
    
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    min-width: 150px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
}

.live-video-wrapper {
    margin-top: 20px;
    text-align: center;
}

.live-video-wrapper iframe {
    width: 100%;
    max-width: 640px;
    height: 360px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
