@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Raleway:wght@300;400;500&display=swap');

/* ===== VARIABLES ===== */

:root {
    --gold: #c9a84c;
    --gold-light: #e6cc80;
    --gold-dark: #8a6d2b;
    --bg-dark: #060a10;
    --bg-section: #0a0f1a;
    --text-light: #e8e0d0;
    --text-muted: #9a8e7a;
    --border-gold: rgba(201,168,76,0.25);
    --transition: 0.3s ease;
}

/* ===== BASE ===== */

* { scroll-behavior: smooth; }

body {
    font-family: 'Raleway', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h5, .navbar-brand span, .btn-gold, .btn-outline-gold {
    font-family: 'Cinzel', serif;
}

::selection { background: rgba(201,168,76,0.3); color: #fff; }

/* ===== SKIP LINK ===== */
.skip-link {
    position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
    background: var(--gold); color: #0a0a0a; padding: 8px 20px;
    border-radius: 0 0 6px 6px; z-index: 9999; font-weight: 600; font-size: 0.85rem;
    transition: top var(--transition);
}
.skip-link:focus { top: 0; color: #0a0a0a; }

/* ===== FOCUS VISIBLE ===== */
*:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
button:focus-visible, a:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; box-shadow: 0 0 12px rgba(201,168,76,0.4); }

/* ===== STARFIELD ===== */

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

nav, section, footer {
    position: relative;
    z-index: 1;
}

/* ===== NAVBAR ===== */

.navbar-eve {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6,10,16,0.6);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 0;
    transition: all var(--transition);
}
.navbar-eve.scrolled {
    background: rgba(6,10,16,0.97);
    border-bottom-color: var(--border-gold);
    padding: 6px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.navbar-eve.scrolled .navbar-logo { height: 30px; width: 30px; }

.navbar-brand {
    color: var(--gold-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
}

.navbar-brand:hover {
    color: #fff;
}

.navbar-logo {
    height: 38px;
    width: 38px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(201,168,76,0.5));
}

/* ===== LANG SWITCHER ===== */

.lang-switcher {
    display: flex;
    gap: 4px;
}

.lang-btn {
    font-size: 0.7rem;
    padding: 3px 10px;
    transition: all 0.3s ease;
    border-color: rgba(201,168,76,0.4);
    color: var(--gold-light);
}

.lang-btn:hover {
    border-color: var(--gold);
    color: #fff;
}

.lang-btn.active {
    background: rgba(201,168,76,0.2);
    border-color: var(--gold);
    color: #fff;
    box-shadow: 0 0 10px rgba(201,168,76,0.3);
}

/* ===== HERO ===== */

.hero {
    position: relative;
    padding: 120px 20px 100px;
    text-align: center;
    background:
        radial-gradient(ellipse at center, rgba(201,168,76,0.08) 0%, transparent 60%),
        radial-gradient(circle at 30% 80%, rgba(201,168,76,0.05), transparent 40%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, var(--bg-dark) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
}

.hero-logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 30px rgba(201,168,76,0.4));
}

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

.hero h1 {
    font-weight: 700;
    font-size: 3.2rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--gold-light), #fff, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    opacity: 0;
    animation: titleReveal 1.8s ease forwards 0.3s;
}

@keyframes titleReveal {
    0% {
        opacity: 0;
        letter-spacing: 20px;
        filter: blur(8px);
    }
    50% {
        opacity: 0.6;
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        letter-spacing: 6px;
        filter: blur(0);
    }
}

.hero-motto {
    font-family: 'Cinzel', serif;
    font-style: italic;
    color: var(--gold);
    font-size: 1.2rem;
    letter-spacing: 3px;
    margin-bottom: 6px;
    opacity: 0;
    animation: fadeSlideUp 1s ease forwards 1.4s;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 36px;
    opacity: 0;
    animation: fadeSlideUp 1s ease forwards 1.7s;
}

.hero-actions {
    opacity: 0;
    animation: fadeSlideUp 1s ease forwards 2s;
}

@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo {
    opacity: 0;
    animation: logoReveal 1.2s ease forwards 0s, float 4s ease-in-out infinite 1.2s;
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: scale(0.6);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    /* opacity + animation définis au-dessus avec fadeSlideUp */
}

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

