/* --- PARAMÈTRES DE BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
}

.bg-clair {
    background-color: #FAFAFA;
}

.bg-sombre {
    background-color: #EFEFEF;
    color: #222;
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* --- GRILLES PRINCIPALES (2 colonnes) --- */
.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 50vh;
    align-items: center;
}

/* --- CONTENEURS INTERNES --- */
.text-container {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.image-container {
    width: 100%;
    height: 100%;
    min-height: 350px;
}

.image-container img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: cover;
}

/* --- CARROUSEL : Affichage une par une sur la colonne de droite --- */
.carrousel-droite-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.galerie-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
    scrollbar-width: none;
}

.galerie-container::-webkit-scrollbar {
    display: none;
}

.carte-objet {
    flex: 0 0 100%; /* Force chaque carte à prendre toute la largeur du conteneur de droite (une par une) */
    scroll-snap-align: center;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #eee;
}

.carte-objet img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.8rem;
}

/* --- BOUTONS DU CARROUSEL --- */
.carrousel-boutons {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.carrousel-boutons button {
    background-color: #222;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.carrousel-boutons button:hover {
    background-color: #555;
}

/* --- LISTE DES MARCHÉS --- */
.agenda-liste {
    list-style: none;
    margin-top: 1rem;
}

.agenda-liste li {
    padding: 1rem 0;
    border-bottom: 1px solid #ccc;
    font-size: 1.05rem;
}

.agenda-liste strong {
    color: #d35400;
    display: block;
}

.info-marche {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 5px;
}

.bouton-carte {
    background-color: #222;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.bouton-carte:hover {
    background-color: #555;
}

#zone-affichage-droite iframe {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border-radius: 0;
}

/* --- ADAPTATION MOBILE --- */
@media (max-width: 800px) {
    .section-grid {
        grid-template-columns: 1fr;
    }

    .text-container {
        padding: 2rem 1rem;
        text-align: center;
    }

    .carrousel-boutons {
        justify-content: center;
    }

    .info-marche {
        align-items: center;
    }
}