/**
 * Entête de page (page.php)
 * Affiche le fil d'Ariane Yoast, le titre de la page et l'extrait
 * Utilise l'image à la une ou la couleur lightblue par défaut
 */

/* Import du séparateur réutilisable */
@import url('partials/separator.css');

.page-header {
    position: relative;
    padding: 320px 20px 90px;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    @media (max-width: 1500px){
        padding-top: 250px;
    }
}

/* Couleur de fond par défaut (lightblue) si pas d'image */
.page-header--no-image {
    background-color: var(--color-secondary, #007FB4);
}

/* Image de fond si présente */
.page-header--with-image {
    background-color: transparent;
}

.page-header__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-header__background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 40, 63, 0.30) 0%, rgba(0, 40, 63, 0.30) 100%);
    z-index: 1;
}

.page-header__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-header__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin: 0 auto;
    text-align: center;
}

.page-header__breadcrumb {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
}

.page-header__breadcrumb,
.page-header__breadcrumb * {
    color: rgba(255, 255, 255, 0.75) !important;
}

.page-header__breadcrumb a {
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-header__breadcrumb a:hover,
.page-header__breadcrumb a:focus {
    color: rgba(255, 255, 255, 1) !important;
}

.page-header__breadcrumb .breadcrumb_last {
    color: rgba(255, 255, 255, 0.75) !important;
}

.page-header__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    width: 100%;
}

.page-header__title {
    font-family: 'Momo Trust Display', sans-serif;
    font-weight: 400;
    font-size: 45px;
    line-height: 1;
    color: #FFFFFF;
    margin: 0;
}

.page-header__intro {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.page-header__intro strong,
.page-header__intro b {
    font-weight: 700;
}

.page-header__intro p {
    margin: 0;
    font-size: 19px;
}

.page-header__intro p + p {
    margin-top: 0.5em;
}

/* Accessibilite: en high-contrast + sans image, tout le texte du header est noir */
body.high-contrast .page-header.page-header--no-image .page-header__inner,
body.high-contrast .page-header.page-header--no-image .page-header__inner *,
body.high-contrast .page-header.page-header--no-image .page-header__inner a,
body.high-contrast .page-header.page-header--no-image .page-header__inner .breadcrumb_last {
    color: #000 !important;
}

/* Icône en superposition en bas du header */
.page-header__icon {
    position: absolute;
    bottom: -90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    max-width: 155px;
    width: 100%;
}

.page-header__icon img {
    display: block;
    width: 100%;
    height: auto;
}

/* Espacement après le header quand icône présente */
main.has-header-icon > .container:first-of-type {
    margin-top: 100px;
}

@media (max-width: 1049px){
    .page-header {
        padding: 180px 20px 100px;
        min-height: 350px;
    }
}

@media (max-width: 992px) {
    .page-header__title {
        font-size: 35px;
    }
    .page-header__intro {
        font-size: 16px;
    }
    .page-header__icon {
        max-width: 120px;
        /* bottom: -60px; */
    }
    main.has-header-icon > .container:first-of-type {
        margin-top: 70px;
    }
}

@media (max-width: 600px) {
    .page-header {
        padding: 80px 16px 40px;
        min-height: 360px;
    }
    .page-header__title {
        font-size: 34px;
    }
    .page-header__intro {
        font-size: 16px;
    }
    .page-header__breadcrumb {
        font-size: 14px;
    }
    .page-header__icon {
        max-width: 100px;
        /* bottom: -50px; */
    }
    main.has-header-icon > .container:first-of-type {
        margin-top: 60px;
    }
}

/* ========================================
   LIEN DE RETOUR PAGE PARENTE
   ======================================== */

.page-parent-back-wrapper{
    padding-left: 0!important;
    margin-bottom: 30px;
    @media (max-width: 992px){
        margin-top: 40px;
        width: 100%!important;
        margin-bottom: 0!important;
    }
}
.page-parent-back {
    display: inline-block;
    margin-bottom: 0;
}
.page-parent-back::before {
    transform: rotate(0)!important;
}
