/**
 * Izri.Online — Accueil « terminal » (2026-10-23)
 *
 * Chargée UNIQUEMENT sur la page d'accueil (is_front_page()).
 * Le reste du site (blog, boutique, fiches, checkout, pages) conserve
 * intégralement le thème clair : aucune règle ici ne fuit hors de `.home`.
 *
 * Charte : fond #0C0908, or #D4A86A, terracotta #D88460.
 * Accents « terminal » : menthe #8FD9A8 réservée aux // , aux prompts et aux états.
 * Typo : Playfair Display (titres), JetBrains Mono (labels/chiffres), DM Sans (corps).
 */

/* ── 1. Jetons ──────────────────────────────────────────────────────────── */
.home {
    --ht-bg: #0C0908;
    --ht-surface: #141110;
    --ht-surface-2: #1A1614;
    --ht-text: #E8E0D5;
    --ht-strong: #F5EFE6;
    --ht-muted: #B8ADA0;
    --ht-dim: #8F857A;
    --ht-gold: #D4A86A;
    --ht-gold-hi: #E3BE87;
    --ht-terra: #D88460;
    --ht-mint: #8FD9A8;
    --ht-line: rgba(212, 168, 106, 0.16);
    --ht-line-soft: rgba(255, 255, 255, 0.06);
    --ht-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --ht-serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --ht-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Navbar / menu mobile du parent : une seule variable à changer. */
    --navbar-bg: rgba(12, 9, 8, 0.94);
    --color-bg: var(--ht-bg);
    --color-surface: var(--ht-surface);
    --color-text: var(--ht-text);
    --color-text-light: var(--ht-muted);
    --color-text-muted: var(--ht-dim);
    --color-border: var(--ht-line);
    --color-border-light: var(--ht-line-soft);
    --color-primary: var(--ht-gold);
    --color-primary-dark: var(--ht-gold);
    --color-primary-light: var(--ht-gold-hi);

    background: var(--ht-bg);
    color: var(--ht-text);
}

/* Décalage des ancres (#services, #boutique…) sous la navbar fixe. */
html {
    scroll-padding-top: calc(var(--navbar-h, 86px) + 20px);
    background: #0C0908;
}

/* ── 2. Structure ───────────────────────────────────────────────────────── */
.ht-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-inline: clamp(20px, 5vw, 48px);
}

.ht-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: calc(var(--navbar-h, 86px) + clamp(44px, 7vw, 84px)) clamp(64px, 9vw, 112px);
    border-bottom: 1px solid var(--ht-line);
}

/* Halo chaud + trame discrète : profondeur sans image. */
.ht-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(880px 460px at 78% -12%, rgba(212, 168, 106, 0.11), transparent 62%),
        radial-gradient(640px 400px at 4% 108%, rgba(216, 132, 96, 0.07), transparent 60%);
}

.ht-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 100%);
    pointer-events: none;
}

.ht-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: clamp(32px, 5.5vw, 72px);
    align-items: center;
}

.ht-section {
    padding-block: clamp(60px, 8vw, 100px);
    border-bottom: 1px solid var(--ht-line-soft);
}

.ht-section:last-of-type { border-bottom: 0; }

/* ── 3. Typographie ─────────────────────────────────────────────────────── */
.ht-kicker {
    margin: 0 0 18px;
    font-family: var(--ht-mono);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ht-dim);
}

.ht-kicker::before {
    content: "// ";
    color: var(--ht-mint);
    letter-spacing: 0;
}

.ht-title {
    margin: 0 0 22px;
    font-family: var(--ht-serif);
    font-weight: 500;
    font-size: clamp(2.25rem, 5.4vw, 4.35rem);
    line-height: 1.03;
    letter-spacing: -0.015em;
    color: var(--ht-strong);
    text-wrap: balance;
}

.ht-title em {
    font-style: italic;
    color: var(--ht-gold);
}

.ht-h2 {
    margin: 0 0 14px;
    font-family: var(--ht-serif);
    font-weight: 500;
    font-size: clamp(1.75rem, 3.4vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--ht-strong);
    text-wrap: balance;
}

