:root {
    --main-violet: #9D2284;
    --dark-blue: #241D45;
    --light-violet: #EEE9ED;
    --text-color: #1a1a1a;
    --transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Sora', sans-serif; background: #fff; color: var(--text-color); line-height: 1.6; }

/* NAVIGATION */
.floating-nav {
    position: fixed; top: 30px; left: 50%; transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px);
    padding: 12px 32px; border-radius: 50px; border: 1px solid rgba(157, 34, 132, 0.15);
    z-index: 1000;
}
.floating-nav ul { display: flex; list-style: none; gap: 30px; }
.floating-nav a { text-decoration: none; color: var(--dark-blue); font-weight: 500; font-size: 0.9rem; position: relative; }
.floating-nav a:hover, .floating-nav a.active { color: var(--main-violet); }

/* HERO */
.project-hero { padding: 180px 8% 60px; max-width: 1200px; margin: 0 auto; }
.back-link { text-decoration: none; color: var(--main-violet); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
.project-title { font-size: clamp(3rem, 10vw, 7rem); font-weight: 800; line-height: 0.9; text-transform: uppercase; letter-spacing: -3px; margin: 20px 0; }
.violet-accent { color: var(--main-violet); }
.project-subtitle { font-size: 1.4rem; color: var(--dark-blue); max-width: 700px; font-weight: 300; }
/* --- STYLE DES TAGS (STYLE ÉDITORIAL) --- */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.project-tags span {
    display: inline-block;
    padding: 8px 20px;
    font-family: 'Sora', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--dark-blue);
    background: transparent;
    border: 1px solid rgba(36, 29, 69, 0.1); /* Bordure très fine et discrète */
    border-radius: 4px; /* Coins légèrement arrondis pour le côté pro */
    transition: all 0.3s ease;
}

/* Effet au survol des tags pour le dynamisme */
.project-tags span:hover {
    border-color: var(--main-violet);
    color: var(--main-violet);
    background: rgba(157, 34, 132, 0.02);
    transform: translateY(-2px);
}

/* CARROUSEL */
.project-carousel-section { padding: 40px 0; background: #fcfcfc; text-align: center; }
.carousel-container { position: relative; max-width: 1000px; margin: 0 auto; overflow: hidden; border-radius: 20px; }
.carousel-wrapper { display: flex; transition: transform 0.5s ease-in-out; }
.carousel-slide { min-width: 100%; cursor: zoom-in; }
.carousel-slide img { width: 100%; display: block; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: var(--main-violet); color: white; border: none; padding: 15px; cursor: pointer; border-radius: 50%; z-index: 10; font-size: 1.2rem; }
.prev { left: 20px; } .next { right: 20px; }
.carousel-hint { font-size: 0.8rem; color: #999; margin-top: 15px; text-transform: uppercase; letter-spacing: 1px; }

/* LIGHTBOX */
.lightbox { display: none; position: fixed; z-index: 2000; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); justify-content: center; align-items: center; }
.lightbox img { max-width: 90%; max-height: 85%; border-radius: 10px; }
.close-lightbox { position: absolute; top: 30px; right: 40px; color: white; font-size: 50px; cursor: pointer; }

/* CONTENT */
.project-content-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; padding: 100px 8%; max-width: 1200px; margin: 0 auto; }
.section-label { color: var(--main-violet); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; }
h2 { font-size: 3rem; line-height: 1.1; margin-top: 15px; text-transform: uppercase; letter-spacing: -1px; }
.btn-project-visit { display: inline-block; margin-top: 30px; color: var(--main-violet); text-decoration: none; font-weight: 700; border-bottom: 2px solid var(--main-violet); }

/* SPECS */
.project-specs { background: #fafafa; padding: 80px 8%; }
.specs-container { max-width: 900px; margin: 0 auto; }
.spec-row { display: flex; gap: 40px; padding: 40px 0; border-bottom: 1px solid #eee; }
.spec-number { color: var(--main-violet); font-weight: 800; font-size: 1.2rem; }

/* FOOTER NAV */
.project-footer-nav { padding: 80px 8%; text-align: right; }
.next-title { font-size: clamp(2rem, 6vw, 4rem); font-weight: 800; text-decoration: none; color: var(--dark-blue); text-transform: uppercase; }
.next-title:hover { color: var(--main-violet); }

/* --- FOOTER NAV OPTIMISÉE --- */
.project-footer-nav {
    padding: 150px 8% 100px; /* Plus d'espace pour marquer la fin */
    border-top: 1px solid #eee;
    margin-top: 100px;
}

.footer-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end; /* Garde l'alignement à droite comme tu aimes */
}

.next-project-link {
    text-decoration: none;
    display: inline-block;
  
}

.next-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--main-violet);
    margin-bottom: 20px;
    transition: var(--transition);
}

.next-title {
    font-size: clamp(3rem, 8vw, 6rem); /* Plus grand pour plus d'impact */
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -3px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 20px;
}

.next-title .arrow {
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* --- EFFETS AU SURVOL --- */
.next-project-link:hover .next-title {
    color: var(--main-violet);
}

.next-project-link:hover .arrow {
    transform: translateX(20px); /* La flèche s'éloigne au survol */
}

.next-project-link:hover .next-label {
    letter-spacing: 5px; /* Le label s'écarte légèrement */
    opacity: 0.7;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .project-footer-nav {
        padding: 80px 5%;
        text-align: center;
    }
    .footer-nav-container {
        justify-content: center;
    }
    .next-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }
}
/* --- OPTIMISATION CARROUSEL POUR PORTRAIT --- */
.carousel-container {
    height: 500px; /* On fixe une hauteur maximale pour tout le carrousel */
    background: #f4f4f4; /* Petit fond gris pour combler les bords des images portrait */
    display: flex;
    align-items: center;
}

.carousel-wrapper {
    height: 100%;
}

.carousel-slide {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide img, 
.carousel-slide video {
    max-height: 100%;
    width: auto; /* L'image prend la largeur nécessaire selon sa hauteur */
    max-width: 100%;
    object-fit: contain; /* Garde les proportions sans couper */
    border-radius: 10px;
}

/* On réduit encore plus la taille de l'affiche portrait si besoin */
.portrait-slide img {
    padding: 20px; /* Ajoute un peu d'air autour de l'affiche */
}

@media (max-width: 768px) {
    .carousel-container {
        height: 350px; /* Plus petit sur mobile */
    }
}
