/* ==========================================================================
   Actualités, Ressources, Offres d'emploi
   Listes, vignettes, filtres, pagination et pages détail.
   Desktop d'abord ; les adaptations mobiles sont en fin de fichier.
   ========================================================================== */

:root {
    --is-navy: var(--wp--preset--color--primary, #0E0A54);
    --is-orange: var(--wp--preset--color--secondary, #F68745);
    --is-orange-text: var(--wp--preset--color--secondary-dark, #BD5320);
    --is-orange-light: var(--wp--preset--color--secondary-light, #FFCDAC);
    --is-peach: var(--wp--preset--color--secondary-extra-light, #FFEADB);
    --is-yellow: var(--wp--preset--color--secondary-back, #FEE6A7);
    --is-yellow-light: var(--wp--preset--color--secondary-back-clair, #FFF1D6);
    --is-caption: 500 14px/1.2 var(--wp--preset--font-family--primary);
}

.screen-reader-text {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.liste-vide {
    font-size: 18px;
    padding-block: 40px;
}

/* Boutons générés en PHP : WordPress n'applique les couleurs des variations
   de style (styles/button/*.json) qu'aux blocs core/button. */
.section-liees .wp-block-button.is-style-illustre .wp-block-button__link,
.filtres__actions .wp-block-button.is-style-illustre .wp-block-button__link {
    padding: 0;
    background-color: transparent;
    color: var(--is-navy);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.section-liees .wp-block-button.is-style-illustre .wp-block-button__link:hover,
.filtres__actions .wp-block-button.is-style-illustre .wp-block-button__link:hover {
    color: #fff;
}

.ressource-annexes .wp-block-button.is-style-en-savoir-plus-is .wp-block-button__link {
    background-color: #fff;
    color: var(--is-navy);
}

.gform_wrapper .gform_footer .gform_button,
.gform_wrapper .gform-footer .gform_button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 266px !important;
    max-width: 100%;
    height: 56px !important;
    min-height: 0 !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: url('../../assets/img/illustre-btn.svg') no-repeat center / 100% 100% !important;
    color: var(--is-navy) !important;
    font-family: var(--wp--preset--font-family--primary) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 24px !important;
    cursor: pointer;
}

.gform_wrapper .gform_footer .gform_button:hover,
.gform_wrapper .gform-footer .gform_button:hover {
    background-image: url('../../assets/img/illustre-btn-hover.svg') !important;
    color: #fff !important;
}

.candidature-alerte {
    padding: 20px;
    border-radius: 20px;
    background: var(--is-yellow-light);
}

/* Espace entre le bandeau titre et la liste */
.page-liste > .liste-actus,
.page-liste > .liste-ressources,
.page-liste > .liste-emplois {
    margin-block-start: 60px;
}

/* --------------------------------------------------------------------------
   Titre des archives (même rendu que le bloc « Titre de page »)
   -------------------------------------------------------------------------- */
.titre-archive {
    position: relative;
    padding-block: 100px 80px;
    z-index: 0;
}

.titre-archive::before {
    content: '';
    position: absolute;
    top: 0;
    right: calc(50% - 50vw);
    width: 530px;
    height: 100%;
    background: url('../img/cpt/title-tache.svg') no-repeat 0 -20px / 700px 549px;
    z-index: -1;
    pointer-events: none;
}

.titre-archive::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 120vw;
    height: 1px;
    transform: translateX(-50%);
    background-color: var(--is-navy);
}

.titre-archive h1 {
    margin: 0;
    line-height: 1.1;
}

/* --------------------------------------------------------------------------
   Pagination (format WordPress natif)
   -------------------------------------------------------------------------- */
.liste-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding-top: 20px;
    margin-top: 40px;
}

.liste-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    color: var(--is-navy);
    text-decoration: none;
}

.liste-pagination a.page-numbers:hover {
    background-color: var(--is-peach);
}

.liste-pagination .page-numbers.current {
    background-color: var(--is-orange);
}

.liste-pagination .page-numbers img {
    display: block;
    width: 20px;
    height: 20px;
}

.liste-pagination .page-numbers img.is-prev {
    transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   Onglets années (actualités)
   -------------------------------------------------------------------------- */
.tab-annees {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
    border: 1px solid var(--is-navy);
    border-radius: 40px;
    margin-bottom: 30px;
}

.tab-annees__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 32px;
    padding: 8px 10px;
    border-radius: 20px;
    font: var(--is-caption);
    letter-spacing: 0.14px;
    color: var(--is-navy);
    text-decoration: none;
}

.tab-annees__item:hover {
    background-color: var(--is-peach);
    color: var(--is-navy);
}

.tab-annees__item.is-active {
    height: 34px;
    background-color: var(--is-orange);
}

/* --------------------------------------------------------------------------
   Vignette actualité
   -------------------------------------------------------------------------- */
.liste-actus__items {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 20px; /* place pour les étiquettes qui débordent */
}

.card-actu {
    position: relative;
    display: flex;
    min-height: 268px;
    border-radius: 40px;
}

.card-actu__media {
    position: relative;
    flex: 0 0 400px;
    border-radius: 40px 0 0 40px;
    overflow: hidden;
}

.card-actu__media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.card-actu__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 40px 80px 40px 60px;
    border-radius: 0 40px 40px 0;
    background-color: var(--is-peach);
    transition: background-color .2s ease;
}

.card-actu__meta,
.meta-contenu--actualite {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    font: var(--is-caption);
    letter-spacing: 0.14px;
    color: var(--is-navy);
}

.card-actu__etablissement,
.meta-contenu__etablissement {
    color: var(--is-orange-text);
}

.card-actu__dot {
    width: 4px;
    height: 4px;
}

.card-actu__title {
    flex: 1 1 auto;
    margin: -14px 0 0;
    font-family: var(--wp--preset--font-family--secondary);
    font-size: 34px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--is-navy);
}

.card-actu__link {
    color: inherit !important;
    text-decoration: none;
}

/* Toute la vignette est cliquable */
.card-actu__link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 40px;
}

.card-actu__link:focus-visible {
    outline: none;
}

.card-actu__link:focus-visible::after {
    outline: 2px solid var(--is-navy);
    outline-offset: 4px;
}

.card-actu__more {
    font-size: 18px;
    line-height: 24px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.card-actu:hover .card-actu__body {
    background-color: var(--is-orange-light);
}

.card-actu:hover .card-actu__media img {
    transform: scale(1.03);
}

.card-actu__tags {
    position: absolute;
    top: -20px;
    right: 20px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
    pointer-events: none;
}

.card-actu__tag {
    padding: 8px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}

.card-actu__tag.is-etiquette {
    background-color: var(--is-navy);
    color: #fff;
    transform: rotate(6deg);
}

.card-actu__tag.is-a-venir {
    background-color: var(--is-yellow);
    color: var(--is-navy);
    transform: rotate(-4deg);
}

/* --------------------------------------------------------------------------
   Vignette ressource
   -------------------------------------------------------------------------- */
.liste-ressources__count,
.liste-emplois__count {
    margin: 30px 0 24px;
    font-size: 13px;
    letter-spacing: 0.13px;
}

.liste-ressources__items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 24px;
}

.card-ressource {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 20px;
    min-height: 446px;
    padding: 200px 30px 30px;
    border: 1px solid var(--is-navy);
    border-radius: 30px;
    overflow: hidden;
    isolation: isolate;
    background-color: var(--wp--preset--color--neutral, #FFF8F6);
    transition: background-color .2s ease;
}

.card-ressource:hover {
    background-color: var(--is-peach);
}

.card-ressource__visuel {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.card-ressource__mask {
    position: absolute;
    top: -60px;
    right: -56px;
    width: 334px;
    height: 277px;
}

.card-ressource__illustration {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 184px;
    height: 184px;
    border: 2px solid #fff;
    border-radius: 50%;
    object-fit: cover;
}

.card-ressource__type {
    position: relative;
    margin: 0;
    font: var(--is-caption);
    letter-spacing: 0.14px;
}

.card-ressource__title {
    height: 124px;
    margin: 0;
    font-family: var(--wp--preset--font-family--primary);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.48px;
}

/* Troncature au-delà de 4 lignes */
.card-ressource__link {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--is-navy) !important;
    text-decoration: none;
}

.card-ressource__link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 30px;
}

.card-ressource__footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.card-ressource__icon {
    flex: 0 0 24px;
    transition: transform .2s ease;
}

.card-ressource:hover .card-ressource__icon {
    transform: translateX(4px);
}

.tag-thematique {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 8px 10px;
    border: 1px solid var(--is-navy);
    border-radius: 20px;
    font: var(--is-caption);
    letter-spacing: 0.14px;
    color: var(--is-navy);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Filtres des ressources
   -------------------------------------------------------------------------- */
.filtres {
    position: relative;
}

.filtres fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.filtres legend {
    margin-bottom: 20px;
    padding: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: 0.36px;
}

.filtres input[type="radio"],
.filtres input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.filtres__toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 16px 28px;
    border: 1px solid var(--is-orange-light);
    border-radius: 20px;
    background: #fff;
    font-family: var(--wp--preset--font-family--primary);
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    color: var(--is-navy);
    cursor: pointer;
}

.filtres__toggle:hover {
    background-color: var(--is-peach);
}

.filtres__chevron {
    transform: rotate(180deg);
    transition: transform .2s ease;
}

.filtres__toggle[aria-expanded="true"] .filtres__chevron {
    transform: none;
}

.filtres__dot {
    position: absolute;
    top: -5px;
    right: -5px;
}

.filtres__panel {
    padding-top: 30px;
}

.filtres__head,
.filtres__actions {
    display: none;
}

/* Sans JavaScript (ou desktop sans soumission auto) : bouton d'envoi visible */
.filtres:not(.is-auto) .filtres__actions {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}

.filtres__columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px 60px;
}

.filtres__group--thematique {
    width: 360px;
}

.filtres__profils {
    display: flex;
    gap: 10px;
}

.filtre-profil__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 175px;
    height: 175px;
    padding: 15px;
    border: 1px solid var(--is-navy);
    border-radius: 20px;
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: 0.36px;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease;
}

