/* Premium Login Experience - 16/05/2025 */
/* Design ultra-professionnel avec animations optimisées et effets visuels de haute qualité */

/* ============= ANIMATIONS AVANCÉES ============= */
@keyframes pulse-subtle {
  0% { box-shadow: 0 0 0 0 rgba(38, 208, 206, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(38, 208, 206, 0); }
  100% { box-shadow: 0 0 0 0 rgba(38, 208, 206, 0); }
}

@keyframes float-refined {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes soft-glow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(38, 208, 206, 0.4)); }
  50% { filter: drop-shadow(0 0 6px rgba(38, 208, 206, 0.6)); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaling-subtle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

/* ============= FONDATIONS ============= */
/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8fafc;
  overflow-x: hidden;
  color: #334155;
  line-height: 1.5;
}

/* ============= LAYOUT PRINCIPAL ============= */
.login-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  z-index: 2;
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
}

.login-container {
  display: flex;
  width: 900px;
  height: auto;
  min-height: 520px;
  background-color: #fff;
  border-radius: 24px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.08), 
    0 10px 25px rgba(0, 0, 0, 0.05),
    0 0 1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  z-index: 1;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  animation: fade-in-up 0.8s ease-out forwards;
  transform-origin: center center;
}

.login-container:hover {
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.1), 
    0 15px 40px rgba(0, 0, 0, 0.06),
    0 0 1px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px) scale(1.01);
}

/* ============= PANNEAU D'INFO (GAUCHE) ============= */
.info-panel {
  width: 40%;
  background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
  color: white;
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
}

/* Couche d'effet grille */
.info-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
  z-index: 1;
}

/* Effet de lueur radiale */
.info-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at top left, rgba(26, 41, 128, 0.3), transparent 50%),
    radial-gradient(circle at bottom right, rgba(38, 208, 206, 0.4), transparent 70%);
  pointer-events: none;
  z-index: 2;
  animation: gradient-shift 15s ease infinite;
}

/* Contenu du panneau info */
.info-content {
  position: relative;
  z-index: 3;
  text-align: center;
  width: 100%;
}

.info-panel h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  letter-spacing: -0.5px;
  animation: fade-in-up 0.6s 0.2s both;
}

.info-panel p {
  font-size: 15px;
  opacity: 0.95;
  margin-bottom: 25px;
  line-height: 1.7;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  animation: fade-in-up 0.6s 0.3s both;
}

.envelope-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  position: relative;
  animation: float-refined 6s ease-in-out infinite;
}

.small-logo {
  width: 110px;
  height: auto;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.25));
  transition: all 0.3s ease;
  animation: soft-glow 5s infinite alternate;
}

.features {
  margin-top: 35px;
  animation: fade-in-up 0.6s 0.4s both;
}

.feature-item {
  display: flex;
  align-items: center;
  text-align: left;
  margin-bottom: 14px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 13px 16px;
  border-radius: 14px;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  border-left: 3px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.05),
    0 1px 2px rgba(0, 0, 0, 0.1);
  transform-origin: left center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.feature-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateX(5px) scale(1.03);
  border-left: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.1),
    0 2px 5px rgba(0, 0, 0, 0.1);
}

.feature-item i {
  margin-right: 12px;
  font-size: 18px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.95);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 12px;
}

.feature-item:hover i {
  transform: scale(1.15) rotate(5deg);
  background: rgba(255, 255, 255, 0.25);
}

.feature-item span {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

.feature-item:hover span {
  letter-spacing: 0.4px;
}

/* ============= PANNEAU DE FORMULAIRE (DROITE) ============= */
.form-panel {
  width: 60%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  background: white;
  position: relative;
  overflow: hidden;
}

/* Effet de lueur d'angle */
.form-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(26, 41, 128, 0.03) 0%, rgba(26, 41, 128, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.form-panel::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(38, 208, 206, 0.03) 0%, rgba(38, 208, 206, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

/* Logo et conteneur */
.vm-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  animation: fade-in-up 0.6s both;
}

.vm-logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 25px;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

.vm-logo:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.1));
}

