/* Styles spécifiques aux pages de projet */
header, 
header.fixed-header,
header.transparent-header,
body > header {
    background: white !important;
    box-shadow: none !important;
    position: fixed !important;
    width: 100% !important;
    z-index: 1000 !important;
}

header nav,
header .logo-container,
header.fixed-header nav,
header.transparent-header nav {
    background: white !important;
}

header.scrolled {
    background: white !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

/* Suppression des styles forcés pour les liens de navigation */
header nav a:hover {
    color: var(--color-gold) !important;
}

.project-detail {
    padding-top: 120px;
}

.project-hero {
    background: white;
    padding: 2rem 2rem 4rem;
    text-align: center;
    position: relative;
}

.project-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--color-gold);
}

.project-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-gold);
    font-family: 'Playfair Display', serif;
}

.project-subtitle {
    font-size: 1.2rem;
    color: var(--color-gold);
    margin-bottom: 2rem;
    font-family: 'Montserrat', sans-serif;
}

.project-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.info-card h4 {
    color: var(--color-gold);
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.info-card p {
    color: #666;
    font-size: 1.1rem;
}

.project-description {
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.project-gallery {
    padding: 4rem 2rem;
    background: #f8f9fa;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gallery-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.project-features {
    padding: 4rem 2rem;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-item i {
    font-size: 2rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.feature-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-hero h1 {
        font-size: 2rem;
    }

    .gallery-container {
        grid-template-columns: 1fr;
    }

    .gallery-image {
        height: 300px;
    }

    .project-info-grid {
        grid-template-columns: 1fr;
    }
} 

.error-message {
    color: #D8000C;
    background-color: #FFBABA;
    border: 1px solid #D8000C;
    padding: 10px;
    border-radius: 5px;
    margin-top: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    display: none;
}

.error-message.active {
    display: block;
}

/* Styles communs pour la galerie des projets */

/* Styles desktop */
.gallery-main {
    width: 100%;
    margin: 2rem 0;
    background: white;
}

.main-image-container {
    border: 2px solid var(--color-gold);
    border-radius: 15px;
    padding: 10px;
    background: white;
    height: fit-content;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 10px;
}

.thumbnails-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
}

.thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border: 1px solid var(--color-gold);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    transform: scale(1.05);
    border-color: var(--color-gold);
}

.thumbnail.active {
    border: 2px solid var(--color-gold);
    transform: scale(1.05);
}

/* Lightbox styles (caché par défaut sur desktop) */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.lightbox-content img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.lightbox-prev,
.lightbox-next {
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

/* Styles mobile */
@media (max-width: 768px) {
    .gallery-main {
        margin-bottom: 15px;
        padding: 0 10px;
    }

    .main-image-container {
        height: auto;
        min-height: unset;
        max-height: unset;
        padding: 2px;
        border-width: 1px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
    }

    .main-image {
        width: 100%;
        height: auto;
        max-height: 250px;
        object-fit: contain;
        border-radius: 6px;
        display: block;
    }

    .thumbnails-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        margin-top: 10px;
    }

    .thumbnail {
        height: 70px;
        border-width: 1px;
        border-radius: 4px;
    }

    /* Lightbox styles pour mobile */
    .lightbox {
        display: none;
    }

    .lightbox.active {
        display: flex;
    }

    .lightbox-content {
        padding: 10px;
    }

    .lightbox-content img {
        max-width: 100%;
        max-height: 85vh;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 1.8rem;
        background: rgba(0, 0, 0, 0.5);
        width: 35px;
        height: 35px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .lightbox-nav {
        position: fixed;
        bottom: 20px;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 20px;
        padding: 0;
        transform: none;
        top: auto;
    }

    .lightbox-prev,
    .lightbox-next {
        position: static;
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.7);
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Styles tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-image-container {
        height: 400px;
    }

    .thumbnails-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .thumbnail {
        height: 80px;
    }
}