.form-control:focus,
    .form-select:focus {
        border-color: #16a34a;
        box-shadow: 0 0 0 0.2rem rgba(22, 163, 74, 0.25);
    }

    .input-group-text {
        background-color: #f8f9fa;
        border-right: none;
    }

    .input-group .form-control,
    .input-group .form-select {
        border-left: none;
    }

    .section-card {
        background: #f0fdf4;
        border: 1px solid #bbf7d0;
        border-radius: 1.25rem;
        padding: 1.5rem;
    }

    .section-title {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        color: #16a34a;
        font-weight: 700;
        margin-bottom: 1.25rem;
        font-size: 1rem;
    }

    .section-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: linear-gradient(135deg, #16a34a, #059669);
        color: #fff;
        font-size: 0.8rem;
        font-weight: 700;
        flex-shrink: 0;
    }

    @media (min-width: 992px) {
        .left-col {
            border-right: 1px solid transparent;
            border-image: linear-gradient(to bottom, transparent 0%, #d1d5db 10%, #16a34a 50%, #d1d5db 90%, transparent 100%) 1;
        }
    }

    @media (max-width: 991.98px) {
        .card { border-radius: 1rem !important; }
    }

    /* ── Sélecteur de disciplines enseignées ── */
    .subjects-count-badge {
        display: inline-flex;
        align-items: center;
        font-size: 0.75rem;
        font-weight: 700;
        color: #16a34a;
        background: #f0fdf4;
        border: 1px solid #bbf7d0;
        border-radius: 50px;
        padding: 0.2rem 0.65rem;
        white-space: nowrap;
    }

    .subjects-picker {
        background: #fff;
        border: 1.5px solid #e5e7eb;
        border-radius: 1rem;
        padding: 0.75rem;
        transition: border-color 0.15s ease;
    }

    .subjects-picker.is-invalid {
        border-color: #dc2626;
    }

    .subjects-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 0.5rem;
        max-height: 250px;
        overflow-y: auto;
        padding-right: 0.25rem;
    }

    .subjects-grid::-webkit-scrollbar { width: 6px; }
    .subjects-grid::-webkit-scrollbar-track { background: transparent; }
    .subjects-grid::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 10px; }
    .subjects-grid { scrollbar-width: thin; scrollbar-color: #d1d5db transparent; }

    .subject-chip {
        position: relative;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.55rem 2rem 0.55rem 0.7rem;
        background: #fff;
        border: 1.5px solid #e5e7eb;
        border-radius: 0.65rem;
        font-size: 0.85rem;
        font-weight: 600;
        color: #374151;
        cursor: pointer;
        user-select: none;
        transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
        margin: 0;
    }

    .subject-chip:hover {
        border-color: var(--chip-color, #16a34a);
        background: #f9fafb;
    }

    .subject-chip:active {
        transform: scale(0.98);
    }

    .subject-chip:focus-within {
        outline: 2px solid var(--chip-color, #16a34a);
        outline-offset: 2px;
    }

    .subject-chip.is-selected {
        border-color: var(--chip-color, #16a34a);
        background: color-mix(in srgb, var(--chip-color, #16a34a) 10%, white);
    }

    .subject-checkbox {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
        margin: 0;
        pointer-events: none;
    }

    .subject-chip-dot {
        flex-shrink: 0;
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: var(--chip-color, #16a34a);
    }

    .subject-chip-text {
        flex: 1 1 auto;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .subject-chip-check {
        position: absolute;
        top: 50%;
        right: 0.6rem;
        transform: translateY(-50%) scale(0.6);
        color: var(--chip-color, #16a34a);
        font-size: 0.95rem;
        opacity: 0;
        transition: opacity 0.15s ease, transform 0.15s ease;
    }

    .subject-chip.is-selected .subject-chip-check {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
