:root {
    --bleu: #D0DDEC;
    --rose: #D29BA4;
    --marron: #6D4C37;
    --jaune: #f0f198;
}


body {
    margin: 0;
    font-family: Arial;
    background: var(--beige);
    font-family: "sofia-pro", sans-serif;
    font: weight 300px;
    ;
    font-style: normal;
}

h1 {
    display: flex;
    justify-content: center;
    font-size: 3rem;
    font-family: "Anton", sans-serif;
    font-weight: 400;
    color: var(--rose);
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* HEADER */
header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

/* bouton retour */
.back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--rose);
    text-decoration: none;
}

.arrow {
    border: solid white;
    border-width: 0 3px 3px 0;
    padding: 6px;
    transform: rotate(135deg);
}

/* GALERIE */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
}

.item {
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.item:hover img {
    transform: scale(1.1);
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-content {
    text-align: center;
    max-width: 90%;
}

.lightbox img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

.description {
    margin-top: 15px;
    color: white;
    font-size: 1rem;
}

/* NAV */
nav {
    display: flex;
    justify-content: end;

}

nav a {
    margin: 0 10px;
    text-decoration: none;
    color: var(--marron);
    font-family: "sofia-pro", sans-serif;
    font-weight: 300;
    font-style: normal;


}

/* BURGER */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--marron);
}




/* RESPONSIVE */
@media (max-width: 768px) {

    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* Activation du bouton burger visuellement */
    .burger {
        display: flex;
        /* Forcé sur mobile */
        margin-left: auto;
    }

    /* Transformation du menu de navigation en menu déroulant */
    nav {
        display: none;
        /* Masqué par défaut sur mobile tant qu'on ne clique pas */
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 20px;
        width: 200px;
        background: white;
        border-radius: 15px;
        padding: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }

    /* Classe déclenchée par le JavaScript au clic sur le burger */
    nav.active {
        display: flex;
        animation: fadeIn 0.3s ease forwards;
    }

    nav a {
        margin: 5px 0;
        padding: 10px;
        border-radius: 10px;
        text-align: left;
    }

    nav a:hover {
        background: var(--rose);
        color: white;
    }

    .about {
        flex-direction: column;
        text-align: center;
    }

    /* Animation d'entrée du menu */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}