body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f0f2 !important; /* Même fond gris clair intermédiaire partout */
    color: #011826; /* Texte sombre pour un excellent contraste */
    margin: 0;
    padding: 0;
    width: 100%;
}

/* --- BANNER & INTRO TEXT --- */
.banderole-section {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.texte {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding: 0 20px;
}

.texte span {
    display: inline-block;
    padding: 20px;
    border-radius: 12px;
    background-color: #efeceb; /* Fond harmonisé */
    border: none;
    max-width: 900px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.texte h1 {
    color: #800000;
    margin: 0;
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- FILTRES FIN HORIZONTAL --- */
#projet-filters {
    margin: 30px 0 20px 0;
    width: 100%;
}

.filters {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: transparent;
    padding: 10px 20px;
    width: fit-content;
    margin: 0 auto;
}

.filter-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filter-separator {
    width: 1px;
    height: 20px;
    background-color: #011826;
    opacity: 0.15;
    margin: 0 5px;
}

.filter-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #555;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    color: #800000;
    background: rgba(255, 255, 255, 0.5);
}

.filter-btn.active {
    background: #011826; 
    color: #ffffff;
    border-color: #011826;
    font-weight: 600;
}

.projet.hidden {
    display: none !important;
}

/* --- GRILLE DES PROJETS --- */
.col-projet {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    margin: 20px auto 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* --- CARD STRUCTURE (ENTIÈREMENT CLIQUABLE) --- */
.projet-card {
    position: relative; /* Référence absolue indispensable pour étendre le clic */
    background: #ffffff;
    border: 1px solid #e1dedd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.projet-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.projet-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.projet-card:hover .projet-card-image img {
    transform: scale(1.04);
}

.projet-card-infos {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 12px;
}

.projet-card-tag {
    align-self: flex-start;
    background-color: #b4dbdc;
    color: #011826;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.projet-card-titre {
    color: #800000;
    font-size: 1.15rem;
    margin: 0;
    font-weight: bold;
    line-height: 1.2;
}

.projet-card-description {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    text-align: justify;
}

.projet-card-btn {
    margin-top: auto;
    align-self: flex-start;
    color: #800000;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.88rem;
    border-bottom: 2px solid #800000;
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}

/* Pseudo-élément invisible qui étend la zone cliquable à toute la carte */
.projet-card-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Changement de couleur du lien au survol de n'importe quelle zone de la carte */
.projet-card:hover .projet-card-btn {
    color: #011826;
    border-color: #011826;
}

.monter {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

/* --- RESPONSIVE MOBILE --- */
@media screen and (max-width: 900px) {
    .filters {
        flex-direction: column;
        gap: 12px;
        padding: 10px;
    }
    .filter-separator {
        display: none;
    }
    .filter-group {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    .filter-btn {
        font-size: 0.8rem;
        padding: 5px 10px;
        background: rgba(255, 255, 255, 0.4);
    }
}

@media screen and (max-width: 600px) {
    .col-projet {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
}