/**
 * ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 * 🎨 GOA-THEME.CSS - Royal Design System
 * GOA Guardians of Artellium - Inspired by logo colors
 * ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 */

/* ========================================
   VARIABLES GLOBALES GOA - ROYAL THEME
   ======================================== */

:root {
    /* Warrior Metallic Palette - Steel Gray Gradient */
    --steel-dark: #2C2E32;      /* Gris très foncé, presque acier */
    --steel-medium: #646C74;    /* Gris moyen, aspect métal */
    --steel-light: #A9B5BD;     /* Gris clair argenté */
    --steel-darker: #1A1C1F;    /* Encore plus foncé pour contraste */
    --steel-lighter: #C8D0D8;   /* Argenté très clair */

    /* Accent Colors - Pearlescent Palette */
    --majestic-pearl: #E8DDD5;      /* Nacre rose-beige magnifique */
    --light-pearl: #FAF9F6;         /* Nacre blanc lumineux */
    --crimson: #8B0000;
    --burgundy: #5C0011;
    --pearl: #F0EAE4;               /* Nacre principal beige clair */
    --antique-pearl: #C8BDB5;       /* Nacre argenté-beige */
    --dark-pearl: #B8A89D;          /* Nacre taupe foncé */

    /* Primary Colors */
    --goa-cyan: var(--steel-medium);
    --goa-cyan-glow: var(--steel-light);
    --goa-cyan-light: var(--steel-medium);
    --goa-black: var(--steel-darker);
    --goa-dark-gray: var(--steel-dark);
    --goa-metal-dark: var(--steel-dark);
    --goa-metal-light: var(--steel-medium);
    --goa-silver: var(--steel-light);

    /* Royal Colors - Pearlescent */
    --royal-pearl: var(--pearl);
    --royal-pearl-light: var(--antique-pearl);
    --royal-pearl-dark: var(--dark-pearl);

    /* Metallic Colors */
    --iron: rgb(122, 129, 139);         /* Gris métallique fer */
    --pewter: #C8BDB5;                  /* Gris-beige étain (same as antique-pearl) */

    /* Gradients - Pearlescent Steel */
    --gradient-royal: linear-gradient(135deg, var(--steel-medium) 0%, var(--majestic-pearl) 50%, var(--pearl) 100%);
    --gradient-royal-reverse: linear-gradient(135deg, var(--pearl) 0%, var(--majestic-pearl) 50%, var(--steel-medium) 100%);
    --gradient-dark: linear-gradient(180deg, var(--steel-darker) 0%, var(--steel-dark) 100%);
    --gradient-card: linear-gradient(145deg, rgba(100, 108, 116, 0.15) 0%, rgba(232, 221, 213, 0.12) 50%, rgba(240, 234, 228, 0.08) 100%);
    --gradient-steel: linear-gradient(180deg, var(--steel-dark) 0%, var(--steel-medium) 50%, var(--steel-light) 100%);

    /* Text Colors */
    --goa-text-primary: #E8EAED;
    --goa-text-secondary: var(--steel-light);
    --goa-text-muted: var(--steel-medium);

    /* Glassmorphism - Steel tint */
    --glass-bg: rgba(44, 46, 50, 0.85);
    --glass-border: rgba(100, 108, 116, 0.4);
    --glass-blur: 15px;

    /* Shadows - Pearlescent accents */
    --goa-shadow-cyan: 0 8px 32px rgba(100, 108, 116, 0.6);
    --goa-shadow-pearl: 0 8px 32px rgba(240, 234, 228, 0.4);
    --goa-shadow-dark: 0 12px 40px rgba(0, 0, 0, 0.9);
    --goa-glow-cyan: 0 0 20px rgba(169, 181, 189, 0.6);
    --goa-glow-pearl: 0 0 20px rgba(240, 234, 228, 0.5);
}

/* ========================================
   BACKGROUND & BODY
   ======================================== */

body {
    background: #0a0a0c;
    min-height: 100vh;
    color: var(--goa-text-primary);
    position: relative;
    overflow-x: hidden;
}

/* body::before - Effet de brouillard désactivé
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(169, 181, 189, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(232, 221, 213, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(240, 234, 228, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
*/

