/* ==========================================================================
   FluxTech (fluxtech.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 FluxTech) */
    --brand-navy: #002870;
    --brand-blue: #0044aa;
    --brand-cyan: #2fa8f4;
    --brand-azure: #0099ff;
    --brand-red: #e01820;
    --brand-red-vibrant: #ff2d3b;
    --accent: #0044aa;
    --accent-red: #e01820;
    --accent-soft: rgba(0, 68, 170, 0.08);
    --accent-glow: rgba(0, 68, 170, 0.18);
    --accent-red-glow: rgba(224, 24, 32, 0.22);

    /* 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: #030712;
    --bg-surface: #071326;
    --bg-surface-glass: rgba(7, 19, 38, 0.82);
    --bg-elevated: #0c1f3d;
    --bg-subtle: #0f2447;
    --bg-muted: #15325c;
    --bg-header: rgba(3, 7, 18, 0.85);

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

    /* Bordures & Anneaux */
    --border-color: rgba(0, 153, 255, 0.14);
    --border-strong: rgba(0, 153, 255, 0.28);
    --border-highlight: rgba(47, 168, 244, 0.50);

    /* Couleurs de marque */
    --brand-blue: #0066d6;
    --brand-cyan: #2fa8f4;
    --brand-azure: #0099ff;
    --accent: #2fa8f4;
    --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(47, 168, 244, 0.08) 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: 104px;
    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;
}

/* ==========================================================================
   Barre de Navigation Minimaliste au Scroll (Micro-Navbar avec Déplacement)
   ========================================================================== */
