body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 2rem;
    color: #333;
}

.competition-form-container {
    /* max-width: 600px; */
    /* margin: auto; */
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

h1, h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 1.5rem;
}

.competition-form-group {
    margin-bottom: 1rem;
}

.competition-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.competition-form-group input[type="text"],
.competition-form-group input[type="email"],
.competition-form-group input[type="tel"],
.competition-form-group input[type="number"],
.competition-form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Important pour que le padding n'augmente pas la largeur */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: white;
    background-repeat: no-repeat;
    background-position: right .7em top 50%;
    background-size: .65em auto;
    padding-right: 2.5em; /* Laisser de la place pour la flèche */
}

.competition-btn {
    display: inline-block;
    width: 100%;
    padding: 0.8rem 1.2rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.3s;
}

.competition-btn:hover {
    background-color: #2980b9;
}

.competition-btn-secondary {
    background-color: #bdc3c7;
}
.competition-btn-secondary:hover {
    background-color: #95a5a6;
}

.competition-navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.competition-navigation-buttons > * {
   width: 48%;
}


.competition-participant-group {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: #f9f9f9;
}

.competition-participant-group legend {
    padding: 0 0.5em;
    font-weight: bold;
    color: #34495e;
}

.competition-radio-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.competition-radio-group span {
    font-weight: 500;
}

.competition-radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

.competition-participant-price {
    width: 100%;
    text-align: right;
    font-weight: bold;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    color: #34495e;
}

.competition-total-summary {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
}

.competition-total-summary h3 {
    margin: 0 0 0.5rem 0;
    text-align: right;
    color: #2c3e50;
    font-size: 1.2rem;
}

.competition-total-summary p {
    margin: 0;
    font-size: 1.8rem;
    text-align: right;
    font-weight: bold;
}

.competition-erreurs {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.competition-erreurs ul {
    margin: 0;
    padding-left: 1.2rem;
}

/* Styles pour le bureau (responsive) */
@media screen and (min-width: 768px) {
    /* Utiliser Flexbox pour les formulaires sur les grands écrans */
    #etape1 > form,
    #etape2 .competition-participant-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        row-gap: 1rem; /* Espace vertical entre les lignes de champs */
    }

    /* Définir la largeur des champs pour qu'ils se placent côte à côte */
    #etape1 > form > .competition-form-group,
    #etape2 .competition-participant-group > .competition-form-group {
        width: calc(50% - 1rem); /* Deux champs par ligne avec un espace entre eux */
        margin-bottom: 0; /* On utilise row-gap pour l'espacement vertical */
    }
    
    /* Forcer le dernier champ de l'étape 1 (nombre participants) et le groupe "repas" à prendre toute la largeur */
    #etape1 > form > .competition-form-group:last-of-type,
    #etape2 .competition-participant-group > .competition-radio-group {
        width: 100%;
    }
}