/* ========================================
   PARTICULES CTA FLOTTANTES
   ======================================== */

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 40px;
    height: 40px;
    background-image: url('/assets/cta/logos/logo-m-or.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    animation: float-particle-rotate linear infinite;
}

@keyframes float-particle-rotate {
    0% {
        transform: translateY(100vh) translateX(0) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-100px) translateX(var(--drift)) scale(1);
        opacity: 0;
    }
}

/* 6 particules avec positions et vitesses aléatoires */
.particle:nth-child(1) { left: 10%; width: 35px; height: 35px; animation-duration: 28s; animation-delay: 0s; --drift: 50px; }
.particle:nth-child(2) { left: 30%; width: 40px; height: 40px; animation-duration: 32s; animation-delay: 5s; --drift: -40px; }
.particle:nth-child(3) { left: 50%; width: 38px; height: 38px; animation-duration: 30s; animation-delay: 10s; --drift: 60px; }
.particle:nth-child(4) { left: 70%; width: 42px; height: 42px; animation-duration: 29s; animation-delay: 3s; --drift: -50px; }
.particle:nth-child(5) { left: 85%; width: 36px; height: 36px; animation-duration: 31s; animation-delay: 8s; --drift: 45px; }
.particle:nth-child(6) { left: 20%; width: 39px; height: 39px; animation-duration: 27s; animation-delay: 12s; --drift: -55px; }

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes glowCyan {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(0, 212, 255, 0.8));
    }
}

@keyframes glowPearl {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(240, 234, 228, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(240, 234, 228, 0.8));
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes rotateBorder {
    100% { transform: rotate(360deg); }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ========================================
   HEADER GOA
   ======================================== */

/* Header styles are defined in global.css */

.logo h1 {
    background: var(--gradient-royal);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 800;
    animation: gradientShift 4s ease infinite;
    filter: drop-shadow(0 0 20px rgba(169, 181, 189, 0.5));
}

.logo-img {
    animation: pulse 3s infinite ease-in-out;
    filter: drop-shadow(0 0 10px rgba(169, 181, 189, 0.6));
}

.nav-link {
    color: var(--goa-text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--gradient-royal);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: var(--steel-light);
    text-shadow: 0 0 10px rgba(169, 181, 189, 0.6);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
    color: var(--steel-light);
    background: var(--gradient-card);
    border: 1px solid var(--steel-light);
    box-shadow: 0 0 20px rgba(169, 181, 189, 0.4);
}

/* ========================================
   BUTTONS GOA
   ======================================== */

.btn-primary {
    background: var(--gradient-royal);
    border: 2px solid var(--royal-pearl);
    box-shadow: var(--goa-shadow-cyan), 0 0 30px rgba(255, 215, 0, 0.2);
    color: var(--goa-black);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 40px rgba(169, 181, 189, 0.6), 0 0 60px rgba(240, 234, 228, 0.4);
    border-color: var(--steel-light);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--steel-light);
    color: var(--steel-light);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(169, 181, 189, 0.15);
    box-shadow: 0 0 20px rgba(169, 181, 189, 0.5);
    border-color: var(--royal-pearl);
    color: var(--royal-pearl);
}

/* ========================================
   SECTIONS & CARDS
   ======================================== */

.main {
    position: relative;
    z-index: 10;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.welcome-section,
.collection-section,
.loading-section,
.error-section {
    animation: fadeIn 0.8s ease-out;
}

.welcome-card,
.error-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 3px solid transparent;
    border-image: var(--gradient-royal) 1;
    border-radius: 30px;
    box-shadow: var(--goa-shadow-cyan), var(--goa-shadow-pearl), inset 0 0 0 1px var(--glass-border);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.welcome-card::before,
.error-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
        rgba(100, 108, 116, 0.15) 0%,
        transparent 40%,
        rgba(232, 221, 213, 0.12) 60%,
        transparent 80%,
        rgba(240, 234, 228, 0.1) 100%
    );
    animation: rotateGradient 10s linear infinite;
    pointer-events: none;
}

@keyframes rotateGradient {
    100% { transform: rotate(360deg); }
}

