.section__texte:last-of-type:not(:only-of-type) {
    position: relative;
    z-index: 1;
}
.section__texte:last-of-type:not(:only-of-type)::after {
    content: '';
    display: block;
    width: 95%;
    height: 100%;
    border-radius: 0 0 300px 0;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--color-white);
    z-index: -1;
}
.header__page  .chapo_proj_etudiant {
    font-size: 1rem;
}
.bouton__cta:hover svg path {
    stroke: var(--color-cta);
}
.button__contour {
    color: var(--color-blue-uco);
    background-color: var(--color-white);
    transition: 0.5s all ease;
}
.button__contour::after {
    background-color: var(--color-blue-uco);
}
.button__contour:hover {
    background-color: var(--color-blue-uco);
    border-color: var(--color-white);
    color: var(--color-white);
}
/* ==========================================================================
   FORMATIONS ASSOCIÉES
   ========================================================================== */

.projet-etudiant__formations {
    background-color: var(--color-beige);
}

.projet-etudiant__formations h2 {
    width: fit-content;
    margin-bottom: 2rem;
    padding: .5rem 2rem;
    border-radius: 999px;
    background-color: var(--color-blue-small-aa);
    color: var(--color-white);
}

.projet-etudiant__formations .formations {
    margin-bottom: 0;
}

.formation-card__link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.formation-card__link:hover {
    color: inherit;
    text-decoration: none;
}

@media(max-width: 800px) {
    .section__texte:last-of-type:not(:only-of-type)::after {
        width: 100%;
        border-radius: 0 0 150px 0;
    }
}

/* V10 - Projet etudiant mobile */
@media (max-width: 47.99rem) {
  .pageProjetEtudiant .header__page .part__left {
    padding: 1.75rem var(--gutter) 2.25rem;
  }
  .pageProjetEtudiant .main__content .container-xxl {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
}

/* Descriptif blanc sur fond bleu foncé */
/* Descriptif des projets étudiants sur fond bleu foncé */
/* Descriptif blanc sur fond bleu - toutes résolutions */

.header__page .part__right.dark .field--name-field-descriptif,
.header__page .part__right.dark .field--name-field-descriptif .field__item,
.header__page .part__right.dark .field--name-field-descriptif p,
.header__page .part__right.dark .field--name-field-descriptif a {
  color: #ffffff !important;
}

/* Espacement au-dessus du descriptif */
.header__page .part__right.dark .field--name-field-descriptif {
  margin-top: 2rem;
}

/* ==========================================
   PROJET ETUDIANT - HERO RESPONSIVE
========================================== */

/* Desktop : conserver la largeur actuelle */
.header__page.right .part__right .projet-etudiant__chapo {
  width: 75%;
  max-width: 100%;
}

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

  /* Agrandir la zone de contenu du Hero */
  .header__page.right .part__right.dark {
    padding: 2.5rem 1.5rem 4rem !important;
    height: auto;
    min-height: 0;
    border-radius: 0 0 65px 0;
  }

  /* Titre adapté à la largeur du mobile */
  .header__page.right .part__right h1 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
  }

  /* Chapô : utiliser toute la largeur disponible */
  .header__page.right .part__right .projet-etudiant__chapo {
    width: 100%;
    max-width: 100%;
    margin-top: 1.75rem;
  }

  /* Texte du chapô plus lisible */
  .header__page.right .part__right .projet-etudiant__chapo p {
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 0 1rem;
    overflow-wrap: break-word;
  }

  /* Espacement sous les étiquettes */
  .header__page.right .part__right .projet-etudiant__chapo
  .field--name-field-descriptif {
    margin-top: 0;
  }
}

/* ==========================================
   PROJET ETUDIANT - ALIGNEMENT MISE EN EXERGUE
========================================== */

/* Desktop et tablette */
@media (min-width: 768px) {
  .main__content .citation > .container-xxl > .d-flex {
    padding-left: clamp(1rem, 2.55vw, 2.75rem);
    box-sizing: border-box;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .main__content .citation > .container-xxl > .d-flex {
    padding-left: 0;
    min-width: 0;
  }

  .main__content .citation .message {
    min-width: 0;
    flex: 1 1 0;
  }
}