* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

#background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    filter: blur(20px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #667eea; /* Fond de secours si l'image ne charge pas */
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* Particules supprimées - on garde seulement les flocons de neige */

#app {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    padding: 40px 20px;
    color: #fff;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #FFD700, #FF6B6B, #DC143C);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: christmas-glow 2s ease-in-out infinite alternate;
}

@keyframes christmas-glow {
    from {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(220, 20, 60, 0.8));
    }
}

.header .organizers {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #FFD700;
}

.header .subtitle {
    font-size: 1rem;
    color: #d97a7a;
}

.main-content {

    border-radius: 20px;
    padding: 40px;
    margin: 30px auto;
}

.form-section h2 {
    color: #fffefe;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFD700;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 5px;
}

.checkbox-group label {
    font-weight: normal;
    font-size: 0.9rem;
}

.checkbox-group a {
    color: #FF6B6B;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.btn {
    background: linear-gradient(135deg, #FFD700, #FF6B6B);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
    margin-top: 20px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.navigation {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: background 0.3s;
    display: inline-block;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

.legal-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    margin: 30px auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    color: #333;
    line-height: 1.8;
}

.legal-content h2 {
    color: #FF6B6B;
    margin-bottom: 20px;
    margin-top: 30px;
}

.legal-content h3 {
    color: #FFD700;
    margin-top: 25px;
    margin-bottom: 15px;
}

.legal-content p {
    margin-bottom: 15px;
}

.legal-content ul {
    margin-left: 30px;
    margin-bottom: 15px;
}

.legal-content li {
    margin-bottom: 10px;
}

.back-btn {
    background: linear-gradient(135deg, #FFD700, #FF6B6B);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    transition: transform 0.3s;
}

.back-btn:hover {
    transform: translateY(-2px);
}

.success-message {
    background: #4CAF50;
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
    display: none;
}

.error-message {
    background: #f44336;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    display: none;
}

/* Section d'accueil */
.welcome-section {
    margin: 30px auto;
    max-width: 1000px;
}

.welcome-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.welcome-title {
    text-align: center;
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.contest-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid rgba(255, 215, 0, 0.2);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.5);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.info-content h3 {
    color: #FFD700;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.info-content p {
    color: #d97a7a;
    font-size: 1rem;
}

.prizes-section {
    margin: 40px 0;
    text-align: center;
}

.prizes-title {
    color: #FFD700;
    font-size: 2rem;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.prize-item {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(220, 20, 60, 0.2));
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prize-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.8);
}

.prize-name {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.prize-quantity {
    color: #FFD700;
    font-weight: bold;
    font-size: 1.2rem;
}

.conditions-section {
    margin: 40px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    border: 2px solid rgba(255, 215, 0, 0.2);
}

.conditions-section h3 {
    color: #FFD700;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.conditions-list {
    list-style: none;
    padding: 0;
}

.conditions-list li {
    color: #d97a7a;
    padding: 12px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.conditions-list li:last-child {
    border-bottom: none;
}

.conditions-list a {
    color: #FFD700;
    text-decoration: underline;
}

.conditions-list a:hover {
    color: #FF6B6B;
}

.how-it-works {
    margin: 40px 0;
    text-align: center;
}

.how-it-works h3 {
    color: #FFD700;
    font-size: 2rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.step {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s;
}

.step:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FFD700, #FF6B6B);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 15px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.step p {
    color: #d97a7a;
    font-size: 1rem;
    margin: 0;
}

/* Section d'accès au formulaire */
.form-access-section {
    text-align: center;
    margin: 40px 0;
    padding: 30px 0;
}

.btn-access-form {
    background: linear-gradient(135deg, #FFD700, #FF6B6B, #DC143C);
    color: white;
    padding: 20px 50px;
    border: none;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-access-form:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 35px rgba(255, 215, 0, 0.6);
}

.btn-access-form:active {
    transform: translateY(-2px) scale(1.02);
}

/* Section de sécurité */
.security-section {
    margin: 50px auto;
    max-width: 1000px;
    padding: 0 20px;
}

.security-content {
    background: rgba(220, 20, 60, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    border: 2px solid rgba(220, 20, 60, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.security-content h3 {
    color: #FFD700;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.security-info {
    color: #d97a7a;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.ip-display {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px 20px;
    margin: 20px 0;
    text-align: center;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.ip-display strong {
    color: #FFD700;
    font-size: 1.1rem;
    margin-right: 10px;
}

.ip-display span {
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.security-warning {
    background: rgba(220, 20, 60, 0.2);
    border-left: 4px solid #DC143C;
    border-radius: 8px;
    padding: 15px 20px;
    margin-top: 20px;
    color: #fff;
    font-size: 1rem;
    line-height: 1.6;
}

/* Contrôle de la musique */
#music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#music-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700, #FF6B6B);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

#music-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

/* Effets de neige (flocons) */
.snowflake {
    position: fixed;
    top: -10px;
    color: #fff;
    font-size: 1em;
    font-family: Arial;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: snowfall linear infinite;
    z-index: 1000;
    pointer-events: none;
}

@keyframes snowfall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .legal-content {
        padding: 20px;
    }
    
    .welcome-content {
        padding: 20px;
    }
    
    .welcome-title {
        font-size: 1.8rem;
    }
    
    .contest-info {
        grid-template-columns: 1fr;
    }
    
    .prizes-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
}

