/* ==========================================
   MOSELLE ACTU — Stylesheet
   ========================================== */

/* --- RESET & BASE --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6E0B14;
    --primary-dark: #4d0810;
    --accent: #8a1a24;
    --accent-hover: #a02030;
    --grenat: #6E0B14;
    --grenat-light: #8a1a24;
    --grenat-pale: #f8eaec;
    --gold: #c9a84c;
    --bg: #f9f7f7;
    --white: #ffffff;
    --card-bg: #ffffff;
    --text: #1e1217;
    --text-light: #55454a;
    --text-muted: #8e7e82;
    --border: #e6dede;
    --shadow-sm: 0 1px 3px rgba(110,11,20,.06);
    --shadow-md: 0 4px 14px rgba(110,11,20,.08);
    --shadow-lg: 0 8px 30px rgba(110,11,20,.10);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: .25s ease;
    --font-sans: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Category colors */
    --cat-politique: #6E0B14;
    --cat-economie: #1a6b8a;
    --cat-culture: #6b3a7a;
    --cat-sport: #2a7a4a;
    --cat-faitsdivers: #b83a2a;
    --cat-environnement: #1a7a6a;
    --cat-business: #2c5282;
    --cat-quartier: #c47a20;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- TOP BAR --- */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,.7);
    font-size: .8rem;
    padding: 6px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-links a {
    color: rgba(255,255,255,.7);
    margin-left: 18px;
    font-weight: 500;
}

.top-links a:hover {
    color: #fff;
}

/* --- HEADER --- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    transition: background .3s ease, backdrop-filter .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.site-header.scrolled {
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 2px 24px rgba(0, 0, 0, .08);
    border-bottom-color: transparent;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 0;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-serif);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--primary-dark);
    line-height: 1.1;
}

.logo-tagline {
    font-size: .72rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: .3px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 8px 14px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--text-light);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--grenat);
    background: rgba(107, 29, 42, .06);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: all var(--transition);
}

/* --- BREAKING NEWS TICKER --- */
.breaking-bar {
    background: var(--primary);
    padding: 10px 0;
    overflow: hidden;
}

.breaking-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.breaking-badge {
    background: var(--grenat);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 4px;
    letter-spacing: 1px;
    white-space: nowrap;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: .7; }
}

.ticker-wrap {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.ticker {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: ticker-scroll 35s linear infinite;
    color: rgba(255,255,255,.9);
    font-size: .85rem;
    font-weight: 500;
}

.ticker-item {
    padding: 0 12px;
}

.ticker-sep {
    color: var(--grenat-light);
    font-size: 1.1rem;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* --- AD SLOTS --- */
.ad-slot {
    padding: 12px 0;
}

.ad-placeholder {
    display: none;
}

.ad-leaderboard .ad-placeholder {
    max-width: 728px;
    height: 90px;
    margin: 0 auto;
}

.ad-infeed .ad-placeholder {
    height: 120px;
}

.ad-sidebar .ad-placeholder {
    width: 100%;
    height: 250px;
}

/* --- LOCAL AD BANNER (configurable) --- */
.local-ad-slot {
    margin: 2rem 0;
    text-align: center;
}
.local-ad-banner {
    position: relative;
    display: inline-block;
    max-width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s;
}
.local-ad-banner:hover {
    box-shadow: var(--shadow-md);
}
.local-ad-banner img {
    display: block;
    max-width: 100%;
    height: auto;
}
.local-ad-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,.6);
    color: #fff;
    font-size: .65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

/* Mid-article ad */
.local-ad-mid {
    margin: 2rem 0;
    text-align: center;
}
.dark-mode .local-ad-mid {
    background: transparent;
}

.ad-label {
    opacity: .6;
}

/* --- MAIN LAYOUT --- */
.main-content {
    padding: 30px 0 50px;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    align-items: start;
}

/* --- HERO ARTICLE --- */
.hero-article {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition);
}

.hero-article:hover {
    box-shadow: var(--shadow-lg);
}

.hero-image-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.hero-article:hover .hero-image {
    transform: scale(1.03);
}

.hero-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--grenat);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.hero-body {
    padding: 24px 28px 28px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
}

.hero-title a:hover {
    color: var(--grenat);
}

.hero-excerpt {
    color: var(--text-light);
    font-size: .95rem;
    line-height: 1.65;
    margin-bottom: 16px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: .8rem;
    color: var(--text-muted);
}

