/* ==================== RESET & BASE ==================== */

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

body {
    font-family: 'Ubuntu', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

/* ==================== NAVIGATION ==================== */

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo h1 {
    font-family: 'Saira', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo h1 a {
    text-decoration: none;
    color: #333;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    font-family: 'Saira', sans-serif;
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    display: block;
}

.nav-menu a:hover {
    color: #666;
}

/* ==================== DROPDOWN MENU ==================== */

.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateX(-50%) translateY(-10px);
    margin-top: 0.5rem;
    border: 1px solid #e0e0e0;
    z-index: 100;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    font-family: 'Ubuntu', sans-serif;
    padding: 0.8rem 1.5rem;
    text-transform: capitalize;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
    color: #333;
}

/* Flèche indicatrice pour le dropdown */
.dropdown > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #333;
    transition: transform 0.3s ease;
}

.dropdown:hover > a::after {
    transform: rotate(180deg);
}

/* ==================== HERO IMAGES ==================== */

.hero-images {
    padding: 4rem 4rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Saira', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    padding: 1rem;
    display: inline-block;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.image-placeholder {
    aspect-ratio: 4/3;
    background-color: #e8e8e8;
    border: 2px solid #333;
    display: block; /* Important pour les liens */
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-placeholder:hover {
    transform: translateY(-5px);
}

/* ==================== ABOUT SECTION ==================== */

.about {
    padding: 3rem 4rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.about .section-title {
    margin-bottom: 2rem;
}

.about-content {
    padding: 2.5rem;
    background-color: #fff;
    width: 80%;
    margin: 0 auto;
    text-align: justify;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
    text-align: justify;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* ==================== PAGE HEADER (pour pages sculptures) ==================== */

.page-header {
    padding: 3rem 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.page-title {
    font-family: 'Saira', sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 3px solid #333;
    padding-bottom: 1rem;
    display: inline-block;
}

/* ==================== PROJECTS GALLERY (pour pages sculptures) ==================== */

.projects-gallery {
    padding: 2rem 4rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 500px)); /* MODIFIÉ - max 600px au lieu de 1fr */
    gap: 3rem;
    align-items: start;
    justify-content: center; /* AJOUT - Centre les éléments */

}

.project {
    background-color: #fff;
    padding: 1.5rem;
    border: 2px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* AJOUTE */
    overflow: hidden; 
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.project-title {
    font-family: 'Saira', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-align: center;
}

.project-image {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 4/3;
    background-color: #e8e8e8;
    display: block; /* Ajout pour le lien */
    text-decoration: none; /* Ajout pour le lien */
}

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

.project .project-image {
    flex-shrink: 0; /* Empêche la compression */
}

.project-image:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-image:hover .image-overlay {
    opacity: 1;
}

.view-icon {
    font-size: 3rem;
    color: #fff;
}

.cv {
    padding: 1rem 4rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cv img {
    max-width: 70%;
    height: auto;
    border: 2px solid #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    padding: 1rem;
}

.cv-clickable {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cv:hover {
    transform: scale(1.02);
}

/* ==================== LIGHTBOX / DÉFILEUSE ==================== */

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

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#lightbox-image {
    max-width: 90%; /* Augmenté de 90% à 95% */
    max-height: 90vh; /* Augmenté de 90vh à 95vh */
    width: auto;
    height: auto;
    object-fit: contain;
    border: 3px solid #fff;
}

.lightbox-image {
    max-width: 95%;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 3px solid #fff;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.close-lightbox:hover {
    color: #ccc;
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    padding: 1rem 1.5rem;
    user-select: none;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 3px;
}

.prev-btn:hover,
.next-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ccc;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.image-counter {
    margin-top: 1rem;
    font-family: 'Saira', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    text-align: center;
}

/* ==================== FOOTER ==================== */

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    font-size: 0.9rem;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1024px) {
    .main-nav {
        padding: 1.5rem 2rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .hero-images,
    .about,
    .page-header,
    .projects-gallery {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .projects-gallery {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }

    #lightbox-image,
    .lightbox-image {
        max-width: 98%;
        max-height: 98vh;
        border: 2px solid #fff;
    }
}

@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    .images-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        padding: 1.5rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .projects-gallery {
        grid-template-columns: 1fr;
    }
    
    .prev-btn,
    .next-btn {
        font-size: 2.5rem; /* Plus grand */
        padding: 1rem;
        background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
        border-radius: 5px;
        z-index: 10001; /* Au-dessus de tout */
    }

    .prev-btn {
        left: 10px; /* Plus proche du bord */
    }
    
    .next-btn {
        right: 10px; /* Plus proche du bord */
    }
    
    .close-lightbox {
        right: 15px;
        top: 15px;
        font-size: 2.5rem;
        background-color: rgba(0, 0, 0, 0.5);
        padding: 0.5rem 1rem;
        border-radius: 5px;
    }

    .cv {
        padding: 2rem 1rem;
    }
    
    .cv img {
        padding: 0.5rem;
    }

    #lightbox-image,
    .lightbox-image {
        max-width: 100%;
        max-height: 100vh;
        border: 1px solid #fff;
    }

}
