/* ==========================================================================
   Nouvelles du Web (nouvelles-du-web.fr) — Design System 2026 (Bento & Glass)
   Architecture inspirée de Linear, The Verge, Raycast & Apple Newsroom
   Skills appliqués : modern-web-guidance, ui-ux-designer, tailwind-design-system
   ========================================================================== */

@view-transition {
    navigation: auto;
}

:root {
    color-scheme: light;
    /* Surfaces & Fonds (Thème Clair par défaut — Crisp Daylight Paper & Glass) */
    --bg-body: #f6f8fc;
    --bg-surface: #ffffff;
    --bg-surface-glass: rgba(255, 255, 255, 0.82);
    --bg-elevated: #ffffff;
    --bg-subtle: #eef2f8;
    --bg-muted: #e2e8f3;
    --bg-header: rgba(255, 255, 255, 0.84);

    /* Typographie */
    --text-main: #050f24;
    --text-body: #25334d;
    --text-muted: #5b6b86;
    --text-faint: #8796af;

    /* Bordures & Anneaux */
    --border-color: rgba(15, 35, 75, 0.09);
    --border-strong: rgba(15, 35, 75, 0.18);
    --border-highlight: rgba(0, 102, 255, 0.35);

    /* Couleurs de marque (extraites du logo officiel Nouvelles du Web) */
    --brand-navy: #051329;
    --brand-blue: #0066ff;
    --brand-cyan: #00b4ff;
    --brand-orange: #ff4d1c;
    --accent: #005ce6;
    --accent-soft: rgba(0, 92, 230, 0.08);
    --accent-glow: rgba(0, 102, 255, 0.18);

    /* Ombres multicouches (Design System) */
    --shadow-xs: 0 1px 2px rgba(5, 15, 36, 0.04);
    --shadow-sm: 0 4px 16px -2px rgba(5, 15, 36, 0.06), 0 2px 6px -1px rgba(5, 15, 36, 0.04);
    --shadow-md: 0 14px 34px -6px rgba(5, 15, 36, 0.09), 0 4px 12px -2px rgba(5, 15, 36, 0.04);
    --shadow-lg: 0 24px 54px -12px rgba(5, 15, 36, 0.16), 0 8px 20px -4px rgba(5, 15, 36, 0.06);
    --shadow-glow: 0 12px 32px -6px rgba(0, 102, 255, 0.22);

    /* Rayons & Espacements */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;

    /* Code & Maillage de fond */
    --code-bg: #071124;
    --code-text: #e2e8f0;
    --mesh-top: radial-gradient(ellipse 90% 50% at 50% -15%, rgba(0, 102, 255, 0.10), rgba(0, 180, 255, 0.04) 45%, transparent 80%);
    --grid-line: rgba(5, 19, 41, 0.032);
    --spotlight-color: rgba(0, 102, 255, 0.06);

    scrollbar-color: #cbd5e1 transparent;
    scrollbar-width: thin;
}

[data-theme="dark"] {
    color-scheme: dark;
    /* Surfaces & Fonds (Thème Sombre — Deep Obsidian & Cyber Glass) */
    --bg-body: #040812;
    --bg-surface: #0a1120;
    --bg-surface-glass: rgba(12, 20, 38, 0.78);
    --bg-elevated: #0f192f;
    --bg-subtle: #121e38;
    --bg-muted: #19294b;
    --bg-header: rgba(4, 8, 18, 0.82);

    /* Typographie */
    --text-main: #f8fafc;
    --text-body: #cbd5e1;
    --text-muted: #8b9bb4;
    --text-faint: #5e7191;

    /* Bordures & Anneaux */
    --border-color: rgba(148, 163, 184, 0.12);
    --border-strong: rgba(148, 163, 184, 0.24);
    --border-highlight: rgba(0, 180, 255, 0.45);

    /* Couleurs de marque */
    --brand-blue: #0088ff;
    --brand-cyan: #00d4ff;
    --brand-orange: #ff5520;
    --accent: #2997ff;
    --accent-soft: rgba(41, 151, 255, 0.12);
    --accent-glow: rgba(0, 180, 255, 0.25);

    /* Ombres multicouches */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.45);
    --shadow-sm: 0 6px 20px -2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 16px 38px -6px rgba(0, 0, 0, 0.65);
    --shadow-lg: 0 28px 64px -12px rgba(0, 0, 0, 0.82);
    --shadow-glow: 0 12px 36px -6px rgba(0, 180, 255, 0.28);

    --code-bg: #02050b;
    --code-text: #f1f5f9;
    --mesh-top: radial-gradient(ellipse 90% 55% at 50% -15%, rgba(0, 136, 255, 0.20), rgba(255, 77, 28, 0.06) 50%, transparent 80%);
    --grid-line: rgba(255, 255, 255, 0.025);
    --spotlight-color: rgba(0, 180, 255, 0.09);

    scrollbar-color: #1e293b transparent;
}