/* --- CARD ARTICLES (DUO GRID) --- */
.articles-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

.card-article {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.card-article:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-image-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 5 / 3;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.card-article:hover .card-image {
    transform: scale(1.04);
}

.card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.cat-politique   { background: var(--cat-politique); }
.cat-economie    { background: var(--cat-economie); }
.cat-culture     { background: var(--cat-culture); }
.cat-sport       { background: var(--cat-sport); }
.cat-faitsdivers { background: var(--cat-faitsdivers); }
.cat-environnement { background: var(--cat-environnement); }
.cat-business    { background: var(--cat-business); }
.cat-quartier    { background: var(--cat-quartier); }

.card-body {
    padding: 16px 18px 20px;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.card-title a:hover {
    color: var(--grenat);
}

.card-excerpt {
    font-size: .82rem;
    color: var(--text-light);
    line-height: 1.55;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    gap: 14px;
    font-size: .75rem;
    color: var(--text-muted);
}

/* --- IN-FEED AD --- */
.ad-infeed {
    margin-top: 24px;
}

/* --- SECTION BLOCK --- */
.section-block {
    margin-top: 32px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.section-link {
    font-size: .85rem;
    font-weight: 600;
    color: var(--grenat);
}

.section-link:hover {
    text-decoration: underline;
}

/* --- LIST ARTICLES --- */
.list-article {
    display: flex;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.list-article:last-child {
    border-bottom: none;
}

.list-image-wrap {
    flex-shrink: 0;
    width: 180px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.list-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform .4s ease;
}

.list-article:hover .list-image {
    transform: scale(1.05);
}

.list-body {
    flex: 1;
    min-width: 0;
}

.list-category {
    display: inline-block;
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 6px;
}

.list-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
}

.list-title a:hover {
    color: var(--grenat);
}

.list-excerpt {
    font-size: .82rem;
    color: var(--text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.list-meta {
    display: flex;
    gap: 14px;
    font-size: .74rem;
    color: var(--text-muted);
}

/* --- LOAD MORE --- */
.load-more-wrap {
    margin-top: 28px;
    text-align: center;
}

.btn-load-more {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 36px;
    font-size: .9rem;
    font-weight: 700;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-load-more:hover {
    background: var(--primary);
    color: #fff;
}

/* --- SIDEBAR --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 80px;
}

.sidebar-widget {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget.ad-slot {
    padding: 0;
    background: none;
    box-shadow: none;
}

.widget-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--grenat);
}

/* Search */
.search-form {
    display: flex;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color var(--transition);
}

.search-form:focus-within {
    border-color: var(--primary);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 14px;
    font-size: .88rem;
    font-family: var(--font-sans);
    background: var(--white);
}

.search-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    transition: background var(--transition);
}

.search-btn:hover {
    background: var(--grenat);
}

/* Popular */
.popular-list {
    list-style: none;
    counter-reset: popular;
}

.popular-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-rank {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--grenat);
    line-height: 1;
    flex-shrink: 0;
    width: 28px;
}

.popular-link {
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
}

.popular-link:hover {
    color: var(--grenat);
}

/* CTA Partager une actu */
.widget-cta-actu {
    background: var(--bg-alt);
    border: 2px dashed var(--grenat);
    text-align: center;
}
.widget-cta-actu .widget-title {
    font-size: 1rem;
}
.cta-actu-text {
    font-size: .85rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 14px;
}
.cta-actu-btn {
    display: inline-block;
    background: var(--grenat);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition);
}
.cta-actu-btn:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* Météo */
.meteo-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.meteo-main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.meteo-icon {
    font-size: 2.4rem;
    line-height: 1;
}

.meteo-temp {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-dark);
}

.meteo-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meteo-city {
    font-weight: 700;
    font-size: .95rem;
}

.meteo-desc {
    font-size: .82rem;
    color: var(--text-light);
}

.meteo-minmax {
    display: flex;
    gap: 12px;
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.meteo-loading {
    font-size: .82rem;
    color: var(--text-muted);
    padding: 8px 0;
}

.meteo-forecast {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.forecast-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
}
.forecast-name {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: .03em;
}
.forecast-icon {
    font-size: 1.3rem;
    line-height: 1;
}
.forecast-temp {
    font-size: .8rem;
    font-weight: 800;
    color: var(--text);
}

/* Tags */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--bg);
    color: var(--text-light);
    font-size: .78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.tag:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Social */
.social-links {
    display: flex;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    transition: transform var(--transition), opacity var(--transition);
}

.social-btn:hover {
    transform: scale(1.1);
    opacity: .85;
}

.social-fb { background: #1877f2; }
.social-tw { background: #0f1419; }
.social-ig { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }

/* --- FOOTER --- */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,.75);
    padding-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 36px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-logo .logo-icon {
    width: 200px;
    height: 200px;
    filter: brightness(0) invert(1);
}

body.dark-mode .footer-logo .logo-icon {
    filter: none;
}

.footer-logo .logo-title {
    color: #fff;
    font-size: 1.15rem;
}

.footer-about {
    font-size: .85rem;
    line-height: 1.65;
    opacity: .7;
}

.footer-heading {
    font-family: var(--font-serif);
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: .85rem;
    opacity: .65;
    transition: opacity var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--grenat-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 18px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8rem;
    opacity: .5;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .sidebar-widget.widget-search {
        grid-column: 1 / -1;
    }

    .ad-sidebar {
        grid-column: 1 / -1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 12px 20px 20px;
        border-bottom: 2px solid var(--border);
        box-shadow: var(--shadow-md);
        gap: 2px;
    }

    .main-nav.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 12px 14px;
    }

    .menu-toggle {
        display: flex;
    }

    .articles-duo {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .hero-body {
        padding: 18px 20px 22px;
    }

    .list-article {
        flex-direction: column;
        gap: 12px;
    }

    .list-image-wrap {
        width: 100%;
    }

    .list-image {
        height: 180px;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .ad-leaderboard .ad-placeholder {
        max-width: 100%;
        height: 60px;
    }

    .ticker {
        animation-duration: 20s;
    }
}

@media (max-width: 480px) {
    .top-bar {
        display: none;
    }

    .hero-title {
        font-size: 1.15rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .card-title {
        font-size: .95rem;
    }
}

/* ==========================================
   SECONDARY PAGES STYLES
   ========================================== */

/* --- BREADCRUMB --- */
.breadcrumb {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: .82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.breadcrumb-item a {
    color: var(--text-light);
    transition: color var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--grenat);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    margin-right: 8px;
    color: var(--text-muted);
}

.breadcrumb-item.active {
    color: var(--text);
    font-weight: 600;
}

/* --- ARTICLE PAGE --- */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 36px;
    align-items: start;
}

.article-full {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.article-header {
    padding: 28px 32px 0;
}

.article-cat {
    display: inline-block;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 14px;
}

.article-title {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text);
}

.article-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.article-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--grenat);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .8rem;
    flex-shrink: 0;
}

.author-name {
    font-weight: 700;
    font-size: .9rem;
    display: block;
    color: var(--text);
}

.article-date {
    font-size: .8rem;
    color: var(--text-muted);
    display: block;
}

.article-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.read-time {
    font-size: .8rem;
    color: var(--text-muted);
    padding-right: 14px;
    border-right: 1px solid var(--border);
}

.share-buttons {
    display: flex;
    gap: 6px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition);
}

.share-btn:hover {
    background: var(--grenat);
    color: #fff;
    border-color: var(--grenat);
}

.article-hero-img {
    margin: 24px 0 0;
}

.article-hero-img img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

.article-hero-img figcaption {
    padding: 10px 32px;
    font-size: .78rem;
    color: var(--text-muted);
    font-style: italic;
}

.article-body {
    padding: 24px 32px 32px;
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--text);
}

