/* 1. RESET & BASE STYLE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding: 15px;
}

#conteneur {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* 2. TYPOGRAPHIE */
h1 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

h2 {
    color: #3498db;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* 3. LAYOUT (Mobile First) */
#gauche, #droite {
    width: 100%;
    margin-bottom: 20px;
}

#droite {
    display: flex;
    justify-content: center;
}

#droite img {
    border-radius: 50%; /* Image de région en cercle pour le style */
    border: 2px solid #eee;
}

/* Version Desktop (écrans > 768px) */
@media (min-width: 768px) {
    #conteneur {
        padding: 40px;
    }
    
    h1 {
        font-size: 2rem;
    }

    /* Aligne les infos et le logo de région */
    .header-flex {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    #gauche { width: 80%; }
    #droite { width: 15%; }
}

/* 4. GALERIE D'IMAGES (Grille moderne) */
.pics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.pics img {
    width: 100%;
    height: 250px;
    object-fit: cover; /* Recadre proprement les photos sans les déformer */
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.pics img:hover {
    transform: scale(1.02);
}

/* 5. LISTE D'ÉQUIPEMENTS & TEXTE */
b {
    color: #2c3e50;
}

/* Style pour transformer le texte brut en "blocs" plus lisibles */
.description-text {
    background: #f1f4f7;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

/* Ajustement des images pour éviter le scroll horizontal */
img {
    max-width: 100%;
    height: auto;
}
/* Style de la Lightbox */
#lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
    align-items: center;
    justify-content: center;
}

#lightbox-img {
    max-width: 90%;
    max-height: 80%;
    border: 3px solid white;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

#lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}