/* Itineria Brand Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Corrections spécifiques pour Android et zoom */
html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  width: 100vw;
  overflow-x: hidden;
  touch-action: manipulation;
}

body {
  width: 100vw;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  touch-action: manipulation;
}

:root {
  /* Modern Black & White Theme */
  --primary-black: #000000;
  --primary-white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Semantic colors */
  --primary: var(--primary-black);
  --secondary: var(--gray-600);
  --background: var(--primary-white);
  --text-primary: var(--primary-black);
  --text-secondary: var(--gray-600);
  --accent: var(--primary-black);

  /* Compatibility variables for old turquoise references */
  --brand-turquoise: var(--gray-800); /* #1e293b - bleu très foncé */
  --turquoise-light: var(--gray-700); /* #334155 - bleu foncé */
  --turquoise-dark: var(--gray-900); /* #0f172a - le plus foncé */
  
  /* Compatibility variables for old navy references */
  --brand-navy: var(--gray-900); /* #0f172a - le plus foncé */
  --navy-light: var(--gray-800); /* #1e293b - bleu très foncé */
  --navy-dark: var(--primary-black); /* #000000 - noir complet */
  
  /* Gold accent for special elements */
  --brand-gold: #f59e0b;
  --brand-gold-light: #fbbf24;
  --brand-gold-dark: #d97706;
  --border: var(--gray-200);
  --success-green: #22c55e;
  --warning-yellow: #f59e0b;
  --error-red: #ef4444;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
}

/* Typography */
body {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  overflow-x: hidden;
  background: var(--background);
  font-weight: 400;
}

/* Brand Typography */
.brand-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}


.sparkle {
  position: absolute;
  top: 0px;
  right: -15px;
  width: 24px;
  height: 24px;
}


.sparkle svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Loading Animation */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--brand-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--brand-gray-300);
  border-top: 4px solid var(--brand-white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 2rem;
}

.loading-text {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
}

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

/* Responsive utilities */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  /* Modal mobile adjustments */
  .login-modal {
    padding: 1rem !important;
    margin: 1rem !important;
    max-height: 90vh !important;
  }

  .auth-branding-column {
    padding: 1rem !important;
  }

  .auth-logo {
    margin-bottom: 1rem !important;
  }

  /* Social buttons icons for mobile */
  .social-buttons-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
  }

  .social-btn-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 1.2rem;
    position: relative;
  }

  .social-btn-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }

  .social-btn-icon.social-btn-google {
    background: #db4437;
    color: white;
  }

  .social-btn-icon.social-btn-facebook {
    background: #4267b2;
    color: white;
  }

  .social-btn-icon.social-btn-discord {
    background: #5865f2;
    color: white;
  }
}

@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-family: 'Sora', sans-serif;
  font-size: 48px;
  position: relative;
  display: inline-block;
  color: var(--primary-black);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.02em;
}

.logo i {
  color: var(--primary-black);
  font-size: 2.2rem;
}

/* Desktop Navigation */
.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 1rem;
}

.nav-links a:hover {
  color: var(--primary-black);
  font-weight: 600;
}

/* Desktop Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.language-selector {
  position: relative;
}

.language-btn {
  background: none;
  border: none;
  color: var(--primary-black);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.language-btn:hover {
  background: var(--gray-50);
  color: var(--primary-black);
  border-color: var(--primary-black);
}

.language-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid var(--brand-light-gray);
  border-radius: 12px;
  min-width: 180px;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  overflow: hidden;
  margin-top: 0.5rem;
}



.language-option:last-child {
  border-bottom: none;
}


.language-option .flag {
  font-size: 1.2rem;
}
.language-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--brand-light-gray);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 48px;
  text-align: center;
}

.language-option:hover {
  background: var(--brand-light-gray);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(13, 15, 14, 0.1);
}

.language-option.active {
  background: var(--gray-100);
}

/* Mobile Actions */
.nav-mobile {
  display: none;
  align-items: center;
  gap: 1rem;
}

.language-selector-mobile {
  position: relative;
}

.language-btn-mobile {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid rgba(31, 42, 68, 0.1);
}

.language-btn-mobile:hover {
  background: var(--brand-light-gray);
  color: var(--gray-800);
}

.language-menu-mobile {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid var(--brand-light-gray);
  border-radius: 12px;
  min-width: 180px;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  overflow: hidden;
  margin-top: 0.5rem;
}