.btn-gold {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
    border: none;
    color: #0a0a0a;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(201,168,76,0.3);
    border-radius: 6px;
    padding: 10px 28px;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 30px rgba(201,168,76,0.5);
    transform: translateY(-2px);
    color: #0a0a0a;
}

.btn-outline-gold {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 6px;
    padding: 10px 28px;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: rgba(201,168,76,0.1);
    border-color: var(--gold-light);
    color: #fff;
    box-shadow: 0 0 20px rgba(201,168,76,0.2);
    transform: translateY(-2px);
}

/* ===== DISCORD BUTTON ===== */

.btn-discord {
    background: linear-gradient(135deg, #5865F2, #3b49c9);
    color: #fff;
    border: none;
    padding: 6px 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    box-shadow: 0 0 12px rgba(88,101,242,0.4);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-discord:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 20px rgba(88,101,242,0.7);
    transform: translateY(-2px);
    color: #fff;
}

/* ===== SECTION TITLES ===== */

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-light);
}

.gold-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 12px auto 0;
}

/* ===== STATS SECTION ===== */

.stats-section {
    padding: 50px 0;
    background: var(--bg-section);
    border-top: 1px solid var(--border-gold);
    border-bottom: 1px solid var(--border-gold);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stat-number {
    font-family: 'Cinzel', serif;
    font-size: 2.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-light), #fff, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* ===== ABOUT SECTION ===== */

.about-section {
    padding: 80px 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(201,168,76,0.04), transparent 50%),
        var(--bg-section);
}

.about-icon {
    font-size: 2.4rem;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 6px rgba(201,168,76,0.4));
}

.about-section h5 {
    color: var(--gold-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 10px;
}

.about-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 320px;
    margin: 0 auto;
}

/* ===== SERVICES SECTION ===== */

.services-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

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

.eve-card {
    background: linear-gradient(160deg, rgba(20,18,12,0.9), rgba(10,10,8,0.95));
    border: 1px solid var(--border-gold);
    box-shadow: 0 0 20px rgba(201,168,76,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    color: var(--text-light);
    border-radius: 12px;
    backdrop-filter: blur(6px);
}

.eve-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 40px rgba(201,168,76,0.15);
    border-color: rgba(201,168,76,0.5);
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 6px rgba(201,168,76,0.4));
}

.eve-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== CORPORATIONS SECTION ===== */

.corps-section {
    padding: 80px 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(201,168,76,0.04), transparent 50%),
        var(--bg-section);
}

.corp-card {
    background: linear-gradient(160deg, rgba(20,18,12,0.9), rgba(10,10,8,0.95));
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(6px);
}

.corp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 35px rgba(201,168,76,0.12);
    border-color: rgba(201,168,76,0.45);
}

