/* ════════════════════════════════════════════
   FONTS
   ════════════════════════════════════════════ */
@font-face {
    font-family: 'Dune Rise';
    src: url('../fonts/Dune_Rise.otf') format('opentype'),
         url('../fonts/Dune_Rise.ttf') format('truetype');
    font-display: swap;
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Nunito';
    src: url('../fonts/Nunito/Nunito-VariableFont_wght.ttf') format('truetype');
    font-display: swap;
    font-weight: 200 900;
    font-style: normal;
}

@font-face {
    font-family: 'Nunito';
    src: url('../fonts/Nunito/Nunito-Italic-VariableFont_wght.ttf') format('truetype');
    font-display: swap;
    font-weight: 200 900;
    font-style: italic;
}

/* ════════════════════════════════════════════
   CSS VARIABLES
   ════════════════════════════════════════════ */
:root {
    --gold: #C9A84C;
    --gold-light: #E4CC7A;
    --gold-dark: #8B6914;
    --sand: #D4B896;
    --sand-light: #F5EDE0;
    --bg-deep: #060606;
    --bg-section: #0A0A0A;
    --bg-card: #111111;
    --text-primary: #F5F0E8;
    --text-secondary: #C0B2A0;
    --text-muted: #9A8B7A;
    --border: rgba(201, 168, 76, 0.15);
    --border-hover: rgba(201, 168, 76, 0.4);
    --glass: rgba(10, 10, 10, 0.75);
    --glass-border: rgba(201, 168, 76, 0.1);

    --font-display: 'Dune Rise', serif;
    --font-body: 'Nunito', system-ui, sans-serif;

    --header-h: 72px;
    --section-pad: clamp(80px, 12vw, 160px);
    --container-w: 1200px;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ════════════════════════════════════════════
   RESET & BASE
   ════════════════════════════════════════════ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-primary);
    background: var(--bg-deep);
    overflow-x: hidden;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

img, video {
    display: block;
    max-width: 100%;
}

button {
    border: none;
    background: none;
    color: inherit;
    cursor: pointer;
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 48px);
}

/* ════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════ */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    transition: background 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
    border-bottom: 1px solid transparent;
}

#header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom-color: var(--glass-border);
}

.header-inner {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 48px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: clamp(14px, 1.8vw, 18px);
    letter-spacing: 0.15em;
    color: var(--gold);
}

/* Navigation */
.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.5vw, 32px);
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: clamp(9px, 1.1vw, 12px);
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--gold);
}

.nav-link-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.4s var(--ease-out-expo), left 0.4s var(--ease-out-expo);
}

.nav-link:hover .nav-link-line {
    width: 100%;
    left: 0;
}

.nav-link--locked {
    color: var(--text-muted);
}

.lock-icon {
    width: 14px;
    height: 14px;
    opacity: 0.5;
    flex-shrink: 0;
}

.nav-link--unlocked .lock-icon {
    display: none;
}

/* Discord button */
.btn-discord {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    background: transparent;
}

.btn-discord:hover {
    border-color: #5865F2;
    color: #5865F2;
    background: rgba(88, 101, 242, 0.08);
}

.discord-icon {
    width: 18px;
    height: 18px;
}

