* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    flex-direction: column
}

header img {
    width: 100%;
    height: auto;
}

header ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 25px;
    text-decoration: none;
    padding-top: 25px;
}

header ul li a {
    text-decoration: none;
    color: black;
    font-family: 'Delius Unicase', sans-serif;
    font-size: 16px;
}

/* Bordure spécifique pour le lien Accueil */
header ul li a.creche-link {
    border: 2px solid rgb(147, 80, 4);
    padding: 8px 15px;
    border-radius: 20px;
}


main {
    display: flex;
    justify-content: center;
    min-height: 500px;
    flex-direction: column;
    padding: 40px 20px;
}

main h1 {
    font-family: 'Baloo Chettan 2', cursive;
    font-size: 2.5rem;
    color: rgb(147, 80, 4);
    text-align: center;
}

main h5 {
    font-family: 'Baloo Chettan 2', cursive;
    font-size: 19px;
    text-align: center;
    padding-top: 20px;
}

main p {
    font-family: 'Baloo Chettan 2', cursive;
    font-size: 16px;
    text-align: center;
    padding-top: 20px;
}


.image-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 20px auto 0 auto;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
}

.image-container img {
    width: calc(33.333% - 15px);
    max-width: 350px;
    height: 350px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    object-fit: cover;
}

.image-container img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* 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.9);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

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

.lightbox img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    color: #ccc;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    padding: 16px;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

.prev {
    left: -60px;
}

.next {
    right: -60px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.image-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-family: 'Baloo Chettan 2', cursive;
    font-size: 16px;
}



.engagement {
    padding: 40px 20px;
    text-align: center;
}

.engagement h1 {
    font-family: 'Baloo Chettan 2', cursive;
    font-size: 32px;
    color: #A16300;
}

.engagement h3 {
    font-family: 'Baloo Chettan 2', cursive;
    font-size: 24px;
    color: #A16300;
    margin-top: 20px;
}

.engagement p {
    font-family: 'Baloo Chettan 2', cursive;
    font-size: 18px;
    color: #333;
    margin-top: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}


.contact {
    padding: 40px 20px;
    text-align: center;
    background: rgb(208, 207, 207);
    background-image: linear-gradient(rgba(248, 248, 248, 0.9), rgba(248, 248, 248, 0.9)), url('../img/coeur.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 21% 8%;
    background-attachment: scroll;
}

.contact h1 {
    font-family: 'Baloo Chettan 2', cursive;
    font-size: 32px;
    color: #A16300;
}

.contact p {
    font-family: 'Baloo Chettan 2', cursive;
    font-size: 18px;
    color: #A16300;
    margin-top: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.contact a {
    display: inline-block;
    background-color: #ffd3b5;
    color: rgb(0, 0, 0);
    text-decoration: none;
    border-radius: 5px;
    font-family: 'Baloo Chettan 2', cursive;
    font-size: 18px;
}

.contact button {
    margin-top: 50px;
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffd3b5;
    color: white;
    border: none;
    border-radius: 5px;
    font-family: 'Baloo Chettan 2', cursive;
    font-size: 18px;
    cursor: pointer;
}




/* Menu hamburger - caché par défaut */
.menu-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.menu-hamburger span {
    width: 25px;
    height: 3px;
    background-color: rgb(147, 80, 4);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Animation du menu hamburger quand il est ouvert */
.menu-hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.menu-hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    header {
        position: relative;
        padding: 15px 20px;
    }

    header img {
        width: 20%;
    }

    .menu-hamburger {
        display: flex;
    }

    header ul {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: left 0.3s ease;
        z-index: 1000;
        backdrop-filter: blur(10px);
        padding-top: 0;
    }

    header ul.active {
        left: 0;
    }

    header ul li a {
        font-size: 24px;
        font-weight: 600;
        color: rgb(147, 80, 4);
        padding: 15px 30px;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    header ul li a:hover {
        background-color: rgba(147, 80, 4, 0.1);
    }

    /* Styles pour les liens actifs en mobile */
    header ul li a.creche-link {
        background-color: rgb(147, 80, 4);
        color: white;
        border: none;
    }

    main {
        padding: 20px 10px;
    }

    .container {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }

    .container-left,
    .container-right {
        width: 100%;
    }

    .galerie-photos {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin: 0 10px;
    }

    /* Images en mode tablette - 2 par ligne */
    .image-container img {
        width: calc(50% - 10px);
        height: 250px;
    }
}

@media screen and (max-width: 768px) {
    header img {
        width: 25%;
    }

    main {
        padding: 15px 5px;
    }

    .container {
        padding: 10px;
        margin: 0 5px;
    }

    .galerie-photos {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Images en mode mobile - 2 par ligne */
    .image-container img {
        width: calc(50% - 10px);
        height: 200px;
    }

    .title h1 {
        font-size: 2rem;
    }

    .container h2 {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    header img {
        width: 30%;
    }

    header ul li a {
        font-size: 20px;
        padding: 12px 25px;
    }

    /* Images en très petit mobile - 2 par ligne plus petites */
    .image-container img {
        width: calc(50% - 8px);
        height: 150px;
    }

    .title h1 {
        font-size: 1.8rem;
    }

    .container h2 {
        font-size: 1.3rem;
    }

    .container p {
        font-size: 14px;
    }
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer p {
    margin: 5px 0;
    font-size: 14px;
}

/* Style pour le message "Aucune image" */
.no-images {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
    margin: 20px 0;
}