.site-header {
    transition: box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

/* Centre de navigation (masqué au sommet, affiché centré au scroll) */
.header-center-nav {
    display: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.micro-cat-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    color: var(--text-body);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

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

.micro-cat-link:hover {
    background: var(--bg-subtle);
    border-color: var(--accent-red, #ff2d3b);
    color: var(--accent-red, #ff2d3b);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 24, 32, 0.16);
}

.micro-cat-link:hover svg {
    transform: scale(1.16);
    opacity: 1;
    color: var(--accent-red, #ff2d3b);
}

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

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

[data-theme="dark"] .micro-cat-link.active {
    background: linear-gradient(135deg, #0044aa, #ff2d3b);
    color: #ffffff;
    border-color: #ff2d3b;
    box-shadow: 0 0 14px rgba(255, 45, 59, 0.35);
}

/* ==========================================================================
   État Actif au Défilement (.is-scrolled)
   ========================================================================== */
.site-header.is-scrolled {
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.18);
    background: var(--bg-header);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
}

.site-header.is-scrolled .header-top {
    padding: 0.34rem 1.5rem;
    gap: 1rem;
}

/* 1. Bascule du Logo : Grand logo masqué, Mini-logo FXT affiché */
.site-header.is-scrolled .brand-logo .logo-full {
    display: none;
}

.site-header.is-scrolled .brand-logo .logo-mini {
    display: inline-block;
    animation: fxtSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fxtSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateX(-6px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

/* 2. Éléments secondaires masqués pour faire place nette */
.site-header.is-scrolled .live-date-pill {
    display: none;
}

.site-header.is-scrolled .cmd-search-trigger {
    padding: 0.32rem 0.65rem;
    gap: 0;
}

.site-header.is-scrolled .cmd-search-label,
.site-header.is-scrolled .cmd-kbd {
    display: none;
}

/* 3. Déplacement Magique : La 2nde barre disparaît avec effet d'élévation */
.cat-nav {
    max-height: 52px;
    opacity: 1;
    overflow: visible;
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface-glass);
    transition: max-height 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, transform 0.24s ease;
}

.site-header.is-scrolled .cat-nav {
    max-height: 0 !important;
    opacity: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-top-color: transparent !important;
    pointer-events: none !important;
    transform: translateY(-8px);
}

/* 4. Les icônes réapparaissent centrées dans la barre principale */
.site-header.is-scrolled .header-center-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex: 1 1 auto;
    min-width: 0;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    animation: navCenterSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.site-header.is-scrolled .header-actions {
    flex-shrink: 0;
}

@keyframes navCenterSlideUp {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

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

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

/* Hauteur du logo : 30px */
.brand-logo img {
    height: 30px;
    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.03);
}

/* Gestion du double logo : Full au repos, Mini au scroll */
.brand-logo .logo-mini {
    display: none;
}

.brand-logo .logo-full {
    display: inline-block;
}

[data-theme="dark"] .brand-logo img,
:root:not([data-theme="light"]) .brand-logo img {
    filter: drop-shadow(0 0 12px rgba(255, 45, 59, 0.18)) drop-shadow(0 0 3px rgba(255, 255, 255, 0.12));
}

[data-theme="light"] .brand-logo img.logo-full {
    content: url('/assets/logo-light.png?v=20261030d');
    filter: none;
}

[data-theme="light"] .brand-logo img.logo-mini {
    content: url('/assets/logo-mini-light.png?v=20261030d');
    filter: none;
}

[data-theme="light"] .footer-brand img {
    content: url('/assets/logo-light.png?v=20261030d');
    filter: none;
}

.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: 82px !important;
    }
    .header-top {
        padding: 0.45rem 0.75rem !important;
        gap: 0.5rem !important;
    }
    .brand-group {
        flex-shrink: 0 !important;
    }
    .brand-logo {
        flex-shrink: 0 !important;
    }
    /* Logo calibré à 24px sur mobile : ne déborde jamais sur les boutons */
    .brand-logo img {
        height: 24px !important;
        max-width: 175px !important;
        width: auto !important;
    }
    .live-date-pill,
    .cmd-kbd,
    .cmd-search-label {
        display: none !important;
    }
    .header-actions {
        flex-shrink: 0 !important;
        gap: 0.35rem !important;
    }
    .cmd-search-trigger {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        padding: 0 !important;
        justify-content: center !important;
    }
    .theme-toggle {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
    }
    .cat-nav-inner {
        padding: 0.35rem 0.75rem;
        gap: 0.25rem;
    }
    .cat-link {
        padding: 0.35rem 0.65rem;
        font-size: 0.75rem;
    }

    /* Au scroll sur mobile : barre ultra-compacte à 1 seule ligne, ZERO chevauchement */
    .site-header.is-scrolled .header-top {
        padding: 0.3rem 0.5rem !important;
        gap: 0.35rem !important;
    }
    .site-header.is-scrolled .brand-logo img {
        height: 22px !important;
    }
    .site-header.is-scrolled .header-center-nav {
        display: flex !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
        justify-content: flex-start !important;
        gap: 0.22rem !important;
        padding: 0 2px !important;
    }
    .site-header.is-scrolled .header-center-nav::-webkit-scrollbar {
        display: none !important;
    }
    .site-header.is-scrolled .micro-cat-link {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        flex-shrink: 0 !important;
    }
    .site-header.is-scrolled .micro-cat-link svg {
        width: 13px !important;
        height: 13px !important;
    }
    .site-header.is-scrolled .cmd-search-trigger,
    .site-header.is-scrolled .theme-toggle {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
    }
    .site-header.is-scrolled .cmd-search-trigger svg,
    .site-header.is-scrolled .theme-toggle svg {
        width: 14px !important;
        height: 14px !important;
    }
    .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;
    }
}


/* ==========================================================================
   FLUXTECH v4 — HOME LAYOUT (Inspiré de Blog Nouvelles Technologies v4)
   Structure asymétrique Magazine, Rails numérotés 01-04 et Bento Sections
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO ASYMÉTRIQUE (1.4fr / 0.95fr)
   -------------------------------------------------------------------------- */
.ft-v4-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(120% 90% at 85% -10%, #081d3d 0%, #041024 46%, #030814 100%);
    border: 1px solid rgba(0, 180, 255, 0.16);
    border-radius: var(--radius-lg);
    margin-bottom: 3.5rem;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.65);
    isolation: isolate;
}

[data-theme="light"] .ft-v4-hero {
    background: radial-gradient(120% 90% at 85% -10%, #edf4fc 0%, #f4f8fd 46%, #ffffff 100%);
    border: 1px solid rgba(15, 35, 75, 0.12);
    box-shadow: var(--shadow-lg);
}

.ft-v4-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.96fr);
    gap: 36px;
    padding: 32px;
    align-items: stretch;
}

/* Col Gauche : Grande Une */
.ft-v4-hero__main {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ft-v4-hero__feature {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.ft-v4-hero__img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #02050b;
    margin-bottom: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.ft-v4-hero__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ft-v4-hero__feature:hover .ft-v4-hero__img-wrap img {
    transform: scale(1.035);
}

.ft-v4-hero__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 8, 18, 0.05) 40%, rgba(4, 8, 18, 0.75) 100%);
    pointer-events: none;
}

