/* L’habillage est chargé uniquement pendant la période définie dans config/habillage-noel.php. */
@media screen {
    html:not([data-theme='dark']) #header {
        background-color: #fffdf7;
        border-bottom-color: #c9b893;
    }

    #header::after,
    footer[role='contentinfo']::before {
        content: '';
        position: absolute;
        inset-inline: 0;
        height: 21px;
        pointer-events: none;
        background: url('../images/guirlande-noel.webp') center / auto 100% repeat-x;
    }

    #header::after {
        bottom: -7px;
    }

    footer[role='contentinfo'] {
        position: relative;
    }

    footer[role='contentinfo']::before {
        top: -7px;
        height: 24px;
    }

    .plume-fab-companion picture {
        display: inline-block;
        position: relative;
    }

    .plume-fab-companion picture > .plume {
        display: block;
    }

    .plume-fab-companion picture::after {
        content: '';
        position: absolute;
        left: 33%;
        bottom: 84%;
        width: 47%;
        aspect-ratio: 240 / 114;
        transform: rotate(8deg);
        transform-origin: 45% 100%;
        background: url('../images/plume/bonnet-noel-plume.webp') center / contain no-repeat;
        pointer-events: none;
    }

    #header .main-nav .nav-link.active {
        background-color: #e4efe6;
        color: #184937;
    }

    #header .main-nav .nav-link.active::after {
        background-color: #ab8250;
    }

    html:not([data-theme='dark']) .resources-hub .hub-title {
        background-image: linear-gradient(115deg, #174f41 32%, #43684a 54%, #845524 74%);
    }

    [data-theme='dark'] #header .main-nav .nav-link.active {
        background-color: #254a40;
        color: #f3f5e8;
    }

    .hub-header .noel-avent-carte {
        position: relative;
        isolation: isolate;
        display: block;
        overflow: hidden;
        max-width: 49rem;
        margin: 1.5rem auto 0;
        border: 1px solid #567762;
        border-radius: 1rem;
        background: #153d36;
        box-shadow: 0 5px 16px rgb(23 56 43 / 13%);
        text-align: start;
        text-decoration: none;
    }

    .noel-avent-village {
        position: absolute;
        z-index: -1;
        inset: 0 0 0 auto;
        height: 100%;
        width: 51%;
        object-fit: cover;
        object-position: 62% 66%;
        mask-image: linear-gradient(to right, transparent 3%, black 39%);
    }

    .noel-avent-texte {
        width: 58%;
        padding: 1.2rem 0 1.2rem clamp(1rem, 4vw, 2rem);
    }

    .noel-avent-texte h2 {
        margin: 0;
        font:
            600 clamp(1.55rem, 3vw, 1.9rem) / 1.08 Georgia,
            serif;
        text-wrap: balance;
        color: #fff9e9;
    }

    .noel-avent-texte p {
        margin: 0.45rem 0 0.7rem;
        color: #eff5ea;
        font-size: 0.96rem;
        line-height: 1.45;
    }

    #noel-avent-lien {
        color: #ffe1a2;
        font-weight: 700;
        text-underline-offset: 0.2em;
    }

    #noel-avent-lien span {
        margin-inline-start: 0.25em;
    }

    .noel-avent-carte:hover #noel-avent-lien,
    .noel-avent-carte:focus-visible #noel-avent-lien {
        text-decoration: underline;
    }

    .noel-avent-carte:focus-visible {
        outline: 3px solid var(--primary, #3730a3);
        outline-offset: 4px;
    }
}

@media screen and (max-width: 600px) {
    #header::after {
        height: 16px;
        bottom: -6px;
    }

    .noel-avent-texte {
        width: 72%;
        padding-block: 1rem;
    }

    .noel-avent-village {
        width: 36%;
        mask-image: linear-gradient(to right, transparent 5%, black 52%);
    }
}

@media (forced-colors: active) {
    .resources-hub .hub-title {
        -webkit-text-fill-color: CanvasText;
    }

    #header::after,
    footer[role='contentinfo']::before,
    .noel-avent-village {
        display: none;
    }

    #noel-avent-lien {
        color: LinkText;
        text-decoration: underline;
    }
}

@media print {
    .noel-avent-carte {
        display: none !important;
    }
}
