/* ================================================================
   NUTIZIA — style.css v20 — "Riviera Press"
   Design éditorial méditerranéen
   ================================================================ */

/* ==================== PALETTE & FONDATIONS ==================== */
:root {
    --ntz-ink: #1a1a2e;
    --ntz-ink-soft: #2d2d48;
    --ntz-muted: #6e7186;
    --ntz-cream: #faf7f2;
    --ntz-cream-deep: #f0ebe2;
    --ntz-paper: #fffefa;
    --ntz-white: #ffffff;
    --ntz-blue: #1a5f8c;
    --ntz-blue-deep: #0f3d5c;
    --ntz-blue-night: #0c2b42;
    --ntz-red: #c0392b;
    --ntz-gold: #c9913e;
    --ntz-border: rgba(26,26,46,0.08);
    --ntz-border-warm: rgba(180,160,130,0.22);
    --ntz-shadow-xs: 0 1px 2px rgba(26,26,46,0.04);
    --ntz-shadow-sm: 0 1px 4px rgba(26,26,46,0.06), 0 1px 2px rgba(26,26,46,0.04);
    --ntz-shadow-md: 0 4px 16px rgba(26,26,46,0.07);
    --ntz-shadow-lg: 0 12px 40px rgba(26,26,46,0.10);
    --ntz-radius: 10px;
    --ntz-radius-lg: 14px;
    /* Compat anciennes variables */
    --ast-global-color-0: var(--ntz-blue);
    --ast-global-color-1: var(--ntz-ink);
    --ast-global-color-2: var(--ntz-ink);
    --ast-global-color-3: var(--ntz-muted);
    --ast-global-color-4: var(--ntz-cream);
    --ast-global-color-5: var(--ntz-paper);
    --ast-global-color-6: var(--ntz-cream-deep);
    --ast-border-color: var(--ntz-border-warm);
    --ast-link-color: var(--ntz-blue);
    --ast-link-hover-color: var(--ntz-red);
    --ast-card-bg: var(--ntz-white);
    --ast-card-border: var(--ntz-border-warm);
    --ast-accent: var(--ntz-red);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
    color: var(--ntz-ink);
    background: var(--ntz-cream);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Réserver l'espace - évite CLS */
.ast-container { min-height: 80vh; }
.ast-posts-grid { min-height: 400px; }
.ast-weather-ticker { min-height: 42px; }
.ast-stats-bar { min-height: 36px; }
#featuredArticle { min-height: 0; }

a { color: var(--ntz-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ntz-red); }

/* ==================== HEADER ==================== */
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }

.ast-header {
    background: linear-gradient(135deg, var(--ntz-blue-night) 0%, var(--ntz-blue-deep) 50%, #143f5c 100%);
    box-shadow: 0 2px 20px rgba(12,43,66,0.25);
    position: relative;
    z-index: 100;
}

.ast-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ast-site-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.ast-logo {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    aspect-ratio: 1/1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.ast-site-identity-text {
    display: flex;
    flex-direction: column;
}

.ast-site-title {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.ast-site-tagline {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
    font-weight: 400;
    margin-top: 1px;
    letter-spacing: 0.02em;
}

.ast-instagram-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    flex-shrink: 0;
}
.ast-instagram-link:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.4);
}

.ast-donate-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 10px;
    background: #FFDD00;
    color: #000;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    transition: transform .2s, box-shadow .2s;
    flex-shrink: 0;
    white-space: nowrap;
}
.ast-donate-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 221, 0, 0.5);
}
.ast-donate-link svg { flex-shrink: 0; }

/* ==================== NAVIGATION ==================== */
.ast-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.ast-nav-link {
    display: inline-block;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    line-height: 1.3;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    font-family: inherit;
    border-radius: 8px;
    letter-spacing: 0.01em;
}

.ast-nav-link:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
}

.ast-nav-link.active {
    color: var(--ntz-blue-night);
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.ast-nav-count {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 4px;
}
.ast-nav-link.active .ast-nav-count {
    background: var(--ntz-blue);
    color: #fff;
}

/* ==================== MOBILE MENU ==================== */
.ast-mobile-toggle {
    display: none;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 4px;
    width: 38px;
    height: 38px;
    justify-content: center;
    align-items: center;
}

.ast-mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ==================== SECTIONS ==================== */
.ast-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 40px;
}

.ast-section {
    display: none;
}

