/* Reset et styles de base */
body {
    font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #fff;
    color: #000;
    overflow-x: hidden;
}

/* Polices pour les titres et éléments forts */
.artist-names,
.page-title,
.details-title,
#menu a,
.heading-1,
.section-title,
.news-title,
.project-title,
.site-map a,
.command-button {
    font-family: 'Bebas Neue', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: -0.03em; /* Ajustement pour Bebas Neue */
}

/* Menu horizontal fixe */
#menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    padding: 20px 40px;
    box-sizing: border-box;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 40px;
}

.artist-names {
    font-size: 1.4rem; /* Légèrement réduit pour Bebas Neue */
    font-weight: 400; /* Bebas Neue n'a pas de graisses variables */
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #000;
    white-space: nowrap;
    margin-right: 40px;
}

#menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    align-items: center;
}

#menu li {
    margin: 0;
    position: relative;
}

#menu li:before {
    content: "/";
    position: absolute;
    left: -12px;
    color: #000;
}

#menu li:first-child:before {
    display: none;
}

#menu a {
    color: #000;
    text-decoration: none;
    font-size: 0.9rem; /* Ajusté pour Bebas Neue */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 0;
    transition: all 0.3s ease;
}

#menu a.is-active,
#menu a:hover {
    color: #fff;
    background: #000;
    padding: 5px 10px;
}

/* Conteneur principal */
.projects-container,
.page-container {
    padding: 120px 40px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Titres principaux */
.heading-1,
.page-title {
    font-size: 2.2rem; /* Légèrement réduit pour Bebas Neue */
    font-weight: 400; /* Bebas Neue est toujours en 400 */
    text-transform: uppercase;
    letter-spacing: -0.04em;
    margin-bottom: 40px;
    color: #000;
}

/* Année du projet */
.page-year {
    font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Retour à Montserrat */
    font-style: italic;
    color: #666;
    margin-bottom: 40px;
    font-size: 1rem;
}

/* Description du projet */
.page-description,
.details-content,
.news-text {
    font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    max-width: 800px;
    margin-bottom: 60px;
    font-size: 1rem;
    line-height: 1.8;
}

/* Grille des projets */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

/* Cartes des projets */
.project-card {
    background: #f8f8f8;
    border-radius: 0;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

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

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

/* Overlay des projets */
.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-title {
    font-family: 'Bebas Neue', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.4rem; /* Ajusté pour Bebas Neue */
    margin-bottom: 10px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.project-year {
    font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 15px;
    font-style: italic;
}

.project-link {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: white;
    color: #000;
}

/* Bouton retour vers l'accueil */
.home-button,
.back-button {
    position: fixed;
    bottom: 100px;
    left: 30px;
    z-index: 1000;
}

.home-button a,
.back-button a {
    display: block;
    width: 50px;
    height: 50px;
    background: #000;
    color: #fff;
    text-align: center;
    line-height: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.home-button a:hover,
.back-button a:hover {
    background: #fff;
    color: #000;
    transform: scale(1.1);
}

/* Galerie */
.gallery-section {
    margin: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    border: 1px solid #eee;
    cursor: pointer;
}

.gallery-item--double {
    grid-column: 1 / -1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s, filter 0.3s;
    filter: sepia(5%) contrast(92%);
}

.gallery-item:hover img {
    transform: scale(1.02);
    filter: sepia(10%) contrast(95%);
}

.gallery-tooltip {
    font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

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

/* Grille pour triptyque */
.gallery-grid--triptych {
    grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
}

/* Bouton "Commander ici" */
.command-button {
    font-family: 'Bebas Neue', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    display: inline-block;
    background-color: #000;
    color: #fff !important;
    text-decoration: none;
    padding: 12px 24px;
    font-weight: 400; /* Bebas Neue */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem; /* Ajusté pour Bebas Neue */
    margin: 20px 0;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.command-button:hover {
    background-color: #333;
    color: #fff !important;
}

/* Section détails */
.details-section {
    margin: 80px 0;
}

.details-title {
    font-size: 1.7rem; /* Ajusté pour Bebas Neue */
    font-weight: 400;
    margin-bottom: 30px;
    color: #000;
    letter-spacing: -0.03em;
}

.details-content {
    font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    max-width: 800px;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Pied de page */
.footer {
    padding: 60px 40px;
    text-align: right;
    background: #fff;
    border-top: 1px solid #eee;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #000;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #666;
}

.copyright {
    font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    color: #666;
}

/* Plan du site */
.site-map {
    padding: 60px 40px;
    background: #000;
    color: #fff;
}

.site-map-content {
    max-width: 1400px;
    margin: 0 auto;
}

.site-map ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.site-map li {
    margin: 0;
}

.site-map a {
    font-size: 0.9rem; /* Ajusté pour Bebas Neue */
    letter-spacing: 0.05em;
}

.site-map a:hover {
    color: #ccc;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

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

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 2001;
    user-select: none;
    transition: background 0.3s;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-nav--prev {
    left: 20px;
}

.lightbox-nav--next {
    right: 20px;
}

#lightbox-image {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* Animations de transition */
.exit-active {
    transform: translateY(-100vh);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

.enter {
    transform: translateY(50px);
    opacity: 0;
}

.enter-active {
    transform: translateY(0);
    opacity: 1;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .artist-names {
        font-size: 1.1rem;
    }

    .page-title,
    .details-title {
        font-size: 1.5rem;
    }

    .projects-container,
    .page-container {
        padding: 100px 20px 60px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-card {
        height: 250px;
    }

    #menu {
        padding: 15px 20px;
        gap: 15px;
    }

    #menu a {
        font-size: 0.8rem;
    }

    #menu ul {
        flex-wrap: wrap;
    }

    .footer {
        padding: 40px 20px;
        text-align: center;
        flex-direction: column;
        gap: 20px;
    }

    .site-map ul {
        flex-direction: column;
        gap: 30px;
    }

    .home-button,
    .back-button {
        bottom: 160px;
    }

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

    .gallery-item--double {
        grid-column: 1;
    }

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

    .site-map a {
        font-size: 0.8rem;
    }
}