.ht-h2--xl {
    font-size: clamp(2rem, 5vw, 3.6rem);
}

.ht-sub {
    margin: 0;
    max-width: 58ch;
    font-family: var(--ht-sans);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ht-muted);
}

.ht-lead {
    margin: 0 0 32px;
    max-width: 52ch;
    font-family: var(--ht-sans);
    font-size: clamp(1rem, 1.35vw, 1.12rem);
    line-height: 1.72;
    color: var(--ht-muted);
}

.ht-caret {
    display: inline-block;
    margin-inline-start: 2px;
    color: var(--ht-mint);
    /* Caret premium : 2 temps — éteint brièvement puis rallumé, pas un
       simple on/off à 50 %. Toujours un seul personnage "_" (pas de tofu). */
    animation: ht-blink 1.3s var(--ease-out, cubic-bezier(.16,1,.3,1)) infinite;
}

@keyframes ht-blink {
    0%, 58% { opacity: 1; }
    59%, 68% { opacity: 0; }
    69%, 100% { opacity: 1; }
}

/* Révélation du titre par lignes (Phase 2) — progressive enhancement.
   Sans JS : le titre reste visible (aucune règle ne le masque).
   .js .line-inner masque seulement quand JS a splitté le titre en lignes. */
.ht-title .line-mask {
    display: block;
    overflow: hidden;
}
.ht-title .line-inner {
    display: block;
    will-change: transform;
}
.js .ht-title .line-inner {
    transform: translateY(112%);
    transition: transform var(--dur-reveal, 600ms) var(--ease-out, cubic-bezier(.16,1,.3,1));
    transition-delay: calc(90ms * var(--line-index, 0));
}
.js .ht-title.is-in .line-inner {
    transform: translateY(0);
}

/* ── 4. Barre de terminal ───────────────────────────────────────────────── */
.ht-termbar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--ht-line);
    background: rgba(255, 255, 255, 0.022);
    font-family: var(--ht-mono);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    color: var(--ht-dim);
}

.ht-hero-copy .ht-termbar {
    margin-bottom: 26px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--ht-line-soft);
    background: none;
}

.ht-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #3B3330;
}

