/* Gallery Sections */
.gallery-section {
    width: 100%;
    min-height: 100vh;
    padding: 10vh 10vw;
    position: relative;
}

.category-title {
    font-size: 25px;
    font-weight: 400;
    margin-bottom: 5vh;
    text-transform: capitalize;
}

.gallery-grid {
    width: 80vw;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2vh;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #f0f0f0;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    /* height: 100%; */
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2vh;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.item-title {
    font-size: 2vh;
    font-weight: 600;
    margin-bottom: 0.5vh;
}

.item-subtitle {
    font-size: 1.6vh;
    font-weight: 300;
    opacity: 0.9;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: white;
    z-index: 2000;
    overflow-y: auto;
}

.modal.active {
    display: block;
}

.modal-close {
    position: fixed;
    top: 3vh;
    left: 3vh;
    width: 5vh;
    height: 5vh;
    background: transparent;
    border: 2px solid #000;
    border-radius: 50%;
    font-size: 3vh;
    cursor: pointer;
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #000;
    color: #fff;
}

/* Supprimer l'ancien modal-category */
.modal-category {
    display: none; /* On ne l'utilise plus */
}

/* Navigation des catégories dans le modal */
.modal-categories-nav {
    position: absolute;
    top: 3vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4vh;
    z-index: 2001;
}

.modal-category-link {
    font-size: 2vh;
    font-weight: 400;
    text-transform: capitalize;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.modal-category-link:hover {
    color: #000;
}

.modal-category-link.active {
    color: #000;
    font-weight: 600;
}

.modal-category-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5vh;
    left: 0;
    width: 100%;
    height: 2px;
    background: #000;
}

.modal-navigation {
    position: fixed;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 3vh;
    transform: translateY(-50%);
    z-index: 2001;
    pointer-events: none;
}

.modal-prev,
.modal-next {
    width: 5vh;
    height: 5vh;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #000;
    border-radius: 50%;
    font-size: 3vh;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
}

.modal-prev:hover,
.modal-next:hover {
    background: #000;
    color: #fff;
}

.modal-content-wrapper {
    padding: 15vh 10vw 5vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5vw;
    align-items: start;
}

.modal-main-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.modal-text {
    position: sticky;
    top: 15vh;
}

.modal-title {
    font-size: 4vh;
    font-weight: 700;
    margin-bottom: 1vh;
}

.modal-subtitle {
    font-size: 2.5vh;
    font-weight: 400;
    margin-bottom: 3vh;
    color: #666;
}

.modal-description {
    font-size: 2vh;
    line-height: 1.8;
    margin-bottom: 3vh;
    white-space: pre-line;
}

.modal-links {
    display: flex;
    flex-direction: column;
    gap: 2vh;
}

.modal-link {
    display: inline-flex;
    align-items: center;
    gap: 1vh;
    font-size: 2vh;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    width: fit-content;
}

.modal-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #000;
    transition: width 0.3s ease;
}

.modal-link:hover::after {
    width: 100%;
}

.modal-video {
    width: 100%;
    aspect-ratio: 16/9;
    margin-bottom: 3vh;
}

.modal-gallery {
    padding: 5vh 10vw;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3vh;
}

.modal-gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Navigation mobile cachée en version PC */
.modal-categories-burger,
.modal-categories-dropdown {
    display: none;
}

/* Logo Footer */
.footer-logo {
    position: absolute;
    bottom: -15%;
    left: 50%;
    transform: translateX(-50%);
    width: 180vh;
    height: auto;
    z-index: 1;
    opacity: 0.05;
    pointer-events: none;
}

.footer-logo img {
    width: 100%;
    height: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        width: 90vw;
        grid-template-columns: 1fr;
    }
    
    .modal-categories-nav {
        display: none;
    }
    
    .modal-content-wrapper {
        grid-template-columns: 1fr;
        padding: 12vh 5vw 3vh;
    }
    
    .modal-text {
        position: static;
    }
    
    .modal-gallery {
        grid-template-columns: 1fr;
        padding: 3vh 5vw;
    }
    
    .modal-categories-burger {
        display: flex;
        position: fixed;
        top: 3vh;
        right: 3vh;
        flex-direction: column;
        gap: 0.5vh;
        cursor: pointer;
        z-index: 2002;
        background: none;
        border: none;
        padding: 0;
    }
    
    .modal-categories-burger span {
        width: 2.5vh;
        height: 0.3vh;
        background: #000;
        display: block;
        transition: all 0.3s ease;
    }
    
    .modal-categories-dropdown {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        height: 100%;
        background: #fff;
        padding: 10vh 5vw;
        z-index: 2001;
        flex-direction: column;
        gap: 3vh;
        transition: right 0.4s ease;
        overflow-y: auto;
        border-left: 2px solid #000;
    }
    
    .modal-categories-dropdown.active {
        display: flex;
        right: 0;
    }
    
    .modal-categories-dropdown .modal-category-link {
        font-size: 2.5vh;
        margin: 0;
        padding: 1.5vh 0;
        border-bottom: 1px solid #eee;
    }
    
    .modal-categories-dropdown .modal-category-link:last-child {
        border-bottom: none;
    }
    
    .modal-categories-burger.open span:nth-child(1) {
        transform: rotate(45deg) translate(1vh, 1vh);
    }
    
    .modal-categories-burger.open span:nth-child(2) {
        opacity: 0;
    }
    
    .modal-categories-burger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(0.8vh, -0.8vh);
    }
}


/* Responsive Footer */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 3vh;
    }
    
    .footer-logo {
        width: 60vh;
        bottom: -10%;
    }
}¨

/* ========================================
   RESPONSIVE - MENU MOBILE
======================================== */

/* Menu Hamburger - caché par défaut */
.menu-toggle {
    display: none;
    position: fixed;
    bottom: 8vh;
    right: 5vw;
    width: 6vh;
    height: 6vh;
    background: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.menu-toggle:active {
    transform: scale(0.95);
}

.menu-toggle.hidden {
    display: none;
}

.menu-toggle img {
    width: 50%;
    height: 50%;
}

/* Menu Full Screen */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: #FFFFFF;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.mobile-menu-logo {
    width: 20vh;
    height: 20vh;
    margin-bottom: 3vh;
}

.mobile-menu-logo img {
    width: 100%;
    height: 100%;
}

.mobile-menu-links {
    list-style: none;
    text-align: center;
}

.mobile-menu-links li {
    margin: 3vh 0;
}

.mobile-menu-links a {
    text-decoration: none;
    color: #000000;
    font-size: 4vh;
    font-weight: 400;
    transition: opacity 0.3s ease;
}

.mobile-menu-links a:hover {
    opacity: 0.6;
}

.mobile-menu-close {
    position: absolute;
    top: 8vh;
    right: 5vw;
    width: 6vh;
    height: 6vh;
    background: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 4vh;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.mobile-menu-close:active {
    transform: scale(0.95);
}