/* =========================================================
   RESSO — Design System
   Identité « nuit & braise » catalane des Pyrénées-Orientales
   ========================================================= */

/* ─── Polices (fallback si hors ligne) ─────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

/* ─── Variables (surchargées par les thèmes saisonniers) ─ */
:root {
    --primary: #0D1B2A;      /* nuit */
    --secondary: #1B3A4B;    /* nuit profonde */
    --accent: #1E90FF;       /* accent (surchargé par thème) */
    --accent-2: #FF6347;
    --bg: #F6F8FA;
    --text: #0D1B2A;
    --text-soft: #5A6472;

    --surface: #FFFFFF;
    --border: #E7EBF0;
    --shadow-sm: 0 1px 3px rgba(13, 27, 42, 0.06), 0 1px 2px rgba(13, 27, 42, 0.04);
    --shadow-md: 0 4px 14px rgba(13, 27, 42, 0.08), 0 2px 4px rgba(13, 27, 42, 0.04);
    --shadow-lg: 0 12px 32px rgba(13, 27, 42, 0.14), 0 4px 10px rgba(13, 27, 42, 0.06);

    /* ─── Identité « nuit & braise » — fixes, insensibles aux thèmes ─── */
    --brand-night: #0D1B2A;
    --brand-night-2: #1A2F45;
    --brand-red: #C8102E;
    --brand-gold: #E8A33D;
    --brand-cream: #FBF7F0;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;

    --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

    --maxw: 1180px;
    --nav-h: 68px;
}

/* ─── Thèmes saisonniers ─────────────
   Les `:root` injectés en inline écrasent primary/secondary/accent/bg/text.
   L'identité « nuit & braise » (—brand-*) reste stable par-dessus. */
.theme-season { --accent: var(--primary, #0D1B2A); }

/* ─── Reset ────────────────────────────────────────────── */
*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    background: var(--brand-cream);
    color: var(--brand-night);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-red); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--brand-night);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ─── Utilitaires ──────────────────────────────────────── */
.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 64px 0; }

.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;
}

/* ─── Badges ───────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: rgba(232, 163, 61, 0.16);
    color: #8A5714;
    line-height: 1.6;
}

/* ─── Boutons ──────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 12px;
    border: none;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
    background: var(--brand-night);
    color: #fff;
}
.btn-primary:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-accent {
    background: var(--brand-red);
    color: #fff;
}
.btn-ghost {
    background: transparent;
    color: inherit;
    border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(13, 27, 42, 0.04); }

/* ─── Navbar ───────────────────────────────────────────── */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: color-mix(in srgb, var(--brand-night) 93%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(232, 163, 61, 0.22);
}

.site-nav__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.site-nav__brand img { height: 34px; }
.site-nav__tagline {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}

.site-nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.site-nav__links a {
    position: relative;
    color: rgba(255, 255, 255, 0.82);
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s ease, background 0.2s ease;
}
.site-nav__links a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 1px;
    background: var(--brand-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}
.site-nav__links a:hover { background: rgba(255, 255, 255, 0.06); color: var(--brand-gold); text-decoration: none; }
.site-nav__links a:hover::after { transform: scaleX(1); }
.site-nav__links a.is-active {
    background: none;
    color: var(--brand-gold);
    font-weight: 600;
}
.site-nav__links a.is-active::after { transform: scaleX(1); }


.nav-toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 6px 8px;
    line-height: 1;
}

/* Recherche repliable dans la navbar */
.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.nav-search__toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
}
.nav-search__toggle:hover { color: var(--brand-gold); }
.nav-search__form {
    display: none;
}
.nav-search__form.open {
    display: block;
}
.nav-search__form input {
    width: 200px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(232, 163, 61, 0.35);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
}
.nav-search__form input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}
.nav-search__form input:focus {
    border-color: var(--brand-gold);
}

