/* --- FOND GLOBAL plus clair --- */
body {
    margin: 0;
    min-height: 100vh;
    background-color: #3b5ba8;
    /* color: #e5e7eb; */
    color: rgba(23, 37, 84, 0.97);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0.03em;
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

/* --- BOUTON PARAMÈTRES QUI OUVRE LE MENU DE NAVIGATION --- */
.settings_button {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.settings_button .btn {
    width: 50px; 
    height: 50px;
}

/* --- MENU DE NAVIGATION --- */
.navigation {
    position: relative;
    display: inline-block;

}
.menu_nav {
    min-width: 240px;      
    position: absolute;
    z-index: 60;
}

.menu_nav li > a {
    white-space: nowrap;  
    color: rgba(23, 37, 84, 0.97);
}

/* --- CONTENEUR FORMULAIRE --- */
.form_shell {
    width: 100%;
    max-width: 1100px;
}

.top_bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.logo_text {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.logo_text span:first-child {
    color: #22c55e;
}

/* --- CARTE FORMULAIRE --- */
.participant,
.acquite,
.form_card {
    border-radius: 24px;
    padding: 1.8rem 2.2rem;
    border: 1px solid rgba(129, 178, 255, 0.7);
    /* background: rgba(23, 37, 84, 0.97); */
    background: #ffffff;
    box-shadow:
        0 18px 32px rgba(15, 23, 42, 0.55),
        0 0 0 1px rgba(30, 64, 175, 0.5);
}

span .text-error {
    margin-left: 3px;
}

.form_title {
    margin: 0 0 1.5rem 0;
    font-size: 1.9rem;
    font-weight: 600;
}

.participant {
    margin-top: 1em;
    margin-bottom: 1em;
}
.participant p {
    font-size: 1.1em;
    line-height: 0.5em;
}

.participant p:first-child {
    margin-bottom: 0.2em;  
    /* color: rgba(191, 219, 254, 0.9); */
    color: rgba(23, 37, 84, 0.97);
    font-size: 1.2em;
    font-weight: 600;
}

.participant .acquite_status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.participant p:last-child {
    font-size: 1.1em;
}

.participant img {
    width: 1em;
    height: 1em;
    vertical-align: middle;
    filter: invert(0);
}

.form_row {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
}

/* Media query pour mobile */
@media (min-width: 1020px) {
    .settings_button {
        top: 3rem;
        right: 3rem;
    }
    .form_row--3 {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .form_row--21 {
        grid-template-columns: 1.1fr 1.1fr 0.9fr;
    }
    .form_row--2 {
        grid-template-columns: 1fr 1fr;
    }
}

.radio_group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.4rem;
}

.radio_item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.buttons_row {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.form_card .label_text {
    font-size: 1.05rem;  
    letter-spacing: 0.03em;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: rgba(23, 37, 84, 0.97);
}

.btn {
    font-size: 1.2rem;
    letter-spacing: 0.03em;
}
.btn:hover {
    background-color: #22c55e;
    color: #e5e7eb;
}

/* input[type="date"] {
    color-scheme: dark; 
} */
#date_naissance {
    /* color: #e5e7eb; */
    color: rgba(23, 37, 84, 0.97);
}

.form_card .input,
.form_card .select {
    /* background-color: rgba(15, 23, 42, 0.9); */
    background-color: #e5e7eb;
}


/* Recherche */
.recherche {
    position: relative;
}

.recherche_list {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 0.5em;
    z-index: 50;
    background-color: #e5e7eb;
    box-shadow:
        0 18px 32px rgba(15, 23, 42, 0.55),
        0 0 0 1px rgba(30, 64, 175, 0.5);
    border-radius: 0.5em;
    border: 1px solid rgba(129, 178, 255, 0.7);
    max-height: 400px;
    overflow-y: auto;
}

.recherche_list tr{
    background-color: rgba(59, 91, 168, 0.8);
    color: #e5e7eb;
    font-size: 1.2em;
    cursor: pointer;
}
.recherche_list tr:hover {
    background-color: rgba(23, 37, 84, 0.97);

}

/* Input pour le dossard */
.form_card input.dossard {
    background-color: #f5004e;
}


/* Case à cocher pour l'acquittement */
.acquite_conteneur {
    margin-top: 1em;
}  

div.acquite {
    display: flex;
    align-items: center;
    background-color: #e5e7eb;
    height: 3.5em; 
    border-radius: 0.5em;
}
 
.acquite label {
    cursor: pointer;
}
.acquite label input {
    width: 2em;
    height: 2em;
    border-radius: 0.5em;
    cursor: pointer;
    border: none;
}

.acquite label input[type="checkbox"] {
    border: 2px solid rgba(30, 64, 175, 0.5);
}
.acquite label input:checked {
    background-image: url('../img/check.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #e5e7eb;
    border: none;
}
.acquite label span.label_text {
    margin-left: 1em;
    color: rgba(15, 23, 42, 0.9);
}



/* Message concernant les erreurs et succès lors de l'attribution d'un dossard (message_dossard.php) */
.message {
    border-radius: 14px;
    background: rgba(23, 37, 84, 0.97);
    border: none;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: normal;
    margin-bottom: 1rem;
    padding: 1rem 2.2rem;
}
.message span {
    font-weight: 700;
    font-style: italic;
}
.error {
    background-color: #f5004e;
}
.success {
    background-color: #22c55e;
}

/* Style pour les input lors des messages d'erreur de validation */
.input.error {
    background-color: #f5004e;
}
