/**
 * Styles pour la gestion moderne des QCM
 */

/* Page principale */
.gfa-qcm-page {
    background: #f8f9fa;
    margin: -20px -20px 0 -2px;
    padding: 0;
}

/* En-tête de page */
.gfa-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gfa-page-title h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: white;
}

.gfa-subtitle {
    margin: 8px 0 0 0;
    opacity: 0.9;
    font-size: 16px;
}

.gfa-page-actions {
    display: flex;
    gap: 10px;
}

.gfa-page-actions .button-primary {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.gfa-page-actions .button-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gfa-page-actions .button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.gfa-page-actions .button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Grille de statistiques */
.gfa-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 0 40px 30px 40px;
}

.gfa-stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gfa-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.gfa-stat-card.primary {
    border-left: 4px solid #667eea;
}

.gfa-stat-card.success {
    border-left: 4px solid #28a745;
}

.gfa-stat-card.warning {
    border-left: 4px solid #ffc107;
}

.gfa-stat-card.info {
    border-left: 4px solid #17a2b8;
}

.gfa-stat-icon {
    font-size: 32px;
    margin-right: 16px;
    opacity: 0.8;
}

.gfa-stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1;
}

.gfa-stat-label {
    font-size: 14px;
    color: #6c757d;
    margin-top: 4px;
}

