/* =======================================================================
   BUDZY BLOG — STYLE
   Reprend exactement la charte de l'app principale Budzy :
   - Palette : bleu #3A588C / or #C8A951
   - Polices : DM Sans (corps) + Playfair Display (titres)
   - Mode dark/light
   ======================================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
    --bg: #FAFBFC;
    --bg-alt: #F0F2F5;
    --bg-card: #FFFFFF;
    --text: #1A1D23;
    --text-secondary: #5A6170;
    --text-muted: #8B92A0;
    --primary: #3A588C;
    --primary-light: #EBF0F7;
    --primary-hover: #2D4670;
    --accent: #C8A951;
    --accent-light: #FDF6E3;
    --border: #E2E5EA;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg: #0F1117;
    --bg-alt: #181B23;
    --bg-card: #1E2130;
    --text: #F0F2F5;
    --text-secondary: #A0A8B8;
    --text-muted: #6B7385;
    --primary: #5B8AC4;
    --primary-light: rgba(58,88,140,0.15);
    --primary-hover: #4A7AB0;
    --accent: #D4AF37;
    --accent-light: rgba(212,175,55,0.1);
    --border: #2A2D3A;
    --shadow: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
}

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    transition: background var(--transition), color var(--transition);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }

img { max-width: 100%; height: auto; display: block; }

/* ===================== SKIP LINK (a11y) ===================== */
.skip-link {
    position: absolute; left: -9999px; top: 8px;
    background: var(--primary); color: #fff; padding: .5rem 1rem;
    border-radius: 6px; z-index: 9999;
}
.skip-link:focus { left: 8px; }

/* =======================================================================
   HEADER MAGAZINE v2 — 2 lignes
   ======================================================================= */

/* Barre de progression de lecture (page article) */
#readingBar {
    position: fixed; top: 0; left: 0;
    height: 3px; width: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 9999; transition: width .1s linear;
}

.header-mag {
    position: sticky; top: 0; z-index: 1000;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
[data-theme="dark"] .header-mag {
    background: rgba(30,33,48,0.95);
}

.header-inner {
    max-width: 1280px; margin: 0 auto;
    padding: 0 1.5rem;
    display: flex; align-items: center; gap: 1.2rem;
}

/* ----- LIGNE 1 : Identité + actions ----- */
.header-row-1 {
    border-bottom: 1px solid var(--border);
}
.header-row-1 .header-inner {
    height: 64px;
    justify-content: space-between;
}

.brand {
    display: flex; align-items: center; gap: .7rem;
    text-decoration: none;
    flex-shrink: 0;
}
.brand-logo {
    height: 38px; width: 38px;
    border-radius: 9px;
    object-fit: cover;
}
.brand-text {
    display: flex; align-items: baseline; gap: .35rem;
    line-height: 1;
}
.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem; font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.01em;
}
.brand-tag {
    font-family: 'DM Sans', sans-serif;
    font-size: .68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--accent);
    background: var(--accent-light);
    padding: .25rem .55rem;
    border-radius: 4px;
}

