/**
 * Mega Footer CSS - Memecoins Academy
 * Style accrocheur inspiré de landing_portal et buy.php
 */

/* Force l'affichage complet du footer */
body, html {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

main, .container, .section {
    overflow: visible !important;
}

/* Footer principal */
.mega-footer {
    background: linear-gradient(135deg, rgba(10,12,18,.98), rgba(15,22,38,.95));
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 40px 0 30px;
    margin-top: 60px;
    position: relative;
    overflow: visible !important;
    width: 100% !important;
    clear: both !important;
    display: block !important;
    min-height: auto !important;
    max-height: none !important;
}

/* Background avec effets néon */
.mega-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0,229,168,.5), rgba(108,168,255,.5), transparent);
    opacity: 0.6;
}

.mega-footer-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    overflow: visible !important;
    width: 100%;
    box-sizing: border-box;
}

/* Introduction centrée accrocheuse - ULTRA IMPACTANTE */
.mega-footer-intro {
    text-align: center;
    margin-bottom: 28px;
    padding: 0 20px;
}

.mega-footer-title {
    color: #39ff88;
    font-size: clamp(18px, 3.5vw, 22px);
    font-weight: 900;
    margin: 0 0 16px;
    text-shadow: 0 0 10px rgba(57,255,136,.5);
    line-height: 1.3;
}

.mega-footer-title--animated {
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(57,255,136,.5), 0 0 20px rgba(57,255,136,.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(57,255,136,.8), 0 0 30px rgba(0,229,168,.5), 0 0 40px rgba(57,255,136,.3);
    }
}

.mega-footer-cta {
    max-width: 100%;
    margin: 0 auto;
    padding: 18px 22px;
    background: linear-gradient(135deg, rgba(57,255,136,.1), rgba(0,229,168,.06));
    border: 2px solid rgba(57,255,136,.4);
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(57,255,136,.2);
    position: relative;
    overflow: hidden;
}

.mega-footer-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(57,255,136,.1) 0%, transparent 70%);
    animation: rotateGlow 8s linear infinite;
    pointer-events: none;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mega-footer-cta--glow {
    animation: ctaPulse 4s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(57,255,136,.2), 0 0 0 rgba(57,255,136,.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(57,255,136,.35), 0 0 20px rgba(57,255,136,.3);
    }
}

/* Message d'urgence */
.mega-footer-urgent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(255,89,120,.15), rgba(255,89,120,.08));
    border: 2px solid rgba(255,89,120,.4);
    border-radius: 10px;
    margin-bottom: 14px;
    animation: urgentPulse 2.5s ease-in-out infinite;
}

@keyframes urgentPulse {
    0%, 100% {
        border-color: rgba(255,89,120,.4);
        box-shadow: 0 0 0 rgba(255,89,120,.3);
    }
    50% {
        border-color: rgba(255,89,120,.6);
        box-shadow: 0 0 15px rgba(255,89,120,.4);
    }
}

.mega-footer-urgent-icon {
    font-size: 20px;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.mega-footer-urgent-text {
    color: #ff5978;
    font-size: clamp(12px, 1.8vw, 14px);
    font-weight: 700;
}

/* 2 Colonnes - Gauche/Droite */
.mega-footer-two-cols {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
    width: 100% !important;
}

/* Vérité brutale - Colonne gauche */
.mega-footer-truth {
    padding: 12px 14px;
    background: rgba(15,22,38,.7);
    border-radius: 10px;
    border-left: 4px solid #ff5978;
    animation: slideInLeft 0.8s ease-out;
    width: 100% !important;
    box-sizing: border-box !important;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Niche unique - Colonne droite */
.mega-footer-unique {
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(181,140,255,.12), rgba(108,168,255,.08));
    border: 2px solid rgba(181,140,255,.3);
    border-radius: 10px;
    animation: slideInRight 0.8s ease-out 0.2s both;
    width: 100% !important;
    box-sizing: border-box !important;
}

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

.mega-footer-text {
    color: #bfeeda;
    font-size: clamp(12px, 1.8vw, 13px);
    line-height: 1.5;
    margin: 6px 0 0;
}

.mega-footer-text strong {
    color: #39ff88;
    font-weight: 700;
}

.mega-footer-text em {
    color: rgba(191,238,218,.75);
    font-style: italic;
}

/* CTA Final - Système Communautaire */
.mega-footer-final-cta {
    text-align: center;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(0,229,168,.15), rgba(57,255,136,.1));
    border: 2px solid rgba(0,229,168,.4);
    border-radius: 12px;
    margin-top: 16px;
    animation: finalCtaGlow 3s ease-in-out infinite;
}

