@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400&family=Inter:wght@100;200;300;400;500;600;700&display=swap');

:root {
  /* accent unique (aligné logo prod) */
  --teal: #00bcd4;
  --teal-soft: rgba(0, 188, 212, 0.12);
  --eph-blue: #366092;
  --eph-blue-dark: #2a4d73;
  --eph-blue-light: #4a7ab5;
  --eph-cyan: var(--teal);
  --eph-cyan-dark: #0097a7;
  --navy-700: #1B3A6B;
  --navy-900: #0F1F3D;
  --eph-bg: #FAFAF8;
  --eph-bg-white: #ffffff;
  --eph-text: #4B5566;
  --eph-text-dark: #111418;
  --border: #D7DCE3;
  --border-hover: var(--navy-700);
  --eph-border: var(--border);
  --eph-shadow: 0 1px 3px rgba(54, 96, 146, 0.06), 0 8px 24px rgba(54, 96, 146, 0.06);
  --eph-shadow-lg: 0 12px 40px rgba(54, 96, 146, 0.12);
  --font-sans: 'Inter', system-ui, sans-serif;
  --font: var(--font-sans);
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, monospace;
  --tracking-h1: -0.02em;
  --tracking-label: 0.08em;
  --header-h: 72px;
  --max-w: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 200ms;
  --dur-reveal: 250ms;
  --dur-draw: 1200ms;
  --grid-color: rgba(15, 31, 61, 0.05);
  --grid-size: 32px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-reveal: 0ms;
    --dur-draw: 0ms;
  }

  html {
    scroll-behavior: auto;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  height: 100%;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--eph-text);
  background: var(--eph-bg-white);
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

#header-root,
#footer-root {
  flex-shrink: 0;
  width: 100%;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

h1, h2, h3, h4 {
  color: var(--eph-text-dark);
  font-weight: 700;
  line-height: 1.2;
}

h1 { letter-spacing: var(--tracking-h1); }
h2 { letter-spacing: -0.01em; }

a { color: var(--eph-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--eph-cyan-dark); }

main :is(p, li) a:not(.btn):not(.card--link):not(.logo) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

::selection {
  background: var(--navy-700);
  color: #fff;
}

.label-mono,
.section-eyebrow,
.detail-eyebrow,
.card-num,
.case-tag:not(.case-tag--accent),
.stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.section-eyebrow,
.detail-eyebrow {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--eph-text);
  margin-bottom: 0.75rem;
}

.section-eyebrow { color: var(--eph-text); }

.section-eyebrow--teal {
  color: var(--teal);
}

.has-grid {
  position: relative;
  isolation: isolate;
}

.has-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
}

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

.container {
  width: min(var(--max-w), calc(100% - 3rem));
  margin-inline: auto;
}

