/* ============================================
   SECTIONS.CSS - Sections spécifiques
   ============================================ */

/* === Live Section === */
.live-container {
    background: rgba(145, 70, 255, 0.1);
    border: 2px solid rgba(145, 70, 255, 0.3);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: background 0.5s ease, border-color 0.5s ease;
}

/* État online */
.live-container.is-live {
    background: rgba(145, 70, 255, 0.1);
    border-color: rgba(145, 70, 255, 0.4);
}

/* État offline (désaturé + doux) */
.live-container.is-offline {
    background: rgba(80, 80, 80, 0.08);
    border-color: rgba(90, 90, 90, 0.25);
}

/* === Live Indicator === */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid var(--live-red);
    padding: 15px 30px;
    border-radius: var(--radius-full);
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 30px;
    color: #fff;
    transition: all 0.4s ease;
}

/* Dot clignotant pour le live */
.live-dot {
    width: 15px;
    height: 15px;
    background: var(--live-red);
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

/* Animation online */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* --- État offline --- */
.live-indicator.offline {
    background: rgba(150, 150, 150, 0.15);
    border-color: rgba(180, 180, 180, 0.3);
    color: #bbb;
}

.live-indicator.offline .live-dot {
    background: linear-gradient(145deg, #555, #777);
    box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.45);
    animation: none;
}

.twitch-wrap {
    border-radius: 20px;
    overflow: hidden;
}

.stream-placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, rgba(145, 70, 255, 0.2), rgba(119, 44, 232, 0.2));
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(145, 70, 255, 0.4);
}

.stream-placeholder-icon {
    font-size: 5em;
    margin-bottom: 20px;
}

.stream-placeholder-text {
    font-size: 1.8em;
    color: var(--text-secondary);
}

.stream-subtext {
    font-size: 1.2em;
    color: var(--text-muted);
    margin-top: 20px;
}

/* === Countdown Banner === */
.next-stream-banner {
    text-align: center;
    margin-bottom: 30px;
    padding: 32px 28px;
    border-radius: 24px;
    background: rgba(140, 191, 159, 0.08);
    border: 2px solid rgba(140, 191, 159, 0.25);
    backdrop-filter: blur(16px);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.next-stream-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    animation: shimmer 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10%, 10%); }
}

.next-stream-banner.is-live {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(214, 78, 78, 0.65);
    box-shadow: 0 4px 24px rgba(214, 78, 78, 0.18);
    animation: pulseLive 2.5s ease-in-out infinite;
}

@keyframes pulseLive {
    0%, 100% {
        box-shadow: 0 4px 24px rgba(214, 78, 78, 0.18);
        border-color: rgba(214, 78, 78, 0.65);
    }
    50% {
        box-shadow: 0 4px 32px rgba(214, 78, 78, 0.28);
        border-color: rgba(214, 78, 78, 0.85);
    }
}

.countdown-label {
    font-size: 1.45em;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--blue);
    transition: all var(--transition-base);
    /*text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);*/
    letter-spacing: 0.5px;
}

.next-stream-banner.is-live .countdown-label {
    color: #c42b2b;
    text-shadow: none;
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 2px 10px rgba(255, 155, 155, 0.6), 0 0 20px rgba(230, 103, 103, 0.3);
    }
    50% {
        text-shadow: 0 2px 12px rgba(255, 155, 155, 0.8), 0 0 30px rgba(230, 103, 103, 0.5);
    }
}

.countdown-time {
    font-weight: 700;
    color: var(--text-tertiary);
    margin-bottom: 18px;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}

.countdown-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 16px 42px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.15em;
    text-decoration: none;
    transition: all var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-sm);
}

.countdown-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.countdown-cta:hover::before {
    width: 300px;
    height: 300px;
}

.countdown-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-full);
    opacity: 0;
    transition: opacity var(--transition-base);
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: shimmerCTA 3s ease infinite;
}

