/* Styles généraux */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ########################### */
/* TITRE PRINCIPAL    */
/* ########################### */
.main-title {
    text-align: center;
    background-color: #e6e6e6;
    color: #333;
    padding: 20px 0;
    margin: 0;
    border-bottom: 2px solid #ccc;
}

/* ########################### */
/* CONTENU PRINCIPAL  */
/* ########################### */
.main-container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Colonne 2/3 (Gauche : Image et Bouton) */
.content-left {
    flex: 2;
    padding-right: 20px;

    /* Styles pour centrer le bouton sous l'image */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centre horizontalement les éléments enfants */
}

.image-container {
    margin-bottom: 15px;
    width: 100%;
    /* S'assure que le conteneur prend toute la largeur des 2/3 */
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Conteneur du bouton (pour le centrage) */
.button-link {
    width: 100%;
    text-align: center;
}

/* Style du bouton 'Heures d'ouverture' (Agrandissement et centrage) */
.opening-hours-button {
    background-color: #ff6600;
    color: white;
    border: none;

    /* Augmentation des dimensions */
    padding: 15px 30px;
    font-size: 18px;

    cursor: pointer;
    border-radius: 5px;
    margin-top: 15px;
    /* Marge au-dessus */

    /* Assurer une bonne taille et le centrage */
    width: 80%;
    max-width: 350px;
    display: inline-block;
    /* Nécessaire pour le centrage via text-align sur le parent */
}

.opening-hours-button:hover {
    background-color: #cc5200;
}

.placeholder-text {
    font-size: 1.1em;
    line-height: 1.2;
    color: #622fb5;
    text-align: justify;
}

/* Colonne 1/3 (Droit : News) */
.news-column {
    flex: 1;
    background-color: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.news-column h2 {
    margin-top: 0;
    color: #004d99;
    border-bottom: 2px solid #004d99;
    padding-bottom: 5px;
}

/* Conteneur de news avec ascenseur */
.news-container {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Style des widgets individuels */
.news-widget {
    display: flex;
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    box-sizing: border-box;
}

.widget-text {
    flex: 1;
    padding-right: 10px;
}

.widget-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Style du lien autour de l'image du widget */
.widget-image a {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.news-image {
    width: 100%;
    max-height: 100px;
    object-fit: cover;
    border-radius: 3px;
}

.widget-date {
    display: block;
    font-size: 0.8em;
    color: #666;
    margin-bottom: 5px;
}

.widget-title {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    color: #333;
}

.widget-excerpt {
    margin: 0;
    font-size: 0.9em;
}

/* Styles pour la Lightbox (Fenêtre modale d'agrandissement d'image) */
/* 1. Conteneur principal (masqué par défaut) */
#lightbox {
    display: none;
    /* TRÈS IMPORTANT : Doit être caché par défaut */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    /* Utilisé pour centrer l'image */
    align-items: center;
    justify-content: center;
}

/* 2. Style de l'image agrandie (ciblé par son ID ou sa classe) */
#lightbox-img,
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    animation-name: zoom;
    animation-duration: 0.6s;
    border: 5px solid white;
    /* Si l'image apparaît blanche, c'est peut-être la balise img sans source. 
       Assurez-vous qu'elle n'a pas de fond blanc non désiré ici. */
}

/* 3. Bouton de fermeture */
.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

/* Media Query pour les petits écrans (empiler les colonnes) */
@media (max-width: 768px) {
    .header-container {
        /* Empiler le logo et le menu sur mobile */
        flex-direction: column;
        padding: 10px;
    }

    .logo-container {
        margin-bottom: 10px;
    }

    .top-menu ul {
        /* Centrer le menu quand il est seul */
        text-align: center;
    }

    .main-container {
        flex-direction: column;
    }

    .content-left {
        padding-right: 0;
        margin-bottom: 20px;
    }

    .opening-hours-button {
        width: 100%;
        /* Bouton pleine largeur sur mobile */
        max-width: none;
    }
}