.btn-discord-text {
    display: inline;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--gold);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4.5px, 4.5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* Mobile nav */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(6, 6, 6, 0.97);
    backdrop-filter: blur(30px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-nav.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-link {
    font-family: var(--font-display);
    font-size: clamp(18px, 4vw, 24px);
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-nav-link:hover {
    color: var(--gold);
}

.mobile-nav-link--locked {
    color: var(--text-muted);
}

.btn-discord--mobile {
    margin-top: 16px;
    font-size: 12px;
    padding: 12px 24px;
}

/* ════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(6, 6, 6, 0.3) 0%, rgba(6, 6, 6, 0.7) 60%, rgba(6, 6, 6, 0.92) 100%),
        linear-gradient(to bottom, transparent 0%, rgba(6, 6, 6, 0.4) 50%, var(--bg-deep) 100%);
}

.hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    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)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(16px, 3vw, 28px);
    padding: 0 20px;
}

/* Hero badge */
.hero-badge {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-badge-text {
    font-family: var(--font-display);
    font-size: clamp(8px, 1.2vw, 12px);
    letter-spacing: 0.4em;
    color: var(--gold);
}

.hero-badge-line {
    display: block;
    width: clamp(30px, 6vw, 80px);
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold));
}

.hero-badge-line:last-child {
    background: linear-gradient(to left, transparent, var(--gold));
}

/* Hero title - letter animation */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(42px, 10vw, 120px);
    line-height: 1.05;
    letter-spacing: 0.08em;
    color: var(--text-primary);
}

.hero-title-line {
    display: block;
    overflow: hidden;
}

.hero-title-word {
    display: inline-block;
}

.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%) rotateX(-80deg);
    animation: letterReveal 0.8s var(--ease-out-expo) forwards;
    transform-origin: center bottom;
}

@keyframes letterReveal {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

/* Hero subtitle */
.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(14px, 1.6vw, 20px);
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    max-width: 600px;
}

/* Hero divider */
.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.hero-divider-line {
    width: clamp(40px, 8vw, 100px);
    height: 1px;
    background: var(--gold-dark);
}

.hero-divider-diamond {
    width: 8px;
    height: 8px;
    background: var(--gold);
    transform: rotate(45deg);
}

/* Hero scroll indicator */
.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.hero-scroll:hover {
    color: var(--gold);
}

.hero-scroll-text {
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.3em;
}

.hero-scroll-arrow {
    width: 20px;
    height: 20px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Dust particles */
.dust-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.dust {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: dustFloat linear infinite;
}

.dust-1 { left: 10%; animation-duration: 12s; animation-delay: 0s; }
.dust-2 { left: 25%; animation-duration: 15s; animation-delay: 2s; }
.dust-3 { left: 45%; animation-duration: 11s; animation-delay: 4s; }
.dust-4 { left: 65%; animation-duration: 14s; animation-delay: 1s; }
.dust-5 { left: 80%; animation-duration: 13s; animation-delay: 3s; }
.dust-6 { left: 92%; animation-duration: 16s; animation-delay: 5s; }

@keyframes dustFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) translateX(0);
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        opacity: 0;
        transform: translateY(-20vh) translateX(40px);
    }
}

/* ════════════════════════════════════════════
   REVEAL ANIMATION
   ════════════════════════════════════════════ */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ════════════════════════════════════════════
   SECTIONS — COMMON
   ════════════════════════════════════════════ */
.section {
    position: relative;
    padding: var(--section-pad) 0;
    background: var(--bg-section);
    overflow: hidden;
}

.section-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.015;
    background-image:
        linear-gradient(var(--gold) 1px, transparent 1px),
        linear-gradient(90deg, var(--gold) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(48px, 8vw, 80px);
}

.section-number {
    display: block;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--gold-dark);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 6vw, 64px);
    letter-spacing: 0.12em;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.section-title-line {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto;
}

/* ════════════════════════════════════════════
   L'EMPIRE SECTION
   ════════════════════════════════════════════ */
.section-empire {
    background: var(--bg-deep);
}

.empire-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}