.header-tagline {
    flex: 1; text-align: center;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: .95rem;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.header-actions {
    display: flex; align-items: center; gap: .6rem;
    flex-shrink: 0;
}

.action-btn {
    background: transparent;
    border: 1px solid var(--border);
    width: 38px; height: 38px;
    border-radius: 50%;
    cursor: pointer; font-size: 1rem;
    transition: all var(--transition);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--text);
}
.action-btn:hover {
    background: var(--bg-alt);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.action-link {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .5rem .85rem;
    color: var(--text-secondary);
    font-weight: 500; font-size: .9rem;
    border-radius: 8px;
    transition: all var(--transition);
}
.action-link:hover {
    background: var(--bg-alt);
    color: var(--primary);
}
.action-icon { font-weight: 700; }

.btn-app {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .55rem 1rem;
    background: var(--primary);
    color: #fff !important;
    font-weight: 600; font-size: .9rem;
    border-radius: 8px;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}
.btn-app:hover {
    background: var(--primary-hover);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.hamburger {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    width: 38px; height: 38px;
    border-radius: 8px;
    cursor: pointer; padding: 0;
    align-items: center; justify-content: center;
    flex-direction: column; gap: 4px;
}
.hamburger span {
    display: block; width: 18px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ----- LIGNE 2 : Catégories + recherche ----- */
.header-row-2 .header-inner {
    height: 52px;
    justify-content: space-between;
    gap: 1.5rem;
}

.cat-nav {
    display: flex; align-items: center;
    gap: .2rem;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.cat-nav::-webkit-scrollbar { display: none; }

.cat-link {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .55rem 1rem;
    color: var(--text-secondary);
    font-size: .92rem; font-weight: 500;
    border-radius: 8px;
    white-space: nowrap;
    transition: all var(--transition);
    position: relative;
    flex-shrink: 0;
}
.cat-link:hover {
    color: var(--cat-color, var(--primary));
    background: var(--bg-alt);
}
.cat-link.is-active {
    color: var(--cat-color, var(--primary));
    font-weight: 600;
    background: var(--bg-alt);
}
.cat-link.is-active::after {
    content: "";
    position: absolute;
    bottom: -1px; left: 50%;
    transform: translateX(-50%);
    width: 60%; height: 2px;
    background: var(--cat-color, var(--primary));
    border-radius: 2px 2px 0 0;
}

.cat-icon {
    font-size: .9rem;
    opacity: .85;
}
.cat-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.search-link {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .5rem .85rem;
    color: var(--text-secondary);
    font-size: .9rem; font-weight: 500;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    transition: all var(--transition);
    flex-shrink: 0;
}
.search-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* ============================================================
   MENU MOBILE — refonte propre v2 (en frère du <header>)
   Tous les items visibles d'un coup sans scroll inutile
   ============================================================ */

/* État caché par défaut */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg-card);
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
}
.mobile-menu.open {
    display: flex;
    animation: mobileMenuFadeIn .25s ease-out;
}

@keyframes mobileMenuFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Empêche le scroll du body quand le menu est ouvert */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ----- Mini-header DU menu (logo + bouton fermer) ----- */
.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1.2rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.mobile-menu-close {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    padding: 0;
}
.mobile-menu-close:hover, .mobile-menu-close:active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(90deg);
}

/* ----- Liste des items du menu (scrollable si besoin) ----- */
.mobile-menu-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.mobile-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .8rem .9rem;
    color: var(--text);
    border-radius: 10px;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: background var(--transition);
    min-height: 44px; /* zone de tap iOS confortable */
}
.mobile-item:hover, .mobile-item:active {
    background: var(--bg-alt);
}

.mobile-divider {
    height: 1px;
    background: var(--border);
    margin: .9rem 0;
    flex-shrink: 0;
}

.mobile-cta {
    background: var(--primary);
    color: #fff !important;
    justify-content: center;
    font-weight: 600;
    padding: 1rem !important;
    margin-top: .3rem;
    box-shadow: 0 4px 12px rgba(58, 88, 140, 0.25);
}
.mobile-cta:hover, .mobile-cta:active {
    background: var(--primary-hover);
}

/* ----- Petits écrans : items un peu plus compacts pour tout faire tenir ----- */
@media (max-height: 700px) {
    .mobile-item {
        padding: .65rem .9rem;
        font-size: .95rem;
        min-height: 40px;
    }
    .mobile-divider { margin: .5rem 0; }
    .mobile-menu-list { padding: .6rem 1.2rem 1rem; }
}

/* ----- Boutons généraux (utilisés ailleurs : cards, CTA) ----- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .65rem 1.2rem; border-radius: 10px;
    font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: .92rem;
    border: none; cursor: pointer; transition: all var(--transition);
    text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: .9rem 1.6rem; font-size: 1rem; }

/* ===================== HEADER HERO (compact) ===================== */
.hero {
    padding: 1.8rem 1.5rem 1.2rem;
    text-align: center;
    background: linear-gradient(180deg, var(--primary-light) 0%, transparent 100%);
}
.hero-inner { max-width: 800px; margin: 0 auto; }
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700; color: var(--text);
    margin-bottom: .4rem; line-height: 1.2;
}
.hero h1 .highlight { color: var(--primary); }
.hero p {
    font-size: .95rem; color: var(--text-secondary);
    max-width: 640px; margin: 0 auto;
}

