* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Protection des images */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

.avatar {
    pointer-events: auto;
}

:root {
    --primary: #e91e8a;
    --secondary: #00f0ff;
    --accent: #a855f7;
    --dark: #0a0014;
    --twitch: #9146ff;
    --youtube: #ff0000;
    --discord: #5865f2;
    --instagram: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    --tiktok: linear-gradient(135deg, #00f2ea, #ff0050);
    --x: #000000;
    --event: linear-gradient(135deg, #ffd700, #ff8c00);
}

html, body {
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark);
    color: white;
}

/* Background */
.background {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    filter: blur(20px);
    transform: scale(1.1);
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 0, 20, 0.4) 0%, rgba(45, 20, 80, 0.3) 100%);
}

/* Mail Button */
.mail-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(233, 30, 138, 0.4);
    transition: all 0.3s ease;
}

.mail-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(233, 30, 138, 0.6);
}

/* Game Button */
.game-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
    transition: all 0.3s ease;
}

.game-btn:hover {
    transform: translateY(-2px) rotate(10deg);
    box-shadow: 0 6px 30px rgba(168, 85, 247, 0.6);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: linear-gradient(180deg, #e8f4fc 0%, #d4e8f5 100%);
    border-radius: 24px;
    padding: 40px 50px;
    text-align: center;
    position: relative;
    max-width: 420px;
    width: 90%;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.modal h3 {
    color: #1e40af;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.modal-email-box {
    background: white;
    border-radius: 16px;
    padding: 20px 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.modal-label {
    display: block;
    font-size: 0.75rem;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.modal-email {
    display: block;
    font-size: 1.1rem;
    color: #1d4ed8;
    font-weight: 600;
}

.modal-copy-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 16px 50px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.modal-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.5);
}

.modal-copy-btn:active {
    transform: scale(0.98);
}

/* News Banner */
.news-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.2));
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 16px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    animation: newsPulse 2s ease-in-out infinite;
}

@keyframes newsPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.5); }
}

.news-banner:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 140, 0, 0.3));
}

.news-badge {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.news-sub {
    font-size: 0.9rem;
    opacity: 0.8;
}

.news-arrow {
    font-size: 1.5rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.news-banner:hover .news-arrow {
    transform: translateX(5px);
    opacity: 1;
}

/* Main Container */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    padding: 30px;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Content Section */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding-top: 60px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Grids */
.grid-main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.grid-small {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.grid-projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* Cards */
.card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2rem;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-info {
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.card-name {
    font-weight: 700;
    font-size: 1.1rem;
    z-index: 1;
}

.card-sub {
    font-size: 0.8rem;
    opacity: 0.8;
    z-index: 1;
}

/* Card Large */
.card-large {
    padding: 30px;
}

.card-large .card-icon {
    font-size: 2.5rem;
}

.card-large .card-name {
    font-size: 1.4rem;
}

/* Card colors */
.card.twitch {
    background: linear-gradient(135deg, rgba(145, 70, 255, 0.8), rgba(145, 70, 255, 0.4));
    border-color: var(--twitch);
}

.card.twitch:hover {
    box-shadow: 0 10px 40px rgba(145, 70, 255, 0.5);
}

.card.youtube {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.8), rgba(255, 50, 50, 0.4));
    border-color: var(--youtube);
}

.card.youtube:hover {
    box-shadow: 0 10px 40px rgba(255, 0, 0, 0.4);
}

.card.x {
    background: linear-gradient(135deg, #1a1a1a, #333);
    border-color: #444;
}

.card.x:hover {
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2);
}

.card.instagram {
    background: linear-gradient(45deg, rgba(240, 148, 51, 0.8), rgba(220, 39, 67, 0.8), rgba(188, 24, 136, 0.8));
    border-color: #e1306c;
}

.card.instagram:hover {
    box-shadow: 0 10px 40px rgba(225, 48, 108, 0.5);
}

.card.tiktok {
    background: linear-gradient(135deg, rgba(0, 242, 234, 0.6), rgba(255, 0, 80, 0.6));
    border-color: #00f2ea;
}

.card.tiktok:hover {
    box-shadow: 0 10px 40px rgba(0, 242, 234, 0.4);
}

.card.discord {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.8), rgba(88, 101, 242, 0.4));
    border-color: var(--discord);
}

.card.discord:hover {
    box-shadow: 0 10px 40px rgba(88, 101, 242, 0.5);
}

/* Project cards */
.card-project {
    background: rgba(255, 255, 255, 0.05);
}

.card.event {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.7), rgba(255, 140, 0, 0.5));
    border-color: #ffd700;
    animation: eventGlow 2s ease-in-out infinite;
}