.empire-intro {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.empire-intro strong {
    color: var(--gold);
    font-weight: 500;
}

.empire-text {
    font-size: clamp(14px, 1.4vw, 16px);
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.empire-text strong {
    color: var(--gold-light);
    font-weight: 500;
}

.empire-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.empire-card {
    padding: clamp(24px, 3vw, 36px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 2px;
    transition: border-color 0.4s ease, transform 0.4s var(--ease-out-expo);
}

.empire-card:hover {
    border-color: var(--border-hover);
    transform: translateX(8px);
}

.empire-card-icon {
    width: 40px;
    height: 40px;
    color: var(--gold);
    margin-bottom: 16px;
}

.empire-card-icon svg {
    width: 100%;
    height: 100%;
}

.empire-card-title {
    font-family: var(--font-display);
    font-size: clamp(12px, 1.4vw, 15px);
    letter-spacing: 0.2em;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.empire-card-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ════════════════════════════════════════════
   LE PROPHETE SECTION
   ════════════════════════════════════════════ */
.section-prophete {
    background: var(--bg-section);
    border-top: 1px solid var(--border);
}

.prophete-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}

/* Portrait */
.prophete-portrait {
    position: sticky;
    top: calc(var(--header-h) + 32px);
}

.prophete-portrait-frame {
    position: relative;
    aspect-ratio: 3 / 4;
    border: 1px solid var(--border);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.prophete-portrait-inner {
    width: 70%;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prophete-portrait-symbol {
    width: 100%;
    color: var(--gold-dark);
    opacity: 0.6;
    animation: symbolSpin 60s linear infinite;
}

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

.prophete-portrait-symbol svg {
    width: 100%;
    height: 100%;
}

/* Corners */
.prophete-portrait-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--gold);
    border-style: solid;
    border-width: 0;
}

.prophete-portrait-corner--tl { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.prophete-portrait-corner--tr { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; }
.prophete-portrait-corner--bl { bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; }
.prophete-portrait-corner--br { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }

.prophete-portrait-name {
    text-align: center;
    margin-top: 20px;
}

.prophete-name-ar {
    font-size: clamp(20px, 3vw, 28px);
    color: var(--gold-dark);
    opacity: 0.5;
    direction: rtl;
}

/* Content */
.prophete-name-block {
    margin-bottom: 28px;
}

.prophete-name {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 32px);
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.prophete-title-label {
    font-family: var(--font-body);
    font-size: clamp(13px, 1.4vw, 16px);
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.05em;
    color: var(--gold);
}

.prophete-quote {
    position: relative;
    padding: 24px 0;
    margin-bottom: 32px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-size: clamp(15px, 1.6vw, 18px);
    font-style: italic;
    font-weight: 300;
    line-height: 1.8;
    color: var(--sand);
}

.prophete-quote-mark {
    color: var(--gold-dark);
    font-size: 1.3em;
}

.prophete-description p {
    font-size: clamp(14px, 1.4vw, 16px);
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.prophete-description strong {
    color: var(--gold-light);
    font-weight: 500;
}

.prophete-attributes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.prophete-attr {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prophete-attr-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.prophete-attr-value {
    font-size: 15px;
    font-weight: 400;
    color: var(--gold);
}

/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-deep);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 0.25em;
    color: var(--gold);
}

.footer-text {
    font-size: 13px;
    font-weight: 300;
    color: var(--text-muted);
}

.footer-copy {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.5;
}

/* ════════════════════════════════════════════
   TOAST
   ════════════════════════════════════════════ */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-primary);
    z-index: 9999;
    opacity: 0;
    transition: transform 0.5s var(--ease-out-expo), opacity 0.5s ease;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ════════════════════════════════════════════
   USER BADGE
   ════════════════════════════════════════════ */
.user-badge {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 8px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    z-index: 900;
}

.user-badge-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--gold-dark);
}

.user-badge-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.user-badge-dashboard {
    padding: 4px;
    color: var(--text-muted);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.user-badge-dashboard:hover {
    color: var(--gold);
}

.user-badge-logout {
    padding: 4px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.user-badge-logout:hover {
    color: #e74c3c;
}

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .empire-grid {
        grid-template-columns: 1fr;
    }
    .prophete-layout {
        grid-template-columns: 1fr;
    }
    .prophete-portrait {
        position: static;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .mobile-nav {
        display: flex;
    }
    .hero-title {
        font-size: clamp(36px, 12vw, 72px);
    }
    .prophete-attributes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --header-h: 60px;
    }
}

/* ════════════════════════════════════════════
   VIDEO FALLBACK
   ════════════════════════════════════════════ */
.hero-video-container--fallback {
    background:
        radial-gradient(ellipse at 30% 40%, rgba(139, 105, 20, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #0a0808 0%, #1a1410 30%, #0e0c08 60%, #060606 100%);
    animation: fallbackShift 20s ease-in-out infinite alternate;
}

@keyframes fallbackShift {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* ════════════════════════════════════════════
   PAGE LOAD CURTAIN
   ════════════════════════════════════════════ */
.page-curtain {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease 0.2s, visibility 0.8s ease 0.2s;
}

.page-curtain.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-curtain-content {
    text-align: center;
}

.page-curtain-title {
    font-family: var(--font-display);
    font-size: clamp(16px, 3vw, 24px);
    letter-spacing: 0.4em;
    color: var(--gold);
    animation: curtainPulse 1.5s ease-in-out infinite;
}

@keyframes curtainPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ════════════════════════════════════════════
   HERO TITLE GLOW
   ════════════════════════════════════════════ */
.hero-title-word .letter {
    text-shadow: 0 0 0 transparent;
    transition: text-shadow 0.5s ease;
}

.hero-title:hover .letter {
    text-shadow: 0 0 30px rgba(201, 168, 76, 0.3), 0 0 60px rgba(201, 168, 76, 0.1);
}

/* ════════════════════════════════════════════
   EMPIRE CARD GLOW ON HOVER
   ════════════════════════════════════════════ */
.empire-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(201, 168, 76, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.empire-card {
    position: relative;
    overflow: hidden;
}

.empire-card:hover::before {
    opacity: 1;
}

/* ════════════════════════════════════════════
   SUBPAGES — HEADER SOLID & ACTIVE LINK
   ════════════════════════════════════════════ */
.header--solid {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--glass-border);
}

.nav-link--active {
    color: var(--gold);
}
.nav-link--active .nav-link-line {
    width: 100%;
    left: 0;
}

.mobile-nav-link--active {
    color: var(--gold);
}

/* ════════════════════════════════════════════
   HUB PAGE (catalogues landing, etc.)
   ════════════════════════════════════════════ */
.page-hub {
    padding-top: var(--header-h);
    min-height: 100vh;
    background: var(--bg-deep);
    position: relative;
}

.page-hub::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(201, 168, 76, 0.05), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(201, 168, 76, 0.04), transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.page-hub > * {
    position: relative;
    z-index: 1;
}

.page-hub-header {
    padding: clamp(60px, 9vw, 110px) 0 clamp(32px, 5vw, 56px);
    text-align: center;
}

.page-hub-badge {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.page-hub-badge-line {
    display: block;
    width: clamp(30px, 5vw, 60px);
    height: 1px;
    background: var(--gold-dark);
}

.page-hub-badge-text {
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.35em;
    color: var(--gold);
}

.page-hub-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 68px);
    letter-spacing: 0.18em;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.1;
}

.page-hub-subtitle {
    max-width: 680px;
    margin: 0 auto 28px;
    font-size: clamp(14px, 1.3vw, 16px);
    line-height: 1.8;
    color: var(--text-secondary);
}

.page-hub-grid-section {
    padding: 32px 0 clamp(80px, 10vw, 140px);
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(20px, 3vw, 36px);
    max-width: 1000px;
    margin: 0 auto;
}

.hub-card {
    position: relative;
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.4s ease, transform 0.4s var(--ease-out-expo);
}

.hub-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.hub-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(201, 168, 76, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.hub-card:hover::before {
    opacity: 1;
}

.hub-card-inner {
    position: relative;
    padding: clamp(28px, 3.5vw, 42px);
    display: flex;
    flex-direction: column;
    min-height: 340px;
}

.hub-card-number {
    position: absolute;
    top: clamp(20px, 2.5vw, 32px);
    right: clamp(24px, 3vw, 36px);
    font-family: var(--font-display);
    font-size: clamp(38px, 5vw, 56px);
    letter-spacing: 0.1em;
    color: var(--gold);
    opacity: 0.15;
    line-height: 1;
}

.hub-card-icon {
    width: 52px;
    height: 52px;
    color: var(--gold);
    margin-bottom: 24px;
}

.hub-card-icon svg {
    width: 100%;
    height: 100%;
}

.hub-card-title {
    font-family: var(--font-display);
    font-size: clamp(14px, 1.6vw, 18px);
    letter-spacing: 0.2em;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.hub-card-text {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-secondary);
    flex: 1;
    margin-bottom: 24px;
}

.hub-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.hub-card-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 9px;
    letter-spacing: 0.22em;
    padding: 5px 10px;
    border-radius: 2px;
}

.hub-card-status svg {
    width: 11px;
    height: 11px;
}

.hub-card-status--open {
    background: rgba(76, 175, 130, 0.08);
    border: 1px solid rgba(76, 175, 130, 0.3);
    color: #6bc493;
}

.hub-card-status--locked {
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.22);
    color: var(--gold-dark);
}

.hub-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--gold);
    transition: gap 0.3s ease;
}

.hub-card-cta svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.hub-card:hover .hub-card-cta svg {
    transform: translateX(4px);
}

.hub-card-cta--disabled {
    color: var(--text-muted);
}

/* Locked hub card */
.hub-card--locked {
    cursor: not-allowed;
}

.hub-card--locked:hover {
    transform: none;
    border-color: var(--border);
}

.hub-card--locked .hub-card-inner {
    opacity: 0.55;
    filter: saturate(0.6);
}

.hub-card-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(6, 6, 6, 0.1), rgba(6, 6, 6, 0.55));
    color: var(--gold);
    pointer-events: none;
}

