* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 40px 20px;
}

h1 {
    font-size: 4em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 50%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    animation: glow 3s ease-in-out infinite;
    position: relative;
}

h1::after {
    content: 'HYZE';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 50%, rgba(255,255,255,0.4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: shine 3s linear infinite;
    z-index: 1;
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.6));
    }
}

@keyframes shine {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.subtitle {
    font-size: 1.4em;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

.creators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.creator-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.creator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.live-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #9146FF;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(145, 70, 255, 0.4);
    animation: pulse 2s infinite;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(145, 70, 255, 0.4);
    }
    50% {
        box-shadow: 0 2px 12px rgba(145, 70, 255, 0.6);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #667eea 0%, #764ba2 100%) border-box;
    margin-bottom: 15px;
    object-position: top;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3),
                0 0 0 8px rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.avatar::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4), rgba(118, 75, 162, 0.4));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.creator-card:hover .avatar {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5),
                0 0 0 12px rgba(102, 126, 234, 0.15);
}

.creator-card:hover .avatar::after {
    opacity: 1;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    color: white;
    border: 4px solid rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3),
                0 0 0 8px rgba(102, 126, 234, 0.1),
                inset 0 -20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.avatar-placeholder::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.creator-card:hover .avatar-placeholder {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5),
                0 0 0 12px rgba(102, 126, 234, 0.15),
                inset 0 -20px 40px rgba(0, 0, 0, 0.1);
}

.creator-name {
    font-size: 1.8em;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 8px;
    letter-spacing: 0.02em;
}

.creator-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    border-radius: 2px;
}

.creator-description {
    font-size: 1em;
    color: #555;
    text-align: center;
    margin-bottom: 5px;
    margin-top: 20px;
    line-height: 1.6;
    max-width: 100%;
    word-wrap: break-word;
    padding: 12px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 3px solid #667eea;
    font-style: italic;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.creator-description::before {
    content: '"';
    position: absolute;
    top: 5px;
    left: 8px;
    font-size: 2em;
    color: #667eea;
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: scale(1.1);
}

.discord { background: #5865F2; }
.twitch { background: #9146FF; }
.youtube { background: #FF0000; }
.website { background: #34495e; }

.social-link svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.admin-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #2c3e50;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
    z-index: 999;
}

.admin-btn:hover {
    transform: scale(1.1);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
}

/* Onglets */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0;
}

.tab-button {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.tab-button:hover {
    color: #667eea;
    background: #f8f9fa;
}

.tab-button.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Actions principales */
.admin-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #ddd;
    flex-wrap: wrap;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 600;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
    font-family: inherit;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s;
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-edit {
    background: #3498db;
    color: white;
}

.btn-edit:hover {
    background: #2980b9;
}

.creator-list {
    margin-top: 0;
}

.creator-list h3 {
    color: #333;
    margin-bottom: 15px;
}

.creator-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.creator-item-info {
    flex: 1;
}

.creator-item-actions {
    display: flex;
    gap: 10px;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.avatar-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
}

.avatar-option {
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 8px;
    transition: all 0.2s;
    overflow: hidden;
}

.avatar-option:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

.avatar-option.selected {
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.avatar-option img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    .creators-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal-content {
        padding: 20px;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tab-button {
        flex: 1;
        min-width: 100px;
    }

    .admin-actions {
        flex-direction: column;
    }

    .admin-actions .btn {
        width: 100%;
        margin-right: 0;
    }
}

/* Bouton jeu de Noël */
.christmas-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4202a 0%, #a01018 100%);
    color: white;
    border: 1px solid #ffd700;
    font-size: 40px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(212, 32, 42, 0.6),
                0 0 30px rgba(255, 215, 0, 0.4);
    transition: transform 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: christmasGlow 2s ease-in-out infinite;
}

.christmas-btn:hover {
    transform: scale(1.15) rotate(5deg);
    animation: christmasGlowFast 1s ease-in-out infinite;
}

@keyframes christmasGlow {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(212, 32, 42, 0.6),
                    0 0 30px rgba(255, 215, 0, 0.4),
                    inset 0 0 20px rgba(255, 215, 0, 0.1);
    }
    25% {
        box-shadow: 0 5px 30px rgba(212, 32, 42, 0.9),
                    0 0 50px rgba(255, 215, 0, 0.7),
                    inset 0 0 30px rgba(255, 215, 0, 0.2);
    }
    50% {
        box-shadow: 0 5px 40px rgba(212, 32, 42, 1),
                    0 0 70px rgba(255, 215, 0, 1),
                    0 0 100px rgba(255, 215, 0, 0.5),
                    inset 0 0 40px rgba(255, 215, 0, 0.3);
    }
    75% {
        box-shadow: 0 5px 30px rgba(212, 32, 42, 0.9),
                    0 0 50px rgba(255, 215, 0, 0.7),
                    inset 0 0 30px rgba(255, 215, 0, 0.2);
    }
}

@keyframes christmasGlowFast {
    0%, 100% {
        box-shadow: 0 5px 30px rgba(212, 32, 42, 0.9),
                    0 0 50px rgba(255, 215, 0, 0.8);
    }
    50% {
        box-shadow: 0 5px 40px rgba(212, 32, 42, 1),
                    0 0 80px rgba(255, 215, 0, 1),
                    0 0 120px rgba(255, 215, 0, 0.6);
    }
}


@media (max-width: 768px) {
    .christmas-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        left: 20px;
    }
}

/* Flocons qui tombent */
#snow-canvas {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none; /* pour que les clics passent à travers */
  width: 100%;
  height: 100%;
  z-index: 999; /* assez haut pour être au-dessus */
  display: none; /* activé seulement en décembre via JS */
}

.creator-card .snow-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* clics passent à travers */
    z-index: 5; /* au-dessus de l'image/avatar */
}

/* Neige subtile sur les creator-card */
.creator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 12px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    background: linear-gradient(to bottom, white 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    z-index: 2;
}