/* Onglets */
.gfa-tabs {
    margin: 0 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* En-têtes des onglets */
.gfa-questions-header, .gfa-config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.gfa-questions-header h3, .gfa-config-header h3 {
    margin: 0;
    color: #2c3e50;
}

.gfa-tab-nav {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.gfa-tab-button {
    flex: 1;
    padding: 16px 20px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gfa-tab-button:hover {
    background: #e9ecef;
    color: #495057;
}

.gfa-tab-button.active {
    background: white;
    color: #667eea;
    border-bottom: 2px solid #667eea;
}

.gfa-tab-button .dashicons {
    font-size: 16px;
}

.gfa-tab-content {
    display: none;
    padding: 30px;
}

.gfa-tab-content.active {
    display: block;
}

/* Contrôles du tableau */
.gfa-table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.gfa-filters {
    display: flex;
    gap: 15px;
    align-items: center;
}

.gfa-filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    min-width: 150px;
}

.gfa-filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.gfa-bulk-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

#bulk-action-selector {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    min-width: 160px;
}

#apply-bulk-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Container du tableau */
.gfa-table-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

/* Tableau */
.gfa-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.gfa-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.gfa-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gfa-table th.check-column {
    width: 50px;
    text-align: center;
}

.gfa-table tbody tr {
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.gfa-table tbody tr:hover {
    background-color: #f8f9fa;
}

.gfa-table td {
    padding: 16px 12px;
    vertical-align: middle;
}

/* Informations des questions */
.question-info {
    min-width: 300px;
}

.question-text {
    color: #2c3e50;
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
}

.question-preview {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.4;
}

/* Badges de type */
.type-info {
    text-align: center;
}

.type-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-badge.type-multiple_choice {
    background: #d4edda;
    color: #155724;
}

.type-badge.type-true_false {
    background: #cce5ff;
    color: #004085;
}

.type-badge.type-text {
    background: #fff3cd;
    color: #856404;
}

/* Réponses */
.answer-info {
    text-align: center;
    min-width: 120px;
}

.correct-answer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.answer-preview {
    font-weight: 500;
    color: #28a745;
    background: #d4edda;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    cursor: help;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Points */
.points-info {
    text-align: center;
    min-width: 80px;
}

.points-value {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    display: block;
}

.points-label {
    font-size: 12px;
    color: #6c757d;
    margin-left: 2px;
}

/* Points négatifs */
.negative-points-info {
    text-align: center;
    min-width: 100px;
}

.negative-points-value {
    font-size: 16px;
    font-weight: bold;
    color: #e74c3c;
    display: block;
}

.negative-points-label {
    font-size: 12px;
    color: #6c757d;
    margin-left: 2px;
}

/* Niveaux et QCM */
.niveau-info, .qcm-info {
    text-align: center;
    min-width: 90px;
}

.niveau-badge, .qcm-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.niveau-badge.niveau-1 {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.niveau-badge.niveau-2 {
    background: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ff9800;
}

.niveau-badge.niveau-3 {
    background: #fce4ec;
    color: #c2185b;
    border: 1px solid #e91e63;
}

.niveau-badge.niveau-4 {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #9c27b0;
}

.niveau-badge.niveau-5 {
    background: #e1f5fe;
    color: #0277bd;
    border: 1px solid #2196f3;
}

/* Thème */
.theme-info {
    text-align: center;
    min-width: 100px;
}

.theme-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
    letter-spacing: 0.5px;
}

/* Shortcodes */
.shortcode-info {
    min-width: 200px;
}

.shortcode-display {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid #dee2e6;
    cursor: pointer;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shortcode-display:hover {
    background: #e9ecef;
}

.shortcode-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 5px;
}

.shortcode-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.shortcode-item small {
    font-size: 10px;
    color: #6c757d;
    background: #e9ecef;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Statut */
.status-info {
    text-align: center;
}

.status-toggle {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 13px;
    cursor: pointer;
}

.status-toggle:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* Ordre */
.order-info {
    text-align: center;
}

.order-input {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
}

.order-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* Statistiques des questions */
.stats-info {
    text-align: center;
    min-width: 120px;
}

.question-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.usage-count {
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
}

.success-rate {
    font-size: 12px;
    color: #28a745;
    font-weight: 500;
}

/* Actions */
.actions-column {
    text-align: center;
    width: 120px;
}

.row-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.action-button {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6c757d;
}

.action-button:hover {
    background: #f8f9fa;
    color: #495057;
}

.action-button.edit-question:hover {
    background: #e3f2fd;
    color: #1976d2;
}

.action-button.delete-question:hover {
    background: #ffebee;
    color: #d32f2f;
}

.action-button.preview-question:hover {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Résultats QCM */
.gfa-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.gfa-results-header h3 {
    margin: 0;
    color: #2c3e50;
}

/* Client info dans les résultats */
.client-info {
    min-width: 200px;
}

.client-email {
    font-size: 12px;
    color: #6c757d;
    margin-top: 2px;
}

/* Scores */
.score-info {
    text-align: center;
}

.score-value {
    font-size: 18px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
}

.score-value.score-excellent {
    background: #d4edda;
    color: #155724;
}

.score-value.score-good {
    background: #fff3cd;
    color: #856404;
}

.score-value.score-poor {
    background: #f8d7da;
    color: #721c24;
}

/* Badges de statut */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.score-excellent {
    background: #d4edda;
    color: #155724;
}

.status-badge.score-good {
    background: #fff3cd;
    color: #856404;
}

.status-badge.score-poor {
    background: #f8d7da;
    color: #721c24;
}

/* Certificats */
.certificate-info {
    text-align: center;
}

.certificate-link {
    color: #667eea;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.certificate-link:hover {
    color: #5a6fd8;
}

.no-certificate {
    color: #6c757d;
    font-style: italic;
    font-size: 13px;
}

/* État vide */
.gfa-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.gfa-empty-icon {
    font-size: 64px;
    opacity: 0.5;
    margin-bottom: 20px;
}

.gfa-empty-state h3 {
    margin: 0 0 10px 0;
    color: #495057;
}

.gfa-empty-state p {
    margin: 0 0 20px 0;
}

/* Pagination */
.gfa-pagination {
    margin: 20px 40px 40px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-counter {
    background: white;
    padding: 10px 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #6c757d;
}

.results-counter p {
    margin: 0;
}

/* Modal pour ajouter/modifier une question */
.gfa-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
}

.gfa-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 90%;
    max-height: 80%;
    overflow-y: auto;
}

.gfa-modal-header {
    padding: 20px 20px 0 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gfa-modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.gfa-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gfa-modal-close:hover {
    color: #333;
}

.gfa-modal-body {
    padding: 20px;
}

.gfa-field-group {
    margin-bottom: 20px;
}

.gfa-field-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.gfa-field-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gfa-field-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.gfa-field-input[type="number"] {
    max-width: 100px;
}

textarea.gfa-field-input {
    resize: vertical;
    min-height: 100px;
}

.gfa-field-row {
    display: flex;
    gap: 15px;
}

.gfa-field-row .gfa-field-group {
    flex: 1;
}

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

.gfa-checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.gfa-modal-footer {
    padding: 15px 20px 20px 20px;
    text-align: right;
    border-top: 1px solid #eee;
}

.gfa-modal-footer .button {
    margin-left: 10px;
}

/* Notifications */
.gfa-notification {
    position: fixed;
    top: 32px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    z-index: 10001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.gfa-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.gfa-notification.success {
    background: #28a745;
}

.gfa-notification.error {
    background: #dc3545;
}

.gfa-notification.warning {
    background: #ffc107;
    color: #212529;
}

.gfa-notification.info {
    background: #17a2b8;
}

/* Responsive - Tablettes */
@media (max-width: 1200px) {
    .gfa-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gfa-page-header {
        padding: 25px 35px;
    }
    
    .gfa-page-title h1 {
        font-size: 26px;
    }
}

/* Responsive - Tablettes (Portrait) */
@media (max-width: 992px) {
    .gfa-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .gfa-table {
        min-width: 900px;
    }
    
    .gfa-stats-grid {
        margin: 0 35px 25px 35px;
    }
    
    .gfa-tabs {
        margin: 0 35px;
    }
}

/* Responsive - Téléphones */
@media (max-width: 768px) {
    /* En-tête */
    .gfa-page-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
        align-items: center;
    }
    
    .gfa-page-title h1 {
        font-size: 24px;
    }
    
    .gfa-subtitle {
        font-size: 14px;
    }
    
    .gfa-page-actions {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }
    
    .gfa-page-actions .button-primary,
    .gfa-page-actions .button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    /* Stats */
    .gfa-stats-grid {
        grid-template-columns: 1fr;
        margin: 0 20px 20px 20px;
        gap: 15px;
    }
    
    .gfa-stat-card {
        padding: 18px;
    }
    
    .gfa-stat-number {
        font-size: 24px;
    }
    
    .gfa-stat-label {
        font-size: 13px;
    }
    
    /* Onglets */
    .gfa-tabs {
        margin: 0 20px;
    }
    
    .gfa-tab-nav {
        flex-direction: column;
    }
    
    .gfa-tab-button {
        font-size: 13px;
        padding: 12px 16px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .gfa-tab-button.active {
        border-bottom: 2px solid #667eea;
        border-left: 3px solid #667eea;
    }
    
    .gfa-tab-content {
        padding: 20px;
    }
    
    /* Contrôles de table */
    .gfa-table-controls {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        padding: 15px;
    }
    
    .gfa-filters {
        width: 100%;
        justify-content: flex-start;
        flex-direction: column;
        gap: 10px;
    }
    
    .gfa-filter-select {
        width: 100%;
        min-width: 100%;
    }
    
    .gfa-bulk-actions {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
    
    #bulk-action-selector {
        width: 100%;
        min-width: 100%;
    }
    
    #apply-bulk-action {
        width: 100%;
    }
    
    /* Table */
    .gfa-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -20px;
        border-radius: 0;
    }
    
    .gfa-table {
        min-width: 800px;
        font-size: 13px;
    }
    
    .gfa-table th,
    .gfa-table td {
        padding: 12px 8px;
    }
    
    /* Pagination */
    .gfa-pagination {
        margin: 20px 20px 40px 20px;
        flex-direction: column;
        gap: 10px;
    }
    
    /* Modal */
    .gfa-modal-content {
        width: 95%;
        max-height: 90%;
    }
    
    .gfa-modal-header {
        padding: 15px 20px;
    }
    
    .gfa-modal-body {
        padding: 20px;
    }
    
    .gfa-field-row {
        flex-direction: column;
        gap: 0;
    }
    
    .gfa-modal-footer {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
    }
    
    .gfa-modal-footer .button {
        width: 100%;
        min-width: 100%;
    }
}

/* Responsive - Petits téléphones */
@media (max-width: 480px) {
    .gfa-page-header {
        padding: 15px;
    }
    
    .gfa-page-title h1 {
        font-size: 20px;
    }
    
    .gfa-subtitle {
        font-size: 13px;
    }
    
    .gfa-stats-grid {
        margin: 0 15px 15px 15px;
        gap: 12px;
    }
    
    .gfa-stat-card {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }
    
    .gfa-stat-icon {
        font-size: 28px;
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .gfa-stat-number {
        font-size: 22px;
    }
    
    .gfa-stat-label {
        font-size: 12px;
    }
    
    .gfa-tabs {
        margin: 0 15px;
    }
    
    .gfa-tab-button {
        font-size: 12px;
        padding: 10px 12px;
    }
    
    .gfa-tab-content {
        padding: 15px;
    }
    
    .gfa-table-controls {
        padding: 12px;
    }
    
    .gfa-table {
        min-width: 700px;
        font-size: 12px;
    }
    
    .gfa-table th,
    .gfa-table td {
        padding: 10px 6px;
    }
    
    .type-badge,
    .niveau-badge,
    .qcm-badge,
    .theme-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .action-button {
        padding: 6px;
    }
    
    .gfa-pagination {
        margin: 15px 15px 30px 15px;
    }
    
    .results-counter {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .gfa-modal-header {
        padding: 12px 15px;
    }
    
    .gfa-modal-header h3 {
        font-size: 16px;
    }
    
    .gfa-modal-body {
        padding: 15px;
    }
    
    .gfa-field-group {
        margin-bottom: 15px;
    }
    
    .gfa-field-group label {
        font-size: 13px;
    }
    
    .gfa-field-input {
        padding: 10px;
        font-size: 13px;
    }
}

/* QCM Amélioré */
.gfa-qcm-enhanced {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.gfa-qcm-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gfa-qcm-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.gfa-qcm-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.gfa-question-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
}

.gfa-timer {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    font-family: monospace;
}

.gfa-qcm-form {
    padding: 30px;
}

.gfa-question {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.gfa-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.gfa-question-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
}

.gfa-question-points {
    display: flex;
    gap: 10px;
}

.gfa-question-points .positive {
    background: #d4edda;
    color: #155724;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.gfa-question-points .negative {
    background: #f8d7da;
    color: #721c24;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.gfa-question-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #2c3e50;
}

.gfa-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gfa-answer-option {
    display: flex;
    align-items: center;
    padding: 12px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gfa-answer-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.gfa-answer-option input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
}

.gfa-answer-option input[type="radio"]:checked + .gfa-answer-letter {
    background: #667eea;
    color: white;
}

.gfa-answer-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #e9ecef;
    color: #6c757d;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    margin-right: 12px;
    transition: all 0.2s ease;
}

.gfa-answer-text {
    flex: 1;
    font-size: 15px;
    color: #2c3e50;
}

.gfa-qcm-actions {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
}

.gfa-submit-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gfa-submit-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.gfa-qcm-results {
    padding: 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.gfa-qcm-error {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    margin: 20px 0;
}

/* Améliorations des modals */
.gfa-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px;
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 0 0 8px 8px;
    flex-shrink: 0;
}

.gfa-modal-footer .button {
    min-width: 120px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gfa-modal-footer .button-primary {
    background-color: #007cba;
    border-color: #007cba;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 124, 186, 0.2);
}

.gfa-modal-footer .button-primary:hover {
    background-color: #005a87;
    border-color: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.3);
}

.gfa-modal-footer .gfa-modal-close {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
}

.gfa-modal-footer .gfa-modal-close:hover {
    background-color: #545b62;
    border-color: #545b62;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

/* Espacement des champs dans les modals */
.gfa-field-group {
    margin-bottom: 20px;
}

.gfa-field-group small {
    display: block;
    margin-top: 8px;
    font-style: italic;
    line-height: 1.4;
}

/* Améliorations du modal principal */
.gfa-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.gfa-modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 90vw;
    max-height: 90vh;
    width: 600px;
    display: flex;
    flex-direction: column;
}

.gfa-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gfa-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.gfa-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.gfa-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.gfa-modal-body {
    padding: 25px;
    background: white;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Scrollbar personnalisée pour les modals */
.gfa-modal-body::-webkit-scrollbar {
    width: 8px;
}

.gfa-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.gfa-modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.gfa-modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Pour Firefox */
.gfa-modal-body {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* Champs de formulaire améliorés */
.gfa-field-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.gfa-field-input:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}