.hub-card-lock-overlay svg {
    width: 52px;
    height: 52px;
    opacity: 0.65;
    filter: drop-shadow(0 0 12px rgba(201, 168, 76, 0.35));
}

/* ════════════════════════════════════════════
   CATALOGUE MILITAIRE — LAYOUT
   ════════════════════════════════════════════ */
.page-catalogue {
    padding-top: var(--header-h);
    min-height: 100vh;
    background: var(--bg-deep);
}

.cat-header {
    padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 36px);
    text-align: center;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 50% 0%, rgba(201, 168, 76, 0.06), transparent 60%),
        var(--bg-section);
}

.cat-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.3em;
    color: var(--gold);
}

.cat-header-badge::before,
.cat-header-badge::after {
    content: '';
    width: clamp(24px, 4vw, 48px);
    height: 1px;
    background: var(--gold-dark);
}

.cat-header-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, 48px);
    letter-spacing: 0.18em;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.cat-header-sub {
    max-width: 640px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.cat-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 300px;
    gap: clamp(20px, 2.5vw, 36px);
    max-width: 1500px;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 48px) clamp(20px, 5vw, 48px) clamp(80px, 10vw, 140px);
}

/* ── Sidebar ─────────────────────────────── */
.cat-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    align-self: start;
    max-height: calc(100vh - var(--header-h) - 40px);
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dark) transparent;
}

