/* ============================================================
   EP Digital X — Programme Partenaire Experts-Comptables
   Palette fintech premium, fond crème chaud
   ============================================================ */

:root {
  --cream: #FAF5EE;
  --cream-2: #FDF9F3;
  --cream-3: #F6EFE5;
  --white: #FFFFFF;
  --blue: #0740F9;
  --blue-deep: #0530C4;
  --navy: #0A1235;
  --navy-2: #070D26;
  --orange: #FF6B2C;
  --orange-soft: #FFE8D9;
  --ink: #16181D;
  --muted: #5A6072;
  --line: rgba(10, 18, 53, 0.08);

  --font-display: "Bricolage Grotesque", "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-card: 0 1px 2px rgba(10, 18, 53, 0.04), 0 24px 48px -24px rgba(7, 64, 249, 0.14);
  --shadow-lift: 0 2px 4px rgba(10, 18, 53, 0.05), 0 32px 64px -24px rgba(7, 64, 249, 0.22);
  --shadow-warm: 0 24px 60px -28px rgba(255, 107, 44, 0.28);

  --container: 1150px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

::selection { background: var(--orange-soft); color: var(--ink); }

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

section { scroll-margin-top: 96px; }

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.section-label::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(30px, 4vw, 44px);
  color: var(--navy);
}

.section-sub {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--muted);
  margin-top: 16px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 17px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn svg { flex-shrink: 0; transition: transform 0.2s ease; }
.btn:hover svg.arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(7, 64, 249, 0.45);
}
.btn-primary:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(7, 64, 249, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px rgba(10, 18, 53, 0.18);
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.btn-orange {
  background: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-warm);
}
.btn-orange:hover {
  background: #f25c1d;
  transform: translateY(-2px);
}

.btn-sm { padding: 12px 20px; font-size: 14.5px; }

/* ---------- Badges / pills ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-soft);
  color: #C2410C;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
}

.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* ---------- Navbar ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 238, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -18px rgba(10, 18, 53, 0.18);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.logo-mark span {
  display: block;
  width: 17px;
  height: 13px;
  background:
    linear-gradient(#fff, #fff) 0 0 / 100% 2.5px no-repeat,
    linear-gradient(#fff, #fff) 0 50% / 72% 2.5px no-repeat,
    linear-gradient(#fff, #fff) 0 100% / 100% 2.5px no-repeat;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.logo-name .x { color: var(--blue); }

.logo--light .logo-name { color: #fff; }
.logo--light .logo-name .x { color: var(--orange); }

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

.hero {
  padding: 64px 0 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(36px, 4.6vw, 58px);
  color: var(--navy);
  margin: 22px 0 0;
}

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

.hero h1 .hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.02em;
  height: 0.14em;
  background: var(--orange);
  border-radius: 99px;
  opacity: 0.85;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s forwards;
}

@keyframes underline-in { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .hero h1 .hl::after { animation: none; transform: scaleX(1); }
}

.hero-sub {
  font-size: clamp(16px, 1.7vw, 18.5px);
  color: var(--muted);
  margin-top: 22px;
  max-width: 560px;
}

.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.hero-reassurance span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-reassurance svg { color: var(--orange); }

/* Hero visual */

.hero-visual { position: relative; }

.hero-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: var(--cream-3);
  aspect-ratio: 4 / 3;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.fb-icon.is-orange { background: var(--orange-soft); color: var(--orange); }
.fb-icon.is-blue { background: rgba(7, 64, 249, 0.09); color: var(--blue); }

.photo-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  padding: 10px 16px 10px 12px;
  box-shadow: 0 14px 34px -12px rgba(10, 18, 53, 0.4);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.photo-badge small,
.hero-stats small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.hero-stats {
  list-style: none;
  margin: 16px 0 0;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.hero-stats li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

/* ---------- Logo marquee ---------- */

.marquee-zone {
  margin-top: 72px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
}

.marquee-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  padding-right: 64px;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

.logo-item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9CA1AC;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: color 0.25s ease;
  cursor: default;
  white-space: nowrap;
}

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

.logo-item .lg-dot {
  width: 8px;
  height: 8px;
  border-radius: 2.5px;
  background: currentColor;
  opacity: 0.5;
  flex-shrink: 0;
}

/* ---------- Process (3 étapes) ---------- */

.process { background: var(--cream-3); padding: 96px 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--blue);
  background: rgba(7, 64, 249, 0.08);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.step-card h3 {
  font-size: 21px;
  color: var(--navy);
  margin-bottom: 12px;
  font-weight: 700;
}

