/* Importation prioritaire au sommet */
@import url("https://db.onlinewebfonts.com/c/8cbba0658ca650dee8ffe81479217c13?family=FetteEngD+W03+Regular");

:root {
    --yellow: #F9DE59;
    --black: #000000;
    --white: #ffffff;
    --font-fette: "FetteEngD W03 Regular", sans-serif;
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--white);
    overflow-x: hidden;
}

/* STRUCTURE DE CALAGE À 90% */
.container {
    width: 90%;
    margin: 0 auto;
}

/* HEADER DESKTOP */
header {
    padding-top: 30px;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Aligne le bas du logo et le bas du menu */
    padding-bottom: 0; /* On supprime le padding ici pour coller au trait */
}

.logo {
    padding-bottom: 5px; /* Petit ajustement pour que le logo ne touche pas le trait */
}

.logo img {
    height: 55px;
    width: auto;
    display: block;
}

/* Menu Desktop */
.main-nav ul {
    display: flex;
    list-style: none;
    align-items: flex-end; /* Force l'alignement sur la ligne de base */
}

.main-nav ul li {
    display: flex;
}

.main-nav ul li a {
    font-family: var(--font-fette) !important;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--black);
    /* On ajuste le padding : 15px en haut, 20px sur les côtés, 8px en bas */
    /* Le padding-bottom doit être calculé pour que le jaune s'arrête au trait */
    padding: 15px 20px 8px 20px; 
    font-size: 1.1rem;
    line-height: 1; /* Verrouille la hauteur de ligne */
    transition: background-color 0.2s ease;
    margin-bottom: 0; /* S'assure qu'il n'y a pas de marge qui pousse le trait */
}

/* Hover Jaune : il s'arrêtera pile au trait noir grâce à l'alignement flex-end */
.main-nav ul li a:hover {
    background-color: var(--yellow);
}

.header-line {
    border-bottom: 1px solid var(--black);
    width: 100%;
    margin-top: 0; /* Colle au menu */
}

/* BURGER MENU ICON */
.burger-menu {
    display: none; /* Masqué sur Desktop */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px 0;
}

.burger-menu span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--black);
}

/* MOBILE OVERLAY PLEIN ÉCRAN */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--yellow);
    z-index: 9999;
    display: none; /* Contrôlé par le JS */
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Classe activée par le clic JS */
.mobile-overlay.active {
    display: flex;
}

.close-menu {
    position: absolute;
    top: 25px;
    right: 5%;
    font-size: 4rem;
    line-height: 1;
    cursor: pointer;
}

.mobile-nav ul {
    list-style: none;
    text-align: center;
}

.mobile-nav ul li {
    margin: 25px 0;
}

.mobile-nav ul li a {
    font-family: var(--font-fette) !important;
    font-size: 3rem;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--black);
    transition: color 0.3s ease;
}

/* Roll-over blanc sur mobile */
.mobile-nav ul li a:hover {
    color: var(--white) !important;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    .burger-menu {
        display: flex;
    }
    .header-flex {
        align-items: center;
    }
}


/* ==========================================================================
   SECTION HERO (50/50 STRICT)
   ========================================================================== */

.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Les deux colonnes gardent la même hauteur */
    padding: 60px 0;
    gap: 40px; /* Espace entre texte et slider */
    width: 100%; /* S'adapte au container parent de 90% */
    box-sizing: border-box;
}

.hero-col {
    /* Calcul : 50% de la largeur du container moins la moitié du gap */
    flex: 0 0 calc(50% - 20px); 
    max-width: calc(50% - 20px); 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden; /* Verrouille le contenu interne */
}

/* --- COLONNE TEXTE (GAUCHE) --- */

.yellow-tag {
    background-color: var(--yellow) !important;
    display: inline-block;
    padding: 5px 12px;
    font-family: var(--font-fette) !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 20px;
    align-self: flex-start; /* Aligné au début du trait à gauche */
}

.hero-title {
    font-family: var(--font-fette) !important;
    font-size: clamp(2.5rem, 5vw, 5.5rem);
    line-height: 0.85;
    margin-bottom: 15px;
    color: var(--black);
}

.hero-subtitle {
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 25px;
    line-height: 1.3;
}

.hero-separator {
    border-top: 1px solid var(--black);
    width: 100%;
    margin-bottom: 25px;
}

.hero-body p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

/* Calage du bouton "LIRE LA SUITE" à droite du trait */
.read-more-container {
    text-align: right;
    width: 100%;
    margin-top: 20px;
}

.btn-read-more {
    display: inline-block;
    font-family: var(--font-fette) !important;
    text-decoration: none;
    color: var(--black);
    padding: 8px 15px;
    transition: background-color 0.3s ease;
}

.btn-read-more:hover {
    background-color: var(--yellow); /* Passe sur fond jaune au survol */
}

/* --- COLONNE SLIDER (DROITE) --- */

.hero-slider-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Aligne tout vers le haut du bloc */
}

.heroSwiper {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 15px; /* L'espace exact entre l'image et tes crédits */
}

.slider-info {
    text-align: left;
    line-height: 1.4;
}

.info-bold {
    font-weight: bold;
    display: block; /* Force le retour à la ligne */
}

.info-light {
    color: #666;
    font-size: 0.85rem;
}

.heroSwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Pagination : Points blancs 70% et Point actif Jaune */
.swiper-pagination-bullet {
    background: #ffffff !important;
    opacity: 0.7 !important;
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    background: var(--yellow) !important;
    opacity: 1 !important;
}

/* Flèches de navigation blanches */
.swiper-button-next, 
.swiper-button-prev {
    color: #ffffff !important;
    transform: scale(0.6);
}

/* Infos dynamiques sous le slider */
.slider-info {
    margin-top: 15px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.info-bold {
    font-weight: bold;
}

.info-light {
    color: #666666;
}

/* Trait de séparation sous le Hero */
.section-divider {
    border-bottom: 1px solid var(--black);
    width: 100%; /* Prend toute la largeur du container de 90% */
    margin: 1px 0 1px 0;
}

/* --- RESPONSIVE MOBILE --- */

@media (max-width: 992px) {
    .hero-section {
        flex-direction: column; /* On empile les colonnes */
        gap: 40px;
    }

    .hero-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .read-more-container {
        text-align: left; /* Plus lisible sur téléphone */
    }

    .heroSwiper {
        aspect-ratio: 16 / 9; /* Plus allongé sur mobile */
    }
}



/* ==========================================================================
   SECTION ACTUS (CADRES 1PX & ALIGNEMENT 90%)
   ========================================================================== */

.actus-section {
    width: 100%;
    padding: 60px 0;
    box-sizing: border-box;
}

.section-title {
    font-family: var(--font-fette) !important;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    text-align: left; /* Aligné sur le bord gauche du trait de 90% */
}

/* GRILLE DE 4 COLONNES */
.actus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes égales */
    gap: 20px; /* Espace entre les cadres noirs */
    width: 100%;
}

/* CARTE INDIVIDUELLE AVEC CADRE NOIR */
.actu-card {
    border: 1px solid var(--black); /* Cadre noir fin 1px */
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    box-sizing: border-box;
    height: 100%; /* Pour que toutes les cartes aient la même hauteur */
}

/* --- EFFET ZOOM ACTUS --- */
.actu-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-bottom: 1px solid var(--black);
    overflow: hidden; /* INDISPENSABLE : coupe l'image qui dépasse pendant le zoom */
}

.actu-top {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-top: 1px solid var(--black);
    overflow: hidden; /* INDISPENSABLE : coupe l'image qui dépasse pendant le zoom */
}

.actu-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); /* Transition fluide */
}

/* Au survol de la CARTE entière, l'image à l'intérieur zoome */
.actu-card:hover .actu-img img {
    transform: scale(1.1); /* Zoom de 10% */
}

/* POSITIONNEMENT DU TAG JAUNE SUR L'IMAGE */
/* Utilise la classe .yellow-tag déjà définie pour le bloc Hero */
.actu-tag-position {
    position: absolute;
    top: 10px;
    left: 10px;
    margin-bottom: 0 !important;
}

/* ZONE DE TEXTE */
.actu-text-area {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pousse le footer vers le bas */
}

.actu-title {
    font-family: var(--font-fette) !important;
    font-size: 1.5rem;
    line-height: 1.1;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.actu-date {
    font-size: 0.8rem;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.7); /* Gris 70% */
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

.actu-description {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 25px;
    text-align: left;
}

/* BAS DE CARTE (BOUTON À DROITE) */
.actu-footer {
    margin-top: auto; /* Aligne le bouton en bas quelle que soit la longueur du texte */
    text-align: right;
}

/* Le bouton .btn-read-more utilisé ici héritera de tes styles Hero :
   - Fond jaune au rollover
   - Typographie FetteEngD-W03-regular 
*/

/* --- RESPONSIVE --- */

@media (max-width: 1100px) {
    .actus-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
    }
}

@media (max-width: 650px) {
    .actus-grid {
        grid-template-columns: 1fr; /* 1 colonne sur mobile */
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

.sidebar-tag-style {
    /* Même correction de police ici */
    font-family: "FetteEngD W03 Regular", sans-serif !important;
    text-transform: uppercase;
    font-size: 0.9rem; /* Taille ajustée pour correspondre au tag */
    letter-spacing: 0.05em;
    color: var(--black);
    margin: 0;
}



/* ==========================================================================
   FOOTER NOIR (ALIGNEMENT 90%)
   ========================================================================== */

.main-footer {
    background-color: var(--black);
    color: var(--white);
    padding: 80px 0 40px 0;
    width: 100%;
    margin-top: 40px; /* Espace après la section Actus */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-col {
    flex: 1;
}

/* Style Logo Footer */
.footer-logo {
    font-family: var(--font-fette) !important;
    font-size: 2.2rem;
    line-height: 0.9;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.footer-address, .footer-email {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7); /* Gris clair sur noir */
}

/* Titres de colonnes */
.footer-title {
    font-family: var(--font-fette) !important;
    font-size: 1.1rem;
    margin-bottom: 25px;
    letter-spacing: 0.05em;
    color: var(--yellow); /* Rappel de ta couleur d'accent */
}

/* Liens */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a, .footer-socials a {
    text-decoration: none;
    color: var(--white);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-socials a:hover {
    color: var(--yellow);
}

.footer-right {
    text-align: right;
}

.footer-socials {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.footer-copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- RESPONSIVE FOOTER --- */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 50px;
    }
    .footer-right {
        text-align: left;
    }
    .footer-socials {
        flex-direction: row;
        gap: 25px;
    }
}