@font-face {
    font-family: "Perfograma Regular";
    src: url("https://db.onlinewebfonts.com/t/5c3419b4a34a6c4f61ee05cec08d9735.eot");
    src: url("https://db.onlinewebfonts.com/t/5c3419b4a34a6c4f61ee05cec08d9735.eot?#iefix")format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/5c3419b4a34a6c4f61ee05cec08d9735.woff2")format("woff2"),
    url("https://db.onlinewebfonts.com/t/5c3419b4a34a6c4f61ee05cec08d9735.woff")format("woff"),
    url("https://db.onlinewebfonts.com/t/5c3419b4a34a6c4f61ee05cec08d9735.ttf")format("truetype"),
    url("https://db.onlinewebfonts.com/t/5c3419b4a34a6c4f61ee05cec08d9735.svg#Perfograma Regular")format("svg");
}

p {
    margin:0;
    padding:0;
}

a, a:visited {
    text-decoration: none;
    transition: color 0.3s ease;
}

.title-page {
    font-family: 'Raleway', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(40, 143, 226, 1);
    margin-left: 10px;
    max-width: 1200px;
    position: relative;
    padding-top: 15px; /* Espace pour la ligne au-dessus */
    display: block;
    text-align: left;
}

/* La ligne décorative */
.title-page::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;
    width: 150px;      /* Longueur limitée de la ligne */
    height: 2px;      /* Épaisseur de la ligne */
    background-color: rgba(40, 143, 226, 1); /* Même couleur que le titre */
}

h2 {
    padding:0;
    margin:0;
    font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
    font-size: 2rem;
    font-weight:800;
    text-transform: uppercase;
}

.voir-plus {
    text-transform: uppercase;
    font-size:0.6rem;
    font-weight:600;
    color: white;
}

.bandeau {
    position: absolute;       /* au-dessus des images */
    top: 0;                /* distance du haut du wrapper, ajuste si besoin */
    left: 0;
    width: 100%;
    z-index: 20;              /* au-dessus des images */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5%;                  /* espace entre les 3 sections */
    padding: 50px 40px;       /* espace interne */
    box-sizing: border-box;
    background-color: rgba(248, 246, 242, 0.8);
    /*min-height: 80px;*/
    /*max-height: 100px;*/
    color: #092951;

    height: 120px;
    max-height: 120px;

    overflow: hidden;
}

.bandeau a {
    color:rgba(22, 81, 156, 1);
}

.bandeau a:hover {
    color:rgba(40, 143, 226, 1);
}

/* Le bouton ou lien "En savoir plus" */
.plus, .plus a {
    padding: 0;
    margin: 0;
}

.a-la-une {
    overflow-y: visible;  /* permet un scroll si le texte dépasse */
    max-height: 100px; /* hauteur fixe si tu veux vraiment limiter */
    flex:0 0 400px;
    background-color:#E98A28;
    color:white;
    text-align:left;
    padding:15px;
    /*margin-top: 15px;*/
}

.breve-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 2px;
    padding-bottom: 2px;
    color: #FFF;
    line-height: 1.2;
}

.breve-text {
    flex: 1;
}

.breve-more {
    flex-shrink: 0;
}

.breve-more .plus-icon {
    border-color: #FFF !important;
    color: #FFF !important;
}

.breve-more .plus-icon::before,
.breve-more .plus-icon::after {
    background-color: #FFF !important;
}

.titr {
    display:flex;
    flex-direction:row;
    height:100%;
    padding:0px;
    align-items: center;
    color:rgba(9, 41, 81, 1);
    /*margin-left:5%;*/
    flex: 0 0 32%;
    min-width: 0;
    margin-left: 0;
}

.premier-titre, .deuxieme-titre {
    margin:0;
    padding:0;
}

.normal {
    /*background-color:hotpink;*/
    margin:0;
    padding:0;
    font-family: 'Raleway', sans-serif;
    /*font-size: 1.8rem;*/
    font-size: clamp(0.9rem, 1.4vw, 1.8rem);
    text-transform: uppercase;
}

