/* ============================================================
   FINSTRATEGIA — DESIGN SYSTEM
   Mobile-first responsive — "Vos chiffres. Votre structure. Votre stratégie."
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300;1,9..40,400&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --color-primary:        #0D2D4E;
  --color-primary-light:  #1A4A72;
  --color-primary-xlight: #1E5C8A;
  --color-primary-pale:   #EBF2F8;
  --color-primary-ultra:  #F5F9FD;

  --color-surface:        #FFFFFF;
  --color-background:     #F8FAFB;
  --color-surface-alt:    #F2F5F7;

  --color-text-primary:   #0D1B2A;
  --color-text-secondary: #3D5166;
  --color-text-muted:     #6B7E90;
  --color-text-light:     #9AAABB;
  --color-text-inverse:   #FFFFFF;

  --color-border:         #E2E9EF;
  --color-border-strong:  #C8D5DF;
  --color-success:        #1A7F5A;
  --color-error:          #B91C1C;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Typographie fluide */
  --text-h1:      clamp(1.9rem, 5vw, 3.75rem);
  --text-h2:      clamp(1.55rem, 3vw, 2.75rem);
  --text-h3:      clamp(1.2rem, 2vw, 1.875rem);
  --text-h4:      clamp(1rem, 1.5vw, 1.375rem);
  --text-body-lg: clamp(1rem, 1.2vw, 1.125rem);
  --text-body:    1rem;
  --text-sm:      0.9rem;
  --text-xs:      0.8rem;
  --text-caption: 0.75rem;
  --text-nav:     0.88rem;
  --text-btn:     0.84rem;

  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-extrabold:800;

  --leading-tight:  1.1;
  --leading-snug:   1.3;
  --leading-normal: 1.5;
  --leading-relaxed:1.7;

  --tracking-tight:  -0.04em;
  --tracking-snug:   -0.02em;
  --tracking-normal: -0.01em;
  --tracking-wide:   0.04em;
  --tracking-wider:  0.08em;
  --tracking-widest: 0.15em;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --section-py:    clamp(3.5rem, 8vw, 6.5rem);
  --section-py-sm: clamp(2.5rem, 5vw, 4.5rem);

  /* Layout */
  --container-width: 1280px;
  --container-narrow: 960px;
  --container-px: clamp(1rem, 5vw, 3rem);

  /* Nav height */
  --nav-h: 68px;

  /* Border radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:   0 1px 2px rgba(13,45,78,.05);
  --shadow-sm:   0 2px 8px rgba(13,45,78,.07);
  --shadow-md:   0 4px 20px rgba(13,45,78,.09);
  --shadow-lg:   0 8px 40px rgba(13,45,78,.12);
  --shadow-xl:   0 20px 60px rgba(13,45,78,.15);
  --shadow-card: 0 2px 16px rgba(13,45,78,.07), 0 1px 4px rgba(13,45,78,.04);

  /* Transitions */
  --t-fast:   150ms cubic-bezier(.4,0,.2,1);
  --t-base:   250ms cubic-bezier(.4,0,.2,1);
  --t-slow:   400ms cubic-bezier(.4,0,.2,1);
  --t-spring: 300ms cubic-bezier(.34,1.56,.64,1);

  /* Z-index */
  --z-raised:  10;
  --z-overlay: 100;
  --z-modal:   200;
  --z-nav:     1000;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a          { color: inherit; text-decoration: none; }
button     { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol     { list-style: none; }
input, textarea, select { font-family: inherit; }
::selection { background: var(--color-primary-pale); color: var(--color-primary); }

/* ============================================================
   CONTAINER & SECTIONS
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}
.container--narrow { max-width: var(--container-narrow); }
.container--xs     { max-width: 720px; }

.section     { padding-top: var(--section-py);    padding-bottom: var(--section-py); }
.section--sm { padding-top: var(--section-py-sm); padding-bottom: var(--section-py-sm); }
.section--dark { background: var(--color-primary); color: var(--color-text-inverse); }
.section--alt  { background: var(--color-background); }
.section--pale { background: var(--color-primary-ultra); }

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */
h1, .h1 {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  color: var(--color-text-primary);
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  color: var(--color-text-primary);
}
h4, .h4 {
  font-family: var(--font-display);
  font-size: var(--text-h4);
  font-weight: var(--weight-medium);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
}

.body-lg     { font-size: var(--text-body-lg); line-height: var(--leading-relaxed); }
.text-muted  { color: var(--color-text-muted); }
.text-sm     { font-size: var(--text-sm); }
.text-xs     { font-size: var(--text-xs); }
.text-caption{
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.label-eyebrow {
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-primary-light);
}

.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .label-eyebrow { color: rgba(255,255,255,.6); }
.section--dark p, .section--dark .body-lg { color: rgba(255,255,255,.75); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-btn);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: all var(--t-base);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
}
.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn--outline-white:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
.btn--ghost:hover { color: var(--color-primary-light); gap: var(--space-3); }

