/* --- Styles Généraux et Mise en Page --- */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f9;
    color: #333;
    padding: 20px;
    margin: 0;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #007bff; /* Bleu Malisan */
    margin-top: 10px;
}

section {
    background-color: #ffffff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

h2 {
    color: #333;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h3 {
    color: #007bff;
    margin-top: 20px;
}

/* --- Logo --- */
.logo-container {
    max-width: 250px; /* Taille maximale pour le logo */
    margin: 0 auto 15px auto;
}

.logo-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Style pour afficher les options radio en ligne */
.radio-group-horizontal {
    /* Ceci force le DIV à ne prendre que l'espace nécessaire et permet l'affichage côte à côte */
    display: inline-block; 
    margin-right: 25px; /* Espace entre chaque option */
    padding: 5px;
}

/* Ces styles sont ajoutés pour neutraliser les styles généraux si nécessaire */
.radio-group-horizontal label {
    font-weight: normal; /* Annule le gras si les labels étaient en gras par défaut */
    display: inline;
}
.radio-group-horizontal input[type="radio"] {
    margin-right: 5px;
}

/* Pour que les labels de l'image (Transport DUBOIS, etc.) ne soient pas en gras */
/* Vous pourriez vouloir ajouter ceci si c'est la cause du gras non désiré: */
.required-group label {
    font-weight: normal !important; 
}

/* --- Formulaires de base et Groupes --- */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="date"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Inclut le padding et border dans la largeur totale */
}

textarea {
    resize: vertical;
}

/* --- Tables et Échelles de notation (0 à 10) - CORRECTION RIGIDE --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    table-layout: fixed; /* Rend les largeurs de colonne fixes et garantit l'alignement */
}

th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid #eee;
    vertical-align: middle;
}

th {
    font-weight: normal;
    text-align: center;
}

/* Styles pour les nouveaux en-têtes */
.critere-header {
    background-color: #f8f8f8 !important;
    font-weight: bold !important;
}
.note-header {
    background-color: #e9f5ff !important;
    color: #007bff;
    font-weight: bold !important;
}

/* Force la largeur des colonnes dans le tableau */
table tr td:first-child,
table tr th:first-child {
    width: 30%; /* Largeur pour le nom du critère */
}

table tr td:last-child {
    width: 70%; /* Largeur pour l'échelle de notation (colspan="11") */
}


/* Conteneur de l'échelle 0 à 10 - UTILISATION DE GRILLE (11 COLONNES) */
.rating-scale {
    display: grid; 
    /* 11 colonnes : 2 parts pour 0 et 10 (extrémités), 1 part pour les 9 autres (1 à 9) */
    grid-template-columns: 2fr repeat(9, 1fr) 2fr; 
    gap: 0;
    padding: 0;
    margin: 0;
    width: 100%;
}

.rating-option {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0;
    margin: 0;
}

.rating-scale input[type="radio"] {
    display: none;
}

.rating-scale label {
    display: block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border: 1px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9em;
    font-weight: bold;
}

.rating-scale input[type="radio"]:checked + label {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.rating-scale label:hover {
    background-color: #e9ecef;
}

/* --- Styles pour les boutons --- */
button {
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    margin-right: 15px;
    transition: background-color 0.2s, opacity 0.2s;
    margin-top: 20px;
}

button[type="submit"] {
    background-color: #28a745; /* Vert pour l'envoi */
    color: white;
}

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

button[type="reset"] {
    background-color: #dc3545; /* Rouge pour effacer */
    color: white;
}

button[type="reset"]:hover {
    background-color: #c82333;
}

.instruction {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.cloture p {
    font-style: italic;
    font-size: 0.9em;
    margin-top: 10px;
    color: #888;
}

/* --- Responsive Design (Média Queries) --- */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    /* Réduction de la taille des pastilles pour les petits écrans */
    .rating-scale label {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 0.7em;
    }
}