/* =========================================================
   FINERGIE — Design System
   Palette premium : bleu nuit, vert énergie sobre, blanc
   ========================================================= */

:root {
  /* Couleurs */
  --ink-900: #0A1628;      /* Bleu nuit profond */
  --ink-800: #0F1E36;
  --ink-700: #1A2B47;
  --ink-600: #2B3E5C;
  --ink-500: #5A6B85;
  --ink-400: #8895AC;
  --ink-300: #B8C2D1;
  --ink-200: #DDE3EC;
  --ink-100: #EEF2F7;
  --ink-50:  #F6F8FB;

  --leaf-700: #1F6B52;     /* Vert énergie sobre */
  --leaf-600: #2A8A6B;
  --leaf-500: #3AA37F;     /* Accent principal */
  --leaf-400: #5BBF9B;
  --leaf-100: #E4F4EC;
  --leaf-50:  #F1F9F5;

  --gold-500: #C9A55A;     /* Accent sophistication */

  --white: #FFFFFF;
  --black: #000000;

  /* Typographie */
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;

  /* Tailles */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Ombres douces */
  --shadow-xs: 0 1px 2px rgba(10, 22, 40, 0.04);
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 20px 48px rgba(10, 22, 40, 0.12);
  --shadow-xl: 0 32px 72px rgba(10, 22, 40, 0.16);

  /* Conteneurs */
  --container: 1200px;
  --container-narrow: 960px;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms;
  --t-med: 320ms;
  --t-slow: 600ms;
}

/* ========================================================= */
/* Reset et base                                              */
/* ========================================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-800);
  background: var(--white);
  overflow-x: hidden;
  font-weight: 400;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--leaf-600); }

button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }

::selection { background: var(--leaf-500); color: var(--white); }

/* ========================================================= */
/* Typographie                                                 */
/* ========================================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.25;
}

h4 {
  font-size: 1.125rem;
  line-height: 1.35;
}

p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-700);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf-600);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--leaf-500);
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
}

.text-lead {
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-600);
  max-width: 62ch;
}

.highlight {
  color: var(--leaf-600);
  font-weight: 600;
}

/* ========================================================= */
/* Layout helpers                                             */
/* ========================================================= */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: clamp(64px, 10vw, 120px) 0;
  position: relative;
}

.section-head {
  max-width: 720px;
  margin-bottom: 64px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ========================================================= */
/* Boutons                                                    */
/* ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 999px;
  transition: all var(--t-fast) var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn svg { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--ink-900);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--ink-800);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--leaf-600);
  color: var(--white);
}
.btn-accent:hover {
  background: var(--leaf-700);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(42, 138, 107, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--ink-200);
}
.btn-ghost:hover {
  background: var(--ink-900);
  color: var(--white);
  border-color: var(--ink-900);
}

.btn-light {
  background: var(--white);
  color: var(--ink-900);
  border-color: var(--ink-200);
}
.btn-light:hover {
  background: var(--ink-50);
  transform: translateY(-1px);
}

.btn-link {
  padding: 0;
  color: var(--leaf-600);
  background: transparent;
  border-radius: 0;
}
.btn-link:hover { color: var(--leaf-700); background: transparent; }

.btn-sm { padding: 10px 18px; font-size: 0.875rem; }
.btn-lg { padding: 18px 32px; font-size: 1rem; }

.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ========================================================= */
/* Header                                                      */
/* ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(221, 227, 236, 0.6);
  transition: box-shadow var(--t-fast) var(--ease);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(10, 22, 40, 0.14));
  transition: transform var(--t-med) var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.04); }
.brand-mark svg { width: 100%; height: 100%; display: block; }

.brand-text { display: inline-flex; align-items: baseline; gap: 2px; font-weight: 700; }
.brand-dot { color: var(--leaf-500); font-weight: 800; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav a {
  display: inline-block;
  padding: 10px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: 999px;
  transition: all var(--t-fast) var(--ease);
}

.nav a:hover { color: var(--ink-900); background: var(--ink-50); }
.nav a.active { color: var(--ink-900); background: var(--ink-100); font-weight: 600; }

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--ink-200);
  align-items: center;
  justify-content: center;
  color: var(--ink-900);
}

.menu-toggle svg { width: 20px; height: 20px; }

@media (max-width: 960px) {
  .nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--white);
    flex-direction: column;
    padding: 32px 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform var(--t-med) var(--ease);
    align-items: stretch;
    justify-content: flex-start;
    border-top: 1px solid var(--ink-100);
  }
  .nav.open { transform: translateX(0); }
  .nav a { padding: 14px 20px; font-size: 1.0625rem; border-radius: 10px; }
  .menu-toggle { display: inline-flex; }
  .header-cta .btn:not(.menu-toggle) { display: none; }
}

/* ========================================================= */
/* Hero                                                        */
/* ========================================================= */

.hero {
  padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 9vw, 120px);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(58, 163, 127, 0.14), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(10, 22, 40, 0.05), transparent 60%),
    var(--white);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(10, 22, 40, 0.07) 1px, transparent 0);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-copy h1 em.gradient-text,