.cat-sidebar::-webkit-scrollbar {
    width: 3px;
}
.cat-sidebar::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 2px;
}

.cat-search {
    position: relative;
    margin-bottom: 24px;
}

.cat-search-input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.3s ease;
}

.cat-search-input:focus {
    border-color: var(--gold-dark);
}

.cat-search-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 14px;
    height: 14px;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.cat-group {
    margin-bottom: 20px;
}

.cat-group-label {
    display: block;
    padding: 0 4px 10px;
    font-family: var(--font-display);
    font-size: 9px;
    letter-spacing: 0.3em;
    color: var(--gold);
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

.cat-filter {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-left: 2px solid transparent;
    font-family: var(--font-display);
    font-size: 9.5px;
    letter-spacing: 0.18em;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.cat-filter:hover {
    color: var(--text-primary);
    background: rgba(201, 168, 76, 0.04);
}

.cat-filter.active {
    color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
    border-left-color: var(--gold);
}

.cat-filter-count {
    margin-left: auto;
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.cat-filter.active .cat-filter-count {
    color: var(--gold-light);
}

.cat-filter-all {
    margin-bottom: 12px;
    padding: 10px 12px;
    font-size: 10px;
    border: 1px solid var(--border);
    border-left: 2px solid transparent;
}

.cat-filter-all.active {
    border-color: var(--gold-dark);
}

/* ── Items ──────────────────────────────── */
.cat-results-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.cat-results-title {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 0.22em;
    color: var(--text-primary);
}

.cat-results-count {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.12em;
}

.cat-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cat-item {
    display: grid;
    grid-template-columns: minmax(280px, 45%) 1fr;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
    transition: border-color 0.4s ease, transform 0.4s var(--ease-out-expo);
}

.cat-item:hover {
    border-color: var(--border-hover);
}

.cat-item-image {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    background: var(--bg-section);
    overflow: hidden;
    border-right: 1px solid var(--border);
}

.cat-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.cat-item:hover .cat-item-image img {
    transform: scale(1.03);
}

.cat-item-image--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
    opacity: 0.5;
}

.cat-item-image--empty svg {
    width: 40%;
    height: auto;
    opacity: 0.4;
}

.cat-item-niv {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-family: var(--font-display);
    font-size: 9px;
    letter-spacing: 0.25em;
    background: rgba(6, 6, 6, 0.82);
    color: var(--gold);
    border: 1px solid var(--gold-dark);
    border-radius: 2px;
}

.cat-item-body {
    padding: clamp(18px, 2.4vw, 28px);
    display: flex;
    flex-direction: column;
}

.cat-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.cat-item-name {
    font-family: var(--font-display);
    font-size: clamp(14px, 1.6vw, 18px);
    letter-spacing: 0.14em;
    color: var(--text-primary);
    line-height: 1.3;
}

.cat-item-cost {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--gold);
    padding: 3px 8px;
    border: 1px solid var(--gold-dark);
    border-radius: 2px;
    white-space: nowrap;
}

.cat-item-subtype {
    font-size: 12px;
    color: var(--gold-dark);
    letter-spacing: 0.1em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.cat-item-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px 18px;
    margin-bottom: 16px;
    padding: 12px 0;
    border-top: 1px dashed var(--border);
    border-bottom: 1px dashed var(--border);
}

.cat-item-meta-entry {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cat-item-meta-label {
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.cat-item-meta-value {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.cat-item-specs-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 2px;
    font-family: var(--font-display);
    font-size: 9.5px;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.cat-item-specs-toggle:hover {
    border-color: var(--gold-dark);
    color: var(--gold);
}

.cat-item-specs-toggle svg {
    width: 10px;
    height: 10px;
    transition: transform 0.3s ease;
}

.cat-item-specs-toggle.open svg {
    transform: rotate(180deg);
}

.cat-item-specs {
    grid-column: 1 / -1;
    display: none;
    padding: 18px clamp(18px, 2.4vw, 28px) clamp(18px, 2.4vw, 28px);
    border-top: 1px solid var(--border);
    background: var(--bg-section);
}

.cat-item-specs.open {
    display: block;
}

.cat-item-specs-title {
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.25em;
    color: var(--gold);
    margin-bottom: 14px;
}

.cat-item-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 4px 28px;
}

.cat-item-specs-row {
    display: grid;
    grid-template-columns: minmax(130px, 40%) 1fr;
    gap: 14px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(201, 168, 76, 0.06);
    font-size: 12.5px;
}

.cat-item-specs-key {
    color: var(--text-muted);
    line-height: 1.5;
}

.cat-item-specs-val {
    color: var(--text-secondary);
    line-height: 1.5;
}

.cat-empty-state {
    padding: 80px 20px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: 3px;
    color: var(--text-muted);
}

.cat-empty-state svg {
    width: 48px;
    height: 48px;
    opacity: 0.4;
    margin-bottom: 16px;
}

.cat-empty-state-title {
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.25em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.cat-loading {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* Mobile drawer toggle for sidebar */
.cat-sidebar-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 3px;
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--gold);
    cursor: pointer;
    margin-bottom: 16px;
}

.cat-sidebar-toggle svg {
    width: 14px;
    height: 14px;
}

/* ════════════════════════════════════════════
   CATALOGUE — ACTIONS FICHE + BOUTON AJOUTER
   ════════════════════════════════════════════ */
.cat-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 4px;
}

.cat-item-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid var(--gold-dark);
    border-radius: 2px;
    font-family: var(--font-display);
    font-size: 9.5px;
    letter-spacing: 0.2em;
    color: var(--gold);
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.cat-item-add:hover {
    background: rgba(201, 168, 76, 0.18);
    border-color: var(--gold);
    color: var(--gold-light);
    transform: translateY(-1px);
}

.cat-item-add svg {
    width: 12px;
    height: 12px;
}

.cat-item-add--in-cart {
    background: var(--gold);
    color: var(--bg-deep);
    border-color: var(--gold);
}

.cat-item-add--in-cart:hover {
    background: var(--gold-light);
    color: var(--bg-deep);
}

/* ════════════════════════════════════════════
   CATALOGUE — PANIER (DROITE)
   ════════════════════════════════════════════ */
.cat-cart {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    align-self: start;
    max-height: calc(100vh - var(--header-h) - 40px);
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.cat-cart-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(201, 168, 76, 0.08), transparent);
}

.cat-cart-icon {
    width: 16px;
    height: 16px;
    color: var(--gold);
    flex-shrink: 0;
}

.cat-cart-title {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.28em;
    color: var(--text-primary);
    flex: 1;
}

.cat-cart-count {
    min-width: 22px;
    padding: 2px 8px;
    background: var(--gold-dark);
    border-radius: 10px;
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    text-align: center;
}

.cat-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dark) transparent;
}

