/* =========================================
   STYLE GLOBAL DU SITE BANALTIME
========================================= */

:root { 
    --purple: #9146FF; --purple-hover: #7b2bf0; --discord: #5865F2; --red: #FF0000; --gold: #d4af37; 
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
}

[data-theme="dark"] { 
    --bg: #09090b; --bg-accent: #121216; --surface: rgba(255, 255, 255, 0.03); --surface-hover: rgba(255, 255, 255, 0.08); 
    --border: rgba(255, 255, 255, 0.1); --text: #f8f9fa; --text-muted: #a1a1aa; --shadow: 0 10px 40px rgba(0, 0, 0, 0.5); 
    --glow: rgba(145, 70, 255, 0.2); --card-bg: rgba(18, 18, 22, 0.7); --text-gradient: linear-gradient(135deg, #fff 0%, #c9aaff 100%); 
}

[data-theme="light"] { 
    --bg: #f4f5f9; --bg-accent: #ffffff; --surface: #ffffff; --surface-hover: #f8f9fa; 
    --border: rgba(0, 0, 0, 0.08); --text: #1a1a1f; --text-muted: #64748b; --shadow: 0 10px 40px rgba(0, 0, 0, 0.06); 
    --glow: rgba(145, 70, 255, 0.15); --card-bg: rgba(255, 255, 255, 0.9); --text-gradient: linear-gradient(135deg, #1a1a1f 0%, var(--purple) 100%); 
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; width: 100%; overflow-x: hidden; }

body { 
    font-family: 'Inter', sans-serif; background-color: var(--bg); color: var(--text); line-height: 1.6; 
    width: 100%; overflow-x: hidden; margin: 0; padding: 0;
    transition: background-color 0.4s ease, color 0.4s ease; 
    word-break: break-word; overflow-wrap: break-word; /* Empêche les longs textes de déformer la page */
}

body::before { 
    content: ''; position: fixed; inset: 0; 
    background: radial-gradient(circle at 15% 50%, var(--glow) 0%, transparent 50%), radial-gradient(circle at 85% 30%, rgba(88,101,242,0.08) 0%, transparent 50%); 
    pointer-events: none; z-index: 0; 
}

/* ---------------- BANNIÈRE & NAV BUREAU ---------------- */
.top-banner { background: linear-gradient(135deg, var(--purple), var(--discord)); color: white; text-align: center; padding: 12px 20px; font-weight: 700; font-size: 0.95rem; position: relative; z-index: 1000; box-shadow: 0 4px 15px rgba(0,0,0,0.2); display: flex; justify-content: center; align-items: center; gap: 10px; }

.main-nav { position: sticky; top: 20px; z-index: 100; background: var(--card-bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid var(--border); padding: 0 1.5rem; height: 70px; display: flex; align-items: center; justify-content: space-between; border-radius: 20px; max-width: 1200px; margin: 20px auto; box-shadow: var(--shadow); transition: var(--transition); }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.5px; }
.nav-logo img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--purple); box-shadow: 0 0 15px var(--glow); }
.nav-center { display: flex; gap: 0.5rem; align-items: center; }
.nav-item { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 600; padding: 10px 18px; border-radius: 12px; transition: var(--transition); display: flex; align-items: center; gap: 8px; }
.nav-item:hover { color: var(--text); background: var(--surface-hover); }
.nav-item.active { color: var(--purple); background: var(--glow); font-weight: 700; border: 1px solid rgba(145, 70, 255, 0.3); }
.nav-right { display: flex; align-items: center; gap: 12px; }