.ht-dot:nth-child(1) { background: #5C3A31; }
.ht-dot:nth-child(2) { background: #5C4A2E; }
.ht-dot:nth-child(3) { background: #35473A; }

.ht-termbar-path { margin-inline-start: 6px; }

@property --ht-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.ht-terminal {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    /* Bordure dorée animée : fond en 2 couches (surface + conic or
       rotatif en border-box). @property = rotation fluide ; sans
       support, le conic reste statique = même rendu, pas de casse.
       Hauteur/largeur jamais animées (transform/angle uniquement). */
    background:
        linear-gradient(180deg, #171312 0%, #100D0B 100%) padding-box,
        conic-gradient(from var(--ht-angle), rgba(212,168,106,.08), rgba(212,168,106,.55), rgba(216,132,96,.35), rgba(212,168,106,.08)) border-box;
    border: 1px solid transparent;
    box-shadow: 0 34px 90px -46px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    animation: ht-angle 14s linear infinite;
}

@keyframes ht-angle {
    to { --ht-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
    .ht-terminal { animation: none; }
}

.ht-term-body {
    margin: 0;
    padding: 20px 18px 22px;
    font-family: var(--ht-mono);
    font-size: 0.78rem;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.ht-line { margin: 0; color: var(--ht-text); }
.ht-prompt { color: var(--ht-mint); margin-inline-end: 6px; }
.ht-cmd { color: var(--ht-text); }

.ht-out {
    margin: 0 0 10px;
    padding-inline-start: 20px;
    color: var(--ht-dim);
}

.ht-out:last-child { margin-bottom: 0; }
.ht-out--gold { color: var(--ht-gold); font-weight: 500; }
.ht-out--mint { color: var(--ht-mint); }
.ht-out b { font-weight: 500; color: var(--ht-text); }

/* ── 5. Boutons ─────────────────────────────────────────────────────────── */
.ht-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.ht-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid var(--ht-line);
    border-radius: 10px;
    background: transparent;
    color: var(--ht-text);
    font-family: var(--ht-mono);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease,
        transform var(--dur-ui, 200ms) var(--ease-out-soft, cubic-bezier(.23,1,.32,1));
    /* Magnétique (Phase 2, desktop uniquement via JS) : décalage 20 %
       vers le pointeur, géré par --mx/--my (transform uniquement). */
    transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
    will-change: transform;
}

.ht-btn--gold {
    border-color: var(--ht-gold);
    background: var(--ht-gold);
    color: #16110D;
    font-weight: 600;
}

.ht-btn:active { transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) scale(0.97); }

.ht-btn:focus-visible,
.ht-row:focus-visible,
.ht-chip:focus-visible,
.ht-journal-link:focus-visible {
    outline: 2px solid var(--ht-mint);
    outline-offset: 3px;
}

/* ── 6. Statistiques ────────────────────────────────────────────────────── */
.ht-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 44px 0 0;
    padding: 22px 0 0;
    border-top: 1px solid var(--ht-line-soft);
}

.ht-stat {
    display: flex;
    flex-direction: column-reverse;
    margin: 0;
}

.ht-stat-value {
    display: block;
    font-family: var(--ht-mono);
    font-size: clamp(1.3rem, 2.2vw, 1.62rem);
    font-weight: 500;
    line-height: 1;
    color: var(--ht-gold);
    font-variant-numeric: tabular-nums;
}

.ht-stat-label {
    display: block;
    margin-top: 8px;
    font-family: var(--ht-mono);
    font-size: 0.62rem;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ht-dim);
}

/* ── 7. En-têtes de section ─────────────────────────────────────────────── */
.ht-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 12px 40px;
    align-items: end;
    margin-bottom: clamp(28px, 4vw, 44px);
}

.ht-head .ht-kicker,
.ht-head .ht-h2 { grid-column: 1; }

.ht-head .ht-sub {
    grid-column: 2;
    padding-bottom: 6px;
}

/* ── 8. Listes (services, journal) ──────────────────────────────────────── */
.ht-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--ht-line-soft);
}

.ht-row {
    position: relative;
    display: grid;
    grid-template-columns: 3.2rem minmax(0, 1fr) 2rem;
    gap: 0 18px;
    align-items: center;
    min-height: 84px;
    padding: 20px 16px;
    border-bottom: 1px solid var(--ht-line-soft);
    color: inherit;
    text-decoration: none;
    transition: background-color var(--dur-ui, 200ms) var(--ease-out, cubic-bezier(.16,1,.3,1));
}

/* Fond glissant (Phase 3) : surface qui grandit de gauche à droite.
   scaleX uniquement — jamais de width animée. z-index sous le texte. */
.ht-row::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg, rgba(212, 168, 106, 0.07), rgba(255, 255, 255, 0.02));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--dur-reveal, 600ms) var(--ease-out, cubic-bezier(.16,1,.3,1));
    pointer-events: none;
}

.ht-row > * {
    position: relative;
    z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
    .ht-row:hover::before {
        transform: scaleX(1);
    }

    html[dir="rtl"] .ht-row::before {
        transform-origin: right center;
    }
}

.ht-row-main {
    transition: transform var(--dur-ui, 200ms) var(--ease-out, cubic-bezier(.16,1,.3,1));
}

.ht-num,
.ht-row-title,
.ht-row-desc {
    transition: color var(--dur-ui, 200ms) var(--ease-out, cubic-bezier(.16,1,.3,1)),
        text-shadow var(--dur-ui, 200ms) ease;
}

@media (hover: hover) and (pointer: fine) {
    .ht-row:hover .ht-num {
        color: var(--ht-terra);
        text-shadow: 0 0 18px rgba(216, 132, 96, 0.35);
    }

    .ht-row:hover .ht-row-main {
        transform: translateX(6px);
    }

    html[dir="rtl"] .ht-row:hover .ht-row-main {
        transform: translateX(-6px);
    }

    .ht-row:hover .ht-row-desc {
        color: var(--ht-muted);
    }
}

