/* ============================================================
   DEFI CONSULTING — Design System
   ============================================================ */

/* ── Variables ──────────────────────────────────────────── */
:root {
  /* Background & surface — Light Corporate Clean */
  --bg:        #ffffff;
  --bg-alt:    #f8fafc;
  --surface:   #ffffff;
  --surface-2: #f1f5f9;
  --border:    rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);

  /* Text */
  --text:  #0f172a;
  --muted: #64748b;

  /* Shadows — Light mode */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow:    0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);

  /* Brand — Defi Consulting */
  --defi:       #0ea5e9;
  --defi-light: #38bdf8;
  --defi-glow:  rgba(14, 165, 233, 0.25);

  /* Produit — PULSE */
  --pulse:       #7c3aed;
  --pulse-light: #a78bfa;
  --pulse-glow:  rgba(124, 58, 237, 0.25);

  /* Produit — TMI Fleet */
  --tmi:       #d97706;
  --tmi-light: #fbbf24;
  --tmi-glow:  rgba(217, 119, 6, 0.25);

  /* Produit — Direct Chez Vous */
  --fresh:       #059669;
  --fresh-light: #34d399;
  --fresh-glow:  rgba(5, 150, 105, 0.25);

  /* Status */
  --status-ok:   #22c55e;
  --status-soon: #f59e0b;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  2rem;
  --space-xl:  4rem;
  --space-2xl: 8rem;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Transitions */
  --transition:      0.25s ease;
  --transition-slow: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.1rem; }

p { color: var(--muted); max-width: 65ch; }
.text-center { text-align: center; }
.text-center p { margin-inline: auto; }

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding-inline: var(--space-lg);
}

section { padding: 5rem 2rem; }

.section-title {
  text-align: center;
  margin-bottom: 1rem;
}
.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-lg); }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { flex-direction: column; }
.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.navbar .logo { height: 120px; object-fit: contain; }
.navbar img:first-child { height: 120px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--defi);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-links a:hover             { color: var(--text); }
.nav-links a:hover::after      { transform: scaleX(1); }

.nav-toggle {
  display: none;
  font-size: 1.4rem;
  color: var(--text);
  line-height: 1;
  padding: var(--space-sm);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 11, 20, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
}

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  background: var(--defi);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
  animation: glowPulse 3s ease-in-out infinite;
}

.btn-primary:hover {
  background: var(--defi-light);
  box-shadow: 0 0 24px var(--defi-glow), 0 0 48px var(--defi-glow);
  transform: translateY(-2px);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.3), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:active::after { opacity: 1; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hover);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--defi);
  background: rgba(14, 165, 233, 0.08);
  transform: translateY(-2px);
}

.btn-large {
  padding: 0.85rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

/* ── Badges ─────────────────────────────────────────────── */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge-status.ok {
  background: rgba(34, 197, 94, 0.12);
  color: var(--status-ok);
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.badge-status.ok::before {
  background: var(--status-ok);
  box-shadow: 0 0 8px var(--status-ok);
  animation: statusPulse 2s ease-in-out infinite;
}

.badge-status.soon {
  background: rgba(245, 158, 11, 0.12);
  color: var(--status-soon);
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.badge-status.soon::before { background: var(--status-soon); }

/* ── Cards ──────────────────────────────────────────────── */
/* Light mode card override — clean corporate style */
.card-glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: transform var(--transition-slow), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.card-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: transparent;
  pointer-events: none;
}

.card-glass:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.card-glass.glow-defi:hover  { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(14,165,233,0.15);  border-color: rgba(14,165,233,0.25); }
.card-glass.glow-pulse:hover { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(124,58,237,0.15); border-color: rgba(124,58,237,0.25); }
.card-glass.glow-tmi:hover   { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(217,119,6,0.15);   border-color: rgba(217,119,6,0.25); }
.card-glass.glow-fresh:hover { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(5,150,105,0.15); border-color: rgba(5,150,105,0.25); }

.card-tilt {
  transform-style: preserve-3d;
  transition: transform var(--transition-slow);
  will-change: transform;
}

/* ── Section labels ─────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--defi);
  margin-bottom: var(--space-md);
}

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--defi);
  border-radius: 2px;
}

/* ── Dividers ───────────────────────────────────────────── */
.divider {
  width: 60px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--defi), var(--defi-light));
  margin-block: var(--space-md);
}