/* ==========================================================================
   RESET & FONDATIONS MODERNES (2026)
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-body);
    background-image:
        var(--mesh-top),
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: 100% 900px, 48px 48px, 48px 48px;
    background-repeat: no-repeat, repeat, repeat;
    color: var(--text-body);
    line-height: 1.7;
    font-size: 16px;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
    display: flex;
    flex-direction: column;
    padding-top: 122px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

h2[id], h3[id], [id] {
    scroll-margin-top: 140px;
}

h1, h2, h3, h4, .cat-link, .badge-cat, .btn-primary, .bento-kicker {
    font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    text-wrap: balance;
}

p, li, dd, figcaption {
    text-wrap: pretty;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

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

/* Barre de progression de lecture (Scroll-driven animation + fallback JS) */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3.5px;
    width: 0%;
    background: linear-gradient(90deg, var(--brand-orange) 0%, var(--brand-blue) 55%, var(--brand-cyan) 100%);
    box-shadow: 0 0 12px var(--accent-glow);
    z-index: 9999;
    transition: width 0.08s linear;
}

/* ==========================================================================
   HEADER GLASSMORPHIQUE & BARRE D'ÉTAT TECH
   ========================================================================== */
.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background: var(--bg-header);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: var(--shadow-sm);
}

.header-top {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0.7rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo img {
    height: 54px;
    width: auto;
    object-fit: contain;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.brand-logo:hover img {
    transform: scale(1.02);
}

[data-theme="dark"] .brand-logo img {
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.92)) drop-shadow(0 0 14px rgba(0, 180, 255, 0.25));
}

.live-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

.live-date-pill .live-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
    animation: pulseGlow 2.4s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.92); }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

/* Bouton Command Palette (Style Raycast / Linear) */
.cmd-search-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.48rem 0.65rem 0.48rem 0.9rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cmd-search-trigger:hover {
    border-color: var(--border-highlight);
    color: var(--text-main);
    background: var(--bg-surface);
    box-shadow: var(--shadow-xs);
}

.cmd-search-trigger svg {
    width: 15px;
    height: 15px;
    color: var(--accent);
}

.cmd-kbd {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.14rem 0.42rem;
    border-radius: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-faint);
    letter-spacing: -0.02em;
}

.theme-toggle {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-toggle:hover {
    border-color: var(--border-highlight);
    color: var(--accent);
    background: var(--bg-surface);
    transform: rotate(12deg);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

/* Navigation des Rubriques en Capsules (Pills) */
.cat-nav {
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface-glass);
}

.cat-nav-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0.45rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.cat-nav-inner::-webkit-scrollbar {
    display: none;
}

.cat-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.46rem 0.9rem;
    border-radius: 999px;
    font-size: 0.81rem;
    font-weight: 700;
    letter-spacing: -0.005em;
    white-space: nowrap;
    color: var(--text-body);
    border: 1px solid transparent;
    transition: all 0.18s ease;
}

