:root {
  --primary-color: #0d9488; /* Vert sarcelle - Moderne et apaisant */
  --secondary-color: #14b8a6; /* Vert clair pour complémenter le sarcelle */
  --accent-color: #facc15; /* Jaune lumineux pour attirer l’attention sur les éléments clés */
  --background-color: #f8fafc; /* Gris très clair - Offre un fond propre et professionnel */
  --text-color: #334155; /* Gris bleu - Équilibré et lisible */
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

.navbar {
  background-color: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}
.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}
.logo a {
  font-size: 1.5rem;
  text-decoration: none;
  font-weight: bold;
  color: var(--primary-color);
}
.nav-links a {
  margin-left: 2rem;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: var(--primary-color);
}
.auth-buttons a {
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
}
.login-btn {
  color: var(--primary-color);
  margin-right: 1rem;
}
.register-btn {
  background-color: var(--primary-color);
  color: white !important;
}
.hero {
  padding: 8rem 2rem 4rem;
  text-align: center;
  background: linear-gradient(135deg, #e6fffa 0%, #ffffff 100%);
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}
.hero p {
  font-size: 1.25rem;
  color: #4b5563;
  max-width: 700px;
  margin: 0 auto 2rem;
}
.features {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.features h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}
.features-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.feature-card {
  padding: 2rem;
  border-radius: 0.75rem;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: left;
  border-top: 4px solid var(--primary-color);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}
.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}
.feature-card p {
  color: #4b5563;
}
.how-it-works {
  padding: 4rem 2rem;
  background-color: #f0fdfa;
  text-align: center;
}
.how-it-works h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}
.steps {
  max-width: 900px;
  margin: 3rem auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.step {
  flex: 1;
  min-width: 250px;
  text-align: center;
  padding: 1.5rem;
}
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1.5rem;
}
.cta {
  padding: 5rem 2rem;
  text-align: center;
  background-color: var(--primary-color);
  color: white;
}
.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
.cta p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}
.cta-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--secondary-color);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.testimonials {
  padding: 5rem 2rem;
  background-color: white;
  text-align: center;
}
.testimonials h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-color);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.testimonial-card {
  background-color: #f8fafc;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  text-align: left;
}
.testimonial-content {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: #4b5563;
}
.testimonial-author {
  display: flex;
  align-items: center;
}
.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #ddd;
  margin-right: 1rem;
  overflow: hidden;
}
.author-info h4 {
  margin: 0;
  color: var(--text-color);
}
.author-info p {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
}
footer {
  background-color: #1f2937;
  color: white;
  padding: 3rem 2rem;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}
.footer-section h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: white;
}
.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
}
/* ================================
   HAMBURGER MENU MOBILE
   ================================ */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
  position: relative;
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* Hamburger animation when active */
.nav-toggle.active .hamburger {
  background-color: transparent;
}

.nav-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scroll sur iOS */
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    width: 100%;
  }

  .nav-links a {
    margin: 0;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background-color 0.3s;
  }

  .nav-links a:hover {
    background-color: #f0fdfa;
  }

  .auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1rem;
  }

  .auth-buttons a {
    text-align: center;
    padding: 0.75rem 1.5rem;
  }

  .login-btn {
    margin-right: 0;
  }

  /* Overlay when menu is open */
  body.nav-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  .steps {
    flex-direction: column;
  }
}

/* Conteneur d'authentification */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* Carte d'authentification */
.auth-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.auth-card h1 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

/* Styles des formulaires */
.form-group {
  margin-bottom: 1rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.form-group input:focus {
  border-color: var(--primary-color);
  outline: none;
}

/* Bouton principal */
.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  margin-top: 1rem;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
}

/* Lien d'authentification */
.auth-link {
  margin-top: 1rem;
  color: var(--text-color);
}

.auth-link a {
  color: var(--primary-color);
  text-decoration: none;
}

.auth-link a:hover {
  text-decoration: underline;
}

/* Style pour les messages d'erreur */
.error-message {
  color: red;
  font-size: 0.9em;
  display: none; /* Masqué par défaut */
}

/* Style pour les champs en erreur */
.has-error input {
  border-color: red;
}

button[type="submit"]:disabled {
  opacity: 0.5;
  background-color: #ccc;
  cursor: not-allowed;
}
/* Style pour le message global */
#global-message {
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 5px;
  display: none; /* Masqué par défaut */
}

#global-message.error {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #c62828;
}