.article-body p {
    margin-bottom: 18px;
}

.article-body h2 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 800;
    margin: 32px 0 14px;
    color: var(--text);
}

.article-lead {
    font-size: 1.1rem;
    line-height: 1.75;
    border-left: 4px solid var(--grenat);
    padding-left: 18px;
    margin-bottom: 24px;
}

.article-quote {
    background: var(--grenat-pale);
    border-left: 4px solid var(--grenat);
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-quote p {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 8px;
    color: var(--text);
}

.article-quote cite {
    font-size: .85rem;
    color: var(--text-muted);
    font-style: normal;
}

.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 32px 24px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.tags-label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-light);
}

.article-share-bottom {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 32px 28px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--text-light);
}

/* Related articles in sidebar */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.related-item {
    display: flex;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    transition: opacity var(--transition);
}

.related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-item:hover {
    opacity: .8;
}

.related-img {
    width: 80px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.related-title {
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.35;
    display: block;
    color: var(--text);
}

.related-date {
    font-size: .72rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

/* Related grid at bottom of article */
.related-section {
    margin-top: 40px;
    padding-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* --- CATEGORY PAGE --- */
.category-header {
    background: var(--grenat);
    color: #fff;
    padding: 36px 0;
}

.category-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.category-desc {
    font-size: .95rem;
    opacity: .8;
    max-width: 600px;
}

.category-header--faitsdivers { background: var(--cat-faitsdivers); }
.category-header--sport       { background: var(--cat-sport); }
.category-header--culture     { background: var(--cat-culture); }
.category-header--business    { background: var(--cat-business); }
.category-header--quartier    { background: var(--cat-quartier); }
.category-header--economie    { background: var(--cat-economie); }
.category-header--politique   { background: var(--cat-politique); }

/* ===== SPORTS RESULTS WIDGET ===== */
.widget-sport-results .sport-results {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.sport-match {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}
.sport-match:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.sport-match:first-child {
    padding-top: 0;
}
.match-league {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 0.35rem;
}
.match-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.match-team {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    flex: 1;
}
.match-team:last-child {
    text-align: right;
}
.match-score {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary);
    background: var(--primary-pale);
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    flex-shrink: 0;
    text-align: center;
    min-width: 3.5rem;
}
.match-date {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Prochain match */
.sport-next-match {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 2px dashed var(--primary-pale);
}
.next-match-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--white);
    background: var(--primary);
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 0.4rem;
}
.match-score-next {
    background: var(--bg-alt, #f0f0f2);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.8rem;
}

.card-horizontal {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.card-horizontal .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-horizontal .card-image-wrap {
    aspect-ratio: auto;
    height: 100%;
}

.card-horizontal .card-image {
    height: 100%;
}

.tag-active {
    background: var(--grenat);
    color: #fff;
    border-color: var(--grenat);
}

/* --- PAGINATION --- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-weight: 600;
    color: var(--text-light);
    background: var(--card-bg);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.page-link:hover {
    border-color: var(--grenat);
    color: var(--grenat);
}

.page-link.active {
    background: var(--grenat);
    color: #fff;
    border-color: var(--grenat);
}

.page-dots {
    padding: 0 6px;
    color: var(--text-muted);
}

.page-next {
    padding: 0 18px;
    white-space: nowrap;
}

/* --- STATIC PAGES (contact, about, legal) --- */
.page-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 12px;
}

.page-intro {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.6;
}

.page-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.page-content h2 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    margin: 28px 0 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.page-content h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.page-content p {
    font-size: .95rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 14px;
}

.page-content a {
    color: var(--grenat);
    font-weight: 600;
}

.page-content a:hover {
    text-decoration: underline;
}

.legal-content ul {
    margin: 10px 0 18px 20px;
    font-size: .95rem;
    line-height: 1.7;
    color: var(--text-light);
}

.legal-content li {
    margin-bottom: 6px;
}

/* --- ABOUT PAGE --- */
.about-section {
    margin-bottom: 28px;
}

.about-section:last-child {
    margin-bottom: 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 16px;
}

.value-card {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 22px;
    text-align: center;
    border: 1px solid var(--border);
}

.value-icon {
    color: var(--grenat);
    margin-bottom: 12px;
}

.value-card h3 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.value-card p {
    font-size: .85rem;
}

/* --- CONTACT PAGE --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.contact-card h3 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.contact-card p {
    font-size: .85rem;
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.5;
}

.contact-email {
    font-size: .88rem;
    font-weight: 700;
    color: var(--grenat);
}

.contact-email:hover {
    text-decoration: underline;
}

.contact-form {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: .9rem;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--grenat);
    box-shadow: 0 0 0 3px rgba(110,11,20,.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    background: var(--grenat);
    color: #fff;
    border: none;
    padding: 13px 32px;
    border-radius: var(--radius-sm);
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition);
    width: 100%;
}

.form-submit:hover {
    background: var(--accent-hover);
}

/* --- RESPONSIVE: SECONDARY PAGES --- */
@media (max-width: 768px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-header {
        padding: 20px 18px 0;
    }

    .article-title {
        font-size: 1.4rem;
    }

    .article-body {
        padding: 18px 18px 24px;
    }

    .article-hero-img figcaption {
        padding: 8px 18px;
    }

    .article-tags,
    .article-share-bottom {
        padding-left: 18px;
        padding-right: 18px;
    }

    .article-meta-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .read-time {
        border-right: none;
        padding-right: 0;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card-horizontal {
        grid-template-columns: 1fr;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .page-content {
        padding: 22px 18px;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .pagination {
        flex-wrap: wrap;
    }
}

/* --- CORRESPONDENT PAGE --- */
.correspondent-benefits {
    margin: 40px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.benefit-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    color: var(--grenat);
    margin-bottom: 14px;
}

.benefit-card h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text);
}

.benefit-card p {
    font-size: .9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.correspondent-profile {
    margin: 40px 0;
}

.profile-list {
    list-style: none;
    padding: 0;
    margin-top: 16px;
}

.profile-list li {
    padding: 12px 0 12px 32px;
    position: relative;
    font-size: .95rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    line-height: 1.6;
}

.profile-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--grenat);
    font-weight: 700;
    font-size: 1.1rem;
}

.correspondent-form-section {
    margin: 40px 0 20px;
}

.form-intro {
    margin-bottom: 24px;
    color: var(--text-light);
}

.correspondent-form {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.correspondent-form .form-group {
    margin-bottom: 20px;
}

.correspondent-form label {
    display: block;
    font-weight: 600;
    font-size: .85rem;
    margin-bottom: 6px;
    color: var(--text);
}

.correspondent-form input,
.correspondent-form select,
.correspondent-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: .9rem;
    background: var(--bg);
    color: var(--text);
    transition: border-color var(--transition);
}

.correspondent-form input:focus,
.correspondent-form select:focus,
.correspondent-form textarea:focus {
    outline: none;
    border-color: var(--grenat);
    box-shadow: 0 0 0 3px rgba(110, 11, 20, .1);
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 6px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    font-weight: 400;
    color: var(--text);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--grenat);
}

.form-consent {
    margin-top: 8px;
}

.form-consent a {
    color: var(--grenat);
    text-decoration: underline;
}

.btn-submit {
    background: var(--grenat);
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    margin-top: 8px;
}

.btn-submit:hover {
    background: var(--grenat-dark);
    transform: translateY(-1px);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--grenat);
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .correspondent-form {
        padding: 20px 16px;
    }
}

/* --- Dark mode support (optional, follows OS preference) --- */
/* --- DARK MODE (class-based toggle) --- */
body.dark-mode {
    --bg: #121215;
    --card-bg: #1c1c22;
    --text: #e6e4ea;
    --text-light: #aaa6b0;
    --text-muted: #6e6a74;
    --border: #2e2e38;
    --white: #1c1c22;
    --grenat: #c43040;
    --grenat-light: #d45060;
    --grenat-pale: #2a1418;
    --primary: #c43040;
    --primary-dark: #d45060;
    --accent: #c43040;
    --accent-hover: #d45060;
    --gold: #c9a84c;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
    --shadow-md: 0 4px 14px rgba(0,0,0,.4);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.5);
    --cat-politique: #c43040;
    --cat-economie: #4aa8c4;
    --cat-culture: #a070b8;
    --cat-sport: #50b870;
    --cat-faitsdivers: #e06050;
    --cat-environnement: #40b0a0;
    --cat-business: #5a9bd5;
    --cat-quartier: #e0a050;
}