.cat-link svg {
    width: 14px;
    height: 14px;
    opacity: 0.72;
    transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.cat-link:hover {
    background: var(--bg-subtle);
    color: var(--text-main);
}

.cat-link:hover svg {
    opacity: 1;
    color: var(--accent);
    transform: translateY(-1px);
}

.cat-link.active {
    background: var(--text-main);
    color: var(--bg-surface);
    box-shadow: var(--shadow-xs);
}

[data-theme="dark"] .cat-link.active {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
    color: #ffffff;
}

.cat-link.active svg {
    opacity: 1;
    color: currentColor;
}

/* ==========================================================================
   CONTENEUR & CAPSULES DE CATÉGORIE
   ========================================================================== */
.container {
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 2.25rem 1.5rem 4.5rem;
    flex: 1;
}

.badge-cat {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.28rem 0.72rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff;
    background: var(--accent);
    line-height: 1.2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.badge-cat svg {
    width: 12px;
    height: 12px;
    stroke-width: 2.3;
}

/* ==========================================================================
   HERO BENTO GRID 2026 (CINEMA OVERLAY + STACK ÉDITORIAL)
   ========================================================================== */
.hero-bento {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
    align-items: stretch;
}

/* Carte Principale : Style Cinéma Full-Bleed Overlay */
.hero-main-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 490px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #051024;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
    isolation: isolate;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.hero-main-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.hero-main-img {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.hero-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.hero-main-card:hover .hero-main-img img {
    transform: scale(1.045);
}

/* Voile dégradé éditorial multicouche */
.hero-main-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        180deg,
        rgba(4, 10, 24, 0.15) 0%,
        rgba(4, 10, 24, 0.35) 38%,
        rgba(4, 10, 24, 0.88) 72%,
        rgba(3, 8, 20, 0.98) 100%
    );
}

.hero-top-badges {
    position: absolute;
    top: 1.5rem;
    left: 1.65rem;
    right: 1.65rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    z-index: 2;
}

.hero-Featured-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(5, 15, 36, 0.68);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f8fafc;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-main-body {
    padding: 2.25rem 2.2rem 2rem;
    color: #ffffff;
    z-index: 2;
}

.hero-main-body h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.35rem);
    color: #ffffff;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.028em;
    margin: 0.75rem 0 0.85rem;
}

.hero-main-body h2 a {
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    transition: color 0.2s ease;
}

.hero-main-body h2 a:hover {
    color: #38bdf8;
}

.hero-main-body p {
    color: rgba(226, 232, 240, 0.86);
    font-size: 1rem;
    line-height: 1.62;
    margin-bottom: 1.4rem;
    max-width: 68ch;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-main-body .article-meta {
    color: rgba(203, 213, 225, 0.85);
}

.hero-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.hero-main-card:hover .hero-read-btn {
    background: var(--brand-blue);
    border-color: var(--brand-cyan);
    transform: translateX(3px);
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.79rem;
    color: var(--text-muted);
    font-weight: 500;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
}

.meta-item svg {
    width: 13.5px;
    height: 13.5px;
    opacity: 0.75;
}

.meta-sep {
    opacity: 0.4;
}

/* Colonne Bento de droite : Stack Éditorial + Radar Tech */
.hero-side-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.side-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-main);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.side-panel-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(255, 77, 28, 0.22);
}

.hero-side-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    flex: 1;
}

.hero-side-card {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 0.95rem;
    align-items: center;
    padding: 0.65rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.hero-side-card:hover {
    background: var(--bg-subtle);
    border-color: var(--border-color);
    transform: translateX(3px);
}

.hero-side-thumb {
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-subtle);
    box-shadow: var(--shadow-xs);
}

.hero-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.hero-side-card:hover .hero-side-thumb img {
    transform: scale(1.06);
}

.hero-side-info h3 {
    font-size: 0.94rem;
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.34;
    margin: 0.3rem 0 0.3rem;
}

.hero-side-info h3 a:hover {
    color: var(--accent);
}

/* Bloc Manifesto / Radar quand peu d'articles sont présents */
.bento-manifesto-box {
    margin-top: auto;
    padding: 1.15rem 1.25rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.07) 0%, rgba(0, 180, 255, 0.03) 100%);
    border: 1px solid var(--border-highlight);
}

.bento-manifesto-box h4 {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.bento-manifesto-box p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   EN-TÊTES DE SECTION & FILTRES
   ========================================================================== */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-color);
}

.section-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.bento-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--accent);
}