#global-message.success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #2e7d32;
}

/* Style pour les messages d'erreur sous les champs */
.error-message {
  color: #c62828;
  font-size: 0.9em;
  display: none; /* Masque par defaut */
}

/* ================================
   GOOGLE OAUTH BUTTON
   ================================ */

.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: #9ca3af;
  font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: #e5e7eb;
}

.auth-divider span {
  padding: 0 1rem;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #374151;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-google:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-google:active {
  transform: scale(0.98);
}

.btn-google svg {
  flex-shrink: 0;
}

/* Mise en évidence du bouton Google */
.btn-google.pulse-highlight {
  animation: pulse-google 1.5s infinite;
  border-color: #4285F4;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.3);
}

@keyframes pulse-google {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.3);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(66, 133, 244, 0.1);
  }
}

/* Alerte inscription Google requise */
.google-required-alert {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  margin: 1rem 0;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1px solid #93C5FD;
  border-radius: 8px;
  border-left: 4px solid #4285F4;
  animation: slideDown 0.3s ease;
}

.google-required-alert i {
  font-size: 1.5rem;
  color: #4285F4;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.google-required-alert strong {
  display: block;
  color: #1E40AF;
  margin-bottom: 0.25rem;
}

.google-required-alert p {
  margin: 0;
  font-size: 0.875rem;
  color: #3B82F6;
}

/* Form group désactivé */
.form-group.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.form-group.disabled label::after {
  content: " (non requis)";
  font-size: 0.75rem;
  color: #9CA3AF;
}

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

/* Styles pour le dashboard */
.dashboard-container {
  padding: 20px;
  max-width: 1200px;
  margin: 80px auto 40px;
  min-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
}

.dashboard-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-value {
  font-size: 24px;
  font-weight: bold;
  color: #007bff;
  margin-top: 10px;
}

.dashboard-actions {
  margin-top: 20px;
  text-align: right;
}

.header-actions {
  display: flex;
  gap: 10px;
}

/* Styles des boutons */
.btn-danger {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-danger:hover {
  background-color: #c82333;
}

/* Ajout de styles responsifs */
@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }
}
#global-message {
  display: none;
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
}

#global-message.error {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

#global-message.success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* ================================
   ANIMATIONS & KEYFRAMES
   ================================ */

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

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

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(13, 148, 136, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(13, 148, 136, 0.8), 0 0 30px rgba(13, 148, 136, 0.6);
  }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

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

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* ================================
   NAVBAR AMÉLIORÉE
   ================================ */

.navbar {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ================================
   HERO SECTION AMÉLIORÉE
   ================================ */

.hero {
  background: linear-gradient(135deg, #e6fffa 0%, #ccfbf1 50%, #ffffff 100%);
  background-size: 200% 200%;
  animation: gradient 15s ease infinite;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.1) 0%, transparent 70%);
  animation: pulse 10s ease-in-out infinite;
}

.hero h1 {
  animation: fadeInUp 0.8s ease-out;
  position: relative;
  z-index: 1;
}

.hero p {
  animation: fadeInUp 1s ease-out 0.2s backwards;
  position: relative;
  z-index: 1;
}

.hero .cta-btn {
  animation: fadeInUp 1.2s ease-out 0.4s backwards;
  position: relative;
  z-index: 1;
}

/* Badge de confiance */
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  animation: fadeIn 1.4s ease-out 0.6s backwards;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
  color: var(--text-color);
}

.badge i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* ================================
   STATS SECTION (NOUVELLE)
   ================================ */

.stats-section {
  padding: 3rem 2rem;
  background: white;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-item {
  padding: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-color);
  font-size: 1rem;
}

/* ================================
   FEATURES AMÉLIORÉES
   ================================ */

.feature-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.3s ease;
}

.feature-card.visible {
  animation: fadeInUp 0.6s ease-out forwards;
}

.feature-card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 15px 30px rgba(13, 148, 136, 0.2);
}

.feature-icon {
  position: relative;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  animation: bounce 0.6s ease;
}

.feature-card:hover .feature-icon i {
  transform: scale(1.1);
}

/* ================================
   STEPS AMÉLIORÉS
   ================================ */

.steps {
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
}

.step.visible {
  animation: fadeInUp 0.6s ease-out forwards;
}

.step-number {
  animation: glow 2s ease-in-out infinite;
  transition: all 0.3s ease;
}

