/* ============================================
   LoL Hub Fun & Stats — CSS Principal
   Palette League of Legends
   ============================================ */

:root {
    --primary: #c8aa6e;
    --primary-dark: #a0824d;
    --primary-light: #f0e6d2;
    --secondary: #091428;
    --bg-dark: #010a13;
    --bg-card: #1e2328;
    --bg-card-hover: #252a30;
    --bg-alt: #0a1428;
    --bg-input: #0a0e13;
    --text: #a09b8c;
    --text-light: #5b5a56;
    --text-white: #f0e6d2;
    --gold: #c8aa6e;
    --gold-bright: #f0e6d2;
    --gold-dark: #785a28;
    --blue: #0ac8b9;
    --blue-dark: #005a82;
    --blue-glow: #0397ab;
    --red: #e84057;
    --red-dark: #901b29;
    --green: #00c9a7;
    --border: #1e282d;
    --border-gold: #463714;
    --border-light: #32281e;
    --radius: 4px;
    --radius-lg: 8px;
    --shadow: 0 4px 16px rgba(0,0,0,0.5);
    --shadow-gold: 0 0 15px rgba(200,170,110,0.15);
    --transition: 0.25s ease;
    --max-width: 1200px;
    --font-display: 'Cinzel', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* Skip link (accessibility) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--bg-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 0 0 var(--radius) var(--radius);
    font-weight: 700;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
    color: var(--bg-dark);
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; }
::selection { background: var(--gold); color: var(--bg-dark); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ============================================
   Background Ambiance System
   ============================================ */
.bg-ambiance {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

/* Taches de lumière ambiantes */
.bg-radial {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.bg-radial-1 {
    width: 600px; height: 600px;
    top: -200px; left: -150px;
    background: radial-gradient(circle, rgba(9,20,40,0.8) 0%, transparent 70%);
    animation: float-radial 20s ease-in-out infinite;
}

.bg-radial-2 {
    width: 500px; height: 500px;
    top: 40%; right: -100px;
    background: radial-gradient(circle, rgba(200,170,110,0.04) 0%, transparent 70%);
    animation: float-radial 25s ease-in-out infinite reverse;
}

.bg-radial-3 {
    width: 700px; height: 700px;
    bottom: -200px; left: 30%;
    background: radial-gradient(circle, rgba(10,200,185,0.02) 0%, transparent 70%);
    animation: float-radial 30s ease-in-out infinite 5s;
}

@keyframes float-radial {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* Motif de fond — grille subtile */
.bg-pattern {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(200,170,110,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200,170,110,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 0%, transparent 100%);
}

/* Canvas pour particules */
.bg-particles {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* ============================================
   Ornements
   ============================================ */
.top-ornament {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    height: 3px;
    overflow: hidden;
}

.top-ornament svg { width: 100%; height: 3px; display: block; }

.footer-ornament {
    margin-bottom: 0;
}

.footer-ornament svg { width: 100%; height: 2px; display: block; }

/* ============================================
   Navbar
   ============================================ */
.navbar {
    background: linear-gradient(180deg, rgba(9,20,40,0.97) 0%, rgba(1,10,19,0.95) 100%);
    border-bottom: 1px solid var(--border-gold);
    padding: 0 20px;
    position: sticky;
    top: 3px;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar .container {
    display: flex;
    align-items: center;
    height: 64px;
    gap: 2rem;
}

.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold) !important;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.navbar-brand:hover {
    color: var(--primary-light) !important;
    text-shadow: 0 0 20px rgba(200,170,110,0.4);
}

.logo-icon { display: flex; align-items: center; }

.navbar-menu { display: flex; gap: 0.3rem; flex: 1; justify-content: center; align-items: center; }

/* ── Dropdown nav groups ── */
.nav-group {
    position: relative;
}
.nav-group-toggle,
.nav-link.nav-group-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.nav-arrow {
    font-size: 0.6rem;
    opacity: 0.6;
    transition: transform 0.2s ease;
    display: inline-block;
}
.nav-group:hover .nav-arrow,
.nav-group-toggle[aria-expanded="true"] .nav-arrow {
    transform: rotate(180deg);
}
.nav-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #0a1428;
    border: 1px solid rgba(200,170,110,0.2);
    border-radius: 10px;
    padding: 0.4rem;
    min-width: 180px;
    display: none;
    z-index: 200;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    animation: dropdownFade 0.15s ease;
}
@keyframes dropdownFade {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.nav-group:hover .nav-dropdown,
.nav-dropdown.open {
    display: block;
}
.nav-dropdown-item {
    display: block;
    padding: 0.55rem 0.9rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}
.nav-dropdown-item:hover {
    background: rgba(200,170,110,0.1);
    color: var(--gold);
}
.nav-link-gold { color: var(--gold) !important; }

/* Mobile flat links — hidden on desktop, shown inside mobile menu */
.nav-mobile-flat { display: none; }
.nav-mobile-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(200,170,110,0.5);
    padding: 0.75rem 2rem 0.25rem;
    font-weight: 700;
}

.nav-link {
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 0.7rem;
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--gold);
    background: rgba(200,170,110,0.08);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}

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

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--bg-dark);
}

.navbar-auth { display: flex; align-items: center; gap: 0.8rem; }

/* Hamburger animé */
.navbar-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-gold);
    color: var(--gold);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius);
    width: 36px;
    height: 36px;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.navbar-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s;
}

