/* Organes kit sur la vitrine EXPERT'O : bannières promo, popups, bandeau cookies.
   Règles extraites de main.css ; variables mappées aux couleurs du thème Experto. */
:root {
  --blanc: #ffffff;
  --blanc-10: rgba(255, 255, 255, 0.10);
  --blanc-60: rgba(255, 255, 255, 0.60);
  --font-display: 'Red Hat Display', 'DM Sans', system-ui, -apple-system, sans-serif;
  --noir-200: #1a1540;
  --noir-300: #29235C;
  --promo-banner-h: 0px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-xl: 0 16px 60px rgba(41, 35, 92, 0.28);
  --space-4: 16px;
  --space-5: 24px;
}
/* =====================================================
   15. BANNER COOKIES
   ===================================================== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 560px;
    margin: 0 auto;
    background: var(--noir-300);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-5);
    z-index: 1000;
    display: none;
    border: 1px solid var(--blanc-10);
}
.cookie-banner.visible { display: block; animation: slideUp 0.4s ease-out; }
.cookie-banner h4 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--blanc);
}
.cookie-banner p {
    font-size: 13px;
    color: var(--blanc-60);
    margin-bottom: var(--space-4);
    line-height: 1.5;
}
.cookie-banner .cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-banner .btn { flex: 1; font-size: 13px; padding: 10px 16px; }
/* Variable utilisée pour décaler le header quand la bannière est visible */
:root { --promo-banner-h: 0px; }
/* ---- Bannière ---- */
#site-promo-banner {
    position: relative;
    z-index: 200;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 48px 8px 16px;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity .35s ease, transform .35s ease;
}
#site-promo-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.promo-banner-inner {
    flex: 1;
    text-align: center;
}
.promo-banner-text {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    color: inherit;
}
.promo-banner-text:hover { text-decoration: underline; }
.promo-banner-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(0,0,0,.15);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    flex-shrink: 0;
    transition: background .2s;
}
.promo-banner-close:hover { background: rgba(0,0,0,.3); }
.promo-banner-close svg   { width: 12px; height: 12px; }
/* Décaler le header sticky quand la bannière est affichée */
.site-header { top: var(--promo-banner-h); }
/* ---- Popup ---- */
#site-promo-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(2, 2, 2, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
    backdrop-filter: blur(4px);
}
#site-promo-popup-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.promo-popup-card {
    position: relative;
    background: var(--noir-300);
    border-radius: var(--radius-xl);
    overflow: hidden;
    max-width: 540px;
    width: 100%;
    box-shadow: 0 32px 80px rgba(0,0,0,.7);
    transform: scale(.92) translateY(16px);
    transition: transform .4s cubic-bezier(0.34, 1.3, 0.64, 1);
}
#site-promo-popup-overlay.is-visible .promo-popup-card {
    transform: scale(1) translateY(0);
}
.promo-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    background: rgba(2,2,2,.55);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background .2s;
}
.promo-popup-close:hover { background: rgba(2,2,2,.85); }
.promo-popup-close svg   { width: 12px; height: 12px; }
.promo-popup-img-link { display: block; }
.promo-popup-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: cover;
}
.promo-popup-footer {
    padding: 16px 20px;
    text-align: center;
    background: var(--noir-200);
}
