        /* ============================================================
           CONNEXION / INSCRIPTION - CSS COMPLET POUR MOBILE
           ============================================================ */
        :root {
            --ink: #0E0F13;
            --panel: #16171C;
            --panel-2: #1D1F26;
            --paper: #ECECEA;
            --muted: #9A9BA3;
            --line: rgba(255,255,255,0.10);
            --line-soft: rgba(255,255,255,0.06);
            --cobalt: #4361FF;
            --cobalt-deep: #2E48E0;
            --cobalt-lite: #8497FF;
            --gold: #F0C24B;
            --green: #42C07A;
            --red: #E5545B;
            --display: 'Bricolage Grotesque', system-ui, sans-serif;
            --body: 'Inter', system-ui, sans-serif;
        }

        body {
            background: var(--ink);
            font-family: var(--body);
            color: var(--paper);
            margin: 0;
            padding: 20px;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .container {
            width: 100%;
            max-width: 500px;
            background: var(--panel);
            border: 1px solid var(--line);
            box-shadow: 0 20px 50px rgba(0,0,0,0.35);
            border-radius: 16px;
            padding: 30px 24px;
            box-sizing: border-box;
            margin: 0 auto;
        }

        h2 {
            text-align: center;
            color: var(--paper);
            font-family: var(--display);
            font-weight: 700;
            margin: 0 0 20px;
        }

        form {
            display: none;
            flex-direction: column;
            gap: 14px;
        }

        form.active {
            display: flex;
        }

        label {
            font-size: 0.9em;
            font-weight: 600;
            letter-spacing: 0.02em;
            text-transform: uppercase;
            color: var(--muted);
            display: block;
            margin-top: 4px;
        }

        input[type="text"],
        input[type="email"],
        input[type="password"],
        select {
            width: 100%;
            padding: 14px 16px;
            border: 1px solid var(--line);
            border-radius: 12px;
            background: var(--panel-2);
            color: var(--paper);
            font-family: var(--body);
            font-size: 16px;
            box-sizing: border-box;
        }

        input:focus,
        select:focus {
            outline: none;
            border-color: var(--cobalt);
        }

        .input-group {
            position: relative;
        }

        .input-group input {
            padding-right: 46px;
        }

        .eye {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            color: var(--muted);
            font-size: 1.4em;
            user-select: none;
        }

        .eye:hover {
            color: var(--paper);
        }

        button[type="submit"],
        #close-cgu {
            padding: 14px;
            background: var(--cobalt);
            color: #fff;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            font-family: var(--body);
            font-size: 16px;
            font-weight: 600;
            transition: background 0.18s ease;
            width: 100%;
        }

        button[type="submit"]:hover,
        #close-cgu:hover {
            background: var(--cobalt-deep);
        }

        #password-strength {
            height: 8px;
            background: var(--panel-2);
            border-radius: 5px;
            overflow: hidden;
            margin-top: 6px;
        }

        #strength-bar {
            height: 8px;
            width: 0;
            background: var(--red);
            transition: width 0.3s;
        }

        #strength-text {
            font-size: 0.85em;
            color: var(--muted);
            margin-bottom: 8px;
            height: 16px;
        }

        #confirm-text {
            font-size: 0.85em;
            height: 16px;
            margin-bottom: 8px;
        }

        .message {
            text-align: center;
            margin-bottom: 18px;
            color: var(--red);
            padding: 12px;
            border-radius: 10px;
            background: rgba(229,84,91,0.1);
        }

        .toggle {
            text-align: center;
            margin-top: 14px;
            font-size: 0.95em;
            color: var(--muted);
        }

        .toggle a {
            color: var(--cobalt-lite);
            text-decoration: underline;
        }

        .note {
            font-size: 0.9em;
            color: var(--muted);
            margin-top: 10px;
            line-height: 1.5;
            text-align: center;
        }

        .note span {
            color: var(--gold) !important;
        }

        /* Message "compte supprimé" */
        body > div:first-of-type {
            max-width: calc(100% - 40px);
            margin: 20px auto !important;
            padding: 14px 16px !important;
            background: rgba(66,192,122,0.12) !important;
            color: var(--green) !important;
            border-radius: 10px !important;
            border-left: 3px solid var(--green) !important;
            text-align: center;
            font-family: var(--body);
        }

        /* Modale CGU */
        #modal-cgu {
            position: fixed;
            inset: 0;
            z-index: 1000;
            background: rgba(6,7,10,0.72);
            backdrop-filter: blur(4px);
            align-items: center;
            justify-content: center;
            padding: 20px;
            display: none;
        }

        #modal-cgu.open {
            display: flex;
        }

        #modal-cgu > div {
            background: var(--panel) !important;
            border: 1px solid var(--line);
            max-width: calc(100% - 40px);
            width: 100%;
            border-radius: 16px;
            overflow: auto;
            max-height: 85vh;
            box-shadow: 0 20px 50px rgba(0,0,0,0.4);
            padding: 24px;
        }

        #modal-cgu h2 {
            margin-top: 0;
            font-size: 1.4em;
            color: var(--paper);
            font-family: var(--display);
        }

        #modal-cgu p,
        #modal-cgu li {
            color: var(--paper);
            font-size: 15px;
            line-height: 1.6;
        }

        #modal-cgu ul {
            padding-left: 20px;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 480px) {
            body {
                padding: 15px;
            }

            .container {
                padding: 20px 16px;
            }

            h2 {
                font-size: 1.3em;
                margin-bottom: 12px;
            }

            label {
                font-size: 0.9em;
                margin-top: 6px;
            }

            input[type="text"],
            input[type="email"],
            input[type="password"],
            select {
                padding: 12px 14px;
                font-size: 15px;
                border-radius: 10px;
            }

            .input-group input {
                padding-right: 40px;
            }

            .eye {
                font-size: 1.2em;
                right: 12px;
            }

            button[type="submit"] {
                padding: 12px;
                font-size: 15px;
                border-radius: 10px;
            }

            .message {
                font-size: 0.9em;
                padding: 10px;
            }

            .toggle {
                font-size: 0.85em;
            }
        }