.dot {
    /*background-color: deeppink;*/
    margin:0;
    padding:0;
    font-family: "Perfograma Regular";
    /*font-size: 2.8rem;*/
    font-size: clamp(1.4rem, 2.2vw, 2.8rem);
    text-transform: uppercase;
    /*transform: translateY(-12px);*/
}

.et {
    margin:0 2px;
    font-family: 'Raleway', sans-serif;
    /*font-size: 5.4rem;*/
    font-size: clamp(2.5rem, 3.5vw, 5.4rem);
    font-weight:300;
    line-height:1;
    display: flex;
    align-items: center; /* centre verticalement */
    transform: none; /* supprimer le décalage */
}

.desccran {
    /*flex:1;*/
    display:flex;
    align-items:center;
    font-size: 16px;
    justify-content: flex-start;
    gap: 15px;
    color:#092951;
    margin-bottom:0px;
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;
}

.desccran-text {
    font-size: clamp(0.75rem, 0.9vw, 1rem);
    margin: 0;
    line-height: 1.4;
    text-align: left;
    overflow-wrap: break-word;
}

.bandeau .desccran p,
.bandeau .plus a p {
    /*font-size:1rem;*/
    /*margin-right:20px;*/
    /*margin: 0;*/
    /*margin-left: 100px;*/
    margin: 0;
    font-size: clamp(0.8rem, 1vw, 1rem);
}

/* Icone plus pour tout */

.plus-icon {
    width: 20px;
    height: 20px;
    border: 2px solid white;
    color: white;
    border-radius: 50%;
    position: relative;
    margin-right: auto;
    margin-left: 10px;
    flex-shrink: 0;
    transition: border-color 0.3s ease;
}

.plus-icon::before,
.plus-icon::after {
    content: "";
    position: absolute;
    background-color: white;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 999px; /* <-- rend les bords complètement arrondis */
    transition: background-color 0.3s ease;
}

.plus-icon::before {
    width: 2px;
    height: 12px;
}

.plus-icon::after {
    width: 12px;
    height: 2px;
}

/* icone plus pour le bandeau en haut */

.plus .plus-icon {
    border: 2px solid rgba(11, 41, 81, 1); /* cercle bleu foncé */
    border-radius: 50%;
}

.plus .plus-icon::before,
.plus .plus-icon::after {
    background-color: rgba(11, 41, 81, 1);
}

.plus .plus-icon:hover {
    border: 2px solid rgba(22, 81, 156, 1); /* cercle bleu foncé */
    border-radius: 50%;
}

.plus .plus-icon:hover::before,
.plus .plus-icon:hover::after {
    background-color: rgba(22, 81, 156, 1);
}

/* Icone pour le bandeau "Départements" */

.departement .plus-icon:hover {
    border: 2px solid rgb(196, 207, 221); /* cercle bleu foncé */
    border-radius: 50%;
}

.departement .plus-icon:hover::before,
.departement .plus-icon:hover::after {
    background-color: rgb(196, 207, 221);
}



.plus a {
    display: flex;
    align-items: center; /* centre verticalement logo + p */
    color: inherit; /* pour garder la couleur du texte */
}

.plus a p {
    margin: 0;
    color: rgba(9, 41, 81, 1);
    transition: color 0.3s ease;

}

.plus a p:hover {
    color: rgba(22, 81, 156, 1);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    margin-right:4%;
}

.read-more p {
    margin: 0;
    font-weight: bold;
}

.read-more .plus-icon {
    width: 20px;
    height: 20px;
    border: 2px solid #092951;
    color: #092951;
    border-radius: 50%;
    position: relative;
    margin-right: auto;
    margin-left: 10px;
    flex-shrink: 0;
    transition: border-color 0.3s ease;
}

/* OU si c’est un pseudo-element */
.read-more .plus-icon::before,
.read-more .plus-icon::after {
    background-color: #092951;
}

#top-homepage-anchor {
    text-align: center;
    color: #0B2951;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: 0.3s;
}