body.dark-mode .site-header {
    background: #1c1c22;
}
body.dark-mode .site-header.scrolled {
    background: rgba(28, 28, 34, .5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 2px 24px rgba(0, 0, 0, .3);
    border-bottom-color: transparent;
}

body.dark-mode .top-bar {
    background: #101014;
}

body.dark-mode .logo-title,
body.dark-mode .footer-logo .logo-title {
    color: #e6e4ea;
}

body.dark-mode .menu-toggle span {
    background: #e6e4ea;
}

body.dark-mode .search-input {
    background: #242428;
    color: #e6e4ea;
}

body.dark-mode .ad-placeholder {
    background: linear-gradient(135deg, #1c1c22 0%, #242428 100%);
    border-color: #2e2e38;
}

body.dark-mode .tag {
    background: #242428;
    border-color: #2e2e38;
    color: #aaa6b0;
}

body.dark-mode .main-nav {
    background: transparent;
}

body.dark-mode .widget-title {
    color: #e6e4ea;
}

body.dark-mode .section-title {
    color: #e6e4ea;
}

body.dark-mode .meteo-temp {
    color: #e6e4ea;
}

body.dark-mode .popular-rank {
    color: #c43040;
}

body.dark-mode .site-footer {
    background: #101014;
}

body.dark-mode .breaking-bar {
    background: #181820;
}

body.dark-mode .btn-load-more {
    background: #1c1c22;
    border-color: #c43040;
    color: #e6e4ea;
}

body.dark-mode .btn-load-more:hover {
    background: #c43040;
    color: #fff;
}

/* --- Theme toggle button --- */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--grenat-pale);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
    color: var(--grenat);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--grenat);
    color: #fff;
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform .4s ease, opacity .3s ease;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
}

.theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

body.dark-mode .theme-toggle {
    background: #2a2a34;
    color: #f0c040;
}

body.dark-mode .theme-toggle:hover {
    background: #3a3a48;
    color: #ffd050;
}

body.dark-mode .theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

body.dark-mode .theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: #fff;
    border-top: 3px solid var(--primary);
    box-shadow: 0 -4px 24px rgba(0,0,0,.15);
    padding: 1.5rem 1rem;
    transform: translateY(100%);
    transition: transform .4s ease;
}
.cookie-banner.visible {
    transform: translateY(0);
}
.cookie-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}
.cookie-text {
    flex: 1;
}
.cookie-text h3 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .4rem;
    color: var(--text);
}
.cookie-text p {
    font-size: .85rem;
    line-height: 1.55;
    color: var(--text-light);
    margin: 0;
}
.cookie-text a {
    color: var(--primary);
    text-decoration: underline;
}
.cookie-actions {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex-shrink: 0;
}
.cookie-btn {
    padding: .55rem 1.4rem;
    border-radius: var(--radius-sm);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background .2s, transform .15s;
    white-space: nowrap;
}
.cookie-btn:active {
    transform: scale(.97);
}
.cookie-btn-accept {
    background: var(--primary);
    color: #fff;
}
.cookie-btn-accept:hover {
    background: var(--primary-dark);
}
.cookie-btn-refuse {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border);
}
.cookie-btn-refuse:hover {
    background: var(--bg-alt);
}
.cookie-btn-settings {
    background: transparent;
    color: var(--text-light);
    font-size: .78rem;
    padding: .35rem 1rem;
}
.cookie-btn-settings:hover {
    text-decoration: underline;
}

