/* ============================================
   COOKIE CONSENT — bandeau + carte différée
   Chargé sur toutes les pages (la carte Maps vit dans le footer partagé).
   ============================================ */

/* ---------- BANDEAU ---------- */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: clamp(0.8889rem, 2vw, 1.6667rem);
    transform: translate(-50%, 1.3333rem);
    z-index: 11000;
    width: min(34rem, calc(100vw - 2.2222rem));
    background: var(--ocre);
    color: var(--cuivre);
    border: 1px solid var(--or);
    border-radius: 1.1111rem;
    box-shadow: 0 1.1111rem 2.7778rem -0.8889rem rgba(35, 16, 14, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-4) var(--ease-out-quart),
                transform var(--dur-4) var(--ease-out-expo);
}

.cookie-banner.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.cookie-banner__inner {
    display: flex;
    flex-direction: column;
    gap: 1.1111rem;
    padding: clamp(1.1111rem, 2.4vw, 1.4444rem);
}

.cookie-banner__title {
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    line-height: var(--lh-h3);
    font-weight: var(--fw-regular);
    color: var(--or);
    margin: 0 0 0.4444rem;
}

.cookie-banner__body {
    font-family: var(--font-body);
    font-size: var(--fs-body-sm);
    line-height: var(--lh-relaxed);
    color: var(--cuivre);
    margin: 0;
}

.cookie-banner__link {
    color: var(--or);
    text-decoration: underline;
    text-underline-offset: 0.1667rem;
}

.cookie-banner__link:hover { opacity: 0.82; }

.cookie-banner__actions {
    display: flex;
    gap: 0.7778rem;
    justify-content: flex-end;
}

/* ---------- BOUTONS ---------- */
.cookie-btn {
    font-family: var(--font-heading);
    font-size: var(--fs-body-sm);
    font-weight: var(--fw-medium);
    line-height: 1.2;
    padding: 0.5556rem 1.3333rem;
    border-radius: 2.0556rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: opacity var(--dur-2) ease, transform var(--dur-2) var(--ease-out-quad);
}

.cookie-btn:hover { transform: translateY(-0.1111rem); }
.cookie-btn:focus-visible { outline: 0.1111rem solid var(--or); outline-offset: 0.1667rem; }

.cookie-btn--solid { background: var(--cuivre); color: var(--ocre); }
.cookie-btn--solid:hover { opacity: 0.92; }

.cookie-btn--ghost {
    background: transparent;
    color: var(--cuivre);
    border-color: var(--cuivre);
}
.cookie-btn--ghost:hover { opacity: 0.8; }

/* ---------- VARIANTE TEAL (.cookie-banner--teal) ----------
   Appliquée par cookie-consent.js sur les pages teal (kinésiologie, contact).
   Fond teal + texte/accents or, en miroir de .footer--teal afin que le bandeau
   et le pied de page partagent exactement le même système de couleurs. */
.cookie-banner--teal {
    background: var(--teal);
    color: var(--or);
    border-color: var(--or);
}

.cookie-banner--teal .cookie-banner__title,
.cookie-banner--teal .cookie-banner__body,
.cookie-banner--teal .cookie-banner__link { color: var(--or); }

.cookie-banner--teal .cookie-btn--solid { background: var(--or); color: var(--teal); }

.cookie-banner--teal .cookie-btn--ghost {
    color: var(--or);
    border-color: var(--or);
}

/* ---------- CARTE GOOGLE MAPS DIFFÉRÉE ----------
   Tant que le consentement n'est pas donné, l'iframe reste vide (sans src) et
   un bouton-substitut invite à l'afficher. Le conteneur .footer-address-map
   garde son fond gris + son arrondi (footer.css). */
.footer-address-map.map-blocked iframe { display: none; }

.map-consent {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6667rem;
    padding: clamp(1.1111rem, 3vw, 1.6667rem);
    background: var(--gray-placeholder);
    border: none;
    border-radius: inherit;
    cursor: pointer;
    text-align: center;
    color: var(--ocre);
    font-family: var(--font-body);
    transition: background var(--dur-2) ease;
}

.map-consent[hidden] {
    display: none !important;
}

.map-consent:hover { background: #cfcfcf; }
.map-consent:focus-visible { outline: 0.1111rem solid var(--ocre); outline-offset: -0.2222rem; }

.map-consent__icon {
    width: 2rem;
    height: 2rem;
    color: var(--ocre);
    opacity: 0.85;
}
.map-consent__icon svg { width: 100%; height: 100%; display: block; }

.map-consent__text {
    font-size: var(--fs-caption);
    line-height: var(--lh-relaxed);
    max-width: 22.2222rem;
}

.map-consent__text strong {
    font-weight: var(--fw-regular);
    text-decoration: underline;
    text-underline-offset: 0.1667rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .cookie-banner {
        left: 0.8889rem;
        right: 0.8889rem;
        transform: translateY(1.3333rem);
        width: auto;
    }
    .cookie-banner.is-visible { transform: translateY(0); }

    .cookie-banner__actions { justify-content: stretch; }
    .cookie-btn { flex: 1; }
}