@keyframes finalCtaGlow {
    0%, 100% {
        border-color: rgba(0,229,168,.4);
        box-shadow: 0 0 0 rgba(0,229,168,.3);
    }
    50% {
        border-color: rgba(0,229,168,.6);
        box-shadow: 0 0 20px rgba(0,229,168,.4);
    }
}

.mega-footer-community-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mega-footer-community-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.mega-footer-community-features span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(15,22,38,.6);
    border-radius: 8px;
    border: 1px solid rgba(108,168,255,.3);
    transition: all 0.3s ease;
}

.mega-footer-community-features span:hover {
    background: rgba(15,22,38,.8);
    border-color: rgba(108,168,255,.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108,168,255,.2);
}

.mega-footer-community-features span i {
    font-size: 14px;
    margin-right: 4px;
}

/* Stats compactes - 4 boîtes */
.mega-footer-stats-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.08);
    max-width: 100%;
}

@media (max-width: 968px) {
    .mega-footer-stats-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.mega-footer-stat-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
    animation: statPulse 2.5s ease-in-out infinite;
}

.mega-footer-stat-compact--goal {
    background: linear-gradient(135deg, rgba(255,215,0,.15), rgba(255,215,0,.08));
    border: 2px solid rgba(255,215,0,.5);
    box-shadow: 0 4px 15px rgba(255,215,0,.2);
}

.mega-footer-stat-compact--goal strong {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255,215,0,.6);
}

.mega-footer-stat-compact--explosive {
    background: linear-gradient(135deg, rgba(57,255,136,.15), rgba(57,255,136,.08));
    border: 2px solid rgba(57,255,136,.5);
    box-shadow: 0 4px 15px rgba(57,255,136,.2);
    animation-delay: 0.3s;
}

.mega-footer-stat-compact--explosive strong {
    color: #39ff88;
    text-shadow: 0 0 10px rgba(57,255,136,.6);
}

.mega-footer-stat-compact--investment {
    background: linear-gradient(135deg, rgba(108,168,255,.15), rgba(108,168,255,.08));
    border: 2px solid rgba(108,168,255,.5);
    box-shadow: 0 4px 15px rgba(108,168,255,.2);
    animation-delay: 0.6s;
}

.mega-footer-stat-compact--investment strong {
    color: #6ca8ff;
    text-shadow: 0 0 10px rgba(108,168,255,.6);
}

.mega-footer-stat-compact--speed {
    background: linear-gradient(135deg, rgba(255,89,120,.15), rgba(255,89,120,.08));
    border: 2px solid rgba(255,89,120,.5);
    box-shadow: 0 4px 15px rgba(255,89,120,.2);
    animation-delay: 0.9s;
}

.mega-footer-stat-compact--speed strong {
    color: #ff5978;
    text-shadow: 0 0 10px rgba(255,89,120,.6);
}

.mega-footer-stat-compact:hover {
    transform: translateY(-2px);
}

.mega-footer-stat-compact--goal:hover {
    box-shadow: 0 6px 20px rgba(255,215,0,.4);
}

.mega-footer-stat-compact--explosive:hover {
    box-shadow: 0 6px 20px rgba(57,255,136,.4);
}

