/* Base Reset & Typography */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; 
    background-color: #ffffff; 
    color: #333333; 
    line-height: 1.6; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
}

/* Layout Container - Widened to 1200px for larger rectangles */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 30px 20px; 
    flex: 1; 
    width: 100%;
}

/* Navigation & Header */
nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 50px; 
    padding-bottom: 15px;
    border-bottom: 2px solid #bfbfbf;
}
.nav-links a { 
    text-decoration: none; 
    color: #888; 
    margin-right: 25px; 
    text-transform: uppercase; 
    font-size: 0.85em; 
    letter-spacing: 1px;
    transition: color 0.3s ease;
}
.nav-links a:hover { color: #111; }
.nav-social { color: #888; transition: color 0.3s ease; display: flex; align-items: center; }
.nav-social:hover { color: #111; }

h1 { text-align: center; margin-bottom: 5px; font-weight: 300; letter-spacing: 2px;}
h3 { text-align: center; margin-bottom: 50px; font-weight: 200; letter-spacing: 2px; font-size: 23px;}

/* --- NEW: Alternating 50/50 Gallery Blocks --- */
.gallery-list { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; /* Space between the rows */
    width: 100%; 
}
.gallery-block {
    display: flex;
    width: 100%;
    height: 400px; /* Adjust this to make rectangles taller/shorter */
    background-color: #f2f2f2;
    text-decoration: none;
    color: #000000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.gallery-block:hover { 
    transform: scale(1.01);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); 
}
.gallery-block img {
    width: 50%;
    height: 100%;
    object-fit: cover;
}
.block-text {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.block-text h2 { 
    font-size: 1.8em; 
    font-weight: 300; 
    letter-spacing: 1px;
	margin: 0;
}

/* Magic trick: Reverses the layout for every 2nd rectangle! */
.gallery-block:nth-child(even) {
    flex-direction: row-reverse;
}

/* --- NEW: Masonry Gallery Grid --- */
.photo-grid {
    column-count: 3; /* Creates 3 columns */
    column-gap: 20px; /* Space between columns */
    margin-top: 30px;
    width: 100%;
}
.photo-grid img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    margin-bottom: 20px; /* Space below each image */
    display: block;
    break-inside: avoid; /* Prevents an image from being cut in half across columns */
    
    /* Failsafe: Hides ugly alt text if an image is missing/broken */
    color: transparent; 
    font-size: 0;
}

/* Contact Page Styles */
.translatable {
    white-space: pre-line;
}

.contact-wrapper {
    text-align: center;
    max-width: 600px; 
    width: 100%;
    margin: 0 auto;
    padding: 10px 0;
}
.contact-wrapper p { font-size: 1.1em; color: #666; margin-bottom: 30px; }
.email-link {
    display: inline-block;
    font-size: 1.5em;
    color: #111;
    text-decoration: none;
    border-bottom: 1px solid #111;
    padding-bottom: 5px;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.email-link:hover { color: #888; border-color: #888; }


/* Style du bouton de langue */
#lang-btn {
    background: none;
    border: none;
    color: #888;
    font-family: inherit;
    font-size: 0.85em;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    margin-right: 20px;
    padding: 0;
    transition: color 0.3s ease;
}

#lang-btn:hover {
    color: #111;
}


/* Footer */
footer {
    padding: 20px;
    text-align: left;
    font-size: 0.85em;
    color: #999;
    border-top: 1px solid #f0f0f0;
    max-width: 1200px;
    margin: 50px auto 0 auto; /* Added top margin to push it down from the gallery */
    width: 100%;
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    /* Drop to 2 columns on tablets */
    .photo-grid { column-count: 2; }
}

@media (max-width: 768px) {
    /* Empile les blocs sur mobile et enlève la hauteur fixe */
    .gallery-block, .gallery-block:nth-child(even) {
        flex-direction: column;
        height: auto; 
    }
    
    /* Donne une hauteur fixe à l'image pour qu'elle reste belle */
    .gallery-block img {
        width: 100%;
        height: 250px; /* Vous pouvez augmenter ou réduire ce chiffre selon vos goûts */
    }
    
    /* Le bloc de texte s'adapte maintenant à son contenu */
    .block-text {
        width: 100%;
        height: auto;
        padding: 20px 0; /* Espace (haut/bas) autour du mot "Concerts". Réduisez à 20px pour faire encore plus fin ! */
    }
}

/* --- Lightbox Styles --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Dark slightly transparent background */
    display: flex; /* We will toggle this via JS (flex/none) */
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border-radius: 2px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-btn:hover {
    color: #ccc;
}

/* Lightbox Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 60px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    user-select: none;
    z-index: 1001;
}

.nav-btn:hover {
    color: #ccc;
}

.prev-btn {
    left: 40px;
}

.next-btn {
    right: 40px;
}

.photo-grid img {
    cursor: zoom-in; /* Indicate that the image can be clicked */
    transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.photo-grid img:hover {
    transform: scale(1.02); /* Léger zoom */
    filter: brightness(0.9); /* Lèger assombrissement */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Légère ombre pour détacher l'image */
    z-index: 1;
    position: relative; /* Nécessaire pour que le z-index passe au premier plan au survol */
}