.gradient-text {
  background: linear-gradient(120deg, var(--leaf-700) 0%, var(--leaf-500) 55%, var(--leaf-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 500;
}

/* Small live badge floating above the hero visual */
.hero-live-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 8px 14px 8px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-900);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(10, 22, 40, 0.06);
  z-index: 2;
}
.hero-live-tag .ping {
  position: relative;
  width: 8px; height: 8px;
  background: var(--leaf-500);
  border-radius: 50%;
}
.hero-live-tag .ping::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--leaf-500);
  opacity: 0.35;
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
  0% { transform: scale(0.8); opacity: 0.6; }
  80%, 100% { transform: scale(1.9); opacity: 0; }
}

/* Partners / Ecosystem marquee */
.partners {
  padding: 44px 0 36px;
  background: var(--white);
  border-top: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
  overflow: hidden;
  position: relative;
}
.partners-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 24px;
}
.partners-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.partners-track {
  display: flex;
  gap: 64px;
  align-items: center;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  width: max-content;
  will-change: transform;
}
.partners:hover .partners-track { animation-play-state: paused; }
.partner-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink-500);
  letter-spacing: -0.015em;
  transition: color var(--t-fast) var(--ease);
  opacity: 0.85;
}
.partner-item:hover { color: var(--ink-900); opacity: 1; }
.partner-item .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--leaf-500);
  box-shadow: 0 0 0 3px rgba(58, 163, 127, 0.14);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Glow cards (startup feel) */
.card.card-glow {
  background:
    radial-gradient(400px 200px at 0% 0%, rgba(58, 163, 127, 0.08), transparent 60%),
    var(--white);
}

/* Tighter hero visual card type */
.hero-visual { box-shadow: 0 40px 80px rgba(10, 22, 40, 0.18), 0 10px 30px rgba(10, 22, 40, 0.10); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero-copy h1 { margin-bottom: 24px; }
.hero-copy h1 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--leaf-600);
  letter-spacing: -0.03em;
}

.hero-copy .text-lead { margin-bottom: 32px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-700);
  box-shadow: var(--shadow-xs);
}

.badge svg { width: 14px; height: 14px; color: var(--leaf-600); }

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 560px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background:
    linear-gradient(180deg, rgba(10, 22, 40, 0.35) 0%, rgba(10, 22, 40, 0.05) 40%, rgba(10, 22, 40, 0.55) 100%),
    url('assets/images/hero-building.jpg') center/cover;
}

.hero-visual-card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.hero-visual-card .big {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--ink-900);
  font-weight: 500;
}

.hero-visual-card .label {
  font-size: 0.8125rem;
  color: var(--ink-600);
  line-height: 1.4;
}

.hero-visual-float {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--ink-900);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-visual-float .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--leaf-400);
  box-shadow: 0 0 0 3px rgba(91, 191, 155, 0.25);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Trustbar */
.trustbar {
  border-top: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
  background: var(--ink-50);
  padding: 24px 0;
}

.trustbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.trustbar-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.trustbar-items {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}

.trustbar-item {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-800);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.trustbar-item svg { width: 18px; height: 18px; color: var(--leaf-600); }

/* ========================================================= */
/* Stats / Chiffres clés                                      */
/* ========================================================= */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--ink-200);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (max-width: 960px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

.stat {
  background: var(--white);
  padding: 32px 28px;
  transition: background var(--t-fast) var(--ease);
}

.stat:hover { background: var(--ink-50); }

.stat-value {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  line-height: 1;
  color: var(--ink-900);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.stat-value small {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.5em;
  color: var(--leaf-600);
  margin-left: 4px;
  font-weight: 600;
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--ink-600);
  line-height: 1.4;
}

/* ========================================================= */
/* Cards                                                       */
/* ========================================================= */

.card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--t-med) var(--ease);
  position: relative;
}