/* ===================== CONTAINER ===================== */
.container { max-width: 1320px; margin: 0 auto; padding: 1.2rem 1.5rem; }

/* ===================== CATEGORIES BAR (utilise pour l'article page uniquement) ===================== */
.categories-bar {
    display: flex; flex-wrap: wrap; gap: .6rem;
    justify-content: center; margin: 0 auto 2rem;
    max-width: 1100px;
}
.cat-pill {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .45rem 1rem; border-radius: 999px;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-secondary); font-size: .88rem; font-weight: 500;
    transition: all var(--transition); white-space: nowrap;
}
.cat-pill:hover, .cat-pill.active {
    border-color: var(--primary); color: var(--primary);
    background: var(--primary-light); transform: translateY(-1px);
}
.cat-pill .dot { width: 8px; height: 8px; border-radius: 50%; }

/* ===================== ARTICLES GRID (4 colonnes desktop) ===================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
    margin: .5rem 0;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }

.article-cover {
    width: 100%; aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-family: 'Playfair Display', serif;
    font-size: 1.15rem; font-weight: 600;
    padding: 1rem; text-align: center;
    overflow: hidden;
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.article-body { padding: 1rem 1.1rem 1.1rem; flex: 1; display: flex; flex-direction: column; }

.article-meta {
    display: flex; align-items: center; gap: .5rem;
    font-size: .75rem; color: var(--text-muted);
    margin-bottom: .55rem;
    flex-wrap: wrap;
}
.cat-badge {
    display: inline-block; padding: .15rem .5rem;
    border-radius: 4px; font-size: .68rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .5px;
}

.article-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem; font-weight: 600; line-height: 1.3;
    margin-bottom: .5rem; color: var(--text);
}
.article-card h2 a { color: inherit; }
.article-card h2 a:hover { color: var(--primary); }

.article-excerpt {
    font-size: .85rem; color: var(--text-secondary);
    line-height: 1.55; flex: 1; margin-bottom: .8rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex; align-items: center; justify-content: space-between;
    font-size: .78rem; color: var(--text-muted);
    border-top: 1px solid var(--border); padding-top: .65rem;
}
.read-more { font-weight: 600; color: var(--primary); }
.read-more:hover { color: var(--primary-hover); }

/* ===================== ARTICLE PAGE ===================== */
.article-hero {
    padding: 3rem 1.5rem 1.5rem;
    background: linear-gradient(180deg, var(--primary-light) 0%, transparent 100%);
}
.article-hero-inner { max-width: 760px; margin: 0 auto; }

.breadcrumb {
    font-size: .85rem; color: var(--text-muted);
    margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 .4rem; opacity: .5; }

.article-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.2; font-weight: 700;
    margin-bottom: .8rem;
}
.article-subtitle {
    font-size: 1.15rem; color: var(--text-secondary);
    line-height: 1.6; margin-bottom: 1.2rem;
}
.article-info {
    display: flex; flex-wrap: wrap; gap: 1.2rem;
    font-size: .88rem; color: var(--text-muted);
    align-items: center;
}
.article-info .author { font-weight: 600; color: var(--text); }