.ht-num {
    font-family: var(--ht-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--ht-dim);
}

.ht-row-title {
    display: block;
    font-family: var(--ht-sans);
    font-size: clamp(1.05rem, 1.5vw, 1.28rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--ht-strong);
}

.ht-row-desc {
    display: block;
    margin-top: 6px;
    max-width: 62ch;
    font-family: var(--ht-sans);
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--ht-dim);
}

.ht-arrow {
    font-family: var(--ht-mono);
    font-size: 1rem;
    color: var(--ht-dim);
    justify-self: end;
    transition: color 0.18s ease, transform 0.18s ease;
}

html[dir="rtl"] .ht-arrow { transform: scaleX(-1); }

/* ── 8b. Marquee expertises (Phase 3, CSS-only) ──────────────────────────
   Boucle transform -50 % (2 motifs identiques), 30 s linéaire.
   Pause au hover. Bords en fondu. Aucun JS, aucun layout shift :
   hauteur fixe = 1 ligne mono. */
.ht-marquee {
    overflow: hidden;
    border-block: 1px solid var(--ht-line);
    padding-block: 14px;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ht-marquee-track {
    display: flex;
    width: max-content;
    animation: ht-marquee 30s linear infinite;
}

.ht-marquee-track span {
    white-space: nowrap;
    font-family: var(--ht-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ht-dim);
}

.ht-marquee:hover .ht-marquee-track {
    animation-play-state: paused;
}

@keyframes ht-marquee {
    to { transform: translateX(-50%); }
}

html[dir="rtl"] .ht-marquee-track {
    animation-direction: reverse;
}

/* ── 9. Boutique ────────────────────────────────────────────────────────── */
.ht-shop {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    padding: clamp(26px, 4vw, 52px);
    border: 1px solid var(--ht-line);
    border-radius: 18px;
    background:
        radial-gradient(560px 320px at 92% 0%, rgba(212, 168, 106, 0.08), transparent 68%),
        var(--ht-surface);
}

.ht-shop .ht-btn { margin-top: 28px; }

.ht-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px 0 0;
}

.ht-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--ht-line);
    border-radius: 999px;
    color: var(--ht-muted);
    font-family: var(--ht-mono);
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: border-color var(--dur-ui, 200ms) var(--ease-out, cubic-bezier(.16,1,.3,1)),
        color var(--dur-ui, 200ms) var(--ease-out, cubic-bezier(.16,1,.3,1)),
        background-color var(--dur-ui, 200ms) var(--ease-out, cubic-bezier(.16,1,.3,1)),
        transform var(--dur-ui, 200ms) var(--ease-out, cubic-bezier(.16,1,.3,1));
}

@media (hover: hover) and (pointer: fine) {
    .ht-chip:hover {
        transform: translateY(-2px);
        background-color: rgba(212, 168, 106, 0.08);
    }
}

.ht-chip-n {
    color: var(--ht-mint);
    font-size: 0.66rem;
}

.ht-figure {
    text-align: center;
    padding: 10px 0;
}

.ht-figure-n {
    display: block;
    font-family: var(--ht-serif);
    font-size: clamp(4rem, 8vw, 6.2rem);
    font-weight: 500;
    line-height: 0.95;
    color: var(--ht-gold);
    font-variant-numeric: tabular-nums;
}

.ht-figure-label {
    display: block;
    margin-top: 12px;
    font-family: var(--ht-mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ht-dim);
}

.ht-figure-meta {
    margin: 24px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--ht-line-soft);
    list-style: none;
    font-family: var(--ht-mono);
    font-size: 0.7rem;
    line-height: 2;
    color: var(--ht-muted);
    text-align: start;
}

.ht-figure-meta li::before {
    content: "→ ";
    color: var(--ht-mint);
}

/* ── 10. Pourquoi ───────────────────────────────────────────────────────── */
.ht-why {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(22px, 3.4vw, 44px);
    margin: 0;
    /* Tilt 3D (Phase 3) : perspective bornée, rotation max 4° via JS.
       Les cartes gardent un léger relief au repos (translateY + ombre). */
    perspective: 900px;
}

