:root {
  /* Palette neutre élégante */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.8);
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  --font-sans: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", monospace;
  
  /* Ombres très douces (Apple style) */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 20px 30px -10px rgba(15, 23, 42, 0.1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Background gradient subtil au centre de l'écran */
.bg-mesh {
  position: fixed;
  top: -20%;
  left: 20%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.05) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

/* ─── TOP NAVBAR ───────────────────────────────── */

.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  height: 72px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  z-index: 100;
  display: flex;
  justify-content: center;
}

.navbar-container {
  width: 100%;
  max-width: 1200px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.profile-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.profile-btn:hover {
  color: var(--text-main);
  border-color: #cbd5e1;
}

/* ─── CONTENEUR PRINCIPAL ──────────────────────── */

.launchpad-container {
  width: 100%;
  max-width: 1000px; /* Plus étroit pour un look plus concentré */
  margin: 0 auto;
  padding: 64px 32px;
  flex: 1;
}

/* ─── HERO SECTION ─────────────────────────────── */

.hero-section {
  text-align: center;
  margin-bottom: 64px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0d9488;
  background: rgba(13, 148, 136, 0.1);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── BENTO GRID (LES CARTES) ──────────────────── */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
}

/* Le fond coloré très subtil qui apparait au survol */
.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--theme);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.bento-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--theme);
  box-shadow: var(--shadow-hover);
}

.bento-card:hover::before {
  opacity: 0.02; /* Donne une teinte légère à la carte au survol */
}

/* Intérieur des cartes */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.icon-wrapper {
  width: 56px; 
  height: 56px;
  border-radius: 16px;
  background: var(--theme-bg);
  color: var(--theme);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,0.03);
  transition: transform 0.3s ease;
}

.bento-card:hover .icon-wrapper {
  transform: scale(1.08);
}

.status-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: 100px;
}

.card-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.card-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Le bouton / lien en bas de carte */
.card-action {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--theme);
  opacity: 0.8;
  transition: opacity 0.3s, transform 0.3s;
  position: relative;
  z-index: 2;
}

.card-action svg {
  transition: transform 0.3s;
}

.bento-card:hover .card-action {
  opacity: 1;
}

.bento-card:hover .card-action svg {
  transform: translateX(6px);
}

/* ─── FOOTER ───────────────────────────────────── */

.footer {
  text-align: center;
  padding: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ─── ANIMATIONS D'ENTRÉE ──────────────────────── */

.text-animate-up {
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.grid-animate-up {
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

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

/* ─── RESPONSIVE MOBILE ────────────────────────── */

@media (max-width: 768px) {
  .navbar-container { padding: 0 20px; }
  
  .launchpad-container {
    padding: 40px 20px;
  }
  
  .hero-section {
    margin-bottom: 40px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  /* Sur mobile, on passe à 1 seule colonne */
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .bento-card {
    padding: 24px;
    border-radius: 20px;
  }
  
  .card-desc {
    margin-bottom: 24px;
  }
}