.welcome-card h2,
.error-card h2 {
    background: var(--gradient-royal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

/* ========================================
   STATS OVERVIEW
   ======================================== */

.stats-overview {
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--gradient-dark);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 2px solid var(--iron);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    text-align: center;
}

.stat-card:hover {
    border-color: var(--royal-pearl);
    transform: scale(1.05);
}

.stat-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--pewter));
}

.stat-label {
    color: var(--goa-silver);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 17px !important;
}

.stat-value {
    background: var(--gradient-royal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-size: 17px !important;
}

/* ========================================
   FILTERS
   ======================================== */

.filters {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 2px solid var(--iron);
    border-radius: 20px;
    box-shadow: var(--goa-shadow-cyan), inset 0 0 0 1px var(--glass-border);
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

.filter-group {
    position: relative;
    flex: 1;
    min-width: 150px;
    z-index: 1;
}

.filter-group:has(.custom-select.open) {
    z-index: 99999;
}

.filter-group label {
    color: var(--royal-pearl);
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.dropdown-icon {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    width: 32px;
}

.dropdown-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    background: #FFFFFF;
    border-radius: 6px;
    padding: 4px;
    display: block;
    box-shadow: 0 2px 8px rgba(169, 181, 189, 0.8), 0 0 0 3px rgba(240, 234, 228, 0.6);
    border: 2px solid var(--iron);
    opacity: 1;
    visibility: visible;
}

.filter-group:has(#resetFilters) {
    flex: 0 0 auto;
    min-width: auto;
}

.filter-group:has(#resetFilters) .btn {
    margin: 0;
    height: 42px;
}

.filter-select {
    background: rgba(11, 12, 16, 0.95);
    border: 2px solid var(--iron);
    color: var(--goa-text-primary);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding-left: 40px;
    height: 42px;
    width: 100%;
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--royal-pearl);
    box-shadow: 0 0 20px rgba(169, 181, 189, 0.5), 0 0 15px rgba(240, 234, 228, 0.4);
}

.filter-select option {
    background: rgba(11, 12, 16, 0.98);
    color: var(--goa-text-primary);
    padding: 8px 8px 8px 40px;
}

.filter-select option:hover,
.filter-select option:checked {
    background: var(--gradient-card);
    color: var(--pewter);
}

/* ========================================
   CARDS GRID
   ======================================== */

.cards-grid {
    gap: 1.5rem;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: 20px;
    box-shadow: var(--goa-shadow-dark), inset 0 0 0 1px var(--glass-border);
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 50px rgba(169, 181, 189, 0.5), 0 0 60px rgba(240, 234, 228, 0.3);
    border-color: var(--royal-pearl);
}

.card.owned {
    border-color: var(--iron);
}

.card.owned:hover {
    border-color: var(--royal-pearl);
}

.card.missing {
    border-color: var(--goa-metal-dark);
    opacity: 0.6;
}

.card-name {
    color: var(--goa-text-primary);
    font-weight: 600;
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 2px solid var(--iron);
    border-radius: 20px;
    padding: 1rem 2rem;
    box-shadow: var(--goa-shadow-cyan);
}

.page-info {
    background: var(--gradient-royal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ========================================
   MODAL
   ======================================== */

.modal {
    display: none;
    z-index: 1000;
}

.modal-overlay {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--iron);
    border-radius: 30px;
    box-shadow: 0 20px 80px rgba(169, 181, 189, 0.6), 0 0 100px rgba(240, 234, 228, 0.4);
    animation: fadeIn 0.4s ease-out;
}

.modal-close {
    color: var(--pewter);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--royal-pearl);
    text-shadow: 0 0 20px rgba(240, 234, 228, 0.8);
    transform: rotate(90deg);
}

/* ========================================
   LOADER
   ======================================== */

.loader {
    border: 5px solid rgba(169, 181, 189, 0.3);
    border-top-color: var(--pewter);
    border-right-color: var(--royal-pearl);
    box-shadow: 0 0 20px rgba(169, 181, 189, 0.5), inset 0 0 10px rgba(240, 234, 228, 0.3);
}

/* ========================================
   FOOTER
   ======================================== */

/* Styles du footer désactivés - gérés par global.css */
/*
.footer {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border-top: 2px solid var(--iron);
    box-shadow: 0 -4px 20px rgba(169, 181, 189, 0.4);
    color: var(--goa-text-muted);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-royal);
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
    box-shadow: 0 0 15px rgba(169, 181, 189, 0.6), 0 0 25px rgba(232, 221, 213, 0.5);
}

.footer a {
    color: var(--pewter);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer a:hover {
    color: var(--royal-pearl);
    text-shadow: 0 0 10px rgba(240, 234, 228, 0.6);
}
*/

/* ========================================
   GUILD PAGE SPECIFIC STYLES
   ======================================== */

/* Hero Section */
.hero {
    position: relative;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--gradient-dark);
    border-bottom: 3px solid transparent;
    border-image: var(--gradient-royal) 1;
    box-shadow: 0 8px 32px rgba(169, 181, 189, 0.5), 0 8px 32px rgba(232, 221, 213, 0.4);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(100, 108, 116, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(232, 221, 213, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(240, 234, 228, 0.1) 0%, transparent 60%);
    animation: pulseGlow 4s ease-in-out infinite;
    pointer-events: none;
}

.guild-logo {
    width: 200px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 30px rgba(169, 181, 189, 0.8)) drop-shadow(0 0 50px rgba(232, 221, 213, 0.6));
    animation: floatLogo 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--goa-silver);
    position: relative;
    z-index: 1;
}