.container--narrow {
  width: min(var(--max-w), calc(100% - 3rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: min(760px, 100%);
  justify-content: center;
}

/* Steps : titres + pipeline centrés dans la colonne (sans visuel TDMD) */
#steps-section .container--narrow,
.steps-embed-wrap.steps-band:not(.steps-band--visual) .container--narrow {
  justify-items: center;
  text-align: center;
}

/* ─── Logo ─── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: #1B3A6B;
  letter-spacing: -0.03em;
}

.logo:hover { color: var(--eph-blue-dark); }

.case-tag--accent {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  background: var(--teal-soft);
  color: var(--navy-700);
}

.page-content {
  padding: 3rem 0 5rem;
  overflow-x: clip;
}

.page-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.5rem;
  text-wrap: pretty;
}

.page-content .lead {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
}

.detail-note {
  margin-top: 0.75rem;
  font-style: italic;
}

.page-actions {
  margin-top: 2.5rem;
}

.highlight-box p { margin: 0; }

.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: block;
}

.logo-text { line-height: 1; }

.logo--footer { color: white; }
.logo--footer:hover { color: var(--eph-cyan); }

/* ─── Header ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--eph-border);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--eph-text);
  border-radius: 6px;
  transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--eph-blue);
  background: rgba(54, 96, 146, 0.06);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--eph-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.lang-btn {
  padding: 0.35rem 0.65rem;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--eph-text);
  cursor: pointer;
  transition: all var(--transition);
}

.lang-btn:hover { background: var(--eph-bg); }

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

.lang-switch--mobile { margin-top: 1rem; }

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.8125rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--eph-text-dark);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: white;
  z-index: 99;
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.25rem;
  border-top: 1px solid var(--eph-border);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--eph-text-dark);
  border-radius: var(--radius);
}

.mobile-nav a:hover { background: var(--eph-bg); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--eph-blue);
  color: white;
}

.btn-primary:hover {
  background: var(--eph-blue-dark);
  color: white;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--eph-blue);
  border: 1.5px solid var(--eph-blue);
}

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

.btn-ghost {
  background: transparent;
  color: var(--eph-blue);
  padding: 0.75rem 0;
}

.btn-ghost:hover { color: var(--eph-cyan-dark); }

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  margin-top: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  background: var(--eph-bg);
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--eph-bg);
}

.hero-inner {
  position: relative;
  z-index: 2;
  flex: 0 1 auto;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

@media (min-width: 1024px) {
  .hero--home .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(600px, 46vw);
    grid-template-areas:
      "content visual"
      "stats stats";
    gap: clamp(2rem, 4.5vw, 3.5rem);
    align-items: center;
  }

  .hero--home .hero-content {
    grid-area: content;
  }

  .hero--home .hero-aside {
    grid-area: visual;
  }

  .hero--home .hero-stats {
    grid-area: stats;
  }
}

.hero-content {
  width: 100%;
}

.hero-aside {
  width: 100%;
  margin-top: 2.25rem;
}

@media (min-width: 1024px) {
  .hero--home .hero-aside {
    margin-top: 0;
  }
}

.hero-aside-stack {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
}

.hero-diagram {
  width: 100%;
  max-width: 22.5rem;
  margin: 0 auto 2rem;
  min-height: 3.5rem;
}

.hero-diagram-wrap {
  width: 100%;
  margin-inline: auto;
}

.hero-diagram-art {
  position: relative;
  width: 100%;
  transition: transform var(--dur-fast) var(--ease-out);
}

.hero-diagram-svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 280 / 88;
}

/* Centres des blocs : (8+32)/280 et (208+32)/280 ; base des rects à y=66/88 */
.hero-diagram-label {
  position: absolute;
  top: 74%;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--navy-700);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out);
  pointer-events: none;
  white-space: nowrap;
}

.hero-diagram-label--source {
  left: 14.29%;
  transform: translateX(-50%);
}

.hero-diagram-label--target {
  left: 85.71%;
  transform: translateX(-50%);
}

.hero-flow-dot {
  filter: drop-shadow(0 0 5px rgba(0, 188, 212, 0.55));
}

@media (hover: hover) {
  .hero-diagram-art:hover {
    transform: scale(1.03);
  }

  .hero-diagram-art:hover .hero-diagram-label {
    opacity: 1;
  }

  .hero-diagram-art:hover .hero-flow-dot {
    filter: drop-shadow(0 0 10px rgba(0, 188, 212, 0.9));
  }
}

.hero-flow-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.hero-flow-dot {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-flow-path {
    stroke-dashoffset: 0;
  }

  .hero-flow-dot {
    opacity: 1;
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1.25rem;
  text-wrap: pretty;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--eph-text);
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-quote {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--eph-border);
  width: 100%;
}

.hero-tagline {
  margin: 0;
  max-width: 52rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--eph-blue);
  font-style: italic;
  text-wrap: pretty;
}

/* Accueil — hero sombre + header transparent */
body.page-home {
  --grid-color: rgba(255, 255, 255, 0.06);
}

body.page-home .site-header {
  background: rgba(15, 31, 61, 0.88);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.page-home .site-header .logo {
  color: #fff;
}

body.page-home .site-header .logo:hover {
  color: var(--teal);
}

body.page-home .site-header .main-nav a {
  color: rgba(255, 255, 255, 0.78);
}

body.page-home .site-header .main-nav a:hover,
body.page-home .site-header .main-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

body.page-home .site-header .lang-switch {
  border-color: rgba(255, 255, 255, 0.2);
}

body.page-home .site-header .lang-btn {
  color: rgba(255, 255, 255, 0.75);
}

body.page-home .site-header .lang-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

body.page-home .site-header .mobile-toggle {
  color: #fff;
}

body.page-home .hero--home {
  background: var(--navy-900);
  min-height: auto;
  padding-bottom: 0.5rem;
}

body.page-home .hero--home .hero-visual {
  background: var(--navy-900);
}

body.page-home .hero--home.has-grid::before {
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 30% 40%, #000 35%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 75% at 30% 40%, #000 35%, transparent 78%);
}

body.page-home .hero--home h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 40rem;
  text-wrap: pretty;
}

