/* ==========================================================================
   STYLE DÉDIÉ A LA PAGE PROJET (CHANTIER UNIQUE) - Mediatone
   ========================================================================== */

.projet-main {
    background-color: var(--color-dark-bg, #0a0a0a);
    min-height: 100vh;
    padding-bottom: 60px;
}

/* --- Section Hero Immersive --- */
.projet-hero {
    position: relative;
    width: 100%;
    height: 75vh; 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    display: flex;
    align-items: flex-end; 
    border-bottom: 1px solid var(--color-border-dark, #222);
}

.projet-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 1) 0%, rgba(10, 10, 10, 0.4) 40%, transparent 100%);
    z-index: 1;
}

.projet-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5vw 40px 5vw;
}

.projet-hero-content h1 {
    font-family: var(--font-sans, sans-serif);
    font-size: clamp(1.8rem, 4vw, 3rem); 
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
}

.projet-hero-content h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--color-accent, #007bff);
    margin-top: 20px;
}

.projet-hero-textonly {
    padding: 150px 5vw 80px;
    text-align: center;
    background-color: #0a0a0a;
}

/* --- Section Galerie Grille (Maintenant au-dessus du texte) --- */
.projet-gallery-section {
    padding: 80px 5vw 40px 5vw; /* Padding top ajusté pour s'écarter du Hero */
    max-width: 1600px;
    margin: 0 auto;
}

.projet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.grid-item {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    background-color: #111;
    aspect-ratio: 16/10;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
    display: block;
}

.grid-item:hover img {
    transform: scale(1.05);
    opacity: 0.8;
}

/* --- Section Détails / Texte (Maintenant en dessous des photos) --- */
.projet-details-section {
    padding: 40px 5vw 80px 5vw; /* Padding top réduit car la galerie est juste au-dessus */
    background-color: var(--color-dark-bg, #0a0a0a);
}

.projet-text-content {
    max-width: 800px; 
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-light-text, #e0e0e0);
    white-space: pre-line;
}

/* --- Navigation Retour --- */
.projet-navigation {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-retour {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-muted, #888);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.btn-retour svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-retour:hover {
    color: var(--color-accent, #007bff);
}

.btn-retour:hover svg {
    transform: translateX(-5px);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .projet-hero {
        height: 50vh;
        background-attachment: scroll; 
    }
    .projet-text-content {
        font-size: 1rem;
    }
    .projet-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}