.ft-v4-hero__labels {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.ft-format-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.22rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 9999px;
    color: #ffffff;
    background: #0066ff;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.35);
}

.ft-readtime {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.ft-readtime-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00d4ff;
    box-shadow: 0 0 8px #00d4ff;
    animation: ftPulse 2s infinite;
}

@keyframes ftPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.ft-v4-hero__title {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.025em;
    color: var(--text-main);
    margin: 0 0 0.85rem 0;
    transition: color 0.2s ease;
}

.ft-v4-hero__feature:hover .ft-v4-hero__title {
    color: #00d4ff;
}

.ft-v4-hero__standfirst {
    font-size: 0.98rem;
    color: var(--text-body);
    line-height: 1.55;
    margin: 0 0 1.35rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ft-v4-hero__byline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.ft-v4-hero__author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ft-v4-hero__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0, 180, 255, 0.35);
}

.ft-v4-hero__author-info {
    display: flex;
    flex-direction: column;
}

.ft-v4-hero__author-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-main);
}

.ft-v4-hero__author-role {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.ft-v4-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.48rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    border: 1px solid rgba(0, 180, 255, 0.4);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.3);
}

.ft-v4-hero__cta:hover {
    background: linear-gradient(135deg, #0077ff 0%, #0066ff 100%);
    box-shadow: 0 6px 20px rgba(0, 180, 255, 0.45);
    transform: translateY(-1px);
}

/* Col Droite : Sélection de la Rédaction (01, 02, 03, 04) */
.ft-v4-hero__side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(10, 17, 32, 0.65);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    backdrop-filter: blur(12px);
}

[data-theme="light"] .ft-v4-hero__side {
    background: rgba(240, 245, 252, 0.75);
}

.ft-v4-side-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.ft-v4-side-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-main);
}

.ft-v4-side-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    background: rgba(0, 180, 255, 0.12);
    color: #00d4ff;
    border: 1px solid rgba(0, 180, 255, 0.25);
}