/* ─── Hero ─────────────────────────────────────────────── */
.hero {
    position: relative;
    background: linear-gradient(155deg, #0D1B2A 0%, #17293D 52%, #4A1B23 100%);
    color: #fff;
    overflow: hidden;
}
/* Motif « résonance » en filigrane (cercles concentriques) */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 50%, transparent 0, transparent 90px, rgba(232, 163, 61, 0.14) 91px, transparent 93px),
        radial-gradient(circle at 50% 50%, transparent 0, transparent 150px, rgba(232, 163, 61, 0.09) 151px, transparent 153px),
        radial-gradient(circle at 50% 50%, transparent 0, transparent 215px, rgba(232, 163, 61, 0.06) 216px, transparent 218px);
}
.hero--center { text-align: center; }
.hero--tall { padding: 48px 24px; }
.hero--small { padding: 40px 24px; }

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.28;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.35), rgba(13, 27, 42, 0.65));
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
}
.hero__salutation {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #F4C36E;
    margin-bottom: 14px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(232, 163, 61, 0.16);
    border: 1px solid rgba(232, 163, 61, 0.42);
    color: #F4C36E;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.hero h1 {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}
.hero__lead {
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    opacity: 0.92;
    max-width: 640px;
    margin: 0 auto 28px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}
.hero__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Barre de recherche rapide dans le hero */
.hero-search {
    max-width: 640px;
    margin: 28px auto 0;
    display: flex;
    gap: 8px;
    background: #fff;
    padding: 8px;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
}
.hero-search input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--brand-night);
    background: transparent;
    outline: none;
}
.hero-search button {
    border: none;
    background: var(--brand-night);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.92rem;
}

/* ─── Météo géolocalisée (fine ligne sous le hero) ──────── */
.hero-meteo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 10px 16px;
    background: var(--brand-cream);
    color: var(--brand-night);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-bottom: 1px solid var(--border);
}
.hero-meteo__emoji {
    font-size: 1.05rem;
    line-height: 1;
}

/* ─── Cartes article ───────────────────────────────────── */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: inherit;
    text-decoration: none;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.article-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: color-mix(in srgb, var(--brand-night) 12%, var(--surface));
    overflow: hidden;
}
.article-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.article-card:hover .article-card__media img { transform: scale(1.04); }
.article-card__fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    color: rgba(255, 255, 255, 0.5);
}
.article-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    background: var(--brand-night);
    color: #F4C36E;
    border: 1px solid rgba(232, 163, 61, 0.45);
    box-shadow: var(--shadow-sm);
}

.article-card__body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.article-card__body h2,
.article-card__body h3 {
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.18rem * 1.3 * 2);
}
.article-card__body p {
    color: var(--text-soft);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card__meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-soft);
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* Carte "à la une" */
.featured-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    color: inherit;
    text-decoration: none;
}
.featured-card:hover { text-decoration: none; box-shadow: var(--shadow-lg); }
.featured-card__media { position: relative; min-height: 320px; }
.featured-card__media img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
}
.featured-card__body {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}
.featured-card__body h2 { font-size: 1.9rem; }
.featured-card__body p { color: var(--text-soft); }

/* ─── Titre de section ─────────────────────────────────── */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}
.section-head h2 {
    font-size: 1.7rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-head__more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-red);
}
.section-head--spaced { margin-top: 48px; }

/* ─── Bande-info consolidée (météo + date/fête + géoloc) ─── */
.infobar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.infobar__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--brand-night);
}
.infobar__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.infobar__emoji { font-size: 1.05rem; line-height: 1; }
.infobar__sep {
    width: 1px;
    height: 18px;
    background: var(--border);
}
.infobar__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-red);
    padding: 0;
    margin-left: auto;
}
.infobar__chevron {
    font-size: 0.9rem;
    color: var(--brand-red);
}

