body {
    margin: 0;
    overflow-x: hidden; /* Empêche tout défilement horizontal global */
    font-family: 'Montserrat', sans-serif;
    background-color: #F1F1F7;
}



/* Conteneur principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Titre de la page */
.page-title {
    font-size: 2em;
    text-transform: uppercase;
    margin-bottom: 40px;
    font-family: 'Aristotelica Display Trial', sans-serif;
}

/* Grille des portraits */
.portrait-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    justify-content: center;
}

.portrait-item {
    background-color: #fdfdfd;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    height: 410;
}

.portrait-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Photo du portrait */
.portrait-photo img {
    width: 90%;
    height: 260px;
    object-fit: cover;
    display: flex;
    justify-content: center;
    margin: auto;
    margin-top: 20px;
}

/* Informations sur le portrait */
.portrait-info {
    padding: 10px;
    text-align: center;
}

.portrait-name {
    font-size: 23px;
    font-weight: 700;
    margin: 10px 0;
    color: #333;
}

.portrait-metier {
    font-weight: lighter;
    font-size: 16px;
}

/* Détails supplémentaires */
.portrait-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 20px;
    font-size: 0.9em;
}

.portrait-age, .portrait-promo {
    font-size: 12px;
    font-weight: lighter;
}

.portrait-link {
    text-decoration: none;
    color: inherit;
}

.bannierePortraits {
    position: relative;
    width: 100%;
    height: 400px; /* Ajuste la hauteur selon ton besoin */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bannierePortraits img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.texteAlumnis {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: 2.5rem;
    font-family: 'Aristotelica Display Trial', sans-serif;
    text-align: center;
}


/* Style général du formulaire */
.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    margin-bottom: 70px;
    align-items: center;
}

/* Style pour chaque groupe de champs */
.filter-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Style pour le label */
.filter-group label {
    color: #8B8B8B;
    margin-bottom: 5px;
    font-size: 16px;
}

/* Style pour les champs de sélection */
.filter-group select, input {
    width: 200px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f7f7f7;
    cursor: pointer;
    transition: border-color 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.filter-group select:focus {
    border-color: #002C40;
    outline: none;
}

/* Aligner les trois boutons sur une seule ligne */
.filter-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Style des boutons de recherche */
.filter-buttons button {
    padding: 10px 20px;
    background-color: #002C40;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.filter-buttons button:hover {
    background-color: #002C40;
}


.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 10px 0;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #555;
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s;
}

.pagination a:hover {
    background-color: #f4f4f4;
    color: #333;
}

.pagination .current {
    background-color: #002C40;
    color: #fff;
    border-color: #002C40;
    pointer-events: none;
    font-weight: bold;
}

.pagination .prev, .pagination .next {
    font-weight: bold;
}

.pagination .prev:hover, .pagination .next:hover {
    background-color: #002C40;
    color: #fff;
}


.btnSubmit {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #002C40;
    color: #ffffff;
    cursor: pointer;
    transition: border-color 0.3s;
    font-family: 'Montserrat', sans-serif;
    margin-top: 20px;
}


/* Tablette (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    /* Grille des portraits */
    .portrait-archive-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
        justify-content: center;
    }

    .portrait-item {
        width: 100%; 
        max-width: 400px; 
        margin: 0 auto; 
        height: auto;
        max-height: 450px;
        min-height: 400px;
    }

    .portrait-details {
        margin-bottom: 1rem;

}

    .filter-form {
        gap: 40px;
        justify-content: center;
    }

    .page-title {
        text-align: center;
    }

}

@media screen and (max-width: 720px) {
 
    .portrait-archive-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .filter-group select, input {
        width: 80%;
    }

    .filter-form {
   
        gap: 40px;
        justify-content: center;
        display: flex;
        flex-direction: column;
        align-items: normal;
        margin-bottom: 40px;
    
    }

    .filter-buttons button {
        margin: auto;
    }

    .filter-group {
        align-items: center;
    }
}

@media screen and (max-width: 600px) {

    .texteAlumnis {
        font-size: 1.8rem;
    }
    
}