@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: #7c3aed;
    --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;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-decoration: none;
    background: linear-gradient(90deg, var(--violet-light), var(--blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

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;
}

nav a:hover {
    color: var(--text);
    background: rgba(124,58,237,0.15);
    border-color: var(--border);
}

nav a.active {
    color: var(--violet-light);
    border-color: rgba(124,58,237,0.4);
    background: rgba(124,58,237,0.12);
}

nav a.cta {
    background: linear-gradient(135deg, var(--violet), var(--blue));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 18px var(--glow-v);
}

nav a.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 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, #fff 30%, var(--violet-light));
    -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;
}

/* ---- Séparateur décoratif ---- */
.divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--violet), var(--blue));
    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 ---- */
.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;
}

/* ---- Responsive ---- */
@media (max-width: 680px) {
    .header-inner {
        flex-direction: column;
        gap: 10px;
        height: auto;
        padding: 14px 20px;
    .event-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
}
    }

    nav {
        justify-content: center;
    }

    .container {
        margin: 30px 16px 40px;
        padding: 30px 22px;
    }

    h1 {
        font-size: 1.9rem;
    }

    .social-links {
        gap: 15px;
    }

    .social-links a {
        width: 130px;
        height: 130px;
    }

    .step {
        flex-direction: column;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.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;
}

/* ---- Planning / Mois ---- */

.tabs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 36px;
}

.tab-btn {
    padding: 9px 22px;
    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);
}

/* mois actif = style "voir le planning" */

.tab-btn.active {
    background: linear-gradient(135deg, var(--violet), var(--blue));
    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: flex-start;
}

.event-date {
    min-width: 70px;
    text-align: center;
    background: linear-gradient(135deg, var(--violet), var(--blue));
    border-radius: 10px;
    padding: 10px 8px;
}

.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 {
    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;
}