.section-header h2 {
    font-size: clamp(1.35rem, 2.2vw, 1.65rem);
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.022em;
    line-height: 1.2;
}

/* ==========================================================================
   GRILLE D'ARTICLES BENTO AVEC EFFET SPOTLIGHT (CONTAINER QUERIES)
   ========================================================================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.65rem;
}

.article-card {
    container-type: inline-size;
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
    content-visibility: auto;
    contain-intrinsic-size: 0 420px;
}

/* Effet Spotlight au survol (Piloté par CSS Variables --mouse-x / --mouse-y) */
.article-card::before,
.topic-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        var(--spotlight-color),
        transparent 45%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.article-card:hover::before,
.topic-tile:hover::before {
    opacity: 1;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-highlight);
}

.card-thumb {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #051329 0%, #0f2952 100%);
    overflow: hidden;
    position: relative;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-card:hover .card-thumb img {
    transform: scale(1.05);
}

.card-thumb-overlay {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    right: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    z-index: 2;
    pointer-events: none;
}

.card-time-pill {
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    background: rgba(5, 15, 36, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-content {
    padding: 1.45rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 2;
}

.card-content h3 {
    font-size: 1.16rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.34;
    letter-spacing: -0.015em;
    margin: 0.15rem 0 0.65rem;
}

.card-content h3 a:hover {
    color: var(--accent);
}

.card-content p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.62;
    margin-bottom: 1.25rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.95rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.card-author {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    color: var(--text-main);
}

.card-author-dot {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue));
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   BENTO SHOWCASE DES 6 RUBRIQUES TECH
   ========================================================================== */
.topics-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.topic-tile {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.4rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.topic-tile:hover {
    transform: translateY(-3px);
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-sm);
}

.topic-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.25);
}

.topic-icon-box svg {
    width: 21px;
    height: 21px;
}

.topic-tile h3 {
    font-size: 1.04rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.28rem;
    letter-spacing: -0.01em;
}

.topic-tile p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.52;
}

/* ==========================================================================
   ARCHITECTURE ARTICLE 2026 (2 COLONNES STICKY + SOMMAIRE SCROLL-SPY)
   ========================================================================== */
.article-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.article-header {
    max-width: 920px;
    width: 100%;
    min-width: 0;
    margin-bottom: 2rem;
}

.article-header-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.reading-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.26rem 0.7rem;
    border-radius: 999px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-muted);
}

.reading-pill svg {
    width: 13px;
    height: 13px;
    color: var(--accent);
}

.article-header h1 {
    font-size: clamp(1.65rem, 4vw, 3.1rem);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.18;
    letter-spacing: -0.032em;
    margin: 0 0 1.15rem;
    overflow-wrap: break-word;
    word-break: break-word;
}

.article-lead {
    font-size: clamp(1.05rem, 1.5vw, 1.24rem);
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.65;
    padding-left: 1.1rem;
    border-left: 3px solid var(--accent);
    margin-bottom: 1.65rem;
    overflow-wrap: break-word;
    word-break: break-word;
}

.article-author-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
}

.author-chip {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-blue) 60%, var(--brand-cyan) 100%);
    color: #ffffff;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

.author-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-main);
    font-weight: 800;
    font-size: 0.95rem;
}

.author-verified svg {
    width: 15px;
    height: 15px;
    color: var(--brand-blue);
}

.article-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-body);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}

.action-pill-btn:hover {
    border-color: var(--border-highlight);
    color: var(--accent);
    background: var(--bg-surface);
}

.action-pill-btn svg {
    width: 14px;
    height: 14px;
}

/* Image Hero Cinéma de l'article */
.article-hero-figure {
    margin: 0 0 2.5rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    background: #051329;
    position: relative;
}

.article-hero-figure img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Grille 2 Colonnes : Sommaire Sticky à Gauche + Contenu Éditorial à Droite */
.article-grid-2col {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 2.25rem;
    align-items: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.article-main-col {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.article-sidebar {
    position: sticky !important;
    top: 136px !important;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-self: start;
    z-index: 90;
}

.toc-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-xs);
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--text-main);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border-color);
}

.toc-pct {
    font-family: "JetBrains Mono", monospace;
    color: var(--accent);
    font-size: 0.74rem;
}