.cat-cart-body::-webkit-scrollbar {
    width: 3px;
}
.cat-cart-body::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 2px;
}

.cat-cart-empty {
    padding: 32px 12px;
    text-align: center;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.cat-cart-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.cat-cart-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 6px;
    column-gap: 10px;
    padding: 10px 28px 10px 10px;
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: 2px;
}

.cat-cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
    color: inherit;
    font: inherit;
    transition: color 0.2s ease;
}

.cat-cart-item-info:hover .cat-cart-item-name {
    color: var(--gold-light);
}

.cat-cart-item-name {
    font-family: var(--font-display);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.cat-cart-item-unit {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.cat-cart-item-sub {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--gold);
    text-align: right;
    white-space: nowrap;
}

.cat-cart-item-qty {
    grid-column: 1 / -1;
    grid-row: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 2px;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 2px;
    width: fit-content;
}

.cat-cart-qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    border-radius: 2px;
}

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

.cat-cart-qty-btn svg {
    width: 12px;
    height: 12px;
}

.cat-cart-qty-value {
    min-width: 20px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.cat-cart-qty-input {
    width: 60px;
    padding: 4px 6px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 2px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    -moz-appearance: textfield;
    appearance: textfield;
    transition: border-color 0.2s ease, background 0.2s ease;
}

@media (max-width: 1200px) {
    .cat-cart-qty-input {
        width: 48px;
        padding: 3px 4px;
        font-size: 11px;
    }
}

.cat-cart-qty-input::-webkit-outer-spin-button,
.cat-cart-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cat-cart-qty-input:hover {
    border-color: var(--border);
}

.cat-cart-qty-input:focus {
    outline: none;
    border-color: var(--gold-dark);
    background: rgba(201, 168, 76, 0.06);
}

.cat-item.cat-item--highlight {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold-dark), 0 0 24px rgba(201, 168, 76, 0.18);
}

