/* --- Réinitialisation et styles de base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    overflow: hidden; 
}

body {
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* --- Conteneur principal --- */
.main-container {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 2rem 4rem;
}

/* --- Panneau de gauche --- */
.left-panel {
    flex: 1; 
    display: flex;
    flex-direction: column;
}

.site-header {
    /* On retire display: flex car les éléments ne sont plus côte à côte */
    margin-bottom: 0.5rem; /* <-- VALEUR RÉDUITE : c'est la modification principale */
    /* Optionnel : si vous voulez que le logo soit centré horizontalement */
    text-align: center;
}

.logo {
    height: 120px;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

.content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem); 
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 1px;
    margin-bottom: 2.5rem;
}

.actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.code-input, .validate-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.code-input {
    background-color: rgba(223, 151, 232, 0.8);
    color: #fff;
}

.code-input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.validate-btn {
    background-color: #8E44AD;
    color: #fff;
}

.validate-btn:hover {
    filter: brightness(1.2);
}

/* --- Panneau de droite et animation --- */
.right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.animation-container {
    position: relative;
    width: 100%;
    height: 80%;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #d881e4, #8646e3);
    opacity: 0.8;
    animation: float 20s infinite ease-in-out;
}

.circle.blue-variation {
    background: radial-gradient(circle at 30% 30%, #6a82fb, #3b2a82);
}

.circle.c1 { width: 250px; height: 250px; top: 10%; left: 40%; animation-delay: 0s; }
.circle.c2 { width: 150px; height: 150px; top: 5%; left: 5%; animation-delay: -5s; }
.circle.c3 { width: 100px; height: 100px; top: 60%; left: 15%; animation-delay: -12s; }
.circle.c4 { width: 200px; height: 200px; top: 50%; left: 60%; animation-delay: -8s; }
.circle.c5 { width: 80px; height: 80px; top: 20%; left: 80%; animation-delay: -15s; }
.circle.c6 { width: 120px; height: 120px; top: 75%; left: 45%; animation-delay: -3s; }
.circle.c7 { width: 60px; height: 60px; top: 80%; left: 5%; animation-delay: -18s; }
.circle.c8 { width: 180px; height: 180px; top: 15%; left: 65%; animation-delay: -10s; }
.circle.c9 { width: 90px; height: 90px; top: 65%; left: 85%; animation-delay: -1s; }

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    25% { transform: translate(20px, 40px) scale(1.05); }
    50% { transform: translate(-30px, -10px) scale(0.95); }
    75% { transform: translate(10px, -40px) scale(1.02); }
    100% { transform: translateY(0) scale(1); }
}

@media (max-width: 768px) {
    .main-container { flex-direction: column; padding: 2rem; }
    .left-panel { flex: 0; text-align: center; }
    .actions { justify-content: center; }
    .right-panel { flex: 1; opacity: 0.4; }
}