/* Cookie settings panel */
.cookie-settings {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.cookie-settings.open {
    display: block;
}
.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 0;
}
.cookie-option-info {
    flex: 1;
}
.cookie-option-info strong {
    font-size: .85rem;
    color: var(--text);
}
.cookie-option-info p {
    font-size: .75rem;
    color: var(--text-muted);
    margin: .15rem 0 0;
}
/* Toggle switch */
.cookie-toggle {
    position: relative;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
    margin-left: 1rem;
}
.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.cookie-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #ccc;
    border-radius: 24px;
    transition: background .2s;
}
.cookie-toggle .slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
}
.cookie-toggle input:checked + .slider {
    background: var(--primary);
}
.cookie-toggle input:checked + .slider::before {
    transform: translateX(18px);
}
.cookie-toggle input:disabled + .slider {
    opacity: .5;
    cursor: not-allowed;
}
.cookie-save-btn {
    margin-top: .75rem;
    padding: .5rem 1.2rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
}
.cookie-save-btn:hover {
    background: var(--primary-dark);
}

/* Dark mode */
body.dark-mode .cookie-banner {
    background: #1c1c22;
    border-top-color: var(--primary);
    box-shadow: 0 -4px 24px rgba(0,0,0,.5);
}
body.dark-mode .cookie-btn-refuse {
    border-color: #3a3a44;
    color: #aaa;
}
body.dark-mode .cookie-btn-refuse:hover {
    background: #242428;
}
body.dark-mode .cookie-toggle .slider {
    background: #444;
}

@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
    }
    .cookie-actions {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }
    .cookie-btn {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }
}