.cat-cart-item-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 2px;
    transition: color 0.2s ease, background 0.2s ease;
}

.cat-cart-item-remove:hover {
    color: var(--gold-light);
    background: rgba(201, 168, 76, 0.1);
}

.cat-cart-item-remove svg {
    width: 11px;
    height: 11px;
}

.cat-cart-footer {
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    background: var(--bg-section);
}

.cat-cart-total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cat-cart-total-label {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.28em;
    color: var(--text-secondary);
}

.cat-cart-total {
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 0.12em;
    color: var(--gold);
}

.cat-cart-checkout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    margin-bottom: 8px;
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: 1px solid var(--gold);
    border-radius: 2px;
    font-family: var(--font-display);
    font-size: 10.5px;
    letter-spacing: 0.24em;
    color: #0a0a0a;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cat-cart-checkout:not(:disabled):hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(201, 168, 76, 0.35);
}

.cat-cart-checkout:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border);
}

.cat-cart-checkout svg {
    width: 13px;
    height: 13px;
}

.cat-cart-checkout.is-loading {
    cursor: wait;
    opacity: 0.7;
}

.cat-cart-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 2px;
    font-family: var(--font-display);
    font-size: 9.5px;
    letter-spacing: 0.22em;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
}

.cat-cart-clear:not(:disabled):hover {
    border-color: var(--gold-dark);
    color: var(--gold);
}

