

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
    font-size: clamp(1.125rem, 0.5rem + 1.4286vw, 1.4375rem);
}

h1{
    font-family: Arial, sans-serif;
    font-size: clamp(1.375rem, -1.5rem + 6.5714vw, 2.8125rem);
}

.container {
    width: 90%; /* Largeur adaptative */
    max-width: 1250px; /* Empêche la boîte de devenir trop large */
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#combinaisons {
    margin-top: 20px;
}

.phrase-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.5s forwards;
    width: 100%;
}

.numero {
    font-weight: bold;
    color: #555;
    min-width: 70px;
}

.phrase {
    flex-grow: 1;
    color: #333;
    word-wrap: break-word; /* Permet au texte de se couper si nécessaire */
}

/* ✅ Assure que les phrases restent en une ligne à 1250px ou plus */
@media (min-width: 1250px) {
    .phrase-container {
        white-space: nowrap; /* Empêche les phrases de passer à la ligne */
        overflow: hidden; /* Cache tout débordement */
        text-overflow: ellipsis; /* Ajoute "..." si le texte dépasse */
    }
}

/* ✅ Permet aux phrases de passer à la ligne en dessous de 1250px */
@media (max-width: 1249px) {
    .phrase-container {
        white-space: normal; /* Autorise le retour à la ligne */
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}