.ast-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==================== ANIMATIONS CARTES ==================== */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.ast-post { animation: slideUp 0.4s ease both; }
.ast-posts-grid .ast-post:nth-child(1) { animation-delay: 0s; }
.ast-posts-grid .ast-post:nth-child(2) { animation-delay: 0.04s; }
.ast-posts-grid .ast-post:nth-child(3) { animation-delay: 0.08s; }
.ast-posts-grid .ast-post:nth-child(4) { animation-delay: 0.12s; }
.ast-posts-grid .ast-post:nth-child(5) { animation-delay: 0.16s; }
.ast-posts-grid .ast-post:nth-child(6) { animation-delay: 0.2s; }
.ast-posts-grid .ast-post:nth-child(n+7) { animation-delay: 0.24s; }

/* Skeleton loading */
@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.ast-skeleton {
    background: linear-gradient(90deg, var(--ntz-cream-deep) 25%, var(--ntz-cream) 50%, var(--ntz-cream-deep) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}
.ast-skeleton-card {
    border-radius: var(--ntz-radius-lg);
    overflow: hidden;
    border: 1px solid var(--ntz-border-warm);
    background: var(--ntz-white);
}
.ast-skeleton-image { height: 140px; width: 100%; }
.ast-skeleton-line { height: 12px; margin: 10px 16px; border-radius: 4px; }
.ast-skeleton-line.short { width: 35%; margin-left: 16px; }
.ast-skeleton-line.medium { width: 60%; margin-left: 16px; }
.ast-skeleton-line.long { width: 85%; margin-left: 16px; }

/* ==================== ARTICLES GRID ==================== */
.ast-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.ast-post {
    background: var(--ntz-white);
    border: none;
    border-radius: var(--ntz-radius-lg);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    box-shadow: var(--ntz-shadow-sm);
}

.ast-post:hover {
    box-shadow: var(--ntz-shadow-lg);
    transform: translateY(-4px);
}

.ast-post-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    aspect-ratio: 16/9;
    background: var(--ntz-cream-deep);
}

