/* ==========================================
   FICHIER: style_accueil.css
   DESCRIPTION: Styles complets pour Astralyte (Accueil & Admin)
   ========================================== */

:root {
    --bg-main: #07050d;
    --bg-card: rgba(20, 16, 30, 0.85);
    --accent: #a855f7;
    --accent-hover: #9333ea;
    --text-main: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: rgba(168, 85, 247, 0.25);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

/* --- HEADER / NAVIGATION --- */
.site-header {
    background: rgba(11, 10, 18, 0.9);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    padding: 15px 40px;
    width: 100%;
    box-sizing: border-box;
}

.header-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
}

.header-logo span {
    color: #fff;
    font-weight: 800;
    letter-spacing: 1.5px;
    font-size: 1.1rem;
}

.header-nav {
    display: flex;
    gap: 25px;
}

.header-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.header-nav a:hover,
.header-nav a.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.online-players {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(20, 16, 30, 0.6);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 10px;
}

.online-players img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.online-players div {
    display: flex;
    flex-direction: column;
}

.online-players span {
    color: #fff;
    font-weight: bold;
    font-size: 0.85rem;
}

.online-players small {
    color: var(--text-muted);
    font-size: 0.6rem;
    letter-spacing: 0.5px;
}

.btn-play-header {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.4);
    transition: all 0.3s ease;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.btn-play-header:hover {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

/* --- LAYOUT GLOBAL (FULL WIDTH) --- */
.main-layout {
    width: 100%;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    box-sizing: border-box;
}

/* --- SECTION HERO IMMERSIVE --- */
.hero-immersive {
    width: 100%;
    background: radial-gradient(circle at 50% center, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    border-radius: 20px;
    padding: 50px 60px;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    gap: 40px;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    z-index: 2;
}

.hero-image {
    flex: 1.2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 2;
    transform: translateX(30px);
}

.hero-image img {
    width: 100%;
    max-width: 750px;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.9));
}

/* --- BRANDING (LOGO + TITRE) --- */
.hero-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
}

.hero-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(168, 85, 247, 0.9));
    animation: floatStar 3s ease-in-out infinite;
}

.hero-logo-title {
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
}

@keyframes floatStar {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.hero-tagline {
    color: var(--accent);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 1.5rem; 
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.3;
    font-weight: 700;
}

.hero-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0 0 22px 0;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-play-img img {
    height: 42px;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.btn-play-img:hover img {
    transform: translateY(-3px);
    filter: drop-shadow(0 4px 12px rgba(168, 85, 247, 0.5));
}

/* Section IP Groupée */
.hero-ip {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(12, 9, 18, 0.9);
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    border-radius: 12px;
    gap: 30px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

.ip-text {
    color: #fff;
    font-family: monospace;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.btn-copy {
    height: 26px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-copy:hover {
    transform: scale(1.05);
    opacity: 0.85;
}

/* --- GRILLE DE CARTES --- */
.cards-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.card:hover {
    border-color: rgba(168, 85, 247, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.2);
    background: rgba(26, 22, 37, 0.95);
}

.card-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(168, 85, 247, 0.4));
}

.card-content h3 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.link-more {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-top: auto;
    transition: color 0.2s ease;
}

.link-more:hover {
    color: #d8b4fe;
    text-decoration: underline;
}

/* --- BARRE DE STATISTIQUES --- */
.stats-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 22px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.stat {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.stat img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(168, 85, 247, 0.4));
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-text span {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.stat-text p {
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    margin: 0;
    text-transform: uppercase;
}

/* --- FOOTER --- */
.site-footer {
    background: rgba(11, 10, 18, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 30px 40px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

.footer-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    box-sizing: border-box;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.footer-brand span {
    color: #fff;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.footer-legal p {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin: 0;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.72rem;
    transition: color 0.2s ease;
}

.legal-links a:hover {
    color: #fff;
}

.legal-links span {
    color: var(--text-muted);
    font-size: 0.6rem;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.8;
}

.footer-socials a:hover img {
    transform: translateY(-2px);
    opacity: 1;
}

/* --- STYLES POUR LE PANEL ADMIN (`admin_accueil.html`) --- */
.admin-container {
    max-width: 800px;
    margin: 40px auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.admin-container h1 {
    color: #fff;
    margin-top: 0;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-main);
    font-weight: bold;
    font-size: 0.9rem;
}

.form-group input, 
.form-group textarea {
    background: rgba(12, 9, 18, 0.9);
    border: 1px solid var(--border-color);
    padding: 12px;
    color: #fff;
    border-radius: 8px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    height: 90px;
}

.current-img-preview {
    max-width: 200px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 10px;
}

.btn-save {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-save:hover {
    transform: translateY(-2px);
}

.alert {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid #22c55e;
    color: #4ade80;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1280px) {
    .cards-container {
        grid-template-columns: repeat(3, 1fr);
    }
    .stats-bar {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .header-nav {
        display: none;
    }
    .hero-immersive {
        flex-direction: column;
        padding: 30px 20px;
    }
    .hero-image {
        display: none;
    }
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .cards-container {
        grid-template-columns: 1fr;
    }
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}