.navbar-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar-toggle.active span:nth-child(2) { opacity: 0; }
.navbar-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.xp-badge {
    background: linear-gradient(135deg, var(--gold), var(--primary-dark));
    color: var(--bg-dark);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 0.3rem;
}

.nav-admin { color: var(--gold) !important; font-weight: 600; }

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    background: transparent;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(200,170,110,0.1), transparent);
    transition: left 0.5s;
}

.btn:hover::before { left: 100%; }

.btn:hover {
    background: rgba(200,170,110,0.12);
    color: var(--primary-light);
    box-shadow: 0 0 20px rgba(200,170,110,0.15), inset 0 0 20px rgba(200,170,110,0.05);
}

.btn-primary {
    background: linear-gradient(180deg, #c8aa6e 0%, #a0824d 100%);
    color: #010a13;
    border-color: #c8aa6e;
}

.btn-primary:hover {
    background: linear-gradient(180deg, #f0e6d2 0%, #c8aa6e 100%);
    color: #010a13;
    box-shadow: 0 0 25px rgba(200,170,110,0.5);
    transform: translateY(-1px);
}

.btn-ghost {
    border-color: var(--border);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-outline { background: transparent; }

.btn-danger { border-color: var(--red); color: var(--red); }
.btn-danger:hover { background: rgba(232,64,87,0.15); color: #ff6b7f; }

.btn-sm { padding: 0.3rem 0.8rem; font-size: 0.7rem; }
.btn-lg { padding: 0.8rem 2.5rem; font-size: 0.9rem; }

/* ============================================
   Hero
   ============================================ */
.hero {
    text-align: center;
    padding: 100px 20px 50px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(9,20,40,0.9) 0%, transparent 100%),
        radial-gradient(ellipse 80% 40% at 50% 100%, rgba(200,170,110,0.03) 0%, transparent 100%);
}

/* Bordure ornementale latérale hero */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    top: 80px; bottom: 80px;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--gold-dark), transparent);
    opacity: 0.3;
}

.hero::before { left: 5%; }
.hero::after { right: 5%; }

.hero-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 30px rgba(0,0,0,0.6);
    position: relative;
    display: inline-block;
}

/* Soulignement décoratif sous le titre */
.hero-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 1rem auto 0;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(200,170,110,0.3);
}

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

/* ============================================
   Champion Carousel
   ============================================ */
.champion-carousel {
    width: 100%;
    overflow: hidden;
    padding: 0;
    position: relative;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(9,20,40,0.3) 50%, var(--bg-dark) 100%);
}

.champion-carousel::before,
.champion-carousel::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.champion-carousel::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-dark) 0%, transparent 100%);
}

.champion-carousel::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg-dark) 0%, transparent 100%);
}

.carousel-track {
    display: flex;
    animation: scroll-champions 80s linear infinite;
    gap: 4px;
    width: max-content;
}

.carousel-track:hover { animation-play-state: paused; }

.carousel-item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid rgba(120,90,40,0.3);
    transition: all 0.3s ease;
    position: relative;
}