/* Section Headers */
.section {
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-royal);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    animation: gradientShift 4s ease infinite;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    background: var(--gradient-royal);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(169, 181, 189, 0.8), 0 0 30px rgba(232, 221, 213, 0.6);
}

.section-subtitle {
    color: var(--goa-silver);
    font-size: 1.1rem;
    font-style: italic;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--gradient-dark);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 2px solid var(--iron);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    text-align: center;
}

.value-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        var(--iron),
        transparent 30%
    );
    animation: rotateBorder 6s linear infinite;
    opacity: 0;
}

.value-card:hover::before {
    opacity: 0.6;
}

.value-card:hover {
    border-color: var(--royal-pearl);
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(169, 181, 189, 0.5);
}

.value-badge {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    position: relative;
    z-index: 1;
    animation: bounce 2s ease-in-out infinite;
}

.value-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px var(--royal-pearl));
}

.value-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pewter);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.value-description {
    color: var(--goa-silver);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Achievements Grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: var(--gradient-dark);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 2px solid var(--iron);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    text-align: center;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        var(--iron),
        transparent 30%
    );
    animation: rotateBorder 6s linear infinite;
    opacity: 0;
}

.achievement-card:hover::before {
    opacity: 0.6;
}

.achievement-card:hover {
    border-color: var(--royal-pearl);
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(169, 181, 189, 0.5);
}

.achievement-badge {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    position: relative;
    z-index: 1;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.achievement-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pewter);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.achievement-description {
    color: var(--goa-silver);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Timeline Vertical */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom,
        rgba(169, 181, 189, 0.3) 0%,
        rgba(169, 181, 189, 0.5) 25%,
        rgba(169, 181, 189, 0.7) 50%,
        rgba(169, 181, 189, 0.9) 75%,
        var(--royal-pearl) 100%);
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(169, 181, 189, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 5rem;
    display: flex;
    align-items: center;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: calc(50% + 3rem);
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: calc(50% + 3rem);
    text-align: left;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(169, 181, 189, 0.3) 0%, rgba(169, 181, 189, 0.1) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.37),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