.card:hover {
  border-color: var(--ink-200);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--leaf-50);
  color: var(--leaf-700);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  transition: all var(--t-fast) var(--ease);
}
.card-icon svg { width: 22px; height: 22px; }
.card:hover .card-icon {
  background: var(--leaf-600);
  color: var(--white);
}

.card h3 { margin-bottom: 12px; }
.card p { font-size: 1rem; color: var(--ink-600); }

.card-dark {
  background: var(--ink-900);
  border: 0;
  color: var(--white);
}
.card-dark h3 { color: var(--white); }
.card-dark p { color: var(--ink-300); }
.card-dark .card-icon {
  background: rgba(58, 163, 127, 0.15);
  color: var(--leaf-400);
}

/* ========================================================= */
/* Split (image + texte)                                      */
/* ========================================================= */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse { direction: ltr; }
}

.split-media {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.split-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0) 50%, rgba(10,22,40,0.35) 100%);
  pointer-events: none;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
}

.feature-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: flex-start;
}

.feature-item-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--leaf-50);
  color: var(--leaf-700);
  display: grid; place-items: center;
  margin-top: 2px;
}
.feature-item-icon svg { width: 16px; height: 16px; }

.feature-item h4 { margin-bottom: 4px; font-size: 1.0625rem; }
.feature-item p { font-size: 0.9375rem; line-height: 1.6; color: var(--ink-600); }

/* ========================================================= */
/* Section sombre                                              */
/* ========================================================= */

.section-dark {
  background: var(--ink-900);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(58, 163, 127, 0.14), transparent 60%),
    radial-gradient(600px 400px at 10% 100%, rgba(58, 163, 127, 0.08), transparent 60%);
  pointer-events: none;
}

.section-dark > * { position: relative; z-index: 1; }

.section-dark h1,
.section-dark h2,
.section-dark h3 { color: var(--white); }
.section-dark p { color: var(--ink-300); }
.section-dark .eyebrow { color: var(--leaf-400); }
.section-dark .eyebrow::before { background: var(--leaf-400); }

/* ========================================================= */
/* Timeline process                                            */
/* ========================================================= */

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  position: relative;
  margin-top: 40px;
}

@media (max-width: 960px) {
  .timeline { grid-template-columns: 1fr; }
}

.timeline-step {
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  position: relative;
  transition: all var(--t-fast) var(--ease);
}

.timeline-step:hover {
  border-color: var(--leaf-500);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.timeline-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--leaf-600);
  margin-bottom: 12px;
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--leaf-200, var(--leaf-100));
  min-width: 2ch;
}

.timeline-step h4 { margin-bottom: 8px; }
.timeline-step p { font-size: 0.9375rem; line-height: 1.55; color: var(--ink-600); }

/* ========================================================= */
/* FAQ                                                         */
/* ========================================================= */

.faq { max-width: 840px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--ink-100);
}

.faq-question {
  width: 100%;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink-900);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease);
}

.faq-question:hover { color: var(--leaf-700); }

.faq-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ink-200);
  display: grid; place-items: center;
  transition: all var(--t-fast) var(--ease);
}
.faq-icon svg { width: 14px; height: 14px; transition: transform var(--t-med) var(--ease); }

.faq-item.open .faq-icon {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--white);
}
.faq-item.open .faq-icon svg { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-med) var(--ease);
}

.faq-answer-inner {
  padding: 0 0 24px 0;
  color: var(--ink-600);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 720px;
}

/* ========================================================= */
/* Case study                                                  */
/* ========================================================= */

.case-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

@media (max-width: 960px) { .case-card { grid-template-columns: 1fr; } }

.case-content { padding: clamp(32px, 4vw, 56px); }
.case-media {
  background:
    linear-gradient(180deg, rgba(10,22,40,0) 30%, rgba(10,22,40,0.5) 100%),
    url('assets/images/case-study.jpg') center/cover;
  min-height: 340px;
}

.case-tag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--leaf-50);
  color: var(--leaf-700);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 16px;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--ink-100);
}

@media (max-width: 480px) { .case-metrics { grid-template-columns: 1fr; } }

