:root {
            --primary: #004d40;
            --primary-light: #e0f2f1;
            --secondary: #ffc107;
            --bg: #f0f4f3;
            --text-dark: #1a202c;
            --text-muted: #64748b;
            --white: #ffffff;
            --radius: 16px;
            --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }

      *,
*::before,
*::after {
    box-sizing: border-box;
}

        body {
            font-family: 'Inter', sans-serif;
            background-color:#ffffff;
            color: var(--text-dark);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0px;
        }

        #registration-wrapper {
            background: var(--white);
            width: 100%;
            max-width: 1000px;
            display: flex;
            border-radius: 24px;
            overflow: hidden;
            box-shadow: var(--shadow);
            min-height: 700px;
        }

       

        /* Panneau Image Latéral - Plus élégant */
        #image-placeholder {
            flex: 1;
            background: linear-gradient(rgba(0, 77, 64, 0.85), rgba(0, 77, 64, 0.85)), url("{% static 'img/logo_compte.jpg' %}");
            background-size: cover;
            background-position: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px;
            color: white;
            text-align: center;
        }

        #image-placeholder h3 {
            font-family: 'Poppins', sans-serif;
            font-size: 1.8rem;
            margin-top: 20px;
            letter-spacing: -1px;
        }

        #image-placeholder p {
            opacity: 0.8;
            font-size: 0.95rem;
            max-width: 280px;
            margin-top: 10px;
        }

        /* Section Formulaire */
        .container {
            flex: 1.2;
            padding: 50px 60px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        h2 {
            font-family: 'Poppins', sans-serif;
            font-size: 2rem;
            color: var(--primary);
            margin-bottom: 8px;
            letter-spacing: -1px;
        }

        .subtitle {
            color: var(--text-muted);
            font-size: 0.9rem;
            margin-bottom: 30px;
        }

        label {
            font-weight: 600;
            font-size: 0.85rem;
            color: var(--text-dark);
            display: block;
            margin-bottom: 8px;
            margin-top: 15px;
        }

        /* Champs Input Refresh */
        input, select {
            width: 100%;
            padding: 12px 16px;
            border: 1.5px solid #e2e8f0;
            border-radius: 12px;
            font-size: 15px;
            font-family: inherit;
            transition: all 0.2s;
            background: #f8fafc;
        }

        input:focus {
            outline: none;
            border-color: var(--primary);
            background: white;
            box-shadow: 0 0 0 4px rgba(0, 77, 64, 0.1);
        }

        .input-icon { position: relative; }
        .input-icon i {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            font-size: 0.9rem;
        }
        .input-icon input { padding-left: 42px !important; }

        .password-wrapper { position: relative; }
        .togglePassword {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            color: var(--text-muted);
            padding: 5px;
        }

        /* Switch Box Style */
        .switch-box {
            background: #f1f5f9;
            padding: 8px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin: 20px 0;
        }

        .switch-box label { margin: 0; padding-left: 10px; }

        .custom-select-wrapper select {
            border: none;
            background: white;
            font-weight: 600;
            padding: 8px 30px 8px 12px;
            border-radius: 10px;
            cursor: pointer;
            font-size: 0.85rem;
            color: var(--primary);
        }

        /* Button & Errors */
        .btn-primary {
            width: 100%;
            padding: 16px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 14px;
            font-family: 'Poppins', sans-serif;
            font-weight: 700;
            font-size: 1rem;
            cursor: pointer;
            margin-top: 30px;
            transition: 0.3s;
            box-shadow: 0 10px 15px -3px rgba(0, 77, 64, 0.3);
        }

        .btn-primary:hover { background: #00332b; transform: translateY(-2px); }

        .field-error-message { color: #e11d48; font-size: 0.75rem; margin-top: 4px; font-weight: 600; }
        .input-error { border-color: #fda4af !important; background-color: #fff1f2 !important; }
        .error-msg {
            background: #fff1f2;
            color: #be123c;
            padding: 12px;
            border-radius: 10px;
            margin-bottom: 20px;
            font-size: 0.85rem;
            border: 1px solid #fecdd3;
        }

        /* Intl-tel-input Ajustement */
        .iti { width: 100%; }
        .iti__selected-flag { border-radius: 12px 0 0 12px; }

        /* RESPONSIVE */
        @media (max-width: 900px) {
            #image-placeholder { display: none; }
            #registration-wrapper { max-width: 500px; min-height: auto; }
            .container { padding: 40px 30px; }
        }




 @media (max-width:720px) {

            #registration-wrapper {
            background: var(--white);
            width: 100%;
            max-width: 1000px;
            display: flex;
            border-radius: 0px;
          
            box-shadow: none;
            padding-bottom: 100px;
           
        }
            
        }

.terms-container {
    margin-top: 25px;
    padding: 0 5px;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* Style moderne de la checkbox */
#acceptTerms {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
}

.terms-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 !important;
}

.policy-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.policy-link:hover {
    border-color: var(--primary);
}

/* État désactivé du bouton d'envoi */
.btn-primary:disabled {
    background-color: #e2e8f0;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
    transform: none !important;
}





/* --- Footer Link --- */
        .compte-p {
            margin-top: 40px;
            font-size: 0.9rem;
            color: #64748b;
            border-top: 1px solid #f1f5f9;
            padding-top: 25px;
            text-align: center;
        }

        .lien-connexion {
            color: var(--primary);
            text-decoration: none;
            font-weight: 700;
            display: inline-block;
            margin-top: 5px;
            font-size: 1rem;
            transition: 0.3s;
        }

        .lien-connexion:hover {
            color: var(--secondary);
            transform: scale(1.02);
        }