        *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

        :root {
            /* Light mode (default) */
            --navy: #ffffff;
            --navy-light: #f5f7fa;
            --navy-mid: #edf0f5;
            --teal: #00b894;
            --teal-dim: #00a382;
            --teal-glow: rgba(0, 184, 148, 0.12);
            --teal-glow-strong: rgba(0, 184, 148, 0.25);
            --white: #1a1a2e;
            --white-pure: #0a0a1a;
            --gray-100: #2d2d44;
            --gray-200: #3d3d5c;
            --gray-300: #5a5a7a;
            --gray-400: #5d6880;
            --gray-500: #616b7e;
            --serif: 'Twemoji Country Flags', 'Instrument Serif', 'Instrument Serif Fallback', 'Instrument Serif Fallback Noto', Georgia, serif;
            --sans: 'Twemoji Country Flags', 'DM Sans', 'DM Sans Fallback', 'DM Sans Fallback Roboto', -apple-system, sans-serif;
            --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
            --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

            /* Semantic variables */
            --overlay-bg: rgba(255, 255, 255, 0.92);
            --overlay-heavy: rgba(255, 255, 255, 0.96);
            --nav-scrolled-bg: rgba(255, 255, 255, 0.85);
            --surface-border: rgba(0, 0, 0, 0.06);
            --surface-border-medium: rgba(0, 0, 0, 0.10);
            --surface-border-strong: rgba(0, 0, 0, 0.15);
            --surface-hover: rgba(0, 184, 148, 0.06);
            --surface-subtle: rgba(0, 0, 0, 0.03);
            --surface-input: rgba(0, 0, 0, 0.04);
            --shadow-color: rgba(0, 0, 0, 0.08);
            --shadow-heavy: rgba(0, 0, 0, 0.15);
            --grain-opacity: 0.015;
            --mol-node-opacity: 0.08;
            --teal-accent-border: rgba(0, 184, 148, 0.12);
            --teal-accent-bg: rgba(0, 184, 148, 0.06);
            --teal-accent-strong: rgba(0, 184, 148, 0.15);

            /* Lecture (30/10/2026) : texte, liens, blocs contrastes, bande produits */
            --text-body: #1f2433;
            --text-strong: #0a1628;
            --link: #00785f;
            --link-line: rgba(0, 120, 95, 0.35);
            --block-bg: #0a1628;
            --block-fg: #e6ecf1;
            --block-accent: #5ee0c0;
            --block-border: rgba(0, 212, 170, 0.25);
            --band-bg: #eef2f6;
            --band-card: #ffffff;
        }

        [data-theme="dark"] {
            --navy: #0a1628;
            --navy-light: #111d33;
            --navy-mid: #162240;
            --teal: #00d4aa;
            --teal-dim: #00b894;
            --teal-glow: rgba(0, 212, 170, 0.15);
            --teal-glow-strong: rgba(0, 212, 170, 0.3);
            --white: #f0f2f5;
            --white-pure: #ffffff;
            --gray-100: #e2e5ea;
            --gray-200: #c8cdd5;
            --gray-300: #9aa3b0;
            --gray-400: #8d97a6;
            --gray-500: #7a8597;

            --overlay-bg: rgba(10, 22, 40, 0.95);
            --overlay-heavy: rgba(10, 22, 40, 0.98);
            --nav-scrolled-bg: rgba(10, 22, 40, 0.85);
            --surface-border: rgba(255, 255, 255, 0.04);
            --surface-border-medium: rgba(255, 255, 255, 0.08);
            --surface-border-strong: rgba(255, 255, 255, 0.15);
            --surface-hover: rgba(0, 212, 170, 0.08);
            --surface-subtle: rgba(255, 255, 255, 0.04);
            --surface-input: rgba(255, 255, 255, 0.05);
            --shadow-color: rgba(0, 0, 0, 0.3);
            --shadow-heavy: rgba(0, 0, 0, 0.4);
            --grain-opacity: 0.03;
            --mol-node-opacity: 0.12;
            --teal-accent-border: rgba(0, 212, 170, 0.1);
            --teal-accent-bg: rgba(0, 212, 170, 0.08);
            --teal-accent-strong: rgba(0, 212, 170, 0.15);

            --text-body: #d5dae1;
            --text-strong: #f4f6f8;
            --link: #00d4aa;
            --link-line: rgba(0, 212, 170, 0.4);
            --block-bg: #142a4d;
            --block-fg: #e6ecf1;
            --block-accent: #5ee0c0;
            --block-border: rgba(0, 212, 170, 0.3);
            --band-bg: #0e1c33;
            --band-card: #14243f;
        }

        /* Smooth theme transitions (only after first paint) */
        html.theme-ready,
        html.theme-ready *,
        html.theme-ready *::before,
        html.theme-ready *::after {
            transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
        }
        /* Preserve existing transitions for interactive elements */
        html.theme-ready .nav,
        html.theme-ready .btn-primary,
        html.theme-ready .btn-secondary,
        html.theme-ready .article-card,
        html.theme-ready .guide-card,
        html.theme-ready .related-card,
        html.theme-ready .reveal {
            transition: all 0.5s var(--ease-out-expo) !important;
        }

        html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

        body {
            font-family: var(--sans);
            background: var(--navy);
            color: var(--white);
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
        }

        /* ===== GRAIN OVERLAY ===== */
        body::after {
            content: '';
            position: fixed;
            inset: 0;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
            pointer-events: none;
            z-index: 9999;
            opacity: var(--grain-opacity);
        }

        /* ===== ANIMATED MOLECULAR BACKGROUND ===== */
        .mol-bg {
            position: fixed;
            inset: 0;
            z-index: 0;
            overflow: hidden;
            pointer-events: none;
        }

        .mol-bg .node {
            position: absolute;
            width: 4px;
            height: 4px;
            background: var(--teal);
            border-radius: 50%;
            opacity: var(--mol-node-opacity);
            animation: drift 20s infinite ease-in-out;
        }

        .mol-bg .node::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 80px;
            height: 1px;
            background: linear-gradient(90deg, var(--teal-accent-bg), transparent);
            transform-origin: 0 0;
        }

        @keyframes drift {
            0%, 100% { transform: translate(0, 0); }
            25% { transform: translate(30px, -20px); }
            50% { transform: translate(-10px, 30px); }
            75% { transform: translate(20px, 10px); }
        }

        .mol-bg .node:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
        .mol-bg .node:nth-child(1)::before { transform: rotate(35deg); }
        .mol-bg .node:nth-child(2) { top: 25%; left: 85%; animation-delay: -3s; }
        .mol-bg .node:nth-child(2)::before { transform: rotate(-20deg); width: 120px; }
        .mol-bg .node:nth-child(3) { top: 60%; left: 15%; animation-delay: -7s; }
        .mol-bg .node:nth-child(3)::before { transform: rotate(60deg); width: 60px; }
        .mol-bg .node:nth-child(4) { top: 75%; left: 70%; animation-delay: -11s; }
        .mol-bg .node:nth-child(4)::before { transform: rotate(-45deg); width: 100px; }
        .mol-bg .node:nth-child(5) { top: 40%; left: 50%; animation-delay: -5s; }
        .mol-bg .node:nth-child(5)::before { transform: rotate(15deg); width: 90px; }
        .mol-bg .node:nth-child(6) { top: 90%; left: 30%; animation-delay: -14s; }
        .mol-bg .node:nth-child(6)::before { transform: rotate(-70deg); width: 70px; }
        .mol-bg .node:nth-child(7) { top: 15%; left: 45%; animation-delay: -9s; }
        .mol-bg .node:nth-child(7)::before { transform: rotate(80deg); width: 110px; }
        .mol-bg .node:nth-child(8) { top: 55%; left: 90%; animation-delay: -2s; }
        .mol-bg .node:nth-child(8)::before { transform: rotate(-30deg); width: 85px; }

        /* ===== NAVIGATION ===== */
        .nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            padding: 0 clamp(1.5rem, 4vw, 4rem);
            transition: all 0.5s var(--ease-out-expo);
        }

        .nav.scrolled {
            background: var(--nav-scrolled-bg);
            backdrop-filter: blur(20px) saturate(1.2);
            -webkit-backdrop-filter: blur(20px) saturate(1.2);
            border-bottom: 1px solid var(--teal-accent-border);
        }

        .nav-inner {
            max-width: 1320px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 80px;
        }

        .nav-logo {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            text-decoration: none;
            color: var(--white);
        }

        .nav-logo-icon {
            width: 36px;
            height: 36px;
            position: relative;
        }

        .nav-logo-icon svg { width: 100%; height: 100%; }

        .nav-logo-text {
            direction: ltr;
            unicode-bidi: isolate;
            font-family: var(--serif);
            font-size: 1.5rem;
            letter-spacing: -0.02em;
        }

        .nav-logo-text span { color: var(--teal); }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 2rem;
            list-style: none;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--gray-300);
            font-size: 0.875rem;
            font-weight: 400;
            letter-spacing: 0.02em;
            transition: color 0.3s ease;
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 1px;
            background: var(--teal);
            transition: width 0.4s var(--ease-out-expo);
        }

        .nav-links a:hover { color: var(--white); }
        .nav-links a:hover::after { width: 100%; }

        .nav-cta {
            background: var(--teal) !important;
            color: var(--navy) !important;
            padding: 0.55rem 1.3rem;
            border-radius: 6px;
            font-weight: 500 !important;
            font-size: 0.85rem !important;
            transition: all 0.3s ease !important;
        }

        .nav-cta:hover {
            background: var(--white-pure) !important;
            transform: translateY(-1px);
            box-shadow: 0 4px 20px var(--teal-glow-strong);
        }

        .nav-cta::after { display: none !important; }

        .cta-badge {
            background: var(--navy);
            color: var(--teal);
            font-size: 0.6rem;
            font-weight: 700;
            padding: 0.15rem 0.4rem;
            border-radius: 4px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-left: 0.3rem;
            vertical-align: middle;
        }

        /* Dropdown Menu */
        .nav-dropdown { position: relative; }
        .nav-dropdown-toggle { display: flex; align-items: center; gap: 0.3rem; cursor: pointer; }
        .dropdown-arrow { transition: transform 0.2s ease; }
        .nav-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }
        .nav-dropdown-menu {
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%) translateY(10px);
            background: var(--navy);
            border: 1px solid var(--surface-border);
            border-radius: 12px;
            padding: 0.5rem;
            min-width: 220px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s ease;
            box-shadow: 0 10px 40px rgba(0,0,0,0.3);
            z-index: 1000;
        }
        .nav-dropdown:hover .nav-dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }
        .nav-dropdown-menu li { list-style: none; }
        .nav-dropdown-menu a {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            padding: 0.7rem 1rem;
            border-radius: 8px;
            transition: background 0.15s ease;
            white-space: nowrap;
        }
        .nav-dropdown-menu a:hover { background: var(--surface-hover); }
        .nav-dropdown-menu a::after { display: none !important; }
        .dropdown-icon { display: inline-flex; align-items: center; color: var(--gray-400); }
        .dropdown-badge {
            margin-left: auto;
            background: var(--teal);
            color: var(--navy);
            font-size: 0.65rem;
            font-weight: 600;
            padding: 0.15rem 0.5rem;
            border-radius: 10px;
            text-transform: uppercase;
        }

        /* Mobile Menu Section */
        .mobile-menu-section {
            display: flex;
            flex-direction: column;
            gap: 0.3rem;
            padding: 0.5rem 0;
            border-top: 1px solid var(--surface-border);
            border-bottom: 1px solid var(--surface-border);
            margin: 0.5rem 0;
        }
        .mobile-menu-label {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--gray-500);
            padding: 0 1.5rem;
            margin-bottom: 0.3rem;
        }
        .mobile-menu-section a { padding: 0.6rem 1.5rem; font-size: 0.95rem; }

        .nav-mobile-toggle {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0.5rem;
        }

        .nav-mobile-toggle span {
            display: block;
            width: 24px;
            height: 2px;
            background: var(--white);
            margin: 5px 0;
            transition: all 0.3s ease;
        }

        /* ===== THEME TOGGLE ===== */
        .theme-toggle {
            background: var(--surface-input);
            border: 1px solid var(--surface-border-medium);
            border-radius: 6px;
            padding: 0.4rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 34px;
            height: 34px;
            color: var(--gray-300);
            transition: all 0.3s ease;
        }

        .theme-toggle:hover {
            border-color: var(--teal);
            color: var(--teal);
        }

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

        .theme-toggle .icon-moon { display: block; }
        .theme-toggle .icon-sun { display: none; }

        [data-theme="dark"] .theme-toggle .icon-moon { display: none; }
        [data-theme="dark"] .theme-toggle .icon-sun { display: block; }

        /* ===== LANGUAGE SWITCHER ===== */
        .lang-switcher { position: relative; }

        .lang-switcher-btn {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            background: var(--surface-input);
            border: 1px solid var(--surface-border-medium);
            border-radius: 6px;
            padding: 0.4rem 0.7rem;
            color: var(--gray-300);
            font-family: var(--sans);
            font-size: 0.8rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            letter-spacing: 0.02em;
        }

        .lang-switcher-btn:hover { border-color: var(--teal); color: var(--white); }

        .lang-switcher-btn svg { width: 12px; height: 12px; transition: transform 0.3s ease; }
        .lang-switcher.open .lang-switcher-btn svg { transform: rotate(180deg); }

        .lang-switcher-dropdown {
            position: absolute;
            top: calc(100% + 0.5rem);
            right: 0;
            background: var(--navy-light);
            border: 1px solid var(--surface-border-medium);
            border-radius: 8px;
            padding: 0.4rem;
            min-width: 140px;
            opacity: 0;
            pointer-events: none;
            transform: translateY(-8px);
            transition: all 0.25s var(--ease-out-expo);
            box-shadow: 0 12px 40px var(--shadow-heavy);
            z-index: 1001;
        }

        .lang-switcher.open .lang-switcher-dropdown { opacity: 1; pointer-events: auto; transform: translateY(0); }

        .lang-switcher-dropdown a {
            font-family: 'Twemoji Country Flags', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; /* system font: see .mobile-lang-switcher a */
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 0.7rem;
            color: var(--gray-300);
            text-decoration: none;
            font-size: 0.82rem;
            border-radius: 5px;
            transition: all 0.2s ease;
        }

        .lang-switcher-dropdown a:hover { background: var(--surface-hover); color: var(--white); }
        .lang-switcher-dropdown a.active { color: var(--teal); font-weight: 500; }
        .lang-switcher-dropdown a::after { display: none !important; }

        /* ===== SECTION UTILITY ===== */
        .section {
            position: relative;
            z-index: 1;
            padding: clamp(4rem, 8vh, 7rem) clamp(1.5rem, 4vw, 4rem);
        }

        .section-inner { max-width: 1320px; margin: 0 auto; }

        .section-label {
            display: inline-flex;
            align-items: center;
            gap: 0.6rem;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: var(--teal);
            margin-bottom: 1rem;
        }

        .section-label::before { content: ''; width: 20px; height: 1px; background: var(--teal); }

        .section-title {
            font-family: var(--serif);
            font-size: clamp(2rem, 4vw, 3.2rem);
            line-height: 1.1;
            font-weight: 400;
            letter-spacing: -0.02em;
            margin-bottom: 1rem;
        }

        .section-title em { font-style: italic; color: var(--teal); }

        .section-desc {
            font-size: 1.05rem;
            color: var(--gray-300);
            max-width: 560px;
            line-height: 1.6;
            margin-bottom: 3rem;
        }

        .section-divider {
            width: 100%;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--teal-accent-strong), transparent);
        }

        /* ===== FOOTER ===== */
        footer {
            position: relative;
            z-index: 1;
            padding: 4rem clamp(1.5rem, 4vw, 4rem) 2rem;
            border-top: 1px solid var(--surface-border);
        }

        .footer-inner { max-width: 1320px; margin: 0 auto; }

        .footer-top {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 3rem;
            margin-bottom: 3rem;
        }

        .footer-brand-desc {
            font-size: 0.85rem;
            color: var(--gray-400);
            line-height: 1.6;
            margin-top: 1rem;
            max-width: 300px;
        }

        .footer-socials { display: flex; gap: 0.8rem; margin-top: 1.2rem; }

        .footer-socials a {
            width: 36px;
            height: 36px;
            background: var(--surface-subtle);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gray-400);
            text-decoration: none;
            transition: all 0.3s ease;
            font-size: 0.85rem;
        }

        .footer-socials a:hover { background: var(--teal-glow); color: var(--teal); }

        .footer-col-title {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--gray-300);
            margin-bottom: 1.2rem;
        }

        .footer-col ul { list-style: none; }
        .footer-col ul li { margin-bottom: 0.6rem; }

        .footer-col ul a {
            font-size: 0.85rem;
            color: var(--gray-500);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-col ul a:hover { color: var(--teal); }

        .footer-bottom {
            padding-top: 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .footer-copyright { font-size: 0.78rem; color: var(--gray-500); }

        .footer-legal { display: flex; gap: 1.5rem; }

        .footer-legal a {
            font-size: 0.78rem;
            color: var(--gray-500);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-legal a:hover { color: var(--teal); }

        /* ===== SCROLL REVEAL ===== */
        .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
        }

        .reveal.visible { opacity: 1; transform: translateY(0); }

        .reveal-delay-1 { transition-delay: 0.1s; }
        .reveal-delay-2 { transition-delay: 0.2s; }
        .reveal-delay-3 { transition-delay: 0.3s; }
        .reveal-delay-4 { transition-delay: 0.4s; }
        .reveal-delay-5 { transition-delay: 0.5s; }

        @media (prefers-reduced-motion: reduce) {
            .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
        }

        /* ===== SEARCH OVERLAY ===== */
        .search-overlay {
            position: fixed;
            inset: 0;
            z-index: 2000;
            background: var(--overlay-bg);
            backdrop-filter: blur(30px);
            display: flex;
            align-items: flex-start;
            justify-content: center;
            padding-top: 20vh;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.4s ease;
        }

        .search-overlay.active { opacity: 1; pointer-events: auto; }
        .search-overlay-inner { width: 100%; max-width: 600px; padding: 0 1.5rem; }

        .search-overlay-input {
            width: 100%;
            padding: 1.2rem 1.5rem;
            background: var(--surface-input);
            border: 1px solid var(--teal-accent-strong);
            border-radius: 12px;
            color: var(--white);
            font-family: var(--serif);
            font-size: 1.3rem;
            outline: none;
        }

        .search-overlay-input::placeholder { color: var(--gray-500); }

        .search-overlay-hint { text-align: center; margin-top: 1rem; font-size: 0.8rem; color: var(--gray-500); }

        .search-overlay-hint kbd {
            background: var(--surface-input);
            padding: 0.15rem 0.5rem;
            border-radius: 4px;
            font-family: var(--sans);
            font-size: 0.7rem;
        }

        /* ===== SEARCH RESULTS ===== */
        .search-results {
            max-height: 420px;
            overflow-y: auto;
            margin-top: 0.75rem;
        }

        .search-results:empty {
            display: none;
        }

        .search-result-item {
            display: block;
            padding: 1rem 1.2rem;
            border-radius: 10px;
            text-decoration: none;
            color: var(--white);
            border: 1px solid transparent;
            transition: all 0.25s ease;
            margin-bottom: 0.35rem;
        }

        .search-result-item:hover {
            background: var(--surface-hover);
            border-color: var(--teal-accent-strong);
        }

        .search-result-item-title {
            font-family: var(--serif);
            font-size: 1.05rem;
            margin-bottom: 0.25rem;
            line-height: 1.3;
        }

        .search-result-item:hover .search-result-item-title {
            color: var(--teal);
        }

        .search-result-item-excerpt {
            font-size: 0.82rem;
            color: var(--gray-400);
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .search-result-item-type {
            display: inline-block;
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            padding: 0.15rem 0.5rem;
            border-radius: 3px;
            background: var(--teal-accent-bg);
            color: var(--teal);
            margin-bottom: 0.4rem;
        }

        .search-no-results {
            text-align: center;
            padding: 1.5rem 1rem;
            color: var(--gray-400);
            font-size: 0.9rem;
        }

        /* ===== MOBILE NAV ===== */
        .mobile-menu {
            position: fixed;
            inset: 0;
            z-index: 1500;
            background: var(--overlay-heavy);
            backdrop-filter: blur(20px);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            gap: 1.2rem;
            padding: 5rem 1.5rem 2rem;
            overflow-y: auto;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.4s ease;
        }

        .mobile-menu.active { opacity: 1; pointer-events: auto; }

        .mobile-menu a {
            text-decoration: none;
            font-family: var(--serif);
            font-size: 1.8rem;
            color: var(--white);
            transition: color 0.3s ease;
        }

        .mobile-menu a:hover { color: var(--teal); }

        .mobile-menu-close {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            background: none;
            border: none;
            color: var(--white);
            font-size: 1.5rem;
            cursor: pointer;
        }

        .mobile-lang-switcher {
            display: flex;
            flex-wrap: wrap;
            gap: 0.6rem;
            justify-content: center;
            margin-top: 1rem;
            padding-top: 1.5rem;
            border-top: 1px solid var(--surface-border);
        }

        .mobile-lang-switcher a {
            font-family: 'Twemoji Country Flags', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important; /* system font: "Čeština" pulled the 33 KB latin-ext file on every page */
            font-size: 0.85rem !important;
            padding: 0.4rem 0.8rem;
            border: 1px solid var(--surface-border-medium);
            border-radius: 6px;
        }

        .mobile-lang-switcher a.active { border-color: var(--teal); color: var(--teal); }

        /* ===== BUTTONS ===== */
        .btn-primary {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: var(--teal);
            color: var(--navy);
            padding: 0.85rem 1.8rem;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 500;
            font-size: 0.95rem;
            transition: all 0.35s var(--ease-out-expo);
            border: none;
            cursor: pointer;
        }

        .btn-primary:hover {
            background: var(--white-pure);
            transform: translateY(-2px);
            box-shadow: 0 8px 30px var(--teal-glow-strong);
        }

        .btn-secondary {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: transparent;
            color: var(--white);
            padding: 0.85rem 1.8rem;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 400;
            font-size: 0.95rem;
            border: 1px solid var(--surface-border-strong);
            transition: all 0.35s var(--ease-out-expo);
            cursor: pointer;
        }

        .btn-secondary:hover {
            border-color: var(--teal);
            color: var(--teal);
            background: var(--surface-hover);
        }

        /* ===== INLINE AFFILIATE DISCLOSURE (near product / buy blocks) ===== */
        .affiliate-disclosure-line {
            font-size: 0.78rem;
            line-height: 1.45;
            color: var(--gray-400);
            margin: -0.35rem 0 1rem;
        }
        .affiliate-disclosure-line a {
            color: inherit;
            text-decoration: underline;
            text-underline-offset: 2px;
        }
        .affiliate-disclosure-line a:hover { color: var(--teal); }
        .shop-disclosure { margin: 0 0 1.25rem; }

        /* ===== SHARED RESPONSIVE ===== */
        @media (max-width: 1024px) {
            .footer-top { grid-template-columns: 1fr 1fr; }
        }

        @media (max-width: 768px) {
            .nav-links { display: none; }
            .nav-mobile-toggle { display: block; }
            .footer-top { grid-template-columns: 1fr; gap: 2rem; }
            .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
            .footer-legal { justify-content: center; flex-wrap: wrap; gap: 0.8rem; }

            /* Mobile overflow fix - critical for iOS Safari */
            html, body {
                overflow-x: hidden;
                width: 100%;
                max-width: 100vw;
                position: relative;
            }

            /* Hide molecular background elements that might cause overflow */
            .mol-bg .node::before {
                display: none;
            }

            /* Force all containers to respect viewport */
            .section,
            .section-inner,
            .nav,
            .nav-inner,
            footer,
            .footer-inner,
            .footer-top {
                max-width: 100%;
                overflow-x: hidden;
            }
        }

        /* ===== WHERE TO BUY (shared 3-zone buy box across articles, guides & calculators) ===== */
        .buy-box {
            background: linear-gradient(135deg, var(--navy-light) 0%, rgba(0, 212, 170, 0.06) 100%);
            border: 1px solid var(--teal-accent-border);
            border-radius: 16px;
            padding: 1.5rem;
            margin: 2rem 0 2.5rem;
        }
        .buy-box-title {
            font-family: var(--serif);
            font-size: 1.3rem;
            color: var(--white);
            margin-bottom: 1.1rem;
            display: flex;
            align-items: center;
            gap: 0.55rem;
        }
        .buy-box-title::before { content: '🛒'; font-size: 1.1rem; }
        .buy-box-options { display: flex; flex-direction: column; gap: 0.75rem; }
        .buy-option {
            display: flex;
            flex-direction: column;
            gap: 0.45rem;
            padding: 0.95rem 1.1rem;
            background: var(--surface);
            border: 1px solid var(--surface-border);
            border-radius: 12px;
            text-decoration: none;
            transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
        }
        .buy-option:hover { border-color: var(--teal); background: var(--surface-hover); transform: translateY(-1px); }
        .buy-option.buy-option-featured {
            position: relative;
            margin-top: 0.7rem;
            padding-top: 1.15rem;
            border: 2px solid #d4a72c;
            box-shadow: 0 0 0 3px rgba(212, 167, 44, 0.15), 0 6px 18px rgba(212, 167, 44, 0.12);
        }
        .buy-option.buy-option-featured:hover { border-color: #e9bf45; }
        .buy-option-badge {
            position: absolute;
            top: -0.75rem;
            left: 1rem;
            padding: 0.2rem 0.65rem;
            border-radius: 999px;
            background: linear-gradient(135deg, #f3d36b, #d4a72c);
            color: #2b2006;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.02em;
            white-space: nowrap;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
        }
        [dir="rtl"] .buy-option-badge { left: auto; right: 1rem; }
        .buy-option-main { display: grid; grid-template-columns: 11rem minmax(0, 1fr) auto auto; align-items: center; gap: 1.1rem; }
        .buy-option-pros:has(.buy-option-thumb) { display: flex; align-items: center; gap: 0.75rem; }
        .buy-option-thumb { width: 84px; height: 63px; flex: none; object-fit: contain; border-radius: 6px; }
        .buy-option-pros { font-size: 0.8rem; color: var(--gray-400); line-height: 1.4; }
        .buy-option-region { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--white); font-size: 0.95rem; }
        .buy-option-flag { font-size: 1.15rem; line-height: 1; }
        .vlogo { display: inline-flex; align-items: center; justify-content: center; flex: none; background: #fff; border-radius: 6px; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08); }
        .vlogo img { display: block; width: 100%; height: 100%; object-fit: contain; }
        .vlogo-sm { width: 100px; height: 28px; padding: 4px 8px; }
        .buy-option-vendor { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--gray-300); font-size: 0.9rem; white-space: nowrap; }
        .buy-option-price { color: var(--teal); font-weight: 700; font-size: 0.98rem; white-space: nowrap; }
        .buy-option-cta {
            display: inline-flex;
            align-items: center;
            padding: 0.55rem 1.1rem;
            background: var(--teal);
            color: var(--navy);
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.85rem;
            white-space: nowrap;
            transition: opacity 0.2s ease;
        }
        .buy-option:hover .buy-option-cta { opacity: 0.9; }
        .buy-option-coupon { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; font-size: 0.8rem; }
        .buy-option-coupon-tag { padding: 0.2rem 0.55rem; border: 1px dashed var(--teal); border-radius: 6px; color: var(--teal); font-weight: 600; letter-spacing: 0.01em; }
        .buy-option-coupon-price { color: var(--white); font-weight: 600; }
        .buy-option-sale { display: inline-block; margin-right: 0.45rem; padding: 0.1rem 0.4rem; border-radius: 4px; background: #e8553d; color: #fff; font-size: 0.72rem; font-weight: 700; vertical-align: 1px; }
        .buy-option-coupon-price:empty { display: none; }
        .buy-option-coupon .coupon-code { white-space: nowrap; }
        .buy-box-bf { margin: .6rem 0 0; font-size: .9rem; font-weight: 600; }
        .buy-box-bf a { color: var(--teal); }
        .buy-box-note { margin-top: 1rem; font-size: 0.78rem; color: var(--gray-500); line-height: 1.5; }
        @media (max-width: 640px) {
            .buy-option-main { grid-template-columns: 1fr auto; grid-template-areas: "region price" "vendor cta"; gap: 0.5rem 0.9rem; }
            .buy-option-region { grid-area: region; }
            .buy-option-price { grid-area: price; text-align: right; }
            .buy-option-vendor { grid-area: vendor; }
            .buy-option-vendor .vlogo + .buy-option-vendor-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
            .buy-option-cta { grid-area: cta; justify-self: end; }
        }
