/* =========================================================
   SocialNova — Direction "Repère Local"
   Palette stricte : #0b4daf / #0d1f3c / #fb7233 / #e8eef8 / #fff
   Design system : échelle typo modulaire, grille 8px, tokens
   de mouvement, 2 niveaux d'élévation seulement.
   ========================================================= */

:root {
  /* Couleurs — charte verrouillée, aucune autre couleur autorisée */
  --blue: #0b4daf;
  --blue-dark: #093d8a;
  --navy: #0d1f3c;
  --orange: #fb7233;
  --orange-dark: #e8611f;
  --pale: #e8eef8;
  --white: #ffffff;

  --font-head: 'Poppins', 'Nunito', system-ui, sans-serif;
  --font-body: 'Poppins', 'Nunito', system-ui, sans-serif;

  /* Échelle typographique modulaire (ratio ~1.25, fluide) */
  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem);
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.05rem);
  --step-1:  clamp(1.2rem, 1.13rem + 0.35vw, 1.4rem);
  --step-2:  clamp(1.44rem, 1.32rem + 0.6vw, 1.75rem);
  --step-3:  clamp(1.8rem, 1.55rem + 1.2vw, 2.4rem);
  --step-4:  clamp(2.2rem, 1.8rem + 2vw, 3.2rem);
  --step-5:  clamp(2.7rem, 2.1rem + 3vw, 4.2rem);

  /* Grille d'espacement 8px */
  --sp-1: 0.25rem;   /* 4px */
  --sp-2: 0.5rem;    /* 8px */
  --sp-3: 0.75rem;   /* 12px */
  --sp-4: 1rem;      /* 16px */
  --sp-5: 1.5rem;    /* 24px */
  --sp-6: 2rem;      /* 32px */
  --sp-7: 3rem;      /* 48px */
  --sp-8: 4rem;      /* 64px */
  --sp-9: 6rem;      /* 96px */
  --sp-10: 8rem;     /* 128px */

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --radius-pill: 999px;

  /* Élévation — 2 niveaux seulement, réservés aux objets "flottants" */
  --shadow-float: 0 20px 44px -12px rgba(11, 77, 175, 0.22);
  --shadow-hover: 0 10px 24px -8px rgba(13, 31, 60, 0.16);

  /* Mouvement */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 150ms;
  --dur-base: 300ms;
  --dur-slow: 450ms; /* entrées (fade+slide) — plafond 500ms */

  --wrap: 1160px;
  --section-pad: clamp(4rem, 4rem + 4vw, 7.5rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  font-weight: 400;
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

/* ---------- Accessibilité : focus visible, skip-link ---------- */

:focus { outline: none; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-4);
  z-index: 1000;
  background: var(--navy);
  color: var(--white);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-s);
  font-weight: 700;
  font-size: var(--step--1);
  transition: top var(--dur-base) var(--ease-out);
}

.skip-link:focus {
  top: var(--sp-4);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* display:table-caption ignores position:absolute in some engines — force block first */
caption.sr-only {
  display: block;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section--tinted {
  background: var(--pale);
}

.section--dark {
  background: var(--navy);
  color: #dbe6f7;
}

.section--dark h2, .section--dark h3 { color: var(--white); }

/* ---------- Waypoint : chip "pin de carte" (motif Repère Local) ---------- */

.waypoint {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--pale);
  padding: var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-3);
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-5);
  position: relative;
}

.waypoint svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--orange);
}

.section--dark .waypoint {
  color: var(--orange);
  background: rgba(255, 255, 255, 0.08);
}
.section--dark .waypoint svg { color: var(--orange); }

.section-head {
  max-width: 640px;
  margin-bottom: var(--sp-8);
}

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

.section-head h2 {
  font-size: var(--step-3);
}

.section-head .lede {
  font-size: var(--step-1);
  color: #3a4d6b;
  margin-bottom: 0;
}

.section--dark .section-head .lede { color: #b7c7e2; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-6);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: var(--step-0);
  border: none;
  transition: transform var(--dur-fast) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  min-height: 44px;
}

.btn-orange {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(251, 114, 51, 0.32);
}

.btn-orange:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(251, 114, 51, 0.4);
}

.btn-orange:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 6px 16px rgba(251, 114, 51, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  padding: calc(var(--sp-4) - 2px) calc(var(--sp-6) - 2px);
}

