/* style.css */
* { margin: 5px; padding: 5px; box-sizing: border-box; }

.gallery-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-masonry {
    column-count: 3;
    column-gap: 15px;
    column-fill: balance;
}

.gallery-item {
    display: block;
    margin-bottom: 15px;
    break-inside: avoid;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

#lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
}

.nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.prev, .next {
    color: white;
    font-size: 30px;
    background: #6BBBAE;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-masonry { column-count: 2; }
}
@media (max-width: 480px) {
    .gallery-masonry { column-count: 1; }
}

    /* GALERIE MAÇONNERIE */
        .gallery-container { padding: 20px 0; max-width: 1200px; margin: 20px auto; }
        .gallery-masonry {
            column-count: 3; column-gap: 15px; column-fill: balance;
        }
        .gallery-item {
            display: block; margin-bottom: 15px; break-inside: avoid;
            position: relative; overflow: hidden; border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s;
            text-decoration: none;
        }
        .gallery-item:hover { transform: scale(1.02); }
        .gallery-item img { width: 100%; height: auto; display: block; }

        /* LIGHTBOX */
        .lightbox {
            display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.9); z-index: 9999; align-items: center; justify-content: center;
        }
        .lightbox.active { display: flex; }
        .lightbox-content { position: relative; max-width: 90%; max-height: 90%; }
        #lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; }
        .close {
            position: absolute; top: -40px; right: 0; color: white; font-size: 40px;
            cursor: pointer; line-height: 1;
        }
        .nav {
            position: absolute; top: 50%; width: 100%; display: flex;
            justify-content: space-between; transform: translateY(-50%);
        }
        .prev, .next {
            color: white; font-size: 30px; background: rgba(0,0,0,0.5);
            width: 50px; height: 50px; display: flex; align-items: center;
            justify-content: center; cursor: pointer; border-radius: 50%;
        }

        /* Responsive */
        @media (max-width: 768px) { .gallery-masonry { column-count: 2; } }
        @media (max-width: 480px) { .gallery-masonry { column-count: 1; } }

        /* Styles existants */
        .article-content { 
            border: 1px solid #ccc; padding: 20px; margin-top: 20px; 
            border-radius: 8px; background: #fafafa; 
        }
        select { padding: 8px; font-size: 16px; border-radius: 4px; border: 1px solid #ddd; }



        @font-face {
    font-family: 'Roboto';
    src: url('fonts/roboto.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
.containers {
    width: 1100px;
    margin: 0 auto; /* centre horizontalement */
    font-size:18px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    font-family: 'Roboto', Arial, sans-serif;
background-color: #f7f5e9;
font-size:16px;
height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.navbar {
    background-color: #6BBBAE; /* Vert clair comme sur l'image */
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar2 {
    background-color: #6BBBAE; /* Vert clair comme sur l'image */
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo img {
    height: 50px; /* Ajustez selon votre logo.png */
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item .nav-link {
    color: #fff; /* Blanc pour contraster sur vert */
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Ajoutez un burger menu JS si besoin */
    }
}
body {
    font-family: 'Roboto', sans-serif;
}

.navbar {
    font-family: 'Roboto', Arial, sans-serif; /* Fallback si non chargé */
}

.header {
    flex: 0 0 auto; /* Hauteur fixe ou ajustez */
    height: 400px; /* Adaptez à la hauteur désirée de l'en-tête */
    background-image: url('tetiere.png');
    background-position: center center; /* Centre le milieu de l'image */
    background-size: cover; /* Responsive, crop si nécessaire */
    background-repeat: no-repeat;
}
.content {
    flex: 1;
    padding: 20px;
    text-align: center;
}