/* ── Scroll reveal ──────────────────────────────────────── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback : si JS ne charge pas ou si l'observer ne se déclenche pas,
   on affiche le contenu après 2s pour ne jamais laisser de sections vides */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal { opacity: 1; transform: none; transition: none; }
}


.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 12px var(--defi-glow); }
  50%       { box-shadow: 0 0 28px var(--defi-glow), 0 0 48px var(--defi-glow); }
}

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

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

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

@keyframes typing-cursor {
  0%, 100% { border-right-color: var(--defi); }
  50%       { border-right-color: transparent; }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Gradient text ──────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--defi), var(--defi-light), #818cf8);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

/* ── Hero ───────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}
.hero-content .btn-group {
  justify-content: center;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(14, 165, 233, 0.3);
  background: rgba(14, 165, 233, 0.08);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--defi-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.hero-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--defi);
  animation: statusPulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator span {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--muted), transparent);
}

/* ── Stats ──────────────────────────────────────────────── */
#stats {
  padding-block: var(--space-xl);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
  position: relative;
}

.stat-item {
  position: static;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

.stat-item:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-number {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1;
  display: block;
  padding-right: 0.1em;
  background: linear-gradient(135deg, var(--text), var(--muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ── Submit Projet Section ──────────────────────────────── */
.section-submit-projet {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, rgba(14,165,233,0.05) 0%, rgba(56,189,248,0.03) 50%, rgba(14,165,233,0.07) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.section-submit-projet::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(14,165,233,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.submit-projet-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-3xl);
  align-items: center;
}
.submit-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: var(--space-sm) 0 var(--space-md);
}
.submit-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: var(--space-lg);
}
.submit-avantages {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.submit-avantages li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(14,165,233,0.15);
  color: var(--defi-light);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.submit-projet-right {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: 0 8px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(14,165,233,0.08);
}
.projet-form .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.pf-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: var(--space-md);
}
.pf-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pf-group input,
.pf-group select,
.pf-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.9rem;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.pf-group input:focus,
.pf-group select:focus,
.pf-group textarea:focus {
  outline: none;
  border-color: var(--defi-light);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
}
.pf-group input::placeholder,
.pf-group textarea::placeholder { color: rgba(255,255,255,0.22); }
.pf-group select option { background: #0f1520; color: #f0f4ff; }
.pf-group textarea { resize: vertical; min-height: 100px; }
.btn-submit-projet {
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--defi-blue) 0%, var(--defi-light) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: var(--space-sm);
  letter-spacing: 0.01em;
}
.btn-submit-projet:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(14,165,233,0.4);
}
.pf-confidential {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
  opacity: 0.7;
}
@media (max-width: 768px) {
  .submit-projet-inner { grid-template-columns: 1fr; }
  .projet-form .form-row-2 { grid-template-columns: 1fr; }
}

/* ── Project types ──────────────────────────────────────── */
.project-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  transition: background var(--transition), transform var(--transition);
}

.card-glass:hover .project-icon {
  background: rgba(14, 165, 233, 0.2);
  transform: scale(1.1);
}

.project-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--defi-light);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Products ───────────────────────────────────────────── */
.product-logo-wrap {
  height: 56px;
  display: flex;
  align-items: center;
  margin-bottom: var(--space-md);
}

.product-logo {
  max-height: 100%;
  max-width: 160px;
  object-fit: contain;
}

.product-initials {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: var(--space-md);
  transition: gap var(--transition);
}
.product-link:hover { gap: 10px; }

.product-link.defi-link  { color: var(--defi-light); }
.product-link.pulse-link { color: var(--pulse-light); }
.product-link.tmi-link   { color: var(--tmi-light); }
.product-link.fresh-link { color: var(--fresh-light); }