/* Liste déroulante « près de chez vous » (dans la bande-info) */
.geoloc__list {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 4px 24px 16px;
    display: flex;
    flex-direction: column;
}
.geoloc__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.geoloc__item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.geoloc__titre { font-weight: 600; }
.geoloc__item:first-child .geoloc__titre {
    font-weight: 700;
}
.geoloc__meta {
    color: var(--text-soft);
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ─── Catégories ───────────────────────────────────────── */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}
.cat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.cat-card__media { height: 120px; background-size: cover; background-position: center; position: relative; }
.cat-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--brand-red);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}
.cat-card__body { padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; }
.cat-card__icon {
    font-size: 2rem;
    line-height: 1;
    min-width: 44px;
    text-align: center;
}
.cat-card__body h3 { font-size: 1.1rem; margin-bottom: 4px; }
.cat-card__body p { color: var(--text-soft); font-size: 0.84rem; }

/* ─── Communes ─────────────────────────────────────────── */
.communes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.commune-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: var(--shadow-sm);
}
.commune-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.commune-card h3 { font-size: 1rem; }
.commune-card .nom {
    font-weight: 700;
    font-size: 1rem;
    color: var(--brand-night);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.commune-card .meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.commune-card .pop {
    font-size: 0.78rem;
    color: var(--text-soft);
    white-space: nowrap;
}
.commune-card .articles-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--brand-red);
    white-space: nowrap;
}
.commune-card .cp { color: var(--text-soft); font-size: 0.78rem; white-space: nowrap; }
.commune-card__trend {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: var(--brand-red);
    padding: 2px 8px;
    border-radius: 999px;
    align-self: flex-start;
}

/* ─── Formulaire de recherche ──────────────────────────── */
.search-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-md);
    margin: -40px auto 32px;
    max-width: 960px;
    position: relative;
    z-index: 2;
}
.search-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr auto;
    gap: 12px;
    align-items: end;
}
.search-group label {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 6px;
}
.search-group input,
.search-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--surface);
    color: var(--brand-night);
}
.search-group input:focus,
.search-group select:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}

.communes-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.commune-tag {
    display: inline-block;
    padding: 5px 13px;
    background: rgba(232, 163, 61, 0.14);
    border-radius: 999px;
    color: #8A5714;
    font-size: 0.8rem;
    text-decoration: none;
}
.commune-tag:hover { background: rgba(232, 163, 61, 0.26); text-decoration: none; }

/* ─── Résultats ────────────────────────────────────────── */
.result-card {
    display: flex;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 14px;
    color: inherit;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: var(--shadow-sm);
}
.result-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.result-card__thumb {
    width: 120px;
    height: 90px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.result-card__body { flex: 1; }
.result-card__body h3 { font-size: 1.08rem; margin-bottom: 4px; }
.result-card__body p {
    color: var(--text-soft);
    font-size: 0.88rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.result-card__meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--text-soft);
}

/* ─── Article ──────────────────────────────────────────── */
.article-layout {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 24px 64px;
}
.breadcrumb {
    color: var(--text-soft);
    font-size: 0.84rem;
    margin-bottom: 22px;
}
.breadcrumb a { color: var(--brand-red); }

.article-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 14px;
    line-height: 1.15;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--text-soft);
    font-size: 0.86rem;
    padding-bottom: 22px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
}
.article-hero-img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
}
.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--brand-night);
}
.article-content p { margin-bottom: 1.2em; }
.article-content h2 {
    font-size: 1.5rem;
    margin: 1.6em 0 0.6em;
}
.article-content h3 { font-size: 1.25rem; margin: 1.4em 0 0.5em; }
.article-content img {
    border-radius: var(--radius);
    margin: 1.5em 0;
}
.article-content a { text-decoration: underline; }

/* Callout ingrédients / recettes */
.ingredients-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}
.ingredients-box h3 { margin-bottom: 12px; }

/* Barre de partage */
.share-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin: 40px 0 20px;
}
.share-bar__label {
    font-weight: 600;
    margin-right: 4px;
    color: var(--text-soft);
    font-size: 0.86rem;
    letter-spacing: 0.02em;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--brand-night);
    font-weight: 600;
    font-size: 0.86rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.share-btn:hover {
    transform: translateY(-1px);
    border-color: var(--brand-gold);
    background: var(--brand-night);
    color: #fff;
}
.share-btn__icon {
    display: inline-flex;
    flex-shrink: 0;
}