.btn-ghost:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-ghost:active {
  transform: scale(0.97);
}

.section--dark .btn-ghost {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.section--dark .btn-ghost:hover {
  background: rgba(255,255,255,0.12);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--dur-base) var(--ease-out);
}

.btn:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(13, 31, 60, 0.06);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.brand img {
  height: 32px;
  width: auto;
}

.header-cta {
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--step--1);
  min-height: 40px;
}

/* ---------- Hero ---------- */

.hero {
  --hero-glow-core: 0.22;    /* opacité du bleu SocialNova au centre du halo */
  --hero-glow-pale: 1;       /* opacité du bleu pâle en zone intermédiaire */
  padding-top: clamp(3.5rem, 3rem + 3vw, 6rem);
  padding-bottom: clamp(3.5rem, 3rem + 3vw, 6rem);
  overflow: hidden;
  background:
    radial-gradient(
      ellipse 75% 65% at 50% 38%,
      rgba(11, 77, 175, var(--hero-glow-core)) 0%,
      rgba(232, 238, 248, var(--hero-glow-pale)) 38%,
      rgba(255, 255, 255, 0) 72%
    ),
    var(--white);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-9);
  align-items: center;
}

.hero-copy .waypoint { margin-bottom: var(--sp-5); }

.hero h1 {
  font-size: var(--step-5);
  margin-bottom: var(--sp-5);
}

.hero h1 .hl {
  position: relative;
  white-space: nowrap;
  color: var(--blue);
}

.hero-sub {
  font-size: var(--step-1);
  color: #3a4d6b;
  max-width: 520px;
  margin-bottom: var(--sp-6);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-5);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--step--1);
  color: #5b6c88;
}
.hero-note svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }

/* ---------- Entrée Hero : au chargement, pas au scroll ---------- */

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

.load-in {
  animation: loadIn var(--dur-slow) var(--ease-out) both;
}

.load-in-1 { animation-delay: 80ms; }
.load-in-2 { animation-delay: 160ms; }
.load-in-3 { animation-delay: 240ms; }
.load-in-4 { animation-delay: 320ms; }
.load-in-5 { animation-delay: 400ms; }

.hero-visual {
  position: relative;
}

.map-card {
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-float);
  padding: var(--sp-6);
  position: relative;
  border: 1px solid rgba(11,77,175,0.08);
}

.map-card-grid {
  background-image:
    linear-gradient(rgba(11,77,175,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,77,175,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  border-radius: var(--radius-m);
  padding: var(--sp-6);
  background-color: var(--pale);
}

.map-pin-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  background: var(--white);
  border-radius: var(--radius-m);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-hover);
  margin-bottom: var(--sp-4);
  opacity: 0;
  transform: translateY(10px);
  animation: pinIn var(--dur-slow) var(--ease-out) forwards;
}

.map-pin-row:nth-child(1) { animation-delay: 320ms; }
.map-pin-row:nth-child(2) { animation-delay: 400ms; }
.map-pin-row:nth-child(3) { animation-delay: 480ms; }

@keyframes pinIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .map-pin-row { animation: none; opacity: 1; transform: none; }
}

.map-pin-row:last-child { margin-bottom: 0; }

.map-pin-row.you {
  border: 2px solid var(--orange);
}

.pin-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}

.map-pin-row.competitor .pin-icon { background: var(--blue); }

.map-pin-row.you .pin-icon {
  background: var(--orange);
  animation: pinPulse 2.6s ease-in-out infinite;
}

@keyframes pinPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 114, 51, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(251, 114, 51, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .map-pin-row.you .pin-icon { animation: none; }
}

.pin-icon svg { width: 20px; height: 20px; }

.map-pin-info { flex: 1; }

.map-pin-info .rank {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8494ac;
}

.map-pin-row.you .map-pin-info .rank { color: var(--orange); }

.map-pin-info .name {
  font-weight: 700;
  font-size: var(--step--1);
  margin: 2px 0;
}

.map-pin-info .stars {
  font-size: 12.5px;
  color: #5b6c88;
}

/* ---------- Problème ---------- */

.problem-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--sp-5);
  margin-bottom: var(--sp-7);
  align-items: stretch;
}

.problem-substack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.problem-substack .problem-stat--sub { flex: 1; }

.problem-stat {
  background: var(--white);
  border-radius: var(--radius-m);
  position: relative;
  overflow: hidden;
}

