/* ============================================
   COMPONENTS.CSS - Buttons, Cards, Stats
   ============================================ */

/* === Buttons === */
.btn {
    padding: 18px 45px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2em;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: white;
    box-shadow: 0 10px 40px rgba(127, 184, 147, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 50px rgba(127, 184, 147, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(-3px) scale(1.01);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.55);
    border: 2px solid rgba(127, 184, 147, 0.35);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(127, 184, 147, 0.6);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 35px rgba(127, 184, 147, 0.2);
}

.btn-secondary:active {
    transform: translateY(-3px) scale(1.01);
}

/* === Stat Boxes === */
.stat-box {
    background: rgba(140, 191, 159, 0.1);
    border: 2px solid rgba(140, 191, 159, 0.3);
    border-radius: var(--radius-md);
    padding: 20px 30px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease backwards;
}

.stat-box:nth-child(1) { animation-delay: 0.1s; }
.stat-box:nth-child(2) { animation-delay: 0.2s; }
.stat-box:nth-child(3) { animation-delay: 0.3s; }

.stat-number {
    font-size: 2.5em;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1em;
    color: var(--text-tertiary);
    margin-top: 5px;
}

/* === Schedule Cards === */
.schedule-container {
    background: rgba(140, 191, 159, 0.08);
    border: 2px solid rgba(140, 191, 159, 0.22);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    backdrop-filter: blur(20px);
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.schedule-item {
    background: rgba(255, 255, 255, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 28px;
    padding: 38px;
    text-align: center;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(63, 47, 37, 0.06);
}

.schedule-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 28px 28px 0 0;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.schedule-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.schedule-item:hover {
    background: rgba(255, 255, 255, 0.88);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(63, 47, 37, 0.11);
    border-color: rgba(127, 184, 147, 0.38);
}

.schedule-item:hover::before {
    opacity: 1;
}

.schedule-item.is-live {
    border-color: rgba(230, 103, 103, 0.8);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 15px 40px rgba(230, 103, 103, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    animation: cardPulse 2.5s ease-in-out infinite;
}

.schedule-item.is-live::before {
    background: linear-gradient(90deg, var(--live-red-dark), var(--live-red-pastel));
    opacity: 1;
    height: 5px;
    animation: slideIn 0.6s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes cardPulse {
    0%, 100% {
        box-shadow: 0 15px 40px rgba(230, 103, 103, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
        border-color: rgba(230, 103, 103, 0.8);
    }
    50% {
        box-shadow: 0 20px 50px rgba(230, 103, 103, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.45);
        border-color: rgba(230, 103, 103, 1);
    }
}

.schedule-item.is-next {
    background: rgba(127, 184, 147, 0.14);
    border-color: rgba(92, 147, 111, 0.55);
    box-shadow: 0 8px 30px rgba(127, 184, 147, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.schedule-item.is-next .schedule-day {
    background: linear-gradient(135deg, #3d7a56, var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.schedule-item.is-next::before {
    opacity: 1;
    background: linear-gradient(90deg, #5c936f, var(--blue));
    animation: slideIn 0.6s ease;
}

.schedule-day {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--blue), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.schedule-time {
    font-size: 1.5em;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.schedule-game {
    font-size: 1.1em;
    color: var(--text-muted);
    font-style: italic;
}

.schedule-countdown {
    margin-top: 16px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 10px 18px;
    background: rgba(63, 47, 37, 0.07);
    border-radius: 14px;
    display: inline-block;
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(63, 47, 37, 0.10);
    transition: all var(--transition-base);
    font-variant-numeric: tabular-nums;
}

.schedule-item:hover .schedule-countdown {
    background: rgba(127, 184, 147, 0.12);
    border-color: rgba(127, 184, 147, 0.30);
    color: var(--text-primary);
}

.schedule-item.is-live .schedule-countdown {
    color: white;
    background: linear-gradient(135deg, var(--live-red-dark), var(--live-red-pastel));
    border-color: rgba(230, 103, 103, 0.4);
    font-weight: 700;
    box-shadow: 0 0 15px rgba(230, 103, 103, 0.3);
}

.schedule-item.is-next .schedule-countdown {
    color: #5c936f;
    background: rgba(127, 184, 147, 0.15);
    border-color: rgba(127, 184, 147, 0.35);
    font-weight: 700;
}

/* === Social Cards === */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.social-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease backwards;
}

.social-card:nth-child(1) { animation-delay: 0.05s; }
.social-card:nth-child(2) { animation-delay: 0.1s; }
.social-card:nth-child(3) { animation-delay: 0.15s; }
.social-card:nth-child(4) { animation-delay: 0.2s; }
.social-card:nth-child(5) { animation-delay: 0.25s; }

.social-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.social-card:hover::before {
    width: 300%;
    height: 300%;
}

.social-card:hover {
    /* Le transform est géré par chaque variante plateforme */
}

.social-icon {
    font-size: 4em;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.social-name {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.social-desc {
    font-size: 1.1em;
    color: var(--text-tertiary);
    position: relative;
    z-index: 1;
}

/* Social card variants — fond teinté + bordure couleur plateforme */
.social-card.twitch {
    background: rgba(145, 70, 255, 0.08);
    border-color: rgba(145, 70, 255, 0.25);
}
.social-card.twitch:hover {
    background: rgba(145, 70, 255, 0.14);
    border-color: rgba(145, 70, 255, 0.5);
    box-shadow: 0 14px 40px rgba(145, 70, 255, 0.14);
    transform: translateY(-10px) scale(1.03);
}
.social-card.twitch .social-name { color: #7b3dd8; }

.social-card.youtube {
    background: rgba(210, 40, 40, 0.07);
    border-color: rgba(210, 40, 40, 0.22);
}
.social-card.youtube:hover {
    background: rgba(210, 40, 40, 0.12);
    border-color: rgba(210, 40, 40, 0.48);
    box-shadow: 0 14px 40px rgba(210, 40, 40, 0.12);
    transform: translateY(-10px) scale(1.03);
}
.social-card.youtube .social-name { color: #c42b2b; }

.social-card.tiktok {
    background: rgba(0, 165, 160, 0.07);
    border-color: rgba(0, 165, 160, 0.22);
}
.social-card.tiktok:hover {
    background: rgba(0, 165, 160, 0.13);
    border-color: rgba(0, 165, 160, 0.48);
    box-shadow: 0 14px 40px rgba(0, 165, 160, 0.12);
    transform: translateY(-10px) scale(1.03);
}
.social-card.tiktok .social-name { color: #008c87; }

.social-card.instagram {
    background: rgba(193, 53, 132, 0.07);
    border-color: rgba(193, 53, 132, 0.22);
}
.social-card.instagram:hover {
    background: rgba(193, 53, 132, 0.13);
    border-color: rgba(193, 53, 132, 0.48);
    box-shadow: 0 14px 40px rgba(193, 53, 132, 0.12);
    transform: translateY(-10px) scale(1.03);
}
.social-card.instagram .social-name { color: #b02860; }

.social-card.discord {
    display: none;
}
.social-card.discord {
    background: rgba(88, 101, 242, 0.1);
    border-color: rgba(88, 101, 242, 0.3);
}
.social-card.discord:hover {
    background: rgba(88, 101, 242, 0.1);
    border-color: rgba(88, 101, 242, 0.5);
    box-shadow: 0 20px 60px rgba(88, 101, 242, 0.3);
    transform: translateY(-10px) scale(1.03);
}
.social-card.discord .social-name { color: #5865f2; }

.social-card.twitter {
    background: rgba(26, 140, 216, 0.07);
    border-color: rgba(26, 140, 216, 0.22);
}
.social-card.twitter:hover {
    background: rgba(26, 140, 216, 0.13);
    border-color: rgba(26, 140, 216, 0.48);
    box-shadow: 0 14px 40px rgba(26, 140, 216, 0.12);
    transform: translateY(-10px) scale(1.03);
}
.social-card.twitter .social-name { color: #1479b8; }

/* === Contact Cards === */
.contact-container {
    background: rgba(140, 191, 159, 0.08);
    border: 2px solid rgba(140, 191, 159, 0.22);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    backdrop-filter: blur(20px);
}

.contact-content {
    display: grid;
    gap: 40px;
}

.contact-info-box {
    background: rgba(255, 255, 255, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-lg);
    padding: 50px;
    text-align: center;
    transition: all var(--transition-base);
}

.contact-info-box:hover {
    transform: translateY(-5px);
    border-color: var(--blue);
    box-shadow: 0 20px 60px rgba(140, 191, 159, 0.3);
}

.contact-icon {
    font-size: 5em;
    margin-bottom: 20px;
}

.contact-title {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--blue), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-email {
    display: inline-block;
    font-size: 1.5em;
    font-weight: 700;
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, var(--blue), var(--green));
    padding: 15px 40px;
    border-radius: var(--radius-full);
    margin: 20px 0;
    transition: all var(--transition-base);
    box-shadow: 0 10px 30px rgba(127, 184, 147, 0.3);
    word-break: break-word;
    max-width: 100%;
}

.contact-email:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(127, 184, 147, 0.5);
}

.contact-text {
    font-size: 1.2em;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.contact-mediakit {
    font-size: 0.92em;
    color: var(--text-muted);
    text-align: center;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    border: 1px dashed rgba(63, 47, 37, 0.18);
    width: fit-content;
    margin: -16px auto 0;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.55);
    border: 2px solid rgba(63, 47, 37, 0.09);
    border-radius: 25px;
    padding: 35px 25px;
    text-align: center;
    transition: all var(--transition-smooth);
    box-shadow: 0 2px 12px rgba(63, 47, 37, 0.06);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(197, 106, 82, 0.32);
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(63, 47, 37, 0.10);
}

.contact-card-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.contact-card-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.contact-card-text {
    font-size: 1.1em;
    color: var(--text-tertiary);
    line-height: 1.6;
}


/* === Back to top button === */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: var(--bg-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
    z-index: calc(var(--z-nav) - 1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}