header .custom-banner {
    position: relative;
    background-color: var(--pv-color-secondary-greenlight);
    z-index: 1000;
    animation: slideDown 0.3s ease-out;
}

header .custom-banner__container {
    position: relative;
    margin: 0 auto;
    padding: 20px 60px 20px 60px;
    display: flex;
    align-items: center;
    min-height: 50px;
    justify-content: center;
    flex-direction: column;
    width: max-content;
}

header .custom-banner__container p {
    margin: 0;
}

header .custom-banner__link {
    color: var(--pv-heading-color);
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin: auto;
    width: max-content;
}

header .custom-banner__close {
    position: absolute;
    top: min(50%, 25px);
    right: max(5%, 15px);
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 30px;
    font-weight: bold;
    color: var(--pv-heading-color);
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s ease;
    z-index: 1001;
    font-family: var(--bs-body-font-family);
}


/* Animation d'apparition */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation de fermeture */
header .custom-banner.closing {
    animation: slideUp 0.3s ease-in forwards;
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-100%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    header .custom-banner__container {
        padding: 12px 50px 12px 15px;
        min-height: 40px;
    }
    
    header .custom-banner__close {
        font-size: 20px;
    }
}