@keyframes eventGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.6); }
}

.card.vod {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.5), rgba(200, 0, 0, 0.3));
    border-color: #cc0000;
}

.card.threads {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(200, 200, 200, 0.1));
    border-color: rgba(255, 255, 255, 0.3);
}

.card.discogs {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.5), rgba(168, 85, 247, 0.3));
    border-color: var(--secondary);
}

/* Grid small cards */
.grid-small .card {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px;
    gap: 8px;
}

.grid-small .card-name {
    font-size: 0.9rem;
}

/* Avatar Section */
.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    min-width: 300px;
}

.avatar {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    border: 4px solid var(--primary);
    box-shadow: 
        0 0 40px rgba(233, 30, 138, 0.5),
        0 0 80px rgba(0, 240, 255, 0.2);
    margin-bottom: 25px;
    animation: avatarFloat 4s ease-in-out infinite;
}

@keyframes avatarFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.avatar-section h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 20px rgba(233, 30, 138, 0.5);
}

.tagline {
    font-size: 1rem;
    color: var(--secondary);
    text-shadow: 0 0 20px var(--secondary);
}

.credit-link {
    margin-top: 20px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.credit-link:hover {
    background: rgba(233, 30, 138, 0.2);
    border-color: var(--primary);
    color: white;
    transform: scale(1.05);
}

.credit-link i {
    color: var(--primary);
}

/* Today Section */
.today-section {
    margin-top: 25px;
    width: 100%;
}

.today-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--secondary);
}

#today-events {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-card {
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-2px) scale(1.02);
}

.event-twitch {
    background: linear-gradient(135deg, rgba(145, 70, 255, 0.3), rgba(145, 70, 255, 0.1));
    border: 1px solid rgba(145, 70, 255, 0.5);
}

.event-twitch.is-live {
    background: linear-gradient(135deg, rgba(145, 70, 255, 0.5), rgba(145, 70, 255, 0.3));
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 15px rgba(145, 70, 255, 0.4); }
    50% { box-shadow: 0 0 25px rgba(145, 70, 255, 0.7); }
}

.event-youtube {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.3), rgba(255, 0, 0, 0.1));
    border: 1px solid rgba(255, 0, 0, 0.5);
}

.event-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.event-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.no-event {
    text-align: center;
    padding: 15px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 1100px) {
    .container {
        flex-direction: column-reverse;
        padding: 20px;
        gap: 30px;
    }
    
    .avatar-section {
        flex-direction: row;
        min-width: auto;
        padding: 20px;
        gap: 20px;
        padding-top: 60px;
    }
    
    .avatar {
        width: 100px;
        height: 100px;
        margin-bottom: 0;
    }
    
    .avatar-section h1 {
        font-size: 1.4rem;
    }
    
    .content {
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    .grid-main {
        grid-template-columns: 1fr;
    }
    
    .grid-small {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-projects {
        grid-template-columns: 1fr;
    }
    
    .card-large {
        padding: 20px;
    }
    
    .mail-btn {
        padding: 10px 18px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
        gap: 15px;
    }
    
    .avatar-section {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        padding-top: 50px;
        gap: 10px;
    }
    
    .avatar {
        width: 70px;
        height: 70px;
        margin-bottom: 5px;
    }

    .avatar-section h1 {
        font-size: 1.3rem;
        margin-bottom: 2px;
    }

    .tagline {
        font-size: 0.85rem;
    }

    .credit-link {
        margin-top: 10px;
        padding: 8px 15px;
        font-size: 0.75rem;
    }

    .today-section {
        margin-top: 15px;
    }

    .today-label {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .event-card {
        padding: 10px 12px;
    }

    .event-name {
        font-size: 0.8rem;
    }

    .news-banner {
        padding: 12px 15px;
        gap: 12px;
    }

    .news-badge {
        padding: 6px 10px;
        font-size: 0.65rem;
    }

    .news-title {
        font-size: 1rem;
    }

    .news-sub {
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.1rem;
        margin-top: 5px;
    }
    
    .card {
        padding: 12px;
        gap: 10px;
    }
    
    .card-large .card-icon {
        font-size: 1.8rem;
    }
    
    .card-large .card-name {
        font-size: 1rem;
    }

    .card-large .card-sub {
        font-size: 0.7rem;
    }

    .grid-main, .grid-projects {
        gap: 10px;
    }

    .grid-small {
        gap: 8px;
    }

    .mail-btn {
        top: 10px;
        right: 10px;
        padding: 8px 14px;
        font-size: 0.75rem;
    }
}
