/* =========================================
   1. VARIABLES & CONFIGURATION
   ================================********* */
:root {
  /* Palette de couleurs "Corporate Luxury" */
  --bg-white: #ffffff;
  --bg-soft: #f8fafc;       /* Gris très pâle bleuté pour les sections alternées */
  --bg-dark: #0f172a;       /* Bleu nuit profond (Footer / Textes forts) */
  
  --primary: #0f172a;       /* Couleur principale (Titres, Logos) */
  --primary-light: #334155; /* Version plus douce pour les sous-titres */
  
  --accent: #c4a258;        /* Or/Bronze mat pour les actions */
  --accent-hover: #b3924d;  /* Version plus foncée au survol */
  
  --text-main: #1e293b;     /* Texte courant (Gris anthracite, pas noir pur) */
  --text-muted: #64748b;    /* Texte secondaire (Gris moyen) */
  
  --border: #e2e8f0;        /* Bordures subtiles */
  
  /* Ombres portées (Effet de profondeur) */
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-gold: 0 10px 25px -5px rgba(196, 162, 88, 0.25);

  /* Autres */
  --radius: 12px;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container-width: 1150px;
}

/* =========================================
   2. RESET & BASE
   ================================********* */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background-color: var(--bg-white);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased; /* Rendu plus net sur Mac */
}

a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; height: auto; }

/* Typographie */
h1, h2, h3, h4, h5, h6 { color: var(--primary); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 24px; }
h2 { font-size: clamp(28px, 4vw, 36px); margin-bottom: 20px; }
h3 { font-size: 20px; margin-bottom: 12px; }
p { margin-bottom: 16px; color: var(--text-muted); font-size: 16px; }

/* Utilitaires Layout */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
.section-grey { background-color: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.text-center { text-align: center; }

/* =========================================
   3. NAVIGATION (HEADER)
   ================================********* */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
  padding: 16px 0;
}

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

.logo { font-size: 22px; font-weight: 900; color: var(--primary); text-transform: uppercase; letter-spacing: -0.5px; }
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--text-muted); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

/* =========================================
   4. BOUTONS
   ================================********* */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; font-weight: 600; border-radius: 8px;
  font-size: 15px; cursor: pointer; border: 2px solid transparent;
  transition: all 0.2s ease;
}

.btn-accent {
  background-color: var(--accent); color: white;
  box-shadow: var(--shadow-sm);
}
.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border);
  color: var(--primary);
}
.btn-outline:hover {
  border-color: var(--primary);
  background-color: var(--bg-white);
}

.btn-primary { /* Bouton sombre */
  background-color: var(--primary); color: white;
}
.btn-primary:hover {
  background-color: #1e293b;
  transform: translateY(-2px);
}

/* =========================================
   5. CARTES & GRILLES
   ================================********* */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }

/* Cartes Standards (Services, Features) */
.feature-card, .step-card, .card {
  background: var(--bg-white);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.icon-box {
  width: 50px; height: 50px;
  background: rgba(196, 162, 88, 0.1); /* Fond doré léger */
  color: var(--accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}

/* Étapes (Steps) */
.step-card { position: relative; overflow: hidden; }
.step-number {
  position: absolute; top: 15px; right: 20px;
  font-size: 48px; font-weight: 900;
  color: var(--border); opacity: 0.5;
  line-height: 1;
}

/* =========================================
   6. PRIX & TARIFS
   ================================********* */
.pricing-card {
  display: flex; flex-direction: column;
}
.pricing-card.popular {
  transform: scale(1.05);
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-lg);
  z-index: 2;
  position: relative;
}
.pricing-check { color: var(--accent); font-weight: bold; margin-right: 8px; }
.pricing-cross { color: #cbd5e1; margin-right: 8px; }

/* Tableau comparatif */
.comparison-table { width: 100%; border-collapse: collapse; margin-top: 40px; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.comparison-table th, .comparison-table td {
  padding: 16px; border-bottom: 1px solid var(--border); text-align: center; font-size: 15px;
}
.comparison-table th:first-child, .comparison-table td:first-child {
  text-align: left; font-weight: 600; color: var(--primary); padding-left: 24px;
}
.comparison-table th { background: var(--bg-soft); color: var(--primary); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: 0.5px; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover { background-color: #fcfcfc; }

/* =========================================
   7. FORMULAIRES
   ================================********* */
input, textarea, select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 20px;
  font-family: inherit; font-size: 15px; color: var(--primary);
  transition: all 0.2s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  background: white;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 162, 88, 0.1);
}
label {
  display: block; margin-bottom: 8px;
  font-weight: 600; font-size: 14px; color: var(--primary);
}

/* =========================================
   8. FAQ & ACCORDÉONS
   ================================********* */
details {
  background: white; border: 1px solid var(--border);
  border-radius: 8px; margin-bottom: 16px;
  overflow: hidden; transition: all 0.2s;
}
details[open] { border-color: var(--accent); box-shadow: var(--shadow-sm); }
summary {
  padding: 18px 24px; font-weight: 600; cursor: pointer;
  color: var(--primary); list-style: none; position: relative;
  display: flex; justify-content: space-between; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 20px; color: var(--text-muted); font-weight: 400; }
details[open] summary::after { content: '-'; color: var(--accent); }
details[open] summary { border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.faq-content { padding: 24px; color: var(--text-muted); font-size: 15px; line-height: 1.7; }

/* =========================================
   9. PAGES LÉGALES
   ================================********* */
.legal-nav {
  background: white; border-bottom: 1px solid var(--border);
  position: sticky; top: 73px; z-index: 900; padding: 12px 0;
}
.legal-nav ul { display: flex; gap: 24px; justify-content: center; }
.legal-nav a { font-size: 13px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); }
.legal-nav a:hover { color: var(--primary); }

.legal-content h2 { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border); color: var(--primary); }
.legal-content p, .legal-content li { text-align: justify; font-size: 15px; margin-bottom: 12px; }

/* =========================================
   10. FOOTER
   ================================********* */
footer {
  background: var(--bg-dark);
  color: #cbd5e1;
  padding: 80px 0 30px;
  margin-top: auto;
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-col h4 { color: white; margin-bottom: 24px; font-size: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col a { display: block; margin-bottom: 12px; color: #94a3b8; font-size: 14px; }
.footer-col a:hover { color: var(--accent); text-decoration: none; padding-left: 4px; }

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px; text-align: center; font-size: 13px; color: #64748b;
}

/* =========================================
   11. DASHBOARD (NOUVEAU)
   ================================********* */
/* Layout du Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* Sidebar */
.dash-sidebar {
    background: white; border-radius: 12px; border: 1px solid var(--border);
    padding: 20px; box-shadow: var(--shadow-sm); position: sticky; top: 100px;
}

/* Menu Latéral */
.dash-menu-item {
    display: flex; align-items: center; gap: 12px; padding: 12px;
    color: var(--text-main); font-weight: 500; border-radius: 8px;
    transition: 0.2s; cursor: pointer;
}
.dash-menu-item:hover, .dash-menu-item.active {
    background: var(--bg-soft); color: var(--primary);
}

/* KPI Stats */
.stats-row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px;
}
.stat-card {
    background: white; padding: 24px; border-radius: 12px;
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
}
.stat-value { font-size: 32px; font-weight: 800; color: var(--primary); margin: 5px 0; }
.stat-label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* Raccourcis (Shortcuts) */
.shortcut-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 30px;
}
.shortcut-btn {
    background: white; border: 1px solid var(--border); border-radius: 10px;
    padding: 15px; text-align: center; cursor: pointer; transition: 0.2s;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: var(--text-main);
}
.shortcut-btn:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.shortcut-icon { font-size: 24px; }

/* Tableau Dashboard */
.dash-table { width: 100%; border-collapse: collapse; background: white; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.dash-table th { background: var(--bg-soft); padding: 15px; text-align: left; font-size: 13px; color: var(--text-muted); font-weight: 700; }
.dash-table td { padding: 15px; border-top: 1px solid var(--border); font-size: 14px; }
.dash-table tr:hover { background: #f8fafc; }

/* =========================================
   12. RESPONSIVE (MOBILE)
   ================================********* */
@media (max-width: 900px) {
  .nav-links { display: none; } 
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 40px; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  
  .pricing-card.popular { transform: none; border-width: 1px; }
  
  /* Permet au tableau de défiler sur mobile */
  .comparison-table { display: block; overflow-x: auto; white-space: nowrap; }
  
  /* Ajustements Dashboard Mobile */
  .dashboard-grid { grid-template-columns: 1fr; }
  .stats-row, .shortcut-grid { grid-template-columns: 1fr 1fr; }
  .dash-sidebar { display: none; } /* On cache la sidebar sur mobile */
  
  section { padding: 50px 0; }
}