/* ── Timeline ───────────────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 680px;
  margin: var(--space-xl) auto 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 28px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border), var(--border), transparent);
}

.timeline-item {
  display: flex;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  position: relative;
  z-index: 1;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.timeline-item.visible .timeline-dot {
  border-color: var(--defi);
  box-shadow: 0 0 20px var(--defi-glow);
}

.timeline-body { padding-top: 12px; }
.timeline-body h4 { color: var(--text); margin-bottom: var(--space-xs); font-size: 1.1rem; }
.timeline-body p  { color: var(--muted); font-size: 0.9rem; max-width: 50ch; }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  padding-block: var(--space-xl) var(--space-lg);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-xl);
  align-items: start;
  margin-bottom: var(--space-xl);
}

.footer-brand img { height: 52px; object-fit: contain; margin-bottom: var(--space-md); }
.footer-brand p   { font-size: 0.85rem; color: var(--muted); }
.footer-brand a   { color: var(--defi-light); transition: color var(--transition); }
.footer-brand a:hover { color: var(--text); }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: right;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { text-align: left; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── CTA bloc ───────────────────────────────────────────── */
.cta-bloc {
  text-align: center;
  margin-top: var(--space-xl);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: radial-gradient(ellipse at 50% 0%, rgba(14,165,233,0.06) 0%, transparent 60%);
}

.cta-bloc h3 { margin-bottom: var(--space-sm); text-align: center; }
.cta-bloc p  { margin-bottom: var(--space-lg); text-align: center; margin-left: auto; margin-right: auto; }
.cta-bloc .btns { display: flex; justify-content: center; gap: var(--space-md); flex-wrap: wrap; }

/* ── Card image ─────────────────────────────────────────── */
.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 8px 8px 0 0;
  flex-shrink: 0;
}

/* ── Utilities ──────────────────────────────────────────── */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* ── Responsive — Mobile (max 768px) ───────────────────── */
@media (max-width: 768px) {
  /* Photo split */
  .photo-split {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  .photo-split .hero-img {
    order: 2;
    max-height: 250px;
    object-fit: cover;
    border-radius: 12px;
  }
  .hero-content { order: 1; }

  /* Grilles de cards */
  .grid-3, .grid-2, .features-grid, .sectors-grid, .producers-grid {
    grid-template-columns: 1fr !important;
  }
  .stats-grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }
  .stat-item {
    flex: 0 0 45%;
    border-right: none !important;
  }

  /* Timeline directfresh */
  .timeline {
    flex-direction: column;
    align-items: flex-start;
  }
  .tl-connector {
    display: none;
  }
  .tl-step {
    flex-direction: row;
    gap: 1rem;
    width: 100%;
  }

  /* Textes hero */
  h1 { font-size: clamp(1.8rem, 6vw, 2.5rem) !important; }
  .hero-stats { flex-direction: column; gap: 0.5rem; text-align: center; }
  .browser-mockup { transform: none !important; }

  /* Hero text centering */
  .hero-content, .section-content, .hero-text {
    text-align: center;
  }
  #hero h1, #hero p, .hero h1, .hero p {
    text-align: center;
    max-width: 100%;
  }

  /* Photo split centering */
  .photo-split {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  /* Stats and feature grids */
  .stats-grid {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1.5rem !important;
  }
  .stat-item {
    flex: 0 0 100% !important;
    border-right: none !important;
  }
  .features-grid, .cards-grid {
    grid-template-columns: 1fr !important;
    justify-items: center;
  }

  /* CTA buttons */
  .btn-primary, .btn-ghost {
    margin: 0 auto;
    display: block;
    width: fit-content;
  }
  /* Preserve flex layout inside button groups */
  .hero-ctas, .btns, .btn-group {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================================
   BLOG — Design System
   ============================================================ */

/* ── Blog Index ─────────────────────────────────────────── */
.blog-hero {
  padding: 8rem 2rem 4rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(14,165,233,0.12) 0%, transparent 60%),
    var(--bg);
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(124,58,237,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(14,165,233,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.blog-hero-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--defi-light);
  background: rgba(14,165,233,0.1);
  border: 1px solid rgba(14,165,233,0.2);
  padding: 0.4rem 1rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
}
.blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}
.blog-hero p {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── Search & Filter Bar ──────────────────────────────── */
.blog-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.blog-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
  min-width: 220px;
}
.blog-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  width: 100%;
}
.blog-search input::placeholder { color: var(--muted); }
.blog-filter-tag {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
}
.blog-filter-tag.active,
.blog-filter-tag:hover {
  background: rgba(14,165,233,0.12);
  border-color: rgba(14,165,233,0.3);
  color: var(--defi-light);
}

