/* ========================================
   STYLES SPÉCIFIQUES - ÉCHELLE EPHP
   ======================================== */

.hidden { display: none !important; }

.ephp-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
}

/* En-tête */
.ephp-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102,126,234,0.08), rgba(118,75,162,0.08));
    border-radius: 15px;
}

.ephp-header h1 {
    font-size: 1.5rem;
    color: #333;
    margin: 0 0 0.3rem;
    line-height: 1.3;
}

.ephp-subtitle {
    font-size: 1rem;
    color: #667eea;
    font-weight: 600;
    margin: 0 0 1.5rem;
}

/* Barre de progression */
.ephp-progress {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.4rem;
}

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

.ephp-progress-text {
    font-size: 0.85rem;
    color: #888;
}

/* Titres de rubrique A, B, C, D */
.ephp-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    margin: 2rem 0 0.5rem;
    box-shadow: 0 3px 10px rgba(102,126,234,0.3);
}

.ephp-section-desc {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1rem;
    padding: 0 0.5rem;
}

/* Introduction */
.ephp-intro {
    border-color: #667eea;
}

.ephp-intro p {
    line-height: 1.6;
    color: #444;
    margin-bottom: 0.8rem;
}

.ephp-rubriques {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1rem;
}

.ephp-rubriques li {
    padding: 0.5rem 1rem;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, rgba(102,126,234,0.08), rgba(118,75,162,0.05));
    border-radius: 8px;
    border-left: 3px solid #667eea;
    font-weight: 600;
    color: #333;
}

.ephp-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.9rem;
    color: #856404;
    line-height: 1.5;
}

/* Items */
.ephp-item {
    border-color: #d0d5e8;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ephp-item:hover {
    border-color: #667eea;
}

.ephp-item-done {
    border-color: #27ae60;
    box-shadow: 0 4px 12px rgba(39,174,96,0.15);
}

.ephp-item-done legend {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.ephp-item-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin: 0 0 1rem;
    font-style: italic;
}

/* Options radio */
.ephp-options {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ephp-option {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    border: 1px solid transparent;
    line-height: 1.4;
}

.ephp-option:hover {
    background: rgba(102,126,234,0.06);
    border-color: rgba(102,126,234,0.2);
}

.ephp-option input[type="radio"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: auto;
    background: transparent;
    box-shadow: none;
    accent-color: #667eea;
}

/* Pastille de score */
.ephp-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #667eea;
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Options intermédiaires */
.ephp-intermediate {
    opacity: 0.7;
    padding: 0.4rem 1rem;
}

.ephp-intermediate .ephp-score {
    background: #a0aee8;
    font-size: 0.75rem;
}

.ephp-intermediate span:last-child {
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
}

/* Non évaluable */
.ephp-na {
    border-top: 1px dashed #ddd;
    margin-top: 0.3rem;
    padding-top: 0.6rem;
}

.ephp-na .ephp-score {
    background: #95a5a6;
    font-size: 0.65rem;
    min-width: 28px;
}

/* Option sélectionnée */
.ephp-option:has(input:checked) {
    background: rgba(102,126,234,0.1);
    border-color: #667eea;
}

.ephp-option:has(input:checked) .ephp-score {
    background: #764ba2;
    transform: scale(1.1);
}

/* Boutons d'action */
.ephp-actions-top {
    text-align: center;
    margin-bottom: 1rem;
}

.ephp-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(102,126,234,0.05), rgba(118,75,162,0.05));
    border-radius: 12px;
}

.ephp-btn-submit {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: #fff !important;
    border-color: #667eea !important;
    font-weight: 700;
    padding: 0 35px !important;
}

.ephp-btn-submit::after {
    background: #4a5fc1 !important;
}

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

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

    .ephp-header {
        padding: 1.2rem;
    }

    .ephp-header h1 {
        font-size: 1.2rem;
    }

    .ephp-section-title {
        font-size: 1.05rem;
        padding: 0.6rem 1rem;
    }

    .ephp-option {
        padding: 0.5rem 0.7rem;
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .ephp-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .ephp-header h1 {
        font-size: 1.05rem;
    }

    .ephp-option {
        font-size: 0.85rem;
    }

    .ephp-score {
        min-width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
}