.step-card p { color: var(--muted); font-size: 15.5px; }

.step-icon {
  position: absolute;
  top: 30px;
  right: 28px;
  color: var(--orange);
  opacity: 0.9;
}

/* ---------- Rémunération ---------- */

.remuneration { padding: 96px 0; }

.rates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}

.rate-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 44px 40px 38px;
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rate-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

.rate-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(88px, 11vw, 148px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--orange);
  display: inline-flex;
  align-items: baseline;
}

.rate-display .pct { font-size: 0.45em; margin-left: 4px; }

.rate-card p {
  color: var(--muted);
  font-size: 16px;
  margin-top: 14px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.rate-card p strong { color: var(--ink); }

.rate-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

/* Payout choice cards */

.payout-title {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
  margin: 48px 0 24px;
}

.payouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.payout-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.payout-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

.payout-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(7, 64, 249, 0.08);
  color: var(--blue);
}

.payout-card.is-orange .payout-icon { background: var(--orange-soft); color: var(--orange); }

.payout-card h3 { font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.payout-card p { color: var(--muted); font-size: 15px; }
.payout-card p strong { color: var(--ink); }

.payout-note {
  text-align: center;
  font-size: 14.5px;
  color: var(--muted);
  margin-top: 20px;
}

.payout-note strong { color: var(--ink); font-weight: 600; }

/* Transparency tracker */

.tracker {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 36px 40px;
  margin-top: 48px;
}

.tracker-head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  text-align: center;
  margin-bottom: 30px;
}

.tracker-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  position: relative;
}

.t-step {
  text-align: center;
  position: relative;
  padding-top: 4px;
}

.t-step::before {
  content: "";
  position: absolute;
  top: 21px;
  left: calc(50% + 26px);
  right: calc(-50% + 26px);
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(7, 64, 249, 0.25) 0 6px, transparent 6px 12px);
}

.t-step:last-child::before { display: none; }

.t-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  background: rgba(7, 64, 249, 0.08);
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
}

.t-step:last-child .t-dot { background: var(--orange-soft); color: var(--orange); }

.t-step span {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}

.tracker-note {
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 26px;
}

/* Example encart */

.example {
  margin-top: 48px;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 46px 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.example::before {
  content: "";
  position: absolute;
  inset: auto -120px -180px auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 44, 0.28), transparent 65%);
  pointer-events: none;
}

.example::after {
  content: "";
  position: absolute;
  inset: -160px auto auto -100px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(7, 64, 249, 0.4), transparent 65%);
  pointer-events: none;
}

.example-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.example-rows { position: relative; z-index: 1; display: grid; gap: 18px; }

.example-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
}

.example-row .amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: -0.02em;
  color: var(--orange);
  white-space: nowrap;
}

.example-row .arrow-sep { color: rgba(255, 255, 255, 0.4); }

/* ---------- Prestations & commissions ---------- */

.prestations { background: var(--cream-3); padding: 96px 0; }

.presta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.presta-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.presta-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

.presta-card.is-featured {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 4px rgba(10, 18, 53, 0.1), 0 32px 64px -20px rgba(10, 18, 53, 0.45);
}

.presta-badge {
  position: absolute;
  top: -13px;
  right: 22px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-warm);
}

.presta-card h3 {
  font-size: 18.5px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.presta-card.is-featured h3 { color: #fff; }

.presta-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--blue);
  margin-top: 10px;
}

.presta-card.is-featured .presta-price { color: var(--orange); }

.presta-price small {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.presta-card.is-featured .presta-price small { color: rgba(255, 255, 255, 0.6); }

.presta-benefit {
  font-size: 14.5px;
  color: var(--muted);
  margin-top: 8px;
  flex-grow: 1;
}

.presta-card.is-featured .presta-benefit { color: rgba(255, 255, 255, 0.75); }

.presta-commissions {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.presta-card.is-featured .presta-commissions { border-top-color: rgba(255, 255, 255, 0.14); }

.commission {
  flex: 1;
}

.commission .c-rate {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}

.presta-card.is-featured .commission .c-rate { color: rgba(255, 255, 255, 0.55); }

.commission .c-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--navy);
  display: block;
  margin-top: 3px;
}

.presta-card.is-featured .commission .c-amount { color: rgba(255, 255, 255, 0.9); }