body.page-home .hero--home .h1-accent {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
}

body.page-home .hero--home .hero-eyebrow {
  color: var(--teal);
  margin-bottom: 1rem;
}

body.page-home .hero--home .hero-lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1875rem;
  line-height: 1.55;
  max-width: 35rem;
}

body.page-home .hero--home .hero-meta {
  margin-top: 1.35rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

body.page-home .hero--home .btn-primary {
  background: #fff;
  color: var(--navy-900);
}

body.page-home .hero--home .btn-primary:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy-900);
}

body.page-home .hero--home .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

body.page-home .hero--home .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

body.page-home .hero--home {
  align-items: stretch;
  flex-direction: column;
  justify-content: center;
}

body.page-home .hero-stats {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: clamp(0.5rem, 2vw, 1rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

body.page-home .stats-row--hero {
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 0;
}

body.page-home .stats-row--hero .stat-block {
  padding: 0.5rem 0.5rem 0;
}

body.page-home .stats-row--hero .stat-value {
  font-size: clamp(3rem, 6vw, 4.5rem);
  letter-spacing: -0.03em;
  color: #fff;
}

body.page-home .stats-row--hero .stat-label {
  color: rgba(255, 255, 255, 0.65);
  max-width: 16rem;
}

/* ─── TDMD card (E13) ─── */
.tdmd-card {
  min-height: 28rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  color: var(--eph-text-dark);
  border: 1px solid var(--border);
}

.tdmd-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--eph-bg);
}

.tdmd-card__title {
  font-size: 10px;
  color: var(--navy-700);
}

.tdmd-card__badge {
  font-size: 9px;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: var(--teal-soft);
  color: var(--navy-700);
}

.tdmd-card__screens {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.85rem;
  min-height: 15.5rem;
}

.tdmd-connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.tdmd-screen {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #f4f5f7;
  font-size: 9px;
  line-height: 1.35;
}

.tdmd-screen__chrome {
  padding: 0.45rem 0.55rem;
  background: #e8eaee;
  border-bottom: 1px solid var(--border);
  color: var(--navy-700);
  font-size: 8px;
}

.tdmd-screen__chrome--dark {
  background: #1B3A6B;
  color: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.tdmd-screen__tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.4rem 0.55rem 0;
  font-size: 8px;
  color: var(--eph-text);
}

.tdmd-screen__tabs .is-active {
  color: var(--navy-700);
  font-weight: 600;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 0.2rem;
}

.tdmd-screen__sub {
  padding: 0.35rem 0.55rem 0;
  font-size: 7px;
  color: var(--eph-text);
}

.tdmd-fields {
  margin: 0;
  padding: 0.45rem 0.55rem 0.55rem;
}

.tdmd-field {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  align-items: baseline;
}

.tdmd-field dt {
  margin: 0;
  color: var(--eph-text);
  font-weight: 500;
}

.tdmd-field dd {
  margin: 0;
  color: var(--eph-text-dark);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tdmd-zone.z {
  position: relative;
  margin-inline: -0.25rem;
  padding: 0.2rem 0.25rem;
  border-radius: 6px;
  border: 1.5px solid var(--teal);
  background: rgba(0, 188, 212, 0.07);
}

.tdmd-zone--stacked::after {
  content: attr(data-rule-label);
  position: absolute;
  top: 0.1rem;
  right: 0.15rem;
  font-family: var(--font-mono);
  font-size: 7px;
  color: #fff;
  background: var(--navy-700);
  border-radius: 999px;
  padding: 0.1rem 0.35rem;
}

.tdmd-field.tdmd-zone--stacked[data-tdmd-zone="r07"]::after { content: 'R07'; }
.tdmd-field.tdmd-zone--stacked[data-tdmd-zone="r08"]::after { content: 'R08'; }
.tdmd-field.tdmd-zone--stacked[data-tdmd-zone="r12"]::after { content: 'R12'; }

.tdmd-card__rules {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border);
  background: #fff;
}

