/**
 * -----------------------------------------------------------------------------
 * LE CARTEUX - STYLESHEET PRINCIPAL (Vanilla CSS Pur & Responsive Mobile-First)
 * Standard Numérie 2.5 — ZÉRO TailwindCSS
 * Architecture : CSS Grid, Flexbox natif, Glassmorphism, Micro-animations
 * -----------------------------------------------------------------------------
 */

/* ==========================================================================
   1. RESET & CONFIGURATION GLOBALE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    background-color: var(--bg-base);
    color: var(--text-primary);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-base);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

/* Sélection de texte personnalisée */
::selection {
    background: var(--gold-500);
    color: var(--bg-base);
}

/* Images & Médias */
img, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Liens & Boutons */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* Directives Alpine.js Anti-FOUC */
[x-cloak] {
    display: none !important;
}

/* ==========================================================================
   2. CONTENEURS & GRILLES DE MISE EN PAGE
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

@media (min-width: 640px) {
    .container {
        padding-left: var(--space-6);
        padding-right: var(--space-6);
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: var(--space-8);
        padding-right: var(--space-8);
    }
}

.section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
    position: relative;
}

@media (min-width: 1024px) {
    .section {
        padding-top: var(--space-20);
        padding-bottom: var(--space-20);
    }
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--space-10) auto;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-pill);
    background: var(--brand-gold-subtle);
    border: 1px solid var(--border-gold-subtle);
    color: var(--gold-400);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-3);
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

@media (min-width: 768px) {
    .section-title {
        font-size: var(--text-4xl);
    }
}

.section-desc {
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: 1.6;
}

/* ==========================================================================
   3. TYPOGRAPHIE SPÉCIFIQUE & UTILITAIRES
   ========================================================================== */
.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }
.font-mono {
    font-family: var(--font-mono);
    font-feature-settings: "tnum" 1;
}

.text-gold {
    color: var(--gold-400);
}

.text-gradient-gold {
    background: var(--gold-gradient-shine);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ==========================================================================
   4. BOUTONS & COMPOSANTS INTERACTIFS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    min-height: 48px; /* Touch target >= 44px garanti */
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    user-select: none;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary-gold {
    background: var(--gold-gradient);
    color: var(--bg-base);
    box-shadow: 0 4px 16px rgba(229, 169, 59, 0.35), var(--inner-gold-highlight);
    border: 1px solid var(--gold-400);
    font-weight: 700;
}

.btn-primary-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(229, 169, 59, 0.48), var(--inner-gold-highlight);
    filter: brightness(1.05);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-xs), var(--inner-highlight);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-gold-subtle);
    color: var(--gold-400);
    transform: translateY(-2px);
}

.btn-outline-gold {
    background: rgba(229, 169, 59, 0.05);
    color: var(--gold-400);
    border: 1px solid var(--border-gold);
}

.btn-outline-gold:hover {
    background: rgba(229, 169, 59, 0.15);
    border-color: var(--gold-400);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-sm {
    min-height: 38px;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

.btn-lg {
    min-height: 56px;
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    border-radius: var(--radius-lg);
}

/* ==========================================================================
   5. NAVIGATION HEADER (Sticky Glassmorphism)
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
}

.header-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(229, 169, 59, 0.3));
    transition: transform var(--transition-base);
}

.header-brand:hover .header-logo-img {
    transform: scale(1.05);
}

.header-brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--text-lg);
    letter-spacing: 0.02em;
    color: var(--text-primary);
    line-height: 1.1;
}

.brand-subtext {
    font-size: var(--text-2xs);
    font-family: var(--font-mono);
    color: var(--gold-400);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Navigation Desktop */
.nav-desktop {
    display: none;
    align-items: center;
    gap: var(--space-6);
}

@media (min-width: 900px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--space-2) var(--space-1);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-400);
    transition: width var(--transition-fast);
    border-radius: var(--radius-pill);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-pill);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--tcg-mint-green);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tcg-mint-green);
    box-shadow: 0 0 8px var(--tcg-mint-green);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px var(--tcg-mint-green); }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    color: var(--text-primary);
}

@media (min-width: 900px) {
    .mobile-nav-toggle {
        display: none;
    }
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 8, 10, 0.96);
    backdrop-filter: blur(20px);
    z-index: var(--z-drawer);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    border-bottom: 1px solid var(--border-gold-subtle);
    animation: drawerSlide 0.25s var(--ease-out);
}

