/* === GLOBAL === */
/* === GLOBAL === */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.2em;
    background: url('../../images/ecole.jpg') no-repeat center center fixed;
    background-size: cover;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);
    background-color: rgba(139, 23, 19, 0.66);
    z-index: -1;
}


/* === TITRES ET LÉGENDES === */
h1, h2 { color: #8B1713; font-weight: 600; }
h2 { margin-top: 30px; border: 1px solid rgba(139, 23, 19, 0.3); padding: 6px 10px; border-radius: 6px; background-color: rgba(139, 23, 19, 0.05); }



legend {
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
    color: #007BFF;
}

/* === CONTENEUR PRINCIPAL === */
.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    overflow-x: hidden;
}

/* === FORMULAIRE === */
label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

input, select, textarea {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    font-size: 20px;
    box-sizing: border-box;
    border-radius: 6px;
    border: 1px solid #ccc;
    max-width: 100%;
}

select {
    text-align: left;
    text-align-last: center;
    padding: 4px;
}

select option {
    text-align: left;
}

/* === BOUTON === */
button, button[type=button] {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #B22222;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover, button[type=button]:hover {
    background-color: #8B1A1A;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* NOUVEAU: Conteneur pour les boutons de validation */
.submit-wrapper {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #ccc;
}

/* === ERREURS === */
.error {
    color: red;
    font-weight: bold;
    margin-top: 5px;
}

/* === LISTES DE SUGGESTIONS === */
.suggestions-list,
#suggestions_adresse,
#suggestions_adresse_rl1,
#suggestions_adresse_rl2 {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #ccc;
    max-height: 150px;
    overflow-y: auto;
    background-color: white;
    position: absolute;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
    left: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#suggestions_pays {
    z-index: 2000 !important;
}

.suggestions-list li,
#suggestions_adresse li,
#suggestions_adresse_rl1 li,
#suggestions_adresse_rl2 li {
    padding: 8px;
    cursor: pointer;
}

.suggestions-list li:hover,
#suggestions_adresse li:hover,
#suggestions_adresse_rl1 li:hover,
#suggestions_adresse_rl2 li:hover {
    background-color: #f0f0f0;
}

/* === RADIOS (Boursier & MDPH) === */
/* NOUVEAU: Conteneur pour les groupes de boutons radio (Boursier & MDPH) */
.radio-group-container {
    display: flex;
    justify-content: flex-start; /* FORCE L'ALIGNEMENT À GAUCHE */
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #fafafa;
    border: 1px solid #eee;
    border-radius: 6px;
    flex-wrap: wrap;
}
.radio-group-container .radio-label {
    font-weight: bold;
    margin-right: 10px;
    flex-shrink: 0;
}
.radio-group-container .radio-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.radio-group-container input[type="radio"] {
    width: auto;
    margin-top: 0;
}

/* === LOGO & PHOTO === */
#logo {
    width: 230px;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

#photoPreview,
#photo_preview {
    max-height: 200px;
    max-width: 120px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px;
    background: #fff;
    margin-top: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    display: block;
    object-fit: cover;
}

/* === WRAPPERS === */
.legend-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    padding-right: 15px;
    margin-bottom: 0;
}

.adresse-wrapper {
    position: relative;
}

/* === SECTIONS OPTIONNELLES === */
#section_bourse {
    margin-top: 10px;
    display: none;
}

#notification_bourse_error {
    color: red;
    font-size: 0.9em;
    display: none;
}