/* -- Carte dominante (76%) -- */

.problem-stat--hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-8) var(--sp-6);
}

.problem-stat--hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}

.problem-stat--hero.is-visible::before { transform: scaleX(1); }

.problem-stat--hero .stat-icon {
  width: 56px;
  height: 56px;
}

.problem-stat--hero .stat-icon svg { width: 26px; height: 26px; }

.problem-stat--hero .num {
  font-family: var(--font-head);
  font-size: clamp(3.4rem, 2.6rem + 4.5vw, 5.6rem);
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: var(--sp-3);
  display: block;
  font-variant-numeric: tabular-nums;
}

.problem-stat--hero p {
  max-width: 300px;
  margin: 0;
  font-size: var(--step-0);
  color: #3a4d6b;
}

/* -- Cartes secondaires (compactes) -- */

.problem-stat--sub {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-left: 3px solid var(--blue);
}

.problem-stat--sub .stat-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 0;
}

.problem-stat--sub .stat-icon svg { width: 18px; height: 18px; }

.problem-stat--sub p {
  margin: 0;
  font-size: 13.5px;
  color: #3a4d6b;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pale);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: var(--sp-4);
}

.stat-icon svg { width: 22px; height: 22px; }

.problem-stat p strong {
  color: var(--navy);
  font-weight: 700;
}

.closing-line {
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--navy);
  border-left: 4px solid var(--orange);
  padding-left: var(--sp-5);
  max-width: 620px;
}

.closing-line span { color: var(--blue); }

/* ---------- Calculateur ---------- */

.calc-card {
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-float);
  padding: clamp(1.5rem, 1rem + 2vw, 3rem);
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: var(--sp-7);
  border: 1px solid rgba(11,77,175,0.08);
}

.calc-controls {
  min-width: 0; /* empêche le sélecteur de forcer la colonne (donc la carte) à s'élargir */
}

.calc-controls .sector-toggle {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  gap: var(--sp-2);
  background: var(--pale);
  padding: var(--sp-2);
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-7);
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.calc-controls .sector-toggle::-webkit-scrollbar { display: none; }

.sector-btn {
  flex: 1 1 auto;
  min-width: max-content;
  white-space: nowrap;
  min-height: 44px;
  border: none;
  background: transparent;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-pill);
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--blue);
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}

.sector-btn.active {
  background: var(--blue);
  color: var(--white);
}

.slider-group {
  margin-bottom: var(--sp-6);
}

.slider-group:last-child { margin-bottom: 0; }

.slider-label {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  font-weight: 700;
  font-size: var(--step-0);
}

.slider-label .val {
  color: var(--orange);
  font-family: var(--font-head);
  font-size: var(--step-1);
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--pale);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-hover);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-spring);
}

input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.15);
}

input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-hover);
  cursor: pointer;
  border: none;
}

.calc-result {
  background: var(--navy);
  border-radius: var(--radius-m);
  padding: var(--sp-6);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-result .rlabel {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9db3d6;
  margin-bottom: var(--sp-3);
}

.calc-result .ramount {
  font-family: var(--font-head);
  font-size: var(--step-5);
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: var(--sp-2);
  font-variant-numeric: tabular-nums;
}

.calc-result .rper {
  font-size: var(--step--1);
  color: #b7c7e2;
  margin-bottom: var(--sp-6);
}

.calc-result .rnote {
  font-size: 12.5px;
  color: #8fa4c9;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.calc-result .btn-orange {
  width: 100%;
  text-align: center;
  white-space: normal;
}

/* ---------- Sélecteur d'activité ---------- */

.sector-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.sector-card {
  background: var(--white);
  border-radius: var(--radius-l);
  padding: var(--sp-6) var(--sp-5);
  text-align: left;
  border: 2px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  width: 100%;
}

.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.sector-card:active { transform: translateY(-1px) scale(0.99); }

.sector-card.active {
  border-color: var(--orange);
  box-shadow: var(--shadow-float);
}

.sector-card .sc-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: var(--sp-5);
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}

.sector-card.active .sc-icon {
  background: var(--orange);
  color: var(--white);
}

.sector-card .sc-icon svg { width: 26px; height: 26px; }

.sector-card h3 {
  font-size: var(--step-1);
  margin-bottom: var(--sp-2);
}

.sector-card p {
  font-size: var(--step--1);
  color: #5b6c88;
  margin: 0;
}