.step:hover .step-number {
  transform: scale(1.1) rotate(360deg);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* ================================
   AUTH FORMS MODERNES
   ================================ */

.auth-card {
  animation: fadeIn 0.5s ease-out;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  background-size: 200% 100%;
  animation: gradient 3s ease infinite;
}

.auth-card img {
  transition: transform 0.3s ease;
}

.auth-card img:hover {
  transform: scale(1.05);
}

/* Input avec icônes */
.form-group {
  position: relative;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

/* Icône à gauche (lock, envelope, user) */
.input-with-icon > i.fa-lock,
.input-with-icon > i.fa-envelope,
.input-with-icon > i.fa-user {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  transition: color 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.input-with-icon input {
  width: 100%;
  padding-left: 3.25rem;
  padding-right: 1rem;
  transition: all 0.3s ease;
  text-indent: 0;
}

/* Padding spécial pour les inputs avec toggle password */
.input-with-icon:has(.toggle-password) input {
  padding-right: 5rem;
}

/* Change la couleur de l'icône quand l'input a le focus */
.input-with-icon:focus-within > i.fa-lock,
.input-with-icon:focus-within > i.fa-envelope,
.input-with-icon:focus-within > i.fa-user {
  color: var(--primary-color);
}

.input-with-icon input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1), 0 0 20px rgba(13, 148, 136, 0.2);
}

/* Toggle password visibility - à droite */
.toggle-password {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #94a3b8;
  transition: color 0.3s ease;
  z-index: 3;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password:hover {
  color: var(--primary-color);
}

/* Floating labels */
.floating-label {
  position: relative;
  margin-bottom: 1.5rem;
}

.floating-label label {
  position: absolute;
  left: 3rem;
  top: 0.75rem;
  color: #94a3b8;
  transition: all 0.3s ease;
  pointer-events: none;
  background: white;
  padding: 0 0.25rem;
}

.floating-label input:focus ~ label,
.floating-label input:not(:placeholder-shown) ~ label {
  top: -0.5rem;
  left: 2.75rem;
  font-size: 0.75rem;
  color: var(--primary-color);
}

/* Validation visuelle */
.form-group.valid input {
  border-color: #10b981;
}

.form-group.error input {
  border-color: #ef4444;
  animation: shake 0.5s;
}

.validation-icon {
  position: absolute;
  right: 3.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.form-group.valid .validation-icon {
  opacity: 1;
  color: #10b981;
}

.form-group.error .validation-icon {
  opacity: 1;
  color: #ef4444;
}

/* Ajustement pour les inputs sans toggle password */
.input-with-icon:not(:has(.toggle-password)) .validation-icon {
  right: 1rem;
}

/* Messages d'erreur sous les champs */
.error-message {
  display: none;
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.error-message:not(:empty) {
  display: block;
}

/* Password strength indicator */
.password-strength {
  margin-top: 0.5rem;
}

.strength-bar {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

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

.strength-bar-fill.weak {
  width: 25%;
  background: #ef4444;
}

.strength-bar-fill.medium {
  width: 50%;
  background: #f59e0b;
}

.strength-bar-fill.strong {
  width: 75%;
  background: #10b981;
}

.strength-bar-fill.very-strong {
  width: 100%;
  background: #059669;
}

.strength-text {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.password-requirements {
  font-size: 0.875rem;
  color: #6b7280;
  padding-left: 0;
  list-style: none;
}

.password-requirements li {
  padding: 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.password-requirements li i {
  color: #d1d5db;
  transition: color 0.3s ease;
}

.password-requirements li.met i {
  color: #10b981;
}

/* Bouton avec loading state */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:active::before {
  width: 300px;
  height: 300px;
}

.btn-primary.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-primary .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 0.5rem;
}

.btn-primary.loading .spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success animation */
.success-checkmark {
  display: none;
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
}

.success-checkmark.show {
  display: block;
  animation: fadeIn 0.5s ease-out;
}

.success-checkmark circle {
  stroke: #10b981;
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark path {
  stroke: #10b981;
  stroke-width: 2;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

/* ================================
   CTA BUTTON AMÉLIORÉ
   ================================ */

.cta-btn {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

.cta-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-btn:hover::after {
  width: 300px;
  height: 300px;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

/* ================================
   RESPONSIVE AMÉLIORÉ
   ================================ */

@media (max-width: 768px) {
  .hero-badges {
    flex-direction: column;
    gap: 1rem;
  }

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

  .steps::before {
    display: none;
  }
}