.btn--lg { padding: 1.05rem 2.25rem; font-size: .875rem; }
.btn--sm { padding: .6rem 1.2rem; font-size: var(--text-xs); }

.btn-group {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  transition: all var(--t-base);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--color-border-strong);
}
.card--service { position: relative; overflow: hidden; }
.card--service::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--color-primary);
  transition: height var(--t-slow);
}
.card--service:hover::before { height: 100%; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary-pale);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid rgba(13,45,78,.1);
}
.badge--dark {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  border-color: rgba(255,255,255,.15);
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header { margin-bottom: var(--space-12); }
.section-header--center { text-align: center; }
.section-header--center .section-header__title::after { margin: var(--space-5) auto 0; }

.section-header__title {
  position: relative;
  margin-bottom: var(--space-6);
}
.section-header__title::after {
  content: '';
  display: block;
  width: 40px; height: 3px;
  background: var(--color-primary);
  margin-top: var(--space-5);
  border-radius: 2px;
}
.section-header__lead {
  font-size: var(--text-body-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
  max-width: 640px;
}
.section-header--center .section-header__lead { margin: 0 auto; }

/* ============================================================
   GRIDS — mobile first (1 col) → responsive
   ============================================================ */
.grid     { display: grid; gap: var(--space-8); }
.grid--2  { grid-template-columns: 1fr; }
.grid--3  { grid-template-columns: 1fr; }
.grid--4  { grid-template-columns: 1fr; }
.grid--auto { grid-template-columns: 1fr; }

/* Grille 2 cols côte-à-côte (hero dark, approche360) */
.cols-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}

/* Grille 5 étapes */
.cols-5 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

/* Grille formulaire 2 champs côte à côte */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group  { display: flex; flex-direction: column; gap: var(--space-2); }
.form-label  {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: .875rem 1.125rem;
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-text-primary);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--t-fast);
  outline: none;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13,45,78,.08);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   NAVIGATION — desktop
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  transition: all var(--t-base);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 var(--container-px);
  max-width: var(--container-width);
  margin: 0 auto;
}
.nav--transparent { background: transparent; }
.nav--solid {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}
.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--color-primary);
}
.nav__menu {
  display: none; /* masqué mobile → visible desktop */
  align-items: center;
  gap: var(--space-1);
}
.nav__link {
  font-size: var(--text-nav);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: color var(--t-fast);
  white-space: nowrap;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: var(--space-3); right: var(--space-3);
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform var(--t-base);
  border-radius: 2px;
}
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); }
.nav__link:hover, .nav__link.active { color: var(--color-primary); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
/* Badge LODEOM dans nav */
.nav__lodeom-badge { display: none; } /* masqué mobile */
/* Bouton RDV nav */
.nav__cta { display: none; } /* masqué mobile */

/* Hamburger — visible mobile */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
  background: none;
  border: none;
}
.nav__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--t-base);
}
.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   MOBILE DRAWER
   ============================================================ */
.nav__drawer {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: calc(var(--z-nav) - 1);
  transform: translateX(100%);
  transition: transform var(--t-base);
  overflow-y: auto;
  padding: var(--space-6) var(--container-px) var(--space-10);
}
.nav__drawer.open { transform: translateX(0); }

