/* ===========================================================================
   efacture-express.css — EFacture Express product page
   Brand-strict: deep ink navy + terracotta on warm sand/cream. No emerald.
   Reuses .container from layout.css; defines its own .nav/.foot chrome.
   =========================================================================== */

:root {
  --e-ink: #182b45;
  --e-ink-2: #22385a;
  --e-terra: #c75c3a;
  --e-terra-deep: #a84a2e;
  --e-terra-wash: rgba(199, 92, 58, 0.1);
  --e-sand: #f6efe3;
  --e-paper: #fffdf9;
  --e-line: #e5ddce;
  --e-text: #33455f;
  --e-muted: #64748b;
  --e-white: #fffdf9;
  --e-wa: #1fae57;
  --e-shadow: 0 24px 60px -30px rgba(24, 43, 69, 0.5);
  --e-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 64px;
}

body.efe {
  background: var(--e-sand);
  color: var(--e-text);
}
body.efe figure { margin: 0; }

.efe-main { overflow-x: clip; }

/* ---------- generic section rhythm ---------- */
.efe-section { padding: 78px 0; }
.efe-section--tight { padding: 56px 0; }

.efe-section--dark {
  background: var(--e-ink);
  color: rgba(255, 255, 255, 0.86);
}

.efe-head { max-width: 720px; margin-bottom: 40px; }
.efe-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.efe-eyebrow {
  color: var(--e-terra);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.efe-head h2 {
  margin-top: 14px;
  color: var(--e-ink);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.efe-section--dark .efe-head h2 { color: #fff; }

.efe-head p {
  margin-top: 16px;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--e-muted);
}

.efe-section--dark .efe-head p { color: rgba(255, 255, 255, 0.72); }

/* ---------- hero ---------- */
.efe-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 28px) 0 72px;
  background:
    radial-gradient(1000px 500px at 82% 8%, rgba(199, 92, 58, 0.09), transparent 60%);
}

.efe-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.efe-hero__grid > * { min-width: 0; }

.efe-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--e-terra-wash);
  border: 1px solid rgba(199, 92, 58, 0.28);
  color: var(--e-terra-deep);
  font-size: 0.8rem;
  font-weight: 800;
}

.efe-badge::before {
  content: "";
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--e-terra);
}

.efe-hero h1 {
  margin-top: 22px;
  color: var(--e-ink);
  font-size: clamp(2.2rem, 5.4vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.efe-hero h1 em { color: var(--e-terra); font-style: normal; }

.efe-hero__lead {
  max-width: 540px;
  margin-top: 20px;
  font-size: 1.14rem;
  line-height: 1.62;
  color: var(--e-text);
}

.efe-hero__lead strong { color: var(--e-ink); font-weight: 750; }

.efe-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.efe-hero__note {
  margin-top: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--e-muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  max-width: 520px;
}

.efe-hero__note svg { flex: none; margin-top: 2px; color: var(--e-terra); }

.efe-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
}

.efe-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--e-muted);
  font-size: 0.85rem;
  font-weight: 650;
}

.efe-chip svg { flex: none; color: var(--e-terra); }

/* hero art (invoice image) */
.efe-hero__art { position: relative; display: flex; justify-content: center; }

.efe-hero__stage { position: relative; width: min(100%, 420px); }

.efe-hero__glow {
  position: absolute; inset: -14% -10%;
  background: radial-gradient(58% 52% at 52% 42%, rgba(199, 92, 58, 0.2), transparent 70%);
  filter: blur(28px); z-index: -1; pointer-events: none;
}


.efe-hero__frame {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: var(--e-paper);
  border: 1px solid var(--e-line);
  box-shadow: var(--e-shadow);
}

.efe-hero__frame img { width: 100%; height: auto; display: block; }

.efe-hero__stamp {
  position: absolute;
  bottom: 16px; right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--e-ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(24, 43, 69, 0.35);
}

.efe-hero__stamp svg { flex: none; color: var(--e-terra); }

/* hero: single reassurance line */
.efe-hero__ping {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 16px;
  color: var(--e-muted); font-size: 0.92rem; font-weight: 700;
}
.efe-hero__ping::before {
  content: ""; width: 9px; height: 9px; border-radius: 999px; flex: none;
  background: var(--e-terra); box-shadow: 0 0 0 4px var(--e-terra-wash);
}