/* ─── Commentaires ─────────────────────────────────────── */
.comments-section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.comment {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
    margin-bottom: 14px;
}
.comment .author { font-weight: 600; }
.comment .date { color: var(--text-soft); font-size: 0.76rem; margin-left: 8px; }
.comment .body { margin-top: 6px; font-style: italic; color: var(--brand-night); }
.comment__head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.badge--reader {
    background: color-mix(in srgb, var(--brand-gold) 16%, var(--surface));
    color: #6E4913;
    border: 1px solid color-mix(in srgb, var(--brand-gold) 40%, var(--border));
    font-size: 0.74rem;
    padding: 2px 8px;
}
.comment-reply {
    margin-top: 12px;
    padding: 14px 16px;
    border-left: 3px solid var(--brand-red);
    background: color-mix(in srgb, var(--brand-red) 5%, var(--surface));
    border-radius: 0 10px 10px 0;
}
.comment-reply + .comment-reply {
    margin-top: 8px;
}

.comment-form {
    margin-top: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}
.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.88rem;
}
.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--surface);
    color: var(--brand-night);
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}

/* ─── Encadré « En bref » (infos pratiques article) ───── */
.infos-pratiques {
    background: linear-gradient(155deg, #0D1B2A 0%, #17293D 100%);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 8px 0 28px;
    color: #fff;
}
.infos-pratiques__titre {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #F4C36E;
    margin-bottom: 14px;
}
.infos-pratiques__grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px 20px;
}
.infos-pratiques__item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}
.infos-pratiques__icone {
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
}
.infos-pratiques__texte {
    color: rgba(255, 255, 255, 0.92);
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.3;
}
.infos-pratiques__label {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}
.infos-pratiques__valeur {
    font-weight: 600;
    color: #fff;
}

/* ─── Cartes d'articles liés ───────────────────────────── */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

/* ─── Pages "info" (mentions, confidentialité) ─────────── */
.legal-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 24px 64px;
}
.legal-content h1 { margin-bottom: 12px; }
.legal-content h2 { font-size: 1.4rem; margin: 1.8em 0 0.6em; }
.legal-content p { margin-bottom: 1em; color: var(--text-soft); }

/* ─── État vide ────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 72px 20px;
    color: var(--text-soft);
    grid-column: 1 / -1;
}
.empty-state .icon { font-size: 3.2rem; margin-bottom: 16px; }
.empty-state h2 { margin-bottom: 8px; }
.empty-state p { max-width: 480px; margin: 0 auto; }

/* ─── Carte info commune ───────────────────────────────── */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: -40px auto 32px;
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding: 0 24px;
}
.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.info-card .value {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: var(--font-serif);
    color: var(--brand-red);
}
.info-card .label {
    font-size: 0.8rem;
    color: var(--text-soft);
    margin-top: 4px;
}

/* ─── Newsletter (footer) ──────────────────────────────── */
.newsletter-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 360px;
}
.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 180px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
}
.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.45);
}
.newsletter-form input[type="email"]:focus {
    border-color: var(--brand-gold);
}
.newsletter-form .btn {
    padding: 10px 16px;
    font-size: 0.88rem;
}

/* ─── Footer ───────────────────────────────────────────── */
.site-footer {
    background: var(--brand-night);
    color: rgba(255, 255, 255, 0.72);
    margin-top: 80px;
}
.site-footer__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 48px 24px 32px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
}
.site-footer h4 {
    color: #F4C36E;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    margin-bottom: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.site-footer a { color: rgba(255, 255, 255, 0.72); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer__brand p { margin: 12px 0 16px; font-size: 0.9rem; max-width: 340px; }
.site-footer__tagline { color: rgba(255, 255, 255, 0.9); }
.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    padding: 20px 24px;
    font-size: 0.82rem;
}