@keyframes drawerSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-link {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-link:hover, .mobile-nav-link:active {
    background: var(--bg-tertiary);
    color: var(--gold-400);
    border-color: var(--border-gold-subtle);
}

/* ==========================================================================
   6. HERO SECTION (Punchy, Visuel & Branding Rollup)
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: var(--space-10);
    padding-bottom: var(--space-16);
    overflow: hidden;
    background: var(--gold-radial-glow);
}

@media (min-width: 1024px) {
    .hero-section {
        padding-top: var(--space-16);
        padding-bottom: var(--space-24);
    }
}

/* Motif d'étoiles subtil d'arrière-plan */
.hero-bg-stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(229, 169, 59, 0.15) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.4;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    align-items: center;
    position: relative;
    z-index: var(--z-base);
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: var(--space-12);
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-content {
        text-align: left;
    }
}

.hero-pill {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-4);
    border-radius: var(--radius-pill);
    background: var(--bg-secondary);
    border: 1px solid var(--border-gold);
    color: var(--gold-400);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(229, 169, 59, 0.15);
}

@media (min-width: 1024px) {
    .hero-pill {
        align-self: flex-start;
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    text-transform: uppercase;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: var(--text-5xl);
    }
}

@media (min-width: 1200px) {
    .hero-title {
        font-size: var(--text-6xl);
    }
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--gold-400);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-desc {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 580px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .hero-desc {
        margin: 0;
    }
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding-top: var(--space-2);
}

@media (min-width: 640px) {
    .hero-cta-group {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .hero-cta-group {
        justify-content: flex-start;
    }
}

.hero-trust-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 360px;
    gap: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-subtle);
    margin-top: var(--space-4);
}

.trust-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    text-align: center;
}

@media (min-width: 1024px) {
    .trust-item {
        text-align: left;
    }
}

.trust-item-val {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--gold-400);
}

.trust-item-lbl {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* Carte Visuelle Mascotte & Écusson */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-crest-container {
    position: relative;
    width: 100%;
    max-width: 440px;
    border-radius: var(--radius-2xl);
    padding: var(--space-4);
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-lg), var(--shadow-gold-md), var(--inner-highlight);
    overflow: hidden;
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-out);
}

.hero-crest-container:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--shadow-gold-lg), var(--inner-gold-highlight);
}

.hero-crest-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    object-fit: cover;
}

.hero-badge-floating {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: rgba(7, 8, 10, 0.9);
    border: 1px solid var(--tcg-psa-red);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
}

.floating-psa-tag {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: var(--text-xs);
    color: var(--tcg-psa-red);
}

.floating-grade {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--text-sm);
    color: var(--text-primary);
}

/* ==========================================================================
   7. BANDEAU DE STATISTIQUES (KPIs)
   ========================================================================== */
.stats-bar-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-8) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-1);
}

.stat-value {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--gold-400);
    letter-spacing: -0.02em;
    line-height: 1;
}

.stat-label {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   8. SERVICES (Achat, Vente, Échange - CSS Grid 3 colonnes)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    box-shadow: var(--shadow-md), var(--inner-highlight);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-gold);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-lg), var(--shadow-gold-sm);
}

.service-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.service-card:hover .service-card-accent {
    opacity: 1;
}

.service-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-gold-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    color: var(--gold-400);
    box-shadow: var(--inner-highlight);
}

.service-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.service-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding-top: var(--space-2);
    border-top: 1px solid var(--border-subtle);
}

.service-list-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.service-list-item::before {
    content: "✓";
    color: var(--gold-400);
    font-weight: 700;
}

/* ==========================================================================
   9. SIMULATEUR INTERACTIF D'ESTIMATION (Alpine.js)
   ========================================================================== */
.estimator-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-lg), var(--shadow-gold-sm), var(--inner-highlight);
}

@media (min-width: 768px) {
    .estimator-card {
        padding: var(--space-10);
    }
}

.estimator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 900px) {
    .estimator-grid {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
    }
}

.estimator-controls {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-label {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
}

.form-select, .form-input {
    width: 100%;
    min-height: 48px;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: var(--text-base); /* Anti zoom iOS */
    transition: all var(--transition-fast);
}

.form-select:focus, .form-input:focus {
    outline: none;
    border-color: var(--gold-400);
    box-shadow: 0 0 0 3px rgba(229, 169, 59, 0.2);
    background: var(--bg-tertiary);
}

/* Radio Pill Selector */
.pill-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
}

