/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:        #0D1117;
  --bg-card:   #161B22;
  --bg-light:  #21262D;
  --accent:    #00C896;
  --accent-dim:#00C89620;
  --text:      #F0F6FC;
  --muted:     #8B949E;
  --red:       #FF5C5C;
  --border:    #30363D;
  --radius:    14px;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.logo-accent {
  color: var(--accent);
  font-weight: 300;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.btn-nav {
  background: var(--accent);
  color: #0D1117 !important;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem !important;
  transition: opacity 0.2s;
}

.btn-nav:hover { opacity: 0.85; }

/* ===== HERO ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-content { flex: 1; }

.hero-badge {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-family: Georgia, serif;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.accent { color: var(--accent); }

.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #0D1117;
  padding: 0.8rem 1.8rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.8rem 1.8rem;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ===== HERO VISUAL (mini dashboard) ===== */
.hero-visual { flex: 1; display: flex; justify-content: center; }

.mock-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  width: 100%;
  max-width: 320px;
}

.mock-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.mock-amount {
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.mock-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.2rem;
}

.mock-bar {
  height: 8px;
  border-radius: 4px;
}

.mock-bar.income { background: var(--accent); }
.mock-bar.expense { background: var(--red); }

.mock-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot.green { background: var(--accent); }
.dot.red   { background: var(--red); }

.mock-val { margin-left: auto; font-weight: 500; }
.mock-val.green { color: var(--accent); }
.mock-val.red   { color: var(--red); }

/* ===== FEATURES ===== */
.features {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.features h2 {
  font-family: Georgia, serif;
  font-size: 2rem;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: left;
  transition: border-color 0.2s;
}

.feature-card:hover { border-color: var(--accent); }

.feature-icon { font-size: 2rem; margin-bottom: 1rem; }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ===== PRICING ===== */
.pricing {
  padding: 5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.pricing h2 {
  font-family: Georgia, serif;
  font-size: 2rem;
  margin-bottom: 3rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: left;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #0D1117;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
}

.plan-name {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.plan-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pricing-card li {
  font-size: 0.9rem;
  color: var(--text);
}

.pricing-card li.disabled { color: var(--muted); }

.btn-ghost-full {
  display: block;
  text-align: center;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.btn-ghost-full:hover { border-color: var(--accent); color: var(--accent); }

.btn-primary-full {
  display: block;
  text-align: center;
  background: var(--accent);
  color: #0D1117;
  padding: 0.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.btn-primary-full:hover { opacity: 0.85; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-text {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ===== CONTACT ===== */
.contact {
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.contact-left { flex: 1; }
.contact-right { flex: 1; }

.contact-left h2 {
  font-family: Georgia, serif;
  font-size: 2rem;
  margin: 1rem 0 1rem;
  line-height: 1.3;
}

.contact-left p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-icon { font-size: 1.1rem; }

.contact-illustration {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Formulaire contact */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group select option { background: var(--bg-card); }

.contact-success {
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  text-align: center;
}

/* ===== FOOTER COMPLET ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 1.5rem;
}

.footer-top {
  max-width: 1100px;
  margin: 0 auto 2rem;
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.footer-brand { flex: 1.2; }

.footer-desc {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 1rem 0 1.5rem;
  max-width: 260px;
  line-height: 1.6;
}

/* Réseaux sociaux */
.social-links {
  display: flex;
  gap: 0.6rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

.social-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Colonnes footer */
.footer-nav {
  flex: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent); }

/* Bas du footer */
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-text {
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-lang {
  display: flex;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ===== RESPONSIVE CONTACT + FOOTER ===== */
@media (max-width: 768px) {
  .contact-inner {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-top {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
/* ===== A PROPOS ===== */
.about {
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.about-left { flex: 1.2; }
.about-right { flex: 1; }

.about-left h2 {
  font-family: Georgia, serif;
  font-size: 2rem;
  margin: 1rem 0 1.2rem;
  line-height: 1.3;
}

.about-left p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  max-width: 480px;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.value-icon { font-size: 1.4rem; margin-top: 2px; }

.value-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.value-item p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.about-quote {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.about-quote p {
  font-size: 0.9rem;
  color: var(--text);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-author strong {
  display: block;
  font-size: 0.9rem;
}

.quote-author span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* SECTIONS SIDEBAR 
.nav-section {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 1rem 0.8rem 0.3rem;
  font-weight: 600;
}
*/
@media (max-width: 768px) {
  .about-inner {
    flex-direction: column;
    gap: 2.5rem;
  }

  .about-left h2 { font-size: 1.6rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 3rem 1.5rem;
    text-align: center;
  }

  .hero h1 { font-size: 2.2rem; }
  .hero-sub { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }
  .hero-visual { width: 100%; }
  .pricing-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.btn-nav) { display: none; }


}

/* ===== RESPONSIVE MOBILE COMPLET ===== */
@media (max-width: 768px) {

  /* Sidebar cachée par défaut sur mobile */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }
  .sidebar.open { transform: translateX(0); }

  /* Overlay quand sidebar ouverte */
  .sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
  }
  .sidebar-overlay.open { display: block; }

  /* Bouton hamburger */
  .hamburger {
    display: flex !important;
    width: 38px; height: 38px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
  }

  .main-content {
    margin-left: 0 !important;
    max-width: 100% !important;
    padding: 1rem !important;
  }

  /* Grilles en colonne */
  .stats-row,
  .charts-row,
  .budgets-row,
  .content-grid,
  .profil-grid,
  .form-row,
  .plan-grid,
  .features-grid,
  .pricing-grid,
  .clients-grid,
  .budgets-grid,
  .kanban,
  .equipe-layout,
  .messages-layout,
  .page-layout {
    grid-template-columns: 1fr !important;
  }

  /* Header plus compact */
  .main-header h1 { font-size: 1.3rem; }

  /* Hero landing */
  .hero {
    flex-direction: column;
    padding: 2rem 1rem;
    text-align: center;
  }
  .hero h1 { font-size: 1.8rem; }
  .hero-actions { justify-content: center; }
  .hero-visual { width: 100%; }

  /* About */
  .about-inner { flex-direction: column; gap: 2rem; }

  /* Contact */
  .contact-inner { flex-direction: column; }

  /* Footer */
  .footer-top { flex-direction: column; gap: 2rem; }
  .footer-nav { grid-template-columns: repeat(2,1fr); }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Tables */
  .table-header { display: none !important; }
  .user-row {
    grid-template-columns: 1fr !important;
    gap: 0.5rem;
  }

  /* Admin table mobile */
  .user-row > div { padding: 0.2rem 0; }

  /* Kanban */
  .kanban-col { min-height: 200px; }

  /* Chat équipe */
  .canaux-panel, .membres-panel { display: none !important; }

  /* Messages */
  .clients-panel { display: none !important; }

  /* Reçu */
  .article-row {
    grid-template-columns: 1fr 0.5fr 0.6fr 0.4fr !important;
  }

  /* Bouton flottant repositionné */
  .fab { bottom: 5rem; right: 1rem; }

  /* Prix cards */
  .pricing-grid { grid-template-columns: 1fr !important; }
  .pro-hero h2 { font-size: 1.5rem; }
}

/* Tablette */
@media (max-width: 1024px) and (min-width: 769px) {
  .sidebar { width: 200px; }
  .main-content {
    margin-left: 200px;
    max-width: calc(100% - 200px);
  }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .kanban { grid-template-columns: repeat(2,1fr); }
  .equipe-layout { grid-template-columns: 200px 1fr; }
  .membres-panel { display: none; }
}