/* ─── Pagination ──────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    margin: 48px 0 48px;
}
.pagination__link,
.pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--brand-night);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pagination__link:hover,
.pagination__page:hover {
    background: rgba(232, 163, 61, 0.14);
    text-decoration: none;
}
.pagination__page.is-active {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
}
.pagination__link.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.pagination__pages {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.pagination__ellipsis {
    padding: 0 4px;
    color: var(--text-soft);
}

/* ─── Bloc « Aujourd'hui dans le 66 » ──────────────────── */
.aujourdhui {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light, #eee);
}
.aujourdhui__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px 40px;
}
.agenda__titre {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #666;
}
.agenda__date {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-muted, #5A6472);
    margin-top: 6px;
    margin-bottom: 20px;
}
.aujourdhui__humeur {
    font-size: 1.08rem;
    color: var(--brand-night);
    max-width: 720px;
    margin-bottom: 14px;
}
.podcast-player {
    max-width: 560px;
    margin: 4px 0 18px;
    padding: 12px 16px;
    background: rgba(200, 16, 46, 0.05);
    border: 1px solid rgba(200, 16, 46, 0.18);
    border-radius: var(--radius-sm);
}
.podcast-player h3 {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: var(--brand-red);
    margin-bottom: 8px;
}
.podcast-player audio {
    width: 100%;
}
.hero__citation {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    color: #F4C36E;
    border-left: 3px solid var(--brand-gold);
    padding-left: 14px;
    margin: 0 auto 28px;
    display: inline-block;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.meteo-bloc {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: rgba(30, 144, 255, 0.08);
    border: 1px solid rgba(30, 144, 255, 0.28);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 18px;
}
.meteo-bloc__main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.meteo-bloc__emoji {
    font-size: 1.9rem;
    line-height: 1;
}
.meteo-bloc__temp {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-serif);
    color: var(--brand-night);
}
.meteo-bloc__desc {
    font-size: 0.95rem;
    color: var(--brand-night);
}
.meteo-bloc__previsions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.meteo-bloc__jour {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 56px;
    padding: 6px 8px;
    border-radius: 10px;
    background: #FFFFFF;
    border: 1px solid var(--border);
}
.meteo-bloc__jour-nom {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #8A5714;
}
.meteo-bloc__jour-emoji {
    font-size: 1.15rem;
    line-height: 1.2;
}
.meteo-bloc__jour-temp {
    font-size: 0.74rem;
    color: var(--text-soft);
    white-space: nowrap;
}
.meteo-bloc__vent {
    font-size: 0.82rem;
    color: var(--brand-red);
    font-weight: 600;
}
.aujourdhui__fete {
    display: inline-flex;
    gap: 6px;
    align-items: baseline;
    background: rgba(232, 163, 61, 0.16);
    border: 1px solid rgba(232, 163, 61, 0.4);
    color: #6E4913;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.92rem;
    margin-bottom: 20px;
}
.aujourdhui__events h3 {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand-red);
    margin-bottom: 10px;
}
.aujourdhui__events ul {
    list-style: none;
    margin: 0 0 20px;
    display: grid;
    gap: 8px;
}
.aujourdhui__events li {
    display: flex;
    gap: 10px;
    align-items: baseline;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: var(--brand-night);
}
.aujourdhui__events .heure {
    font-weight: 700;
    color: var(--brand-red);
    min-width: 42px;
}
.aujourdhui__events .lieu {
    color: var(--text-soft);
}
.aujourdhui__citation {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.02rem;
    color: var(--text-soft);
    border-left: 3px solid var(--brand-gold);
    padding-left: 14px;
}

/* ─── Top bar météo (accueil) ──────────────────────────── */
.topbar-meteo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 16px;
    font-size: 0.78rem;
    color: var(--text-soft);
    background: color-mix(in srgb, var(--accent) 8%, var(--surface));
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
.topbar-meteo::-webkit-scrollbar { display: none; }
.topbar-meteo__emoji { font-size: 1rem; line-height: 1; }
.topbar-meteo__temp {
    font-weight: 800;
    font-family: var(--font-serif);
    color: var(--brand-night);
}
.topbar-meteo__range { color: var(--text-soft); }
.topbar-meteo__vent { color: var(--brand-red); font-weight: 600; }