.ast-post-placeholder {
    width: 100%;
    height: 150px;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.ast-post-placeholder.cat-politique { background: linear-gradient(135deg, #fde8e8 0%, #fbd5d5 100%); color: #c0392b; }
.ast-post-placeholder.cat-faits-divers { background: linear-gradient(135deg, #f0e6ff 0%, #e4d4ff 100%); color: #7c3aed; }
.ast-post-placeholder.cat-sport { background: linear-gradient(135deg, #fff0e0 0%, #ffe0c0 100%); color: #d35400; }
.ast-post-placeholder.cat-culture { background: linear-gradient(135deg, #e0f5f8 0%, #c8eef5 100%); color: #0e7490; }
.ast-post-placeholder.cat-economie { background: linear-gradient(135deg, #dcf5e8 0%, #bbf0d0 100%); color: #0d7a4d; }
.ast-post-placeholder.cat-general { background: linear-gradient(135deg, #e0ecf5 0%, #c8ddf0 100%); color: var(--ntz-blue); }

.ast-post-content {
    padding: 14px 18px 18px;
}

.ast-post-category {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 9px;
    border-radius: 4px;
    margin-bottom: 10px;
}
.ast-cat-politique { background: #fde8e8; color: #c0392b; }
.ast-cat-faits-divers { background: #f0e6ff; color: #7c3aed; }
.ast-cat-sport { background: #fff0e0; color: #d35400; }
.ast-cat-culture { background: #e0f5f8; color: #0e7490; }
.ast-cat-economie { background: #dcf5e8; color: #0d7a4d; }
.ast-cat-general { background: #e0ecf5; color: var(--ntz-blue); }

.ast-post-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.38;
    color: var(--ntz-ink);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.ast-post:hover .ast-post-title {
    color: var(--ntz-blue);
}

.ast-post-excerpt {
    font-size: 13px;
    line-height: 1.55;
    color: var(--ntz-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.ast-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--ntz-muted);
    padding-top: 12px;
    border-top: 1px solid var(--ntz-border-warm);
    gap: 8px;
}

.ast-post-source {
    font-weight: 700;
    color: var(--ntz-blue);
    margin-right: 4px;
}

/* ==================== AQI QUALITY AIR ==================== */
.ast-aqi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}
.ast-aqi-zone { margin-bottom: 18px; }
.ast-aqi-zone-header {
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
    padding: 10px 14px; background: var(--ntz-white); border-radius: var(--ntz-radius);
    border: 1px solid var(--ntz-border-warm); box-shadow: var(--ntz-shadow-xs);
}
.ast-aqi-zone-header .ast-aqi-zone-icon { font-size: 20px; }
.ast-aqi-zone-header h3 { font-size: 15px; font-weight: 700; color: var(--ntz-ink); margin: 0; flex: 1; }
.ast-aqi-zone-header .ast-aqi-zone-avg { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.ast-aqi-zone-avg-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.ast-aqi-card {
    background: var(--ntz-white); border: 1px solid var(--ntz-border-warm); border-radius: var(--ntz-radius);
    padding: 12px 14px; display: flex; align-items: center; gap: 12px;
    transition: transform 0.15s, box-shadow 0.15s; box-shadow: var(--ntz-shadow-xs);
}
.ast-aqi-card:hover { transform: translateY(-2px); box-shadow: var(--ntz-shadow-md); }
.ast-aqi-badge {
    width: 48px; height: 48px; border-radius: var(--ntz-radius);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #fff; flex-shrink: 0;
}
.ast-aqi-badge .ast-aqi-value { font-size: 20px; font-weight: 800; line-height: 1; }
.ast-aqi-badge .ast-aqi-label-sm { font-size: 8px; font-weight: 600; text-transform: uppercase; opacity: 0.85; }
.ast-aqi-info { min-width: 0; flex: 1; }
.ast-aqi-info h4 { font-size: 13px; font-weight: 600; color: var(--ntz-ink); margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ast-aqi-info .ast-aqi-type { font-size: 10px; font-weight: 500; color: var(--ntz-muted); margin-bottom: 2px; }
.ast-aqi-info .ast-aqi-level { font-size: 12px; font-weight: 600; margin-bottom: 1px; }
.ast-aqi-info .ast-aqi-detail { font-size: 10px; color: var(--ntz-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ast-aqi-source { font-size: 11px; color: var(--ntz-muted); text-align: right; margin-top: 6px; }
.ast-aqi-source a { color: var(--ntz-blue); text-decoration: none; }
.ast-aqi-legend { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0; font-size: 10px; color: var(--ntz-muted); }
.ast-aqi-legend span { display: flex; align-items: center; gap: 4px; }
.ast-aqi-legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
@media (max-width: 600px) { .ast-aqi-grid { grid-template-columns: 1fr; } }

/* ==================== SHARE BUTTON ==================== */
.ast-share-btn {
    display: none; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--ntz-cream); border: 1px solid var(--ntz-border-warm);
    color: var(--ntz-muted); cursor: pointer; transition: all 0.2s;
    flex-shrink: 0; font-size: 14px;
}
.ast-share-btn:hover { background: var(--ntz-blue); color: #fff; border-color: var(--ntz-blue); }
@supports (touch-action: manipulation) {
    .ast-share-btn { display: inline-flex; }
}

/* ==================== FILTRES (BARRE SCROLLABLE) ==================== */
.ast-filter-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 24px 0;
}
.ast-filter-bar-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 0;
}
.ast-filter-bar-inner::-webkit-scrollbar { display: none; }
.ast-filter-group-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--ntz-muted);
    white-space: nowrap;
    flex-shrink: 0;
    padding-right: 6px;
    border-right: 2px solid var(--ntz-border-warm);
    margin-right: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ast-cat-filters {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.ast-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--ntz-border-warm);
    border-radius: 20px;
    background: var(--ntz-white);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--ntz-muted);
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: var(--ntz-shadow-xs);
}
.ast-cat-btn:hover {
    border-color: var(--ntz-blue);
    color: var(--ntz-ink);
    box-shadow: var(--ntz-shadow-sm);
}
.ast-cat-btn.active {
    background: var(--ntz-blue);
    border-color: var(--ntz-blue);
    color: #fff;
    box-shadow: 0 2px 10px rgba(26,95,140,0.3);
}
.ast-cat-btn.active .ast-cat-dot { background: #fff !important; }

.ast-cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ast-cat-count {
    font-size: 10px;
    opacity: 0.9;
}

/* ==================== SEARCH BAR ==================== */
.ast-search-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 24px 0;
}
.ast-search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}
.ast-search-input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    border: 1px solid var(--ntz-border-warm);
    border-radius: var(--ntz-radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--ntz-ink);
    background: var(--ntz-white);
    transition: all 0.2s;
    box-shadow: var(--ntz-shadow-xs);
}
.ast-search-input:focus {
    outline: none;
    border-color: var(--ntz-blue);
    box-shadow: 0 0 0 3px rgba(26,95,140,0.1);
}
.ast-search-input::placeholder { color: var(--ntz-muted); }
.ast-search-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 16px; }
.ast-search-clear {
    position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
    border: none; background: none; font-size: 16px; cursor: pointer;
    color: var(--ntz-muted); display: none;
}
.ast-search-clear.visible { display: block; }
.ast-search-count { text-align: center; font-size: 12px; color: var(--ntz-muted); margin-top: 6px; min-height: 18px; }

/* ==================== CITY FILTERS ==================== */
.ast-city-btn {
    padding: 5px 14px;
    border: 1px solid var(--ntz-border-warm);
    border-radius: 20px;
    background: var(--ntz-white);
    color: var(--ntz-muted);
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: var(--ntz-shadow-xs);
}
.ast-city-btn:hover { border-color: var(--ntz-blue); color: var(--ntz-blue); }
.ast-city-btn.active {
    background: var(--ntz-blue);
    border-color: var(--ntz-blue);
    color: #fff;
    box-shadow: 0 2px 8px rgba(26,95,140,0.25);
}

/* ==================== MÉTÉO ==================== */
.ast-weather-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.ast-weather-card {
    background: var(--ntz-white);
    border: none;
    border-radius: var(--ntz-radius-lg);
    padding: 20px;
    text-align: center;
    box-shadow: var(--ntz-shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}
.ast-weather-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ntz-shadow-md);
}

.ast-weather-city {
    font-size: 16px;
    font-weight: 700;
    color: var(--ntz-ink);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ntz-border-warm);
}

.ast-weather-main { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; }
.ast-weather-temp { font-size: 36px; font-weight: 700; color: var(--ntz-blue); }
.ast-weather-icon { font-size: 40px; }
.ast-weather-desc { font-size: 13px; color: var(--ntz-muted); text-transform: capitalize; margin-bottom: 15px; }
.ast-weather-details { display: flex; justify-content: center; gap: 15px; font-size: 12px; color: var(--ntz-muted); }

.ast-weather-forecast { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--ntz-border-warm); }
.ast-weather-forecast-title { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--ntz-muted); margin-bottom: 10px; letter-spacing: 0.05em; }
.ast-forecast-days { display: flex; justify-content: space-between; }
.ast-forecast-day { text-align: center; font-size: 11px; }
.ast-forecast-day-name { color: var(--ntz-muted); margin-bottom: 4px; }
.ast-forecast-day-icon { font-size: 18px; margin-bottom: 2px; }
.ast-forecast-day-temp { font-weight: 600; color: var(--ntz-ink); }

/* ==================== LOADING ==================== */
.ast-loading { text-align: center; padding: 60px 20px; color: var(--ntz-muted); }
.ast-spinner {
    width: 30px; height: 30px;
    border: 3px solid var(--ntz-cream-deep);
    border-top-color: var(--ntz-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== AVIS DE DÉCÈS ==================== */
.ast-deces-container { max-width: 800px; margin: 0 auto; }
.ast-deces-intro { text-align: center; margin-bottom: 30px; }
.ast-deces-intro h2 { font-size: 1.8rem; color: var(--ntz-ink); margin-bottom: 10px; }
.ast-deces-intro p { color: var(--ntz-muted); font-size: 1rem; }

.ast-deces-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 30px; }
.ast-deces-card {
    display: block; background: linear-gradient(135deg, #fefcf7 0%, #faf5eb 100%);
    border: 1px solid #e2d5b8; border-radius: var(--ntz-radius-lg); padding: 30px;
    text-align: center; text-decoration: none; color: #2c2416;
    transition: all 0.3s; position: relative; overflow: hidden;
}
.ast-deces-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #e2b04a, #c9913e, #e2b04a); }
.ast-deces-card:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(226,176,74,0.15); border-color: rgba(226,176,74,0.5); }
.ast-deces-icon { font-size: 2.5rem; margin-bottom: 15px; }
.ast-deces-card h3 { font-size: 1.2rem; color: #2c2416; margin-bottom: 10px; }
.ast-deces-card p { color: #5c4e38; font-size: 0.9rem; margin-bottom: 15px; line-height: 1.5; }
.ast-deces-link {
    display: inline-block; background: linear-gradient(135deg, #e2b04a, #c9913e);
    color: #1a1a2e; font-weight: 600; font-size: 0.9rem; padding: 8px 18px;
    border-radius: 8px; transition: all 0.3s;
}
.ast-deces-card:hover .ast-deces-link { background: linear-gradient(135deg, #f0c060, #e2b04a); }
.ast-deces-note { text-align: center; padding: 20px; background: var(--ntz-cream); border-radius: 8px; }
.ast-deces-note p { color: var(--ntz-muted); font-size: 0.85rem; margin: 0; }
.ast-deces-note a { color: var(--ntz-blue); }

/* Encadré Corse-Matin DansNosCoeurs */
.ast-deces-featured {
    display: block; background: linear-gradient(135deg, #fefcf7 0%, #faf5eb 100%);
    border: 1px solid #e2d5b8; border-radius: var(--ntz-radius-lg); padding: 28px 32px;
    margin-bottom: 24px; text-decoration: none; color: #2c2416; transition: all 0.3s;
    position: relative; overflow: hidden;
}
.ast-deces-featured::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #e2b04a, #c9913e, #e2b04a); }
.ast-deces-featured:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(226,176,74,0.15); border-color: rgba(226,176,74,0.5); }
.ast-deces-featured-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ast-deces-featured-logo { font-size: 2.2rem; background: rgba(180,140,60,0.12); width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ast-deces-featured-title h3 { font-size: 1.35rem; font-weight: 700; margin: 0; color: #2c2416; }
.ast-deces-featured-sub { font-size: 0.85rem; color: #8c7a5a; margin-top: 2px; }
.ast-deces-featured-desc { font-size: 0.95rem; color: #5c4e38; margin: 0 0 18px; line-height: 1.5; }
.ast-deces-featured-btn { display: inline-block; background: linear-gradient(135deg, #e2b04a, #c9913e); color: #1a1a2e; font-weight: 600; font-size: 0.9rem; padding: 10px 22px; border-radius: 8px; transition: all 0.3s; }
.ast-deces-featured:hover .ast-deces-featured-btn { background: linear-gradient(135deg, #f0c060, #e2b04a); transform: translateX(4px); }
@media (max-width: 600px) { .ast-deces-featured { padding: 20px; } .ast-deces-featured-title h3 { font-size: 1.15rem; } }
@media (max-width: 600px) { .ast-deces-grid { grid-template-columns: 1fr; } }

/* ==================== MODALE MÉTÉO DÉTAILLÉE ==================== */
.ast-weather-modal {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(12,43,66,0.5); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; z-index: 10000; padding: 20px;
}
.ast-weather-modal-content {
    background: var(--ntz-paper); border-radius: var(--ntz-radius-lg);
    max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto;
    position: relative; box-shadow: var(--ntz-shadow-lg);
}
.ast-weather-modal-close { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 28px; cursor: pointer; color: rgba(255,255,255,0.7); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background 0.2s; }
.ast-weather-modal-close:hover { background: rgba(255,255,255,0.15); color: #fff; }
.ast-weather-modal-header { background: linear-gradient(135deg, var(--ntz-blue-night) 0%, var(--ntz-blue-deep) 100%); color: white; padding: 30px 25px 20px; border-radius: var(--ntz-radius-lg) var(--ntz-radius-lg) 0 0; text-align: center; }
.ast-weather-modal-header h2 { font-size: 1.6rem; margin-bottom: 5px; }
.ast-weather-modal-header p { opacity: 0.8; text-transform: capitalize; }
.ast-weather-modal-main { text-align: center; padding: 25px; background: var(--ntz-cream); }
.ast-weather-modal-temp { font-size: 4rem; font-weight: 700; color: var(--ntz-blue); line-height: 1; }
.ast-weather-modal-feels { color: var(--ntz-muted); margin-top: 5px; }
.ast-weather-modal-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; padding: 20px 25px; }
.ast-weather-modal-detail { text-align: center; padding: 12px; background: var(--ntz-cream); border-radius: var(--ntz-radius); }
.ast-weather-modal-detail-icon { font-size: 1.3rem; display: block; margin-bottom: 5px; }
.ast-weather-modal-detail-label { font-size: 0.75rem; color: var(--ntz-muted); display: block; }
.ast-weather-modal-detail-value { font-size: 1rem; font-weight: 600; color: var(--ntz-ink); display: block; }
.ast-weather-modal-forecast { padding: 20px 25px; border-top: 1px solid var(--ntz-border-warm); }
.ast-weather-modal-forecast h3 { font-size: 0.9rem; margin-bottom: 15px; color: var(--ntz-ink); font-weight: 600; }
.ast-forecast-modal-days { display: flex; gap: 10px; }
.ast-forecast-modal-day { flex: 1; text-align: center; padding: 10px 8px; border-radius: var(--ntz-radius); background: var(--ntz-cream); }
.ast-forecast-modal-date { font-size: 0.75rem; color: var(--ntz-muted); margin-bottom: 4px; }
.ast-forecast-modal-icon { font-size: 1.5rem; margin-bottom: 2px; }
.ast-forecast-modal-temp { font-weight: 600; color: var(--ntz-ink); font-size: 0.9rem; }
.ast-forecast-modal-desc { font-size: 0.7rem; color: var(--ntz-muted); text-transform: capitalize; margin-top: 2px; }
@media (max-width: 480px) {
    .ast-weather-modal-details { grid-template-columns: repeat(2, 1fr); }
    .ast-forecast-modal-days { flex-wrap: wrap; }
    .ast-forecast-modal-day { min-width: calc(33% - 7px); }
}

/* ==================== FOOTER ==================== */
.ast-footer {
    background: var(--ntz-blue-night);
    padding: 28px 24px;
    text-align: center;
    margin-top: 50px;
}
.ast-footer-inner { max-width: 1200px; margin: 0 auto; }
.ast-footer-links { margin-bottom: 10px; }
.ast-footer-links a { color: rgba(255,255,255,0.6); margin: 0 15px; font-size: 14px; }
.ast-footer-links a:hover { color: #ffffff; }
.ast-footer-copy { font-size: 13px; color: rgba(255,255,255,0.35); }

/* ==================== BANDEAU MÉTÉO DÉFILANT ==================== */
.ast-weather-ticker {
    background: linear-gradient(90deg, var(--ntz-blue-deep) 0%, var(--ntz-blue) 50%, var(--ntz-blue-deep) 100%);
    color: white;
    padding: 9px 0;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ast-weather-ticker-content {
    display: flex; gap: 40px;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}
.ast-weather-ticker-content:hover { animation-play-state: paused; }
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ast-ticker-item { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; }
.ast-ticker-icon { font-size: 1.1rem; }
.ast-ticker-city { font-weight: 600; }
.ast-ticker-temp { opacity: 0.85; }
.ast-ticker-separator { opacity: 0.3; margin: 0 10px; }

/* ==================== SLOGAN HEADER ==================== */
@media (max-width: 768px) {
    .ast-site-tagline { display: none; }
}

/* ==================== ARTICLE À LA UNE ==================== */
.ast-featured {
    background: var(--ntz-white);
    border: none;
    border-radius: var(--ntz-radius-lg);
    margin-bottom: 28px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    position: relative;
    box-shadow: var(--ntz-shadow-md);
}
.ast-featured:hover {
    box-shadow: var(--ntz-shadow-lg);
    transform: translateY(-3px);
}

.ast-featured-badge {
    position: absolute; top: 16px; left: 16px;
    background: var(--ntz-red); color: white;
    padding: 6px 14px; font-size: 0.72rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.8px;
    border-radius: 6px; z-index: 2;
    box-shadow: 0 2px 8px rgba(192,57,43,0.35);
}

.ast-featured-image, .ast-featured-image-wrapper {
    width: 100%; height: 320px; display: block;
}
.ast-featured-image { object-fit: cover; background: var(--ntz-cream-deep); }

.ast-featured-placeholder {
    width: 100%; height: 320px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
}

.ast-featured-content { padding: 22px 26px 26px; }
.ast-featured-category {
    display: inline-block; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px;
    padding: 4px 10px; border-radius: 4px; margin-bottom: 12px;
}
.ast-featured-title {
    font-size: 1.4rem; font-weight: 700;
    color: var(--ntz-ink); margin-bottom: 10px; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    letter-spacing: -0.01em;
}
.ast-featured:hover .ast-featured-title { color: var(--ntz-blue); }
.ast-featured-excerpt {
    font-size: 14px; line-height: 1.6; color: var(--ntz-muted);
    margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.ast-featured-meta {
    display: flex; gap: 15px; font-size: 0.85rem; color: var(--ntz-muted);
    padding-top: 12px; border-top: 1px solid var(--ntz-border-warm);
}
.ast-featured-source { font-weight: 700; color: var(--ntz-blue); }

@media (max-width: 600px) {
    .ast-featured-image, .ast-featured-placeholder, .ast-featured-image-wrapper { height: 200px; }
    .ast-featured-title { font-size: 1.2rem; }
    .ast-featured-content { padding: 16px; }
}

/* ==================== BACK TO TOP ==================== */
.ast-back-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 42px; height: 42px;
    background: var(--ntz-blue-night);
    color: white; border: none; border-radius: var(--ntz-radius);
    cursor: pointer; font-size: 18px;
    opacity: 0; visibility: hidden;
    transition: all 0.3s; z-index: 999;
    box-shadow: var(--ntz-shadow-md);
}
.ast-back-top:hover { background: var(--ntz-blue); }
.ast-back-top.visible { opacity: 1; visibility: visible; }

/* ==================== STATISTIQUES ==================== */
.ast-stats-bar {
    background: var(--ntz-cream-deep);
    padding: 8px 15px;
    font-size: 0.78rem;
    color: var(--ntz-muted);
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--ntz-border-warm);
}
.ast-stat-item { display: flex; align-items: center; gap: 5px; }
.ast-stat-value { font-weight: 700; color: var(--ntz-blue); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .ast-posts-grid { grid-template-columns: repeat(2, 1fr); }
    .ast-weather-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .ast-header-inner { padding: 12px 16px; }
    .ast-site-identity { flex: 1; }
    .ast-mobile-toggle { display: flex; }
    .ast-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--ntz-blue-night);
        border-top: 1px solid rgba(255,255,255,0.08);
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
        padding: 12px; flex-direction: column; gap: 4px; z-index: 1000;
    }
    .ast-nav.open { display: flex; animation: slideDown 0.25s ease; }
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .ast-nav-link { padding: 12px 16px; border-radius: 8px; text-align: left; font-size: 14px; width: 100%; }
    .ast-container { padding: 0 14px 40px; }
    .ast-donate-link { padding: 5px 10px; font-size: 0.7rem; }

    .ast-filter-bar { padding: 6px 14px 0; }
    .ast-filter-bar-inner { gap: 6px; }
    .ast-filter-group-label { font-size: 10px; padding-right: 4px; }
    .ast-cat-filters { padding: 10px 14px 0; gap: 6px; }
    .ast-cat-btn { padding: 6px 10px; font-size: 12px; }
    .ast-city-btn { padding: 4px 10px; font-size: 11px; }
    .ast-agenda-filter { padding: 5px 10px; font-size: 12px; }
    .ast-agenda-city { padding: 4px 10px; font-size: 11px; }

    .ast-posts-grid { grid-template-columns: 1fr; gap: 16px; }
    .ast-weather-grid { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 480px) {
    .ast-logo { width: 36px; height: 36px; }
    .ast-site-title { font-size: 20px; }
}

/* ==================== PAGINATION ==================== */
.ast-pagination {
    display: flex; justify-content: center; align-items: center;
    gap: 12px; margin-top: 30px; padding: 20px 0;
}
.ast-page-btn {
    padding: 10px 20px; background: var(--ntz-white);
    border: 1px solid var(--ntz-border-warm); border-radius: var(--ntz-radius);
    color: var(--ntz-blue); font-weight: 600; font-family: inherit;
    font-size: 14px; cursor: pointer; transition: all 0.2s;
    box-shadow: var(--ntz-shadow-xs);
}
.ast-page-btn:hover { background: var(--ntz-blue); color: #fff; border-color: var(--ntz-blue); }
.ast-page-btn:disabled { opacity: 0.4; cursor: default; }
.ast-page-info { font-size: 13px; color: var(--ntz-muted); font-weight: 500; }

/* ==================== COOKIE BANNER ==================== */
.ast-cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--ntz-blue-night); color: white;
    padding: 16px 24px; z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    display: none;
}
.ast-cookie-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    flex-wrap: wrap;
}
.ast-cookie-text { font-size: 13px; color: rgba(255,255,255,0.8); flex: 1; min-width: 200px; }
.ast-cookie-text a { color: rgba(255,255,255,0.9); text-decoration: underline; }

/* ==================== NOTIFICATION BANNER ==================== */
.ast-notif-banner {
    display: none; position: fixed; bottom: 80px; right: 20px;
    background: var(--ntz-white); border-radius: var(--ntz-radius-lg);
    box-shadow: var(--ntz-shadow-lg); padding: 18px 22px;
    z-index: 9998; max-width: 380px; width: calc(100% - 40px);
    border: 1px solid var(--ntz-border-warm);
    animation: slideUp 0.4s ease;
}
.ast-notif-inner { display: flex; gap: 14px; align-items: flex-start; }
.ast-notif-icon { font-size: 28px; flex-shrink: 0; }
.ast-notif-text { flex: 1; }
.ast-notif-text strong { display: block; font-size: 14px; margin-bottom: 4px; color: var(--ntz-ink); }
.ast-notif-text p { font-size: 13px; color: var(--ntz-muted); margin: 0 0 12px; line-height: 1.4; }
.ast-notif-buttons { display: flex; gap: 8px; }
.ast-notif-btn {
    padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
    cursor: pointer; font-family: inherit; border: none; transition: all 0.2s;
}
.ast-notif-accept { background: var(--ntz-blue); color: white; }
.ast-notif-accept:hover { background: var(--ntz-blue-deep); }
.ast-notif-dismiss { background: var(--ntz-cream); color: var(--ntz-muted); }
.ast-notif-dismiss:hover { background: var(--ntz-cream-deep); }

/* ==================== VIGILANCE ==================== */
.ast-vigilance-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px; margin-bottom: 15px;
}
.ast-vigilance-card {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-radius: var(--ntz-radius);
    background: var(--ntz-white); box-shadow: var(--ntz-shadow-xs);
    transition: transform 0.2s; border: 1px solid var(--ntz-border-warm);
}
.ast-vigilance-card:hover { transform: translateY(-1px); box-shadow: var(--ntz-shadow-sm); }
.ast-vigilance-icon { font-size: 24px; flex-shrink: 0; }
.ast-vigilance-info { flex: 1; min-width: 0; }
.ast-vigilance-info strong { font-size: 13px; display: block; color: var(--ntz-ink); }
.ast-vigilance-info span { font-size: 11px; color: var(--ntz-muted); }

/* ==================== AGENDA ==================== */
.ast-agenda-container { max-width: 1200px; margin: 0 auto; }
.ast-agenda-header { text-align: center; margin-bottom: 18px; }
.ast-agenda-header h2 { font-size: 1.8rem; color: var(--ntz-ink); margin-bottom: 6px; font-weight: 700; }
.ast-agenda-header p { color: var(--ntz-muted); font-size: 0.95rem; }

.ast-agenda-filter {
    padding: 7px 14px; border: 1px solid var(--ntz-border-warm); border-radius: 20px;
    background: var(--ntz-white); cursor: pointer; font-family: inherit;
    font-size: 13px; font-weight: 500; color: var(--ntz-muted);
    transition: all 0.2s; white-space: nowrap; flex-shrink: 0;
    box-shadow: var(--ntz-shadow-xs);
}
.ast-agenda-filter:hover { border-color: #8B5CF6; color: #8B5CF6; }
.ast-agenda-filter.active { background: #8B5CF6; border-color: #8B5CF6; color: #fff; box-shadow: 0 2px 10px rgba(139,92,246,0.3); }

.ast-agenda-city {
    padding: 5px 13px; border: 1px solid var(--ntz-border-warm); border-radius: 20px;
    background: var(--ntz-white); cursor: pointer; font-family: inherit;
    font-size: 12px; font-weight: 500; color: var(--ntz-muted);
    transition: all 0.2s; white-space: nowrap; flex-shrink: 0;
    box-shadow: var(--ntz-shadow-xs);
}
.ast-agenda-city:hover { border-color: var(--ntz-blue); color: var(--ntz-blue); }
.ast-agenda-city.active { background: var(--ntz-blue); border-color: var(--ntz-blue); color: #fff; }

.ast-agenda-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px; min-height: 200px;
}
.ast-agenda-card {
    display: flex; flex-direction: column;
    background: var(--ntz-white); border: none; border-radius: var(--ntz-radius-lg);
    overflow: hidden; text-decoration: none; color: inherit;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: var(--ntz-shadow-sm);
}
.ast-agenda-card:hover { transform: translateY(-4px); box-shadow: var(--ntz-shadow-lg); }
.ast-agenda-card-image {
    width: 100%; height: 150px; object-fit: cover; background: var(--ntz-cream-deep);
}
.ast-agenda-card-body { padding: 14px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.ast-agenda-card-cat {
    display: inline-block; font-size: 10px; font-weight: 700;
    color: #8B5CF6; background: rgba(139,92,246,0.08);
    padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px;
}
.ast-agenda-card-title {
    font-size: 15px; font-weight: 700; line-height: 1.35;
    color: var(--ntz-ink); margin: 8px 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ast-agenda-card-meta { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-top: 1px solid var(--ntz-border-warm); }
.ast-agenda-card-date { font-size: 12px; color: var(--ntz-muted); }
.ast-agenda-card-location { font-size: 12px; color: var(--ntz-muted); }
.ast-agenda-empty { grid-column: 1/-1; text-align: center; padding: 40px; color: var(--ntz-muted); }
.ast-agenda-source { text-align: center; margin-top: 20px; padding: 15px; font-size: 0.85rem; color: var(--ntz-muted); }
.ast-agenda-source a { color: var(--ntz-blue); font-weight: 600; }

/* Classes complémentaires */
.ast-agenda-cities { /* déjà stylé via .ast-filter-bar-inner */ }
.ast-weather-modal-forecast-grid { display: flex; gap: 10px; }
.ast-weather-modal-forecast-day { flex: 1; text-align: center; padding: 10px 8px; border-radius: var(--ntz-radius); background: var(--ntz-cream); }
