@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Raleway:wght@300;400;500;600;700&display=swap');

/* ---- Variables ---- */
:root {
    --violet: #790fc5;
    --violet-light: #a855f7;
    --blue: #2563eb;
    --blue-light: #60a5fa;
    --bg: #080812;
    --bg-card: rgba(255,255,255,0.04);
    --border: rgba(124,58,237,0.25);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --glow-v: rgba(124,58,237,0.35);
    --glow-b: rgba(37,99,235,0.35);
}

/* ---- Reset ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ---- Fond ambiance ---- */
body::before {
    content: '';
    position: fixed;
    top: -200px;
    left: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ---- Header ---- */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8,8,18,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
    min-height: 68px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.logo {
    justify-self: start;
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-decoration: none;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

.main-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 8px;
    transition: all 0.25s;
    border: 1px solid transparent;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--text);
    background: rgba(124,58,237,0.15);
    border-color: var(--border);
}

.main-nav a.active {
    color: var(--violet-light);
    border-color: rgba(124,58,237,0.4);
    background: rgba(124,58,237,0.12);
}

.header-cta {
    justify-self: end;
    display: inline-block;
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 9px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 0 18px var(--glow-v);
    transition: all 0.25s;
    white-space: nowrap;
}

.header-cta:hover {
    box-shadow: 0 0 30px var(--glow-v);
    transform: translateY(-1px);
    color: #fff;
}

/* ---- Conteneur principal ---- */
.container {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 80px auto 60px;
    padding: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 60px rgba(124,58,237,0.1), 0 8px 40px rgba(0,0,0,0.4);
    animation: fadeSlideUp 0.7s ease both;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Titres ---- */
h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--violet-light);
    margin-bottom: 18px;
}

h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

/* ---- Paragraphes ---- */
p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ---- Liens internes ---- */
.internal-link {
    color: var(--blue-light);
    font-weight: 600;
    text-decoration: underline;
    transition: all 0.2s ease;
}

.internal-link:hover {
    color: var(--violet-light);
    text-decoration: none;
}

/* ---- Séparateur décoratif ---- */
.divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--violet));
    border-radius: 99px;
    margin: 18px auto 28px;
}

/* ---- Badge ---- */
.badge {
    display: inline-block;
    background: rgba(124,58,237,0.2);
    border: 1px solid var(--border);
    color: var(--violet-light);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 99px;
    margin-bottom: 20px;
}

/* ---- Social links (ancienne page réseaux si tu la gardes) ---- */
.social-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
    border-radius: 20px;
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: inherit;
}

.social-links a svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
    fill: currentColor;
}

.social-links a:hover {
    transform: translateY(-8px);
    background: rgba(124, 58, 237, 0.08);
    border-color: var(--violet-light);
}

.social-x {
    color: #fff;
}

.social-x:hover {
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05);
}

.social-discord {
    color: #8fa3ff;
    border-color: rgba(88, 101, 242, 0.2);
}

.social-discord:hover {
    color: #fff;
    border-color: #5865f2;
    background: rgba(88, 101, 242, 0.15) !important;
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.3);
}

.social-instagram {
    color: #ff79c6;
    border-color: rgba(255, 121, 198, 0.2);
}

.social-instagram:hover {
    color: #fff;
    border-color: #ff2d8d;
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
    box-shadow: 0 10px 30px rgba(221,42,123,0.35);
}

/* ---- Jeux Grid ---- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.game-card {
    cursor: pointer;
    transition: 0.25s;
}

.game-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid rgba(124, 58, 237, 0.3);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    transition: 0.25s;
}

.game-card:hover img {
    transform: scale(1.08);
    border-color: var(--violet-light);
}

.game-title {
    margin-top: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

/* ---- Menus déroulants ---- */
.game-dropdown {
    display: none;
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    text-align: left;
}

.game-dropdown.active {
    display: block;
}

.tournament {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tournament a {
    color: var(--blue-light);
    text-decoration: none;
    font-weight: 600;
}

.tournament a:hover {
    color: var(--violet-light);
}

.winner {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ---- Planning / Mois ---- */
.tabs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 36px;
    width: 100%;
}

.tab-btn {
    width: 100%;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s;
}

.tab-btn:hover {
    background: rgba(124,58,237,0.15);
    color: var(--text);
}

.tab-btn.active {
    background: linear-gradient(90deg, var(--blue), var(--violet));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 18px var(--glow-v);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* ---- Planning Events ---- */
.event-card {
    display: flex;
    gap: 18px;
    margin-bottom: 14px;
    align-items: stretch;
}

.event-date {
    min-width: 80px;
    text-align: center;
    background: linear-gradient(90deg, var(--blue), var(--violet));
    border-radius: 10px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-date .day {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
    display: block;
    line-height: 1;
}

.event-date .month {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
}

.event-info {
    flex: 1;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
}

.event-info h3 {
    margin-bottom: 4px;
}

.event-info p {
    margin: 0;
    font-size: 0.9rem;
}

/* ---- Footer avec réseaux à droite ---- */
.site-footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding: 20px 24px;
}

.footer-inner {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-social {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    color: var(--text-muted);
    transition: all 0.25s ease;
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-social:hover {
    transform: translateY(-2px);
    color: #fff;
}

.footer-social.social-x:hover {
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 0 18px rgba(255,255,255,0.08);
}

.footer-social.social-discord:hover {
    border-color: #5865f2;
    background: rgba(88,101,242,0.15);
    box-shadow: 0 0 18px rgba(88,101,242,0.28);
}

.footer-social.social-instagram:hover {
    border-color: #ff2d8d;
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
    box-shadow: 0 0 18px rgba(221,42,123,0.3);
}

/* ---- Ancien footer générique si encore utilisé quelque part ---- */
footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
    text-align: center;
    padding: 24px;
    font-size: 0.82rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    letter-spacing: 0.04em;
}

/* ---- Responsive ---- */
@media (max-width: 820px) {
    .header-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
        min-height: auto;
        padding: 14px 20px;
    }

    .logo,
    .main-nav,
    .header-cta {
        justify-self: center;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 680px) {
    .container {
        margin: 30px 16px 40px;
        padding: 30px 22px;
    }

    h1 {
        font-size: 1.9rem;
    }

    .social-links {
        gap: 15px;
    }

    .social-links a {
        width: 130px;
        height: 130px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tabs {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .tab-btn {
        font-size: 0.75rem;
        padding: 10px 6px;
    }

    .event-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .event-date,
    .event-info {
        width: 100%;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }
}
