/* =========================================
   PAGE NOS RÉALISATIONS (DESIGN VISUEL)
   ========================================= */

/* --- 1. HEADER & MENU --- */
#navbar {
    background-color: transparent !important;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 1024px) {
    #navbar .nav-center {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        white-space: nowrap;
    }
}

/* --- 2. HERO SECTION --- */
.hero-projects {
    background: linear-gradient(135deg, #02040a 0%, #0a1a30 100%);
    padding: 200px 20px 100px;
    text-align: center;
    color: white;
    position: relative;
}

.hero-projects::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0, 78, 162, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-subtitle {
    display: block;
    color: var(--blue);
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.hero-projects h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: white;
    line-height: 1.1;
}

.hero-projects p {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- 3. GALERIE VISUELLE --- */
.gallery-section {
    background-color: #050A18; /* Fond sombre */
    padding: 80px 20px;
}

/* Filtres */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 60px;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #94a3b8;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    transition: 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
}

/* Grille de Projets */
.projects-grid {
    display: grid;
    /* Création de colonnes flexibles */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* CARTE PROJET RECTANGULAIRE */
.project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    /* Ratio Portrait élégant (3:4) */
    aspect-ratio: 3 / 4;
    cursor: pointer;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    background: #000;
}

/* Photo de fond */
.project-bg {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit tout le rectangle sans déformer */
    transition: transform 0.5s ease;
    opacity: 0.8; /* Légèrement assombri pour faire ressortir le reste */
}

/* Petit Logo Client dans le coin */
.card-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 70px;
    height: 70px;
    z-index: 3;
    /* Fond blanc léger pour faire ressortir le logo */
    background: white;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Overlay (Volet sombre au survol) */
.project-overlay {
    position: absolute;
    inset: 0;
    /* Dégradé sombre partant du bas */
    background: linear-gradient(to top, rgba(0, 4, 15, 0.95) 0%, rgba(0, 4, 15, 0.6) 50%, transparent 100%);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Texte en bas */
    align-items: flex-start;
    opacity: 0; /* Caché au départ */
    transition: all 0.3s ease;
}

.overlay-content {
    transform: translateY(30px); /* Descend un peu au départ */
    transition: all 0.4s ease;
}

.project-cat {
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
    font-family: 'Syne', sans-serif;
}

.project-card h3 {
    color: white;
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    line-height: 1.1;
}

.project-card p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    font-family: 'Manrope', sans-serif;
}

/* INTERACTION AU SURVOL */
.project-card:hover .project-bg {
    transform: scale(1.05); /* Léger zoom de la photo */
    opacity: 0.4; /* Assombrit la photo pour lire le texte */
}

.project-card:hover .project-overlay {
    opacity: 1; /* L'overlay apparaît */
}

.project-card:hover .overlay-content {
    transform: translateY(0); /* Le texte remonte à sa place */
}


/* --- 4. CTA BAS DE PAGE --- */
.project-cta {
    background: white;
    padding: 100px 20px;
    text-align: center;
}

.cta-content h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    color: var(--navy);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.cta-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
}

.cta-btn {
    display: inline-block;
    background: var(--blue);
    color: white;
    padding: 15px 45px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.3s;
    font-family: 'Manrope', sans-serif;
}

.cta-btn:hover {
    background: #003d80;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 78, 162, 0.3);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-projects h1 { font-size: 3rem; }
}

@media (max-width: 600px) {
    .projects-grid { grid-template-columns: 1fr; }
    .project-card { aspect-ratio: 3/4; } 
}