/*
===================================================
STYLES GÉNÉRAUX — TYPO, LIENS, STRUCTURE
===================================================
*/

body {
    font-family: Verdana, sans-serif;
    font-size: 10px;
    color: #666666;
    background-color: #FFFFFF;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 150px;
    background-color: #FFFFFF;
    min-height: 100vh;
}

/* TITRES + ESPACE SOUS LE MENU */
header h2 {
    margin: 15px 0 10px 0 !important;
    padding: 0 !important;
    line-height: 1.6 !important;
}

header nav.main-nav,
.main-nav {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Liens */
a {
    font-family: Verdana, sans-serif;
    font-size: 10px;
    color: #666666;
    text-decoration: none;
    font-weight: bold;
}
a:visited, a:active {
    color: #666666;
}
a:hover {
    color: #FDC29B;
}

/* Texte */
p, .news-content, ul, li {
    font-size: 10px;
    color: #666666;
    line-height: 1.4;
    text-align: justify;
}

/*
===================================================
LAYOUT NEWS (Articles + Images)
===================================================
*/

.news-item {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #fff;
    flex-wrap: wrap;
    gap: 20px;
}
.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.news-image {
    flex: 0 0 420px;
    max-width: 420px;
}
.news-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-content {
    max-width: 550px;
    flex: 0 1 auto;
    padding-left: 20px;
    box-sizing: border-box;
}

.news-content h2 {
    font-size: 1em;
    margin: 0 0 10px 0;
}

/*
===================================================
DÉPLIAGE (Lire +/-)
===================================================
*/

.news-details {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease-in-out;
}

.news-details.active {
    max-height: 1000px;
}

.toggle-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    padding: 5px 0;
    cursor: pointer;
    background: none;
    border: none;
    color: #333;
    font-weight: bold;
    font-size: 1em;
}
.toggle-btn:hover {
    color: #000;
    text-decoration: underline;
}

.toggle-btn::after {
    content: '+';
    font-size: 1.2em;
    margin-left: 5px;
}
.toggle-btn.is-open::after {
    content: '-';
}

/*
===================================================
VIDEO (Responsive 16:9)
===================================================
*/
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*
===================================================
DESKTOP (>= 769px)
===================================================
*/

@media (min-width: 769px) {

    /* Texte en 12px sur desktop */
    .news-content p,
    .news-content ul,
    .news-content li,
    .news-content a,
    .news-item p,
    .news-item ul,
    .news-item li,
    .news-item a,
    .news-content h2 {
        font-size: 12px !important;
    }

    /* Menu visible */
    .menu-links {
        display: flex !important;
    }
    .menu-toggle {
        display: none !important;
    }

    /* Le dépliage est toujours ouvert */
    .toggle-btn {
        display: none !important;
    }
    .news-details {
        max-height: initial !important;
        overflow: visible !important;
        transition: none !important;
    }
}

/*
===================================================
MOBILE (<= 768px)
===================================================
*/
@media (max-width: 768px) {

    /* Forcer tout en blanc (menu, fond) */
    header,
    nav.main-nav,
    .menu-toggle,
    .menu-links.menu-active,
    .instagram-link {
        background-color: white !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* Burger centré */
    .menu-toggle {
        display: block !important;
        width: 100%;
        text-align: center !important;
        padding: 10px 0;
        margin: 0 auto 5px auto;
        cursor: pointer;
        font-size: 24px;
        position: relative;
        z-index: 1001;
    }

    /* Masquer les liens par défaut */
    .menu-links {
        display: none !important;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* Liens visibles quand actif */
    .menu-links.menu-active {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        padding-bottom: 15px;
    }

    .menu-links.menu-active a {
        padding: 8px 0;
        margin: 0 auto !important;
        width: fit-content;
        text-align: center;
    }

    /* Langue / Insta */
    .lang-switcher, .instagram-link {
        margin: 8px auto !important;
		border: none !important; 
        padding: 8px 0;
        display: block;
        width: fit-content;
        text-align: center;
    }

    .instagram-link {
        margin-top: 15px !important;
        padding-top: 15px;
         border-top: none !important;  
    }

    /* Layout news */
    .news-item {
        display: block;
        margin-bottom: 15px;
    }

    /* ⭐ Optimisation : Images plein écran sur mobile */
    .news-image {
        width: 100vw;       /* Pleine largeur */
        max-width: 100vw;
        margin-left: calc(-50vw + 50%); /* Centre l'image en annulant les marges du container */
        margin-bottom: 15px;
    }

    /* Texte avec petit padding */
    .news-content {
        padding: 0 5px;    /* Petit espace pour lisibilité */
        max-width: 100%;
        flex: 1 1 auto;
    }

    /* Dépliage fermé par défaut */
    .news-details {
        max-height: 0;
        overflow: hidden;
    }

    /* Suppression des marges du container pour mobile */
    .container {
        margin-top: 0 !important;
    }

    /* Assurer que le body est blanc sous le header */
    body {
        background-color: white !important;
    }
}