@keyframes shimmerCTA {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

.countdown-cta:hover::after {
    opacity: 1;
}

.countdown-cta.live {
    background: linear-gradient(135deg, var(--live-red-dark), var(--live-red-pastel));
    color: #fff;
    box-shadow: 0 8px 30px rgba(230, 103, 103, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-cta.live:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(230, 103, 103, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.countdown-cta.live:active {
    transform: translateY(-2px) scale(1.01);
}

/*.countdown-cta.live::before {*/
/*    content: '●';*/
/*    font-size: 0.8em;*/
/*    color: #fff;*/
/*    animation: blink 1.5s ease-in-out infinite;*/
/*}*/

.countdown-cta.upcoming {
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: #fff;
    box-shadow: 0 8px 30px rgba(127, 184, 147, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.countdown-cta.upcoming:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(127, 184, 147, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, var(--green), var(--blue));
}

.countdown-cta.upcoming:active {
    transform: translateY(-2px) scale(1.01);
}

/* === Socials Section === */
.socials-container {
    background: rgba(140, 191, 159, 0.05);
    border: 2px solid rgba(140, 191, 159, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    backdrop-filter: blur(20px);
}

.socials-content {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 50px;
    align-items: start;
}

.socials-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.socials-right {
    position: sticky;
    top: 120px;
}

.discord-widget-container {
    background: rgba(88, 101, 242, 0.1);
    border: 2px solid rgba(88, 101, 242, 0.3);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: all var(--transition-base);
}

.discord-widget-container:hover {
    border-color: rgba(88, 101, 242, 0.5);
    box-shadow: 0 20px 60px rgba(88, 101, 242, 0.3);
}

.discord-widget-title {
    font-size: 1.8em;
    font-weight: 700;
    color: #5865f2;
    margin-bottom: 10px;
}

.discord-widget-desc {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

.discord-widget-wrap {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.discord-widget-wrap iframe {
    display: block;
    width: 100%;
    border: none;
    border-radius: 15px;
}

.discord-join-btn {
    display: inline-block;
    margin-top: 20px;
    background: linear-gradient(135deg, #5865f2, #4752c4);
    color: white;
    text-decoration: none;
    font-weight: 700;
    padding: 14px 35px;
    border-radius: var(--radius-full);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}

.discord-join-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(88, 101, 242, 0.5);
}

/* ============================================
   PAGE HERO - En-tête des pages internes
   ============================================ */
.page-hero {
    padding: 140px var(--spacing-md) 48px;
    text-align: center;
}

.page-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.page-hero-badge {
    display: inline-block;
    background: rgba(127, 184, 147, 0.15);
    border: 1.5px solid rgba(127, 184, 147, 0.35);
    color: var(--green);
    padding: 8px 22px;
    border-radius: var(--radius-full);
    font-size: 0.9em;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.page-hero-title {
    font-size: 3.5em;
    font-weight: 800;
    background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 20px;
}

.page-hero-subtitle {
    font-size: 1.2em;
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px var(--spacing-sm) 60px;
    }

    .page-hero-title {
        font-size: 2.4em;
    }
}

/* ============================================
   EVENTS ARCHIVE — Portfolio page /events
   ============================================ */

/* --- Grille des cartes d'aperçu --- */
.events-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.event-archive-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 40px 36px;
    border-radius: var(--radius-xl);
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    backdrop-filter: blur(16px);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

/* Thème automne (Baguettectober) */
.event-archive-card.theme-autumn {
    background: linear-gradient(135deg, rgba(242, 193, 107, 0.10), rgba(197, 106, 82, 0.07));
    border-color: rgba(197, 106, 82, 0.22);
}
.event-archive-card.theme-autumn:hover {
    border-color: rgba(197, 106, 82, 0.45);
    background: linear-gradient(135deg, rgba(242, 193, 107, 0.16), rgba(197, 106, 82, 0.11));
}

/* Thème jeu (DTI Heartopia) */
.event-archive-card.theme-game {
    background: linear-gradient(135deg, rgba(162, 89, 255, 0.10), rgba(218, 100, 220, 0.07));
    border-color: rgba(162, 89, 255, 0.22);
}
.event-archive-card.theme-game:hover {
    border-color: rgba(162, 89, 255, 0.45);
    background: linear-gradient(135deg, rgba(162, 89, 255, 0.16), rgba(218, 100, 220, 0.11));
}

.event-archive-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Badges meta (type + statut) */
.event-archive-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.event-type-badge {
    font-size: 0.78em;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.event-status-badge {
    font-size: 0.78em;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.event-status-badge.passe {
    background: rgba(150, 150, 150, 0.15);
    border: 1px solid rgba(150, 150, 150, 0.25);
    color: var(--text-muted);
}

.event-status-badge.a-venir {
    background: rgba(127, 184, 147, 0.18);
    border: 1px solid rgba(127, 184, 147, 0.35);
    color: var(--green);
}

/* Icône centrale */
.event-archive-icon {
    font-size: 2.8em;
    line-height: 1;
}

/* Titre et date */
.event-archive-title {
    font-size: 1.6em;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.event-archive-date {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0;
    letter-spacing: 0.3px;
}

.event-archive-desc {
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 4px 0 0;
    flex: 1;
}

.event-archive-cta {
    font-size: 0.95em;
    font-weight: 700;
    margin-top: 8px;
    color: var(--pink);
    transition: letter-spacing var(--transition-fast);
}

.event-archive-card:hover .event-archive-cta {
    letter-spacing: 0.4px;
}

@media (max-width: 640px) {
    .events-archive-grid {
        grid-template-columns: 1fr;
    }
    .event-archive-card {
        padding: 28px 24px;
    }
    .event-archive-title {
        font-size: 1.35em;
    }
}