.tdmd-card__rules-title {
  margin: 0 0 0.5rem;
  font-size: 9px;
  color: var(--navy-700);
}

.tdmd-rules-list {
  margin: 0;
  padding-left: 1rem;
  font-size: 9px;
  line-height: 1.45;
  color: var(--eph-text);
}

.tdmd-rules-list li {
  margin-bottom: 0.35rem;
}

.tdmd-card__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--eph-bg);
  font-size: 9px;
  color: var(--navy-700);
}

.tdmd-card__foot-tech {
  color: var(--teal);
}

@media (max-width: 1023px) {
  .tdmd-card__screens {
    grid-template-columns: 1fr;
    min-height: 22rem;
  }

  .tdmd-card {
    min-height: 26rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tdmd-connector-path {
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }
}

/* ─── Sections ─── */
section { padding: 5rem 0; }
section.alt { background: var(--eph-bg); }

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.section-intro {
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 2.5rem;
}

/* ─── Bandeau ─── */
.bandeau {
  background: var(--eph-blue);
  color: white;
  padding: 3rem 0;
}

.bandeau-inner {
  width: min(760px, 100%);
  margin-inline: auto;
  text-align: center;
}

.bandeau-cut {
  display: block;
  width: 100%;
  height: 2px;
  margin: 0 0 1.35rem;
  background: var(--teal);
  box-shadow: 0 0 14px rgba(0, 188, 212, 0.7);
  --bandeau-fill: 0;
  transform: scaleX(var(--bandeau-fill, 0));
  transform-origin: left center;
  opacity: 1;
  transition: none;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .bandeau-cut {
    --bandeau-fill: 1;
    transform: scaleX(1);
  }
}

.bandeau p {
  font-size: 1.15rem;
  line-height: 1.65;
  margin: 0;
  color: rgba(255,255,255,0.92);
  text-wrap: pretty;
}

/* ─── Cards grid ─── */
.cards-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  height: 100%;
}

.tool-card__num {
  font-size: 0.75rem;
  color: var(--navy-700);
}

.tool-card__title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--eph-text-dark);
}

.tool-card__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--eph-text);
}

.tool-card__proof {
  margin: auto 0 0;
  padding-top: 0.75rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #00bcd4;
  letter-spacing: 0.04em;
}

.tool-card__marker {
  margin-right: 0.25rem;
}

.tool-card__link {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--eph-blue);
  text-decoration: none;
}

.tool-card__link:hover {
  color: var(--eph-cyan-dark);
}

.page-actions--center {
  justify-content: center;
  margin-top: 3rem;
}

/* Bande sombre — Comment nous travaillons (accueil, modèle, offres) */
.steps-band {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.92);
}

#steps-section.steps-band,
section#steps-section.steps-band {
  padding: 5rem 0;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.92);
}

#steps-section.steps-band .steps-embed {
  width: 100%;
}

.steps-band .section-eyebrow {
  color: var(--teal);
}

.steps-band .section-title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-transform: none;
  color: #fff;
  text-align: center;
  margin-bottom: 2.5rem;
  text-wrap: balance;
}

.steps-band .section-eyebrow {
  text-align: center;
}

