
/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
      background-color: #07d656;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background-color: #f80909;
    color: white;
    padding: 20px 0;
    text-align: center;
     
}

.header-images {
    padding: 0 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
   
}

.header-img {
    max-width: 10%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.header-text {
    padding: 0 20px;
}

.header-text h1 {
    margin-bottom: 10px;
    font-size: 2.1rem;
}

.header-text p {
    font-size: 1.5rem;
    opacity: 0.9;
}

/* Container et colonnes */
.container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.left-column {
    flex: 1;
    padding-right: 30px;
    width: 33%;
}

.right-column {
    flex: 2;
    width: 67%;
}

/* Blocs de texte colonne gauche */
.text-block {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.text-block h2 {
    color: #0a3d62;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.text-block p {
    margin-bottom: 10px;
    line-height: 1.2em;
}

.left-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Formulaire */
form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

form h4 {
    color: #046127;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
    /*color: green;*/
}
form h3 {
    color: #0a3d62;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1,5rem;
  
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="date"],
input[type="number"],
input[type="vachar"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #0a3d62;
    box-shadow: 0 0 5px rgba(10, 61, 98, 0.3);
}

.radio-group,
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    margin-top: 10px;
    
}

.radio-group label,
.checkbox-group label {
    display: inline-flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input,
.checkbox-group input {
    margin-right: 8px;
    width: auto;

}

button[type="submit"] {
    background-color: #0a3d62;
    color: white;
    border: none;
    padding: 14px 25px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #0c4b78;
}

/* Footer */
footer {
    background-color: #046127;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .left-column, .right-column {
        width: 100%;
        padding-right: 0;
    }
    
    .left-column {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .header-img {
        max-width: 90%;
        margin-bottom: 15px;
    }
    
    .header-images {
        flex-direction: column;
        align-items: center;
    }
    
    .header-text h1 {
        font-size: 1.8rem;
    }
    
    .header-text p {
        font-size: 1rem;
    }
    
    .radio-group, .checkbox-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-text h1 {
        font-size: 1.5rem;
    }
    
    form {
        padding: 15px 15px;
    }
}

/* Styles pour les fieldsets */
fieldset {
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 25px;
    background-color: #fbfbfb;
}

legend {
    font-weight: 600;
    color: #0a3d62;
    padding: 0 10px;
    font-size: 1.1rem;
}

/* Styles responsifs pour les fieldsets */
@media (max-width: 768px) {
    fieldset {
        padding: 15px;
    }
    
    legend {
        font-size: 1rem;
    }
}
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.checkbox-group-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group-item label {
    flex-grow: 1;
}

.info-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

.info-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: #0a3d62;
    color: white;
    border-radius: 50%;
    font-size: 0.5rem;
    line-height: 18px;
    text-align: center;
    cursor: help;
}

.tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: normal;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

.info-icon:hover + .tooltip {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

/* Ajout important : s'assurer que l'input est visible */
.checkbox-group-item > input[type="checkbox"] {
    order: 1; /* S'assurer qu'il n'est pas caché par un ordre flex par défaut */
    margin-left: auto; /* Le pousser à droite (optionnel, mais peut améliorer l'alignement) */
}