    :root {
      --primary-blue: #0866FF;
      --primary-dark: #0051d4;
      --accent-teal: #00d4ff;
      --premium-gold: #FFD700;
      --sand-yellow: #FFF9E6;
      --success-green: #10B981;
      --text-dark: #1F2937;
      --text-light: #6B7280;
      --bg-light: #F9FAFB;
      --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
      --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
      --shadow-lg: 0 16px 48px rgba(0,0,0,0.16);
      --transition-fast: 0.2s ease;
      --transition-normal: 0.3s ease;
      --transition-slow: 0.5s ease;
      --border-radius: 25px;
      --border-radius-sm: 8px;
      --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
      --gradient-premium: linear-gradient(135deg, var(--primary-blue) 0%, var(--premium-gold) 100%);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
      background-color: transparent;
      background-image:
        radial-gradient(120% 55% at 50% -10%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 60%),
        linear-gradient(180deg, #82d8fd 0%, #1389bc 52%, #0d6f9f 100%);
      min-height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 20px;
      position: relative;
      overflow-x: hidden;
      color: var(--text-dark);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    body::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-image:
        radial-gradient(90% 30% at 50% 62%, rgba(143, 220, 255, 0.16) 0%, rgba(143, 220, 255, 0) 65%),
        radial-gradient(120% 45% at 50% 100%, rgba(7, 71, 102, 0.55) 0%, rgba(7, 71, 102, 0) 72%),
        radial-gradient(80% 35% at 18% 100%, rgba(6, 87, 126, 0.52) 0%, rgba(6, 87, 126, 0) 70%),
        radial-gradient(88% 38% at 82% 100%, rgba(5, 78, 114, 0.5) 0%, rgba(5, 78, 114, 0) 70%),
        linear-gradient(180deg, rgba(18, 146, 196, 0) 54%, rgba(9, 92, 131, 0.35) 74%, rgba(6, 62, 93, 0.52) 100%);
      z-index: -1;
      pointer-events: none;
    }

    body::after {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 38vh;
      background:
        linear-gradient(180deg, rgba(6, 62, 93, 0) 0%, rgba(0, 255, 128, 0.705) 48%, rgba(4, 44, 67, 0.62) 100%);
      z-index: -1;
      pointer-events: none;
    }

    .registration-container {
      width: 100%;
      max-width: 1000px;
      margin: 0 auto;
      position: relative;
    }

    .login-box {
      background: white;
      padding: clamp(1.5rem, 4vw, 3rem);
      border-radius: var(--border-radius);
      box-shadow: var(--shadow-lg);
      width: 100%;
      border: 1px solid rgba(255, 255, 255, 0.2);
      -webkit-backdrop-filter: blur(20px);
      backdrop-filter: blur(20px);
      position: relative;
      overflow: hidden;
      transition: transform var(--transition-normal);
      border-left: 1px solid  rgba(0, 255, 128, 0.705);
    }

    .login-box:hover {
      transform: translateY(-4px);
    }


    .login-box::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: radial-gradient(circle at 20% 80%, rgba(8, 102, 255, 0.05) 0%, transparent 50%);
      pointer-events: none;
    }

    .text-center {
      text-align: center !important;
    }

    .mb-4 {
      margin-bottom: 1.5rem !important;
    }

    /* Logo Frame - Premium */
    .logo-frame {
      background: transparent;
      border-radius: 0;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-shadow: none;
      transition: box-shadow 220ms ease, transform 220ms ease;
      transform-style: preserve-3d;
      position: relative;
      overflow: hidden;
      border: 0;
      margin-bottom: 1.5rem;
    }

    .logo-frame::before {
      content: none;
    }

    .logo-frame:hover {
      transform: translateY(-1px);
      box-shadow: none;
    }

    .logo-img {
      height: clamp(60px, 8vw, 70px);
      width: auto;
      display: block;
      filter: drop-shadow(0 2px 6px rgba(6, 3, 22, 0.35));
      position: relative;
      border-radius: 16px;
      z-index: 2;
      transition: filter 220ms ease;
    }

    .logo-frame:hover .logo-img {
      filter: drop-shadow(0 3px 8px rgba(6, 3, 22, 0.42));
    }

    /* Headings */
    .h3 {
      font-size: clamp(1.75rem, 4vw, 2.25rem) !important;
      font-weight: 700 !important;
      line-height: 1.2 !important;
      color: var(--text-dark) !important;
      margin-bottom: 0.5rem !important;
      background: var(--gradient-primary);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .subtitle-text {
      font-weight: 400 !important;
      font-size: clamp(0.7rem, 2vw, 1.25rem) !important;
      margin-top: -0.7rem !important;
      display: block;
    }

    /* Form Elements */
    .form-label {
      font-weight: 600 !important;
      color: var(--text-dark) !important;
      margin-bottom: 0.5rem !important;
      font-size: 0.95rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .form-label:before {
      content: '•';
      color: var(--success-green);
      font-size: 1.5rem;
      line-height: 0;
    }

    .form-control {
      border-radius: var(--border-radius-sm) !important;
      padding: 0.875rem 1.25rem !important;
      border: 2px solid #E5E7EB !important;
      font-size: 1rem !important;
      transition: all var(--transition-fast) !important;
      background: white !important;
      height: auto !important;
    }

    .form-control:focus {
      border-color: var(--primary-blue) !important;
      box-shadow: 0 0 0 4px rgba(8, 102, 255, 0.1) !important;
      outline: none !important;
      background: white !important;
    }

    .form-control::placeholder {
      color: #9CA3AF !important;
      opacity: 0.8 !important;
    }

    .input-group {
      border-radius: var(--border-radius-sm) !important;
      overflow: hidden !important;
    }

    .input-group-text {
      background: var(--gradient-primary) !important;
      border: none !important;
      color: white !important;
      padding: 0.875rem 1.25rem !important;
      font-weight: 500 !important;
    }

    .merchant-phone-group {
      position: relative;
      flex-wrap: nowrap !important;
    }

    .merchant-phone-group .merchant-phone-flag {
      position: absolute;
      left: 74px;
      top: 50%;
      width: 22px;
      height: 15px;
      transform: translateY(-50%);
      border-radius: 2px;
      object-fit: cover;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
      pointer-events: none;
      z-index: 8;
    }

    .merchant-phone-group .merchant-phone-code {
      position: absolute;
      left: 104px;
      top: 50%;
      transform: translateY(-50%);
      color: #31466f;
      font-size: 0.95rem;
      font-weight: 800;
      pointer-events: none;
      z-index: 8;
    }

    .merchant-phone-group #telephone {
      padding-left: 6.25rem !important;
      padding-right: 1.25rem !important;
      position: relative;
      z-index: 1 !important;
    }

    .merchant-phone-group #telephone:focus {
      z-index: 1 !important;
    }

    /* Premium Section */
    .premium-section {
      background: linear-gradient(135deg, rgba(8, 102, 255, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%) !important;
      border: 2px solid rgba(8, 102, 255, 0.1) !important;
      border-radius: var(--border-radius) !important;
      padding: clamp(1.5rem, 3vw, 2rem) !important;
      position: relative !important;
      overflow: hidden !important;
    }

    .premium-section::before {
      content: 'PREMIUM+ OFFERT';
      position: absolute;
      top: 36px;
      right: -36px;
      background: var(--gradient-premium);
      color: #ffffff;
      font-size: 11px;
      font-weight: 900;
      padding: 4px 35px;
      letter-spacing: 0.7px;
      transform: rotate(45deg);
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
      text-transform: uppercase;
      white-space: nowrap;
      z-index: 2;
      pointer-events: none;
    }

    .text-primary {
      color: var(--primary-blue) !important;
    }

    /* Document Upload Area */
    .document-upload-area {
      border: 3px dashed rgba(8, 102, 255, 0.2);
      border-radius: var(--border-radius);
      padding: clamp(1.5rem, 3vw, 2.5rem);
      text-align: center;
      cursor: pointer;
      transition: all var(--transition-normal);
      background: rgba(248, 250, 252, 0.8);
      position: relative;
      overflow: hidden;
    }

    .document-upload-area:hover {
      border-color: var(--primary-blue);
      background: rgba(8, 102, 255, 0.03);
      transform: translateY(-2px);
    }

    .document-upload-area.dragover {
      border-color: var(--primary-blue);
      background: rgba(8, 102, 255, 0.08);
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0%, 100% { border-color: rgba(8, 102, 255, 0.2); }
      50% { border-color: var(--primary-blue); }
    }

    .bi-cloud-upload {
      font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
      color: var(--primary-blue) !important;
      margin-bottom: 1rem !important;
      opacity: 0.8;
    }

    .file-preview {
      margin-top: 1rem;
      padding: 1rem;
      border-radius: var(--border-radius-sm);
      background: white;
      border: 2px solid var(--success-green);
      color: var(--text-dark);
      font-weight: 600;
      display: flex;
      justify-content: space-between;
      align-items: center;
      animation: slideIn 0.3s ease-out;
      box-shadow: var(--shadow-sm);
    }

    @keyframes slideIn {
      from { opacity: 0; transform: translateY(-10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .upload-success {
      margin-top: 1rem;
      padding: 1rem;
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
      border: 2px solid var(--success-green);
      border-radius: var(--border-radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      font-weight: 600;
      color: var(--success-green);
      animation: fadeInUp 0.5s ease;
    }

    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .upload-success i {
      font-size: 1.4rem;
      color: var(--success-green);
    }

    /* Buttons */
    .btn {
      border-radius: var(--border-radius-sm) !important;
      padding: 0.875rem 2rem !important;
      font-weight: 600 !important;
      font-size: 1rem !important;
      transition: all var(--transition-normal) !important;
      border: none !important;
      position: relative;
      overflow: hidden;
    }

    .btn-primary {
      background: var(--gradient-primary) !important;
      color: white !important;
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(8, 102, 255, 0.3);
    }

    .btn-primary:active {
      transform: translateY(0);
    }

    .btn-outline-primary {
      background: transparent !important;
      border: 2px solid var(--primary-blue) !important;
      color: var(--primary-blue) !important;
    }

    .btn-outline-primary:hover {
      background: var(--primary-blue) !important;
      color: white !important;
      transform: translateY(-2px);
    }

    .btn-lg {
      padding: 1rem 2.5rem !important;
      font-size: 1.125rem !important;
    }

    /* Progress Bar */
    .progress {
      height: 8px !important;
      border-radius: 4px !important;
      background: rgba(8, 102, 255, 0.1) !important;
      overflow: hidden !important;
      margin-top: 0.75rem !important;
    }

    .progress-bar {
      background: var(--gradient-primary) !important;
      border-radius: 4px !important;
      transition: width 0.6s ease !important;
    }

    /* Modal */
    .cgu-modal {
      display: none;
      position: fixed;
      z-index: 1050;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0,0,0,0.5);
      -webkit-backdrop-filter: blur(4px);
      backdrop-filter: blur(4px);
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .cgu-modal-content {
      background: white;
      margin: auto;
      padding: clamp(1.5rem, 3vw, 2.5rem);
      border-radius: var(--border-radius);
      width: 100%;
      max-width: 600px;
      max-height: 80vh;
      overflow-y: auto;
      position: relative;
      box-shadow: var(--shadow-lg);
      animation: modalFadeIn 0.3s ease-out;
    }

    @keyframes modalFadeIn {
      from { opacity: 0; transform: translateY(-20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .close-modal {
      position: absolute;
      top: 1rem;
      right: 1.5rem;
      font-size: 2rem;
      cursor: pointer;
      color: var(--text-light);
      transition: color var(--transition-fast);
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
    }

    .close-modal:hover {
      color: var(--text-dark);
      background: rgba(0,0,0,0.05);
    }

    .legal-modal-content {
      max-width: 860px;
      padding: 0;
      overflow: hidden;
    }

    .legal-modal-scroll {
      max-height: 80vh;
      overflow-y: auto;
      padding: clamp(1.5rem, 3vw, 2.5rem);
    }

    .legal-hero {
      padding: 1.25rem 1.5rem;
      border-radius: 18px;
      background: linear-gradient(135deg, rgba(8, 102, 255, 0.11), rgba(0, 212, 255, 0.12));
      border: 1px solid rgba(8, 102, 255, 0.14);
      margin-bottom: 1.25rem;
    }

    .legal-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      padding: 0.35rem 0.7rem;
      border-radius: 999px;
      background: rgba(16, 185, 129, 0.12);
      color: #047857;
      font-size: 0.78rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      margin-bottom: 0.85rem;
    }

    .legal-hero h2 {
      margin: 0 0 0.5rem;
      color: #0f172a;
      font-weight: 800;
      line-height: 1.2;
    }

    .legal-hero p {
      margin: 0;
      color: #475569;
    }

    .legal-section {
      border: 1px solid #e5e7eb;
      border-radius: 16px;
      padding: 1rem;
      margin-bottom: 0.85rem;
      background: #ffffff;
    }

    .legal-section h3 {
      display: flex;
      align-items: center;
      gap: 0.55rem;
      color: #0f172a;
      font-size: 1.02rem;
      font-weight: 800;
      margin-bottom: 0.65rem;
    }

    .legal-section h3 i {
      color: var(--primary-blue);
    }

    .legal-section p,
    .legal-section li {
      color: #475569;
      font-size: 0.95rem;
      line-height: 1.65;
    }

    .legal-section ul {
      padding-left: 1.2rem;
      margin: 0;
    }

    .legal-alert {
      border-left: 4px solid #0ea5e9;
      background: #f0f9ff;
      color: #0c4a6e;
      border-radius: 12px;
      padding: 0.9rem 1rem;
      margin: 1rem 0;
      line-height: 1.6;
    }

    .legal-danger {
      border-left-color: #f59e0b;
      background: #fffbeb;
      color: #78350f;
    }

    .legal-footer-note {
      color: #64748b;
      font-size: 0.86rem;
      line-height: 1.55;
      margin: 1rem 0 0;
      text-align: center;
    }

    .legal-links-note {
      margin-top: 0.75rem;
      padding: 0.85rem 1rem;
      border: 1px solid rgba(8, 102, 255, 0.14);
      border-radius: 14px;
      background: rgba(8, 102, 255, 0.04);
      color: #475569;
      font-size: 0.92rem;
      line-height: 1.55;
    }

    .legal-links-note a {
      font-weight: 800;
      text-decoration: none;
    }

    /* Utility Classes */
    .hidden-preview {
      display: none !important;
    }

    .fw-medium {
      font-weight: 500 !important;
    }

    .fw-bold {
      font-weight: 700 !important;
    }

    .text-muted {
      color: var(--text-light) !important;
    }

    .d-none {
      display: none !important;
    }

    .d-flex {
      display: flex !important;
    }

    .justify-content-between {
      justify-content: space-between !important;
    }

    .align-items-center {
      align-items: center !important;
    }

    .mb-0 {
      margin-bottom: 0 !important;
    }

    .mt-4 {
      margin-top: 1.5rem !important;
    }

    .mt-3 {
      margin-top: 1rem !important;
    }

    .mb-3 {
      margin-bottom: 1rem !important;
    }

    .mb-2 {
      margin-bottom: 0.5rem !important;
    }

    .me-2 {
      margin-right: 0.5rem !important;
    }

    .small {
      font-size: 0.875rem !important;
    }

    .display-4 {
      font-size: 3.5rem !important;
    }

    /* Alert Messages */
    .alert {
      border-radius: var(--border-radius-sm) !important;
      border: none !important;
      padding: 1rem 1.25rem !important;
      font-weight: 500 !important;
      box-shadow: var(--shadow-sm) !important;
      animation: slideIn 0.3s ease-out;
    }

    .alert-success {
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%) !important;
      color: var(--success-green) !important;
      border-left: 4px solid var(--success-green) !important;
    }

    .alert-danger {
      background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%) !important;
      color: #EF4444 !important;
      border-left: 4px solid #EF4444 !important;
    }

    /* Form Check */
    .form-check-input {
      width: 1.2em !important;
      height: 1.2em !important;
      margin-top: 0.2em !important;
      border: 2px solid #D1D5DB !important;
    }

    .form-check-input:checked {
      background-color: var(--primary-blue) !important;
      border-color: var(--primary-blue) !important;
    }

    .form-check-input:focus {
      box-shadow: 0 0 0 4px rgba(8, 102, 255, 0.1) !important;
    }
    /* Validation des champs */
.form-control.is-invalid {
    border-color: var(--error-red) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23EF4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23EF4444' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
    padding-right: calc(1.5em + .75rem) !important;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.25) !important;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: .25rem;
    font-size: .875em;
    color: var(--error-red) !important;
    font-weight: 500;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Style pour les labels des champs invalides */
.form-control.is-invalid + .input-group-text,
.form-control.is-invalid ~ .input-group-text {
    border-color: var(--error-red) !important;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
}

/* Animation pour les erreurs */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.form-control.is-invalid {
    animation: shake 0.5s ease-in-out;
}

    /* Grid System */
    .row {
      --bs-gutter-x: 1.5rem !important;
      --bs-gutter-y: 1rem !important;
    }

    .g-3 {
      --bs-gutter-x: 1rem !important;
      --bs-gutter-y: 1rem !important;
    }

    /* Security Badge */
    .security-badge {
      background: rgba(8, 102, 255, 0.1);
      border-radius: var(--border-radius-sm);
      padding: 0.75rem;
      color: var(--primary-blue);
      font-size: 0.875rem;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
      body {
        padding: 10px;
      }
      
      .login-box {
        padding: 1.25rem;
      }
      
      .document-upload-area {
        padding: 1.5rem;
      }
      
      .form-control {
        padding: 0.75rem 1rem !important;
      }
      
      .input-group-text {
        padding: 0.75rem 1rem !important;
      }
      
      .btn {
        padding: 0.75rem 1.5rem !important;
      }
      
      .btn-lg {
        padding: 0.875rem 2rem !important;
      }
      
      .premium-section::before {
        font-size: 10px;
        right: -22px;
        top: 10px;
        padding: 3px 28px;
        transform: rotate(40deg);
      }
    }

    @media (max-width: 480px) {
      .row {
        --bs-gutter-x: 1rem !important;
      }
      
      .form-row {
        flex-direction: column;
        gap: 1rem;
      }
      
      .document-upload-area {
        padding: 1.25rem;
      }
      
      .bi-cloud-upload {
        font-size: 2.5rem !important;
      }
    }

    @media (min-width: 1200px) {
      .registration-container {
        max-width: 1100px;
      }
    }

    /* Loading Spinner */
    .spinner-border {
      width: 1rem !important;
      height: 1rem !important;
      border-width: 0.15em !important;
    }

    /* Link Styles */
    a {
      color: var(--primary-blue);
      text-decoration: none;
      transition: color var(--transition-fast);
      font-weight: 500;
    }

    a:hover {
      color: var(--primary-dark);
      text-decoration: underline;
    }

    /* Custom Scrollbar */
    ::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }

    ::-webkit-scrollbar-track {
      background: #F1F5F9;
      border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb {
      background: #CBD5E1;
      border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
      background: #94A3B8;
    }

    /* Print Styles */
    @media print {
      .login-box {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
      }
      
      .btn, .document-upload-area {
        display: none !important;
      }
    }