.steps-embed-wrap.steps-band {
  border: none;
  padding: 5rem 0;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.steps-embed-wrap.steps-band .steps-embed {
  width: 100%;
}

/* Étapes + pile de 2 visuels (mobile : entre titre et étape 01) */
.steps-embed--has-visual {
  display: grid;
  gap: 1.75rem 2.5rem;
  align-items: start;
}

.steps-embed--has-visual .section-eyebrow,
.steps-embed--has-visual .section-title,
.steps-embed--has-visual .steps-outro,
.steps-embed--has-visual .steps-actions {
  grid-column: 1 / -1;
}

.steps-embed--has-visual .steps-outro {
  margin-top: 0.5rem;
}

@media (min-width: 1024px) {
  .steps-embed--has-visual {
    grid-template-columns: minmax(0, 1fr) min(600px, 46vw);
    grid-template-areas:
      "eyebrow eyebrow"
      "title title"
      "steps visual"
      "outro outro"
      "actions actions";
  }

  .steps-embed--has-visual .section-eyebrow { grid-area: eyebrow; }
  .steps-embed--has-visual .section-title { grid-area: title; }
  .steps-embed--has-visual .steps-band-split__rows { grid-area: steps; }
  .steps-embed--has-visual > .steps-visual-stack { grid-area: visual; align-self: start; }
  .steps-embed--has-visual .steps-outro { grid-area: outro; }
  .steps-embed--has-visual .steps-actions { grid-area: actions; }
}

.steps-band-split__steps-col {
  min-width: 0;
}

.steps-visual-stack {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
  margin-top: 1.25rem;
}

.steps-visual-stack--card {
  padding-right: 2cm;
  padding-bottom: 2cm;
}

@media (min-width: 1024px) {
  .steps-band--visual .steps-visual-stack {
    margin-inline: 0;
    margin-top: 2.25rem;
    justify-self: end;
  }
}

.steps-visual--card {
  width: 100%;
  max-width: 600px;
  border: none;
  outline: none;
  background: transparent;
}

.steps-visual--card .tdmd-card {
  width: 100%;
  border: none;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.steps-visual-pair {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.steps-visual-stack--images .steps-visual--front,
.steps-visual-stack--images .steps-visual--back {
  width: 70%;
  max-width: 100%;
  height: auto;
}

.steps-visual-stack--images .steps-visual--front {
  position: relative;
  z-index: 2;
  display: block;
  pointer-events: none;
  transform: translateY(-0.75rem);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.3));
}

.steps-visual-stack--images .steps-visual--back {
  position: relative;
  display: block;
  pointer-events: none;
  margin-top: 0;
  transform: none;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transition:
    opacity 0.4s var(--ease-out),
    visibility 0.4s,
    max-height 0.55s var(--ease-out),
    transform 0.45s var(--ease-out);
}

.steps-visual-link-bridge {
  position: relative;
  z-index: 3;
  width: min(36%, 9.5rem);
  height: 11.5rem;
  margin: 0.15rem auto 0.85rem;
  flex-shrink: 0;
}

.steps-visual-link {
  display: block;
  width: 100%;
  height: 100%;
}

.steps-visual-link-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.steps-visual-link-dot {
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(0, 188, 212, 0.55));
}

.steps-visual-stack--images.is-steps-visual-revealed .steps-visual-link-path {
  stroke-dashoffset: 0;
  stroke: var(--teal);
}

.steps-visual-stack--images.is-steps-visual-revealed .steps-visual-link-dot {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(0, 188, 212, 0.9));
}

.steps-visual-stack--images.is-steps-visual-revealed .steps-visual--back {
  opacity: 1;
  visibility: visible;
  max-height: 22rem;
  margin-top: 0.35rem;
  transform: translateY(0.75rem);
}

.steps-visual-stack--card .steps-visual--front {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.steps-visual-stack--card .steps-visual--back {
  position: absolute;
  top: 2cm;
  left: 2cm;
  width: 100%;
  z-index: 1;
  cursor: pointer;
  transition: transform var(--transition);
  pointer-events: auto;
}

.steps-visual-stack--card .steps-visual--back:hover,
.steps-visual-stack--card .steps-visual--back:focus-visible {
  z-index: 5;
  transform: scale(1.01);
}

@media (prefers-reduced-motion: reduce) {
  .steps-visual-stack--images.is-steps-visual-revealed .steps-visual-link-path {
    stroke-dashoffset: 0;
    stroke: var(--teal);
  }
}

.steps-band .steps-outro,
.steps-band .steps-embed .steps-outro {
  text-align: center;
  max-width: 70ch;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.88);
}

.steps-band .steps-title {
  color: #fff;
}

.steps-band .steps-text {
  color: rgba(255, 255, 255, 0.72);
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
  position: relative;
  max-width: 70ch;
  margin-inline: auto;
  --pipeline-fill: 0;
}

.steps-list::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--border);
}

