@import url('https://fonts.googleapis.com/css2?family=Londrina+Solid:wght@100;300;400;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Palanquin+Dark:wght@400;500;600;700&display=swap');

/* 🔥 CURSEURS PERSONNALISÉS */
*,
html,
body,
.bandeau-carousel,
.carousel-container {
    cursor: url('../Images/cursor.svg'), auto;
}

img,
.lien,
.icons img,
.menu-burger ul li a,
.menu-burger,
.carousel,
.carousel-item,
.carousel-btn,
.btn-projets {
    cursor: url('../Images/pointer.svg'), auto;
}

/* 🌞 COULEUR DE FOND */
body {
    background-color: #FFC700;
    overflow-x: hidden;
    margin: 0;
}

/* 🎨 NAVBAR */
.navbar {
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lien {
    font-family: "Londrina Solid";
    font-weight: 300;
    font-size: 50px;
    text-decoration: none;
    color: black;
}

/* 📌 ICONES */
.icons {
    display: flex;
    gap: 40px;
    margin-left: auto;
}

.icons img {
    width: 80px;
    height: auto;
}

/* MOI */
.moi {
    padding-top: 50px;
}

.image {
    position: absolute;
    height: auto;
    max-height: 100vh;
    width: auto;
    max-width: 50vw;
    transition: transform 1s ease-in-out;
}

.normal {
    left: -5%;
    transform: translateX(0);
}

.mirrored {
    right: -5%;
    transform: translateX(100%);
}

/* 📌 MENU BURGER */
.menu-burger {
    position: absolute;
    right: calc(80px + 220px);
    top: 29px;
    width: 200px;
    
    /* 👇 REMPLACE height: 200px PAR height: auto */
    height: auto; 
    
 

    background: #DD7DFF;
    visibility: hidden;
    z-index: 1000;
    border: 4px solid black;
    border-radius: 2px;
    box-shadow: 9px 9px 0 black;
    text-align: center;
}

.menu-burger.active {
    opacity: 1;
    visibility: visible;
}

.menu-burger ul {
    list-style: none;
    padding: 0;
}

.menu-burger ul li {
    padding: 10px;
}

.menu-burger ul li a {
    color: black;
    font-family: "Londrina Solid";
    text-decoration: none;
    font-size: 20px;
}

.menu-burger ul li a:hover {
    color: #FFC700;
}

/* 🎠 CARROUSEL */
.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 60px auto 0;
    width: 80%;
    max-width: 800px;
    position: relative;
    margin-top: 40vh;
    box-sizing: border-box;
}

.carousel {
    overflow: hidden;
    width: 100%;
    border: 4px solid black;
    background: white;
    border-radius: 2px;
    box-shadow: 9px 9px 0 black;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
    width: 100%;
}

.carousel-item {
    transition: transform 0.5s ease-in-out;
    object-fit: cover;
    width: 100%;
    flex-shrink: 0;
}

/* BOUTONS CARROUSEL */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    background-color: #0068FF;
    color: black;
    border: 4px solid black;
    padding: 10px;
    border-radius: 2px;
    box-shadow: 6px 6px 0 black;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: #DD7DFF;
    box-shadow: 4px 4px 0 black;
}

.carousel-btn.prev {
    left: -60px;
}

.carousel-btn.next {
    right: -60px;
}

/* 🚀 BOUTON PROJET */
.btn-projets-container {
    text-align: center;
    margin-top: 30px;
}