.carousel-item:hover {
    border-color: var(--gold);
    transform: scale(1.2);
    z-index: 3;
    box-shadow: 0 0 25px rgba(200,170,110,0.5);
}

.carousel-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.carousel-item .champ-name {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: var(--gold);
    font-size: 0.5rem;
    text-align: center;
    padding: 14px 2px 3px;
    opacity: 0;
    transition: opacity 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.carousel-item:hover .champ-name { opacity: 1; }

.carousel-row { padding: 2px 0; }

.carousel-row:nth-child(2) .carousel-track {
    animation-direction: reverse;
    animation-duration: 95s;
}

@keyframes scroll-champions {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   LoL Divider
   ============================================ */
.lol-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), var(--gold), var(--gold-dark), transparent);
    margin: 0;
    border: none;
    position: relative;
}

.lol-divider::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -4px;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: var(--gold);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 70px 0;
    position: relative;
}

.section-alt {
    background: rgba(9,20,40,0.5);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-white);
    margin-bottom: 2rem;
    letter-spacing: 1px;
    position: relative;
    padding-left: 16px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: linear-gradient(180deg, var(--gold), var(--gold-dark));
    border-radius: 2px;
}

.section-action {
    text-align: center;
    margin-top: 2.5rem;
}

/* ============================================
   Cards
   ============================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(30,35,40,0.8) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text);
    display: block;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 0 15px rgba(200,170,110,0.1);
    color: var(--text);
    border-color: var(--border-gold);
    background: linear-gradient(180deg, var(--bg-card-hover) 0%, var(--bg-card) 100%);
}

.card:hover::before { opacity: 1; }

.card-image {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center 15%;
    background-color: var(--secondary);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.card-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40px;
    background: linear-gradient(transparent, var(--bg-card));
}

.card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--secondary) 0%, rgba(30,35,40,0.5) 100%);
}

.card-body { padding: 1.2rem; }

.card-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 2px;
    background: rgba(200,170,110,0.08);
    color: var(--gold);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--border-gold);
}

.badge-facile { color: var(--green); border-color: rgba(0,201,167,0.3); background: rgba(0,201,167,0.06); }
.badge-moyen { color: var(--gold); }
.badge-difficile { color: var(--red); border-color: rgba(232,64,87,0.3); background: rgba(232,64,87,0.06); }

.card-title { font-size: 1.05rem; color: var(--text-white); margin-bottom: 0.5rem; font-weight: 600; }
.card-text { font-size: 0.85rem; color: var(--text); margin-bottom: 0.5rem; line-height: 1.5; }
.card-meta { font-size: 0.7rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }

/* ============================================
   Forms
   ============================================ */
.form-group { margin-bottom: 1.2rem; }

.form-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gold);
    margin-bottom: 0.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200,170,110,0.1), 0 0 15px rgba(200,170,110,0.05);
}

.form-textarea { min-height: 100px; resize: vertical; }

.alert {
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: 1px solid;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
}

.alert-success { background: rgba(0,201,167,0.06); border-color: rgba(0,201,167,0.2); color: var(--green); }
.alert-success::before { background: var(--green); }
.alert-error { background: rgba(232,64,87,0.06); border-color: rgba(232,64,87,0.2); color: var(--red); }
.alert-error::before { background: var(--red); }
.alert-info { background: rgba(10,200,185,0.06); border-color: rgba(10,200,185,0.2); color: var(--blue); }
.alert-info::before { background: var(--blue); }

/* ============================================
   Quiz Options
   ============================================ */
.quiz-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.quiz-option:hover {
    border-color: var(--gold-dark);
    background: rgba(200,170,110,0.04);
    box-shadow: inset 0 0 20px rgba(200,170,110,0.03);
}

.quiz-option input[type="radio"] { accent-color: var(--gold); }

/* ============================================
   Tables
   ============================================ */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.admin-table thead { border-bottom: 2px solid var(--border-gold); }

