/* ARIANE  Modal de consentement CGU/RGPD */

        /* ===== MODAL CONSENTEMENT CGU ===== */
        #consent-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0, 0, 0, 0.82);
            z-index: 99999;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(4px);
        }
        #consent-overlay.active { display: flex; }
        .consent-card {
            background: #fff;
            border-radius: 16px;
            padding: 40px 48px;
            max-width: 660px;
            width: 92%;
            max-height: 88vh;
            overflow-y: auto;
            box-shadow: 0 24px 60px rgba(0,0,0,0.5);
            font-family: 'Segoe UI', sans-serif;
        }
        .dark-mode .consent-card {
            background: #1e2030;
            color: #e0e0e0;
        }
        .consent-card h2 {
            margin: 0 0 8px;
            font-size: 1.5rem;
            color: #1a73e8;
        }
        .dark-mode .consent-card h2 { color: #5b9cf6; }
        .consent-card .consent-version {
            font-size: 0.78rem;
            color: #888;
            margin-bottom: 24px;
        }
        .consent-card h3 {
            font-size: 1rem;
            margin: 20px 0 6px;
            color: #333;
        }
        .dark-mode .consent-card h3 { color: #bbb; }
        .consent-card p, .consent-card li {
            font-size: 0.92rem;
            line-height: 1.6;
            color: #555;
        }
        .dark-mode .consent-card p,
        .dark-mode .consent-card li { color: #aaa; }
        .consent-card ul { padding-left: 20px; margin: 6px 0 12px; }
        .consent-divider {
            border: none;
            border-top: 1px solid #e0e0e0;
            margin: 24px 0;
        }
        .dark-mode .consent-divider { border-color: #3a3d55; }
        .consent-footer {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-top: 28px;
        }
        .consent-checkbox-label {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.9rem;
            color: #333;
            cursor: pointer;
            flex: 1;
        }
        .dark-mode .consent-checkbox-label { color: #ccc; }
        #consent-checkbox {
            width: 18px;
            height: 18px;
            cursor: pointer;
            accent-color: #1a73e8;
            flex-shrink: 0;
        }
        #consent-accept-btn {
            padding: 12px 28px;
            background: #1a73e8;
            color: #fff;
            border: none;
            border-radius: 8px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition: background .2s, opacity .2s;
            white-space: nowrap;
        }
        #consent-accept-btn:disabled {
            opacity: 0.45;
            cursor: not-allowed;
        }
        #consent-accept-btn:not(:disabled):hover { background: #1557b0; }