/* Évolution progressive des sphères */
.timeline-item:nth-child(1) .timeline-marker {
    background: linear-gradient(135deg, rgba(169, 181, 189, 0.2) 0%, rgba(169, 181, 189, 0.05) 100%);
    border-color: rgba(169, 181, 189, 0.3);
    box-shadow:
        0 4px 16px rgba(169, 181, 189, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.timeline-item:nth-child(2) .timeline-marker {
    background: linear-gradient(135deg, rgba(169, 181, 189, 0.35) 0%, rgba(169, 181, 189, 0.15) 100%);
    border-color: rgba(169, 181, 189, 0.4);
    box-shadow:
        0 6px 24px rgba(169, 181, 189, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.timeline-item:nth-child(3) .timeline-marker {
    background: linear-gradient(135deg, rgba(169, 181, 189, 0.5) 0%, rgba(169, 181, 189, 0.25) 100%);
    border-color: rgba(169, 181, 189, 0.5);
    box-shadow:
        0 8px 32px rgba(169, 181, 189, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.timeline-item:nth-child(4) .timeline-marker {
    background: linear-gradient(135deg, var(--royal-pearl) 0%, rgba(169, 181, 189, 0.4) 100%);
    border-color: var(--royal-pearl);
    box-shadow:
        0 10px 40px rgba(169, 181, 189, 0.6),
        0 0 30px rgba(169, 181, 189, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.5);
    animation: futurePulse 3s ease-in-out infinite;
}

@keyframes futurePulse {
    0%, 100% {
        box-shadow:
            0 10px 40px rgba(169, 181, 189, 0.6),
            0 0 30px rgba(169, 181, 189, 0.4),
            inset 0 1px 1px rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow:
            0 10px 40px rgba(169, 181, 189, 0.8),
            0 0 40px rgba(169, 181, 189, 0.6),
            inset 0 1px 1px rgba(255, 255, 255, 0.5);
    }
}

.timeline-content {
    width: calc(50% - 5rem);
    background: var(--gradient-dark);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 2px solid var(--iron);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--royal-pearl);
    transform: translateY(-4px);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--pewter);
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pewter);
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--goa-silver);
    line-height: 1.6;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: var(--gradient-dark);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 2px solid var(--iron);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-royal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card:hover {
    border-color: var(--royal-pearl);
    transform: translateY(-10px);
    box-shadow:
        0 20px 50px rgba(169, 181, 189, 0.4),
        inset 0 0 50px rgba(240, 234, 228, 0.08);
}

.tool-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px var(--pewter));
}

.tool-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--royal-pearl);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tool-description {
    color: var(--goa-silver);
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.tool-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-royal);
    color: var(--goa-black);
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tool-btn:hover {
    transform: scale(1.05);
    box-shadow:
        0 10px 30px rgba(169, 181, 189, 0.5),
        0 0 40px rgba(240, 234, 228, 0.4);
    border-color: var(--royal-pearl);
}

.tool-btn.disabled {
    background: var(--goa-metal-dark);
    color: var(--goa-silver);
    cursor: not-allowed;
    opacity: 0.6;
}

.tool-btn.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

/* Join Section */
.join-section {
    background: var(--gradient-dark);
    padding: 4rem 3rem;
    border-radius: 30px;
    border: 3px solid var(--iron);
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
}

.join-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
        rgba(169, 181, 189, 0.15) 0%,
        transparent 50%,
        rgba(240, 234, 228, 0.12) 100%
    );
    animation: rotateGradient 10s linear infinite;
}

.join-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-royal);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    animation: gradientShift 4s ease infinite;
}

.join-description {
    color: var(--goa-silver);
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 3rem;
    background: var(--gradient-royal);
    color: var(--goa-black);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 15px;
    border: 3px solid var(--royal-pearl);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-btn:hover {
    transform: scale(1.1);
    box-shadow:
        0 15px 40px rgba(169, 181, 189, 0.6),
        0 0 60px rgba(240, 234, 228, 0.6);
    border-color: var(--pewter);
}

.contact-btn-icon {
    width: 32px;
    height: 32px;
    filter: brightness(0);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .timeline::before {
        left: 40px;
    }

    .timeline-marker {
        left: 40px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 120px);
        margin-left: 100px;
        margin-right: 0;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .particle {
        width: 22px;
        height: 22px;
    }

    .section-title {
        font-size: 2rem;
    }

    .guild-logo {
        width: 150px;
    }

    .stats-grid,
    .values-grid,
    .achievements-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .timeline-marker {
        width: 30px;
        height: 30px;
    }

    .timeline-badge {
        font-size: 1rem;
    }

    .join-title {
        font-size: 2rem;
    }

    .join-description {
        font-size: 1rem;
    }

    .contact-btn {
        padding: 1.2rem 2rem;
        font-size: 1rem;
    }

    .logo-img {
        height: 36px;
    }

    .welcome-card,
    .error-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .particle {
        width: 18px;
        height: 18px;
    }

    .logo-img {
        height: 32px;
    }

    .stat-card {
        padding: 1rem;
    }
}