.nav__drawer-menu {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-6);
}
.nav__drawer-link {
  font-size: 1.1rem;
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color var(--t-fast);
}
.nav__drawer-link:hover { color: var(--color-primary); }
.nav__drawer-cta {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
  padding-top: var(--nav-h);
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__bg-gradient {
  position: absolute;
  top: -20%; right: -10%;
  width: 60%; height: 120%;
  background: radial-gradient(ellipse at center, var(--color-primary-pale) 0%, transparent 70%);
  opacity: .7;
}
.hero__bg-lines {
  position: absolute;
  bottom: 0; right: 0;
  width: 40%; height: 100%;
  opacity: .04;
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: var(--space-12) 0 var(--space-10);
  max-width: 780px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: fadeUp .6s ease forwards .2s;
}
.hero__eyebrow-line {
  width: 28px; height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}
.hero__title {
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: fadeUp .7s ease forwards .4s;
}
.hero__subtitle {
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
  max-width: 580px;
  margin-bottom: var(--space-10);
  opacity: 0;
  animation: fadeUp .7s ease forwards .6s;
}
.hero__actions {
  opacity: 0;
  animation: fadeUp .7s ease forwards .8s;
}

/* ============================================================
   PROGRESS STEPS (simulator)
   ============================================================ */
.progress-steps { display: flex; align-items: center; }
.progress-step {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
}
.progress-step.active { color: var(--color-primary); font-weight: var(--weight-semibold); }
.progress-step.done   { color: var(--color-success); }
.progress-step__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background var(--t-base);
}
.progress-step.active .progress-step__dot { background: var(--color-primary); }
.progress-step.done .progress-step__dot   { background: var(--color-success); }
.progress-step__line { width: 28px; height: 1px; background: var(--color-border); margin: 0 var(--space-2); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-primary);
  color: rgba(255,255,255,.75);
  padding: var(--space-16) 0 var(--space-10);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: var(--space-6);
}
.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--weight-bold);
  color: #fff;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-3);
}
.footer__tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.5);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}
.footer__col-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: var(--space-4);
}
.footer__links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__link  { font-size: var(--text-sm); color: rgba(255,255,255,.65); transition: color var(--t-fast); }
.footer__link:hover { color: #fff; }
.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: rgba(255,255,255,.35);
}

/* ============================================================
   POPUP
   ============================================================ */
.popup-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: flex;
  align-items: flex-end; /* mobile : bottom sheet */
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
}
.popup-overlay.visible { opacity: 1; pointer-events: all; }

.popup {
  background: var(--color-surface);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  padding: var(--space-8) var(--space-6) var(--space-10);
  width: 100%;
  max-width: 100%;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: translateY(30px);
  transition: transform var(--t-spring);
}
.popup-overlay.visible .popup { transform: translateY(0); }
.popup__close {
  position: absolute;
  top: var(--space-4); right: var(--space-4);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-background);
  color: var(--color-text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--t-fast);
}
.popup__close:hover { background: var(--color-border); color: var(--color-text-primary); }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.animate-on-scroll.delay-1 { transition-delay: .1s; }
.animate-on-scroll.delay-2 { transition-delay: .2s; }
.animate-on-scroll.delay-3 { transition-delay: .3s; }
.animate-on-scroll.delay-4 { transition-delay: .4s; }
.animate-on-scroll.delay-5 { transition-delay: .5s; }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   STRUCTURE DIAGRAM
   ============================================================ */
.structure-node {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-5);
  text-align: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
}
.structure-node--primary {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.3);
  font-size: var(--text-body);
}
.structure-connector {
  width: 2px; height: 28px;
  background: rgba(255,255,255,.2);
  margin: 0 auto;
}
.structure-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ============================================================
   LODEOM SIMULATOR
   ============================================================ */
.simulator-step         { display: none; }
.simulator-step.active  { display: block; }

.simulator-progress {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-10);
}
.simulator-progress-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  position: relative;
}
.simulator-progress-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px; left: 50%;
  width: 100%; height: 2px;
  background: var(--color-border);
  z-index: 0;
  transition: background var(--t-base);
}
.simulator-progress-item.done:not(:last-child)::after { background: var(--color-primary); }

.simulator-progress-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-background);
  border: 2px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
  z-index: 1;
  transition: all var(--t-base);
}
.simulator-progress-item.active .simulator-progress-dot,
.simulator-progress-item.done  .simulator-progress-dot {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.simulator-progress-label {
  font-size: .65rem;
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  text-align: center;
  white-space: nowrap;
  display: none; /* caché mobile, visible tablette+ */
}
.simulator-progress-item.active .simulator-progress-label,
.simulator-progress-item.done  .simulator-progress-label {
  color: var(--color-primary);
}

/* Choice cards */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.choice-card {
  padding: var(--space-4) var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--t-base);
  background: var(--color-surface);
  text-align: center;
}
.choice-card:hover { border-color: var(--color-primary-light); background: var(--color-primary-ultra); }
.choice-card.selected { border-color: var(--color-primary); background: var(--color-primary-pale); color: var(--color-primary); }
.choice-card__label { font-weight: var(--weight-medium); font-size: var(--text-sm); }