.sector-adapt {
  margin-top: var(--sp-7);
  background: var(--white);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-s);
  padding: var(--sp-5) var(--sp-6);
  font-size: var(--step-0);
  color: #2e4062;
  max-width: 720px;
}

.sector-adapt strong { color: var(--blue); }

/* ---------- Piliers ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.pillar {
  padding: var(--sp-7) var(--sp-6);
  border-radius: var(--radius-l);
  background: var(--pale);
  position: relative;
  transition: transform var(--dur-base) var(--ease-out);
}

.pillar:hover {
  transform: translateY(-4px);
}

.pillar .p-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
}

.pillar .p-icon svg { width: 26px; height: 26px; }

.pillar h3 {
  font-size: var(--step-2);
  margin-bottom: var(--sp-3);
}

.pillar p {
  font-size: var(--step--1);
  color: #3a4d6b;
  margin: 0;
}

/* ---------- Comparatif ---------- */

.compare-table-wrap {
  background: var(--white);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

table.compare {
  width: 100%;
  border-collapse: collapse;
}

table.compare th, table.compare td {
  padding: var(--sp-5) var(--sp-6);
  text-align: left;
  vertical-align: top;
}

table.compare thead th {
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

table.compare tbody tr:nth-child(even) {
  background: var(--pale);
}

table.compare td.sol {
  font-weight: 700;
  color: var(--navy);
}

table.compare td.cost {
  color: var(--blue);
  font-weight: 700;
}

table.compare td.risk {
  color: #5b6c88;
  font-size: var(--step--1);
}

table.compare tbody tr.highlight td.sol {
  color: var(--orange);
}

/* ---------- Preuve sociale ---------- */

.case-study {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: var(--sp-8);
  align-items: center;
}

.case-card {
  position: relative;
  overflow: hidden;
  background: var(--navy) url('lartiste-napolitain-devanture.png') center/cover no-repeat;
  border-radius: var(--radius-l);
  padding: var(--sp-7);
  color: var(--white);
}

.case-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(175deg, rgba(13, 31, 60, 0.92), rgba(13, 31, 60, 0.85) 55%, rgba(11, 77, 175, 0.75));
}

.case-card > * {
  position: relative;
  z-index: 1;
}

.case-card .cc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--sp-6);
}

.case-card .cc-name {
  font-weight: 700;
  font-size: var(--step-1);
}

.case-card .cc-loc {
  font-size: var(--step--1);
  color: #9db3d6;
}

.case-card .cc-rating {
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius-pill);
  padding: var(--sp-2) var(--sp-4);
  font-weight: 700;
  font-size: var(--step--1);
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.case-metric {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-s);
  padding: var(--sp-4) var(--sp-3);
  text-align: center;
}

.case-metric .cm-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: var(--step-2);
  color: var(--orange);
  display: block;
}

.case-metric .cm-label {
  font-size: 11px;
  color: #b7c7e2;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.case-copy h3 {
  font-size: var(--step-2);
  margin-bottom: var(--sp-4);
}

.case-copy .cc-block {
  margin-bottom: var(--sp-4);
}

.case-copy .cc-block h4 {
  font-family: var(--font-head);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue);
  margin-bottom: var(--sp-2);
}

.case-copy .cc-block p {
  font-size: var(--step--1);
  color: #3a4d6b;
  margin: 0;
}

.quote-block {
  border-left: 4px solid var(--orange);
  padding-left: var(--sp-5);
  margin-top: var(--sp-6);
  font-size: var(--step-1);
  font-style: italic;
  color: var(--navy);
}

.quote-block cite {
  display: block;
  margin-top: var(--sp-3);
  font-style: normal;
  font-weight: 700;
  font-size: var(--step--1);
  color: var(--blue);
}

