* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

h1, h2, h3, h4, h5 {
    color: #2c3e50;
    margin-bottom: 10px;
}

h1 {
    text-align: center;
}

h2 {
    text-align: center;
    background-color: #002060;
    color: white;
    width: 100%;
    padding: 8px 0;
}

h3 {
    font-size: 16px;
    text-align: center;
    background-color: green;
    color: white;
    width: 100%;
    padding: 8px 0;
}

h4 {
    font-size: 12px;
}

h5 {
    width: 100%;
    font-size: 16px;
    text-align: center;
    background-color: yellow;
    color: black;
    padding: 8px 0;
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
}

h6 {
    width: 100%;
    font-size: 16px;
    text-align: center;
    background-color: orange;
    color: white;
    padding: 8px 0;
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
}

hr {
    width: 100%;
    color: #2c3e50;
    margin-bottom: 10px;
    border: 2px solid #2c3e50;
}

table {
    border: 2px solid lightblue; /* Bordure extérieure du tableau */
    border-collapse: collapse; /* Fusion des bordures pour un meilleur rendu */
}

td, th {
    border: 1px solid lightblue; /* Bordure des cellules */
    padding: 8px; /* Ajout d'un peu d'espace à l'intérieur des cellules */
}

.no-border {
    border: none !important; /* Supprime toutes les bordures */
}

.no-border td {
    border: none !important; /* Supprime les bordures des cellules */
}


form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    max-width: 900px;
    margin: 20px auto;
    background: white;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.firstPart, .secondePart, .thirdPart, .fourthPart {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.fourthPart {
    flex-direction: row;
}

.radioDiv2 {
    display: flex;
    flex-direction: column; /* Empile les paires bouton + label verticalement */
    gap: 8px; /* Ajoute un espace entre chaque paire */
}

.radioDiv2 div {
    display: flex; /* Aligne chaque bouton radio et label côte à côte */
    align-items: center; /* Centre verticalement le bouton et le texte */
}

/* Style de base du bouton radio */
.radioDiv2 input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #333; /* Contour gris par défaut */
    border-radius: 50%; /* Forme circulaire */
    position: relative;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
    display: inline-block; /* Assure un meilleur comportement en ligne */
}

/* Quand le bouton radio est coché */
.radioDiv2 input[type="radio"]:checked {
    border-color: #002060; /* Contour bleu */
}

/* Création du petit point au centre du bouton radio quand il est coché */
.radioDiv2 input[type="radio"]:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px; /* Taille du petit point */
    height: 10px; /* Taille du petit point */
    background-color: #002060; /* Couleur du point (bleu) */
    border-radius: 50%;
    transform: translate(-50%, -50%); /* Centrage parfait */
}


.radioDiv2 label {
    margin-left: 8px; /* Espace entre le bouton radio et le label */
    margin-right: 8px; /* Marge après le label */
}




label {
    font-weight: bold;
}

input[type="text"], input[type="date"], input[type="number"], input[type="email"], select, textarea {
    width: 50%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.disabled {
    background-color: #f5f5fc;
    color: #575757;
    pointer-events: none;
}

textarea {
    resize: vertical;
    width: 100%;
}

.firstPart div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.secondePart p {
    font-style: italic;
    font-size: 0.9em;
}

.fourthPart {
    display: flex;
    justify-content: space-between;
}

button {
    padding: 10px 20px;
    border: none;
    background-color: #002060;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

button:hover {
    background-color: #32466e;
}

th {
    background-color: #f5f5f5; /* Gris très clair */
    color: #005CA8; /* Couleur du texte */
    padding: 8px;
    border-bottom: 2px solid #005CA8; /* Ajoutez une bordure pour délimiter */
}

#PDS {
    display: flex;
    align-items: center;
    width: 58%; /* Assure l'alignement avec les autres champs */
}

#PDS label {
    font-family: inherit; /* Utilise la même police que les autres labels */
    font-size: inherit; /* Maintient la taille cohérente */
    font-weight: normal; /* Ajuste l'épaisseur si nécessaire */
    color: inherit; /* Garde la même couleur */
    width: 50%; /* Même largeur que les autres labels */
}

#PDS span {
    margin-left: -35%;
}

.vad-label::after {
    content: " (non disponible)";
    color: red;
    font-weight: normal;
}

/* Checkbox style */

.switch{
    --active: #00B3D4;
    --active-inner: #fff;
    --focus: 2px #005ca81E;
    --border: #bbc1e1;
    --border-hover: #00B3D4;
    --background: #fff;
    --disabled: #f6f8ff;
    --disabled-inner: #e1e6f9;
    appearance: none;
    height: 21px;
    outline: none;
    display: inline-block;
    vertical-align: top;
    position: relative;
    margin: 0;
    cursor: pointer;
    border: 1px solid var(--bc, var(--border));
    background: var(--b, var(--background));
    transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
    width: 38px;
    min-width: 38px;
    border-radius: 11px;
}
.switch:after{
    content: '';
    display: block;
    left: 0;
    top: 0;
    position: absolute;
    transition: transform var(--d-t, 0.3s) var(--d-t-e, ease), opacity var(--d-o, 0.2s);
}
.switch:checked{
    --b: var(--active);
    --bc: var(--active);
    --d-o: 0.3s;
    --d-t: 0.6s;
    --d-t-e: cubic-bezier(0.2, 0.85, 0.32, 1.2);
}
.switch:after {
    left: 2px;
    top: 2px;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    background: var(--ab, var(--border));
    transform: translateX(var(--x, 0));
}
.switch:checked {
    --ab: var(--active-inner);
    --x: 17px;
}