.commission.is-15 .c-rate { color: var(--orange); }
.commission.is-15 .c-amount { color: var(--orange); font-size: 23px; font-weight: 800; }

.presta-footnote {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 26px;
}

/* Cagnotte encart */

.cagnotte {
  margin-top: 40px;
  background: var(--orange-soft);
  border-radius: var(--radius);
  padding: 32px 36px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.cagnotte-icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--white);
  color: var(--orange);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px -8px rgba(255, 107, 44, 0.35);
}

.cagnotte p { font-size: 15.5px; color: #7C3A12; }
.cagnotte p strong { color: #C2410C; font-weight: 700; }
.cagnotte .cagnotte-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: #C2410C;
  margin-bottom: 6px;
}

/* ---------- Pourquoi ---------- */

.pourquoi { padding: 96px 0; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

.why-icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: rgba(7, 64, 249, 0.08);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.why-card:nth-child(even) .why-icon { background: var(--orange-soft); color: var(--orange); }

.why-card h3 { font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.why-card p { color: var(--muted); font-size: 15.5px; }
.why-card p strong { color: var(--ink); }

/* ---------- Contacts ---------- */

.contacts { background: var(--cream-3); padding: 96px 0; }

.contacts-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.team-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: var(--cream);
  aspect-ratio: 4 / 3.4;
}

.team-photo img { width: 100%; height: 100%; object-fit: cover; }

.contacts-body .section-head { text-align: left; margin: 0 0 24px; }
.contacts-body .section-label { justify-content: flex-start; }

.team-names {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.team-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--white);
  border-radius: 999px;
  padding: 9px 18px 9px 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-card);
}

.team-chip .tc-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  color: #fff;
  background: var(--blue);
  flex-shrink: 0;
}

.team-chip:nth-child(2) .tc-avatar { background: var(--orange); }

.team-chip small { font-weight: 500; color: var(--muted); }

.contacts-text { color: var(--muted); font-size: 16.5px; margin-bottom: 30px; }
.contacts-text strong { color: var(--ink); }

/* ---------- Réalisations ---------- */

.realisations { padding: 96px 0; overflow: hidden; }

.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  background: var(--cream-3);
  border-radius: 999px;
  padding: 6px;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.tab-btn {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.tab-btn[aria-selected="true"] {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(10, 18, 53, 0.4);
}

.tab-panel[hidden] { display: none; }

.carousel { position: relative; }

.carousel-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 24px;
  scrollbar-width: none;
  cursor: grab;
}

.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.carousel-track.dragging * { pointer-events: none; }

.carousel-nav {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 4px;
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(10, 18, 53, 0.15);
  background: var(--white);
  color: var(--navy);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.carousel-arrow:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}

/* Case cards (TPE) */

.case-card {
  flex: 0 0 min(400px, 84vw);
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

.case-visual {
  aspect-ratio: 16 / 10;
  background: var(--cream-3);
  overflow: hidden;
}

.case-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.case-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }

.case-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.case-card h3 { font-size: 19px; font-weight: 700; color: var(--navy); }

.case-domain { font-size: 12.5px; color: var(--muted); font-weight: 500; }

.case-meta {
  font-size: 13.5px;
  color: var(--muted);
}

.case-meta .case-tag {
  display: inline-block;
  background: rgba(7, 64, 249, 0.07);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 11px;
  margin-right: 6px;
}

.case-stats { display: grid; gap: 9px; margin-top: 2px; }

.case-stat {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
}

.case-stat svg { color: var(--orange); flex-shrink: 0; margin-top: 3px; }
.case-stat strong { color: var(--navy); font-weight: 700; }

/* Account cards (grands comptes) */

.account-card {
  flex: 0 0 min(310px, 78vw);
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.account-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

.account-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.account-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); }

.account-sector {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
}

.account-mission { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ---------- Témoignages ---------- */

.temoignages { background: var(--cream-3); padding: 96px 0; }

.wall {
  columns: 3;
  column-gap: 22px;
}

.t-card {
  break-inside: avoid;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 26px 26px 24px;
  margin-bottom: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.t-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }

.t-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}

.t-name { font-size: 14.5px; font-weight: 700; color: var(--navy); line-height: 1.3; }

.t-stars { display: flex; gap: 2px; color: #F5A623; margin-top: 3px; }

.t-google { margin-left: auto; flex-shrink: 0; }

.t-text { font-size: 14.5px; color: var(--muted); }
.t-text strong { color: var(--ink); font-weight: 600; }

/* Video cards */

.t-video { padding: 0; overflow: hidden; }

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy);
  cursor: pointer;
  border: none;
  padding: 0;
  display: block;
  width: 100%;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: opacity 0.25s ease, transform 0.4s ease;
}