.case-metric .value {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.875rem;
  color: var(--leaf-700);
  line-height: 1;
  font-weight: 500;
}

.case-metric .label {
  font-size: 0.8125rem;
  color: var(--ink-500);
  margin-top: 6px;
}

/* ========================================================= */
/* CTA band                                                    */
/* ========================================================= */

.cta-band {
  background: var(--ink-900);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(58, 163, 127, 0.22), transparent 60%);
  pointer-events: none;
}

.cta-band > * { position: relative; z-index: 1; }

.cta-band h2 { color: var(--white); margin-bottom: 16px; }
.cta-band p { color: var(--ink-300); font-size: 1.0625rem; }

@media (max-width: 768px) {
  .cta-band { grid-template-columns: 1fr; text-align: left; }
}

/* ========================================================= */
/* Formulaires                                                */
/* ========================================================= */

.form {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field:last-of-type { margin-bottom: 0; }

.field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-800);
}
.field label .req { color: var(--leaf-600); }

.field .hint {
  font-size: 0.8125rem;
  color: var(--ink-500);
  margin-top: -2px;
}

.input, .textarea, .select {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink-900);
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
  transition: all var(--t-fast) var(--ease);
}

.input:hover, .textarea:hover, .select:hover { border-color: var(--ink-300); }

.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--leaf-500);
  box-shadow: 0 0 0 4px rgba(58, 163, 127, 0.14);
}

.textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235A6B85' stroke-width='1.5' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--ink-600);
  line-height: 1.55;
  cursor: pointer;
}

.check input {
  width: 18px; height: 18px;
  accent-color: var(--leaf-600);
  margin-top: 2px;
}

.form-actions { margin-top: 28px; }

.form-status {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  display: none;
}
.form-status.success {
  display: block;
  background: var(--leaf-50);
  color: var(--leaf-700);
  border: 1px solid var(--leaf-100);
}
.form-status.error {
  display: block;
  background: #FEF2F2;
  color: #B1342A;
  border: 1px solid #FECACA;
}

/* ========================================================= */
/* Simulateur                                                  */
/* ========================================================= */

.simulator {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 960px) { .simulator { grid-template-columns: 1fr; } }

.sim-results {
  position: sticky;
  top: 104px;
  background: linear-gradient(180deg, var(--ink-900) 0%, var(--ink-800) 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 40px);
  overflow: hidden;
  position: relative;
}

.sim-results::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(58, 163, 127, 0.25), transparent 60%);
  pointer-events: none;
}

.sim-results > * { position: relative; z-index: 1; }

.sim-results h3 { color: var(--white); margin-bottom: 6px; font-size: 1.125rem; }
.sim-results .sub { color: var(--ink-300); font-size: 0.875rem; margin-bottom: 28px; }

.sim-result-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sim-result-item:last-of-type { border-bottom: 0; }

.sim-result-label {
  font-size: 0.8125rem;
  color: var(--ink-300);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 500;
}

.sim-result-value {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}
.sim-result-value.accent { color: var(--leaf-400); }

.sim-headline {
  margin-top: 28px;
  padding: 18px 20px;
  background: rgba(58, 163, 127, 0.16);
  border: 1px solid rgba(58, 163, 127, 0.35);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--white);
  line-height: 1.55;
}

.sim-disclaimer {
  margin-top: 20px;
  font-size: 0.75rem;
  color: var(--ink-400);
  line-height: 1.55;
}

/* ========================================================= */
/* Footer                                                     */
/* ========================================================= */

.site-footer {
  background: var(--ink-900);
  color: var(--ink-300);
  padding: 80px 0 32px;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .brand { color: var(--white); margin-bottom: 16px; }
.footer-brand p { color: var(--ink-400); font-size: 0.9375rem; max-width: 360px; }

.footer-col h5 {
  font-size: 0.75rem;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--ink-300);
  font-size: 0.9375rem;
  transition: color var(--t-fast) var(--ease);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 0.8125rem;
  color: var(--ink-500);
  flex-wrap: wrap;
}

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

/* ========================================================= */
/* Page hero variant                                          */
/* ========================================================= */

.page-hero {
  padding: 72px 0 48px;
  background: var(--ink-50);
  border-bottom: 1px solid var(--ink-100);
}

.page-hero h1 { max-width: 820px; margin-bottom: 20px; }
.page-hero p { max-width: 680px; color: var(--ink-600); }

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--ink-500);
  margin-bottom: 20px;
}