.admin-table th {
    text-align: left;
    padding: 0.8rem;
    color: var(--gold);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.admin-table td {
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.admin-table tr:hover td {
    background: rgba(200,170,110,0.02);
}

/* ============================================
   SEO Block
   ============================================ */
.seo-block { border-top: 1px solid var(--border); }

.seo-block h2 {
    font-family: var(--font-display);
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.seo-block p {
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 0.85rem;
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-light);
    grid-column: 1 / -1;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* ============================================
   Ad Slots
   ============================================ */
.ad-slot { text-align: center; padding: 10px 0; min-height: 10px; }

/* ============================================
   Footer
   ============================================ */
.footer {
    background:
        linear-gradient(180deg, rgba(9,20,40,0.6) 0%, var(--bg-dark) 100%);
    padding: 50px 0 20px;
    margin-top: 80px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    font-family: var(--font-display);
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-col p { color: var(--text); font-size: 0.85rem; line-height: 1.6; }

.footer-col a {
    display: block;
    color: var(--text);
    padding: 0.3rem 0;
    font-size: 0.85rem;
    transition: all var(--transition);
    position: relative;
    padding-left: 0;
}

.footer-col a::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s;
}

.footer-col a:hover {
    color: var(--gold);
    padding-left: 16px;
}

.footer-col a:hover::before { width: 8px; }

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .navbar .container { flex-wrap: nowrap; position: relative; }

    /* Menu mobile plein écran */
    .navbar-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: #05111f;
        z-index: 9999;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        /* padding-top = hauteur navbar (~64px) + marge,
           padding-bottom = hauteur barre auth fixe (~72px) + marge */
        padding: 68px 0 80px 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch; /* scroll fluide iOS */
        overscroll-behavior: contain;
        border-top: none;
    }

    .navbar-menu.active { display: flex; }

    /* On mobile: hide desktop dropdown groups, show flat links */
    .navbar-menu .nav-group { display: none; }
    .navbar-menu .nav-link-gold:not(.nav-mobile-flat .nav-link-gold) { display: none; }
    .navbar-menu .nav-mobile-flat { display: flex; flex-direction: column; width: 100%; }

    .navbar-menu .nav-link {
        font-size: 1rem;
        letter-spacing: 2px;
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(200,170,110,0.12);
        color: #ffffff;
        background: transparent;
    }

    .navbar-menu .nav-link:hover,
    .navbar-menu .nav-link:active {
        background: rgba(200,170,110,0.1);
        color: var(--gold);
    }

    .navbar-menu .nav-link::after { display: none; }

    /* Auth en bas du menu plein écran */
    .navbar-auth { display: none; }

    .navbar-menu.active ~ .navbar-auth {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100vw;
        z-index: 10000;
        padding: 0.65rem 1.2rem;
        background: #030d1a;
        border-top: 1px solid var(--border-gold);
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
        /* max-height pour éviter qu'elle prenne trop de place */
        max-height: 72px;
        overflow: hidden;
    }

    .navbar-toggle {
        display: flex;
        margin-left: auto;
        position: relative;
        z-index: 10001;
    }

    .navbar-toggle.active {
        position: fixed;
        top: 1rem;
        right: 1.2rem;
        z-index: 10001;
    }

    .hero { padding: 60px 20px 30px; }
    .hero-title { font-size: 1.6rem; }
    .hero::before, .hero::after { display: none; }
    .hero-stats { gap: 1.5rem; }
    .stat-value { font-size: 1.5rem; }
    .card-grid { grid-template-columns: 1fr; }
    .carousel-item { width: 60px; height: 60px; }
    .bg-pattern { display: none; }
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    z-index: 9999;
    animation: toastIn 0.4s ease;
    border: 1px solid;
    backdrop-filter: blur(10px);
}

.toast-success { background: rgba(0,201,167,0.15); border-color: var(--green); color: var(--green); }
.toast-error { background: rgba(232,64,87,0.15); border-color: var(--red); color: var(--red); }
.toast-info { background: rgba(10,200,185,0.15); border-color: var(--blue); color: var(--blue); }

@keyframes toastIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================
   Utilities
   ============================================ */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }

/* ============================================
   Scrollbar LoL Style
   ============================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border-gold); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ============================================
   Glow effects
   ============================================ */
.glow-gold {
    box-shadow: 0 0 15px rgba(200,170,110,0.2), 0 0 30px rgba(200,170,110,0.1);
}

.glow-blue {
    box-shadow: 0 0 15px rgba(10,200,185,0.2), 0 0 30px rgba(10,200,185,0.1);
}

/* ============================================
   Page transition — supprimée (conflit mobile)
   ============================================ */