.filtre-profil__box img {
    width: 105px;
    height: auto;
}

.filtre-profil:hover .filtre-profil__box {
    background-color: var(--is-peach);
}

.filtre-profil input:checked + .filtre-profil__box {
    background-color: var(--is-orange);
    border-color: var(--is-orange);
}

.filtres__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filtre-tag .tag-thematique {
    cursor: pointer;
}

.filtre-tag:hover .tag-thematique {
    background-color: var(--is-peach);
}

.filtre-tag input:checked + .tag-thematique {
    background-color: var(--is-orange);
    border-color: var(--is-orange);
}

.filtres__checkboxes {
    display: grid;
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 20px;
}

.filtre-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 114px;
    font-size: 16px;
    line-height: 24px;
    cursor: pointer;
}

.filtre-checkbox span::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: -4px;
    border: 1px solid var(--is-navy);
    border-radius: 5px;
    background: #fff center / 14px no-repeat;
}

.filtre-checkbox input:checked + span::before {
    background-color: var(--is-navy);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.filtres :focus-visible + .filtre-profil__box,
.filtres :focus-visible + .tag-thematique,
.filtres :focus-visible + span::before {
    outline: 2px solid var(--is-navy);
    outline-offset: 2px;
}

.filtres__reset {
    font-size: 18px;
    line-height: 24px;
    color: var(--is-navy);
}

.filtres__actions .wp-block-button__link {
    cursor: pointer;
    font-family: var(--wp--preset--font-family--primary);
    font-size: 16px;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Offres d'emploi
   -------------------------------------------------------------------------- */
.liste-emplois__items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card-emploi {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    min-height: 80px;
    padding-bottom: 19px;
    border-bottom: 1px solid var(--is-navy);
}

.card-emploi__infos {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 733px;
}

.card-emploi__title {
    margin: 0;
    font-family: var(--wp--preset--font-family--primary);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.48px;
}

.card-emploi__link {
    color: var(--is-navy) !important;
    text-decoration: none;
}

.card-emploi__link::after {
    content: '';
    position: absolute;
    inset: 0;
}

.card-emploi:hover .card-emploi__link {
    text-decoration: underline;
}

.card-emploi__details {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
}

.card-emploi__date {
    margin: 0;
    font: var(--is-caption);
    letter-spacing: 0.14px;
    text-align: right;
    white-space: nowrap;
}

.card-emploi__icon {
    position: absolute;
    right: 0;
    bottom: 19px;
    transition: transform .2s ease;
}

.card-emploi:hover .card-emploi__icon {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Pages détail (actualité, ressource, offre)
   -------------------------------------------------------------------------- */
.single-contenu > .meta-contenu--actualite {
    margin-bottom: 10px;
}

.single-contenu .single-contenu__title {
    margin-block-start: 0 !important;
    margin-bottom: 0;
    line-height: 1.1;
}

.single-contenu--emploi .meta-contenu--emploi {
    margin-block-start: 10px;
    font-size: 18px;
}

.single-contenu__content {
    margin-block-start: 60px;
}

/* Accroche : premier paragraphe en 24px si l'éditeur n'a pas choisi de taille */
.single-contenu__content > p.has-mm-font-size:first-child {
    line-height: 1.3;
    margin-bottom: 60px;
}

.single-contenu__content > p:first-child:not([class*="-font-size"]) {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 60px;
}

.single-contenu__content h2,
.single-contenu__content h3 {
    margin-block-start: 60px;
}

.single-contenu__content .wp-block-image img {
    border-radius: 0;
}

/* Section « Postuler » / « Candidature spontanée » */
.section-candidature .wp-block-heading {
    margin-block: 0 10px;
}

/* --------------------------------------------------------------------------
   Sections « Autres actualités » / « Sur le même thème »
   -------------------------------------------------------------------------- */
.section-liees {
    position: relative;
    margin-block-start: 140px !important;
    padding: 120px var(--wp--style--root--padding-right, 30px) 120px var(--wp--style--root--padding-left, 30px);
    overflow: hidden;
}

/* Vague jaune en haut de section */
.section-liees::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2280px;
    height: 126px;
    transform: translateX(-46%);
    background: url('../img/cpt/section-wave.svg') no-repeat center / 100% 100%;
    pointer-events: none;
}

.section-liees__inner {
    max-width: var(--wp--style--global--wide-size, 1320px);
    margin-inline: auto;
}

.section-liees__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 60px;
}

.section-liees__title {
    margin: 0;
    font-size: 60px;
}

.section-liees__header .wp-block-button {
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Annexes de la ressource
   -------------------------------------------------------------------------- */
.ressource-annexes {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    margin-block-start: 60px;
}

.ressource-annexes ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ressource-annexes li + li {
    margin-top: 10px;
}

.ressource-annexes a {
    font-size: 18px;
    line-height: 24px;
    color: var(--is-navy);
    text-decoration: underline;
}

.ressource-annexes a:hover {
    color: var(--is-orange-text);
}

.ressource-annexes__title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: 0.36px;
}

.ressource-annexes__download {
    position: relative;
    width: min(535px, 100%);
    padding: 20px 20px 20px 60px;
    border-radius: 20px;
    background-color: var(--is-yellow);
    overflow: hidden;
}

.ressource-annexes__arrow {
    position: absolute;
    left: -34px;
    top: calc(50% + 20px);
    width: 74px;
    height: 54px;
    transform: translateY(-50%) rotate(29.61deg);
}

.ressource-annexes__links {
    width: 100%;
    padding: 20px;
    border-radius: 20px;
    background-color: var(--is-yellow-light);
}

.ressource-annexes .wp-block-button.is-style-en-savoir-plus-is .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    height: 56px;
    border: 1px solid var(--is-orange-light);
    background-image: url('../img/cpt/external-link.svg');
    font-size: 16px;
    text-decoration: none;
}