.corp-logo {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    border: 1px solid var(--border-gold);
    background: rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.corp-name {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    color: var(--gold-light);
    letter-spacing: 1px;
}

.corp-ticker {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.executor-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #0a0a0a;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 4px;
    font-weight: 600;
    vertical-align: middle;
}

.corp-members {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.corp-members i {
    color: var(--gold);
}

/* ===== RECRUIT SECTION ===== */

.recruit-section {
    padding: 80px 0;
    background:
        radial-gradient(ellipse at center, rgba(201,168,76,0.06) 0%, transparent 50%),
        var(--bg-section);
    border-top: 1px solid var(--border-gold);
    border-bottom: 1px solid var(--border-gold);
}

.recruit-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

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

footer {
    margin-top: auto;
    padding: 30px 0;
    background: linear-gradient(180deg, rgba(10,15,26,0.8), rgba(0,0,0,0.95));
    text-align: center;
    font-size: 0.82rem;
    border-top: 1px solid var(--border-gold);
    color: var(--text-muted);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 6px;
    opacity: 0.7;
}

.footer-separator {
    width: 50px;
    border: 1px solid var(--gold-dark);
    margin: 4px 0;
    opacity: 0.5;
}

/* ===== LINKS ===== */

a {
    color: var(--gold-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(201,168,76,0.5);
}

/* ===== FADE-IN ===== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-delay-1 { transition-delay: 0.15s; }
.fade-delay-2 { transition-delay: 0.30s; }
.fade-delay-3 { transition-delay: 0.45s; }
.fade-delay-4 { transition-delay: 0.60s; }

/* ===== HAMBURGER ===== */
.navbar-toggler {
    border: 1px solid rgba(201,168,76,0.4); padding: 6px 10px; background: transparent;
    display: flex; flex-direction: column; gap: 4px; cursor: pointer; transition: all var(--transition);
}
.navbar-toggler:hover { border-color: var(--gold); }
.navbar-toggler:focus { box-shadow: 0 0 10px rgba(201,168,76,0.3); }
.navbar-toggler-bar {
    display: block; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; transition: all var(--transition);
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-bar:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-bar:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-bar:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ===== NAV LINKS ===== */
.nav-links { gap: 4px; align-items: center; }
.nav-links .nav-link {
    font-family: 'Raleway', sans-serif; font-size: 0.75rem; font-weight: 500; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1.5px; padding: 6px 10px; border-radius: 4px;
    transition: all var(--transition); text-decoration: none; position: relative;
}
.nav-links .nav-link::after {
    content: ''; position: absolute; bottom: 2px; left: 50%; width: 0; height: 1px;
    background: var(--gold); transition: all var(--transition); transform: translateX(-50%);
}
.nav-links .nav-link:hover { color: var(--gold-light); }
.nav-links .nav-link:hover::after { width: 60%; }
.nav-links .nav-link.active { color: var(--gold-light); background: rgba(201,168,76,0.1); }
.nav-links .nav-link.active::after { width: 60%; }
.navbar-right { flex-shrink: 0; }

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator { margin-top: 50px; opacity: 0; animation: fadeSlideUp 1s ease forwards 2.5s; }
.scroll-indicator i { font-size: 1.6rem; color: var(--gold-dark); animation: bounce 2s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); opacity: 0.4; } 50% { transform: translateY(8px); opacity: 0.8; } }

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed; bottom: 30px; right: 30px; z-index: 99; width: 44px; height: 44px;
    border: 1px solid var(--border-gold); border-radius: 50%; background: rgba(6,10,16,0.9);
    color: var(--gold); font-size: 1.2rem; cursor: pointer; opacity: 0; visibility: hidden;
    transform: translateY(10px); transition: all var(--transition); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: rgba(201,168,76,0.15); border-color: var(--gold); box-shadow: 0 0 15px rgba(201,168,76,0.3); color: var(--gold-light); }

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

@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(6,10,16,0.97); border-top: 1px solid var(--border-gold);
        margin-top: 10px; padding: 16px; border-radius: 8px; backdrop-filter: blur(12px);
    }
    .nav-links { flex-direction: column; gap: 2px; margin-bottom: 12px; }
    .nav-links .nav-link { padding: 10px 16px; font-size: 0.85rem; text-align: center; width: 100%; border-radius: 6px; }
    .nav-links .nav-link:hover { background: rgba(201,168,76,0.08); }
    .nav-links .nav-link::after { display: none; }
    .navbar-right { justify-content: center; width: 100%; padding-top: 8px; border-top: 1px solid rgba(201,168,76,0.15); }
}

@media (max-width: 768px) {
    .hero { padding: 80px 15px 60px; min-height: 80vh; }
    .hero-logo { width: 110px; height: 110px; }
    .hero h1 { font-size: 1.8rem; letter-spacing: 3px; }
    .hero-motto { font-size: 0.95rem; }
    .hero-subtitle { font-size: 0.8rem; }
    .section-title { font-size: 1.3rem; }
    .stat-number { font-size: 1.8rem; }
    .about-section, .services-section, .corps-section, .recruit-section { padding: 50px 0; }
    .recruit-text { font-size: 0.9rem; }
    .scroll-top { bottom: 20px; right: 20px; width: 38px; height: 38px; }
    .scroll-indicator { margin-top: 30px; }
}

@media (max-width: 400px) {
    .hero h1 { font-size: 1.4rem; }
    .stat-number { font-size: 1.3rem; }
    .lang-btn { padding: 2px 8px; font-size: 0.65rem; }
}