/* ============= SÉLECTEUR DE LANGUE PREMIUM ============= */
.language-selector-centered {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  width: 100%;
  position: relative;
  animation: fade-in-up 0.6s 0.1s both;
}

/* Ligne d'accent sous le sélecteur */
.language-selector-centered::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #1a2980, #26d0ce);
  border-radius: 3px;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.language-selector-centered:hover::after {
  width: 70px;
  box-shadow: 0 2px 8px rgba(38, 208, 206, 0.3);
}

/* Groupe de boutons */
.language-selector-centered .btn-group {
  background: #f8fafc;
  border-radius: 30px;
  padding: 4px;
  overflow: hidden;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.03), 
    inset 0 0 0 1px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.language-selector-centered .btn-group:hover {
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.05), 
    inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

/* Boutons individuels */
.language-selector-centered .btn {
  border-radius: 26px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  border: none;
  position: relative;
  overflow: hidden;
  margin: 0 2px;
  z-index: 1;
  color: #4a5568;
  background-color: transparent;
}

/* Effet de brillance */
.language-selector-centered .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
      rgba(255, 255, 255, 0.1), 
      rgba(255, 255, 255, 0.2), 
      rgba(255, 255, 255, 0.1));
  background-size: 200% 100%;
  animation: shimmer 3s infinite linear;
  transform: translateX(-100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.language-selector-centered .btn:hover::before {
  opacity: 1;
}

/* Icône dans le bouton */
.language-selector-centered .btn i {
  margin-right: 7px;
  position: relative;
  top: 1px;
  transition: all 0.3s ease;
}

.language-selector-centered .btn:hover i {
  transform: scale(1.1) rotate(5deg);
}

/* État actif pour la langue sélectionnée */
.language-selector-centered .btn.active {
  background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
  color: white;
  transform: scale(1.05);
  box-shadow: 
    0 4px 15px rgba(26, 41, 128, 0.25),
    0 1px 3px rgba(26, 41, 128, 0.1);
}

.language-selector-centered .btn.active i {
  animation: scaling-subtle 2s infinite ease-in-out;
}

.language-selector-centered .btn:not(.active):hover {
  background-color: rgba(74, 144, 226, 0.08);
  color: #1a2980;
  transform: translateY(-1px) scale(1.02);
}

/* ============= FORMULAIRE DE LOGIN ============= */
.login-form {
  margin-top: 5px;
  position: relative;
  z-index: 1;
}

.form-group {
  margin-bottom: 22px;
  position: relative;
  animation: fade-in-up 0.5s both;
}

.form-group:nth-child(1) { animation-delay: 0.2s; }
.form-group:nth-child(2) { animation-delay: 0.3s; }
.form-group:nth-child(3) { animation-delay: 0.4s; }
.form-group:nth-child(4) { animation-delay: 0.5s; }

.input-with-icon {
  position: relative;
}

.input-with-icon .icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #1a2980;
  font-size: 18px;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.form-control {
  height: 56px;
  border-radius: 14px;
  border: 1px solid #e1e8f0;
  padding: 10px 16px 10px 48px;
  font-size: 15px;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  background-color: #f8fafc;
  width: 100%;
  font-weight: 400;
  color: #2d3748;
  letter-spacing: 0.2px;
  box-shadow: 
    0 2px 5px rgba(0, 0, 0, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.form-control:focus {
  border-color: #1a2980;
  box-shadow: 
    0 0 0 3px rgba(26, 41, 128, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  background-color: #fff;
  transform: translateY(-1px);
  outline: none;
}

.form-control:focus + .icon {
  color: #26d0ce;
  transform: translateY(-50%) scale(1.1);
}

.toggle-password {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #8896ab;
  transition: all 0.3s ease;
  z-index: 2;
  background: rgba(248, 250, 252, 0.8);
  padding: 5px;
  border-radius: 50%;
  font-size: 14px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password:hover {
  color: #1a2980;
  transform: translateY(-50%) scale(1.1);
  background: rgba(236, 242, 248, 0.9);
}

/* ============= CHECKBOX AMÉLIORÉ ============= */
.custom-checkbox {
  display: flex;
  align-items: center;
}

.custom-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1px solid #d1d7e0;
  border-radius: 6px;
  outline: none;
  margin-right: 10px;
  position: relative;
  cursor: pointer;
  background-color: #f9fafc;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.custom-checkbox input[type="checkbox"]:checked {
  background-color: #1a2980;
  border-color: #1a2980;
  animation: pulse-subtle 0.5s;
}

.custom-checkbox input[type="checkbox"]:checked::before {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 13px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.custom-checkbox input[type="checkbox"]:hover {
  border-color: #1a2980;
  background-color: rgba(26, 41, 128, 0.05);
}

.custom-checkbox label {
  font-size: 14px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.custom-checkbox input[type="checkbox"]:checked + label {
  color: #1a2980;
  font-weight: 500;
}

/* ============= BOUTON DE CONNEXION PREMIUM ============= */
.btn-primary {
  height: 56px;
  background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 5px 15px rgba(26, 41, 128, 0.2),
    0 3px 5px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
}

.btn-primary .btn-text {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.btn-primary .btn-text i {
  margin-left: 8px;
  font-size: 16px;
  transition: transform 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 8px 25px rgba(26, 41, 128, 0.25),
    0 3px 10px rgba(0, 0, 0, 0.1);
  background-image: linear-gradient(135deg, #102279 0%, #26d0ce 100%);
}

.btn-primary:hover .btn-text i {
  transform: translateX(4px);
}

/* Effet éclaircissant */
.btn-primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
  opacity: 0;
  transform: scale(0.5);
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.btn-primary:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* Effet brillant */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
      rgba(255, 255, 255, 0), 
      rgba(255, 255, 255, 0.2), 
      rgba(255, 255, 255, 0));
  background-size: 200% 100%;
  animation: shimmer 3s infinite linear;
  z-index: 0;
}

/* États de chargement du bouton */
.btn-primary .btn-loader {
  position: absolute;
  display: none;
}

.btn-primary.loading .btn-text {
  opacity: 0;
}

.btn-primary.loading .btn-loader {
  display: block;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============= ALERTE D'ERREUR STYLISÉE ============= */
.alert {
  padding: 16px;
  border-radius: 14px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  animation: fade-in-up 0.5s ease-out forwards;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.05),
    0 1px 2px rgba(0, 0, 0, 0.03);
  border: none;
}

.alert-danger {
  background-color: rgba(231, 76, 60, 0.08);
  color: #e74c3c;
  border-left: 4px solid #e74c3c;
}

.alert i {
  margin-right: 12px;
  font-size: 16px;
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.15);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* ============= BADGE SÉCURITÉ ÉLÉGANT ============= */
.secure-login {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  color: #64748b;
  font-size: 13px;
  padding: 8px 16px;
  background-color: rgba(16, 185, 129, 0.08);
  border-radius: 30px;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  animation: fade-in-up 0.6s 0.6s both;
}

.secure-login:hover {
  background-color: rgba(16, 185, 129, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.1);
}

.secure-login i {
  color: #10b981;
  margin-right: 8px;
  font-size: 14px;
  animation: scaling-subtle 3s infinite ease-in-out;
}

/* ============= COPYRIGHT AVEC ANIMATION SUBTILE ============= */
.copyright {
  text-align: center;
  margin-top: auto;
  color: #64748b;
  font-size: 13px;
  padding-top: 20px;
  animation: fade-in-up 0.6s 0.7s both;
}

.copyright:hover {
  color: #475569;
}

/* ============= OPTIMISATIONS RESPONSIVE ============= */
/* Grand écran */
@media (min-width: 1200px) {
  .login-container {
    width: 1000px;
    min-height: 560px;
  }
  
  .form-panel {
    padding: 50px;
  }
  
  .info-panel {
    padding: 50px 40px;
  }
}

/* Tablette */
@media (max-width: 992px) {
  .login-container {
    width: 95%;
    max-width: 700px;
  }
  
  .language-selector-centered .btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .form-panel {
    padding: 35px;
  }
  
  .info-panel {
    padding: 35px 25px;
  }
}

/* Mobile paysage */
@media (max-width: 768px) {
  body {
    background-color: #f8fafc;
  }
  
  .login-page {
    align-items: center;
    padding: 20px;
  }
  
  .login-container {
    flex-direction: column;
    height: auto;
    max-width: 500px;
    box-shadow: 
      0 15px 50px rgba(0, 0, 0, 0.1),
      0 5px 15px rgba(0, 0, 0, 0.05);
  }
  
  /* Masquer complètement le panneau d'information */
  .info-panel {
    display: none;
  }
  
  .form-panel {
    width: 100% !important;
    border-radius: 16px !important;
    padding: 35px 25px;
  }
  
  .vm-logo {
    max-width: 180px;
    margin-bottom: 20px;
  }
  
  .form-control {
    height: 54px;
  }
  
  .language-selector-centered {
    margin-bottom: 25px;
    padding-bottom: 15px;
  }
  
  .language-selector-centered .btn {
    padding: 7px 15px;
  }
}

/* Petit mobile */
@media (max-width: 480px) {
  .login-page {
    padding: 15px;
  }
  
  .login-container {
    width: 100%;
    box-shadow: 
      0 10px 30px rgba(0, 0, 0, 0.08),
      0 2px 8px rgba(0, 0, 0, 0.05);
  }
  
  .form-panel {
    padding: 30px 20px;
  }
  
  .vm-logo {
    max-width: 160px;
  }
  
  .form-control {
    height: 50px;
    font-size: 14px;
  }
  
  .btn-primary {
    height: 50px;
    font-size: 15px;
  }
  
  .language-selector-centered .btn {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .language-selector-centered::after {
    width: 40px;
  }
  
  .secure-login {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .copyright {
    font-size: 12px;
  }
}

/* Très petit mobile */
@media (max-width: 350px) {
  .login-page {
    padding: 10px;
  }
  
  .form-panel {
    padding: 25px 15px;
  }
  
  .language-selector-centered .btn {
    padding: 5px 10px;
    font-size: 12px;
  }
  
  .vm-logo {
    max-width: 140px;
  }
  
  .form-control {
    height: 48px;
    font-size: 13px;
  }
  
  .btn-primary {
    height: 48px;
    font-size: 14px;
  }
  
  .secure-login {
    font-size: 11px;
  }
}

/* ============= SUPPORT RTL COMPLET ============= */
html[dir="rtl"] .language-selector-centered .btn i {
  margin-right: 0;
  margin-left: 7px;
}

html[dir="rtl"] .input-with-icon .icon {
  left: auto;
  right: 16px;
}

html[dir="rtl"] .input-with-icon input {
  padding-left: 16px;
  padding-right: 48px;
  text-align: right;
}

html[dir="rtl"] .toggle-password {
  right: auto;
  left: 16px;
}

html[dir="rtl"] .custom-checkbox label {
  padding-left: 0;
  padding-right: 30px;
}

html[dir="rtl"] .custom-checkbox input[type="checkbox"] {
  margin-right: 0;
  margin-left: 10px;
}

html[dir="rtl"] .btn-text i {
  margin-left: 0;
  margin-right: 8px;
}

html[dir="rtl"] .alert i {
  margin-right: 0;
  margin-left: 12px;
}

html[dir="rtl"] .secure-login i {
  margin-right: 0;
  margin-left: 8px;
}

html[dir="rtl"] .feature-item {
  border-left: none;
  border-right: 3px solid rgba(255, 255, 255, 0.25);
}

html[dir="rtl"] .feature-item:hover {
  transform: translateX(-5px) scale(1.03);
  border-right: 3px solid rgba(255, 255, 255, 0.8);
}

html[dir="rtl"] .feature-item i {
  margin-right: 0;
  margin-left: 12px;
}

/* ============= ACCESSIBILITÉ ============= */
/* Support pour navigation clavier */
.form-control:focus,
.btn:focus,
.custom-checkbox input[type="checkbox"]:focus {
  outline: 2px solid rgba(26, 41, 128, 0.5);
  outline-offset: 2px;
}

/* Préférence pour animations réduites */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}