.toc-box ol {
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.84rem;
}

.toc-box a {
    display: block;
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    border-left: 2px solid transparent;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.18s ease;
}

.toc-box a:hover {
    color: var(--text-main);
    background: var(--bg-subtle);
}

.toc-box a.is-active {
    color: var(--accent);
    background: var(--accent-soft);
    border-left-color: var(--accent);
    font-weight: 700;
}

.sidebar-author-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    box-shadow: var(--shadow-xs);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.sidebar-author-card strong {
    display: block;
    color: var(--text-main);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.88rem;
    margin-bottom: 0.3rem;
}

/* Corps de l'article */
.article-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 4vw, 3.25rem);
    box-shadow: var(--shadow-sm);
    font-size: 1.07rem;
    line-height: 1.85;
    transition: font-size 0.2s ease;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.article-content.zen-mode {
    font-size: 1.18rem;
    line-height: 1.92;
}

.article-content > p:first-of-type {
    font-size: 1.14em;
    color: var(--text-main);
    font-weight: 450;
}

.article-content h2 {
    position: relative;
    font-size: clamp(1.38rem, 2.3vw, 1.72rem);
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.022em;
    line-height: 1.28;
    margin: 2.6rem 0 1rem;
    padding-top: 0.5rem;
    scroll-margin-top: 130px;
}

.article-content h2::before {
    content: "";
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
    margin-bottom: 0.65rem;
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content h3 {
    font-size: 1.24rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.015em;
    margin: 1.85rem 0 0.65rem;
}

.article-content p {
    margin-bottom: 1.35rem;
}

.article-content ul,
.article-content ol {
    margin: 0 0 1.5rem 1.4rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

.article-content li::marker {
    color: var(--accent);
    font-weight: 700;
}

.article-content strong {
    color: var(--text-main);
    font-weight: 700;
}

.article-content a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.article-content a:hover {
    color: var(--brand-orange);
}

.article-content blockquote,
.tech-callout {
    position: relative;
    background: linear-gradient(135deg, var(--accent-soft) 0%, transparent 100%);
    border: 1px solid var(--border-highlight);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 1.35rem 1.5rem;
    margin: 2rem 0;
    color: var(--text-main);
    font-weight: 500;
}

.article-content code {
    background: var(--bg-subtle);
    color: var(--accent);
    padding: 0.18rem 0.45rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 0.87em;
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    overflow-wrap: anywhere;
}

.article-content pre {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    margin: 1.5rem 0 1.75rem;
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
    line-height: 1.6;
}

.article-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border: none;
    white-space: pre;
    word-break: normal;
    word-wrap: normal;
}

.article-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: var(--radius-md);
    margin: 1.75rem auto;
    display: block;
    box-sizing: border-box;
}

.article-content figure {
    max-width: 100% !important;
    margin: 2rem 0;
    overflow: hidden;
    box-sizing: border-box;
}

.article-content iframe,
.article-content embed,
.article-content video {
    max-width: 100% !important;
    border-radius: var(--radius-md);
}

.article-inline-figure {
    margin: 2.25rem 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-subtle);
    box-shadow: var(--shadow-sm);
    max-width: 100%;
}

.article-inline-figure img {
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 0;
}

.article-inline-figure figcaption {
    padding: 0.75rem 1.15rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
}

/* Tableaux Techniques Modernes & Responsive Touch Scroll */
.article-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    font-size: 0.92rem;
    margin: 1.85rem 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
}

.table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.85rem 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    box-shadow: var(--shadow-xs);
}

.table-wrap table {
    display: table;
    width: 100%;
    min-width: 480px;
    margin: 0;
    border: none;
    border-radius: 0;
}

th, td {
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 1.1rem;
    text-align: left;
    white-space: normal;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: var(--bg-subtle);
}