/* hero entrance — plays on load, staggered */
@keyframes efe-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes efe-art-in { from { opacity: 0; transform: translateY(22px) scale(0.985); } to { opacity: 1; transform: none; } }
.efe-hero .stage { opacity: 0; animation: efe-rise 0.7s var(--e-ease) both; }
.efe-hero__text .stage:nth-child(1) { animation-delay: 0.05s; }
.efe-hero__text .stage:nth-child(2) { animation-delay: 0.13s; }
.efe-hero__text .stage:nth-child(3) { animation-delay: 0.21s; }
.efe-hero__text .stage:nth-child(4) { animation-delay: 0.29s; }
.efe-hero__text .stage:nth-child(5) { animation-delay: 0.37s; }
.efe-hero__art { opacity: 0; animation: efe-art-in 0.9s var(--e-ease) 0.18s both; }
@media (prefers-reduced-motion: reduce) {
  .efe-hero .stage, .efe-hero__art { opacity: 1; animation: none; }
}

/* gentle continuous float on the invoice */
@keyframes efe-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.efe-hero__frame { animation: efe-bob 6.5s var(--e-ease) infinite; }
@media (prefers-reduced-motion: reduce) {
  .efe-hero__frame { animation: none; }
}

/* ---------- enjeux (stakes) band ---------- */
.efe-stakes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 8px;
}

.efe-stake {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.efe-stake h3 { color: #fff; font-size: 1.05rem; }
.efe-stake p { margin-top: 8px; font-size: 0.96rem; line-height: 1.6; color: rgba(255, 255, 255, 0.72); }
.efe-stake .efe-stake__k { color: var(--e-terra); font-weight: 850; }

/* ---------- steps (how it works) ---------- */
.efe-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.efe-step {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--e-line);
  border-radius: 16px;
  background: var(--e-paper);
  box-shadow: 0 14px 34px -26px rgba(24, 43, 69, 0.4);
}

.efe-step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--e-terra);
  color: #fff;
  font-weight: 850;
  font-size: 1.05rem;
}

.efe-step h3 { margin-top: 18px; color: var(--e-ink); font-size: 1.16rem; }
.efe-step p { margin-top: 8px; font-size: 0.98rem; line-height: 1.6; }

/* ---------- modules grid (all it does) ---------- */
.efe-modules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.efe-module {
  padding: 20px 18px;
  border: 1px solid var(--e-line);
  border-radius: 14px;
  background: var(--e-paper);
  transition: transform 200ms ease, border-color 200ms ease;
}

.efe-module:hover { transform: translateY(-3px); border-color: rgba(199, 92, 58, 0.4); }

/* card hover polish — parity with pilotage */
.efe-step, .efe-stake { transition: transform 220ms var(--e-ease), box-shadow 220ms var(--e-ease), border-color 220ms var(--e-ease), background 220ms var(--e-ease); }
.efe-step:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -28px rgba(24, 43, 69, 0.5); }
.efe-stake:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.06); }

.efe-module__ico {
  display: inline-flex;
  color: var(--e-terra);
  margin-bottom: 12px;
}

.efe-module h3 { color: var(--e-ink); font-size: 1rem; }
.efe-module p { margin-top: 5px; font-size: 0.88rem; line-height: 1.5; color: var(--e-muted); }

/* ---------- honesty band ---------- */
.efe-honesty__card {
  max-width: 820px;
  margin: 0 auto;
  padding: 30px 32px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 5px solid var(--e-terra);
  background: rgba(255, 255, 255, 0.05);
}

