/* Corps général */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

/* Fond dynamique */
.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), transparent),
                radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1), transparent);
    z-index: 0;
}

.background-container::before,
.background-container::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    animation: pulse 8s infinite ease-in-out;
}

.background-container::before {
    width: 500px;
    height: 500px;
    top: 10%;
    left: 15%;
}

.background-container::after {
    width: 600px;
    height: 600px;
    bottom: 10%;
    right: 20%;
    animation-direction: reverse;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Conteneur du formulaire */
.form-container {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.7);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.form-header h1 {
    font-size: 2rem;
    color: #FFD700;
    margin-bottom: 15px;
}

.form-header p {
    font-size: 1rem;
    color: #eee;
    margin-bottom: 30px;
}

/* Champs du formulaire */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: #FFD700;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
}

.form-group input:focus {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 8px #FFD700;
}

/* Boutons */
.btn-primary, .btn-secondary {
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.btn-primary {
    background: #FFD700;
    color: #000;
    border: none;
}

.btn-primary:hover {
    background: #FFC300;
}

.btn-secondary {
    background: #4CAF50;
    color: white;
    border: none;
}

.btn-secondary:hover {
    background: #45A049;
}

/* Centrage du conteneur vidéo */
#video-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 640px;
    margin: 20px auto 0;
    border-radius: 10px;
    overflow: hidden;
}

#video {
    transform: scaleX(-1);
    position: relative;
    z-index: 1;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    width: 100%;
    height: auto;
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.overlay-content {
    background: #202020;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

video {
    margin-top: 20px;
    border-radius: 8px;
}

/* Feedback du scan */
#scanFeedback {
    font-size: 1.2rem;
    color: #4CAF50;
    margin-top: 20px;
}

/* Texte dynamique et émojis */
.dynamic-text {
    color: white;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 15px;
}

#tutorialIcon {
    font-size: 2rem;
    text-align: center;
    margin-top: 15px;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Message de succès */
#scanSuccessMessage {
    font-size: 1rem;
    color: #4CAF50;
    margin-top: 10px;
    display: block;
    text-align: center;
}

/* Lien pour inscription */
p {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #FFD700;
}

p a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

p a:hover {
    text-decoration: underline;
}
