/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}
.navbar-scrolled {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}
.navbar-brand img {
    height: 70px;
    width: auto;
    transition: height 0.3s ease;
}
/* Optionnel : réduire un peu au scroll si besoin */
.navbar-scrolled .navbar-brand img {
    height: 60px;
}

.nav-link {
    font-weight: 600;
    color: #fff !important;
    text-transform: uppercase;
    font-size: 1.1rem;
    margin-left: 2rem;
    letter-spacing: 0.5px;
}
.navbar-scrolled .nav-link {
    color: #333 !important;
}
.nav-link:hover {
    color: #ddd !important;
}
.navbar-scrolled .nav-link:hover {
    color: #000 !important;
}

/* Mobile Menu Overlay */
@media (max-width: 991px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        z-index: 1050;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: transform 0.3s ease-in-out;
        transform: translateX(100%); /* Caché par défaut */
    }

    .navbar-collapse.show {
        transform: translateX(0); /* Visible */
    }

    .navbar-nav {
        text-align: center;
        width: 100%;
    }

    .nav-item {
        margin: 15px 0;
    }

    .nav-link {
        font-size: 1.5rem;
        color: #fff !important;
        margin-left: 0;
    }

    /* Hamburger Icon */
    .navbar-toggler {
        border: none;
        z-index: 1100; /* Au-dessus de l'overlay */
        position: relative;
    }
    .navbar-toggler:focus {
        box-shadow: none;
    }

    /* Couleur du hamburger */
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    /* Quand le menu est ouvert ou navbar blanche, on garde blanc si overlay, sinon noir */
    /* Mais l'utilisateur veut blanc quand logo transparent (donc navbar transparente) */
    /* Et quand on clique dessus (menu ouvert), l'overlay est noir donc icone blanche */

    /* Si navbar scrolled (blanche), hamburger noir par défaut */
    .navbar-scrolled .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    /* Si menu ouvert, on force blanc car fond noir */
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }

    /* Contact Info in Mobile Menu */
    .mobile-contact-info {
        margin-top: 40px;
        text-align: center;
        color: rgba(255,255,255,0.7);
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 30px;
        width: 80%;
    }
    .mobile-contact-info a {
        color: #fff;
        text-decoration: none;
        display: block;
        margin-bottom: 10px;
        font-size: 1rem;
    }
    .mobile-contact-info i {
        margin-right: 10px;
        color: #aaa;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Footer */
.site-footer {
    text-align: center; /* Centré par défaut */
}
.site-footer .row {
    justify-content: center;
}
.site-footer h5 {
    text-align: center;
}
.site-footer ul {
    text-align: center;
    padding-left: 0;
}
.site-footer li.d-flex {
    justify-content: center;
}

/* Filtres Réalisations */
.filter-btn {
    border: 1px solid #e0e0e0 !important;
    border-radius: 30px !important;
    padding: 8px 20px !important;
    margin: 5px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    background-color: #fff !important;
    color: #555 !important;
}
.filter-btn:hover {
    background-color: #f8f9fa !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.filter-btn.active {
    background-color: #1a1a1a !important;
    color: #fff !important;
    border-color: #1a1a1a !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Project Card Styles */
.project-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 0; /* No gap grid */
}

.project-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    transition: transform 0.5s ease;
    display: block;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9); /* Fond clair pour texte foncé */
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: #333; /* Texte foncé */
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-title {
    color: #222; /* Gris très foncé */
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-overlay p {
    color: #555; /* Gris foncé */
    font-size: 1.1rem;
}
