/* projets.css - Grid layout for projects */

.projets-page {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 60px 20px;
}

.projets-page h1 {
    text-align: center;
    font-size: 3rem;
    color: white;
    margin-bottom: 50px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Projects Grid */
.projets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Project Card */
.projet-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.projet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 140, 0, 0.2);
    border-color: rgba(255, 140, 0, 0.5);
}

/* Logo area */
.projet-logo {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px;
}

.projet-logo img {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    filter: brightness(1.1);
    transition: transform 0.3s;
}

/* White background for dark logos */
.projet-logo.logo-white {
    background: white;
}

.projet-card:hover .projet-logo img {
    transform: scale(1.1);
}

/* Info area */
.projet-info {
    padding: 25px;
}

.projet-info h2 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.projet-annee {
    color: #ff8c00;
    font-size: 0.9rem;
    font-weight: 600;
}

.projet-desc {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 15px 0;
}

/* Tech tags */
.projet-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.projet-tech span {
    background: rgba(255, 140, 0, 0.2);
    border: 1px solid rgba(255, 140, 0, 0.4);
    color: #ff8c00;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Link button */
.projet-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    background: linear-gradient(135deg, #ff8c00, #ff4500);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.projet-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .projets-page h1 {
        font-size: 2rem;
    }

    .projets-grid {
        grid-template-columns: 1fr;
    }

    .projet-logo {
        padding: 20px;
        min-height: 100px;
    }

    .projet-logo img {
        max-width: 80px;
        max-height: 80px;
    }
}