/* ---- Bandeau cookies (2026-10-19) ----
   Garde les classes .cookie-alert / .link-cookie lues par js/script.js (masquage au clic) ;
   .cookie-alert.cookie-banner prend le pas sur l'ancien style de style_2.css */
.cookie-alert.cookie-banner {
    position: fixed;
    left: 20px;
    right: auto;
    bottom: 20px;
    z-index: 1050;
    width: 380px;
    max-width: calc(100vw - 24px);
    margin: 0;
    padding: 1.1rem 1.15rem 1rem;
    background: #fff;
    color: #374151;
    opacity: 1;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(17, 24, 39, .18), 0 2px 8px rgba(17, 24, 39, .06);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: .86rem;
    line-height: 1.5;
    text-align: left;
    animation: cookieBannerIn .45s cubic-bezier(.2, .8, .2, 1) both;
    animation-delay: .6s;
}
.cookie-banner__head { display: flex; align-items: center; gap: .65rem; margin-bottom: .45rem; }
.cookie-banner__icon {
    flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff); font-size: 1.2rem;
}
.cookie-banner__title { margin: 0; font-size: .98rem; font-weight: 700; color: #111827; }
.cookie-banner__text { margin: 0 0 .9rem; color: #4b5563; }
.cookie-banner__text a { color: #4f46e5; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__text a:hover { color: #3730a3; }
.cookie-banner__actions { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; }
.cookie-banner .link-cookie {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    margin: 0; padding: .6rem 1.15rem; border: 0; border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff;
    font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer;
    box-shadow: 0 6px 16px rgba(99, 102, 241, .35);
    transition: transform .15s ease, box-shadow .15s ease;
}
.cookie-banner .link-cookie:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(99, 102, 241, .45); }
.cookie-banner .link-cookie:focus-visible { outline: 3px solid #c7d2fe; outline-offset: 2px; }

@keyframes cookieBannerIn {
    from { opacity: 0; transform: translateY(16px) scale(.98); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .cookie-alert.cookie-banner { animation: none; }
}

/* Mobile : feuille en bas d'ecran, bouton pleine largeur */
@media (max-width: 576px) {
    .cookie-alert.cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; padding: 1rem; }
    .cookie-banner .link-cookie { width: 100%; padding: .7rem 1rem; }
}

/* Theme sombre */
body[data-theme="dark"] .cookie-alert.cookie-banner { background: #1e293b; border-color: #334155; color: #cbd5e1; box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }
body[data-theme="dark"] .cookie-banner__title { color: #f1f5f9; }
body[data-theme="dark"] .cookie-banner__text { color: #94a3b8; }
body[data-theme="dark"] .cookie-banner__text a { color: #a5b4fc; }
body[data-theme="dark"] .cookie-banner__icon { background: #312e81; }
