/* ========================================
   FORMULAIRE DE SATISFACTION - RESPONSIVE
   ======================================== */

/* Styles généraux du formulaire */
.formulaire-satisfaction {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.formulaire-satisfaction fieldset {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 25px;
    background-color: #f9f9f9;
}

.formulaire-satisfaction legend {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    padding: 0 10px;
    margin-left: -10px;
}

/* ========================================
   CHAMPS DE FORMULAIRE
   ======================================== */

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.form-group {
    flex: 1 1 100%;
    padding-right: 10px;
    padding-left: 10px;
    margin-bottom: 15px;
    min-width: 0;
}

@media (min-width: 576px) {
    .form-group.col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .form-group.col-sm-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (min-width: 768px) {
    .form-group.col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.form-group .required {
    color: #dc3545;
}

.form-control {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   TABLES RESPONSIVES
   ======================================== */

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 15px;
}

.table-satisfaction {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

.table-satisfaction thead {
    background-color: #f5f5f5;
    border-bottom: 2px solid #ddd;
}

.table-satisfaction th {
    padding: 12px 8px;
    text-align: center;
    font-weight: bold;
    color: #333;
    border: 1px solid #ddd;
    font-size: 13px;
    vertical-align: middle;
}

.table-satisfaction td {
    padding: 12px 8px;
    border: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
}

.table-satisfaction tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table-satisfaction tbody tr:hover {
    background-color: #f0f0f0;
}

.table-satisfaction tbody td:first-child {
    text-align: left;
    font-weight: 500;
    background-color: #f5f5f5;
    min-width: 200px;
}

/* Input radio dans les tables */
.table-satisfaction input[type="radio"] {
    margin: 0;
    padding: 0;
    cursor: pointer;
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

/* ========================================
   GROUPES DE CHECKBOXES/RADIOS
   ======================================== */

.form-check-group {
    display: flex;
    flex-direction: column;
}

.form-check-row {
    display:inline-table;   
    margin-bottom: 5%;
    padding: 5px;
    background-color: #fff;
    border-radius: 2px;
}

.form-check-label {
    display: inline; 
   
    font-weight: 600;
    color: #333;
    font-size: 15px;
    
}

.form-check-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.form-check-options label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

.form-check-options input[type="radio"],
.form-check-options input[type="checkbox"] {
    margin-right: 8px;
    margin-bottom: 0;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

/* ========================================
   BOUTONS
   ======================================== */

.form-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}

.btn-primary:active {
    background-color: #004085;
}

/* reCAPTCHA */
.g-recaptcha {
    margin: 20px 0;
    padding: 10px;
    text-align: center;
}

/* ========================================
   RESPONSIVE DESIGN - SMARTPHONES
   ======================================== */

@media (max-width: 576px) {
    .formulaire-satisfaction {
        padding: 15px;
    }
    
    .formulaire-satisfaction fieldset {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .formulaire-satisfaction legend {
        font-size: 16px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-check-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-check-options label {
        padding: 8px;
        background-color: #f9f9f9;
        border-radius: 3px;
    }
    
    .table-satisfaction th,
    .table-satisfaction td {
        padding: 8px 4px;
        font-size: 12px;
    }
    
    .table-satisfaction tbody td:first-child {
        font-size: 13px;
        padding: 8px;
    }
    
    .table-responsive {
        font-size: 12px;
    }
    
    .btn {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }
}

/* ========================================
   RESPONSIVE DESIGN - TABLETTES
   ======================================== */

@media (min-width: 577px) and (max-width: 768px) {
    .formulaire-satisfaction {
        padding: 18px;
    }
    
    .table-satisfaction th,
    .table-satisfaction td {
        padding: 10px 6px;
        font-size: 13px;
    }
    
    .table-satisfaction tbody td:first-child {
        min-width: 150px;
        font-size: 13px;
    }
}

/* ========================================
   RESPONSIVE DESIGN - ÉCRANS LARGES
   ======================================== */

@media (min-width: 1200px) {
    .formulaire-satisfaction {
        max-width: 1100px;
    }
}

/* ========================================
   ACCESSIBILITÉ
   ======================================== */

/* Focus visible pour la navigation au clavier */
.form-control:focus,
input[type="radio"]:focus,
input[type="checkbox"]:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Labels en gras pour meilleure lisibilité */
label {
    cursor: pointer;
}

/* Message de validation */
.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.success-message {
    color: #28a745;
    font-size: 14px;
    padding: 15px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-bottom: 20px;
}