.ht-why-item {
    position: relative;
    margin: 0;
    padding: 26px 24px 28px;
    border: 1px solid var(--ht-line-soft);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent);
    transform: translate3d(0, 0, 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transform-style: preserve-3d;
    transition: transform var(--dur-ui, 200ms) var(--ease-out, cubic-bezier(.16,1,.3,1)),
        border-color var(--dur-ui, 200ms) ease;
    will-change: transform;
}

/* Reflet doré qui suit le pointeur (Phase 3) : radial à (--sx,--sy),
   visible seulement au hover, jamais un halo opaque. */
.ht-why-item::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(320px 220px at var(--sx, 50%) var(--sy, 50%), rgba(212, 168, 106, 0.10), transparent 65%);
    opacity: 0;
    transition: opacity var(--dur-ui, 200ms) ease;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .ht-why-item:hover {
        transform: translate3d(0, -4px, 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
        border-color: rgba(212, 168, 106, 0.35);
    }

    .ht-why-item:hover::after {
        opacity: 1;
    }
}

.ht-why-k {
    margin: 0 0 14px;
    font-family: var(--ht-mono);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ht-mint);
}

.ht-why-t {
    margin: 0 0 8px;
    font-family: var(--ht-sans);
    font-size: 1.06rem;
    font-weight: 600;
    color: var(--ht-strong);
}

.ht-why-d {
    margin: 0;
    font-family: var(--ht-sans);
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--ht-dim);
}

/* ── 11. Journal ────────────────────────────────────────────────────────── */
.ht-journal-link {
    display: grid;
    grid-template-columns: 3.4rem minmax(0, 1fr) auto;
    gap: 0 18px;
    align-items: center;
    min-height: 72px;
    padding: 18px 0;
    border-bottom: 1px solid var(--ht-line-soft);
    color: inherit;
    text-decoration: none;
}

.ht-journal-link:first-child { border-top: 1px solid var(--ht-line-soft); }

.ht-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 1.55rem;
    border: 1px solid var(--ht-line);
    border-radius: 5px;
    font-family: var(--ht-mono);
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--ht-mint);
}

.ht-journal-title {
    font-family: var(--ht-sans);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ht-text);
    /* Soulignement progressif (Phase 3) : background-size 0 → 100 %. */
    background-image: linear-gradient(90deg, var(--ht-gold), var(--ht-terra));
    background-repeat: no-repeat;
    background-size: 0% 1px;
    background-position: 0 100%;
    transition: background-size var(--dur-ui, 200ms) var(--ease-out, cubic-bezier(.16,1,.3,1)),
        color var(--dur-ui, 200ms) ease;
}

@media (hover: hover) and (pointer: fine) {
    .ht-journal-link:hover .ht-journal-title {
        background-size: 100% 1px;
    }

    .ht-journal-link:hover .ht-journal-date {
        color: var(--ht-gold);
    }
}

.ht-journal-date {
    font-family: var(--ht-mono);
    font-size: 0.68rem;
    color: var(--ht-dim);
    white-space: nowrap;
    transition: color var(--dur-ui, 200ms) ease;
}

.ht-more {
    margin-top: 30px;
}

/* ── 12. CTA final ──────────────────────────────────────────────────────── */
.ht-final {
    text-align: center;
    padding-block: clamp(70px, 10vw, 128px);
}

.ht-final .ht-kicker::before { content: "// "; }

.ht-final .ht-sub {
    margin: 0 auto;
    max-width: 46ch;
}

.ht-final .ht-cta-row {
    justify-content: center;
    margin-top: 30px;
}

.ht-legal {
    margin: 26px 0 0;
    font-family: var(--ht-mono);
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    color: var(--ht-dim);
}

.ht-legal a { color: var(--ht-muted); text-decoration: none; }
.ht-legal a:hover { color: var(--ht-gold); }
.ht-legal a:focus-visible { outline: 2px solid var(--ht-mint); outline-offset: 3px; }