.video-thumb:hover img { opacity: 1; transform: scale(1.03); }

.video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px -8px rgba(10, 18, 53, 0.45);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  pointer-events: none;
}

.video-thumb:hover .video-play { transform: scale(1.08); background: var(--orange); color: #fff; }

.video-caption {
  padding: 16px 22px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-caption svg { color: var(--orange); flex-shrink: 0; }

.t-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}

.wall-footer {
  text-align: center;
  margin-top: 36px;
}

.wall-footer .rating-line {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.wall-footer .rating-line svg { color: #F5A623; }

/* ---------- FAQ ---------- */

.faq { padding: 96px 0; }

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.faq-item.open { box-shadow: var(--shadow-lift); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--navy);
  padding: 22px 26px;
  line-height: 1.4;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--blue);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--orange); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-a p {
  padding: 0 26px 24px;
  color: var(--muted);
  font-size: 15.5px;
}

.faq-a p strong { color: var(--ink); }

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

.final-cta {
  background: var(--navy);
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-78%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(7, 64, 249, 0.45), transparent 62%);
  pointer-events: none;
}

.final-cta::after {
  content: "";
  position: absolute;
  bottom: -300px;
  left: 50%;
  transform: translateX(8%);
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 44, 0.3), transparent 62%);
  pointer-events: none;
}

.final-cta .container { position: relative; z-index: 1; text-align: center; }

.final-cta h2 {
  font-size: clamp(30px, 4.4vw, 50px);
  color: #fff;
  max-width: 820px;
  margin: 0 auto;
}

.final-cta h2 .hl { color: var(--orange); }

.final-cta p {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(16px, 1.7vw, 18px);
  max-width: 580px;
  margin: 22px auto 38px;
}

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

.footer {
  background: var(--navy-2);
  padding: 36px 0;
}

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

.footer p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13.5px;
}

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.65, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 1);
  }
  .reveal.in { opacity: 1; transform: translateY(0); }
  .reveal-d1 { transition-delay: 0.08s; }
  .reveal-d2 { transition-delay: 0.16s; }
  .reveal-d3 { transition-delay: 0.24s; }
}

/* ---------- Image placeholders (assets manquants) ---------- */

.ph-frame { position: relative; }

.ph-frame.ph-missing img { visibility: hidden; }

.ph-frame.ph-missing::after {
  content: attr(data-ph-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.5px;
  color: var(--muted);
  background:
    repeating-linear-gradient(45deg, rgba(7, 64, 249, 0.045) 0 14px, transparent 14px 28px),
    var(--cream-3);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 980px) {
  section, .process, .remuneration, .prestations, .pourquoi, .contacts,
  .realisations, .temoignages, .faq { padding-top: 72px; padding-bottom: 72px; }

  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }

  .steps { grid-template-columns: 1fr; }
  .rates { grid-template-columns: 1fr; }
  .payouts { grid-template-columns: 1fr; }
  .presta-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; gap: 40px; }
  .team-photo { max-width: 560px; }
  .wall { columns: 2; }

  .tracker-steps { grid-template-columns: repeat(2, 1fr); gap: 24px 8px; }
  .t-step:nth-child(2)::before { display: none; }
}

@media (max-width: 640px) {
  .nav-inner { padding: 12px 18px; }
  .logo-name { font-size: 17px; }
  .nav .btn { padding: 11px 16px; font-size: 13.5px; }

  .container { padding: 0 18px; }

  .hero h1 .hl { white-space: normal; }
  .hero-ctas .btn { width: 100%; }

  .photo-badge { font-size: 12.5px; padding: 9px 12px 9px 10px; left: 10px; bottom: 10px; }
  .hero-stats { grid-template-columns: 1fr; gap: 12px; padding: 14px 16px; }

  .presta-grid { grid-template-columns: 1fr; }
  .wall { columns: 1; }

  .example { padding: 34px 26px; }
  .tracker { padding: 28px 22px; }
  .cagnotte { flex-direction: column; padding: 26px 24px; }

  .marquee-track { gap: 40px; padding-right: 40px; }

  .tabs { width: 100%; }
  .tab-btn { flex: 1; padding: 11px 10px; font-size: 13px; }
}