.btn-mobile {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.btn-mobile i {
  margin: 0;
}

/* Hero Section */
.hero {
  min-height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--primary-white);
  overflow: hidden;
  padding: 100px 0 60px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 80%, rgba(0, 0, 0, 0.02) 0%, transparent 50%), radial-gradient(circle at 70% 20%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
  animation: subtle-shift 20s ease-in-out infinite;
}

@keyframes subtle-shift {
  0%, 100% { transform: translateX(0px) scale(1); }
  50% { transform: translateX(10px) scale(1.01); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-top: 100px;
}

.hero-text {
  opacity: 0;
  transform: translateY(50px);
  animation: slideUpFade 1s ease-out 0.5s forwards;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary-black);
  margin-bottom: 1.5rem;
  font-family: 'Sora', sans-serif;
  letter-spacing: -0.03em;
}

.hero-title .highlight {
  color: var(--primary-black);
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--brand-black);
  margin-bottom: 1.5rem;
  line-height: 1.4;
  max-width: 600px;
  font-weight: 400;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--brand-gray-600);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 600px;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.stat-item {
  text-align: center;
  color: white;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.3rem;
  color: var(--primary-black);
  font-family: 'Sora', sans-serif;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-600);
  font-weight: 500;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Map Container */
.hero-map {
  position: relative;
  height: 500px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transform: translateX(30px) scale(0.95);
  animation: slideInScale 1s ease-out 0.6s forwards;
  border: 3px solid var(--primary-black);
}

#map {
  height: 100%;
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: 'Sora', sans-serif;
}

.btn-primary {
  background: var(--primary-black);
  color: white;
  box-shadow: var(--shadow-md);
  transform: translateY(0);
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--gray-800);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-black);
  border: 2px solid var(--primary-black);
}

.btn-secondary:hover {
  background: var(--primary-black);
  color: white;
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--gray-50);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-black);
  margin-bottom: 1.5rem;
  font-family: 'Sora', sans-serif;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--gray-600);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 2px solid var(--border);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(26, 200, 194, 0.1), transparent);
  transition: left 0.6s ease;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-black);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-black);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  color: white;
  font-size: 1.6rem;
  box-shadow: var(--shadow-md);
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-black);
  margin-bottom: 1rem;
  font-family: 'Sora', sans-serif;
  letter-spacing: -0.01em;
}

.feature-description {
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 1rem;
  font-weight: 400;
}

/* Demo Section */
.demo-form {
  background: white;
  padding: 4rem 3rem;
  border-radius: 32px;
  max-width: 1000px;
  margin: 0 auto;
  box-shadow: var(--shadow-xl);
  border: 3px solid var(--primary-black);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-weight: 600;
  color: var(--primary-black);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Sora', sans-serif;
}

.form-label i {
  color: var(--primary-black);
}

.form-input, .form-select {
  padding: 1.25rem;
  border: 2px solid var(--border);
  border-radius: 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--gray-50);
  font-family: 'Sora', sans-serif;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary-black);
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.interest-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--gray-50);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-weight: 500;
}

.interest-item:hover {
  background: white;
  border-color: var(--primary-black);
  transform: translateY(-2px);
}

.interest-item i {
  color: var(--primary-black);
  font-size: 1.1rem;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  padding: 3.5rem 2.5rem;
  border-radius: 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  border: 3px solid var(--border);
  transition: all 0.3s ease;
}

.pricing-card.popular {
  border-color: var(--primary-black);
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.pricing-card.popular::before {
  content: 'POPULAIRE';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-black);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-black);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
  z-index: 2;
}

.pricing-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary-black);
  font-family: 'Sora', sans-serif;
}

.pricing-price {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary-black);
  margin-bottom: 0.5rem;
  font-family: 'Sora', sans-serif;
}

.pricing-unit {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2.5rem;
  text-align: left;
}

.pricing-features li {
  padding: 0.75rem 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.05rem;
}

.pricing-features i {
  color: var(--primary-black);
  width: 20px;
  font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
  background: var(--primary-black);
  padding: 8rem 0;
}

.cta-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 2rem;
  font-family: 'Sora', sans-serif;
  letter-spacing: -0.02em;
}

