/**
 * ADW Core - Bandeau top bar
 * S'accroche aux variables du thème NHP (--adw-*) avec repli si absentes.
 * Point de réglage unique : le bloc de variables locales ci-dessous.
 *
 * Réassurance :
 *   - ≥ 1390px : les 4 messages s'affichent en ligne (Splide détruit côté JS).
 *   - < 1390px : Splide reprend la main, 1 message centré qui défile.
 *   ⚠️ Le breakpoint 1390 doit être identique dans custom.js (breakpoints.destroy).
 */

.adwcore-topbar {
    --adwcore-bg: var(--adw-secondary, #545c60);          /* fond : ardoise */
    --adwcore-fg: var(--adw-text-white, #ffffff);         /* texte principal */
    --adwcore-fg-soft: rgba(255, 255, 255, 0.85);         /* texte secondaire */
    --adwcore-accent: var(--adw-primary, #91bd31);        /* vert de marque */
    --adwcore-divider: rgba(255, 255, 255, 0.18);         /* séparateurs */

    background-color: var(--adwcore-bg);
    color: var(--adwcore-fg);
    border-bottom: 2px solid var(--adwcore-accent);
    font-family: var(--adw-font-body, inherit);
    font-size: var(--adw-font-xs, 0.8125rem);
    line-height: 1.4;
}

.adwcore-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
    padding: 0.5rem 1rem;
}

/* =========================================================================
   Section informations (réassurance + téléphone)
   ========================================================================= */
.adwcore-info-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.adwcore-info-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
    padding: 0.15rem 1.1rem;
}

.adwcore-icon {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    opacity: 0.9;
}

.adwcore-text {
    color: var(--adwcore-fg);
}

/* Lien téléphone */
.adwcore-text-link {
    color: inherit;
    text-decoration: none;
    transition: color var(--adw-transition-fast, 0.15s ease);
}
.adwcore-text-link:hover,
.adwcore-text-link:focus {
    color: var(--adwcore-fg);
    text-decoration: underline;
}

/* =========================================================================
   Réassurance (Splide)
   ========================================================================= */
.adwcore-reassurance { width: auto; }
.adwcore-reassurance .splide__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.adwcore-usp {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
    padding: 0.15rem 1.1rem;
    list-style: none;
}
.adwcore-usp:first-child { padding-left: 0; }
.adwcore-usp--accent { font-weight: var(--adw-font-medium, 500); }
.adwcore-usp--accent .adwcore-icon {
    width: 18px;
    height: 18px;
    color: var(--adwcore-accent);
    opacity: 1;
}

/* =========================================================================
   Section localisation (drapeau + libellé)
   ========================================================================= */
.adwcore-location-section {
    display: flex;
    align-items: center;
}
.adwcore-location-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
/* Le SVG a des width/height en dur : on les neutralise ici. */
.adwcore-flag {
    display: block;
    width: 26px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.adwcore-reassurance {
    width: auto;
}

.adwcore-usp a {
    color: var(--adwcore-fg) !important;
}
.adwcore-usp a:hover {
    text-decoration: underline !important;
}
/* =========================================================================
   ≥ 86.875em (1390px) : réassurance en ligne, séparateurs verticaux
   ========================================================================= */
@media (min-width: 86.875em) {
    .adwcore-usp:not(:first-child) {
        border-left: 1px solid var(--adwcore-divider);
    }
    .adwcore-info-item:not(:first-child) {
        border-left: 1px solid var(--adwcore-divider);
    }
}

/* =========================================================================
   < 86.875em (1390px) : Splide reprend la main (4 par vue qui défilent)
   Ces règles remplacent ce que le CSS core de Splide ferait, en filet
   de sécurité même si splide-core.min.css ne charge pas.
   ========================================================================= */
@media (max-width: 86.8125em) {
    .adwcore-reassurance {
        width: 100%;
        max-width: 56rem;
        margin-inline: auto;
    }
    .adwcore-reassurance .splide__track { overflow: hidden; }
    .adwcore-reassurance .splide__list { flex-wrap: nowrap; }
    .adwcore-usp {
        flex: 0 0 25%;
        justify-content: center;
        border-left: 0 !important;
        padding: 0.15rem 0.5rem;
    }
}

@media (max-width: 75.8125em) {
    .adwcore-reassurance {
        max-width: 40rem;
    }
}

/* =========================================================================
   ≤ 61.9375em (991px) : on masque le drapeau décoratif
   ========================================================================= */
@media (max-width: 61.9375em) {
    .adwcore-location-section { display: none; }
}

/* =========================================================================
   ≤ 47.9375em (767px) : centrage + on masque les horaires (gain de place)
   ========================================================================= */
@media (max-width: 47.9375em) {
    .adwcore-usp { flex: 0 0 100%; }
    .adwcore-topbar-inner { justify-content: center; }
    .adwcore-info-section { justify-content: center; }
    .adwcore-hours { display: none; }

    .adwcore-info-section {
        width: 100%;
    }
}