header.cover {

    width: 100%;
    height: 100vh;

    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background-color: transparent;
}


header.cover picture,
header.cover > img {
    position: var(--vef-cover-img-attachment, absolute);
    top: 0;
    bottom: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
}

header.cover > picture > img,
header.cover > img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: 0;
    /* Commencer transparent */
    transition: opacity 0.8s ease-in-out;
    /* Transition douce */
}

header.cover > picture > img.loaded,
header.cover > img.loaded {
    opacity: 1;
    /* Visible une fois chargée */
}

.hero-image::after {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    content: "\f063";
    z-index: 9999;
    font-family: "Font Awesome 5 Pro";
    font-size: 40px;
    color: var(--clr-gold);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.75);
    text-align: center;
}

header.cover #header-actual {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9;
}

header.cover .overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}



header.cover .accroche {
    position: relative;
    z-index: 2;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: var(--sections-padding-x);
    margin-right: var(--sections-padding-x);
    text-align: center;
    max-width: 1060px;
    text-shadow: 0 0 8px rgba(0, 0, 0, 1);
    font-size: 20px;
    line-height: 1.1em;
}

header.cover .accroche h1 {
    line-height: 1.2em;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 42px;
}


@media (min-width:700px) {


    header.cover .accroche {
        font-size: 30px;
        line-height: 1.2em;
    }

    header.cover .accroche h1 {
        font-size: 60px;
    }
}