#top-homepage-anchor:hover {
    color: #288FE2;
}


.homepage-container {
    position: relative; /* pour que les enfants positionnés se réfèrent à ce conteneur */
    /*width: 100%;*/
    width: min(90%, 1600px);
    /*max-width: 1800px;*/
    margin: 0 auto; /* centre horizontalement */
    padding: 0 0px; /* espace intérieur latéral */
    box-sizing: border-box;
    /* AJOUT CLÉ pour gérer l'alignement des éléments enfants */
    display: flex;
    flex-direction: column; /* Organise les enfants verticalement */
    align-items: flex-end;
}

/* Wrapper global */
.homepage-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Images container : 3 colonnes égales */
.images-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0; /* aucun espace entre les images */
    /*min-height: 800px;*/
    /*max-height: 1000px;*/
    height: 70vh;
    overflow: hidden;
}

.images-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay global */
.departement-overlay {
    width: 100%;
    margin: -140px auto 40px; /* superposition sur les images */
    z-index: 10;
    box-sizing: border-box;
    font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
}

/* Titre général */
.titre-général {
    position: relative;
    z-index: 20;
    padding: 15px 30px 25px 30px;
    text-transform: uppercase;
    background-color: rgba(11, 41, 81, 0.75);
    margin-left: 150px;
    margin-right: 150px;
}

.titre-général p {
    display: block;
    width: 100%;
    font-size: 30px;
    line-height: 2rem;
    text-align: left;
    margin: 0;
    color: white;
}