th {
    background: var(--bg-subtle);
    color: var(--text-main);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Carte Signature Auteur en bas d'article */
.author-bio-box {
    margin-top: 2.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.65rem;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    box-shadow: var(--shadow-xs);
}

.author-bio-box h4 {
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.author-bio-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.author-bio-box a {
    color: var(--accent);
    font-weight: 700;
}

/* ==========================================================================
   MODAL COMMAND PALETTE (NATIVE <DIALOG> + @STARTING-STYLE)
   ========================================================================== */
.cmd-dialog {
    margin: 10vh auto auto;
    width: min(620px, 92vw);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    color: var(--text-main);
    box-shadow: var(--shadow-lg);
    padding: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), overlay 0.2s allow-discrete, display 0.2s allow-discrete;
}

.cmd-dialog[open] {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@starting-style {
    .cmd-dialog[open] {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
}

.cmd-dialog::backdrop {
    background: rgba(4, 10, 24, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cmd-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.cmd-header svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

.cmd-input {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

.cmd-input::placeholder {
    color: var(--text-faint);
}

.cmd-close-btn {
    border: 1px solid var(--border-color);
    background: var(--bg-subtle);
    color: var(--text-muted);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
}

.cmd-results {
    max-height: 360px;
    overflow-y: auto;
    padding: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cmd-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    transition: background 0.15s ease;
}

.cmd-item:hover {
    background: var(--bg-subtle);
}

.cmd-item-title {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
}

.cmd-item-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
}

/* Toast Notification */
.ndw-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--text-main);
    color: var(--bg-surface);
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
}

.ndw-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================================================================
   FOOTER SOBRE & ÉDITORIAL
   ========================================================================== */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 3rem 1.5rem 2rem;
    margin-top: auto;
}

.footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    max-width: 440px;
}

.footer-brand img {
    height: 42px;
    width: auto;
    margin-bottom: 0.65rem;
}

[data-theme="dark"] .footer-brand img {
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.9));
}

.footer-brand p {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.4rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-body);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    max-width: 1320px;
    margin: 1.85rem auto 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--text-muted);
}

.footer-bottom a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-bento {
        grid-template-columns: 1fr;
    }
    .hero-main-card {
        min-height: 400px;
    }
}

@media (max-width: 880px) {
    .article-grid-2col {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 1.5rem !important;
    }
    .article-sidebar {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        order: 1 !important;
    }
    .article-main-col {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        order: 2 !important;
        overflow: visible !important;
    }
    .article-content,
    .article-grid-2col > .article-content {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        order: 2 !important;
        box-sizing: border-box !important;
        overflow-x: clip !important;
    }
    .article-grid-2col > .author-bio-box {
        order: 3 !important;
    }
    .sidebar-author-card {
        display: none !important;
    }
}