/* ── Blog Grid ────────────────────────────────────────── */
.blog-section {
  padding: 4rem 2rem 6rem;
  max-width: 1140px;
  margin: 0 auto;
}
.blog-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.75rem;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg, 0 12px 40px rgba(0,0,0,0.08));
  border-color: var(--border-hover);
}
.blog-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.blog-card.featured .blog-card-img { height: 300px; }
.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  background: rgba(14,165,233,0.12);
  color: var(--defi-light);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}
.blog-card h3 {
  font-size: 1.05rem;
  line-height: 1.45;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-weight: 600;
}
.blog-card p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
  flex: 1;
}
.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  align-items: center;
}
.blog-read-more {
  color: var(--defi-light);
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap var(--transition);
}
.blog-read-more:hover { gap: 0.5rem; text-decoration: underline; }

/* ── Coming Soon Cards ─────────────────────────────────── */
.blog-soon-section {
  padding: 0 2rem 5rem;
  max-width: 1140px;
  margin: 0 auto;
}
.blog-soon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.blog-soon-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  opacity: 0.7;
}
.blog-soon-card .blog-tag {
  background: rgba(0,0,0,0.04);
  color: var(--muted);
}
.blog-soon-card h4 {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 0.5rem;
  line-height: 1.5;
}
.blog-soon-badge {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.75rem;
  display: block;
}

/* ── Newsletter CTA ────────────────────────────────────── */
.blog-newsletter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 5rem;
}
.blog-newsletter h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.blog-newsletter p { color: var(--muted); margin-bottom: 2rem; }
.blog-newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 420px;
  margin: 0 auto;
}
.blog-newsletter-form input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}
.blog-newsletter-form input:focus { border-color: var(--defi); }
.blog-newsletter-form input::placeholder { color: var(--muted); }

/* ── Article Page ──────────────────────────────────────── */
.article-outer {
  padding: 7rem 2rem 4rem;
  max-width: 820px;
  margin: 0 auto;
}
.article-breadcrumb {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.article-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}
.article-breadcrumb a:hover { color: var(--text); }
.article-breadcrumb span { color: rgba(0,0,0,0.25); }

.article-header { margin-bottom: 2rem; }
.article-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.article-meta-row .blog-tag { margin: 0; }
.article-reading-time {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.article-date {
  font-size: 0.78rem;
  color: var(--muted);
}
.article-outer h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 0;
}
.article-hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 16px;
  margin: 2rem 0;
  display: block;
}
.article-body { line-height: 1.8; }
.article-body h2 {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  margin: 2.5rem 0 1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.article-body h3 {
  font-size: 1.1rem;
  margin: 1.75rem 0 0.6rem;
  color: var(--defi, #0ea5e9);
  font-weight: 600;
}
.article-body p {
  color: #334155;
  line-height: 1.85;
  margin-bottom: 1.2rem;
  max-width: none;
}
.article-body ul,
.article-body ol {
  color: #334155;
  line-height: 1.8;
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.4rem; }
.article-body strong { color: var(--text); font-weight: 600; }

.article-cta-inline {
  background: rgba(14,165,233,0.07);
  border: 1px solid rgba(14,165,233,0.18);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  margin: 2.5rem 0;
  text-align: center;
}
.article-cta-inline h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.article-cta-inline p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.article-footer-nav {
  border-top: 1px solid var(--border);
  margin-top: 3.5rem;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.article-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.article-tag-pill {
  font-size: 0.72rem;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}
.article-nav-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.article-nav-links a {
  color: var(--defi-light);
  text-decoration: none;
  font-weight: 500;
  transition: opacity var(--transition);
}
.article-nav-links a:hover { opacity: 0.75; }
.article-mini-cta {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}
.article-mini-cta a {
  color: var(--defi-light);
  font-weight: 600;
}

/* ── Blog Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-soon-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .blog-soon-grid { grid-template-columns: 1fr; }
  .blog-newsletter-form { flex-direction: column; }
  .article-outer { padding: 6rem 1.25rem 3rem; }
  .article-hero-img { height: 220px; }
  .article-footer-nav { flex-direction: column; }
  .article-nav-links { align-items: flex-start; }
}
