/* ========================================
   EXAMEN NEUROLOGIQUE - STYLES
   ======================================== */

/* Conteneur principal */
.neuro-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem 1.5rem 2rem;
}

/* Titre */
.neuro-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 1.5rem 0;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, rgba(102,126,234,0.08), rgba(118,75,162,0.08));
    border-radius: 16px;
    border-left: 5px solid #667eea;
}

.neuro-icon {
    margin-right: 0.5rem;
}

/* Barre date + reset */
.neuro-date-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.neuro-date-bar label {
    font-weight: 600;
    color: #444;
    white-space: nowrap;
}

.neuro-date-bar input[type="date"] {
    padding: 0.5rem 0.8rem;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #f8f9ff;
    box-shadow: none;
}

.neuro-date-bar .btn-reset {
    margin-left: auto;
}

/* ========================================
   SECTIONS
   ======================================== */

.neuro-section {
    margin-bottom: 1.2rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1px solid #e8ecf1;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.section-header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ========================================
   ITEMS NEUROLOGIQUES
   ======================================== */

.neuro-items {
    padding: 0.3rem 0;
}

.neuro-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 1.2rem;
    border-bottom: 1px solid #f0f2f5;
    transition: background 0.2s ease;
    flex-wrap: wrap;
}

.neuro-item:last-child {
    border-bottom: none;
}

.neuro-item:hover {
    background: #f8f9ff;
}

.neuro-item.answered-normal {
    background: #f0faf0;
}

.neuro-item.answered-anomaly {
    background: #fef5f5;
}

.item-label {
    flex: 1;
    min-width: 0;
}

.item-title {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.92rem;
    line-height: 1.3;
}

.item-detail {
    display: block;
    font-size: 0.78rem;
    color: #888;
    margin-top: 2px;
    line-height: 1.3;
}

/* ========================================
   OPTIONS RADIO STYLISÉES
   ======================================== */

.item-options {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.7rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    background: #f5f6fa;
    color: #666;
}

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

.radio-custom {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #ccc;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
}

/* Skip (gris) */
.radio-option.skip:hover {
    background: #eee;
}

.radio-option.skip input:checked ~ .radio-custom {
    border-color: #999;
    background: #999;
}

/* Normal (vert) */
.radio-option.normal:hover {
    background: #e8f8e8;
    border-color: #4caf50;
}

.radio-option.normal input:checked ~ .radio-custom {
    border-color: #4caf50;
    background: #4caf50;
}

.radio-option.normal input:checked ~ .option-text {
    color: #2e7d32;
}

.radio-option.normal:has(input:checked) {
    background: #e8f5e9;
    border-color: #4caf50;
}

/* Anomalie (rouge) */
.radio-option.anomaly:hover {
    background: #fde8e8;
    border-color: #e53935;
}

.radio-option.anomaly input:checked ~ .radio-custom {
    border-color: #e53935;
    background: #e53935;
}

.radio-option.anomaly input:checked ~ .option-text {
    color: #c62828;
}

.radio-option.anomaly:has(input:checked) {
    background: #ffebee;
    border-color: #e53935;
}

/* Point blanc au centre du radio sélectionné */
.radio-option input:checked ~ .radio-custom::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
}

/* ========================================
   CONCLUSION
   ======================================== */

.neuro-conclusion textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: none;
    border-top: 1px solid #eee;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
    box-sizing: border-box;
    background: transparent;
    box-shadow: none;
}

.neuro-conclusion textarea:focus {
    outline: none;
    background: #f8f9ff;
}

/* ========================================
   BOUTONS D'ACTION
   ======================================== */

.neuro-actions {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin: 1.5rem 0 1rem;
    flex-wrap: wrap;
}

.neuro-actions button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    height: auto;
    margin: 0;
}

.neuro-actions button::after {
    display: none;
}

.btn-icon {
    font-size: 1.1rem;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: #667eea;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #5a6fd8, #6b4f96);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102,126,234,0.4);
}

.btn-reset {
    background: #fff;
    color: #666;
    border-color: #ddd;
}

.btn-reset:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.btn-print {
    background: #fff;
    color: #333;
    border-color: #ddd;
}

.btn-print:hover {
    background: #f0f4ff;
    border-color: #667eea;
    color: #667eea;
}

/* ========================================
   BARRE DE PROGRESSION
   ======================================== */

.neuro-progress {
    text-align: center;
    margin-bottom: 2rem;
}

.progress-bar {
    height: 8px;
    background: #e8ecf1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 0.4s ease;
}

.progress-text {
    font-size: 0.82rem;
    color: #888;
    font-weight: 500;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .neuro-container {
        padding: 0.5rem;
    }

    .neuro-title {
        font-size: 1.15rem;
        padding: 1rem;
    }

    .neuro-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.8rem 1rem;
    }

    .item-options {
        width: 100%;
        justify-content: flex-start;
    }

    .neuro-date-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .neuro-date-bar .btn-reset {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .radio-option {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }

    .section-header h2 {
        font-size: 0.95rem;
    }

    .neuro-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .neuro-actions button {
        justify-content: center;
    }
}