.mega-footer-stat-compact--investment:hover {
    box-shadow: 0 6px 20px rgba(108,168,255,.4);
}

.mega-footer-stat-compact--speed:hover {
    box-shadow: 0 6px 20px rgba(255,89,120,.4);
}

.mega-footer-stat-compact strong {
    font-size: clamp(13px, 2vw, 14px);
    font-weight: 900;
}

.mega-footer-stat-compact span {
    font-size: clamp(10px, 1.5vw, 11px);
    color: #9fb2cd;
}

/* Stats blocks - ancien (supprimé) */
.mega-footer-stats {
    display: none;
}

.mega-footer-stat {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(108,168,255,.1);
    border-radius: 10px;
    border-left: 3px solid #6ca8ff;
    transition: all 0.3s ease;
}

.mega-footer-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108,168,255,.3);
}

.mega-footer-stat--pulse {
    animation: statPulse 2.5s ease-in-out infinite;
}

@keyframes statPulse {
    0%, 100% {
        border-color: #6ca8ff;
        box-shadow: 0 0 0 rgba(108,168,255,.2);
    }
    50% {
        border-color: #6ca8ff;
        box-shadow: 0 0 12px rgba(108,168,255,.4);
    }
}

.mega-footer-stat-icon {
    font-size: 20px;
    line-height: 1;
}

.mega-footer-stat-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mega-footer-stat-text strong {
    color: #6ca8ff;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.3;
}

.mega-footer-stat-text span {
    color: rgba(159,178,205,.8);
    font-size: 11px;
    line-height: 1.3;
}

/* Grid 3 colonnes */
.mega-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-bottom: 35px;
}

/* Colonnes */
.mega-footer-col {
    display: flex;
    flex-direction: column;
}

.mega-footer-col-title {
    color: #00e5a8;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0,229,168,.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mega-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mega-footer-link {
    color: #9fb2cd;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    transition: all 0.3s ease;
    position: relative;
}

.mega-footer-link::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00e5a8, #6ca8ff);
    transition: width 0.3s ease;
    opacity: 0;
}

.mega-footer-link:hover {
    color: #00e5a8;
    transform: translateX(5px);
}

.mega-footer-link:hover::before {
    width: 8px;
    opacity: 1;
}

.mega-footer-link i {
    color: #6ca8ff;
    font-size: 13px;
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.mega-footer-link:hover i {
    color: #00e5a8;
    transform: scale(1.1);
}

/* Footer bottom */
.mega-footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 30px;
}

.mega-footer-copyright {
    color: #9fb2cd;
    font-size: 13px;
    margin: 0;
}

/* Responsive */
@media (max-width: 968px) {
    .mega-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .mega-footer-col:last-child {
        grid-column: 1 / -1;
    }
    
    .mega-footer-stats {
        grid-template-columns: 1fr;
    }
    
    /* Forcer 2 colonnes jusqu'à 640px */
    .mega-footer-two-cols {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .mega-footer {
        padding: 35px 0 25px;
        margin-top: 50px;
    }
    
    .mega-footer-intro {
        margin-bottom: 30px;
        padding: 0;
    }
    
    .mega-footer-title {
        font-size: 18px;
        margin-bottom: 14px;
    }
    
    .mega-footer-cta {
        padding: 16px 18px;
    }
    
    .mega-footer-two-cols {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .mega-footer-text {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .mega-footer-stats-compact {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .mega-footer-stat-compact {
        width: 100%;
    }
    
    .mega-footer-final-cta {
        padding: 14px 16px;
    }
    
    .mega-footer-community-features {
        flex-direction: column;
        gap: 8px;
    }
    
    .mega-footer-community-features span {
        width: 100%;
        justify-content: center;
    }
    
    .mega-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .mega-footer-col:last-child {
        grid-column: 1;
    }
    
    .mega-footer-col-title {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .mega-footer-links {
        gap: 10px;
    }
    
    .mega-footer-link {
        font-size: 13px;
    }
}