.steps-list::after {
  content: '';
  position: absolute;
  left: calc(1.5rem - 0.5px);
  top: 0.5rem;
  width: 2px;
  height: calc((100% - 1rem) * var(--pipeline-fill, 0));
  background: var(--teal);
  border-radius: 1px;
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.65);
  pointer-events: none;
  z-index: 0;
  transform-origin: top center;
}

.steps-list .steps-num {
  position: relative;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  padding-top: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: var(--tracking-label);
  text-align: center;
  flex-shrink: 0;
}

.steps-band .steps-list::before {
  background: rgba(255, 255, 255, 0.2);
}

.steps-band .steps-list .steps-num {
  color: rgba(255, 255, 255, 0.88);
  background: #0a1629;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.steps-band .steps-item.is-active .steps-num {
  color: #fff;
  border-color: var(--teal);
  box-shadow: 0 0 0 1px rgba(0, 188, 212, 0.5), 0 0 14px rgba(0, 188, 212, 0.35);
}

.steps-band .steps-item.is-passed .steps-num {
  color: var(--teal);
  border-color: rgba(0, 188, 212, 0.45);
}

.steps-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.25rem;
  align-items: start;
  position: relative;
  z-index: 1;
}


.steps-title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.steps-body {
  max-width: 70ch;
}

.steps-text {
  margin: 0;
  color: var(--eph-muted, #5a6b7d);
  line-height: 1.65;
}

.steps-outro {
  margin: 2.75rem auto 0;
  max-width: 70ch;
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 500;
  text-align: center;
}

.steps-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: none;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

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

.card--link { display: block; color: inherit; }
.card--link:hover { color: inherit; }

.card-num {
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.card-tagline { font-weight: 500; color: var(--eph-text-dark); margin-bottom: 0.5rem; }
.card-summary { font-size: 0.9rem; margin-top: 0.25rem; }
.lead--sub { font-size: 1rem; margin-top: -1.5rem; margin-bottom: 2.5rem; opacity: 0.9; }

.card-arrow {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--eph-blue);
}

/* ─── Stats ─── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-block {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-value,
.case-result {
  font-variant-numeric: tabular-nums;
}

.stat-value {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--eph-text);
  max-width: 200px;
  margin-inline: auto;
}

/* ─── CTA Section ─── */
.cta-section {
  position: relative;
  background: var(--eph-bg);
  text-align: center;
  padding: 5rem 0;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.cta-section p {
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* ─── Page header ─── */
.page-header {
  margin-top: var(--header-h);
  padding: 4.5rem 0 3rem;
  background: var(--eph-bg);
  border-bottom: 1px solid var(--eph-border);
  text-align: center;
}

.page-header .container {
  display: grid;
  grid-template-columns: min(760px, 100%);
  justify-content: center;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.page-header .lead {
  font-size: 1.15rem;
  margin-inline: auto;
  text-wrap: pretty;
}

/* ─── Prose (long content) ─── */
.prose h2 {
  font-size: 1.5rem;
  margin: 3rem 0 1rem;
  padding-top: 1rem;
}

.prose h2:first-child { margin-top: 0; padding-top: 0; }

.prose h3 {
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
  color: var(--eph-blue);
}

.prose p { margin-bottom: 1rem; }

.prose ul, .prose ol {
  margin: 0 0 1rem 1.25rem;
}

.prose li { margin-bottom: 0.4rem; }

.prose blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--eph-bg);
  border-left: 4px solid var(--eph-cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--eph-text-dark);
}

.refusal-list { display: flex; flex-direction: column; gap: 1.25rem; }

.refusal-item {
  padding: 1.5rem;
  background: white;
  border: 1px solid var(--eph-border);
  border-radius: var(--radius);
  border-left: 4px solid var(--eph-blue);
}

.refusal-item h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.refusal-item p { font-size: 0.95rem; margin: 0; }

/* ─── Offers table ─── */
.offers-table-wrap { overflow-x: auto; }

.offers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.offers-table th,
.offers-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--eph-border);
}

.offers-table th {
  background: var(--eph-bg);
  font-weight: 600;
  color: var(--eph-text-dark);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.offers-table tr:hover td { background: rgba(54, 96, 146, 0.03); }

/* ─── Offer / Case detail ─── */
.detail-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--eph-border);
}

.detail-section:last-of-type { border-bottom: none; }

