        :root {
            --bg: #0c0a08;
            --gold: #c9a84c;
            --gold-dim: #8a6f30;
            --text: #f5f0e8;
            --text-dim: #8a8678;
            --border: #2a2820;
            --void: #1a1410;
            --glyph: rgba(201, 168, 76, 0.18);
            --mist: rgba(201, 168, 76, 0.06);
            --display: 'Cinzel', serif;
            --body: 'Cormorant Garamond', Georgia, serif;
            --mono: 'DM Mono', monospace;
        }

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

        body {
            background: var(--bg);
            color: var(--text);
            font-family: var(--body);
            margin: 0;
            text-align: center;
            font-size: 18px;
            line-height: 1.7;
            overflow-x: hidden;
        }

        body::before {
            content: '';
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: 0;
            background:
                radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201, 168, 76, 0.06) 0%, transparent 70%),
                radial-gradient(ellipse 40% 30% at 80% 80%, rgba(139, 58, 42, 0.07) 0%, transparent 60%);
        }

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

        header {
            padding: 1.2rem 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(201, 168, 76, 0.12);
            position: relative;
            z-index: 10;
        }

        .hero-sigil {
            width: 56px;
            height: 56px;
            margin: 0 auto 24px;
            opacity: 0;
            animation: fadeUp 1s ease 0.2s forwards;
        }

        .hero-eyebrow {
            font-family: var(--mono);
            font-size: 11px;
            letter-spacing: 0.22em;
            text-transform: uppercase;
            color: var(--gold-dim);
            opacity: 0;
            animation: fadeUp 1s ease 0.4s forwards;
        }

        .hero-title {
            font-family: var(--display);
            font-size: clamp(28px, 7vw, 52px);
            font-weight: 400;
            letter-spacing: 0.04em;
            line-height: 1.15;
            color: var(--text);
            margin: 14px 0 6px;
            opacity: 0;
            animation: fadeUp 1s ease 0.6s forwards;
        }

        .hero-title em {
            font-style: italic;
            color: var(--gold);
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.05em;
            font-weight: 300;
        }

        .hero-subtitle-line {
            font-size: 15px;
            font-weight: 300;
            font-style: italic;
            color: rgba(245, 240, 232, 0.55);
            margin-top: 10px;
            opacity: 0;
            animation: fadeUp 1s ease 0.8s forwards;
            font-family: var(--mono);
            letter-spacing: 0.05em;
        }

        .gold-rule {
            width: 50px;
            height: 1px;
            background: var(--gold);
            margin: 26px auto;
            opacity: 0;
            animation: fadeUp 1s ease 1s forwards;
        }

        .hero-hook {
            padding: 0 0 40px;
            opacity: 0;
            animation: fadeUp 1s ease 1.1s forwards;
        }

        .hero-hook p {
            font-size: 19px;
            font-style: italic;
            color: rgba(245, 240, 232, 0.78);
            max-width: 480px;
            margin: 0 auto 8px;
        }

        .hero-hook strong {
            color: var(--gold);
            font-weight: 400;
        }

        .pillars {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 14px;
            max-width: 620px;
            margin: 0 auto 44px;
            padding: 0 20px;
        }

        @media (max-width: 540px) {
            .pillars {
                grid-template-columns: 1fr;
            }
        }

        .pillar {
            border: 1px solid var(--glyph);
            border-top: 2px solid var(--gold-dim);
            padding: 20px 16px;
            background: var(--mist);
            text-align: left;
            transition: border-color 0.3s, background 0.3s;
        }

        .pillar:hover {
            border-color: var(--gold);
            background: rgba(201, 168, 76, 0.08);
        }

        .pillar-glyph {
            font-family: var(--mono);
            font-size: 10px;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: var(--gold-dim);
            margin-bottom: 8px;
            display: block;
        }

        .pillar h3 {
            font-family: var(--display);
            font-size: 13px;
            font-weight: 400;
            letter-spacing: 0.06em;
            color: var(--text);
            margin-bottom: 6px;
        }

        .pillar p {
            font-size: 14px;
            font-style: italic;
            color: rgba(245, 240, 232, 0.5);
            line-height: 1.4;
            margin: 0;
        }

        .login-card {
            border: 1px solid var(--glyph);
            padding: 2.2rem 2rem;
            max-width: 420px;
            margin: 0 auto 3rem;
            background: rgba(201, 168, 76, 0.04);
            position: relative;
        }

        .login-card::before {
            content: '';
            position: absolute;
            top: -1px;
            left: 40px;
            right: 40px;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--gold), transparent);
        }

        .login-input {
            width: 100%;
            padding: 0.85rem;
            margin-bottom: 1.2rem;
            background: rgba(12, 10, 8, 0.6);
            border: 1px solid rgba(201, 168, 76, 0.2);
            color: var(--text);
            outline: none;
            box-sizing: border-box;
            font-family: var(--body);
            font-size: 16px;
            transition: border-color 0.25s;
            border-radius: 0;
        }

        .login-input:focus {
            border-color: var(--gold);
            background: rgba(12, 10, 8, 0.85);
        }

        .login-input::placeholder {
            color: rgba(245, 240, 232, 0.25);
            font-style: italic;
        }

        .btn-primary {
            background: transparent;
            border: 1px solid var(--gold);
            color: var(--gold);
            padding: 0.9rem 1.5rem;
            cursor: pointer;
            font-family: var(--display);
            font-size: 0.72rem;
            letter-spacing: 0.16em;
            text-transform: uppercase;
            width: 100%;
            margin-bottom: 10px;
            position: relative;
            overflow: hidden;
            transition: color 0.3s;
        }

        .btn-primary::before {
            content: '';
            position: absolute;
            inset: 0;
            background: var(--gold);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.35s ease;
        }

        .btn-primary:hover {
            color: var(--bg);
        }

        .btn-primary:hover::before {
            transform: scaleX(1);
        }

        .btn-primary span,
        .btn-primary #btn-text {
            position: relative;
            z-index: 1;
        }

        .btn-primary:disabled {
            opacity: 0.7;
            cursor: wait;
        }

        .btn-secondary {
            background: transparent;
            border: 1px solid rgba(201, 168, 76, 0.2);
            color: var(--text-dim);
            padding: 0.85rem 1.5rem;
            cursor: pointer;
            font-family: var(--display);
            font-size: 0.7rem;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            width: 100%;
            transition: border-color 0.25s;
        }

        .btn-secondary:hover {
            border-color: var(--gold-dim);
        }

        #app-section {
            display: none;
            padding: 2rem;
        }

        .date-input {
            background: #111110;
            border: 1px solid var(--border);
            color: #fff;
            padding: 0.8rem;
            margin-bottom: 1rem;
            width: 100%;
            max-width: 300px;
            font-family: var(--body);
        }

        .spinner {
            display: inline-block;
            width: 12px;
            height: 12px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: #fff;
            animation: spin 1s ease-in-out infinite;
            margin-right: 10px;
            vertical-align: middle;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(18px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .registration-area {
            display: none;
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(201, 168, 76, 0.15);
            text-align: left;
        }

        .label-small {
            font-size: 0.65rem;
            color: var(--gold-dim);
            font-family: var(--mono);
            margin-bottom: 5px;
            display: block;
            letter-spacing: 0.18em;
            text-transform: uppercase;
        }

        #btn-coffee {
            position: fixed;
            bottom: 18px;
            right: 18px;
            z-index: 999;
            background: var(--gold);
            color: #000;
            border: none;
            padding: 8px 16px;
            font-family: var(--display);
            font-size: 0.7rem;
            font-weight: bold;
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
            transition: opacity 0.2s;
        }

        #btn-coffee:hover {
            opacity: 0.85;
        }

        #btn-x {
            position: fixed;
            bottom: 18px;
            left: 18px;
            z-index: 999;
            background: #000;
            color: #fff;
            border: 1px solid var(--border);
            padding: 8px 14px;
            font-family: var(--display);
            font-size: 0.7rem;
            font-weight: bold;
            cursor: pointer;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: opacity 0.2s;
        }

        #btn-x:hover {
            opacity: 0.75;
        }

        /* ── Synthèse markdown ───────────────────────────────────────────── */
        #synthesis-content strong {
            color: var(--gold);
            font-weight: 600;
        }

        #synthesis-content em {
            color: rgba(245, 240, 232, 0.7);
            font-style: italic;
        }

        #synthesis-content h2 {
            font-family: var(--display);
            font-size: 1rem;
            letter-spacing: 0.1em;
            color: var(--gold);
            border-bottom: 1px solid var(--border);
            padding-bottom: 0.3rem;
            margin-top: 1.8rem;
        }

        #synthesis-content h3 {
            font-family: var(--display);
            font-size: 0.85rem;
            letter-spacing: 0.08em;
            color: var(--gold-dim);
            margin-top: 1.2rem;
        }

        /* ── Liens expansibles (hook + synthèse) ────────────────────────────── */
        #synthesis-content a[href^="expand:"],
        #hook-natal-text a[href^="expand:"] {
            color: var(--gold);
            text-decoration: none;
            background: rgba(201, 168, 76, 0.10);
            border: 1px solid rgba(201, 168, 76, 0.30);
            padding: 0.05em 0.55em 0.12em;
            font-family: var(--mono);
            font-size: 0.78em;
            letter-spacing: 0.04em;
            cursor: pointer;
            display: inline-block;
            margin: 3px 2px;
            transition: background 0.2s, border-color 0.2s, color 0.2s;
            white-space: nowrap;
        }

        #synthesis-content a[href^="expand:"]:hover,
        #hook-natal-text a[href^="expand:"]:hover {
            background: rgba(201, 168, 76, 0.22);
            border-color: var(--gold);
            color: var(--text);
        }

        #synthesis-content a[href^="expand:"].used,
        #hook-natal-text a[href^="expand:"].used {
            opacity: 0.35;
            pointer-events: none;
            cursor: default;
        }

        .expand-box {
            margin: 1rem 0;
            padding: 1rem 1.2rem;
            border-left: 2px solid var(--gold);
            background: rgba(201, 168, 76, 0.05);
            font-size: 0.95em;
            text-align: left;
            animation: fadeUp 0.4s ease forwards;
        }

        .expand-cta {
            margin-top: 1.5rem;
            padding: 1.2rem;
            border: 1px solid var(--gold-dim);
            background: rgba(201, 168, 76, 0.07);
            text-align: center;
        }

        .expand-cta p {
            margin: 0 0 0.8rem;
        }

        .expand-cta .cta-label {
            font-family: var(--mono);
            font-size: 0.7rem;
            letter-spacing: 0.15em;
            color: var(--gold-dim);
            text-transform: uppercase;
        }

        .expand-cta .cta-desc {
            font-size: 0.88rem;
            color: var(--text-dim);
            font-style: italic;
        }

        /* ── Plans paiement ──────────────────────────────────────────────── */
        .btn-plan {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            width: 100%;
            padding: 0.75rem 1rem;
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text);
            cursor: pointer;
            transition: border-color 0.2s, background 0.2s;
            text-align: left;
            gap: 0.2rem;
            text-decoration: none;
        }

        .btn-plan:hover {
            border-color: var(--gold);
            background: rgba(201, 168, 76, 0.05);
        }

        .btn-plan--featured {
            border-color: var(--gold-dim);
        }

        .plan-label {
            font-family: var(--mono);
            font-size: 0.7rem;
            letter-spacing: 0.12em;
            color: var(--gold);
            text-transform: uppercase;
        }

        .plan-price {
            font-family: var(--mono);
            font-size: 1.1rem;
            color: var(--text);
        }

        .plan-price small {
            font-size: 0.65rem;
            color: var(--text-dim);
        }

        .plan-desc {
            font-size: 0.65rem;
            color: var(--text-dim);
            font-family: var(--mono);
            letter-spacing: 0.05em;
        }

        /* ── Notation synthèse dataset ───────────────────────────────────────────── */
        #rating-bar {
            display: none;
            margin-top: 1.5rem;
            padding: 1rem 1.2rem;
            border: 1px solid rgba(201, 168, 76, 0.15);
            background: rgba(201, 168, 76, 0.04);
            text-align: center;
            animation: fadeUp 0.4s ease forwards;
        }

        #rating-bar .rating-label {
            font-family: var(--mono);
            font-size: 0.65rem;
            letter-spacing: 0.18em;
            color: var(--text-dim);
            text-transform: uppercase;
            margin-bottom: 0.8rem;
            display: block;
        }

        .btn-rate {
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text);
            padding: 0.5rem 1.4rem;
            cursor: pointer;
            font-size: 1.2rem;
            margin: 0 6px;
            transition: border-color 0.2s, background 0.2s;
        }

        .btn-rate:hover {
            border-color: var(--gold);
            background: rgba(201, 168, 76, 0.08);
        }

        .btn-rate.selected {
            border-color: var(--gold);
            background: rgba(201, 168, 76, 0.12);
        }

        /* ── Modal consent RGPD ─────────────────────────────────────────────────── */
        #consent-modal {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 9999;
            background: rgba(0, 0, 0, 0.75);
            align-items: center;
            justify-content: center;
        }

        #consent-modal.active {
            display: flex;
        }

        #consent-box {
            background: #0f0f22;
            border: 1px solid var(--gold-dim);
            padding: 2rem;
            max-width: 380px;
            width: 90%;
            text-align: left;
        }

        #consent-box h4 {
            font-family: var(--display);
            font-size: 0.85rem;
            letter-spacing: 0.1em;
            color: var(--gold);
            margin: 0 0 0.8rem;
        }

        #consent-box p {
            font-size: 0.82rem;
            color: var(--text-dim);
            margin: 0 0 1.2rem;
            line-height: 1.6;
        }

        #consent-box label {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            font-size: 0.8rem;
            color: var(--text-dim);
            cursor: pointer;
            margin-bottom: 1.2rem;
        }

        #consent-box input[type=checkbox] {
            accent-color: var(--gold);
            margin-top: 2px;
            flex-shrink: 0;
        }

        #consent-actions {
            display: flex;
            gap: 10px;
        }

        #consent-actions button {
            flex: 1;
        }

        .cta-block {
            padding: 1.5rem;
            border: 1px solid rgba(201, 168, 76, 0.3);
            border-radius: 8px;
            background: rgba(201, 168, 76, 0.05);
            text-align: center;
        }

        .cta-text {
            color: #aaa;
            font-size: 0.95rem;
            margin: 0 0 1.2rem 0;
            line-height: 1.6;
        }

        .cta-button {
            display: inline-block;
            padding: 12px 28px;
            background: transparent;
            border: 1px solid #c9a44c;
            color: #c9a44c;
            border-radius: 6px;
            font-family: var(--mono);
            font-size: 0.9rem;
            letter-spacing: 0.5px;
            text-decoration: none;
            transition: background 0.2s, color 0.2s;
        }

        .cta-button:hover {
            background: #c9a44c;
            color: #080808;
        }
    