/* =====================================
   1. HERO
   ===================================== */


.wp-block-group.hero-ips2 {
    position: relative;

    width: 100vw !important;
    max-width: none !important;

    left: 0 !important;
    transform: none !important;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    background-image:
        linear-gradient(
            rgba(47, 71, 85, 0.55),
            rgba(47, 71, 85, 0.55)
        ),
        url("https://www.ips2.universite-paris-saclay.fr/wp-content/uploads/2026/08/ips2-hero-header-valide-freep.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;

    box-sizing: border-box;
}

/* Conteneur des textes du Hero */
.hero-ips2-contenu {
    position: relative;
    z-index: 1;

    width: 90%;
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}



/* IPS2 */
.hero-ips2-contenu h1 {
    margin: 0;

    color: #FFFFFF;

    font-size: clamp(48px, 7vw, 100px);
    font-weight: 600;
    line-height: 1;
}

/* Institut des Sciences des Plantes */
.hero-ips2-contenu h2 {
    margin: 16px 0 0;

    color: #ffffff;

    font-size: clamp(24px, 2.5vw, 38px);
    font-weight: 600;
    line-height: 1.1;

    white-space: nowrap;
}

/* Institut des Sciences des Plantes */

/* Paris-Saclay */

.hero-ips2-contenu p {
    margin: 8px 0 0;

    color: #ffffff;

    font-size: clamp(24px, 3vw, 40px);
    font-weight: 600;
    line-height: 1.1;
}
/* Bouton du Hero */
.bouton-hero-ips2 .wp-block-button__link {
    margin-top: 32px;

    padding: 14px 32px;

    background-color: #80b827;
    color: #ffffff;

    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;

    border: none;
    border-radius: 6px;

    text-decoration: none;

    transition: background-color 0.2s ease,
                transform 0.2s ease;
}

.bouton-hero-ips2 .wp-block-button__link:hover {
    background-color: #6fa020;
    color: #ffffff;
    transform: translateY(-2px);
}

/* =====================================
   APPROCHE MULTIDISCIPLINAIRE
   ===================================== */

.approche-grille {
    width: calc(100% - 120px) !important;
    max-width: 1150px !important;

    margin: 70px auto !important;

    display: grid !important;
    grid-template-columns: 1fr 1fr !important;

    gap: 30px !important;

    align-items: stretch !important;

    box-sizing: border-box !important;
}


/* Bloc texte */
.approche-texte {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 35px !important;

    box-sizing: border-box !important;
}


/* Bloc image */
.approche-image {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* Image */
.approche-image figure {
    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
}

.approche-image img {
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;

    display: block;
}


/* Tablette */
@media (max-width: 900px) {

    .approche-grille {
        width: calc(100% - 60px) !important;

        grid-template-columns: 1fr !important;
    }
}


/* Mobile */
@media (max-width: 600px) {

    /* Empêche tout débordement horizontal */
    html,
    body {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .wp-site-blocks,
    main,
    .entry-content {
        width: 100% !important;
        max-width: 100% !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        padding-left: 0 !important;
        padding-right: 0 !important;

        box-sizing: border-box !important;
    }

    
}
/* =====================================
  2 FINITIONS - APPROCHE MULTIDISCIPLINAIRE
   ===================================== */

/* Panneau texte */
.approche-texte {
    background-color: #eef5f7;
    padding: 50px !important;
    box-sizing: border-box;
}

/* Titre */
.approche-texte h2 {
    color: #253f50;

    font-size: clamp(30px, 3vw, 46px);
    line-height: 1.1;
    font-weight: 600;

    margin-top: 0 !important;
    margin-bottom: 28px !important;
}

/* Paragraphe */
.approche-texte p {
    color: #253f50;

    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;

    margin-top: 0;
}

/* Bouton */
.approche-texte .wp-block-button__link {
    background-color: #80b827;
    color: #ffffff;

    padding: 14px 28px;

    font-size: 17px;
    font-weight: 600;

    border-radius: 6px;
    text-decoration: none;

    transition: background-color 0.2s ease,
                transform 0.2s ease;
}

.approche-texte .wp-block-button__link:hover {
    background-color: #6fa020;
    color: #ffffff;

    transform: translateY(-2px);
}

/* =====================================
   LIEN 11 ÉQUIPES - PAGE D'ACCUEIL
   ===================================== */

body.home .axes-recherche a {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

body.home .axes-recherche a:hover {
    color: #80b827 !important;
    text-decoration: none !important;
}
/*=====================================
   3 SECTION  AXES DE RECHERCHE
   ===================================== */



.wp-block-group.axes-recherche {
    position: relative;
    width: 100vw !important;
    max-width: none !important;

    left: 50%;
    transform: translateX(-50%);

    padding: 80px 3%;
    box-sizing: border-box;
}


/* =====================================
   AXES
   ===================================== */

.bloc-axe {
    width: 100% !important;
    max-width: 1500px !important;

    margin: 60px auto 0 !important;

    display: grid !important;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr) !important;

    gap: 30px;

    /* Les deux colonnes prennent la hauteur
       du contenu le plus haut */
    align-items: stretch !important;
}


/* =====================================
   TEXTE
   ===================================== */

.bloc-axe-texte {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 50px !important;

    box-sizing: border-box;

    background-color: #ffffff;

    display: flex !important;
    flex-direction: column;
    justify-content: center;

    align-self: stretch !important;
}

.bloc-axe-texte > * {
    width: 100% !important;
    max-width: none !important;
}


/* =====================================
   IMAGE
   ===================================== */

.bloc-axe-image {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-self: stretch !important;

    overflow: hidden;
}


/* Figure Gutenberg */

.bloc-axe-image figure,
.bloc-axe-image .wp-block-image {
    width: 100% !important;
    max-width: none !important;

    height: 100% !important;

    margin: 0 !important;

    display: flex !important;
}


/* Image elle-même */

.bloc-axe-image img {
    width: 100% !important;
    height: 100% !important;

    min-height: 450px;

    object-fit: cover !important;

    display: block !important;
}


/* =====================================
   MOBILE
   ===================================== */

@media (max-width: 850px) {

    .bloc-axe {
        grid-template-columns: 1fr !important;
        gap: 0;
    }

    .bloc-axe-texte {
        padding: 30px !important;
    }

    .bloc-axe-image img {
        min-height: 350px;
    }
}


/* =====================================
  4 BANNIÈRE CHIFFRES
   ===================================== */

.banniere-chiffres {
    position: relative;

    width: 100vw !important;
    max-width: none !important;

    left: 50%;
    transform: translateX(-50%);

    padding: 70px 5%;

    background-image:
        linear-gradient(
            rgba(37, 65, 80, 0.70),
            rgba(37, 65, 80, 0.70)
        ),
        url("http://vitrine-dev.ips2.universite-paris-saclay.fr/wp-content/uploads/2026/08/equipe-recherche-ips2-home.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    box-sizing: border-box;
}
/* Grille des compteurs */

.compteurs-grille {
    width: 100% !important;
    max-width: 1500px !important;
    margin: 0 auto !important;

    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;

    gap: 0;
}

/* Neutralise les marges Gutenberg entre les groupes */
.compteurs-grille > .compteur-item {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
    height: 100% !important;
}

/* Un compteur */

.compteur-item {
    width: 100% !important;

    min-height: 150px;

    text-align: center;

    padding: 20px 25px;

    box-sizing: border-box;

    border-right: 1px solid rgba(255,255,255,0.25);

    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/* Pas de ligne après le dernier */

.compteur-item:last-child {
    border-right: none;
}


/* Chiffre */

.compteur-chiffre {
    margin: 0 !important;

    color: #ffffff !important;

    font-size: clamp(38px, 4vw, 60px);
    font-weight: 600;

    line-height: 1;
}


/* Libellé */

.compteur-libelle {
    margin: 14px 0 0  !important;

    color: #dcdcde !important;

    font-size: 18px;
    font-weight: 400;

    line-height: 1.3;

    text-align: center;
}
 
/* Ajoute M€ après le compteur concerné */
.compteur-millions::after {
    content: " M€";

    font-size: 0.45em;
    font-weight: 600;

    margin-left: 6px;

    vertical-align: baseline;
}

.compteur-millions {
    white-space: nowrap;
}


/* Tablette */

@media (max-width: 1000px) {
    .compteurs-grille {
        grid-template-columns: repeat(2, 1fr) !important;
        row-gap: 30px;
    }

    .compteur-item {
        border-right: none;
    }
}


/* Mobile */

@media (max-width: 600px) {
    .compteurs-grille {
        grid-template-columns: 1fr !important;
    }
}

/*
=====================================
   PLATEFORMES ET ENSEIGNEMENT
   ===================================== */

.wp-block-group.plateformes-enseignement {
    position: relative !important;

    width: 100vw !important;
    max-width: none !important;

    left: 50% !important;
    transform: translateX(-50%) !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    box-sizing: border-box !important;
}


/* Titre de section */

.plateformes-enseignement-intro {
    width: 100% !important;
    max-width: 1500px !important;

    margin: 0 auto 50px !important;
}


/* Les deux grands panneaux */

.plateformes-enseignement-grille {
    width: 100% !important;
    max-width: 1500px !important;

    margin: 0 auto !important;

    display: grid !important;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr) !important;

    gap: 30px;

    align-items: stretch !important;
}


/* Panneaux gris */

.bloc-plateformes,
.bloc-enseignement {
    width: 100% !important;
    max-width: none !important;

    height: 100% !important;

    margin: 0 !important;
    padding: 40px !important;

    box-sizing: border-box;

    background-color: #f5f7fa;

    display: flex !important;
    flex-direction: column;

    align-self: stretch !important;
}


/* Les contenus des panneaux utilisent toute la largeur */

.bloc-plateformes > *,
.bloc-enseignement > * {
    width: 100% !important;
    max-width: none !important;

    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* =====================================
   CARTES PLATEFORMES
   ===================================== */

.carte-plateforme {
    width: 100% !important;
    max-width: none !important;

    background-color: #ffffff !important;

    padding: 20px !important;
    margin: 20px 0 0 !important;

    box-sizing: border-box;
}

/* Titres */

.bloc-plateformes h3,
.bloc-enseignement h3 {
    text-align: left !important;
    margin-top: 0 !important;
}


/* =====================================
   CONTENU D'UNE CARTE PLATEFORME
   ===================================== */

/* Groupe contenant :
   encoche + titre + logo
*/
.texte-avec-encoche {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    display: grid !important;

    /* encoche | texte | logo */
    grid-template-columns:
        16px
        minmax(0, 1fr)
        130px !important;

    column-gap: 14px;

    align-items: center !important;
}


/* =====================================
   ENCOCHE VERTE
   ===================================== */

.encoche-plateforme {
    grid-column: 1 !important;
    grid-row: 1 !important;

    width: 14px !important;
    max-width: 14px !important;

    margin: 0 !important;

    justify-self: center !important;
    align-self: center !important;
}

.encoche-plateforme img {
    display: block !important;

    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;

    object-fit: contain !important;
}


/* =====================================
   TITRE / TEXTE
   ===================================== */

.texte-avec-encoche h4 {
    grid-column: 2 !important;
    grid-row: 1 !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;

    text-align: left !important;
}


/* =====================================
   LOGO PLATEFORME
   ===================================== */

.logo-plateforme {
    grid-column: 3 !important;
    grid-row: 1 !important;

    width: 130px !important;
    max-width: 130px !important;

    margin: 0 !important;

    float: none !important;

    justify-self: end !important;
    align-self: center !important;
}

.logo-plateforme img {
    display: block !important;

    width: 100% !important;
    height: auto !important;
    max-width: 130px !important;
    max-height: 90px;

    object-fit: contain !important;
}


/* =====================================
   TABLETTE
   ===================================== */

@media (max-width: 850px) {

    .plateformes-enseignement-grille {
        grid-template-columns: 1fr !important;
    }

    .bloc-plateformes,
    .bloc-enseignement {
        padding: 30px !important;
    }
}


/* =====================================
   MOBILE
   ===================================== */

@media (max-width: 600px) {

    .texte-avec-encoche {
        grid-template-columns:
            16px
            minmax(0, 1fr) !important;

        column-gap: 10px;
        row-gap: 15px;
    }

    /* encoche */
    .encoche-plateforme {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    /* texte */
    .texte-avec-encoche h4 {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    /* logo sous le texte sur téléphone */
    .logo-plateforme {
        grid-column: 2 !important;
        grid-row: 2 !important;

        width: 100px !important;
        max-width: 100px !important;

        justify-self: start !important;
    }
}

/* =====================================
   5. CARTE ENSEIGNEMENT
   ===================================== */

.carte-enseignement {
    width: 100% !important;
    max-width: none !important;

    margin: 20px 0 0 !important;
    padding: 20px !important;

    box-sizing: border-box;
    background-color: #ffffff;
}


/* Encoche | texte | logo */

.ligne-enseignement {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    display: grid !important;

    grid-template-columns:
        16px
        minmax(0, 1fr)
        130px !important;

    column-gap: 14px;
    align-items: center !important;
}


/* Encoche */

.encoche-enseignement {
    grid-column: 1 !important;
    grid-row: 1 !important;

    width: 14px !important;
    max-width: 14px !important;

    margin: 0 !important;
}

.encoche-enseignement img {
    display: block !important;

    width: 14px !important;
    height: 14px !important;

    object-fit: contain !important;
}


/* Texte */

.ligne-enseignement p {
    grid-column: 2 !important;
    grid-row: 1 !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;

    text-align: left !important;
}


/* Logo */

.logo-enseignement {
    grid-column: 3 !important;
    grid-row: 1 !important;

    width: 130px !important;
    max-width: 130px !important;

    margin: 0 !important;

    float: none !important;

    justify-self: end !important;
    align-self: center !important;
}

.logo-enseignement img {
    display: block !important;

    width: 100% !important;
    height: auto !important;

    max-height: 90px;

    object-fit: contain !important;
}


/* Mobile */

@media (max-width: 600px) {

    .ligne-enseignement {
        grid-template-columns:
            16px
            minmax(0, 1fr) !important;

        column-gap: 10px;
        row-gap: 15px;
    }

    .encoche-enseignement {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    .ligne-enseignement p {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    .logo-enseignement {
        grid-column: 2 !important;
        grid-row: 2 !important;

        width: 100px !important;
        max-width: 100px !important;

        justify-self: start !important;
    }
}

/* =====================================
   OFFRES DE STAGES
   ===================================== */

.offres-stages {
    position: relative;

    width: 100vw !important;
    max-width: none !important;

    left: 50%;
    transform: translateX(-50%);

    min-height: 380px;

    padding: 60px 5%;
    box-sizing: border-box;

    display: flex !important;
    align-items: center;
    justify-content: flex-start;

    background-image:
        linear-gradient(
            rgba(37, 65, 80, 0.65),
            rgba(37, 65, 80, 0.65)
        ),
        url("http://vitrine-dev.ips2.universite-paris-saclay.fr/wp-content/uploads/2026/08/offre-de-stage-deposit.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Contenu de la bannière */

.offres-stages-contenu {
    position: relative;
    z-index: 1;

     width: 100% !important;
    max-width: 1500px !important;

    margin: 0 auto !important;

    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;

    text-align: left !important;
}

.offres-stages-contenu h2 {
    width: 100% !important;
    max-width: 850px !important;

    margin: 0 0 20px !important;

    color: #ffffff !important;

    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.1;

    text-align: left !important;
}

.offres-stages-contenu p {
    width: 100% !important;
    max-width: 750px !important;

    margin: 0 0 30px !important;

    color: #ffffff !important;

    font-size: 18px;
    line-height: 1.6;

    text-align: left !important;
}

.offres-stages-contenu .wp-block-buttons {
    width: 100% !important;
    max-width: 750px !important;

    margin: 0 !important;

    justify-content: flex-start !important;
}

.offres-stages-contenu .wp-block-button__link {
    background-color: #80b827 !important;
    color: #ffffff !important;

    padding: 14px 30px;

    font-size: 17px;
    font-weight: 600;

    border-radius: 6px;
    text-decoration: none;
}

.offres-stages-contenu .wp-block-button__link:hover {
    background-color: #6fa020 !important;
}

/* =====================================
   ACTUALITÉS - PAGE D'ACCUEIL
   ===================================== */

/* Section complète */
.actualites-accueil {
    position: relative;

    width: 100vw !important;
    max-width: none !important;

    left: 50%;
    transform: translateX(-50%);

    padding: 80px 5%;
    box-sizing: border-box;

    margin-top: 0 !important;

   background-color: #f5f7fa !important;
}


/* Titre + boucle */
.actualites-accueil > h2,
.actualites-accueil .wp-block-query {
    width: 100% !important;
    max-width: 1500px !important;

    margin-left: auto !important;
    margin-right: auto !important;
}

.actualites-accueil > h2 {
    margin-bottom: 40px !important;
}




/* =====================================
   GRILLE DES 3 ACTUALITÉS
   ===================================== */

.actualites-accueil .wp-block-post-template {
    width: 100% !important;
    max-width: none !important;

    display: grid !important;
    grid-template-columns:
        repeat(3, minmax(0, 1fr)) !important;

    gap: 30px !important;

    margin: 0 auto !important;
    padding: 0 !important;

    /* Même hauteur pour les 3 cartes */
    align-items: stretch !important;
}


/* =====================================
   UNE CARTE ACTUALITÉ
   ===================================== */

.actualites-accueil .wp-block-post {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;

    display: flex !important;
    flex-direction: column !important;

    height: 100% !important;

    background-color: #ffffff !important;
    padding: 0 0 25px !important;
    box-sizing: border-box;
}

/* Harmoniser la hauteur des boutons Actualités */

.actualites-accueil .wp-block-read-more,
.actualites-accueil .bouton-toutes-actualites .wp-block-button__link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 36px !important;
    min-height: 36px !important;

    padding: 0 18px !important;

    font-size: 14px !important;
    line-height: 1 !important;

    box-sizing: border-box !important;
}


/* Image */
.actualites-accueil .wp-block-post-featured-image {
    width: 100% !important;
    margin: 0 0 22px !important;
}

.actualites-accueil .wp-block-post-featured-image img {
    display: block;

    width: 100% !important;

    aspect-ratio: 3 / 2;
    object-fit: cover;
}


/* =====================================
   TITRE
   ===================================== */

.actualites-accueil .wp-block-post-title {
    margin: 0 0 12px !important;

    font-size: 18px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;

    text-align: left !important;
}

.actualites-accueil .wp-block-post-title a {
    font-size: inherit !important;
    line-height: inherit !important;

    color: inherit;
}


/* Date */
.actualites-accueil .wp-block-post-date {
    margin: 0 0 12px !important;

    font-size: 14px !important;

    text-align: left !important;
}


/* =====================================
   EXTRAIT
   ===================================== */

.actualites-accueil .wp-block-post-excerpt {
    width: 100% !important;

    margin: 0 0 25px !important;

    font-size: 16px;
    line-height: 1.6;

    text-align: left !important;

    /* Prend l'espace disponible et
       repousse le bouton vers le bas */
    flex-grow: 1 !important;
}

.actualites-accueil .wp-block-post-excerpt p {
    margin-top: 0 !important;
}




/* =====================================
   BOUTON "EN SAVOIR PLUS"
   ===================================== */

.actualites-accueil .wp-block-read-more {
    display: inline-block !important;
    width: auto !important;
    max-width: max-content !important;

    align-self: flex-start !important;
    margin-top: auto !important;

    padding: 10px 18px !important;

    background: #80b827 !important;
    background-color: #80b827 !important;
    color: #ffffff !important;

    border: none !important;
    border-radius: 5px !important;

    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;

    text-decoration: none !important;
}

/* Si Gutenberg ajoute un lien à l'intérieur */
.actualites-accueil .wp-block-read-more a {
    display: inline !important;

    padding: 0 !important;
    margin: 0 !important;

    background: transparent !important;
    color: #ffffff !important;

    border: none !important;

    font-size: inherit !important;
    font-weight: inherit !important;

    text-decoration: none !important;
}

.actualites-accueil .wp-block-read-more:hover,
.actualites-accueil .wp-block-read-more:hover a {
    background-color: #6fa020 !important;
    color: #ffffff !important;
}

.actualites-accueil > h2 {
    text-align: center !important;
}

.bouton-toutes-actualites {
    width: 100% !important;
    max-width: 1500px !important;

    margin: 40px auto 0 !important;

    display: flex !important;
    justify-content: center !important;
}

.bouton-toutes-actualites {
    width: 100% !important;
    max-width: 1500px !important;

    margin: 40px auto 0 !important;

    display: flex !important;
    justify-content: center !important;
}

/* Le bloc contenant le bouton ne doit pas s'étirer */
.bouton-toutes-actualites .wp-block-button {
    width: auto !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
}

/* Le bouton lui-même s'adapte au texte */
.bouton-toutes-actualites .wp-block-button__link {
    display: inline-block !important;

    width: auto !important;
    max-width: max-content !important;

    padding: 10px 18px !important;

    background-color: #80b827 !important;
    color: #ffffff !important;

    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;

    border-radius: 5px !important;

    text-decoration: none !important;
}

.bouton-toutes-actualites .wp-block-button__link:hover {
    background-color: #6fa020 !important;
    color: #ffffff !important;
}


/* =====================================
   TABLETTE
   ===================================== */

@media (max-width: 900px) {

    .actualites-accueil .wp-block-post-template {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }
}


/* =====================================
   MOBILE
   ===================================== */

@media (max-width: 600px) {

    .actualites-accueil {
        padding: 50px 20px;
    }

    .actualites-accueil .wp-block-post-template {
        grid-template-columns: 1fr !important;
    }
}

/* =====================================
   NOS TUTELLES
   ===================================== */

.tutelles {
    width: 100vw !important;
    max-width: none !important;

    position: relative;
    left: 50%;
    transform: translateX(-50%);

    padding: 70px 0 0;
    box-sizing: border-box;

    background-color: #ffffff !important;
}


/* Titre */
.tutelles > h2 {
    width: 100% !important;
    max-width: 1500px !important;

    margin: 0 auto 45px !important;
    padding: 0 5%;

    box-sizing: border-box;

    text-align: center !important;
}


/* =====================================
   FENÊTRE DU CARROUSEL
   ===================================== */

/* Fenêtre gris bleuté */
.tutelles-defilement {
    position: relative !important;

    width: calc(100% - 40px) !important;
    max-width: 1200px !important;

    height: 140px !important;

    margin: 0 auto !important;
    padding: 10px 25px 18px !important;

    box-sizing: border-box;

    background-color: #f5f7fa !important;
    border-radius: 18px !important;

    overflow: hidden !important;
}

/* Fenêtre intérieure qui masque les logos */

.tutelles-fenetre {
    position: relative !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;
}


/* =====================================
   PISTE QUI DÉFILE
   ===================================== */

/* Piste de logos */
.tutelles-piste {
    position: absolute !important;

    top: 8px !important;
    left: 0 !important;

    width: max-content !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;

    align-items: center !important;
    justify-content: flex-start !important;

    gap: 25px;

    will-change: transform;
}

/* =====================================
   CARTES BLANCHES
   ===================================== */

.tutelles-piste .wp-block-image {
    flex: 0 0 210px !important;

    width: 210px !important;
    max-width: 210px !important;

    margin: 0 !important;
    padding: 4px 6px !important;

    box-sizing: border-box;

    background-color: #ffffff !important;
    border-radius: 18px !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}


/* Logos */

.tutelles-piste img {
    display: block;

    width: 100% !important;
    max-width: 200px !important;

    height: auto !important;
    max-height: 95px !important;

    object-fit: contain;
}


/* =====================================
   TABLETTE
   ===================================== */

@media (max-width: 900px) {

    .tutelles-defilement {
        max-width: 700px !important;
    }

    .tutelles-piste .wp-block-image {
        flex-basis: 190px !important;
        width: 190px !important;
        max-width: 190px !important;
    }

    .tutelles-piste img {
        max-width: 180px !important;
    }
}


/* =====================================
   MOBILE
   ===================================== */

@media (max-width: 600px) {

    .tutelles {
        padding-top: 50px;
    }

    .tutelles-defilement {
        width: calc(100% - 30px) !important;
    }

    .tutelles-piste .wp-block-image {
        flex-basis: 170px !important;
        width: 170px !important;
        max-width: 170px !important;
    }

    .tutelles-piste img {
        max-width: 160px !important;
    }
}

/* =====================================
   RESEAU SACLAY PLANT SCIENCES
   ===================================== */

.reseau-sps {
    width: 100% !important;
    max-width: none !important;

    padding: 0 5% 70px !important;
    box-sizing: border-box;
}


/* Bloc gris bleuté */
.reseau-sps-grille {
    width: 100% !important;
    max-width: 1000px !important;

    margin: 0 auto !important;
    padding: 30px 28px !important;

    box-sizing: border-box;

    background-color: #f5f7fa !important;
    border-radius: 8px;

    display: grid !important;
    grid-template-columns:
        minmax(0, 1fr)
        150px !important;

    gap: 35px;

    align-items: center !important;
}


/* Texte */
.reseau-sps-texte {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
}

.reseau-sps-texte > * {
    width: 100% !important;
    max-width: none !important;

    margin-left: 0 !important;
    margin-right: 0 !important;
}

.reseau-sps-texte h3 {
    margin-top: 0 !important;
    margin-bottom: 16px !important;

    font-size: 24px !important;
    line-height: 1.2;

    text-align: left !important;
}

.reseau-sps-texte p {
    margin-bottom: 0 !important;

    font-size: 17px;
    line-height: 1.6;

    text-align: left !important;
}


/* Logo SPS */
.reseau-sps-logo {
    width: 150px !important;
    max-width: 150px !important;

    margin: 0 !important;

    justify-self: end;
}

.reseau-sps-logo .wp-block-image {
    width: 100% !important;
    margin: 0 !important;
}

.reseau-sps-logo img {
    display: block;

    width: 100% !important;
    height: auto !important;

    max-height: 155px;

    object-fit: contain;
}


/* =====================================
   MOBILE
   ===================================== */

@media (max-width: 700px) {

    .reseau-sps {
        padding: 0 20px 50px !important;
    }

    .reseau-sps-grille {
        grid-template-columns: 1fr !important;

        padding: 25px 22px !important;
        gap: 25px;
    }

    .reseau-sps-logo {
        width: 130px !important;
        max-width: 130px !important;

        justify-self: start;
    }
}

/* =====================================
   PAGE D'ACCUEIL + HEADER IPS2
   ===================================== */


/* =====================================
   1. SUPPRESSION DU TITRE "ACCUEIL"
   ET DES ESPACES DU MODÈLE WORDPRESS
   ===================================== */

body.home #wp--skip-link--target {
    margin-top: 0 !important;

    padding-left: 0 !important;
    padding-right: 0 !important;
}




/* Masque uniquement le gros titre Accueil */
body.home #wp--skip-link--target
> .wp-block-group
> .wp-block-post-title {
    display: none !important;
}

/* =====================================
   CORRECTION DES CONTENEURS WORDPRESS
   ===================================== */

/* Groupe du modèle autour du contenu */
body.home #wp--skip-link--target > .wp-block-group {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;

    box-sizing: border-box !important;
}


/* Contenu réel de la page */
body.home .entry-content.wp-block-post-content {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;

    box-sizing: border-box !important;
}



/* Le Hero commence immédiatement */
body.home .entry-content > .hero-ips2 {
    margin-top: 0 !important;
}


/* =====================================
   2. HEADER AU-DESSUS DU HERO
   ===================================== */

body.home header.wp-block-template-part {
    position: absolute !important;

    top: 0 !important;
    left: 50% !important;
    right: auto !important;

    width: 100vw !important;

    transform: translateX(-50%) !important;
    max-width: none !important;

    z-index: 1000 !important;

    margin: 0 !important;
    padding: 0 !important;

    background-color: rgba(37, 65, 80, 0.10) !important;

    border-bottom: 1px solid rgba(255, 255, 255, 0.35);

    box-sizing: border-box !important;
}


/* Groupe extérieur ajouté par Twenty Twenty-Five */
body.home header.wp-block-template-part > .wp-block-group {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;

    box-sizing: border-box !important;
}


/* =====================================
   3. GROUPE ENTETE-IPS2
   ===================================== */

body.home .entete-ips2 {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;

    padding: 8px 4% !important;

    background: transparent !important;

    box-sizing: border-box !important;
}


/* Rangée logo + navigation */
body.home .entete-ips2 > .alignwide {
    width: 100% !important;
    max-width: 1800px !important;

    margin: 0 auto !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    box-sizing: border-box !important;
}


/* =====================================
   4. LOGO
   ===================================== */

body.home .entete-ips2 .wp-block-site-logo {
    position: relative !important;

    top: 5px !important;

    margin: 0 !important;
    padding: 0 !important;
}

body.home .entete-ips2 .wp-block-site-logo img {
    display: block !important;

    width: 120px !important;
    height: auto !important;
}


/* =====================================
   5. NAVIGATION
   ===================================== */

body.home .entete-ips2 .wp-block-navigation {
    margin-left: auto !important;
}


/* Liens */
body.home .entete-ips2 .wp-block-navigation-item__content {
    display: block !important;

    padding: 10px 14px !important;

    color: #ffffff !important;

    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;

    text-decoration: none !important;

    border-radius: 7px !important;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}


/* Libellés blancs */
body.home .entete-ips2 .wp-block-navigation-item__label {
    color: #ffffff !important;
}


/* Survol : fond vert + texte blanc */
body.home .entete-ips2
.wp-block-navigation-item__content:hover {
    background-color: #80b827 !important;
    color: #ffffff !important;
}

body.home .entete-ips2
.wp-block-navigation-item__content:hover
.wp-block-navigation-item__label {
    color: #ffffff !important;
}

/* =====================================
   CORRECTION DÉBORDEMENT HORIZONTAL
   ===================================== */

/* Les conteneurs parents font maintenant
   exactement la largeur de la fenêtre.
   On n'utilise donc plus 100vw. */

body.home .hero-ips2,
body.home .axes-recherche,
body.home .banniere-chiffres,
body.home .plateformes-enseignement,
body.home .offres-stages,
body.home .actualites-accueil,
body.home .tutelles {
    width: 100% !important;
    max-width: none !important;

    left: 0 !important;
    right: auto !important;

    transform: none !important;

    margin-left: 0 !important;
    margin-right: 0 !important;
}


/* Header : même principe */
body.home header.wp-block-template-part {
    width: 100% !important;

    left: 0 !important;
    right: 0 !important;

    transform: none !important;
}

/* =====================================
   AJUSTEMENT VERTICAL DU LOGO
   ===================================== */

body.home .entete-ips2 .wp-block-site-logo {
    position: relative !important;
    top: 4px !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* =====================================
   FOOTER IPS2
   ===================================== */

footer.wp-block-template-part {
    margin: 0 !important;
    padding: 0 !important;
}

/* Groupe principal du footer */
.footer-ips2 {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 18px 4% !important;

    box-sizing: border-box !important;

    background-color: #254150 !important;
}

/* Paragraphe */
.footer-ips2 p {
    margin: 0 !important;

    color: #ffffff !important;

    font-size: 14px !important;
    line-height: 1.5 !important;

    text-align: center !important;
}

/* Liens */
.footer-ips2 a {
    color: #ffffff !important;
    text-decoration: none !important;

    transition: color 0.2s ease;
}

/* Survol des liens */
.footer-ips2 a:hover {
    color: #80b827 !important;
}

/* =====================================
   FOOTER IPS2 - SUPPRESSION DES MARGES
   ===================================== */

footer.wp-block-template-part {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
}


/* Groupe extérieur ajouté par Twenty Twenty-Five */
footer.wp-block-template-part > .wp-block-group {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;

    box-sizing: border-box !important;
}


/* Notre footer */
.footer-ips2 {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;

    padding: 18px 4% !important;

    box-sizing: border-box !important;

    background-color: #254150 !important;
}