.ft-num-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.ft-num-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 14px;
    align-items: start;
    padding: 12px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.ft-num-item:hover {
    border-color: rgba(0, 180, 255, 0.4);
    background: var(--bg-subtle);
    transform: translateX(3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.ft-num-item__num {
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-top: 2px;
}

.ft-num-item__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ft-num-item__title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.ft-num-item:hover .ft-num-item__title {
    color: #00d4ff;
}

.ft-num-item__meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --------------------------------------------------------------------------
   2. EN-TÊTES DE SECTIONS ÉDITORIALES (01, 02, 03, 04)
   -------------------------------------------------------------------------- */
.ft-v4-shead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.ft-v4-shead__left {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.ft-v4-shead__num {
    font-size: 1.85rem;
    font-weight: 900;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #00d4ff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.ft-v4-shead--tests .ft-v4-shead__num { color: #2fa8f4; }
.ft-v4-shead--decrypt .ft-v4-shead__num { color: #0088ff; }
.ft-v4-shead--guides .ft-v4-shead__num { color: #10b981; }

.ft-v4-shead__titles {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ft-v4-shead__kicker {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #00d4ff;
}

.ft-v4-shead--tests .ft-v4-shead__kicker { color: #2fa8f4; }
.ft-v4-shead--decrypt .ft-v4-shead__kicker { color: #0088ff; }
.ft-v4-shead--guides .ft-v4-shead__kicker { color: #10b981; }

.ft-v4-shead__title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin: 0;
}

.ft-v4-shead__desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    max-width: 520px;
    line-height: 1.45;
}

/* --------------------------------------------------------------------------
   3. SECTION 01 : LE FIL TECH (Grille Hybride 1 Vedette + 3 Horizontaux)
   -------------------------------------------------------------------------- */
.ft-v4-fil {
    margin-bottom: 4rem;
}

.ft-v4-fil__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
}

/* Vedette Fil */
.ft-v4-fil__feat {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.ft-v4-fil__feat:hover {
    border-color: rgba(0, 180, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.ft-v4-fil__feat-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background: #02050b;
}

.ft-v4-fil__feat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ft-v4-fil__feat:hover .ft-v4-fil__feat-img img {
    transform: scale(1.04);
}

.ft-v4-fil__feat-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ft-v4-fil__feat-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-main);
    margin: 0.6rem 0;
    transition: color 0.2s ease;
}

.ft-v4-fil__feat:hover .ft-v4-fil__feat-title {
    color: #00d4ff;
}

.ft-v4-fil__feat-standfirst {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.5;
    margin: 0 0 1.2rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Liste compacte Fil */
.ft-v4-fil__side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ft-v4-side-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    padding: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    align-items: center;
}

.ft-v4-side-card:hover {
    border-color: rgba(0, 180, 255, 0.4);
    background: var(--bg-subtle);
    transform: translateX(3px);
}

.ft-v4-side-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #02050b;
}

.ft-v4-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ft-v4-side-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ft-v4-side-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ft-v4-side-card:hover .ft-v4-side-card-title {
    color: #00d4ff;
}

/* --------------------------------------------------------------------------
   4. SECTION 02 & 03 : CARTES BANCS D'ESSAI & DÉCRYPTAGES (3 Colonnes)
   -------------------------------------------------------------------------- */
.ft-v4-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 4rem;
}

.ft-v4-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
}

.ft-v4-card:hover {
    border-color: rgba(0, 180, 255, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.ft-v4-card__img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #02050b;
    overflow: hidden;
}

.ft-v4-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ft-v4-card:hover .ft-v4-card__img img {
    transform: scale(1.04);
}

.ft-v4-card__tag-float {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 2;
}

.ft-v4-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ft-v4-card__title {
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-main);
    margin: 0 0 0.65rem 0;
    transition: color 0.2s ease;
}

.ft-v4-card:hover .ft-v4-card__title {
    color: #00d4ff;
}

.ft-v4-card__desc {
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.5;
    margin: 0 0 1.25rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ft-v4-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   5. BANDEAU VEILLE & MANIFESTE ÉDITORIAL
   -------------------------------------------------------------------------- */
.ft-v4-manifesto {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding: 32px;
    background: rgba(10, 17, 32, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 4rem;
    backdrop-filter: blur(12px);
}

[data-theme="light"] .ft-v4-manifesto {
    background: rgba(240, 245, 252, 0.85);
}

.ft-v4-pillar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ft-v4-pillar__head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
}

.ft-v4-pillar__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 180, 255, 0.12);
    color: #00d4ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ft-v4-pillar p {
    font-size: 0.84rem;
    color: var(--text-body);
    line-height: 1.5;
    margin: 0;
}

/* --------------------------------------------------------------------------
   6. RESPONSIVE MEDIA QUERIES (Mobile & Tablette)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .ft-v4-hero__grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 24px;
    }
    .ft-v4-fil__grid {
        grid-template-columns: 1fr;
    }
    .ft-v4-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ft-v4-manifesto {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px;
    }
}

@media (max-width: 640px) {
    .ft-v4-cards-grid {
        grid-template-columns: 1fr;
    }
    .ft-v4-hero__title {
        font-size: 1.45rem;
    }
    .ft-v4-hero__byline {
        flex-direction: column;
        align-items: flex-start;
    }
    .ft-v4-side-card {
        grid-template-columns: 100px 1fr;
        gap: 12px;
    }
}