/* ─── Animations d'apparition ──────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.reveal {
    animation: fadeUp 0.5s ease both;
}

/* ─── Le saviez-vous ? (pied d'article) ────────────────── */
.le-saviez-vous {
    margin-top: 32px;
    padding: 18px 20px;
    background: rgba(232, 163, 61, 0.12);
    border: 1px solid rgba(232, 163, 61, 0.35);
    border-radius: var(--radius-sm);
    color: #6E4913;
    font-size: 0.95rem;
}
.le-saviez-vous strong { color: var(--brand-red); }

/* ─── Retour haut de page ──────────────────────────────── */
#backToTop {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--brand-night);
    color: #fff;
    font-size: 1.3rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
#backToTop.visible { opacity: 1; transform: translateY(0); }

/* ─── Carte Leaflet / OpenStreetMap ────────────────────── */
.map-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    background: var(--surface);
}

.map-card__head {
    padding: 14px 16px 12px;
}

.map-card__credit {
    padding: 8px 16px 10px;
    font-size: 0.75em;
    color: var(--text-soft);
    text-align: right;
    margin: 0;
    background: var(--surface);
}

/* Adoucit les couleurs trop vives des tuiles OSM,
   sans assombrir les contrôles de zoom ni le marqueur. */
.leaflet-tile-pane {
    filter: saturate(0.82) contrast(0.94) brightness(1.03) sepia(0.10) hue-rotate(-8deg);
}

/* Popup assortie au design « nuit & braise » */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    font-family: var(--font-sans);
    color: var(--brand-night);
}
.leaflet-popup-content {
    margin: 12px 16px;
    font-size: 0.92rem;
    line-height: 1.45;
}
.leaflet-popup-tip {
    box-shadow: var(--shadow-sm);
}

/* Marqueur « âne Tramontania » */
.donkey-marker {
    background: transparent;
    border: none;
}
.donkey-marker svg {
    display: block;
    filter: drop-shadow(0 3px 3px rgba(13, 27, 42, 0.35));
}

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
    .site-nav__inner { padding: 0 16px; }
    .site-nav__tagline { display: none; }
    .site-nav__links {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: var(--brand-night);
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px 16px;
        display: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .site-nav__links.open { display: flex; }
    .site-nav__links a { padding: 12px 14px; }
    .nav-toggle { display: block; }

    /* Recherche : détachée du flux en pleine largeur sous la barre,
       pour ne plus pousser le hamburger hors écran sur mobile. */
    .nav-search__form.open {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        padding: 10px 16px;
        background: var(--brand-night);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-search__form input {
        width: 100%;
        box-sizing: border-box;
    }

    .featured-card { grid-template-columns: 1fr; }
    .featured-card__media { min-height: 220px; }

    .search-row { grid-template-columns: 1fr 1fr; }
    .search-row .search-group:first-child { grid-column: 1 / -1; }

    .site-footer__inner { grid-template-columns: 1fr; gap: 24px; }
    .hero--tall { padding: 40px 20px; }
}

@media (max-width: 600px) {
    .search-row { grid-template-columns: 1fr; }
    .hero-search { flex-direction: column; background: transparent; box-shadow: none; padding: 0; }
    .hero-search input {
        background: #fff;
        border-radius: 12px;
        padding: 14px;
    }
    .hero-search button { width: 100%; }
    .result-card { flex-direction: column; }
    .result-card__thumb { width: 100%; height: 140px; }
    .article-layout { padding: 24px 18px 48px; }
    .section { padding: 40px 0; }
    .article-card__body h2, .article-card__body h3 { font-size: 1.05rem; }
    .featured-card__body { padding: 24px 20px; }
    .featured-card__body h2 { font-size: 1.4rem; }
}