.article-content {
    max-width: 760px; margin: 0 auto; padding: 2rem 1.5rem 3rem;
    font-size: 1.05rem; line-height: 1.85;
    color: var(--text);
}
.article-content > * + * { margin-top: 1.2rem; }
.article-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem; font-weight: 600;
    margin-top: 2.4rem; margin-bottom: .8rem;
    color: var(--primary); padding-bottom: .4rem;
    border-bottom: 2px solid var(--accent-light);
}
.article-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem; font-weight: 600;
    margin-top: 1.8rem; margin-bottom: .6rem;
    color: var(--text);
}
.article-content p { margin-bottom: 1rem; }
.article-content a {
    color: var(--primary); text-decoration: underline; text-underline-offset: 3px;
    text-decoration-color: var(--accent);
}
.article-content ul, .article-content ol { padding-left: 1.5rem; margin: 1rem 0; }
.article-content li { margin-bottom: .5rem; }
.article-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 1rem 1.4rem; margin: 1.6rem 0;
    background: var(--accent-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic; color: var(--text-secondary);
}
.article-content table {
    width: 100%; border-collapse: collapse;
    margin: 1.6rem 0; font-size: .95rem;
    background: var(--bg-card);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow);
}
.article-content thead { background: var(--primary); color: #fff; }
.article-content th { padding: .8rem 1rem; text-align: left; font-weight: 600; }
.article-content td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); }
.article-content tbody tr:hover { background: var(--bg-alt); }
.article-content img {
    border-radius: var(--radius); margin: 1.5rem auto;
    box-shadow: var(--shadow-md);
}
.article-content figure { margin: 1.5rem 0; }
.article-content figcaption {
    font-size: .85rem; color: var(--text-muted);
    text-align: center; margin-top: .5rem; font-style: italic;
}
.article-content code {
    background: var(--bg-alt); padding: .1rem .4rem;
    border-radius: 4px; font-size: .9em;
    font-family: 'Menlo', 'Monaco', monospace;
}
.article-content pre {
    background: var(--bg-alt); padding: 1rem;
    border-radius: var(--radius); overflow-x: auto;
    font-size: .88rem; line-height: 1.6;
}

/* Encadrés "À retenir" / "En pratique" — utilisables par les articles IA */
.callout {
    background: var(--primary-light); border-left: 4px solid var(--primary);
    padding: 1rem 1.3rem; margin: 1.5rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.callout strong { color: var(--primary); }
.callout-warning { background: var(--accent-light); border-left-color: var(--accent); }
.callout-warning strong { color: var(--accent); }

/* Sources */
.article-sources {
    max-width: 760px; margin: 2rem auto;
    padding: 1.5rem; background: var(--bg-alt);
    border-radius: var(--radius); border: 1px solid var(--border);
}
.article-sources h3 {
    font-size: 1rem; margin-bottom: .8rem;
    color: var(--text-secondary); font-weight: 600;
    display: flex; align-items: center; gap: .4rem;
}
.article-sources ol { padding-left: 1.4rem; font-size: .9rem; }
.article-sources li { margin-bottom: .35rem; color: var(--text-secondary); }

/* Disclaimer transparence IA */
.ai-disclosure {
    max-width: 760px; margin: 1.5rem auto;
    padding: .9rem 1.2rem; font-size: .82rem;
    color: var(--text-muted); font-style: italic;
    text-align: center; border-top: 1px solid var(--border);
}

/* ===================== RELATED ARTICLES ===================== */
.related-section {
    background: var(--bg-alt); padding: 3rem 1.5rem;
    margin-top: 2rem;
}
.related-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem; text-align: center;
    margin-bottom: 2rem; color: var(--text);
}

/* ===================== CTA BUDZY ===================== */
.cta-app {
    max-width: 800px; margin: 3rem auto;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border-radius: var(--radius-lg); color: #fff;
    text-align: center; box-shadow: var(--shadow-lg);
}
.cta-app h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem; margin-bottom: .6rem; color: #fff;
}
.cta-app p { color: rgba(255,255,255,.9); margin-bottom: 1.4rem; }
.cta-app .btn {
    background: var(--accent); color: #1A1D23;
}
.cta-app .btn:hover { background: #fff; color: var(--primary); }

/* ===================== PAGINATION ===================== */
.pagination {
    display: flex; justify-content: center; gap: .4rem;
    margin: 2.5rem 0;
}
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 .8rem;
    border-radius: 8px; font-weight: 500;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none; transition: all var(--transition);
}
.pagination a:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled { opacity: .4; cursor: not-allowed; }