@keyframes pulse-btn { 0% { box-shadow: 0 0 0 0 rgba(145, 70, 255, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(145, 70, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(145, 70, 255, 0); } }
.nav-live { background: var(--purple) !important; color: white !important; display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 12px; font-weight: 700; font-size: 0.95rem; text-decoration: none; transition: var(--transition); animation: pulse-btn 2s infinite; }
.nav-live:hover { background: var(--purple-hover) !important; transform: translateY(-2px); }
.theme-btn { background: var(--surface); border: 1px solid var(--border); color: var(--text); width: 44px; height: 44px; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: var(--transition); }
@media (hover: hover) { .theme-btn:hover { background: var(--surface-hover); transform: rotate(15deg); } }
.theme-btn:active { background: var(--surface-hover); transform: scale(0.92); }

.mobile-bottom-nav { display: none; }

/* ---------------- GÉNÉRAL & FOOTER ---------------- */
.page-header { text-align: center; padding: 5rem 2rem 3rem; position: relative; z-index: 1; }
/* Ajout de flex-wrap pour que le titre puisse passer à la ligne sur mobile */
.page-header h1 { font-size: 3rem; font-weight: 800; letter-spacing: -1px; background: var(--text-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; text-align: center; }
.page-header h1 img { height: 1em; border-radius: 6px; -webkit-text-fill-color: initial; }
.page-header p { color: var(--text-muted); font-size: 1.1rem; }

main { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 1rem 2rem 4rem; }
section { margin-bottom: 3.5rem; scroll-margin-top: 100px; }
.section-title { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 1.5rem; font-weight: 800; margin-bottom: 2rem; color: var(--text); text-align: center; flex-wrap: wrap; }
.section-title i { font-size: 1.8rem; }

footer { text-align: center; padding: 3rem 2rem; border-top: 1px solid var(--border); color: var(--text-muted); font-weight: 500; position: relative; z-index: 1; }
.footer-socials { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 1.5rem; flex-wrap: wrap; }
.footer-socials a { color: var(--text-muted); font-size: 1.5rem; transition: var(--transition); text-decoration: none; }
.footer-socials a:hover { color: var(--text); transform: translateY(-4px); }

/* ---------------- ACCUEIL ---------------- */
.hero { position: relative; z-index: 1; padding: 2.5rem 2rem 2rem; text-align: center; }
.hero-inner { max-width: 1150px; margin: 0 auto; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: center; text-align: left; }
.hero-left { display: flex; flex-direction: column; align-items: center; text-align: center; }
.avatar-ring { position: relative; width: 180px; height: 180px; margin-bottom: 2rem; }
.avatar-ring::before { content: ''; position: absolute; inset: -5px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--discord)); animation: spin 6s linear infinite; z-index: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.avatar-ring img { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; border: 4px solid var(--bg); object-fit: cover; }
.online-badge { position: absolute; bottom: 8px; right: 8px; z-index: 2; width: 24px; height: 24px; background: #00c853; border-radius: 50%; border: 4px solid var(--bg); }
.hero-name { font-size: 3.5rem; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 0.5rem; background: var(--text-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { color: var(--text-muted); font-size: 1.15rem; font-weight: 500; margin-bottom: 2.5rem; }

.social-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 30px; text-decoration: none; color: var(--text-muted); font-size: 0.9rem; font-weight: 600; border: 1px solid var(--border); background: var(--surface); transition: var(--transition); }
.chip:hover { color: var(--text); background: var(--surface-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.chip.disc:hover i { color: var(--discord); } .chip.twitch:hover i { color: var(--purple); } .chip.yt:hover i { color: var(--red); }

.schedule-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 20px; padding: 2.5rem 2rem; box-shadow: var(--shadow); backdrop-filter: blur(20px); width: 100%; }
.schedule-title { font-size: 0.9rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 2rem; display: flex; align-items: center; gap: 12px; justify-content: center; }
.live-card { background: var(--surface); border-radius: 12px; display: flex; align-items: stretch; overflow: hidden; border: 1px solid var(--border); transition: var(--transition); margin-bottom: 1rem; width: 100%; }
.live-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px var(--glow); border-color: var(--purple); }
.card-accent { width: 5px; background: var(--purple); flex-shrink: 0; }
.card-content { padding: 1.2rem; display: flex; gap: 1.5rem; width: 100%; align-items: center; }
.game-thumbnail { width: 120px; height: 68px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.live-info { display: flex; flex-direction: column; justify-content: center; flex-grow: 1; }
.live-day { font-size: 0.75rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.live-time { font-size: 1.3rem; font-weight: 800; color: var(--purple); margin-left: auto; flex-shrink: 0; }
.live-game { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.live-guests { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.schedule-note { text-align: center; font-size: 0.85rem; color: var(--text-muted); font-style: italic; margin-top: 2rem; }

.yt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.yt-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: var(--transition); text-decoration: none; display: flex; flex-direction: column; backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.yt-card:hover { border-color: var(--red); transform: translateY(-5px); box-shadow: 0 15px 35px rgba(255, 0, 0, 0.15); }
.yt-thumb-container { position: relative; width: 100%; padding-bottom: 56.25%; background: #000; overflow: hidden; }
.yt-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.yt-card:hover .yt-thumb { transform: scale(1.08); }
.yt-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; font-size: 3.5rem; opacity: 0; transition: var(--transition); filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5)); }
.yt-card:hover .yt-play { opacity: 1; color: var(--red); }
.yt-info { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; gap: 8px; }
.yt-title { color: var(--text); font-weight: 700; font-size: 1.1rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-date { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }

.about-card { display: flex; align-items: center; gap: 3rem; background: var(--card-bg); border: 1px solid var(--border); border-radius: 20px; padding: 2.5rem; backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.about-chibi { width: 140px; flex-shrink: 0; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3)); }
.about-text { font-size: 1.1rem; line-height: 1.8; color: var(--text-muted); }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; justify-content: center; }
.card { background: var(--card-bg); border: 1px solid var(--border); border-top-width: 3px; border-radius: 20px; padding: 2.5rem; display: flex; flex-direction: column; gap: 1rem; transition: var(--transition); box-shadow: var(--shadow); }
.card:hover { transform: translateY(-5px); }
.card-discord { border-top-color: var(--discord); }
.card-discord:hover { border-color: var(--discord); box-shadow: 0 10px 30px rgba(88,101,242,0.15); }
.card-gold { border-top-color: var(--gold); }
.card-gold:hover { border-color: var(--gold); box-shadow: 0 10px 30px rgba(212,175,55,0.15); }
.card-head { font-size: 1.2rem; font-weight: 800; display: flex; align-items: center; gap: 12px; color: var(--text); }
.card p { color: var(--text-muted); font-size: 1rem; flex: 1; }

.btn-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 10px; font-weight: 700; font-size: 0.95rem; text-decoration: none; transition: var(--transition); width: fit-content; border: 1px solid transparent; margin-top: auto; }
.btn-gold { background: rgba(212,175,55,0.1); color: var(--gold); border-color: rgba(212,175,55,0.2); }
.btn-gold:hover { background: var(--gold); color: #000; }

/* ---------------- HISTOIRE (TIMELINE COMPRESSÉE) ---------------- */
.timeline-container { position: relative; max-width: 850px; margin: 0 auto; padding: 0; }
.timeline-container::after { content: ''; position: absolute; width: 4px; background: var(--border); top: 0; bottom: 0; left: 50%; margin-left: -2px; border-radius: 4px; z-index: 0; }
.timeline-item { padding: 0 30px 1.5rem; position: relative; width: 50%; z-index: 1; }
.timeline-item.left { left: 0; }
.timeline-item.right { left: 50%; }

.timeline-dot { position: absolute; width: 20px; height: 20px; background-color: var(--bg); border: 4px solid var(--purple); border-radius: 50%; z-index: 2; top: 16px; box-shadow: 0 0 10px var(--glow); }
.timeline-item.left .timeline-dot { right: -12px; }
.timeline-item.right .timeline-dot { left: -12px; }

.timeline-content { background: var(--card-bg); border: 1px solid var(--border); padding: 1rem 1.2rem; border-radius: 12px; box-shadow: var(--shadow); position: relative; transition: var(--transition); backdrop-filter: blur(10px); }
.timeline-content:hover { border-color: var(--purple); transform: translateY(-3px); box-shadow: 0 8px 25px var(--glow); }
.timeline-date { color: var(--text-muted); font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.timeline-title { color: var(--text); font-weight: 700; font-size: 1.05rem; margin-bottom: 2px; }
.timeline-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.4; margin-top: 4px; }
.dot-gold { border-color: var(--gold); box-shadow: 0 0 10px rgba(212,175,55,0.4); }
.dot-red { border-color: var(--red); box-shadow: 0 0 10px rgba(255,0,0,0.4); }

/* ---------------- INFOS & SETUP & SOUTIEN ---------------- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.info-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 20px; padding: 2rem; backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.info-card h3 { color: var(--purple); font-size: 1.2rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 10px; justify-content: center; text-align: center; }

.setup-list { list-style: none; }
.setup-list li { padding: 0.8rem 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.setup-list li:last-child { border-bottom: none; }
.setup-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.setup-link { color: var(--text); text-decoration: none; font-weight: 600; font-size: 1rem; transition: var(--transition); word-break: break-word; }
.setup-link:hover { color: var(--purple); }

.wall-box { text-align: center; }
.wall-list { list-style: none; text-align: left; }
.wall-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.wall-list li:last-child { border-bottom: none; }
.wall-name { color: var(--text); font-weight: 600; }
.wall-val { color: var(--gold); font-weight: 800; }
.founder-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.founder-tags span { background: rgba(145, 70, 255, 0.1); color: var(--purple); border: 1px solid rgba(145, 70, 255, 0.3); padding: 6px 16px; border-radius: 30px; font-size: 0.9rem; font-weight: 600; text-align: center; }

/* ---------------- MENTIONS LÉGALES ---------------- */
.legal-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 20px; padding: 3rem; backdrop-filter: blur(10px); box-shadow: var(--shadow); margin-bottom: 2rem; max-width: 800px; margin: 0 auto; }
.legal-card h2 { color: var(--purple); font-size: 1.4rem; margin-bottom: 1rem; margin-top: 2rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p, .legal-card ul { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; margin-bottom: 1rem; }
.legal-card ul { padding-left: 20px; }
.legal-card strong { color: var(--text); }
.legal-card a { color: var(--purple); text-decoration: none; font-weight: 600; }
.legal-card a:hover { text-decoration: underline; }

/* ---------------- MEDIA QUERIES (RESPONSIVE) ---------------- */
@media (max-width: 900px) { 
    .hero-inner { grid-template-columns: 1fr; gap: 3rem; text-align: center; } 
    .hero-left { align-items: center; }
    .about-card { flex-direction: column; text-align: center; padding: 2rem; } 
    /* Correction de l'alignement de la navbar */
    .main-nav { margin: 10px auto; width: calc(100% - 20px); top: 10px; }
}

@media (max-width: 768px) {
    .nav-center.desktop-nav { display: none; }
    
    /* BARRE MOBILE - CENTRÉE ET ADAPTÉE */
    .mobile-bottom-nav { 
        display: flex; position: fixed; bottom: 0; left: 0; right: 0; 
        background: var(--card-bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); 
        border-top: 1px solid var(--border); padding: 10px 15px calc(10px + env(safe-area-inset-bottom)); 
        justify-content: space-around; align-items: center; z-index: 1000; box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
    }
    .mobile-bottom-nav .nav-item { 
        flex-direction: column; gap: 6px; font-size: 0.75rem; padding: 6px 10px; font-weight: 600; border-radius: 8px; width: 75px; text-align: center;
    }
    .mobile-bottom-nav .nav-item i { font-size: 1.3rem; margin-bottom: 2px; display: block; }
    .mobile-bottom-nav .nav-item.active { background: transparent; color: var(--purple); border: none; box-shadow: none; }
    
    .nav-live span.live-text { display: none; }
    
    /* Ajout d'un grand espace en bas du footer pour qu'il ne soit pas caché par la barre de menu mobile ! */
    footer { padding-bottom: 7rem; }
    main { padding-bottom: 1rem; }
    
    .timeline-container::after { left: 24px; }
    .timeline-item { width: 100%; padding-left: 45px; padding-right: 0; padding-bottom: 1.5rem; }
    .timeline-item.right { left: 0; }
    .timeline-item.left .timeline-dot, .timeline-item.right .timeline-dot { left: 14px; top: -2px; }
    .timeline-content { padding: 1rem; }
}

/* CORRECTION GLOBALE DU CENTRAGE SUR SMARTPHONE */
@media (max-width: 600px) { 
    .hero { padding: 2rem 1rem 1rem; } 
    .hero-name { font-size: 2.5rem; } 
    .page-header { padding: 4rem 1rem 2rem; }
    .page-header h1 { font-size: 2.2rem; }
    
    .grid-2, .cards-grid, .yt-grid { grid-template-columns: 1fr; gap: 1rem; }
    .info-card, .card, .about-card, .legal-card { padding: 1.5rem; }
    
    .live-card .card-content { flex-direction: column; text-align: center; gap: 0.5rem; } 
    .live-time { margin: 0 auto; } 
    .game-thumbnail { width: 100%; height: 100px; }
}