/* Reset et base */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

/* Bandeau supérieur */
.top-banner {
    background-color: #f8f9fa;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo à gauche du navigateur */
.top-logo {
    margin-left: 2rem;
}

.top-logo img {
    height: 60px;
    width: auto;
}

/* Alerte au centre */
.top-alert {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: #333;
    margin: 0 2rem;
}

.top-alert strong {
    color: #e74c3c;
}

/* Boutons à droite du navigateur */
.top-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-right: 2rem;
}

.top-button {
    background-color: #fff;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
}

.search-box input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    width: 200px;
}

.top-social {
    display: flex;
    gap: 0.5rem;
}

.top-social img {
    height: 24px;
    width: auto;
}

/* Sélecteur de langue */
.language-selector {
    position: relative;
    display: inline-block;
}

.selected-language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    background-color: #f8f9fa;
}

.selected-language:hover {
    background-color: #e9ecef;
}

.language-flag {
    width: 24px;
    height: auto;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 120px;
    z-index: 1000;
}

.language-selector:hover .language-dropdown {
    display: block;
}

.language-dropdown li {
    padding: 0;
    margin: 0;
}

.language-dropdown li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #333;
}

.language-dropdown li a:hover {
    background-color: #f8f9fa;
}


/* Menu en grille 3x4 */
.grid-menu {
    background-color: #fff;
    padding: 0.5rem 0; /* Réduction de l'espace vertical */
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: center; /* Centrer le menu horizontalement */
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    width: fit-content; /* Ajuste la largeur au contenu */
}

.menu-grid-item {
    position: relative;
    border: none; /* Supprime les bordures par défaut */
    border-bottom: 1px solid #ddd; /* Ligne uniquement en bas */
    text-align: center;
    padding: 0.5rem 0; /* Réduction de l'espace vertical */
    background-color: #fff;
}

.menu-grid-link {
    display: block;
    padding: 0.5rem; /* Réduction de l'espace vertical */
    text-decoration: none;
    color: #555;
    font-weight: 500;
}

.menu-grid-link .number {
    color: #FFD700; /* Or */
    font-weight: bold;
}

.menu-grid-link:after {
    content: "▼";
    font-size: 0.7rem;
    color: #000;
    margin-left: 0.5rem;
}

/* Sous-menu déroulant */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0;
    margin: 0;
    width: 200px;
    z-index: 1000;
}

.menu-grid-item:hover .submenu {
    display: block;
}

.submenu li a {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #555;
    border-bottom: 1px solid #eee;
}

.submenu li a:hover {
    background-color: #f8f9fa;
    color: #FFD700; /* Or au survol */
}

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

/* Section Hero */
.hero {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-news-band {
    position: absolute;
    top: 25%;
    left: 50%;
    right: 20%;
    transform: translateX(-10%);
    background-color: white;
    display: flex;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero-news-title {
    flex: 0 0 200px;
    background-color: white;
    color: #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    font-size: 0.8rem;
    font-weight: bold;
    writing-mode: horizontal-tb;
    text-orientation: initial;
}

.hero-news-list {
    flex: 1;
    padding: 1rem;
    list-style: none;
    margin: 0;
}

.hero-news-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.hero-news-item:last-child {
    border-bottom: none;
}

.news-date-badge {
    background-color: #e74c3c;
    color: white;
    border-radius: 15px; /* Arrondi pour un effet cylindre */
    padding: 0.3rem 0.7rem; /* Ajustement du padding pour s'adapter au texte */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem; /* Taille du texte de la date */
    margin-right: 1rem;
    height: auto; /* Hauteur automatique pour s'adapter au texte */
    min-width: fit-content; /* Largeur minimale adaptée au contenu */
}

.news-title-link {
    color: #666;
    text-decoration: none;
    flex: 1;
    font-size: 0.8rem; /* Taille réduite pour les titres des news */
    line-height: 1.2; /* Réduction de l'interligne pour un rendu plus compact */
}

.arrow {
    color: #e74c3c;
    font-weight: bold;
    margin-left: 0.5rem;
}


/* Corps de la page */
.page-body {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    gap: 2rem;
}

.main-content {
    flex: 3;
}

.ads-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.ad-logo {
    width: 100%;
    max-width: 200px;
    height: auto;
    background-color: white;
    padding: 1rem;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid #eee;
}

/* Ligne de rubriques */
.rubrique-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.rubrique-section {
    flex: 1;
}

/* Rubriques */
.rubrique-title {
    color: #e74c3c;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 0.5rem;
    display: inline-block;
}


/* Grille des articles pour les événements */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* Carte d'article */
.article-card {
    display: flex;
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-direction: row;
}

.article-image {
    flex: 1;
}

.article-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.article-info {
    flex: 2;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-date {
    color: #e74c3c;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.article-title {
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: bold;
    align-self: flex-end;
}

/* Bouton de rubrique */
.rubrique-button {
    display: inline-block;
    background-color: white;
    color: #e74c3c;
    border: 2px solid #e74c3c;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
}

.rubrique-button:hover {
    background-color: #e74c3c;
    color: white;
}


/* Footer */
.footer {
    width: 100%;
    margin-top: 2rem;
}

.footer-hero {
    position: relative;
    width: 100%;
    height: 400px; /* Augmentation de la hauteur pour afficher entièrement le contenu */
    overflow: hidden;
}

.footer-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem; /* Augmentation du padding pour un meilleur espacement */
    box-sizing: border-box;
    gap: 2rem;
}

.newsletter-section, .podcast-section {
    background-color: white;
    padding: 2rem; /* Augmentation du padding pour un meilleur espacement */
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 450px; /* Augmentation de la largeur maximale */
}

.newsletter-section h3, .podcast-section h3 {
    color: #e74c3c;
    font-size: 1.5rem; /* Augmentation de la taille de la police */
    margin-bottom: 1.5rem;
}

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

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

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 0.75rem; /* Augmentation du padding */
    border: 1px solid #ddd;
    border-radius: 4px;
}

.checkbox-group {
    display: flex;
    flex-direction: row; /* Affichage en ligne */
    gap: 1.5rem; /* Espacement entre les cases à cocher */
    margin-bottom: 1.5rem;
    flex-wrap: wrap; /* Permet de passer à la ligne si nécessaire */
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap; /* Empêche le texte de se couper */
}

.form-actions {
    display: flex;
    gap: 1rem;
}

.btn-subscribe, .btn-unsubscribe, .btn-podcast {
    padding: 0.75rem 1.5rem; /* Augmentation du padding */
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
}

.btn-subscribe {
    background-color: #e74c3c;
    color: white;
}

.btn-unsubscribe {
    background-color: #f0f0f0;
    color: #333;
}

.btn-podcast {
    background-color: #e74c3c;
    color: white;
    margin-top: 1rem;
}

.footer-bottom {
    background-color: #f8f9fa;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: #333;
    text-decoration: none;
}

.legal-links a:hover {
    color: #e74c3c;
}
