@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');



.projects-header {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /*background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)), url('/api/placeholder/1920/1080') center/cover no-repeat;*/
    padding: 0 5%;
    margin-top: 80px;
}

.projects-header h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.projects-header p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    color: #ccc;
}

.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px 0;
    gap: 10px;
}

.filter-btn {
    padding: 8px 18px;
    background-color: transparent;
    border: 1px solid #5271FF;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-size: 16px;
}

.filter-btn:hover, .filter-btn.active {
    background-color: #5271FF;
    color: #000;
}

.projects-container {
    padding: 20px 5% 100px;
}

.project-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 100px;
    align-items: center;
    opacity: 1;
    transition: all 0.5s ease;
}

/* Classe pour inverser le layout (pour les projets impairs) */
.project-detail.reverse-layout {
    direction: rtl;
}

.project-detail.reverse-layout .project-detail-text {
    direction: ltr;
}

/* Styles pour les images des projets */

.project-detail-img {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    position: relative;
    /* Suppression de height: 100% et max-height qui forçaient les dimensions */
}

.project-detail-img img {
    width: 100%;
    height: auto; /* Changer pour 'auto' au lieu de 100% fixe */
    object-fit: contain; /* Changement de 'cover' à 'contain' pour préserver le ratio */
    transition: transform 0.5s ease;
    display: block;
    /* Suppression de max-height qui contraignait l'image */
}



.project-detail-img:hover img {
    transform: scale(1.05);
    cursor: pointer;
}

.project-detail-text {
    padding: 20px;
}

.project-detail-text h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #5271FF;
}

.project-detail-text p {
    margin-bottom: 20px;
    color: #ccc;
    line-height: 1.8;
}

.project-meta {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 14px;
    color: #5271FF;
    margin-bottom: 5px;
}

.meta-value {
    font-size: 16px;
    color: #fff;
}



.hero {
    height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 5%;
    overflow: hidden;
    margin-top: 90px;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.2) 60%,
    rgba(0, 0, 0, 1) 100%);
}

.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-family: 'Bebas neue', sans-serif;
    font-size: 70px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #ccc;
}




/* Animation d'apparition */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.project-detail {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Responsive design */
@media (max-width: 992px) {
    .project-detail, .project-detail.reverse-layout {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 20px;
    }

    .project-detail-text {
        padding: 10px 0;
    }

    .project-meta {
        justify-content: space-between;
    }
}