/* ============================================================
   Solène — minimal base for pages built only from sl_* sections.
   Replaces the 80 KB legacy main.css on such pages: the reset and
   the promo banner are the only parts of main.css they use.
   Values are copied from main.css; keep the two in sync.
   ============================================================ */

:root {
    --transition: 0.3s ease;
    --banner-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    color: #2B1F17;
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* Promo banner (markup in header.php, behaviour in main.js) */
.promo-banner[hidden] { display: none !important; }
.promo-banner {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
    height: var(--banner-h); min-height: 50px;
    display: flex; align-items: center; overflow: hidden;
    transition: height var(--transition), opacity var(--transition);
}
.promo-banner.is-closing { height: 0 !important; min-height: 0 !important; opacity: 0; pointer-events: none; }
.promo-banner__inner {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 16px;
    padding: 0 48px 0 24px; font-size: 14px; font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.promo-banner__text { overflow: hidden; text-overflow: ellipsis; }
.promo-banner__link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; flex-shrink: 0; }
.promo-banner__close {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15); border: none; border-radius: 50%;
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    color: #fff; cursor: pointer; flex-shrink: 0; transition: background var(--transition);
}
.promo-banner__close:hover { background: rgba(255, 255, 255, 0.3); }
@media (max-width: 768px) {
    .promo-banner__inner { font-size: 13px; padding: 8px 44px 8px 16px; gap: 6px 12px; white-space: normal; flex-wrap: wrap; justify-content: center; text-align: center; }
    .promo-banner__text { white-space: normal; overflow: visible; text-overflow: clip; }
    .promo-banner__close { top: 12px; transform: none; }
}