.efe-honesty__card h2 { color: #fff; font-size: 1.5rem; }
.efe-honesty__card p { margin-top: 12px; line-height: 1.68; color: rgba(255, 255, 255, 0.82); }
.efe-honesty__card p + p { margin-top: 10px; }
.efe-honesty__card a { color: #fff; font-weight: 750; text-underline-offset: 3px; }

/* ---------- pricing ---------- */
.efe-price {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  border: 1px solid var(--e-line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--e-paper);
  box-shadow: var(--e-shadow);
}

.efe-price__amount {
  padding: 40px 36px;
  background: var(--e-ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.efe-price__label { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.efe-price__big { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.efe-price__big b { font-size: 3.6rem; font-weight: 900; line-height: 0.9; }
.efe-price__big span { font-size: 1.3rem; font-weight: 750; color: rgba(255, 255, 255, 0.9); }
.efe-price__sub { margin-top: 10px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.82); }

.efe-price__body { padding: 34px 36px; }
.efe-price__body h3 { color: var(--e-ink); font-size: 1.25rem; }

.efe-price__list { margin: 18px 0 24px; display: grid; gap: 11px; list-style: none; }
.efe-price__list li { position: relative; padding-left: 28px; line-height: 1.5; font-size: 0.97rem; }
.efe-price__list li::before {
  content: "";
  position: absolute; left: 2px; top: 0.4em;
  width: 12px; height: 12px; border-radius: 999px;
  background: var(--e-terra-wash);
  box-shadow: inset 0 0 0 2px var(--e-terra);
}

/* ---------- FAQ ---------- */
.efe-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }

.efe-faq details {
  border: 1px solid var(--e-line);
  border-radius: 12px;
  background: var(--e-paper);
  padding: 2px 22px;
}

.efe-faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none;
  color: var(--e-ink); font-weight: 750; font-size: 1.03rem;
}
.efe-faq summary::-webkit-details-marker { display: none; }
.efe-faq summary::after { content: "+"; flex: none; color: var(--e-terra); font-size: 1.5rem; line-height: 1; transition: transform 200ms ease; }
.efe-faq details[open] summary::after { transform: rotate(45deg); }
.efe-faq details p { margin: 0 0 20px; line-height: 1.68; color: var(--e-text); }
.efe-faq a { color: var(--e-terra-deep); font-weight: 700; }

/* ---------- final CTA ---------- */
.efe-final { text-align: center; }
.efe-final h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.5rem); max-width: 640px; margin: 0 auto; line-height: 1.12; }
.efe-final p { max-width: 560px; margin: 14px auto 0; color: rgba(255, 255, 255, 0.8); font-size: 1.05rem; }
.efe-final .efe-cta-row { justify-content: center; }

/* ---------- buttons (pill, matching home/pilotage) ---------- */
.efe-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 14px 28px; border-radius: 999px;
  font-weight: 750; font-size: 0.98rem; text-decoration: none;
  transition: transform 220ms var(--e-ease), background-color 220ms var(--e-ease), border-color 220ms var(--e-ease), box-shadow 220ms var(--e-ease);
}
.efe-btn:hover { transform: translateY(-2px); }
.efe-btn--terra {
  background: var(--e-terra); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 14px 30px -12px rgba(199, 92, 58, 0.6);
}
.efe-btn--terra:hover {
  background: var(--e-terra-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 18px 36px -12px rgba(199, 92, 58, 0.72);
}
.efe-btn--line { border: 1.5px solid rgba(24, 43, 69, 0.2); color: var(--e-ink); background: rgba(255, 255, 255, 0.6); }
.efe-btn--line:hover { border-color: var(--e-ink); }
.efe-btn--ghost { border: 1.5px solid rgba(255, 255, 255, 0.4); color: #fff; }
.efe-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  /* text (the message) leads on mobile; invoice becomes proof below */
  .efe-hero { padding-top: calc(var(--nav-h) + 22px); }
  .efe-hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .efe-hero__text { text-align: left; }
  .efe-hero__art { margin-top: 4px; }
  .efe-stakes__grid { grid-template-columns: 1fr; }
  .efe-steps { grid-template-columns: 1fr; }
  .efe-modules { grid-template-columns: repeat(2, 1fr); }
  .efe-price { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .efe-section { padding: 56px 0; }
  .efe-modules { grid-template-columns: 1fr; }
  .efe-price__amount, .efe-price__body { padding: 28px 24px; }
}

/* ===========================================================================
   SHARED CHROME — nav (breadcrumb), footer, WhatsApp float
   Mirrors home/pilotage logic, brand palette.
   =========================================================================== */
body.efe [id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

.scroll-progress {
  position: fixed; inset: 0 auto auto 0; z-index: 220;
  width: var(--scroll, 0%); height: 2.5px;
  background: var(--e-terra);
  pointer-events: none;
}

.skip {
  position: absolute; left: 12px; top: 10px; z-index: 300;
  transform: translateY(-200%);
  background: var(--e-ink); color: var(--e-sand);
  padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip:focus { transform: none; }

/* ---- nav (fixed, solidifies on scroll) ---- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background 0.3s var(--e-ease), box-shadow 0.3s var(--e-ease);
}
.nav.is-solid {
  background: rgba(246, 239, 227, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(24, 43, 69, 0.13);
}
.nav__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: var(--nav-h);
  width: min(1120px, 100% - 40px); margin: 0 auto;
}
.nav__crumbs { display: flex; align-items: center; gap: 9px; }
.nav__logo { display: inline-flex; }
.nav__logo img { height: 28px; width: auto; }
.nav__sep { display: inline-flex; align-items: center; color: var(--e-ink); opacity: 0.38; }
.nav__sep svg { width: 15px; height: 15px; }
.nav__product {
  font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em;
  color: var(--e-ink); text-decoration: none;
  padding-bottom: 2px; border-bottom: 2px solid var(--e-terra);
}
@media (max-width: 560px) {
  .nav__logo img { height: 24px; }
  .nav__crumbs { gap: 7px; }
  .nav__product { font-size: 0.94rem; white-space: nowrap; }
}

/* ---- footer ---- */
.foot { background: var(--e-ink); color: rgba(246, 239, 227, 0.75); padding: 64px 24px 34px; }
.foot__in { width: min(1120px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.foot__top { display: flex; flex-direction: column; gap: 34px; justify-content: space-between; align-items: flex-start; }
.foot__brand img { height: 30px; width: auto; }
.foot__brand p { margin-top: 18px; font-size: 0.94rem; line-height: 1.7; }
.foot__legal { margin-top: 10px; font-size: 0.8rem; line-height: 1.65; color: rgba(246, 239, 227, 0.5); }
.foot__contact { display: grid; gap: 5px; font-size: 0.94rem; }
.foot__contact h2 { margin: 0 0 2px; color: var(--e-white); font-size: 0.98rem; line-height: 1.2; }
.foot a { color: inherit; text-decoration: none; }
.foot__contact a, .foot__links a { width: fit-content; transition: color 0.2s var(--e-ease); }
.foot__contact a:hover, .foot__links a:hover { color: var(--e-terra); }
.foot__links {
  border-top: 1px solid rgba(246, 239, 227, 0.17);
  padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-weight: 600; font-size: 0.9rem;
}
.foot__bottom {
  border-top: 1px solid rgba(246, 239, 227, 0.12);
  padding-top: 24px; text-align: center;
  color: rgba(246, 239, 227, 0.58); font-size: 0.88rem;
}
@media (min-width: 720px) {
  .foot__top { flex-direction: row; align-items: flex-start; }
  .foot__contact { min-width: 210px; }
  .foot__links { justify-content: center; }
}

/* ---- WhatsApp float ---- */
.wa-float {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 180;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 0 18px 0 15px;
  border-radius: 999px;
  background: var(--e-wa); color: #fff;
  font-weight: 700; font-size: 0.92rem; text-decoration: none;
  box-shadow: 0 18px 44px -18px rgba(24, 43, 69, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.22) inset;
  transition: transform 0.24s var(--e-ease), box-shadow 0.24s var(--e-ease), background 0.24s var(--e-ease);
}
.wa-float:active { transform: scale(0.94); }
.wa-float.is-tucked {
  opacity: 0; visibility: hidden;
  transform: translateY(18px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s var(--e-ease), transform 0.3s var(--e-ease), visibility 0s linear 0.3s;
}
.wa-float:hover {
  background: #21b358; transform: translateY(-2px);
  box-shadow: 0 22px 54px -18px rgba(24, 43, 69, 0.58), 0 0 0 1px rgba(255, 255, 255, 0.22) inset;
}
.wa-float svg { width: 23px; height: 23px; flex: none; }
.wa-float__pulse {
  position: absolute; inset: -7px;
  border: 2px solid rgba(33, 179, 88, 0.42);
  border-radius: inherit; pointer-events: none;
  animation: wa-pulse 2.4s var(--e-ease) infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(0.94); opacity: 0.9; }
  70% { transform: scale(1.12); opacity: 0; }
  100% { opacity: 0; }
}
@media (max-width: 520px) {
  .wa-float { width: 56px; height: 56px; min-height: 56px; justify-content: center; padding: 0; }
  .wa-float span:not(.wa-float__pulse) { display: none; }
}

/* ---- motion (JS opt-in via body.motion) ---- */
.motion .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--e-ease), transform 0.7s var(--e-ease); }
.motion .reveal.is-in { opacity: 1; transform: none; }

/* staggered cascade within a row */
.motion .efe-stakes__grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.motion .efe-stakes__grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.motion .efe-steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.motion .efe-steps .reveal:nth-child(3) { transition-delay: 0.16s; }
.motion .efe-modules .reveal:nth-child(4n + 2) { transition-delay: 0.06s; }
.motion .efe-modules .reveal:nth-child(4n + 3) { transition-delay: 0.12s; }
.motion .efe-modules .reveal:nth-child(4n + 4) { transition-delay: 0.18s; }
@media (prefers-reduced-motion: reduce) {
  .motion .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float__pulse { animation: none; }
}
