/* Base et reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #000428, #004e92);
    font-family: 'Arial', sans-serif;
    color: white;
    padding: 10px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    max-width: 90%;
    width: fit-content;
    position: relative;
    margin: 10px; /* Marge externe pour éviter le collage aux bords */
}

h1 {
    font-size: clamp(2rem, 6vw, 5rem); /* Taille minimale réduite pour petits écrans */
    background: linear-gradient(to right, #ff00cc, #ff6600, #ffff00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: rainbow 3s ease infinite;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
    margin: 0 15px; /* Marge interne latérale */
}

.biquette {
    width: clamp(120px, 20vw, 200px);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
    display: block;
    margin: 0 auto 10px;
    position: relative;
    left: -15px;
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

.container {
    animation: float 4s ease-in-out infinite;
}

/* Ajustements pour petits écrans */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem 1rem; /* Padding réduit verticalement, augmenté horizontalement */
        margin: 5px;
    }
    h1 {
        font-size: clamp(1.8rem, 5vw, 4rem); /* Taille encore plus réduite si nécessaire */
        margin: 0 10px;
    }
    .biquette {
        left: -8px;
        width: clamp(100px, 25vw, 180px); /* Légère réduction maximale sur mobile */
    }
}