/* ── 13. Navbar (accueil uniquement) ────────────────────────────────────── */
.home .navbar {
    border-bottom-color: var(--ht-line);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.home .navbar .nav-container {
    transition: padding var(--dur-ui, 200ms) var(--ease-out, cubic-bezier(.16,1,.3,1));
}

.home .navbar.scrolled {
    background: rgba(10, 8, 7, 0.97);
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.9);
}

/* Shrink au scroll (Phase 2) : padding + logo réduits, --navbar-h
   recalculée côté JS (offsetHeight réel, pas une valeur devinée). */
.home .navbar.scrolled .nav-container {
    padding-top: 8px;
    padding-bottom: 8px;
}

.home .nav-logo img,
.home .nav-logo .custom-logo {
    height: 58px;
    transition: height var(--dur-ui, 200ms) var(--ease-out, cubic-bezier(.16,1,.3,1));
}

.home .navbar.scrolled .nav-logo img,
.home .navbar.scrolled .nav-logo .custom-logo {
    /* !important : global-terminal impose 58px !important sur le logo */
    height: 46px !important;
}

.home .nav-menu .menu-item > a {
    position: relative;
    color: var(--ht-muted);
    transition: color var(--dur-ui, 200ms) var(--ease-out, cubic-bezier(.16,1,.3,1));
}

/* Soulignement animé (Phase 2) : scaleX 0→1, origine gauche,
   transform uniquement (jamais width). */
.home .nav-menu .menu-item > a::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--ht-gold), var(--ht-terra));
    transform: scaleX(0);
    transition: transform var(--dur-ui, 200ms) var(--ease-out, cubic-bezier(.16,1,.3,1));
}

.home .nav-menu .menu-item > a:hover::after,
.home .nav-menu .current-menu-item > a::after,
.home .nav-menu .current_page_item > a::after,
.home .nav-menu .menu-item > a.active::after {
    left: 12px;
    right: 12px;
    transform: scaleX(1);
}

.home .nav-menu .menu-item > a:hover,
.home .nav-menu .current-menu-item > a,
.home .nav-menu .current_page_item > a {
    color: var(--ht-gold);
}

.home .nav-link.nav-cta {
    border-color: var(--ht-gold);
    background: var(--ht-gold);
    color: #16110D;
}

.home .nav-toggle span {
    background: var(--ht-text);
}

.home .nav-toggle:focus-visible,
.home .lang-dropdown-toggle:focus-visible {
    outline: 2px solid var(--ht-mint);
    outline-offset: 3px;
}

.home .lang-dropdown-toggle {
    border-color: var(--ht-line);
    color: var(--ht-muted);
}

.home .lang-dropdown-toggle:hover {
    border-color: var(--ht-gold);
    color: var(--ht-gold);
}

.home .lang-dropdown-menu {
    border-color: var(--ht-line);
    background: var(--ht-surface);
}

.home .lang-dropdown-menu a {
    color: var(--ht-muted);
}

.home .lang-dropdown-menu a:hover {
    background: var(--ht-surface-2);
    color: var(--ht-gold);
}

/* ── 14. Footer (accueil uniquement) ────────────────────────────────────── */
.home .footer {
    border-top-color: var(--ht-line);
    background: #0A0807;
}

.home .footer-logo,
.home .footer-col h4 {
    color: var(--ht-strong);
}

.home .footer-logo-dot { color: var(--ht-gold); }

.home .footer-tagline,
.home .footer-col a,
.home .footer-bottom,
.home .footer-newsletter p {
    color: var(--ht-muted);
}

.home .footer-col a:hover { color: var(--ht-gold); }

.home .footer-social a {
    border-color: var(--ht-line);
    color: var(--ht-muted);
}

.home .footer-social a:hover {
    border-color: var(--ht-gold);
    background: var(--ht-gold);
    color: #16110D;
}

.home .footer-newsletter h4 { color: var(--ht-strong); }

.home .newsletter-form input {
    border-color: var(--ht-line);
    background: var(--ht-surface);
    color: var(--ht-text);
}

.home .newsletter-form input::placeholder { color: var(--ht-dim); }

.home .newsletter-form button {
    border-color: var(--ht-gold);
    background: var(--ht-gold);
    color: #16110D;
}

.home .footer-bottom { border-top-color: var(--ht-line); }