@media (max-width: 720px) {
    html, body {
        overflow-x: clip !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    body {
        padding-top: 96px !important;
    }
    .header-top {
        padding: 0.65rem 0.85rem;
    }
    .brand-logo img {
        height: 38px;
    }
    .live-date-pill,
    .cmd-kbd,
    .cmd-search-label {
        display: none;
    }
    .cmd-search-trigger {
        width: 38px;
        height: 38px;
        padding: 0;
        justify-content: center;
    }
    .cat-nav-inner {
        padding: 0.4rem 0.85rem;
        gap: 0.25rem;
    }
    .cat-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.76rem;
    }
    .container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: clip !important;
        padding: 1.15rem 0.75rem 2.5rem !important;
    }
    .hero-main-body {
        padding: 1.35rem 1.1rem;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .hero-side-card {
        grid-template-columns: 88px 1fr;
    }

    /* Architecture & Éléments de l'article sur Mobile */
    .article-shell {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .article-header {
        margin-bottom: 1.35rem;
        width: 100% !important;
        max-width: 100% !important;
    }
    .article-header-badges {
        gap: 0.4rem;
        margin-bottom: 0.85rem;
    }
    .badge-cat,
    .reading-pill {
        font-size: 0.7rem;
        padding: 0.22rem 0.55rem;
    }
    .article-header h1 {
        font-size: clamp(1.4rem, 5.5vw, 1.95rem);
        line-height: 1.22;
        letter-spacing: -0.025em;
        margin-bottom: 0.75rem;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
    .article-lead {
        font-size: 0.98rem;
        line-height: 1.55;
        padding-left: 0.85rem;
        margin-bottom: 1.25rem;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
    .article-author-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
        padding: 0.85rem 1rem;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .article-actions {
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }
    .action-pill-btn {
        flex: 1 1 auto;
        justify-content: center;
        padding: 0.45rem 0.65rem;
        font-size: 0.76rem;
    }
    .article-hero-figure {
        margin: 0 0 1.5rem;
        border-radius: var(--radius-md);
        width: 100% !important;
        max-width: 100% !important;
    }
    .article-hero-figure img {
        width: 100% !important;
        height: auto !important;
    }
    .toc-box {
        padding: 1rem;
        border-radius: var(--radius-md);
        max-height: 280px;
        overflow-y: auto;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .toc-box ol {
        font-size: 0.8rem;
    }
    .toc-box a {
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        white-space: normal !important;
    }

    /* Corps de l'article (après le Sommaire) — Verrouillage Responsive Strict */
    .article-content {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        padding: 1.15rem 0.85rem !important;
        border-radius: var(--radius-md) !important;
        font-size: 0.98rem !important;
        line-height: 1.72 !important;
    }
    .article-content.zen-mode {
        font-size: 1.08rem !important;
        line-height: 1.82 !important;
    }
    .article-content * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .article-content h1,
    .article-content h2,
    .article-content h3,
    .article-content h4,
    .article-content p,
    .article-content li,
    .article-content blockquote,
    .article-content .tech-callout {
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
    .article-content h2 {
        font-size: 1.28rem !important;
        margin: 1.85rem 0 0.75rem !important;
        line-height: 1.3 !important;
    }
    .article-content h3 {
        font-size: 1.1rem !important;
        margin: 1.35rem 0 0.5rem !important;
    }
    .article-content p {
        margin-bottom: 1.1rem !important;
    }
    .article-content blockquote,
    .tech-callout,
    .article-content .tech-callout {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem !important;
        margin: 1.35rem 0 !important;
        font-size: 0.92rem !important;
        border-radius: var(--radius-sm) !important;
    }
    .article-content ul,
    .article-content ol {
        margin: 0 0 1.2rem 1.1rem !important;
        padding-left: 0.5rem !important;
    }
    .article-content pre {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        white-space: pre !important;
        word-break: normal !important;
        padding: 0.9rem !important;
        font-size: 0.8rem !important;
        margin: 1.25rem 0 !important;
        border-radius: var(--radius-sm) !important;
    }
    .article-content code {
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }
    .article-content pre code {
        white-space: pre !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }
    .article-content img,
    .article-inline-figure img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        margin: 1.25rem auto !important;
        border-radius: var(--radius-sm) !important;
    }
    .article-inline-figure {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 1.35rem 0 !important;
        border-radius: var(--radius-md) !important;
    }
    .article-inline-figure figcaption {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.75rem !important;
    }

    /* Tableaux Scrollables sous le doigt */
    .table-wrap {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin: 1.35rem 0 !important;
        border-radius: var(--radius-sm) !important;
    }
    .table-wrap table {
        display: table !important;
        width: 100% !important;
        min-width: 360px !important;
        max-width: none !important;
        font-size: 0.8rem !important;
    }
    .table-wrap table,
    .table-wrap table * {
        max-width: none !important;
    }
    .article-content > table {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin: 1.35rem 0 !important;
        font-size: 0.8rem !important;
    }
    th, td {
        padding: 0.65rem 0.75rem !important;
        white-space: normal !important;
    }

    /* Carte Auteur en bas d'article */
    .author-bio-box {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 1.15rem 0.95rem !important;
        gap: 0.85rem !important;
        margin-top: 1.75rem !important;
        border-radius: var(--radius-md) !important;
    }
    .footer-inner,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.85rem 0.5rem 2rem !important;
    }
    .article-content {
        padding: 0.95rem 0.65rem !important;
    }
    .article-header h1 {
        font-size: 1.32rem !important;
    }
    .article-lead {
        font-size: 0.92rem !important;
    }
    .breadcrumb {
        padding: 0.25rem 0.55rem !important;
        font-size: 0.72rem !important;
    }
    .author-bio-box {
        padding: 0.85rem 0.65rem !important;
    }
}