.cat-cart-clear:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cat-cart-clear svg {
    width: 12px;
    height: 12px;
}

/* FAB panier mobile */
.cat-cart-fab {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--gold);
    border: 1px solid var(--gold-light);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    color: var(--bg-deep);
    cursor: pointer;
    z-index: 50;
    transition: transform 0.25s ease;
}

.cat-cart-fab:hover {
    transform: translateY(-2px);
}

.cat-cart-fab svg {
    width: 22px;
    height: 22px;
    display: block;
    margin: 0 auto;
}

.cat-cart-fab-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    padding: 2px 6px;
    background: var(--bg-deep);
    border: 1px solid var(--gold);
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--gold);
    text-align: center;
    line-height: 1.2;
}

/* ════════════════════════════════════════════
   CATALOGUE — RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .cat-layout {
        grid-template-columns: 230px 1fr;
    }
    .cat-cart {
        position: fixed;
        top: auto;
        bottom: 0;
        right: 0;
        width: min(360px, 100vw);
        max-height: min(70vh, 520px);
        margin: 16px;
        border-radius: 4px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
        transform: translateY(calc(100% + 32px));
        transition: transform 0.35s var(--ease-out-expo);
        z-index: 55;
    }
    .cat-cart.cat-cart--open {
        transform: translateY(0);
    }
    .cat-cart-fab {
        display: block;
    }
    .cat-cart-fab--active {
        background: var(--gold-light);
    }
}

@media (max-width: 900px) {
    .cat-layout {
        grid-template-columns: 1fr;
    }
    .cat-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
    }
    .cat-sidebar-body {
        display: none;
    }
    .cat-sidebar-body.open {
        display: block;
    }
    .cat-sidebar-toggle {
        display: flex;
    }
    .cat-item {
        grid-template-columns: 1fr;
    }
    .cat-item-image {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}

@media (max-width: 560px) {
    .cat-item-header {
        flex-direction: column;
    }
    .cat-item-cost {
        align-self: flex-start;
    }
    .cat-item-meta {
        grid-template-columns: 1fr 1fr;
    }
    .cat-item-specs-grid {
        grid-template-columns: 1fr;
    }
    .cat-item-specs-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

/* ════════════════════════════════════════════
   PERFORMANCE: Prefer reduced motion
   ════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .letter {
        opacity: 1;
        transform: none;
    }
    .reveal-up {
        opacity: 1;
        transform: none;
    }
}
