/* =========================================================
   POSITI’F — IDENTITÉ DU SITE
   Logo horizontal, titre de remplacement et description
   ========================================================= */

.positif-identite {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 260px;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    color: #0b3042;
    font-family: var(
        --ifm-font-family,
        'Open Sans',
        Arial,
        Helvetica,
        sans-serif
    );
    text-align: center;
}

.positif-identite,
.positif-identite * {
    box-sizing: border-box;
}

.positif-identite > * {
    margin: 0;
    margin-block-start: 0;
}

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

.positif-identite .positif-identite__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.positif-identite .positif-identite__logo img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    margin: 0;
    object-fit: contain;
}

/* =========================================================
   TITRE — AFFICHÉ PAR LE PHP EN L’ABSENCE DE LOGO
   ========================================================= */

.positif-identite .positif-identite__titre {
    margin: 0;
    color: inherit;
    font-family: var(
        --ifm-font-family-heading,
        'Poppins',
        Arial,
        Helvetica,
        sans-serif
    ) !important;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .04em;
    overflow-wrap: anywhere;
}

/* =========================================================
   DESCRIPTION — SOUS LE LOGO OU LE TITRE
   ========================================================= */

.positif-identite .positif-identite__sous-titre {
    display: block;
    width: 100%;
    margin: 0;
    color: #506275;
    font-family: var(
        --ifm-font-family,
        'Open Sans',
        Arial,
        Helvetica,
        sans-serif
    );
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .02em;
    text-align: center;
    text-decoration: none;
    text-wrap: balance;
}

/* =========================================================
   LIENS ET NAVIGATION AU CLAVIER
   ========================================================= */

.positif-identite a,
.positif-identite a:visited,
.positif-identite a:hover,
.positif-identite a:active {
    color: inherit;
    text-decoration: none;
}

.positif-identite a:focus-visible {
    outline: 2px solid #79bd43;
    outline-offset: 5px;
    border-radius: 4px;
}

/* =========================================================
   HEADER — DIMENSIONS DE L’IDENTITÉ UNIQUEMENT
   ========================================================= */

.site-header .positif-identite {
    width: 240px;
    gap: 8px;
}

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

.ifm-simple-footer .positif-identite {
    width: 260px;
    max-width: 100%;
    margin-inline: auto;
    color: #fff;
}

.ifm-simple-footer .positif-identite__sous-titre {
    color: #dce8ec;
}

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

@media (max-width: 680px) {
    .site-header .positif-identite {
        width: 190px;
        gap: 6px;
    }

    .site-header .positif-identite__sous-titre {
        font-size: .75rem;
        letter-spacing: .01em;
    }

    .ifm-simple-footer .positif-identite {
        width: 220px;
    }
}

@media (max-width: 380px) {
    .site-header .positif-identite {
        width: 170px;
    }
}