.cta-subtitle {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3rem;
  font-weight: 400;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-facebook { background: #1877f2; color: white; }
.btn-twitter { background: #1da1f2; color: white; }
.btn-google { background: #ea4335; color: white; }
.btn-email {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-social:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: white;
  padding: 5rem 0 2rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: white;
  font-family: 'Sora', sans-serif;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.footer-section a:hover {
  color: var(--gray-300);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInScale {
  from {
    opacity: 0;
    transform: translateX(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-map {
    height: 350px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 1.5rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  /* Hide desktop navigation */
  .nav-links,
  .nav-actions {
    display: none;
  }

  /* Show mobile navigation */
  .nav-mobile {
    display: flex;
  }

  .social-buttons {
    flex-direction: column;
    align-items: center;
  }
}

.autocomplete-dropdown {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  background: white;
  z-index: 9999;
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
  width: 100%;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.autocomplete-dropdown li {
  padding: 10px;
  cursor: pointer;
}

.autocomplete-dropdown li:hover {
  background-color: #f0f0f0;
}

/* Login Modal Overlay - Modern Horizontal Design */
.login-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;

  /* Corrections Android */
  min-width: 100vw;
  max-width: 100vw;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Modal Container - Horizontal Layout */
.login-modal {
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 1200px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  box-shadow:
  0 25px 50px -12px rgba(0, 0, 0, 0.25),
  0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: scale(0.95) translateY(30px);
  animation: modalSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Box-sizing universel pour le modal */
.login-modal *,
.login-modal *::before,
.login-modal *::after {
  box-sizing: border-box;
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.95) translateY(30px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Modal Header - Minimal with close button */
.login-modal-header {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

/* Modal Body - Horizontal Layout */
.login-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
  flex: 1;
  overflow: hidden;
}

/* Left Column - Branding & Social */
.auth-branding-column {
  background: linear-gradient(135deg, var(--primary-black) 0%, var(--gray-800) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px;
  color: white;
}

.auth-branding-column::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
  radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
  radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.auth-branding-content {
  position: relative;
  z-index: 2;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  backdrop-filter: blur(10px);
}

.auth-logo h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.branding-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.branding-subtitle {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0.9;
  font-weight: 400;
}

.social-section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  opacity: 0.95;
}

.social-buttons-vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.social-buttons-vertical .social-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
}

.social-buttons-vertical .social-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.social-buttons-vertical .social-btn i {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

/* Last used badge for OAuth buttons */
.last-used-badge {
  margin-left: auto;
  background: rgba(245, 158, 11, 0.2);
  color: var(--brand-gold);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  backdrop-filter: blur(5px);
  animation: fadeInBadge 0.3s ease-in-out;
}

.last-used-badge-mobile {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  background: var(--brand-gold);
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes fadeInBadge {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseBadge {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.branding-footer {
  margin-top: auto;
}

.branding-footer .security-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  backdrop-filter: blur(10px);
}

/* Close Button */
.login-modal-close {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(31, 42, 68, 0.1);
  color: var(--text-primary);
  cursor: pointer;
  padding: 12px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  backdrop-filter: blur(10px);
  font-size: 16px;
}

.login-modal-close:hover {
  background: var(--gray-800);
  color: white;
  transform: scale(1.05);
  border-color: var(--gray-800);
}

/* Right Column - Form */
.auth-form-column {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  position: relative;
}

.auth-tabs-header {
  padding: 32px 40px 0 40px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.auth-tabs {
  display: flex;
  background: rgba(248, 250, 252, 0.6);
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
  width: fit-content;
}

.auth-tab {
  padding: 12px 24px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.auth-tab.active {
  background: white;
  color: var(--primary-black);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-tab:hover:not(.active) {
  color: #475569;
  background: rgba(255, 255, 255, 0.8);
}

.auth-form-content {
  padding: 40px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  scroll-behavior: smooth;
  max-height: calc(100vh - 120px);
  width: 100%;
  box-sizing: border-box;
}

.auth-form-content::-webkit-scrollbar {
  width: 6px;
}

.auth-form-content::-webkit-scrollbar-track {
  background: rgba(243, 244, 246, 0.5);
  border-radius: 3px;
}

.auth-form-content::-webkit-scrollbar-thumb {
  background: rgba(26, 200, 194, 0.3);
  border-radius: 3px;
  transition: background 0.3s ease;
}

.auth-form-content::-webkit-scrollbar-thumb:hover {
  background: rgba(26, 200, 194, 0.6);
}

.auth-tab-content {
  display: none;
}

.auth-tab-content.active {
  display: block;
  animation: slideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-header {
  margin-bottom: 32px;
}

.form-title {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: -0.025em;
}

.form-subtitle {
  color: #64748b;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
}

/* Messages */
.auth-message {
  display: none;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid;
}

.auth-error {
  background: rgba(254, 242, 242, 0.9);
  color: #dc2626;
  border-color: rgba(254, 202, 202, 0.6);
}

.auth-success {
  background: rgba(240, 253, 244, 0.9);
  color: #16a34a;
  border-color: rgba(187, 247, 208, 0.6);
}

/* Forms */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  font-weight: 600;
  color: #374151;
  font-size: 14px;
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.input-wrapper {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.input-wrapper input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
  max-width: 100%;
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--primary-black);
  box-shadow: 0 0 0 4px rgba(26, 200, 194, 0.1);
}

.input-wrapper input:hover:not(:focus) {
  border-color: #cbd5e1;
}

.input-wrapper input::placeholder {
  color: #94a3b8;
}

.password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.password-toggle:hover {
  color: var(--gray-800);
  background: rgba(26, 200, 194, 0.1);
}

/* Password strength */
.password-strength {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.strength-bar {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0%;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.strength-text {
  font-size: 12px;
  color: #64748b;
}

/* Form options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}

.checkbox-wrapper input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: white;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--primary-black);
  border-color: var(--primary-black);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom::after {
  content: "✓";
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.forgot-password {
  color: var(--primary-black);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: var(--gray-600);
}

/* Buttons */
.auth-btn {
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.auth-btn-primary {
  background: linear-gradient(135deg, var(--primary-black) 0%, var(--gray-800) 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.auth-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px -2px rgba(26, 200, 194, 0.3);
}

.auth-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-btn-secondary {
  background: #f8fafc;
  color: #475569;
  border: 2px solid #e2e8f0;
}

.auth-btn-secondary:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Prevent horizontal overflow on all auth elements */
  .auth-form,
  .auth-form *,
  .form-group,
  .form-group *,
  .input-wrapper,
  .input-wrapper * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .login-modal-overlay {
    padding: 8px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    width: 100vw !important;
    min-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    position: fixed !important;
    top: 0 !important;
  }

  .login-modal {
    max-width: calc(100vw - 16px) !important;
    width: calc(100vw - 16px) !important;
    min-width: calc(100vw - 16px) !important;
    border-radius: 16px;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
    max-height: calc(100vh - 16px);
    display: flex;
    flex-direction: column;
    position: relative;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
  }

  .login-modal-body {
    grid-template-columns: 1fr;
    min-height: auto;
    max-height: none;
    height: auto;
    flex: 1;
    overflow-y: auto;
  }

  .auth-branding-column {
    padding: 32px 24px;
    min-height: 300px;
    justify-content: flex-start;
  }

  .branding-title {
    font-size: 24px;
  }

  /* Mobile-specific input adjustments */
  .input-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .input-wrapper input {
    padding: 14px 16px;
    font-size: 16px; /* Prevent iOS zoom on focus */
    border-width: 1px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .password-toggle {
    right: 12px;
    padding: 6px;
    font-size: 16px;
    touch-action: manipulation;
  }

  .form-group {
    gap: 6px;
  }

  .auth-tabs-header {
    padding: 24px 20px 0 20px;
  }

  .auth-tab {
    padding: 10px 20px;
    font-size: 13px;
  }

  .branding-subtitle {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .auth-social-section {
    display: none; /* Hide on mobile, forms take priority */
  }

  .auth-tabs-header {
    padding: 24px 24px 0 24px;
  }

  .auth-form-content {
    padding: 20px 16px;
    max-height: none;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    min-height: auto;
  }

  .form-title {
    font-size: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  /* Force all elements to fit within viewport */
  .auth-form,
  .auth-form *,
  .form-group,
  .form-group *,
  .input-wrapper,
  .input-wrapper *,
  .auth-btn,
  .password-toggle {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .login-modal-overlay {
    padding: 8px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .login-modal {
    max-width: calc(100vw - 16px);
    width: calc(100vw - 16px);
    border-radius: 12px;
    margin: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .login-modal-header {
    top: 16px;
    right: 16px;
  }

  .auth-branding-column {
    padding: 24px 16px;
    min-height: 180px;
  }

  .auth-logo h1 {
    font-size: 22px;
  }

  /* Enhanced mobile input styles */
  .input-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .input-wrapper input {
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 8px;
    min-height: 48px; /* Ensure minimum touch target */
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .password-toggle {
    right: 10px;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .auth-form {
    gap: 18px;
  }

  .form-group {
    gap: 4px;
  }

  .form-group label {
    font-size: 13px;
  }

  .auth-tabs-header {
    padding: 20px 16px 0 16px;
  }

  .auth-tabs {
    width: 100%;
    justify-content: center;
  }

  .auth-tab {
    padding: 8px 16px;
    font-size: 12px;
    flex: 1;
    text-align: center;
  }

  .branding-title {
    font-size: 20px;
  }

  .branding-subtitle {
    font-size: 14px;
  }

  .auth-tabs-header {
    padding: 20px 20px 0 20px;
  }

  .auth-form-content {
    padding: 20px;
    max-height: none;
    height: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .form-title {
    font-size: 20px;
  }

  .input-wrapper input {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 14px 16px;
  }

  .password-toggle {
    right: 12px;
  }
}

/* Ajustements pour écrans très petits en hauteur (paysage mobile) */
@media (max-height: 600px) {
  .login-modal {
    max-height: calc(100vh - 16px);
    margin: 8px;
    display: flex;
    flex-direction: column;
  }

  .login-modal-body {
    min-height: auto;
    max-height: none;
    height: auto;
    flex: 1;
    overflow-y: auto;
  }

  .auth-branding-column {
    min-height: 120px;
    padding: 20px;
  }

  .auth-form-content {
    padding: 20px;
    max-height: none;
    height: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .form-header {
    margin-bottom: 16px;
  }

  .form-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .form-subtitle {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .form-group {
    margin-bottom: 16px;
  }

  .auth-btn {
    padding: 14px 24px;
    margin-top: 16px;
    font-size: 16px;
    min-height: 50px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    touch-action: manipulation;
  }

  /* Checkbox improvements for mobile */
  .checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    line-height: 1.4;
    font-size: 14px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .checkbox-custom {
    min-width: 20px;
    min-height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
  }

  /* Form options mobile layout */
  .form-options {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .forgot-password {
    font-size: 14px;
    padding: 8px 0;
    text-decoration: underline;
    align-self: flex-start;
  }
}

/* Ajustements pour écrans très petits en hauteur ET en largeur */
@media (max-width: 480px) and (max-height: 600px) {
  .login-modal {
    margin: 4px;
    max-width: calc(100vw - 8px);
    border-radius: 8px;
  }

  .login-modal-body {
    grid-template-columns: 1fr;
  }

  .auth-branding-column {
    display: none; /* Masquer la colonne de branding sur les très petits écrans */
  }

  .auth-form-content {
    max-height: none;
    height: auto;
    padding: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .auth-tabs-header {
    padding: 16px 12px 0 12px;
  }

  .form-title {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .form-subtitle {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .auth-form {
    gap: 14px;
  }

  .form-group {
    gap: 3px;
    margin-bottom: 12px;
  }

  .input-wrapper input {
    padding: 10px 12px;
    min-height: 44px;
    font-size: 16px;
  }

  .auth-btn {
    padding: 12px 20px;
    min-height: 46px;
    font-size: 15px;
  }

  .checkbox-wrapper {
    font-size: 13px;
    gap: 8px;
  }
}

/* Améliorations pour les appareils haute densité */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .auth-modal .input-wrapper input {
    border-width: 0.5px;
  }

  .auth-tab {
    border-width: 0.5px;
  }
}

/* Ajustements pour les appareils tactiles */
@media (pointer: coarse) {
  .input-wrapper input {
    min-height: 48px;
    padding: 12px 16px;
  }

  .auth-btn {
    min-height: 48px;
    padding: 14px 24px;
  }

  .password-toggle {
    min-width: 48px;
    min-height: 48px;
  }

  .checkbox-custom {
    min-width: 24px;
    min-height: 24px;
  }

  .auth-tab {
    min-height: 44px;
    padding: 12px 24px;
  }
}

/* Fixes pour iOS Safari */
@supports (-webkit-touch-callout: none) {
  .auth-form-content {
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
  }

  .input-wrapper input {
    -webkit-appearance: none;
    -webkit-border-radius: 8px;
    border-radius: 8px;
  }

  /* Prevent zoom on input focus */
  .input-wrapper input[type="email"],
  .input-wrapper input[type="password"],
  .input-wrapper input[type="text"] {
    font-size: 16px !important;
  }
}

/* Améliorations d'accessibilité et d'interaction tactile */
.auth-modal {
  /* Éviter le scroll indésirable */
  overflow: hidden;
}

.auth-modal *:focus {
  outline: 2px solid var(--gray-800);
  outline-offset: 2px;
}

/* Amélioration du contraste pour les placeholders */
.input-wrapper input::placeholder {
  color: #6b7280;
  opacity: 1;
}

/* Suppression du highlight tactile sur Android */
.auth-modal * {
  -webkit-tap-highlight-color: transparent;
}

/* États de focus améliorés pour les éléments interactifs */
.auth-btn:focus,
.password-toggle:focus,
.auth-tab:focus {
  outline: 2px solid var(--gray-800);
  outline-offset: 2px;
}

/* Optimisation pour les écrans orientés en paysage sur mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .login-modal {
    max-height: 95vh;
    margin: 2.5vh auto;
  }

  .auth-branding-column {
    display: none;
  }

  .login-modal-body {
    grid-template-columns: 1fr;
  }

  .auth-form-content {
    max-height: none;
    height: auto;
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .form-title {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .form-subtitle {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .auth-form {
    gap: 12px;
  }
}

/* Corrections spécifiques pour Android - Modal full-width */
@supports (-webkit-appearance: none) {
  @media screen and (max-width: 768px) {
    .login-modal-overlay {
      width: 100vw !important;
      min-width: 100vw !important;
      max-width: 100vw !important;
      left: 0 !important;
      right: 0 !important;
      margin: 0 !important;
      padding: 4px !important;
      box-sizing: border-box !important;
    }

    .login-modal {
      width: calc(100vw - 8px) !important;
      min-width: calc(100vw - 8px) !important;
      max-width: calc(100vw - 8px) !important;
      margin: 0 auto !important;
      left: 0 !important;
      right: 0 !important;
      transform: none !important;
      position: relative !important;
      box-sizing: border-box !important;
    }

    body, html {
      overflow-x: hidden !important;
      width: 100vw !important;
      max-width: 100vw !important;
    }
  }
}

/* ===== BETA MODE - COMING SOON STYLES ===== */
.beta-coming-soon-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  text-align: center;
  min-height: 500px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.beta-logo-section {
  margin-bottom: 40px;
}

.beta-logo-section .auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.beta-logo-section .logo-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  box-shadow: 0 10px 30px rgba(26, 200, 194, 0.3);
}

.beta-logo-section h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.beta-message-section {
  max-width: 500px;
}

.beta-icon {
  font-size: 48px;
  color: var(--gray-800);
  margin-bottom: 24px;
  animation: float 3s ease-in-out infinite;
}

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

.beta-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 16px 0;
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.beta-message {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.beta-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 32px 0;
  font-weight: 500;
}

.beta-notify-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(26, 200, 194, 0.3);
}

.beta-notify-badge i {
  font-size: 1rem;
}

.beta-features {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 20px;
}

.beta-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.8;
}

.beta-feature i {
  font-size: 24px;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.beta-feature span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Responsive design pour beta mode */
@media (max-width: 768px) {
  .beta-coming-soon-content {
    padding: 40px 20px;
    min-height: 400px;
  }

  .beta-logo-section .logo-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .beta-logo-section h3 {
    font-size: 1.5rem;
  }

  .beta-title {
    font-size: 2rem;
  }

  .beta-message {
    font-size: 1rem;
  }

  .beta-features {
    gap: 20px;
    flex-wrap: wrap;
  }

  .beta-feature {
    min-width: 80px;
  }
}

@media (max-width: 480px) {
  .beta-title {
    font-size: 1.75rem;
  }

  .beta-features {
    gap: 16px;
  }

  .beta-feature i {
    font-size: 20px;
  }

  .beta-feature span {
    font-size: 0.8rem;
  }
}

/* ===== BOTTOM MODIFICATIONS PANEL ===== */
.bottom-modifications-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--brand-light-gray);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateY(100%); /* Complètement masqué par défaut */
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 400px;
  display: none; /* Complètement masqué */
}

.bottom-modifications-panel.expanded {
  transform: translateY(0);
}

.modifications-bottom-content {
  padding: 0;
}

.modifications-bottom-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  color: white;
  cursor: pointer;
}

.modifications-bottom-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modifications-bottom-title i {
  color: var(--gray-800);
  font-size: 1.2rem;
}

.modifications-toggle-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modifications-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.modifications-bottom-body {
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  padding: 24px 20px;
  background: white;
  overflow-x: auto;
}

.modification-main-counter {
  flex-shrink: 0;
}

.main-counter-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(26, 200, 194, 0.3);
  position: relative;
}

.main-counter-circle::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: exclude;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.main-counter-number {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.main-counter-label {
  font-size: 0.65rem;
  font-weight: 500;
  text-align: center;
  opacity: 0.9;
  margin-top: 2px;
}

.modification-detailed-stats {
  display: flex;
  gap: 2rem;
  flex: 1;
}

.detailed-stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 16px 20px;
  background: var(--brand-light-gray);
  border-radius: 12px;
  min-width: 150px;
  transition: all 0.3s ease;
}

.detailed-stat-item:hover {
  background: rgba(26, 200, 194, 0.1);
  transform: translateY(-2px);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(26, 200, 194, 0.1), rgba(26, 200, 194, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-800);
  font-size: 1.1rem;
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stat-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.modification-bottom-upgrade-alert {
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 12px;
  padding: 20px;
  max-width: 300px;
}

.bottom-upgrade-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.bottom-upgrade-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 193, 7, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f57c00;
  font-size: 1rem;
  flex-shrink: 0;
}

.bottom-upgrade-text h4 {
  margin: 0 0 4px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.bottom-upgrade-text p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.bottom-upgrade-actions {
  display: flex;
  justify-content: center;
}

.btn-bottom-upgrade {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-bottom-upgrade:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(26, 200, 194, 0.4);
}

/* ===== RESPONSIVE DESIGN POUR LE BOTTOM PANEL ===== */
@media (max-width: 768px) {
  .bottom-modifications-panel {
    transform: translateY(calc(100% - 60px));
  }

  .modifications-bottom-header {
    padding: 16px 20px;
  }

  .modifications-bottom-title {
    font-size: 1rem;
  }

  .modifications-bottom-body {
    flex-direction: column;
    gap: 1.5rem;
    padding: 20px;
    align-items: stretch;
  }

  .modification-detailed-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .detailed-stat-item {
    min-width: auto;
    padding: 12px 16px;
  }

  .main-counter-circle {
    width: 70px;
    height: 70px;
    align-self: center;
  }

  .main-counter-number {
    font-size: 1.6rem;
  }

  .main-counter-label {
    font-size: 0.6rem;
  }

  .modification-bottom-upgrade-alert {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .bottom-modifications-panel {
    transform: translateY(calc(100% - 50px));
  }

  .modifications-bottom-header {
    padding: 12px 16px;
  }

  .modifications-bottom-title {
    font-size: 0.9rem;
    gap: 0.5rem;
  }

  .modifications-toggle-btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .modifications-bottom-body {
    padding: 16px;
    gap: 1rem;
  }

  .main-counter-circle {
    width: 60px;
    height: 60px;
  }

  .main-counter-number {
    font-size: 1.4rem;
  }

  .main-counter-label {
    font-size: 0.55rem;
  }

  .detailed-stat-item {
    padding: 10px 12px;
    gap: 0.75rem;
  }

  .stat-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .stat-number {
    font-size: 1.2rem;
  }

  .stat-text {
    font-size: 0.75rem;
  }

  .bottom-upgrade-content {
    gap: 8px;
    margin-bottom: 12px;
  }

  .bottom-upgrade-icon {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  .bottom-upgrade-text h4 {
    font-size: 0.85rem;
  }

  .bottom-upgrade-text p {
    font-size: 0.75rem;
  }

  .btn-bottom-upgrade {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}



/* ===== SWEETALERT2 Z-INDEX FIX POUR MODAL ===== */
/* Assurer que SweetAlert apparaît au-dessus du modal de login */
.swal2-container {
  z-index: 20000 !important; /* Plus élevé que le modal de login (10000) */
}

.swal2-popup {
  z-index: 20001 !important; /* Encore plus élevé pour la popup elle-même */
}