/* ---------- À propos ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: var(--sp-8);
  align-items: start;
}

.about-badge {
  background: var(--white);
  border-radius: var(--radius-l);
  padding: var(--sp-6);
  text-align: center;
  box-shadow: var(--shadow-hover);
  position: sticky;
  top: 100px;
}

.about-badge .initials {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: var(--step-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-5);
}

.about-badge .a-name {
  font-weight: 700;
  font-size: var(--step-1);
  margin-bottom: var(--sp-1);
}

.about-badge .a-role {
  font-size: var(--step--1);
  color: #5b6c88;
  margin-bottom: var(--sp-5);
}

.about-badge .a-facts {
  text-align: left;
  border-top: 1px solid var(--pale);
  padding-top: var(--sp-4);
}

.about-badge .a-facts li {
  list-style: none;
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: 13.5px;
  color: #3a4d6b;
  margin-bottom: var(--sp-3);
}
.about-badge .a-facts li:last-child { margin-bottom: 0; }

.about-badge .a-facts svg {
  width: 16px;
  height: 16px;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 2px;
}

.about-copy p {
  font-size: var(--step-0);
  color: #2e4062;
}

.about-position {
  background: var(--pale);
  border-radius: var(--radius-m);
  padding: var(--sp-5) var(--sp-6);
  font-weight: 700;
  font-size: var(--step-0);
  color: var(--navy);
  margin-top: var(--sp-2);
}

/* ---------- Tarifs ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}

.price-card {
  background: var(--white);
  border: 2px solid var(--pale);
  border-radius: var(--radius-l);
  padding: var(--sp-6) var(--sp-5);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.price-card.recommended {
  border-color: var(--orange);
  box-shadow: var(--shadow-float);
  position: relative;
}

.price-card .rec-flag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.price-card h3 {
  font-size: var(--step-1);
  margin-bottom: var(--sp-3);
}

.price-card .price {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--blue);
  font-size: var(--step-2);
  margin-bottom: var(--sp-1);
}

.price-card .price small {
  font-size: var(--step--1);
  font-weight: 600;
  color: #5b6c88;
}

.price-card .price-note {
  font-size: 12.5px;
  color: #8494ac;
  margin-bottom: var(--sp-5);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-6);
  flex: 1;
}

.price-card li {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
  font-size: 13.5px;
  color: #3a4d6b;
  margin-bottom: var(--sp-3);
}

.price-card li svg {
  width: 15px;
  height: 15px;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 2px;
}

.price-card .btn {
  width: 100%;
  font-size: var(--step--1);
  padding: var(--sp-3) var(--sp-5);
}

/* ---------- CTA final ---------- */

.cta-final {
  text-align: center;
}

.cta-final .wrap {
  max-width: 680px;
}

.cta-final h2 {
  font-size: var(--step-4);
}

.cta-final p {
  font-size: var(--step-1);
  color: #b7c7e2;
  margin-bottom: var(--sp-7);
}

.cta-final .btn-orange {
  font-size: var(--step-1);
  padding: var(--sp-5) var(--sp-8);
}

.cta-final .cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #7f93b8;
  padding: var(--sp-7) 0;
  font-size: var(--step--1);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--sp-6);
}

.site-footer .foot-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: #dbe6f7;
  font-weight: 700;
}

.site-footer img { height: 22px; }

/* ---------- Scroll reveal (cascade) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}

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

.problem-stat--hero { --i: 0; }
.problem-substack .problem-stat--sub:nth-child(1) { --i: 1; }
.problem-substack .problem-stat--sub:nth-child(2) { --i: 2; }

.pillars .pillar:nth-child(1) { --i: 0; }
.pillars .pillar:nth-child(2) { --i: 1; }
.pillars .pillar:nth-child(3) { --i: 2; }

.case-metrics .case-metric:nth-child(1) { --i: 0; }
.case-metrics .case-metric:nth-child(2) { --i: 1; }
.case-metrics .case-metric:nth-child(3) { --i: 2; }

.pricing-grid .price-card:nth-child(1) { --i: 0; }
.pricing-grid .price-card:nth-child(2) { --i: 1; }
.pricing-grid .price-card:nth-child(3) { --i: 2; }
.pricing-grid .price-card:nth-child(4) { --i: 3; }

.cta-final .wrap > .reveal:nth-child(1) { --i: 0; }
.cta-final .wrap > .reveal:nth-child(2) { --i: 1; }
.cta-final .wrap > .reveal:nth-child(3) { --i: 2; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .problem-grid { grid-template-columns: 1fr; }
  .calc-card { grid-template-columns: 1fr; }
  .sector-cards { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .case-study { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-badge { position: static; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  table.compare th, table.compare td { padding: var(--sp-4); font-size: var(--step--1); }
}

@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .case-metrics { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  table.compare { font-size: 12.5px; }
  table.compare td.risk { display: none; }
  table.compare thead th:last-child { display: none; }
}