/* --------------------------------------------------------------------------
   Témoignages : vignette, slider (accueil), liste (page Témoignages)
   -------------------------------------------------------------------------- */
.card-temoignage {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 0;
    padding: 60px 40px;
    border-radius: 40px;
    background-color: #fff;
}

.card-temoignage.has-illustration {
    padding-bottom: 100px;
}

.card-temoignage__quote {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 16px;
    height: 14px;
    transform: scaleX(-1);
}

.card-temoignage__text {
    margin: 0;
    padding: 0;
    border: 0;
    max-width: 395px;
    font-size: 16px;
    line-height: 24px;
    color: var(--is-navy);
}

.card-temoignage__text p {
    margin: 0;
}

.card-temoignage__signature {
    max-width: 255px;
    font: var(--is-caption);
    letter-spacing: 0.14px;
    color: var(--is-orange-text);
}

.card-temoignage__avatar {
    position: absolute;
    right: -32px;
    bottom: -80px;
    width: 220px;
    height: auto;
    pointer-events: none;
}

/* Slider */
.slider-temoignages {
    position: relative;
    margin-block-start: 60px !important;
}

.slider-temoignages__track {
    display: flex;
    align-items: center;
    gap: 57px;
    margin-right: calc(50% - 50vw);
    padding: 0 60px 100px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.slider-temoignages__track::-webkit-scrollbar {
    display: none;
}

.slider-temoignages__track:focus-visible {
    outline: 2px solid var(--is-navy);
    outline-offset: 4px;
}

.slider-temoignages__slide {
    flex: 0 0 475px;
    scroll-snap-align: start;
}

.slider-temoignages__slide:first-child {
    flex-basis: 503px;
}

.slider-temoignages__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.slider-temoignages__arrow {
    display: flex;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.slider-temoignages__arrow img {
    width: 36px;
    height: 36px;
}

.slider-temoignages__arrow.is-prev img {
    transform: scaleX(-1);
}

.slider-temoignages__arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.slider-temoignages__dots {
    display: flex;
    gap: 5px;
}

.slider-temoignages__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid var(--is-navy);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.slider-temoignages__dot.is-active {
    background-color: var(--is-navy);
}

/* Page Témoignages */
.liste-temoignages {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 120px 60px;
    margin-block-start: 60px;
    padding-bottom: 80px;
}

.liste-temoignages .card-temoignage__text {
    max-width: none;
    padding-right: 120px;
}

/* --------------------------------------------------------------------------
   Accueil : actualités
   -------------------------------------------------------------------------- */
.surtitre {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0.28px;
    text-transform: uppercase;
}

.actualites-accueil {
    padding: 80px var(--wp--style--root--padding-right, 30px) 120px var(--wp--style--root--padding-left, 30px);
}

.actualites-accueil__inner {
    max-width: var(--wp--style--global--wide-size, 1320px);
    margin-inline: auto;
}

.actualites-accueil__title {
    margin: 0 0 60px;
    font-size: 60px;
}

.actualites-accueil__cta {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.actualites-accueil__cta .wp-block-button__link {
    padding: 0;
    background-color: transparent;
    color: var(--is-navy);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.actualites-accueil__cta .wp-block-button__link:hover {
    color: #fff;
}

/* ==========================================================================
   Tablette
   ========================================================================== */
@media screen and (max-width: 1199px) {
    .liste-ressources__items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-actu__media {
        flex-basis: 320px;
    }

    .card-actu__body {
        padding: 30px 40px;
    }

    .card-actu__title {
        font-size: 28px;
    }
}

/* ==========================================================================
   Mobile
   ========================================================================== */
@media screen and (max-width: 781px) {
    .page-liste > .liste-actus,
    .page-liste > .liste-ressources,
    .page-liste > .liste-emplois {
        margin-block-start: 40px;
    }

    .titre-archive {
        padding-block: 60px 40px;
    }

    .titre-archive::before {
        width: 190px;
        background-size: 350px 275px;
    }

    /* Onglets : défilement horizontal si besoin */
    .tab-annees {
        max-width: 100%;
        overflow-x: auto;
    }

    .tab-annees__item {
        flex: 0 0 auto;
    }

    /* Vignette actualité verticale */
    .liste-actus__items {
        gap: 30px;
    }

    .card-actu {
        flex-direction: column;
        min-height: 0;
    }

    .card-actu__media {
        flex: 0 0 auto;
        height: 210px;
        border-radius: 40px 40px 0 0;
    }


    .card-actu__body {
        gap: 24px;
        padding: 40px 30px;
        border-radius: 0 0 40px 40px;
    }

    .card-actu__title {
        margin-top: -14px;
        font-size: 28px;
    }

    .card-actu__tags {
        right: 20px;
    }

    /* Ressources : une colonne */
    .liste-ressources__items {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .card-ressource {
        min-height: 0;
    }

    .card-ressource__title {
        height: auto;
        min-height: 116px;
    }

    /* Filtres : fenêtre plein écran */
    .filtres__panel {
        position: fixed;
        inset: 0;
        z-index: 99999;
        display: flex;
        flex-direction: column;
        padding: 0;
        background-color: #fff;
        overflow: hidden;
    }

    .filtres__panel[hidden] {
        display: none;
    }

    .filtres__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex: 0 0 auto;
        padding: 20px 24px;
        border-bottom: 1px solid var(--is-navy);
    }

    .filtres__head-title {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
    }

    .filtres__close {
        display: flex;
        padding: 6px;
        border: 0;
        background: none;
        cursor: pointer;
    }

    .filtres__close img {
        width: 24px;
        height: 24px;
    }

    .filtres__columns {
        flex: 1 1 auto;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 40px;
        padding: 30px 24px;
        overflow-y: auto;
    }

    .filtres__group--thematique {
        width: auto;
    }

    .filtre-profil {
        flex: 1 1 0;
    }

    .filtre-profil__box {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        font-size: 16px;
    }

    .filtres .filtres__actions,
    .filtres.is-auto .filtres__actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        flex: 0 0 auto;
        margin: 0;
        padding: 24px;
        border-top: 1px solid var(--is-orange-light);
    }

    body.has-filtres-open {
        overflow: hidden;
    }

    /* Offres d'emploi */
    .card-emploi {
        flex-direction: column;
        gap: 10px;
        padding-right: 40px;
    }

    .card-emploi__title {
        font-size: 20px;
    }

    .card-emploi__date {
        text-align: left;
    }

    /* Pages détail */
    .single-contenu .single-contenu__title {
        font-size: 40px;
    }

    .single-contenu__content {
        margin-block-start: 30px;
    }

    .single-contenu__content > p.has-mm-font-size:first-child {
        font-size: 20px !important;
        margin-bottom: 40px;
    }

    .single-contenu__content > p:first-child:not([class*="-font-size"]) {
        font-size: 20px;
        margin-bottom: 40px;
    }

    /* Sections liées */
    .section-liees {
        margin-block-start: 80px !important;
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .section-liees::before {
        width: 1100px;
        height: 60px;
        transform: translateX(-40%);
    }

    .section-liees__header {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
        text-align: center;
    }

    .section-liees__title {
        font-size: 40px;
    }

    .ressource-annexes__download {
        padding-left: 50px;
    }

    /* Témoignages */
    .slider-temoignages__track {
        gap: 24px;
        padding-right: 24px;
    }

    .slider-temoignages__slide,
    .slider-temoignages__slide:first-child {
        flex-basis: calc(100vw - 72px);
    }

    .card-temoignage {
        padding: 50px 24px 60px;
    }

    .card-temoignage.has-illustration {
        padding-bottom: 150px;
    }

    .card-temoignage__avatar {
        right: -10px;
        bottom: -60px;
        width: 180px;
    }

    .liste-temoignages {
        grid-template-columns: minmax(0, 1fr);
        gap: 100px;
    }

    .liste-temoignages .card-temoignage__text {
        padding-right: 0;
    }

    /* Accueil : actualités */
    .actualites-accueil {
        padding-top: 60px;
        padding-bottom: 80px;
    }

    .actualites-accueil__title {
        margin-bottom: 40px;
        font-size: 36px;
    }
}

/* --------------------------------------------------------------------------
   Recherche
   -------------------------------------------------------------------------- */
.page-recherche .titre-archive .wp-block-search {
    max-width: 640px;
    margin-top: 30px;
    margin-left: 0 !important;
}

.page-recherche .wp-block-search__inside-wrapper {
    border: 1px solid var(--is-navy) !important;
    border-radius: 10px;
    background: #fff;
}

.page-recherche .wp-block-search__input {
    border: 0;
    font-size: 16px;
}

.resultats-recherche {
    margin-block-start: 60px !important;
}

.resultats-recherche .wp-block-post-template {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    list-style: none;
}

.resultats-recherche .resultat {
    padding-block: 24px;
    border-bottom: 1px solid var(--is-navy);
}

.resultats-recherche .wp-block-post-title {
    margin: 0 0 8px;
    font-family: var(--wp--preset--font-family--primary);
    font-size: 24px;
    line-height: 1.2;
}

.resultats-recherche .wp-block-post-title a {
    text-decoration: none;
}

.resultats-recherche .wp-block-post-title a:hover {
    text-decoration: underline;
}

.resultats-recherche .wp-block-post-excerpt__excerpt {
    margin: 0;
    font-size: 16px;
}

.resultats-recherche .wp-block-query-pagination {
    margin-top: 40px;
}