@media (min-width: 500px) {
    .pill-selector {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pill-option {
    padding: var(--space-2) var(--space-3);
    min-height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: var(--text-xs);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.pill-option.active {
    background: var(--gold-gradient);
    color: var(--bg-base);
    border-color: var(--gold-400);
    box-shadow: var(--shadow-gold-sm);
}

/* Slider de Valeur */
.range-slider-wrap {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.range-slider {
    width: 100%;
    height: 8px;
    border-radius: var(--radius-pill);
    background: var(--bg-tertiary);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gold-400);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(229, 169, 59, 0.6);
    border: 2px solid var(--bg-base);
}

/* Résultat de l'estimateur */
.estimator-result-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-gold-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    box-shadow: var(--shadow-md), var(--inner-highlight);
    text-align: center;
}

.result-header {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--gold-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-value-big {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.result-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.breakdown-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.breakdown-val {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: var(--text-lg);
    color: var(--text-gold);
}

.breakdown-lbl {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* ==========================================================================
   10. ÉVÉNEMENTS & TOURNOIS (HTMX Dynamique & Filtres)
   ========================================================================== */
.search-filter-bar {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

@media (min-width: 640px) {
    .search-filter-bar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.search-input-wrap {
    position: relative;
    flex: 1;
    max-width: 480px;
}

.search-icon {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    min-height: 48px;
    padding-left: 2.75rem !important; /* Règle Anti-Chevauchement Numérie */
    padding-right: var(--space-4);
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--gold-400);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(229, 169, 59, 0.2);
}

/* Grille d'Événements */
.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.event-card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    box-shadow: var(--inner-highlight);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
}

.event-card:hover {
    border-color: var(--border-gold-subtle);
    box-shadow: var(--inner-highlight), var(--shadow-gold-sm);
}

.event-date-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 2px var(--space-2);
    border-radius: var(--radius-sm);
    background: rgba(229, 169, 59, 0.08);
    border: 1px solid rgba(229, 169, 59, 0.2);
    color: var(--gold-400);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    font-feature-settings: "tnum";
}

.event-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

.event-meta-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.event-price-tag {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--tcg-mint-green);
    font-feature-settings: "tnum";
}

.event-footer {
    display: flex;
    align-items: center;
    padding-top: var(--space-2);
    margin-top: auto;
}

.event-social-actions {
    display: flex;
    gap: var(--space-2);
    width: 100%;
}

.event-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    color: var(--text-tertiary);
    font-size: var(--text-xs);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-fast);
    width: 100%;
}

.event-cta-btn:hover {
    color: var(--gold-400);
    background: none;
    box-shadow: none;
    transform: none;
}

/* ==========================================================================
   11. HUB DE LIENS (LinkTree-Style & Onglets Alpine.js)
   ========================================================================== */
.links-tabs-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-bottom: var(--space-8);
}

.tab-btn {
    padding: var(--space-2) var(--space-4);
    min-height: 44px;
    border-radius: var(--radius-pill);
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    color: var(--gold-400);
    border-color: var(--border-gold-subtle);
}

.tab-btn.active {
    background: var(--gold-gradient);
    color: var(--bg-base);
    border-color: var(--gold-400);
    box-shadow: var(--shadow-gold-sm);
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    max-width: 680px;
    margin: 0 auto;
}

.link-button-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-6);
    min-height: 64px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-sm), var(--inner-highlight);
    text-decoration: none;
    transition: all var(--transition-base);
}

.link-button-card:hover {
    transform: translateY(-2px);
    background: var(--bg-card-hover);
    border-color: var(--border-gold);
    box-shadow: var(--shadow-md), var(--shadow-gold-sm);
}

.link-left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.link-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-gold-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    color: var(--gold-400);
}

.link-details {
    display: flex;
    flex-direction: column;
}

.link-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-base);
    color: var(--text-primary);
}

.link-desc {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.link-click-badge {
    font-family: var(--font-mono);
    font-size: var(--text-2xs);
    color: var(--text-muted);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-xs);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   12. MODALE & TIROIR D'ESTIMATION / CONTACT
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 5, 8, 0.85);
    backdrop-filter: blur(8px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-2xl);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--space-6);
    box-shadow: var(--shadow-lg), var(--shadow-gold-md), var(--inner-highlight);
    position: relative;
    animation: modalPop 0.25s var(--ease-spring);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@media (min-width: 768px) {
    .modal-content {
        padding: var(--space-8);
    }
}

.modal-close-btn {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--text-primary);
    border-color: var(--gold-400);
}

/* ==========================================================================
   13. FOOTER
   ========================================================================== */
.site-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    padding-top: var(--space-16);
    padding-bottom: var(--space-12);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer-title {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--gold-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-link {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--gold-400);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding-top: var(--space-8);
    border-top: 1px solid var(--border-subtle);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

/* ==========================================================================
   14. ÉTATS & INDICATEURS HTMX (Loading, Empty, Success)
   ========================================================================== */
.htmx-indicator {
    opacity: 0;
    transition: opacity 200ms ease-in-out;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    opacity: 1;
}

.empty-state {
    text-align: center;
    padding: var(--space-12) var(--space-6);
    background: var(--bg-card);
    border: 1px dashed var(--border-default);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    grid-column: 1 / -1;
}

.empty-icon {
    font-size: var(--text-3xl);
    color: var(--gold-400);
}

.empty-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
}

.empty-desc {
    font-size: var(--text-sm);
    color: var(--text-muted);
    max-width: 400px;
}