/* Result card */
.result-highlight {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  text-align: center;
}
.result-amount {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  margin: var(--space-4) 0;
}
.result-label {
  font-size: var(--text-sm);
  opacity: .7;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

/* ============================================================
   ADMIN
   ============================================================ */
.admin-bar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: calc(var(--z-nav) + 10);
  background: var(--color-primary); color: #fff;
  height: 44px;
  display: flex; align-items: center;
  padding: 0 var(--space-6);
  gap: var(--space-6);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
}
.admin-bar__actions { margin-left: auto; display: flex; gap: var(--space-3); align-items: center; }
.admin-bar__btn {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: .72rem;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  transition: background var(--t-fast);
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.admin-bar__btn:hover { background: rgba(255,255,255,.2); }
.admin-bar__btn--accent { background: rgba(255,255,255,.95); color: var(--color-primary); }
.admin-bar__btn--accent:hover { background: #fff; }

/* Stat number */
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
}

/* Utilities */
.text-center  { text-align: center; }
.text-white   { color: #fff !important; }
.text-primary { color: var(--color-primary) !important; }
.w-full       { width: 100%; }
.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.gap-4        { gap: var(--space-4); }
.gap-6        { gap: var(--space-6); }
.mt-auto      { margin-top: auto; }
.divider      { width: 100%; height: 1px; background: var(--color-border); }

/* Hex 360 — mobile : liste de badges, desktop : diagramme SVG */
.hex-diagram  { display: none; }
.hex-list     { display: flex; }
.hidden-mobile { display: none !important; }

/* ============================================================
   RESPONSIVE — tablet ≥ 640px
   ============================================================ */
@media (min-width: 640px) {
  /* Grilles */
  .grid--auto  { grid-template-columns: repeat(2, 1fr); }
  .grid--4     { grid-template-columns: repeat(2, 1fr); }
  .form-row    { grid-template-columns: repeat(2, 1fr); }
  .choice-grid { grid-template-columns: repeat(3, 1fr); }

  /* Simulator labels */
  .simulator-progress-label { display: block; }

  /* Footer 2 cols */
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }

  /* Popup → centré (pas bottom-sheet) */
  .popup-overlay { align-items: center; padding: var(--space-6); }
  .popup {
    border-radius: var(--radius-2xl);
    max-width: 480px;
    padding: var(--space-10) var(--space-8);
    transform: translateY(20px) scale(.98);
  }
  .popup-overlay.visible .popup { transform: translateY(0) scale(1); }
}

/* ============================================================
   RESPONSIVE — tablet landscape ≥ 768px
   ============================================================ */
@media (min-width: 768px) {
  .grid--2    { grid-template-columns: repeat(2, 1fr); }
  .grid--3    { grid-template-columns: repeat(2, 1fr); }
  .grid--4    { grid-template-columns: repeat(2, 1fr); }
  .grid--auto { grid-template-columns: repeat(2, 1fr); }

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

  .footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: var(--space-10); }

  /* Résultat LODEOM */
  .result-highlight { padding: var(--space-10) var(--space-12); }
}

/* ============================================================
   RESPONSIVE — desktop ≥ 1024px
   ============================================================ */
@media (min-width: 1024px) {
  /* Navigation desktop */
  .nav__menu         { display: flex; }
  .nav__hamburger    { display: none; }
  .nav__lodeom-badge { display: inline-flex; }
  .nav__cta          { display: inline-flex; }

  /* Grilles desktop */
  .grid--3    { grid-template-columns: repeat(3, 1fr); }
  .grid--4    { grid-template-columns: repeat(4, 1fr); }
  .grid--auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

  /* Layout 2 colonnes desktop */
  .cols-2 { grid-template-columns: 1fr 1fr; gap: var(--space-20); }

  /* Méthode 5 étapes */
  .cols-5 { grid-template-columns: repeat(5, 1fr); }

  /* Footer 4 colonnes */
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-16); }

  /* Hero plein écran */
  .hero { min-height: 100vh; }
  .hero__content { padding: var(--space-24) 0; }

  /* Choice grid 3 cols */
  .choice-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }

  /* Hex 360 — afficher diagramme SVG, cacher liste mobile */
  .hex-diagram  { display: block; }
  .hex-list     { display: none !important; }
  .hidden-mobile { display: block !important; }

  /* Section header margin */
  .section-header { margin-bottom: var(--space-16); }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .nav, .footer, .popup-overlay, .admin-bar { display: none !important; }
}
