
    /* =======================================
       CHARTER GRAPHIQUE (issue du code #1)
       ======================================= */
    :root {
        --primary-color: #7B68EE; 
        --secondary-color: #FFFFFF; 
        --accent-color: #BA55D3; 
        --background-gradient: radial-gradient(13.99% 114.9% at 68.15% 0%, rgba(231,223,255,0.7) 0%, rgba(231,223,255,0) 100%), 
                               radial-gradient(14.92% 94.2% at 54.35% 0%, rgba(223,226,255,0.7) 0%, rgba(223,226,255,0) 100%), 
                               radial-gradient(8.97% 56.57% at 46.46% 0%, rgba(223,243,255,0.7) 0%, rgba(223,243,255,0) 100%), 
                               rgb(247,246,254);
        --text-color: #2F2F4F; 
        --gray-color: #9A9AB5; 
        --border-radius: 16px;
        --transition: all 0.3s ease;
        --shadow-color: rgba(0, 0, 0, 0.05);
        --font-family: 'Lexend', sans-serif;
        --selected-dot-color: #BA55D3; 
        --success-color: #27AE60; 
        --warning-color: #F2994A; 
        --danger-color: #EB5757; 
        --light-gray: #F0F2F5; 
        --line-color: #d8d1ff;
    }

    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        font-family: var(--font-family);
    }

    html, body {
        height: 100%;
    }

    body {
        background: var(--background-gradient);
        color: var(--text-color);
        margin: 0;
        display: flex;
        flex-direction: column;
        position: relative;
        padding-top: 0px; 
    }

    /* Quelques bulles décoratives en fond (optionnelles) */
    body::before {
        content: '';
        position: fixed;
        top: 10%;
        left: 20%;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle at center, rgba(123,104,238,0.15) 0%, transparent 70%);
        border-radius: 50%;
        z-index: -1;
    }
    body::after {
        content: '';
        position: fixed;
        bottom: 10%;
        right: 15%;
        width: 200px;
        height: 200px;
        background: radial-gradient(circle at center, rgba(186,85,211,0.15) 0%, transparent 70%);
        border-radius: 50%;
        z-index: -1;
    }

    /* Contenu principal */
    .content-wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 40px;
        overflow-y: auto;
        position: relative;
    }
    .content-wrapper::before {
        content: '';
        position: absolute;
        bottom: -50px;
        left: -50px;
        width: 200px;
        height: 200px;
        background: var(--accent-color);
        border-radius: 50%;
        opacity: 0.1;
    }

    /* Titres */
    h1, h2, h3, h4, h5, h6 {
        color: var(--primary-color);
        margin-top: 0;
        margin-bottom: 20px;
        text-align: center;
    }
    h1 {
        font-size: 32px;
        margin-bottom: 30px;
    }
    h2 {
        font-size: 26px;
        margin-bottom: 25px;
    }
    h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    h4, h5, h6 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    /* Champs de formulaire + bouton */
    .form-container {
        max-width: 600px; /* pour limiter la largeur sur grands écrans */
        width: 90%;       /* prend 90% de la largeur sur petits écrans */
        margin: 0 auto;
        background-color: var(--secondary-color);
        box-shadow: 0 4px 8px var(--shadow-color);
        border-radius: var(--border-radius);
        padding: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .form-field {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .form-field label {
        margin-bottom: 5px;
        font-weight: 500;
        color: var(--text-color);
    }

    .input-text {
        border: 1px solid #ccc;
        border-radius: var(--border-radius);
        padding: 12px;
        font-size: 16px;
        color: var(--text-color);
        outline: none;
        background-color: var(--light-gray);
        transition: var(--transition);
    }

    .input-text:focus {
        border-color: var(--primary-color);
        background-color: #fff;
    }

    .btn-submit {
        background-color: var(--primary-color);
        color: var(--secondary-color);
        padding: 12px 24px;
        border: none;
        border-radius: var(--border-radius);
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        margin-top: 10px;
    }
    .btn-submit:hover {
        background-color: var(--accent-color);
    }

    /* Messages d’erreur / confirmation */
    .msg-error {
        color: var(--danger-color);
        font-weight: 600;
        text-align: center;
        margin-top: 30px;
    }

    /* Form (au lieu du style="width:40%; ...") */
    .login-form {
        width: 60%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* ===============================
       Responsivité supplémentaire
       =============================== */
    @media (max-width: 768px) {
        .content-wrapper {
            padding: 20px;
        }
        .form-container {
            padding: 20px;
        }
        h1 {
            font-size: 24px;
        }
        h2 {
            font-size: 20px;
        }
        /* le formulaire prend toute la largeur en dessous de 768px */
        .login-form {
            width: 100%;
        }
        .btn-submit {
            font-size: 14px;
            padding: 10px 18px;
        }
    }

    @media (max-width: 480px) {
        h1 {
            font-size: 20px;
        }
        h2 {
            font-size: 18px;
        }
    }

