/* Global styles */
body {
    font-family: 'Poppins', sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 100vh !important;
    background-color: #d3d3d3 !important; /* Fond gris clair */
    position: relative !important;
    overflow: hidden !important;
    color: white !important;
}

/* Animation pour le fond avec le mot Xonics */
@keyframes slideText {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Fond animé avec plusieurs répétitions */
.background-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    z-index: 0; /* Assurer que ce fond est derrière les autres éléments */
    opacity: 0.1; /* Pour rendre le fond plus discret */
    font-size: 4rem; /* Taille par défaut */
    margin-top: 40px; 
}
/* Logo et bouton flottant */
.logo, .floating-btn {
    z-index: 10000 !important; /* Assure qu'ils sont au-dessus des autres éléments */
    animation: none; /* Désactive l'animation */
}

/* Adaptation de la taille du texte pour les petits écrans */
@media (max-width: 768px) {
    .background-text {
        font-size: 3rem; /* Réduire la taille sur les écrans de taille moyenne */
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .background-text {
        font-size: 2rem; /* Réduire encore plus la taille sur les petits écrans */
    }
}

/* Chaque ligne animée de "Xonics" */
.background-line {
    display: flex;
    justify-content: space-evenly;
    animation: slideText 20s linear infinite;
    font-size: 4rem; /* Taille par défaut */
    color: rgba(255, 51, 51, 1); /* Couleur plus visible */
    white-space: nowrap;
}

/* L'animation pour les petits écrans */
@media (max-width: 768px) {
    .background-line {
        font-size: 3rem; /* Réduire la taille de police pour les écrans plus petits */
    }
}

@media (max-width: 480px) {
    .background-line {
        font-size: 2rem; /* Réduire davantage la taille pour les petits écrans */
    }
}

/* Redimensionner les lignes de texte pour plus de flexibilité */
.background-line span {
    display: inline-block;
    padding-right: 20px;
}

/* Formulaire de contact */
.form-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100%;
    max-width: 600px; /* Amélioration pour les grands écrans */
    padding: 20px;
    box-sizing: border-box;
}


@media (min-width: 480px) {
    .form-container {
        width: 90%; /* Prend 90% de la largeur pour les petits écrans */
    }

    .card {
        padding: 15px; /* Réduire encore plus le padding dans la card */
        margin: 10px;
    }

    .floating-btn {
        padding: 12px 18px;
        font-size: 1rem;
    }

    input, textarea, button[type="submit"] {
        font-size: 0.9rem; /* Ajuster la taille des champs et boutons */
    }
}

.card {
    border-radius: 10px;
    background-color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    width: 100%;
    padding: 30px;
    margin: 0px;
}

/* Responsivité : Réduire les paddings et marges pour les petits écrans */
@media (max-width: 768px) {
    .card {
        padding: 20px; /* Réduire le padding pour les petits écrans */
        margin: 0px; /* Réduire la marge */
    }

    .floating-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }

    input, textarea, button[type="submit"] {
        font-size: 1rem; /* Ajuster la taille des champs et boutons */
    }
}

/* Formulaire de contact : Adaptations supplémentaires */
.card-body {
    padding: 0;
}

input, textarea {
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    color: #333;
    border-radius: 5px;
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 1rem;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #ff3333;
    box-shadow: 0 0 5px rgba(255, 51, 51, 0.5);
}

button[type="submit"] {
    background-color: #ff3333;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    color: white;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button[type="submit"]:hover {
    background-color: #e60000;
    transform: scale(1.05);
}

/* Style pour le bouton flottant */
.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #e60000;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 9999; /* S'assurer que le bouton est au-dessus des autres éléments */
    text-decoration: none;
}

.floating-btn:hover {
    background-color: rgb(0, 0, 0);
    color: #ffffff;
}

/* Sur les petits écrans, réduire encore plus la taille */
@media (max-width: 768px) {
    .background-text {
        font-size: 3rem;
    }
    .background-line {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .background-text {
        font-size: 2rem;
    }
    .background-line {
        font-size: 1.5rem;
    }
}
