/**
 * Styles Public - Bandeau d'information
 * Version : 1.0.0
 * Polices système, contrastes WCAG, responsive, zéro marge externe.
 */

:root {
    /* Polices système pour performance et cohérence OS (Zéro octet téléchargé) */
    --abb-bandeau-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.abb-bandeau-banner {
    font-family: var(--abb-bandeau-font-family);
    font-size: 1.125rem;
    line-height: 1.6;
    
    /* Police plus fine (300) pour alléger le visuel du message */
    font-weight: 300; 
    
    position: relative;
    z-index: 9999;
    
    /* CORRECTION CRITIQUE : Suppression totale des marges externes pour éviter les décalages de layout */
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    box-sizing: border-box;
    
    /* Les couleurs de fond et de texte sont appliquées en inline par le PHP pour dynamique */
}

.abb-bandeau-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    
    /* Pas de marge externe */
    margin-top: 0;
    margin-bottom: 0;
}

.abb-bandeau-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1 1 auto;
    width: 100%;
    justify-content: center;
    text-align: center;
}

.abb-bandeau-message {
    /* Hérite du font-weight: 300 du parent */
    font-weight: inherit; 
}

.abb-bandeau-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: inherit; 
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    /* Le bouton reste en gras (700) pour le contraste et l'appel à l'action */
    font-weight: 700; 
    font-size: 1rem;
    border: 2px solid transparent;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    border-color: currentColor;
}

.abb-bandeau-button:hover,
.abb-bandeau-button:focus {
    background: #ffffff;
    color: #333333; 
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Responsive Mobile */
@media screen and (max-width: 782px) {
    .abb-bandeau-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 0.75rem;
    }

    .abb-bandeau-content {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .abb-bandeau-button {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}