/* Styles spécifiques pour la page projets */

main {
    padding-top: 0;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* Style commun pour les sections de contenu */
.content-section {
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.hero {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    margin: 80px auto 40px;
    max-width: 1200px;
    position: sticky;
    top: 100px; /* Ajusté pour être sous le menu */
    z-index: 5;
    height: auto;
}

.hero h1 {
    font-size: 2em;
    margin-bottom: 10px;
    margin-top: 10px;
    color: #333;
    font-weight: 600;
}

.hero p {
    font-size: 1em;
    color: #666;
    max-width: 800px;
    margin: 0 auto 10px;
    font-weight: 300;
}

/* Section de filtres */
.filters-section {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 10px;
    margin-top: 10px;
}

.filters-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-item {
    font-size: 0.85em;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 3px 0;
}

.filter-item:hover {
    color: #333;
}

.filter-item.active {
    color: #333;
    font-weight: 500;
}

.filter-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #333;
}

/* Hamburger menu pour les filtres */
.filters-toggle {
    display: none;
    background: none;
    border: none;
    color: #333;
    font-size: 1.2em;
    cursor: pointer;
    padding: 5px;
    margin-bottom: 10px;
}

/* Styles pour la grille des projets */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.project-card {
    aspect-ratio: 1;
    position: relative;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: block;
    transform-origin: center;
}

.project-card:hover {
    transform: rotateY(180deg);
}

.project-card:focus {
    outline: none;
}

/* Face avant (image) */
.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image {
    filter: grayscale(100%);
}

/* Face arrière (informations) */
.project-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    padding: 20px;
    box-sizing: border-box;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.project-card:hover .project-info {
    opacity: 1;
}

.project-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.project-description {
    font-size: 1em;
    margin-bottom: 15px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.project-details {
    font-size: 0.9em;
    opacity: 0.8;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    main {
        padding-left: 15px;
        padding-right: 15px;
    }

    .content-section {
        padding: 30px 20px;
    }

    .hero {
        padding: 15px;
        margin: 70px auto 30px;
        position: relative;
        top: 0;
    }

    .hero h1 {
        font-size: 1.8em;
    }

    .filters-toggle {
        display: block;
        margin: 0 auto;
    }

    .filters-grid {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
    }

    .filters-grid.active {
        display: flex;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    /* Désactiver l'effet de retournement sur mobile */
    .project-card {
        transform: none;
    }

    .project-card:hover {
        transform: none;
    }

    .project-info {
        position: absolute;
        bottom: 0;
        top: auto;
        transform: none;
        background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
        opacity: 1;
        backdrop-filter: none;
    }
} 