:root {
    --gold: #C5A059;
    --dark: #121212;
    --light-gray: #f9f9f9;
    --ultra-spacing: 120px; /* La clé de ton design */
}

/* On aère tout le conteneur principal */
.one-screen-showcase {
    padding: var(--ultra-spacing) 0;
    background: #fff;
}

/* Header ultra-espacé */
.minimal-header {
    text-align: center;
    margin-bottom: var(--ultra-spacing);
}

.pro-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300; /* Plus fin = plus élégant */
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 50px;
}

.pro-title span { font-weight: 900; color: var(--dark); }

/* Navigation de filtrage épurée */
.project-filter {
    display: flex;
    justify-content: center;
    gap: 40px; /* Plus d'espace entre les boutons */
    margin-top: 40px;
}

.filter-btn {
    background: none;
    border: none;
    padding: 10px 0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 3px;
    cursor: pointer;
    color: #aaa;
    transition: 0.4s;
    border-bottom: 2px solid transparent;
}

.filter-btn.active {
    color: var(--dark);
    border-bottom: 2px solid var(--gold);
}

/* --- LA GRILLE AÉRÉE --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes pour laisser de la place */
    gap: 100px 60px; /* 100px d'espace vertical entre les projets */
}

.project-card-pro {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Image Box plus grande et plus propre */
.image-box {
    position: relative;
    height: 500px; /* Hauteur fixe imposante */
    overflow: hidden;
    background: var(--light-gray);
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 1.2s ease;
}

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

/* Badge minimaliste */
.badge-pro {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255,255,255,0.9);
    padding: 8px 20px;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Info Box aérée */
.info-box {
    padding: 40px 0; /* Espace entre l'image et le texte */
}

.date-pro {
    color: var(--gold);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.info-box h3 {
    margin: 15px 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}
h3{
    text-align: center;
}

.btn-pro {
    display: inline-block;
    margin-top: 20px;
    font-weight: 800;
    font-size: 0.75rem;
    text-decoration: none;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 5px;
    transition: 0.3s;
}

.btn-pro:hover {
    letter-spacing: 4px; /* Petit effet interactif */
}

/* --- RESPONSIVE FIX --- */
@media (max-width: 992px) {
    :root {
        --ultra-spacing: 60px; /* On réduit l'espace sur mobile pour éviter les trous vides */
    }

    .one-screen-showcase {
        padding: 40px 15px; /* Padding latéral pour que les cartes ne touchent pas les bords */
        overflow-x: hidden; /* Sécurité anti-scroll horizontal */
    }

    .pro-title {
        font-size: 1.8rem;
        letter-spacing: 3px; /* On réduit l'espacement des lettres sinon ça déborde */
        margin-bottom: 30px;
    }

    .project-filter {
        gap: 10px;
        flex-wrap: wrap; /* Les boutons passent à la ligne si nécessaire */
        margin-top: 20px;
    }

    .filter-btn {
        font-size: 0.65rem;
        padding: 8px 12px;
        letter-spacing: 1px;
    }

    .projects-grid {
        grid-template-columns: 1fr; /* Une seule colonne */
        gap: 60px; /* Espace vertical réduit mais suffisant */
        width: 100%;
    }

    .image-box {
        height: 300px; /* On réduit la hauteur des images sur téléphone */
    }

    .info-box h3 {
        font-size: 1.4rem; /* Titres moins agressifs */
    }

    .badge-pro {
        top: 15px;
        right: 15px;
        font-size: 0.55rem;
        padding: 5px 10px;
    }
}

/* Sécurité globale pour le body */
body {
    overflow-x: hidden;
    width: 100%;
}

/* --- AJUSTEMENTS POUR LE MENU --- */

.one-screen-showcase {
    position: relative;
    z-index: 1; /* On le descend d'un cran */
    padding: var(--ultra-spacing) 0;
    background: #fff;
}

/* On s'assure que rien ne déborde sur le header global */
header.minimal-header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: var(--ultra-spacing);
}

/* Correction spécifique pour éviter que le fond blanc ne cache le menu fixe */
main {
    overflow: visible !important;
}

/* --- LE RESTE DE TON CODE (AÉRÉ) --- */
:root {
    --gold: #C5A059;
    --dark: #121212;
    --light-gray: #f9f9f9;
    --ultra-spacing: 120px;
}

.pro-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 50px;
}

.pro-title span { font-weight: 900; color: var(--dark); }

.project-filter {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

/* Garde le reste de ton CSS identique ici... */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 120px 80px; /* J'ai encore un peu augmenté l'espace vertical */
}

/* ... (le reste de ton code h3 centré, btn-pro, etc.) */
h3 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 20px 0;
}

.info-box {
    text-align: center; /* Pour que tout soit bien aligné avec ton h3 */
    padding: 40px 0;
}

/* On s'assure que le contenu de la page reste en arrière-plan par rapport au menu */
.one-screen-showcase {
    position: relative;
    z-index: 1; /* Priorité basse */
    padding: var(--ultra-spacing) 0;
    background: #fff;
}

/* Force le menu (généralement dans base.html) à être au-dessus de tout */
header, .navbar, nav {
    z-index: 9999 !important;
}
main.one-screen-showcase {
    overflow: visible !important;
}
.minimal-header {
    text-align: center;
    margin-bottom: var(--ultra-spacing);
    padding-top: 40px; /* Ajoute un peu d'espace sous le logo/menu */
}
.image-box {
    position: relative;
    height: auto; /* On laisse l'image respirer */
    min-height: 400px; /* Sécurité minimale */
    max-height: 600px; /* Sécurité maximale */
    overflow: hidden;
    background: var(--light-gray);
}

.image-box img {
    width: 100%;
    height: auto; /* L'image garde ses proportions réelles */
    display: block;
    transition: 1.2s ease;
}
