/* All Projects Page Styles */

/* Page principale - fond noir */
main {
    background-color: #000;
    min-height: 100vh;
    margin-top: 4rem;
}
.header-fixed {
    padding: 0.75rem 0;
    height: 100px;
}

/* Barre de filtres */
.form-select {
    background-color: transparent !important;
    border: 1px solid #ffffff;
    color: #ffffff !important;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 8px 15px;
    border-radius: 0;
}

.form-select:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    background-color: transparent !important;
    color: #ffffff !important;
}

.form-select option {
    background-color: #000;
    color: #ffffff;
}

/* Label FILTER */
label {
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 14px;
}

/* Grille de projets */
.project-item {
    cursor: pointer;
    transition: transform 0.3s ease;
    height: 200px;
    border-radius: 0;
    overflow: hidden;
}

.project-item:hover {
    transform: translateY(-5px);
}

/* Images des projets */
.project-image {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-item:hover .project-image {
    transform: scale(1.05);
}

/* Overlay bleu transparent */
.project-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 50, 100, 0.8) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

/* Informations du projet */
.project-info {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-item:hover .project-info {
    transform: translateY(0);
}

/* Nom du projet */
.project-info h3 {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Lieu du projet */
.project-info p {
    font-size: 14px;
    color: #cccccc !important;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .project-item {
        height: 280px;
    }

    .navbar-brand-enterprise {
        font-size: 1rem;
    }
    .project-image {
        height: 280px;
    }
}

@media (max-width: 991.98px) {
    h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    .navbar-brand-enterprise {
        font-size: 1rem;
    }

    .project-item {
        height: 250px;
    }

    .project-image {
        height: 250px;
    }
}

@media (max-width: 767.98px) {
    h1 {
        font-size: 2rem;
        text-align: center;
    }
    .navbar-brand-enterprise {
        font-size: 0.75rem;
    }

    .d-flex.justify-content-md-end {
        justify-content: center !important;
        margin-top: 15px;
    }

    .project-item {
        height: 220px;
    }

    .project-image {
        height: 220px;
    }

    .project-info h3 {
        font-size: 16px;
    }

    .project-info p {
        font-size: 13px;
    }
}

@media (max-width: 575.98px) {
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }

    h1 {
        font-size: 1.8rem;
    }
    .navbar-brand-enterprise {
        font-size: 0.75rem;
    }

    .project-item {
        height: 200px;
    }

    .project-image {
        height: 200px;
    }

    .project-info {
        padding: 15px !important;
    }
}

/* Style pour les petits telephones */
@media (max-width: 360px) {
    .navbar-brand-enterprise {
        display: none;
    }
    .footer-social-links,
    .footer-newsletter {
        margin-bottom: 24px;
    }

    .footer-copyright {
        text-align: center;
    }

    .footer-newsletter,
    .footer-social-links {
        display: none;
    }

    .footer-dark {
        height: 120px; /* Hauteur encore plus grande sur mobile */
    }
}

/* Animation d'apparition */
.project-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.project-card:nth-child(1) {
    animation-delay: 0.1s;
}
.project-card:nth-child(2) {
    animation-delay: 0.2s;
}
.project-card:nth-child(3) {
    animation-delay: 0.3s;
}
.project-card:nth-child(4) {
    animation-delay: 0.4s;
}
.project-card:nth-child(5) {
    animation-delay: 0.5s;
}
.project-card:nth-child(6) {
    animation-delay: 0.6s;
}
.project-card:nth-child(7) {
    animation-delay: 0.7s;
}
.project-card:nth-child(8) {
    animation-delay: 0.8s;
}
.project-card:nth-child(9) {
    animation-delay: 0.9s;
}
.project-card:nth-child(10) {
    animation-delay: 1s;
}
.project-card:nth-child(11) {
    animation-delay: 1.1s;
}
.project-card:nth-child(12) {
    animation-delay: 1.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* États de filtre */
.project-card.hidden {
    display: none;
}

.project-card.show {
    display: block;
}

/* Amélioration de l'accessibilité */
.project-item:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Scrollbar custom pour les navigateurs webkit */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
