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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3 {
    font-family: 'Cairo', serif;
}

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

/* En-tête */
header {
    background: #333;
    color: #fff;
    padding: 20px 0;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne sur mobile */
}

header .logo img {
    max-width: 250px; /* Largeur maximale du logo */
    height: auto; /* Conserve les proportions */
}

header .search-bar {
    flex: 1; /* Prend l'espace disponible */
    margin: 0 20px; /* Espacement autour du champ de recherche */
    max-width: 500px; /* Largeur maximale du champ de recherche */
}

header .search-bar input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
}

header .search-bar button {
    background: #ff6347;
    border: none;
    padding: 10px 20px;
    color: #fff;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

header nav ul li a:hover {
    color: #ff6347;
}

/* Section Héro */
.hero {
    background: url('/images/bg-slider.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 20px;
}

.hero .btn {
    background: #ff6347;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

/* Dernières Actualités */
.latest-news {
    padding: 50px 0;
}

.latest-news h2 {
    text-align: center;
    margin-bottom: 30px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.news-card {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.news-card img {
    width: 100%;
    aspect-ratio: 16 / 9; /* Définit un ratio fixe (ajuste selon tes besoins) */
    object-fit: cover; /* Remplit l'espace sans déformation */
    border-radius: 5px;
}

.news-card h3 {
    margin: 15px 0;
}

.news-card .btn {
    background: #333;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

/* Section Vidéos */
.videos {
    background: #f4f4f4;
    padding: 50px 0;
}

.videos h2 {
    text-align: center;
    margin-bottom: 30px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.video-card iframe {
    width: 100%;
    height: 200px;
    border-radius: 5px;
}

.video-card h3 {
    margin-top: 10px;
}

/* Section Abonnement */
.newsletter {
    background: #333;
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 10px;
}

.newsletter p {
    margin-bottom: 20px;
}

.newsletter form {
    display: flex;
    justify-content: center;
}

.newsletter input {
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.newsletter button {
    background: #ff6347;
    border: none;
    padding: 10px 20px;
    color: #fff;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

/* Pied de page */
footer {
    background: #222;
    color: #fff;
    padding: 50px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.footer-section h3 {
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
}


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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* En-tête */
header {
    background: #333;
    color: #fff;
    padding: 15px 0;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Logo */
header .logo img {
    max-width: 200px; /* Ajustez la taille du logo */
    height: auto;
}

/* Menu Hamburger (mobile seulement) */
header .hamburger {
    display: none; /* Caché par défaut */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

header .hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
}

/* Menu et Barre de recherche */
header .menu-search-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Menu */
header .menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

header .menu ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

header .menu ul li a:hover {
    color: #ff6347;
}

/* Barre de recherche */
header .search-bar {
    display: flex;
    align-items: center;
}

header .search-bar input {
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
}

header .search-bar button {
    background: #ff6347;
    border: none;
    padding: 10px 20px;
    color: #fff;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

/* إضافة بعض التعديلات للغة العربية */
body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #333;
    text-align: right; /* محاذاة النص لليمين */
}

h1, h2, h3 {
    font-family: 'Cairo', serif;
}

/* تعديلات للرأس */
header .menu ul {
    padding-right: 0; /* إزالة الحشو الافتراضي */
}

header .search-bar input {
    text-align: right; /* محاذاة نص البحث لليمين */
}

/* تعديلات للتذييل */
footer .footer-section ul {
    padding-right: 0; /* إزالة الحشو الافتراضي */
}

/* Styles pour les écrans mobiles */
@media (max-width: 768px) {
    /* Afficher le menu hamburger */
    header .hamburger {
        display: flex;
    }

    /* Cacher le menu et la barre de recherche par défaut */
    header .menu-search-wrapper {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    /* Afficher le menu et la barre de recherche lorsque le menu est ouvert */
    header .menu-search-wrapper.active {
        display: flex;
    }

    /* Menu vertical sur mobile */
    header .menu ul {
        flex-direction: column;
        gap: 10px;
    }

    /* Barre de recherche en dessous du menu */
    header .search-bar {
        width: 100%;
    }

    header .search-bar input {
        width: 100%;
    }
}



.sports-section {
    max-width: 1200px;
    margin: 20px auto;
    padding: 10px;
}

.sports-header {
    background-color: #0000b3;
    color: white;
    text-align: center;
    padding: 12px;
    font-size: 24px;
    font-weight: bold;
}

.sports-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.main-article {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.main-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.main-article .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    color: white;
    padding: 15px;
}

.main-article h2 {
    font-size: 22px;
    margin: 5px 0;
}

.sub-articles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.article {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.article .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    color: white;
    padding: 10px;
}

.article h3 {
    font-size: 16px;
    margin: 5px 0;
}

.date {
    font-size: 12px;
    opacity: 0.8;
}



.sports-news {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    text-align: center;
}


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

.news-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.news-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.news-item:hover img {
    transform: scale(1.05);
}

.news-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: white;
    text-align: right;
}

.date {
    font-size: 12px;
    margin-bottom: 5px;
    opacity: 0.8;
}

h3 {
    font-size: 16px;
    margin: 0;
}

.main-news {
    grid-column: span 2;
    grid-row: span 2;
}


.news-overlay a {
    text-decoration: none;
    color: #fff;
}
.lire-suite {
    float: left;
    display: inline;
    text-align: left;
}

#header { /* Si votre en-tête a un ID "header" */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Assurez-vous qu'il est au-dessus des autres éléments */
  }
  
  .main-header { /* Si votre en-tête a une classe "main-header" */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
  }
  
  header { /* Si votre élément <header> est l'en-tête unique */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

.hero {
    background-color: #f0f0f0; /* Couleur de fond par défaut */
    padding: 80px 0; /* Espacement intérieur haut et bas */
    display: flex; /* Pour un agencement flexible des éléments (texte et image) */
}
section.category-news {
    padding-top: 150px;
}
/* Styles pour un agencement côte à côte (texte à gauche, image à droite) */
@media (min-width: 768px) {
.hero {
    justify-content: space-around; /* Espacer le contenu et l'image */
    padding: 150px 0;
} 
}  
@media (max-width: 768px) {
    .main-news {
        grid-column: span 1;
        grid-row: span 1;
    }
}
.menu-disabled{
    display: none;
}