.breadcrumb a:hover { color: var(--ink-900); }
.breadcrumb span { color: var(--ink-400); }

/* ========================================================= */
/* Legal pages                                                */
/* ========================================================= */

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-700);
}

.legal-content h2 {
  margin-top: 56px;
  margin-bottom: 16px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
  margin-top: 32px;
  margin-bottom: 10px;
  font-size: 1.125rem;
}

.legal-content p { margin-bottom: 14px; color: var(--ink-700); }

.legal-content ul {
  margin: 10px 0 20px 22px;
  padding: 0;
}

.legal-content li { margin-bottom: 6px; }

.legal-content strong { color: var(--ink-900); font-weight: 600; }

.legal-box {
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 20px 0 32px;
}

.legal-box p { margin-bottom: 6px; font-size: 0.9375rem; }
.legal-box p strong { color: var(--ink-900); }

/* ========================================================= */
/* Animations d'apparition                                    */
/* ========================================================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibilité : reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ========================================================= */
/* Utils                                                      */
/* ========================================================= */

.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

/* =========================================================
   STARTUP UPGRADE — Typography, buttons, testimonials, sticky CTA
   ========================================================= */

/* Bigger, tighter hero heading */
.hero-copy h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.25rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.hero-copy .text-lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); }

/* Refined buttons — deeper shadows, crisper hovers */
.btn {
  padding: 14px 26px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform 160ms var(--ease), box-shadow 220ms var(--ease), background 180ms var(--ease);
}
.btn-lg { padding: 17px 32px; font-size: 1rem; }
.btn-primary {
  background: var(--ink-900);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 24px rgba(10,22,40,0.18);
}
.btn-primary:hover {
  background: #0B192E;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 14px 32px rgba(10,22,40,0.28);
  transform: translateY(-1px);
}
.btn-accent {
  background: linear-gradient(135deg, var(--leaf-600) 0%, var(--leaf-700) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 8px 24px rgba(42, 138, 107, 0.30);
}
.btn-accent:hover {
  background: linear-gradient(135deg, var(--leaf-700) 0%, var(--leaf-600) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24), 0 14px 34px rgba(42, 138, 107, 0.42);
  transform: translateY(-1px);
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: all var(--t-med) var(--ease);
}
.testimonial:hover {
  transform: translateY(-3px);
  border-color: var(--ink-200);
  box-shadow: var(--shadow-md);
}
.testimonial-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink-800);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.testimonial-quote::before {
  content: '\201C';
  display: inline-block;
  font-size: 2.5rem;
  line-height: 0;
  color: var(--leaf-500);
  vertical-align: -0.25em;
  margin-right: 4px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--ink-100);
}
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ink-800), var(--leaf-700));
  color: var(--white);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 600; color: var(--ink-900); font-size: 0.9375rem; line-height: 1.2; }
.testimonial-role { font-size: 0.8125rem; color: var(--ink-500); margin-top: 2px; }

/* Sticky bottom CTA */
.sticky-cta {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 960px;
  margin: 0 auto;
  background: var(--ink-900);
  color: var(--white);
  border-radius: 14px;
  padding: 14px 18px;
  z-index: 70;
  box-shadow: 0 24px 56px rgba(10, 22, 40, 0.35), inset 0 1px 0 rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateY(calc(100% + 40px));
  opacity: 0;
  pointer-events: none;
  transition: transform 420ms var(--ease), opacity 300ms var(--ease);
}
.sticky-cta.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.sticky-cta-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sticky-cta strong { font-size: 0.9375rem; font-weight: 600; color: var(--white); }
.sticky-cta span { font-size: 0.8125rem; color: var(--ink-300); }
.sticky-cta-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  color: var(--ink-300);
  display: grid; place-items: center;
  transition: all var(--t-fast) var(--ease);
  flex-shrink: 0;
}
.sticky-cta-close:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.sticky-cta-close svg { width: 16px; height: 16px; }

@media (max-width: 640px) {
  .sticky-cta { padding: 12px 12px 12px 16px; gap: 10px; bottom: 12px; left: 12px; right: 12px; }
  .sticky-cta span { display: none; }
  .sticky-cta strong { font-size: 0.8125rem; }
  .sticky-cta .btn { padding: 10px 14px; font-size: 0.8125rem; }
}

/* Section head polish */
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.035em; }