/* ===================== SEARCH ===================== */
.search-box {
    max-width: 600px; margin: 0 auto 2rem;
    display: flex; gap: .5rem;
}
.search-box input {
    flex: 1; padding: .8rem 1rem;
    border-radius: 10px; border: 1px solid var(--border);
    background: var(--bg-card); color: var(--text);
    font-size: 1rem; font-family: inherit;
}
.search-box input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* ===================== EMPTY STATE ===================== */
.empty-state {
    text-align: center; padding: 4rem 2rem;
    color: var(--text-muted);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; opacity: .5; }
.empty-state h2 { font-family: 'Playfair Display', serif; margin-bottom: .5rem; color: var(--text); }

/* =======================================================================
   FOOTER v2 — Minimaliste
   ======================================================================= */
.footer-mini {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 2.5rem 1.5rem 2rem;
    margin-top: 4rem;
    text-align: center;
}
.footer-mini-inner {
    max-width: 700px; margin: 0 auto;
    display: flex; flex-direction: column;
    align-items: center; gap: 1rem;
}

.footer-brand {
    display: inline-flex; align-items: center; gap: .6rem;
    text-decoration: none;
}
.footer-logo {
    height: 32px; width: 32px;
    border-radius: 7px;
}
.footer-brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--primary);
}
.footer-brand-text strong { font-weight: 700; }
.footer-blog-tag {
    font-family: 'DM Sans', sans-serif;
    font-size: .65rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--accent);
    background: var(--accent-light);
    padding: .2rem .5rem;
    border-radius: 4px;
    margin-left: .25rem;
    vertical-align: middle;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: .88rem;
    margin: 0;
}

.footer-links {
    display: inline-flex; align-items: center; gap: .8rem;
    flex-wrap: wrap; justify-content: center;
    font-size: .88rem;
}
.footer-links a {
    color: var(--text-secondary);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--primary); }
.footer-sep { color: var(--text-muted); }

.footer-disclaimer {
    color: var(--text-muted);
    font-size: .78rem;
    font-style: italic;
    line-height: 1.6;
    max-width: 600px;
    margin: .5rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
    .articles-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablette : 2 colonnes + premiers ajustements header */
@media (max-width: 900px) {
    .header-tagline { display: none; }
    .action-label, .search-label { display: none; }
    .action-link { padding: .5rem .6rem; }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile : passage en mode hamburger dès 850px pour éviter l'état intermédiaire bancal */
@media (max-width: 850px) {
    /* Affichage hamburger : forcer la spécificité */
    .hamburger { display: inline-flex !important; }

    /* Cacher la barre catégories (présente dans le menu mobile) */
    .header-row-2 { display: none; }

    /* Cacher ce qui est en doublon avec le menu mobile pour aérer le header */
    .header-actions #themeToggle { display: none; }
    .header-actions .action-link { display: none; }

    /* Compresser le bouton app */
    .app-label { display: none; }
    .btn-app { padding: .55rem .7rem; }

    /* Container plus serré */
    .header-row-1 .header-inner { gap: .5rem; padding: 0 .9rem; }
    .header-actions { gap: .35rem; }

    /* Logo plus petit pour gagner de la place */
    .brand-logo { height: 32px; width: 32px; }
    .brand-name { font-size: 1.2rem; }
    .brand-tag { font-size: .6rem; padding: .2rem .45rem; }
}

/* Tout petit mobile : grille en 1 colonne + hero compact */
@media (max-width: 768px) {
    .articles-grid { grid-template-columns: 1fr; gap: 1rem; }
    .hero { padding: 1.4rem 1rem 1rem; }
    .hero h1 { font-size: 1.3rem; }
    .hero p { font-size: .88rem; }
    .article-content { font-size: 1rem; }
    .article-content h2 { font-size: 1.45rem; }
    .article-content table { font-size: .85rem; }
}

/* Très petit mobile */
@media (max-width: 480px) {
    .header-row-1 .header-inner { padding: 0 .7rem; }
    .brand-tag { display: none; } /* Plus de place sur tout petit écran */
    .container { padding: 1.5rem 1rem; }
    .footer-mini { padding: 2rem 1rem 1.5rem; }
}

/* ===================== UTILITY ===================== */
.fade-in { animation: fadeIn .5s ease-out both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
