:root { --primary: #6366f1; --dark: #1e293b; --bg: #ffffff; --light: #f8fafc; }
        body { font-family: 'Inter', -apple-system, sans-serif; margin: 0; color: var(--dark); line-height: 1.6; }
        
        /* Navigation */
        header { display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; position: sticky; top: 0; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); z-index: 1000; }
        .logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); text-decoration: none; }
        .nav-btns .btn-ghost { text-decoration: none; color: var(--dark); font-weight: 600; margin-right: 20px; }
        .nav-btns .btn-cta { background: var(--primary); color: white; padding: 10px 20px; border-radius: 10px; text-decoration: none; font-weight: 600; }

        /* Hero Section */
        .hero { padding: 100px 5% 60px; text-align: center; background: radial-gradient(circle at top right, #eef2ff, #fff); }
        .badge { background: #eef2ff; color: var(--primary); padding: 8px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; display: inline-block; margin-bottom: 20px; }
        h1 { font-size: 3.5rem; margin: 0 0 20px; line-height: 1.1; letter-spacing: -1px; }
        .hero p { font-size: 1.25rem; color: #64748b; max-width: 600px; margin: 0 auto 40px; }

        /* Illustration simulateur */
        .mockup { max-width: 800px; margin: 50px auto; background: linear-gradient(135deg, #6366f1, #818cf8); height: 400px; border-radius: 30px; position: relative; display: flex; align-items: center; justify-content: center; color: white; font-size: 3rem; font-weight: 900; box-shadow: 0 30px 60px rgba(99,102,241,0.2); }
        .float-card { position: absolute; background: white; padding: 15px; border-radius: 15px; color: var(--dark); font-size: 0.9rem; box-shadow: 0 10px 30px rgba(0,0,0,0.1); animation: float 5s ease-in-out infinite; }
        @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

        /* Features */
        .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; padding: 100px 5%; background: var(--light); }
        .feat-card { background: white; padding: 40px; border-radius: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
        .feat-card h3 { margin-top: 0; }
        .icon { font-size: 2rem; margin-bottom: 15px; display: block; }

        @media (max-width: 768px) { h1 { font-size: 2.5rem; } }
        /* --- Footer --- */
footer {
  background-color: var(--light); /* Utilise la variable de ton code */
  padding: 80px 5% 30px;
  border-top: 1px solid #e2e8f0; /* Ligne de séparation très subtile */
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

/* --- Marque --- */
.footer-brand {
  max-width: 320px;
}

.footer-brand .logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 15px;
}

.footer-brand p {
  color: #64748b; /* Même gris que ton paragraphe hero */
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* --- Colonnes de liens --- */
.footer-links-group {
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-column h4 {
  color: var(--dark);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 20px 0;
}

.footer-column a {
  color: #64748b;
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--primary);
}

/* --- Barre inférieure --- */
.footer-bottom {
  max-width: 1200px;
  margin: 60px auto 0;
  padding-top: 30px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom .socials a {
  color: #94a3b8;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-bottom .socials a:hover {
  color: var(--primary);
}

/* --- Responsive (Mobile) --- */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
  }
  
  .footer-links-group {
    gap: 40px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .footer-bottom .socials a {
    margin: 0 10px;
  }
}
/* --- Conteneur principal de la carte --- */
.login-card {
  background-color: #ffffff;
  max-width: 420px; /* Largeur maximale de la carte */
  width: 100%;
  margin: 40px auto; /* Centre la carte horizontalement */
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.04); /* Ombre douce comme sur l'image */
  box-sizing: border-box;
  text-align: center; /* Centre l'icône et les textes de l'en-tête */
  font-family: 'Inter', -apple-system, sans-serif;
}

/* --- En-tête de la carte (Titres) --- */
.login-card h2 {
  color: #1e293b; /* Couleur sombre */
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 10px 0;
}

.login-card p {
  color: #64748b; /* Gris texte */
  font-size: 1rem;
  margin: 0 0 35px 0;
}

/* --- Formulaire --- */
.login-card form {
  text-align: left; /* Réaligne le contenu du formulaire à gauche */
}

/* Groupes de champs (Label + Input) */
.login-card .form-group {
  margin-bottom: 24px;
}

/* Labels */
.login-card .form-group label {
  display: block;
  color: #1e293b;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

/* Champs de saisie (Inputs) */
.login-card .form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  color: #1e293b;
  box-sizing: border-box; /* Important pour que le padding ne dépasse pas */
  transition: all 0.2s ease;
  font-family: inherit;
}

/* État "Focus" quand on clique dans le champ */
.login-card .form-group input:focus {
  outline: none;
  border-color: #6366f1; /* Couleur primaire */
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); /* Halo bleu au clic */
}

/* Style du texte temporaire (placeholder) */
.login-card .form-group input::placeholder {
  color: #94a3b8;
}

/* --- Bouton de connexion --- */
.login-card .btn-login {
  width: 100%;
  background-color: #6366f1; /* Couleur primaire de ton app */
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.2s ease, transform 0.1s ease;
  font-family: inherit;
}

/* Effets au survol et au clic du bouton */
.login-card .btn-login:hover {
  background-color: #4f46e5; /* Bleu légèrement plus foncé au survol */
}

.login-card .btn-login:active {
  transform: translateY(2px); /* Petit effet d'enfoncement au clic */
}
/* --- Header Global --- */
.site-header {
  background-color: rgba(255, 255, 255, 0.9); /* Fond blanc légèrement transparent */
  backdrop-filter: blur(10px); /* Effet de flou sur ce qui passe en dessous */
  border-bottom: 1px solid #e2e8f0; /* Même ligne subtile que le footer */
  position: sticky; /* Reste accroché en haut au scroll */
  top: 0;
  z-index: 1000; /* S'assure que le header passe au-dessus du reste */
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px; /* Même largeur max que le footer */
  margin: 0 auto;
  padding: 15px 5%;
}

/* --- Logo --- */
.site-header .logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  margin-right: 15rem;
}

/* --- Navigation Centrale --- */
.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  text-decoration: none;
  color: #64748b; /* Même gris que les liens du footer */
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--dark); /* Devient sombre au survol pour bien ressortir */
}

/* --- Bloc des boutons --- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: 15rem;
}

/* * SYSTÈME DE BOUTONS RÉUTILISABLES 
 * (À placer de préférence dans une section "Composants" de ton CSS)
 */

/* 1. La base (ce qui est commun à tous les boutons) */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px; /* Même arrondi que tes inputs de connexion */
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn2 {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.5rem;
  border-radius: 10px; /* Même arrondi que tes inputs de connexion */
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* 2. Le style "Fantôme" (Texte seul) */
.btn-ghost {
  color: var(--dark);
  padding: 10px 15px;
  background: transparent;
}

.btn-ghost:hover {
  color: var(--primary);
  background-color: #eef2ff; /* Léger fond bleuté au survol (ton badge sur la maquette) */
}

/* 3. Le style "Primaire" (Plein) */
.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  padding: 10px 20px;
  box-shadow: 0 4px 6px rgba(99, 102, 241, 0.2); /* Légère ombre colorée */
}

.btn-primary:hover {
  background-color: #4f46e5; /* Légèrement plus foncé */
  transform: translateY(-1px); /* Petit effet de soulèvement */
  box-shadow: 0 6px 10px rgba(99, 102, 241, 0.3);
}

/* --- Responsive (Mobile) --- */
@media (max-width: 768px) {
  .main-nav {
    display: none; /* On cache la navigation centrale sur mobile pour faire de la place */
  }
  
  .header-container {
    padding: 15px 20px;
  }
  
  .header-actions {
    gap: 8px;
  }
  
  .btn-primary {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
  .btn-ghost {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.page-spacing { padding-top: 40px; padding-bottom: 80px; }

/* Flexbox */
.flex-between { display: flex; justify-content: space-between; }
.align-center { display: flex; align-items: center; gap: 15px; }

/* Marges & Tailles */
.mb-30 { margin-bottom: 30px; }
.mt-15 { margin-top: 15px; }
.w-100 { width: 100%; text-align: center; }

/* Textes & Couleurs */
.text-muted { color: #64748b; margin: 5px 0 0 0; }
.text-dark { color: var(--dark); }
.small { font-size: 0.85rem; }
.font-bold { font-weight: 600; }

.bg-primary { background-color: var(--primary); color: white; }
.bg-dark { background-color: var(--dark); color: white; }.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.page-spacing { padding-top: 40px; padding-bottom: 80px; }

/* Flexbox */
.flex-between { display: flex; justify-content: space-between; }
.align-center { display: flex; align-items: center; gap: 15px; }

/* Marges & Tailles */
.mb-30 { margin-bottom: 30px; }
.mt-15 { margin-top: 15px; }
.w-100 { width: 100%; text-align: center; }

/* Textes & Couleurs */
.text-muted { color: #64748b; margin: 5px 0 0 0; }
.text-dark { color: var(--dark); }
.small { font-size: 0.85rem; }
.font-bold { font-weight: 600; }

.bg-primary { background-color: var(--primary); color: white; }
.bg-dark { background-color: var(--dark); color: white; }

/* La carte blanche standard */
.card {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.04);
}

.card-title {
  color: var(--dark);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 25px 0;
  padding-bottom: 15px;
  border-bottom: 1px solid #e2e8f0;
}

/* Badges (pour les montants ou statuts) */
.badge {
  padding: 6px 12px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}
.badge-danger { background-color: #fef2f2; color: #ef4444; }
.badge-success { background-color: #ecfdf5; color: #10b981; }

/* Avatars (Cercles avec initiale) */
.avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.page-title {
  font-size: 2.2rem;
  color: var(--dark);
  margin: 0;
  letter-spacing: -0.5px;
}

/* Grille (Dépenses à gauche, Équilibres à droite) */
.grid-layout {
  display: grid;
  grid-template-columns: 2fr 1fr; /* 66% pour les dépenses, 33% pour les équilibres */
  gap: 30px;
}

/* Lignes de liste (Dépenses et Équilibres) */
.expense-item, .balance-item {
  padding: 15px 0;
  border-bottom: 1px solid #f1f5f9;
}
.expense-item:last-of-type, .balance-item:last-of-type {
  border-bottom: none; /* Enlève la ligne sous le dernier élément */
}

.expense-info { display: flex; align-items: center; gap: 15px; }
.expense-title { font-weight: 600; color: var(--dark); margin: 0; }
.expense-amount { font-weight: 700; font-size: 1.1rem; color: var(--dark); }

.balance-users { font-size: 0.95rem; color: #64748b; }


/* =========================================
   4. RESPONSIVE (Tablettes & Mobiles)
   ========================================= */
@media (max-width: 992px) {
  /* On passe la grille en 1 seule colonne sur les petits écrans */
  .grid-layout { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  /* En-tête : on met le bouton sous le titre sur mobile */
  .mobile-col {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .mobile-col .btn { width: 100%; }
}