/* ── 15. Hover (pointeur fin uniquement) ────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
    .ht-btn:hover {
        border-color: var(--ht-gold);
        color: var(--ht-gold);
    }

    .ht-btn--gold:hover {
        border-color: var(--ht-gold-hi);
        background: var(--ht-gold-hi);
        color: #16110D;
    }

    .ht-row:hover .ht-row-title { color: var(--ht-gold); }
    .ht-row:hover .ht-arrow { color: var(--ht-gold); transform: translateX(5px); }
    html[dir="rtl"] .ht-row:hover .ht-arrow { transform: scaleX(-1) translateX(5px); }
    .ht-row:hover .ht-num { color: var(--ht-terra); }

    .ht-journal-link:hover .ht-journal-title { color: var(--ht-gold); }
    .ht-journal-link:hover .ht-arrow { color: var(--ht-gold); transform: translateX(5px); }
    html[dir="rtl"] .ht-journal-link:hover .ht-arrow { transform: scaleX(-1) translateX(5px); }

    .ht-chip:hover {
        border-color: var(--ht-gold);
        color: var(--ht-gold);
    }

    .home .footer-col a,
    .home .footer-social a,
    .home .newsletter-form button {
        transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
    }
}

/* ── 16. Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 980px) {
    .ht-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .ht-terminal { max-width: 620px; }
    .ht-head { grid-template-columns: minmax(0, 1fr); }
    .ht-head .ht-sub { grid-column: 1; }
    .ht-shop { grid-template-columns: minmax(0, 1fr); }
    .ht-figure { order: -1; }
    .ht-figure-n { font-size: 4.4rem; }
    .ht-figure-meta { display: none; }
}

@media (max-width: 800px) {
    .ht-why { grid-template-columns: minmax(0, 1fr); }
}

/* Cibles tactiles : le menu mobile du parent mesure 40 px de haut. */
@media (max-width: 768px) {
    .home .nav-menu .menu-item > a {
        display: flex;
        align-items: center;
        min-height: 44px;
    }
}

@media (max-width: 560px) {
    .home .nav-logo img,
    .home .nav-logo .custom-logo { height: 46px; }

    .ht-row {
        grid-template-columns: 2.4rem minmax(0, 1fr) 1.4rem;
        gap: 0 12px;
        padding: 18px 0;
    }

    .ht-journal-link {
        grid-template-columns: 2.6rem minmax(0, 1fr) 1.2rem;
        gap: 0 12px;
    }

    .ht-journal-date { display: none; }

    .ht-cta-row .ht-btn { flex: 1 1 100%; }
}

@media (max-width: 360px) {
    .ht-stats { gap: 10px; }
    .ht-stat-label { font-size: 0.55rem; letter-spacing: 0.08em; }
    .ht-btn { padding: 0 16px; letter-spacing: 0.04em; }
}

/* ── 17. Mouvement réduit ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .ht-caret { animation: none; opacity: 0.75; }
    .ht-terminal { animation: none; }

    .ht-marquee-track { animation: none; }
    .ht-marquee { mask-image: none; -webkit-mask-image: none; }

    .ht-row::before { display: none; }
    .ht-row:hover .ht-row-main { transform: none; }

    .ht-why-item {
        transform: none;
        will-change: auto;
    }
    .ht-why-item::after { display: none; }

    .ht-journal-title { background-size: 0% 1px; }
    .ht-chip:hover { transform: none; }

    .js .ht-title .line-inner {
        transform: none;
        transition: none;
    }

    .ht-btn { transform: none; will-change: auto; }

    .ht-btn,
    .ht-arrow,
    .ht-chip,
    .ht-row,
    .ht-row-main,
    .ht-row-title,
    .ht-row-desc,
    .ht-num,
    .ht-journal-title,
    .ht-journal-date,
    .ht-why-item,
    .home .navbar,
    .home .navbar .nav-container,
    .home .nav-logo img,
    .home .nav-logo .custom-logo,
    .home .nav-menu .menu-item > a,
    .home .nav-menu .menu-item > a::after {
        transition: none;
    }
}
