/* tts-config — styles page (migration DA, ne pas dupliquer la coque) */

/* Select (combobox) — aligné points de chaîne / chatbot */
        select

        /* Toggle module */
        .module-toggle {
            position: relative;
            width: 90px;
            height: 36px;
            border-radius: 18px;
            background: #374151;
            border: 1px solid rgba(255,255,255,0.15);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            padding: 4px;
            transition: all 0.25s ease;
        }
        .module-toggle.on {
            background: linear-gradient(135deg, #ff6b35, #f7931e);
            box-shadow: 0 8px 20px rgba(255, 107, 53, 0.35);
        }
        .module-toggle .thumb {
            width: 28px;
            height: 28px;
            background: white;
            border-radius: 14px;
            transform: translateX(0);
            transition: transform 0.25s ease;
            box-shadow: 0 4px 10px rgba(0,0,0,0.25);
        }
        .module-toggle.on .thumb {
            transform: translateX(54px);
        }
        .module-toggle .labels {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 10px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            color: rgba(255,255,255,0.85);
            pointer-events: none;
        }

        /* Tuiles rétractables */

        .collapsible-header:hover {
            opacity: 0.8;
        }

        .collapsible-header h2,
        .collapsible-header h3 {
            margin-bottom: 0 !important;
        }

        .collapsible-content.open {
            max-height: 2000px;
            opacity: 1;
            padding-top: 1.5rem;
        }

        /* Réduire le padding de la card quand la tuile est fermée */
        .glass-card:has(.collapsible-header:not(.open)) {
            padding-bottom: 1rem;
        }

        .glass-card:has(.collapsible-header.open) {
            padding-bottom: 2rem;
        }

        .tab-container.tabs-row {
            margin-bottom: 1.5rem;
        }

        /* Sous-onglets pour Modération */
        .sub-tab-container {
            display: flex;
            gap: 8px;
            margin-bottom: 24px;
            flex-wrap: wrap;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            padding-bottom: 8px;
        }

        .sub-tab-button {
            padding: 10px 20px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 6px;
            color: rgba(255, 255, 255, 0.6);
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .sub-tab-button:hover {
            background: rgba(255, 107, 53, 0.1);
            color: rgba(255, 255, 255, 0.8);
        }

        .sub-tab-button.active {
            background: rgba(255, 107, 53, 0.2);
            color: white;
            border-color: rgba(255, 107, 53, 0.5);
        }

        .sub-tab-content {
            display: none;
        }

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

        .slider {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 8px;
            border-radius: 5px;
            background: rgba(255, 255, 255, 0.2);
            outline: none;
        }

        .slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #ff6b35;
            cursor: pointer;
        }

        .slider::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #ff6b35;
            cursor: pointer;
            border: none;
        }

        .info-box {
            background: rgba(255, 107, 53, 0.1);
            border-left: 4px solid #ff6b35;
            padding: 16px;
            border-radius: 8px;
            margin-bottom: 24px;
        }

        .warning-box {
            background: rgba(239, 68, 68, 0.1);
            border-left: 4px solid #ef4444;
            padding: 16px;
            border-radius: 8px;
            margin-bottom: 24px;
        }

        .feature-banner {
            background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
            padding: 16px 24px;
            border-radius: 12px;
            margin-bottom: 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        /* Zone désactivée */
        #module-content.module-disabled {
            opacity: 0.45;
            filter: grayscale(1);
            pointer-events: none;
            user-select: none;
        }
        #module-disabled-banner {
            background: rgba(239, 68, 68, 0.12);
            border: 1px solid rgba(239, 68, 68, 0.25);
            color: #fecaca;
            border-radius: 10px;
            padding: 12px 14px;
            display: none;
        }
        #module-disabled-banner.active {
            display: flex;
            align-items: center;
            gap: 10px;
        }
