/* =======================================
   HOME.CSS - Styles spécifiques à index.html
   Hérite des variables et du style sombre de style.css
   ======================================= */

.main-content-home {
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    color: white;
}

/* Small season stats shown on the homepage */
.season-stats {
    /* small counter card placed in the normal page flow under the join-callout */
    position: relative;
    margin: 18px auto 28px auto;
    z-index: 1;
    width: 360px;
    pointer-events: auto;
}

.stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.06));
    border: 1px solid rgba(255,193,7,0.12);
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 130px;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    color: var(--codm-yellow);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    color: #d0d0d0;
    margin-top: 6px;
    text-align: center;
}

.stat-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.03); margin: 0 6px; }

@media (max-width: 480px) {
    .season-stats { width: calc(100% - 32px); }
    .stat-card { padding: 10px; gap: 8px; }
    .stat-number { font-size: 1.1rem; }
}

.thanks { text-align: center; color: #d0d0d0; font-size: 0.9rem; margin-top: 8px; }

/* --- SECTION HÉROS (Bannière Principale) --- */

.hero-section {
    background-color: #1e1e1e;
    /* Utilisez une image de fond ici si vous en avez une */
    /* background-image: url('../img/codm_background.jpg'); */
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 100px 30px;
    margin-bottom: 40px;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.1);
    border-bottom: 5px solid var(--codm-yellow);
}

.hero-content {
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent pour la lisibilité */
    padding: 20px;
    border-radius: 8px;
}

.hero-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    margin-bottom: 15px;
}

.text-neon {
    color: var(--codm-yellow);
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.7);
}

.hero-section p {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.btn-main-action {
    display: inline-block;
    background: var(--codm-yellow);
    color: #121212 !important;
    font-family: 'Orbitron', sans-serif;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s, transform 0.2s;
}

.btn-main-action:hover {
    background: #ffdb7d; /* Couleur plus claire au survol */
    transform: translateY(-2px);
}


/* --- SECTION CARACTÉRISTIQUES (Badges) --- */

.features-section {
    padding: 40px 30px;
    text-align: center;
}

.features-section h3 {
    font-family: 'Orbitron', sans-serif;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 30px;
    border-bottom: 2px solid #333;
    display: inline-block;
    padding-bottom: 5px;
}

.features-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.feature-card {
    background: #121212;
    padding: 30px;
    border-radius: 8px;
    max-width: 300px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    transition: border-color 0.3s;
}

.feature-card:hover {
    border-color: var(--codm-yellow);
}

.feature-card .icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.feature-card h4 {
    color: var(--codm-yellow);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: #aaa;
    font-size: 0.95rem;
}


/* --- SECTION APPEL À L'ACTION --- */

.join-callout {
    background: #2a2a2a;
    padding: 50px 30px;
    text-align: center;
    margin-top: 40px;
    border-top: 2px solid #444;
}

.join-callout h3 {
    font-family: 'Orbitron', sans-serif;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.join-callout p {
    color: #ccc;
    margin-bottom: 30px;
}

.cta-invert {
    /* Inverse la couleur pour un CTA secondaire */
    background: white;
    color: #121212 !important;
}

/* Media Queries pour le Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 20px;
    }
    .hero-section h2 {
        font-size: 2rem;
    }
    .features-container {
        flex-direction: column;
        gap: 20px;
    }
    .feature-card {
        max-width: 100%;
    }
}
/* Mobile hamburger/menu styles removed per request */

/* Hamburger button (index.html) */
.hamburger-menu {
    background: transparent;
    border: 0;
    color: var(--codm-yellow);
    font-size: 1.8rem;
    cursor: pointer;
    position: absolute;
    right: 40px;
    top: -0px; /* remonté vers le haut */
    line-height: 1;
    padding: 8px;
    border-radius: 6px;
}
.hamburger-menu:focus { outline: 2px solid rgba(255,193,7,0.25); }

/* Panel du menu (petite fenêtre) */
.mobile-hub {
    position: absolute;
    right: 12px;
    top: 46px; /* ajusté pour rester sous le bouton remonté */
    background: #1b1b1b;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    width: 86vw; /* mobile-first: presque full width */
    max-width: 320px;
    transform-origin: top right;
    transform: scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
    z-index: 1200;
}
.mobile-hub.open {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}
.mobile-hub ul { list-style: none; margin: 0; padding: 8px 0; }
.mobile-hub li { padding: 8px 14px; }
.mobile-hub a { color: var(--text-main); text-decoration: none; display: block; font-weight: 600; }
.mobile-hub a:hover { color: var(--codm-yellow); }

/* Backdrop to catch outside clicks */
.mobile-hub-backdrop {
    position: fixed;
    inset: 0; /* top/right/bottom/left:0 */
    background: rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms;
    z-index: 1100;
}
.mobile-hub-backdrop.visible { opacity: 1; visibility: visible; }

/* Desktop tweaks: make hamburger smaller and panel narrower */
@media (min-width: 900px) {
    .hamburger-menu { font-size: 1.4rem; top: 12px; right: 22px; }
    .mobile-hub { top: 52px; width: 260px; }
}