/* Grille overlay : 3 colonnes exactement alignées sur les images */
.departement {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

/* Containers overlay */
.CID-container,
.BioSiS-container,
.MPSI-container {
    display: flex;
    flex-direction: column;
    text-align: left;
    font-size: 16px;
    color: white;
}

/* Cartes internes (contenu réel) */
.CID, .BioSiS, .MPSI {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-bottom-right-radius: 50px;
    padding: 25px;
}

/* Couleurs des cartes */
.CID { background-color: rgba(11, 41, 81, 1); }
.BioSiS { background-color: rgba(22, 81, 156, 1); }
.MPSI { background-color: rgba(40, 143, 226, 1); }

/* Espacements internes uniquement pour CID et MPSI */
.CID { margin-left: 150px; }       /* espace à gauche */
.BioSiS { margin: 0; }            /* pleine largeur, alignée sur image 2 */
.MPSI { margin-right: 150px; }     /* espace à droite */

/* Titre interne des cartes */
.CID .titre,
.BioSiS .titre,
.MPSI .titre {
    font-size: 30px;
    font-weight: 500;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/*/////////////////////// Section Evenements + Agenda //////////////////////////*/

/* Container global */
.bloc-evenements-agenda {
    /* Changement clé : de column à row */
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    margin: 40px auto 20px;
    /* Ajouté pour aligner les deux colonnes en haut */
    align-items: flex-start;
}

/* Blocs enfants : événements et agenda */
.evenements {
    /* Ajouts pour empiler le titre et les cartes */
    display: flex;
    flex-direction: column;
    /* Garder la largeur */
    flex: 1;
    min-width: 0;
}

.agendas {
    /* Ajouts pour empiler le titre et les cartes */
    display: flex;
    flex-direction: column;
    /* Garder la largeur */
    flex: 0 0 20%;
}

/*///////////// Événements /////////////////*/
.titre-evenements {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(39, 143, 226, 1);
    margin-bottom: 20px;
}

.titre-evenements h2 {
    margin: 0;
}

.titre-evenements .line {
    position: relative;
    display: inline-block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 2.5rem;
}

.titre-evenements .line::before {
    content: "";
    position: absolute;
    top: -12px;      /* 5px au-dessus du texte */
    left: 0;
    width: 100%;     /* s’arrête à la fin du span, donc premier N */
    height: 1px;
    background-color: #278FE2;
}

.titre-evenements .voir-plus a {
    color: rgba(39, 143, 226, 1);
    text-decoration: none;
    font-size: 0.8rem;
}

.titre-evenements .voir-plus a:hover {
    color: orange;
    font-weight: 600;
}

.titre-evenement p {
    font-size: 22px;
    font-weight: 500;
    color: rgba(39, 143, 226, 1);
    margin: 40px 0 10px 0;
    text-align: left;
    font-weight: 700;
}

.container-evenements {
    /*display: flex;*/
    /*flex-wrap: wrap;*/
    /*gap: 0;*/
    /*justify-content: flex-start;*/
    display: grid;
    /* On force 3 colonnes de taille égale */
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; /* Réduit un peu le gap pour les petits écrans */
    width: 100%;
    font-family: 'Raleway', sans-serif;
}

.container-evenement {
    position: relative;
    /*flex: 0 0 400px;*/
    max-width: none;
    /*margin-right: 20px;*/
    box-sizing: border-box;
    background-color: rgba(248, 246, 242, 1);
    border-bottom-right-radius: 50px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
    height: 600px;
}

.container-evenement:hover {
    transform: translateY(-5px);
}

.image-evenement {
    position: relative;
    /* 1. Dimensions fixes (doit correspondre au conteneur parent) */
    /*width: 300px;*/
    /*height: 300px;*/

    height: 50%;        /* occupe 50% de la hauteur de la vignette */
    width: 100%;

    /* 2. Fond transparent (ou blanc, selon ce que vous souhaitez voir derrière l'image) */
    background-color: transparent;

    /* 3. Configuration Flexbox pour le centrage */
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center;     /* Centre verticalement */

    /* 4. S'assurer que les images qui dépassent sont coupées */
    overflow: hidden;
}
.image-evenement img {
    /* Maintient le ratio de l'image et s'assure qu'elle est entièrement visible dans le conteneur */
    object-fit: contain;

    /* Limite la taille pour qu'elle ne dépasse jamais le conteneur */
    max-width: 100%;  /* Max 300px de large */
    max-height: 100%; /* Max 300px de haut */

    /* Pour annuler les styles en ligne qui pourraient étirer l'image */
    /*width: auto !important;*/
    /*height: auto !important;*/
    width: 100%;
    height: 100%;
    object-fit: cover;     /* remplissage complet avec recadrage si nécessaire */
    display: block;
}

.these-overlay {
    position: absolute;
    left: 10px;
    bottom: 25px;
    background: rgba(9, 41, 81, 0.85);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.2;
    max-width: calc(100% - 20px);
}

.these-overlay.dept-cid {
    background: rgba(11, 41, 81, 0.90);
}

.these-overlay.dept-biosis {
    background: rgba(22, 81, 156, 0.90);
}

.these-overlay.dept-mpsi {
    background: rgba(40, 143, 226, 0.90);
}

.these-overlay.dept-default {
    background: rgba(9, 41, 81, 0.85);
}
.these-overlay-dept {
    font-weight: 700;
}

.these-overlay-name {
    font-weight: 400;
}

.date-evenement {
    position: absolute;      /* Retire du flux et permet de superposer sur l'image */
    top: 50%;                /* 50% depuis le haut du parent */
    left: 50%;               /* 50% depuis la gauche */
    transform: translate(-50%, -50%); /* centre horizontalement et verticalement */

    /* Styles visuels */
    background-color: rgba(39, 143, 226, 1); /* fond semi-transparent */
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 10;            /* devant l'image */
    text-align: center;
    white-space: nowrap;     /* empêche le texte de passer à la ligne */
    font-weight: bold;
    font-size: 0.9rem;
}


.date-evenement p {
    margin: 0; /* Important pour supprimer les marges par défaut des paragraphes */
    font-size: 0.85rem;
    font-weight: bold;
    padding: 10px;
}

/* Contenu texte */
.contenu-evenement {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.desc-evenement p {
    font-weight: 400;
    color: rgba(112, 112, 112, 1);
    margin: 0 0 10px 0;
    flex: 1;
    text-align: left;
    font-family: "Roboto Light";
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    overflow: hidden;
    text-overflow: ellipsis;

    line-height: 1.4em;
    max-height: calc(1.4em * 3);
}

.contenu-evenement .voir-plus {
    font-size: 10px;
    color: rgba(39, 143, 226, 1);
    font-weight: 600;
    margin-top: 20px;
}

.contenu-evenement .voir-plus:hover {
    color: orange;
    font-weight: 600;
}

/* Navigation boutons événements */
.actualite-navigation,
.nav-btn {
    position: relative;
    z-index: 1;
}

.evenements-pagination {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 10px 0;
}

/* Liens pagination */
.evenements-pagination .page-num,
.evenements-pagination .nav-btn {
    text-decoration: none;
    font-family: Raleway, Regular;
    padding: 4px 6px;
    border: none;              /* 🔥 PAS D’ENCADREMENT */
    background: none;
    color: #0B2951;
    font-weight: 500;
    cursor: pointer;
}

/* Survol */
.evenements-pagination .page-num:hover,
.evenements-pagination .nav-btn:hover {
    color: #ff7a00; /* orange */
}

/* Flèches < et > plus grandes */
.evenements-pagination .nav-btn {
    font-size: 2.4rem;   /* ajuste si besoin : 1.3 / 1.5 / 1.6 */
    line-height: 2;
    font-weight: 400;
}

/* Actif (numéro sélectionné ou navigation) */
.evenements-pagination .page-num.active {
    color: #ff7a00; /* ORANGE */
    font-weight: 700;
}

/* Désactivé */
.evenements-pagination .nav-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}


#evenements {
    scroll-margin-top: 130px;
    margin-right: 40px;
}

/*/////////////////// Agenda ////////////////////////////// */
.titre-agendas {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: linear-gradient(to right, #0D47A1 , #FFA500 );
    margin-bottom: 20px;
    padding: 30px;
    border-bottom-right-radius: 50px;
    color: white;
    text-transform: uppercase;
}

.titre-agendas:hover {
    background-color: #164886;
}

.titre-agendas h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.titre-agendas .voir-plus a {
    font-size: 0.8rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.container-agendas {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.agenda {
    border-bottom-right-radius: 50px;
    overflow: hidden;
    background-color: #fff;
}

.titre-agenda {
    background-color: rgba(39, 142, 225, 1);
    padding: 14px;
    color: white;
    font-weight: 400;

    display: flex;
    flex-direction: column;      /* ✅ empile verticalement */
    align-items: flex-start;     /* ✅ aligne à gauche */
    gap: 4px;                    /* espace catégorie ↔ date */
}

.titre-agenda h2 {
    font-size: 12px;
    margin: 0;
}

.titre-agenda .date-agenda p {
    font-size: 1.4rem;
    margin: 0;
    color: white;
}

.desc-agenda {
    border: 1px solid rgba(39, 142, 225, 1);
    border-bottom-right-radius: 50px;
    padding: 14px;
    color: rgba(112, 112, 112, 1);
}

.desc-agenda > *:not(:last-child) {
    margin-bottom: 5px;
}

.desc-agenda .titre {
    font-weight: 500;
    font-size: 1rem;
    color: rgba(21, 80, 155, 1);
}

.desc-agenda .voir-plus {
    margin-top: 10px;
    display: inline-block;
    font-weight: 600;
    color: rgba(39, 142, 225, 1);
    text-decoration: none;
}

.desc-agenda .voir-plus:hover {
    color: orange;
    font-weight: 600;
}

.desc-agenda .location,
.desc-agenda .titre {
    text-align: left;
    color: #707070;
}
.agenda-navigation {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

/* Chevrons agenda */
.agenda-navigation .agenda-nav {
    text-decoration: none;
    font-family: Raleway, Regular;
    font-size: 2.4rem;
    font-weight: 700;
    color: #0b2951 ; /* bleu charte */
    border: none;
    background: none;
    cursor: pointer;
    line-height: 2;
    transition: color 0.2s ease;
}

/* Survol = orange */
.agenda-navigation .agenda-nav:hover {
    color: #ff7a00;
}

/* État actif (si tu veux le gérer plus tard) */
.agenda-navigation .agenda-nav.active {
    color: #ff7a00;
}
.agenda-navigation a {
    color: rgba(22, 81, 156, 1);
    text-decoration: none;
    font-weight: 600;
}

/* //////////////////////// Publications ///////////////////////////////// */

.publications-container {
    display: flex;
    flex-wrap: nowrap; /* IMPORTANT : évite les retours à la ligne */
    margin: 20px 0;
    border: 1px solid rgba(39, 142, 225, 1);
    border-bottom-right-radius: 50px;
    overflow-x: auto; /* utile si l'écran est trop petit */
    box-sizing: border-box;
}

.publication .publication-authors {
    color: #092850;
    font-family: Raleway, SemiBold;
    text-align: left;
}

.publication .publication-title {
    color: #278FE2;
    font-family: Raleway, SemiBold;
    text-align: left;
}

.publication .publication-title a,
.publication .publication-title a:visited {
    color: #278FE2;
}

.publication .publication-title a:hover {
    color: orange;
}

.titre-publications {
    display: flex;
    flex-direction: column; /* par défaut en colonne (grand écran) */
    background-color: rgba(39, 142, 225, 1);
    color:white;
}

.titre-publications img {
    flex: 0 0 50%;
    width: 100%;
    height:auto;
    padding:0;
    margin:0;
    object-fit: cover; /* cover = remplissage / contain = entier visible */
    display: block;
}

.titre-publications2 {
    flex: 1;
    padding-bottom:20px;
}

.titre-publications2 h2 {
    font-weight: 800;
    margin: 15px;
    margin-top:15%;
    font-size: 24px;
}

/*.titre-publications2 a.voir-plus {*/
/*    padding:15px;*/
/*    color:white;*/
/*}*/

.titre-publications2 a.voir-plus {
    color: white;
    padding:15px;
    text-decoration: none;
    font-size: 10px;
}

.titre-publications2 a.voir-plus:hover {
    color: orange;
    font-weight: 600;
}

.publication {
    padding:15px;
    padding-top:24px;
    font-family:'Raleway';
}

.publication h2 {
    font-size:0.7rem;
    font-weight:600;
    color:rgba(11, 41, 81, 1);
    padding-bottom:10px;
}

.publication .lien-publication {
    font-weight:300;
    color:rgba(39, 143, 226, 1);
}

.publication .biblio-publication {
    font-weight:300;
    color:rgba(112, 112, 112, 1);
}

.publication .biblio-publication p {
    line-height: 15px;
}

.publication .voir-plus {
    padding-top: 20px;
}

.publication .voir-plus a {
    color: rgba(39, 143, 226, 1);
    text-decoration: none;
    font-size: 10px;
}

.publication .voir-plus a:hover {
    color: orange;
    font-weight: 600;
}

.publication .voir-plus a, .publication .voir-plus a:visited {
    color:rgba(39, 143, 226, 1);
}

/* Chaque bloc prend exactement 1/6 de la largeur */
.titre-publications,
.publication {
    flex: 0 0 calc(100% / 6); /* Utilisez calc() pour un calcul précis de 16.666% */
    box-sizing: border-box;
    min-width: 200px;
}
.publication-meta {
    font-size: 0.9rem;
    color: #707070;
    font-family: Raleway, Light;
    margin: 0 0 6px;
    text-align: left;
}

/* Responsive */
@media (max-width: 1024px) {
    .bloc-evenements-agenda {
        flex-direction: column;
        width: 90%;
        margin: 20px 5%;
    }
    .evenements {
        flex: 1 1 100%;
    }
    .agendas {
        flex: 1 1 100%;
    }
    .container-evenement {
        flex: 1 1 100%;
    }
}

@media screen and (min-width: 768px) {
    .publication {
        border-left: 1px solid rgba(39, 142, 225, 1);
    }
}

@media screen and (max-width: 768px) {

    .homepage-wrapper {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        overflow: visible !important;
    }

    .bandeau {
        order: 1 !important;
        position: static !important;

        display: flex !important;
        flex-direction: column !important;

        width: 100% !important;
        height: auto !important;

        padding: 123px 20px 25px 20px !important;
        gap: 12px !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .desccran {
        order: 1 !important;
        position: static !important;

        width: calc(100% + 40px) !important;
        margin-left: -20px !important;
        margin-right: -20px !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;

        background-color: #092851;
        color: white;

        padding: 8px 15px !important;
        box-sizing: border-box !important;

        transform: none !important;
        overflow: visible !important;
    }

    .desccran-text {
        font-size: 11px !important;
        line-height: 1.25 !important;
        margin: 0 !important;
        padding: 5px !important;
        max-width: 95% !important;
    }

    .desccran-text br {
        display: none;
    }

    .desccran .read-more {
        display: none;
    }
    .titr {
        order: 2 !important;
        position: static !important;
        width: 100% !important;

        display: flex !important;
        flex-direction: row !important;

        justify-content: center !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;

        margin: 0 !important;
        transform: none !important;
    }

    .a-la-une {
        order: 3 !important;
        position: static !important;
        width: 100% !important;
        margin: 0 !important;
        transform: none !important;
        text-align: center !important;
        padding: 5px !important;
    }

    .a-la-une,
    .a-la-une * {
        font-size: 11px !important;
        line-height: 1.25 !important;
    }

    .a-la-une b {
        font-size: 11px !important;
    }

    .a-la-une .table_cell_ou_block {
        width: auto !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
    }

    .a-la-une a {
        font-size: 11px !important;
    }

    .a-la-une .table_ou_block,
    .a-la-une .table_row_ou_block {
        display: block !important;
        width: 100% !important;
    }

    .premier-titre,
    .deuxieme-titre {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0 !important;
    }

    .normal {
        font-size: 4vw !important;
        line-height: 1 !important;
    }

    .dot {
        font-size: 6vw !important;
        line-height: 1 !important;
    }

    .et {
        font-size: 8vw !important;
        line-height: 1 !important;
        margin: 0 5px !important;
    }

    .images-slider {
        order: 2 !important;
        width: 100% !important;
        height: 280px !important;
        overflow: hidden !important;
        position: relative !important;
        margin: 0 !important;
    }

    .images-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        height: 280px !important;
        overflow: visible !important;
    }

    .images-container > div {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        height: 280px !important;
    }

    .images-container img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    .departement-overlay {
        order: 3 !important;
        margin: -15px auto 40px !important;
        position: relative !important;
        z-index: 20 !important;
    }

    .departement {
        display:flex;
        flex-wrap:wrap;
        gap: 10px;
    }

    .departement > div {
        flex: 0 0 100%;
    }

    .homepage-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        box-sizing: border-box; /* Très important pour que le padding ne dépasse pas */
        padding-left: 20px;
        padding-right: 20px;
        margin: 0;
    }

    .titre-général {
        display: inline-block !important;
        width: auto !important;

        margin: 0 0 5px 20px !important;
        padding: 10px 16px !important;

        background-color: rgba(11, 41, 81, 0.75);
        box-sizing: border-box !important;
        position: relative !important;
        z-index: 20 !important;
    }

    .titre-général p {
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;

        font-size: 15px !important;
        line-height: 1.2 !important;
        text-align: left !important;
        white-space: nowrap;
    }

    .CID-container, .BioSiS-container, .MPSI-container {
        font-size: 14px;
    }

    /* Espacements internes uniquement pour CID et MPSI */
    .CID {
        margin-left: 0;
        padding: 10px 25px;
        margin: 0 15px 0 15px;
    }
    .BioSiS {
        margin: 0;
        padding: 10px 25px;
        margin: 0 15px 0 15px
    }
    .MPSI {
        margin-right: 0;
        padding: 10px 25px;
        margin: 0 15px 0 15px
    }

    .CID .titre, .BioSiS .titre, .MPSI .titre {
        font-size: 20px;
        font-weight: 500;
        color: white;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .publications-container {
        flex-wrap: wrap;
    }

    .title-page {
        font-size: 16px;
    }

    .bloc-evenements-agenda {
        display: flex;
        flex-direction: column;
        width: 100%;       /* Prend toute la largeur disponible */
        margin: 20px 0;    /* On retire le 5% qui fait déborder */
        padding: 0;        /* On laisse le parent gérer les marges extérieures */
    }

    .container-evenements {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        margin-left: 0; /* Change 10px en 0 */
    }
    .container-evenement {
        display: block;         /* Pour que le lien <a> se comporte comme un bloc */
        text-decoration: none;  /* Optionnel : enlève le soulignement du lien */
        color: inherit;         /* Garde la couleur du texte normale */
    }

    .title-page::before {
        display: none;
    }

    .titre-evenements {
        display: flex !important;
        flex-direction: column-reverse !important; /* Inverse l'ordre vertical */
        align-items: flex-start; /* Aligne le texte à gauche (ou 'center' selon ton goût) */
        gap: 8px; /* Ajoute un petit espace entre le lien et le titre */
    }

    .titre-evenement p {
        font-size: 14px !important;
    }

    .desc-evenement p {
        font-size: 12px;
    }
    /* Optionnel : Ajuster le style du "Voir plus" quand il est en haut */
    .titre-evenements .voir-plus {
        display: flex !important;
        align-items: center !important;
        gap: 40px !important;

        position: relative;
        width: auto !important;

        padding: 0 !important;
        margin: 0 !important;

        font-size: 10px !important;
    }

    /* 3. On recrée la barre au-dessus de "Voir plus" */
    .titre-evenements .voir-plus::before {
        content: "";
        display: block;

        width: 70px;
        height: 2px;

        background-color: rgba(40, 143, 226, 1);
    }

    .titre-evenements .title-page {
        margin-top: 0; /* Évite les gros espaces inutiles */
    }

    .titre-evenements .voir-plus a {
        font-size: 10px !important;
        line-height: 1 !important;
        text-decoration: none;
    }

    .image-evenement {
        position: relative;
        width: 100%;       /* Prend toute la largeur du téléphone */
        height: 220px;     /* TAILLE FIXE : Ajuste cette valeur selon tes goûts */

        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        background-color: #eee; /* Fond gris si l'image charge mal */
    }

    .image-evenement img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Remplit tout le cadre de 220px sans déformer */
        display: block;
    }

    .date-evenement {
        position: absolute;
        top: 47%;
        left: 50%;
        transform: translate(-50%, -50%); /* Centrage parfait sur le top: 50% */

        /* Tes styles actuels */
        background-color: rgba(39, 143, 226, 1);
        color: white;
        padding: 5px 10px;
        border-radius: 4px;
        z-index: 10;
        white-space: nowrap;
    }

    .agendas {
        margin-left: 0; /* Change 10px en 0 */
        width: 100%;
    }

    .titre-agendas h2 {
        font-size: 20px;
    }

    .voir-plus {
        font-size: 10px;
    }

    .desc-agenda p {
        font-size: 11px;
    }
    .publications-container {
        /*margin-left: 40px;*/
        margin: 0;
    }
    .titre-publications,
    .publication {
        flex: 0 0 100%;
        width: 100%;
    }

    .titre-publications {
        flex-direction: row;
        align-items: center;
    }

    .titre-publication .publication-authors,
    .titre-publication .publication-title,
    .titre-publication .publication-title a {
        font-size: 14px !important;
    }

    .publication-meta {
        font-size: 11px;
    }

    .titre-publications img {
        width: 50%;
        height: auto;
        max-height: 120px;
        object-fit: contain;
    }

    .titre-publications2 {
        width: 50%;
    }

    .titre-publications2 h2 {
        font-size: clamp(16px, 3vw, 22px);
    }

    .publication {
        border-top: 1px solid rgba(39, 142, 225, 1);
    }
}


#agenda {
    scroll-margin-top: 130px; /* ajuste selon la hauteur de ton header/fixed menu */
}