.detail-section h2 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--eph-text);
  margin-bottom: 0.75rem;
}

.detail-section p,
.detail-section ul { font-size: 1rem; }

.detail-section ul { margin-left: 1.25rem; }

.detail-section li { margin-bottom: 0.35rem; }

.highlight-box {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: rgba(54, 96, 146, 0.06);
  border-radius: var(--radius);
  border: 1px solid var(--eph-border);
}

.highlight-box h3 {
  font-size: 1rem;
  color: var(--eph-blue);
  margin-bottom: 0.5rem;
}

.case-result {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 188, 212, 0.1);
  color: var(--eph-blue-dark);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
}

.case-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.case-tag {
  padding: 0.35rem 0.75rem;
  background: var(--eph-bg);
  border-radius: var(--radius);
  color: var(--eph-text);
  font-weight: 400;
}

/* ─── Contact ─── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-aside {
  padding: 2rem;
  background: var(--eph-blue);
  color: white;
  border-radius: 16px;
}

.contact-aside h2 { color: white; font-size: 1.35rem; margin-bottom: 1rem; }
.contact-aside p { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }
.contact-aside a { color: var(--eph-cyan); }
.contact-aside a:hover { color: white; }

.contact-form {
  background: white;
  border: 1px solid var(--eph-border);
  border-radius: 16px;
  padding: 2rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--eph-text-dark);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--eph-border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  background: var(--eph-bg);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--eph-blue);
  background: white;
}

.form-group textarea { min-height: 140px; resize: vertical; }

/* ─── Careers ─── */
.qualities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.quality-item {
  padding: 1.25rem;
  background: var(--eph-bg);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.quality-item strong {
  display: block;
  color: var(--eph-text-dark);
  margin-bottom: 0.35rem;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--eph-blue-dark);
  color: rgba(255,255,255,0.75);
  padding: 1.5rem 0 0.85rem;
}

@media (min-width: 769px) {
  body {
    padding-bottom: var(--footer-h, 0px);
  }

  .site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 0;
  }

  .site-footer {
    position: static;
  }
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.5rem 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-tagline {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  line-height: 1.35;
  font-style: italic;
  color: rgba(255,255,255,0.7);
  max-width: 280px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.footer-col h4 {
  color: white;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.2rem; }
.footer-col a {
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
  line-height: 1.35;
}
.footer-col a:hover { color: var(--eph-cyan); }

.footer-bottom {
  padding-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.78rem;
  line-height: 1.35;
}

.footer-sys {
  margin: 0.65rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.38);
}

.site-footer .logo {
  font-size: 1rem;
  gap: 0.45rem;
}

.site-footer .logo-mark {
  width: 30px;
  height: 30px;
}

@media (min-width: 769px) {
  .site-footer {
    padding: 0.6rem 0 0.4rem;
  }

  .footer-top {
    grid-template-columns: auto 1fr 1fr;
    gap: 0.75rem 1.5rem;
    padding-bottom: 0.35rem;
    align-items: center;
  }

  .footer-tagline {
    display: none;
  }

  .footer-col h4 {
    margin-bottom: 0.2rem;
  }

  .footer-col li {
    margin-bottom: 0.05rem;
  }

  .footer-col ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 0.05rem 1.25rem;
  }

  .footer-bottom {
    padding-top: 0.3rem;
    font-size: 0.7rem;
  }
}

/* ─── Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}

.reveal.is-visible,
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─── Breadcrumb ─── */
.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: var(--eph-text);
}

.breadcrumb a { color: var(--eph-blue); }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .cards-grid--3 { grid-template-columns: 1fr; }
  .cards-grid--offers { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .footer-top { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav, .header-right .btn-primary { display: none; }
  .mobile-toggle { display: block; }
  section { padding: 3.5rem 0; }
  .cards-grid--2 { grid-template-columns: 1fr; }
  .cards-grid--offers { grid-template-columns: 1fr; }
  .cards-grid--tools { grid-template-columns: 1fr; }
  .hero-inner {
    padding: 3.5rem 0;
  }
  .hero--home .hero-aside {
    margin-top: 2rem;
  }

  body.page-home .stats-row--hero {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-list {
    gap: 1.5rem;
  }
}