.btn-projets {
    display: inline-block;
    padding: 15px 30px;
    font-family: "Londrina Solid";
    font-size: 20px;
    background-color: #0068FF;
    color: white;
    border: 4px solid black;
    border-radius: 2px;
    box-shadow: 6px 6px 0 black;
    text-decoration: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-projets:hover {
    background-color: #DD7DFF;
    box-shadow: 4px 4px 0 black;
    color: black;
}

/* 🛠️ RESPONSIVE */
@media (max-width: 1024px), (max-width: 768px) {
    .menu-burger {
        position: static;
        margin: 20px auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .moi,
    .moi-espace {
        display: none;
    }

    .carousel-container {
        padding-top: 10px !important;
        margin-top: 0 !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .lien {
        margin-bottom: 10px;
    }

    .icons {
        margin: 10px 0;
        justify-content: center;
    }

    .menu-burger {
        flex-direction: column;
    }

    .carousel-btn {
        font-size: 28px;
        padding: 8px;
    }

    .carousel-btn.prev {
        left: 5px;
    }

    .carousel-btn.next {
        right: 5px;
    }
}

@media (max-width: 600px) {
    .moi {
        display: none;
    }

    .bandeau-carousel {
        margin-top: -30vh;
        position: relative;
    }

    .menu-burger.active ~ .bandeau-carousel {
        margin-top: 10vh;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        margin-top: 10vh;
    }

    .carousel-btn {
        font-size: 24px;
        padding: 6px;
        box-shadow: none;
    }

    .carousel-btn.prev {
        left: 5px;
    }

    .carousel-btn.next {
        right: 5px;
    }
}

/* PHOTO PHOTOPHOTOPHOTOPHOTOPHOTOPHOTOPHOTOPHOTOPHOTOPHOTOPHOTOPHOTOPHOTOPHOTOPHOTOPHOTOPHOTOPHOTOPHOTOPHOTOPHOTOPHOTO*/
 
.titre-galerie {
    text-align: center;
    font-family: "Londrina Solid";
    font-size: 60px;
    margin-top: 50px;
    color: black;
}

.galerie {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.galerie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.photo-container {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 4px solid black;
    box-shadow: 8px 8px 0 black;
    border-radius: 2px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: url('../Images/pointer.svg'), auto;
}

.photo-container:hover {
    transform: rotate(-1deg) scale(1.05);
    box-shadow: 4px 4px 0 black;
}

.photo-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-container:hover img {
    transform: scale(1.05);
}

.top-crop img {
    object-position: top;
}
.bottom-crop img {
    object-position: bottom;
}

.left-crop img {
    object-position: left;
}
.right-crop img {
    object-position: right;
}


@media (min-width: 600px) {
    .galerie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .galerie-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* PROJET PROJET PROJET PROJET PROJET PROJET PROJET PROJET PROJET PROJET PROJET PROJET PROJET PROJET PROJET PROJET PROJET */

.projets-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 60px;
    justify-content: center;
}

.projet-card {
    position: relative;
    width: 300px;
    background: white;
    border: 4px solid black;
    box-shadow: 8px 8px 0 black;
    border-radius: 2px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: url('../Images/pointer.svg'), auto;
}

.projet-card:hover {
    transform: rotate(-1deg) scale(1.05);
    box-shadow: 4px 4px 0 black;
}

.projet-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 4px solid black;
}


.projet-info {
    padding: 20px;
    font-family: "Palanquin Dark";
    color: black;
    font-size: 16px;
}

.projet-tag {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #DD7DFF;
    color: black;
    border: 2px solid black;
    font-family: "Londrina Solid";
    padding: 5px 10px;
    font-size: 14px;
    box-shadow: 3px 3px 0 black;
}
/* SECTION DES FILTRES */
.filters {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.filters form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center; /* Centrage vertical */
    gap: 20px;
    width: 100%;
    padding: 20px;
}

.filters label {
    font-family: "Londrina Solid";
    font-size: 18px;
    color: black;
    margin-bottom: 5px;
    text-align: center;
}

.filters .filter-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 160px;
}

.filters select {
    padding: 8px;
    font-size: 16px;
    font-family: "Palanquin Dark";
    border: 2px solid #0068FF;
    border-radius: 2px;
    transition: border-color 0.3s ease;
    cursor: url('../Images/pointer.svg'), auto;
    width: 140px; /* Taille uniforme */
    box-sizing: border-box;
    text-align: center;
}

.filters select:hover {
    border-color: #DD7DFF;
}

.filters button {
    height: auto;
    padding: 8px 18px;
    font-family: "Palanquin Dark";
    font-size: 15px;
    background-color: #0068FF;
    color: white;
    cursor: url('../Images/pointer.svg'), auto;
    border: 3px solid black;
    border-radius: 2px;
    box-shadow: 4px 4px 0 black;
    text-align: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    align-self: center;
}

.filters button:hover {
    background-color: #DD7DFF;
    box-shadow: 2px 2px 0 black;
    color: black;
}

/* PROJET ADMIN PROJET ADMIN PROJET ADMIN PROJET ADMIN PROJET ADMIN PROJET ADMIN PROJET ADMIN PROJET ADMIN PROJET ADMIN PROJET ADMIN  */

.admin-panel {
    margin: 2em;
    display: flex;
    justify-content: center;
}

.ajouter-trace-btn {
    padding: 8px 18px;
    font-family: "Palanquin Dark";
    font-size: 15px;
    background-color: #0068FF;
    color: white;
    cursor: url('../Images/pointer.svg'), auto;
    border: 3px solid black;
    border-radius: 2px;
    box-shadow: 4px 4px 0 black;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.ajouter-trace-btn:hover {
    background-color: #DD7DFF;
    color: black;
    box-shadow: 2px 2px 0 black;
}