/* Accueil (17 octobre 2026) : le rêve d'abord, une idée par écran.
   Palette : nuit #0b1a30, encre #0e2c53, porcelaine #f5f8fb, verre #3f7fd9
   et #8ab8f7, brume #4c5c73. Une seule famille (Manrope).
   Un seul moment animé : le manifeste. Le reste ne bouge pas. */

.home-epure main > section {
  scroll-margin-top: 90px;
}

/* ---------- Étiquettes en casse normale ---------- */
body.home-epure .ep-label {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--blue);
}
.ep-caption {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Surlignage du titre d'accueil ---------- */
mark.hl-h {
  --hl: #9fc4f3;
  padding: 0 0.05em;
  margin: 0 -0.05em;
  color: inherit;
  background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 94% / 100% 28%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.motion .hero mark.hl-h {
  animation: ep-mark 1.2s cubic-bezier(0.45, 0, 0.25, 1) 0.9s both;
}
@keyframes ep-mark {
  from {
    background-size: 0% 28%;
  }
}

/* ---------- Accueil : ce que je vends, en une phrase ---------- */
.motion .ep-hero .hero-photo {
  animation: ep-fade 1.2s var(--ease) both;
  will-change: auto;
}
@keyframes ep-fade {
  from {
    opacity: 0;
  }
}
.ep-hero h1 {
  margin: var(--space-4) 0 0;
}
.ep-hero-lead.hero-lead {
  max-width: 520px;
  margin: var(--space-6) 0 0;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.55;
  color: var(--ink);
}
.ep-hero-actions.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-8);
}
.ep-hero-note {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Bandeau clients, collé à l'accueil ---------- */
.home-epure .client-proof {
  padding: clamp(32px, 5vh, 52px) 0;
  border-bottom: 1px solid var(--line);
}
.home-epure .client-proof-head {
  justify-content: center;
  text-align: center;
}
body.home-epure main .client-proof h2.section-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}
.clients-viewport {
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

/* ---------- Titres communs ---------- */
.ep-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
  font-weight: 780;
  letter-spacing: -0.035em;
  color: var(--navy);
  text-wrap: balance;
}
.ep-sub {
  margin: var(--space-4) 0 0;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--body);
}
.ep-nowrap {
  white-space: nowrap;
}

/* ---------- Manifeste : le moment fort de la page ---------- */
.ep-manifeste {
  padding: clamp(110px, 20vh, 220px) 0;
  background:
    radial-gradient(60% 70% at 50% 110%, #1a4a80 0%, transparent 70%), #0b1a30;
  text-align: center;
}
.ep-manifeste-title {
  display: grid;
  justify-items: center;
  gap: 0.14em;
  margin: 0 auto;
  font-size: clamp(36px, 6.6vw, 104px);
  line-height: 1;
  font-weight: 780;
  letter-spacing: -0.045em;
  color: #ffffff;
}
.ep-m-before {
  color: #ffffff59;
}
.ep-strike {
  position: relative;
  display: inline-block;
}
.ep-strike::after {
  content: '';
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  top: 54%;
  height: 0.06em;
  border-radius: 1em;
  background: #ffffffb3;
  transform-origin: left center;
}
.ep-m-now {
  background: linear-gradient(100deg, #a8cbff 0%, #5b97ec 45%, #cfe2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}
.ep-manifeste-lead {
  max-width: 34ch;
  margin: clamp(32px, 5vh, 48px) auto 0;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.5;
  color: #c4d3e7;
}
/* Animation : la première phrase est pleine, se raye et s'efface ; la
   seconde arrive ensuite. Jouée une seule fois. */
.motion .ep-manifeste-title .ep-m-before {
  transition: color 0.8s var(--ease) 1.2s;
}
.motion .ep-manifeste-title:not(.is-in) .ep-m-before {
  color: #ffffff;
}
.motion .ep-manifeste-title .ep-strike::after {
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1) 0.35s;
}
.motion .ep-manifeste-title .ep-strike + .ep-strike::after {
  transition-delay: 0.8s;
}
.motion .ep-manifeste-title:not(.is-in) .ep-strike::after {
  transform: scaleX(0);
}
.motion .ep-manifeste-title .ep-m-now {
  transition:
    opacity 0.9s var(--ease) 1.5s,
    transform 1s var(--ease) 1.5s;
}
.motion .ep-manifeste-title:not(.is-in) .ep-m-now {
  opacity: 0;
  transform: translateY(0.25em);
}
.motion .ep-manifeste-lead {
  transition: opacity 0.8s var(--ease) 2.1s;
}
.motion .ep-manifeste:has(.ep-manifeste-title:not(.is-in)) .ep-manifeste-lead {
  opacity: 0;
}

/* ---------- Ce qui a quitté la semaine : des lignes, pas des cartes ---------- */
.ep-dream {
  padding: clamp(96px, 15vh, 170px) 0;
  background: var(--white);
}
.ep-dream-title {
  max-width: 22ch;
}
.ep-rows {
  margin: clamp(40px, 7vh, 72px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.ep-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: baseline;
  gap: var(--space-4) clamp(24px, 3vw, 48px);
  padding: clamp(24px, 3.6vh, 36px) 0;
  border-bottom: 1px solid var(--line);
}
.ep-row-who {
  font-size: 15px;
  font-weight: 600;
  color: #3f7fd9;
}
.ep-row-what {
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.18;
  font-weight: 750;
  letter-spacing: -0.025em;
  color: var(--navy);
  text-wrap: balance;
}
.ep-row-detail {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--body);
}

/* ---------- Citation ---------- */
.ep-quote {
  padding: clamp(80px, 13vh, 140px) 0;
  background: var(--wash);
}
.ep-quote figure {
  max-width: 920px;
  margin: 0;
}
.ep-quote blockquote {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 52px);
  line-height: 1.14;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--navy);
  text-wrap: balance;
}
.ep-quote figcaption {
  margin-top: var(--space-6);
  font-size: 16px;
  color: var(--muted);
}

/* ---------- L'accompagnement ---------- */
.ep-offer {
  padding: clamp(96px, 15vh, 170px) 0;
  background: var(--white);
}
.ep-offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px, 7vw, 120px);
}
@media (min-width: 901px) {
  .ep-offer-copy {
    position: sticky;
    top: 120px;
  }
}
.ep-offer-lead {
  max-width: 42ch;
  margin: var(--space-6) 0 var(--space-8);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--body);
}
.ep-steps {
  position: relative;
  display: grid;
  gap: clamp(36px, 6vh, 56px);
  margin: 0;
  padding: 0 0 0 36px;
  list-style: none;
}
.ep-steps::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(#3f7fd9, #9fc4f3 75%, var(--line));
}
.ep-steps li {
  position: relative;
}
.ep-steps li::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid #3f7fd9;
}
.ep-steps li:last-child::before {
  border-color: #9fc4f3;
}
.ep-step-when {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #3f7fd9;
}
.ep-steps b {
  display: block;
  margin-top: 4px;
  font-size: clamp(24px, 2.2vw, 30px);
  letter-spacing: -0.025em;
  color: var(--navy);
}
.ep-steps p {
  margin: var(--space-2) 0 0;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--body);
}

/* ---------- Outils ---------- */
.ep-tools {
  padding: clamp(88px, 13vh, 150px) 0;
  background: var(--wash);
}
.ep-tools .ep-head {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.ep-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  max-width: 580px;
  margin: clamp(36px, 5vh, 56px) auto 0;
  padding: 0;
  list-style: none;
}
.ep-logos li {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}
.ep-logos img {
  display: block;
  width: auto;
  max-width: 44px;
  height: 34px;
  object-fit: contain;
}

/* ---------- Guide ---------- */
.home-epure .ep-guide .guide-pitch {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: var(--space-6);
}
.home-epure .ep-guide .guide-pitch h2 {
  margin: 0;
}
body.home-epure .ep-guide .ep-label {
  color: #9cc4ff;
}

/* ---------- À propos ---------- */
.ep-why {
  padding: clamp(96px, 15vh, 170px) 0;
  background: var(--white);
  text-align: center;
}
.ep-why .shell {
  display: grid;
  justify-items: center;
  gap: var(--space-5);
}
.ep-why .why-portrait {
  flex: none;
  width: 132px;
  margin: 0;
  border-radius: 999px;
  aspect-ratio: 1;
  overflow: hidden;
}
.ep-why .why-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}
.ep-why h2.section-title {
  max-width: 820px;
  margin: 0;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.ep-why-lead {
  max-width: 560px;
  margin: 0;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--body);
}
.ep-text-link {
  margin-top: var(--space-2);
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.ep-text-link:hover,
.ep-text-link:focus-visible {
  color: #3f7fd9;
}

/* ---------- Dernier appel ---------- */
.ep-contact {
  padding: clamp(100px, 17vh, 190px) 0;
  background:
    radial-gradient(70% 70% at 50% 100%, #1a4a80 0%, transparent 70%), #0b1a30;
  text-align: center;
}
.ep-contact .shell {
  display: grid;
  justify-items: center;
  gap: clamp(32px, 5vh, 48px);
}
.ep-contact-title {
  margin: 0;
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 1.06;
  font-weight: 780;
  letter-spacing: -0.035em;
  color: #ffffff;
}

.ep-footer .footer-main {
  align-items: start;
}

/* ---------- Tablette et téléphone ---------- */
@media (max-width: 900px) {
  .ep-offer-grid {
    grid-template-columns: 1fr;
  }
  .ep-row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
}
@media (max-width: 800px) {
  .ep-hero-note {
    width: 100%;
    text-align: center;
  }
  .ep-manifeste-title {
    font-size: clamp(34px, 10.4vw, 56px);
  }
  .ep-m-before,
  .ep-m-now {
    text-wrap: balance;
  }
  .ep-logos li {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }
  .ep-logos img {
    height: 28px;
    max-width: 38px;
  }
  .ep-why .why-portrait {
    width: 112px;
  }
  .home-epure .ep-guide .guide-pitch {
    justify-items: center;
    text-align: center;
  }
}

/* ---------- Mode sombre ---------- */
html.dark mark.hl-h {
  --hl: #2f6fc4;
}
html.dark body.home-epure .ep-label {
  color: #9cc4ff;
}
html.dark .ep-hero-lead.hero-lead {
  color: var(--dark-text);
}
html.dark .home-epure .client-proof,
html.dark .ep-rows,
html.dark .ep-row {
  border-color: #1b3150;
}
html.dark .ep-title,
html.dark .ep-row-what,
html.dark .ep-steps b,
html.dark .ep-quote blockquote {
  color: #e8f0fb;
}
html.dark .ep-sub,
html.dark .ep-row-detail,
html.dark .ep-offer-lead,
html.dark .ep-steps p,
html.dark .ep-why-lead,
html.dark .ep-caption,
html.dark .ep-quote figcaption {
  color: var(--dark-text);
}
html.dark .ep-row-who,
html.dark .ep-step-when {
  color: #8ab8f7;
}
html.dark .ep-dream,
html.dark .ep-offer,
html.dark .ep-why {
  background: var(--dark-surface);
}
html.dark .ep-quote,
html.dark .ep-tools {
  background: #0f1e31;
}
html.dark .ep-steps li::before {
  background: var(--dark-surface);
}
html.dark .ep-logos li {
  border-color: #1b3150;
  background: #f5f8fb;
}
html.dark .ep-text-link {
  color: #9cc4ff;
}
html.dark .ep-manifeste,
html.dark .ep-contact {
  background-color: #07111f;
}

/* Focus clavier visible partout. */
.home-epure a:focus-visible,
.home-epure button:focus-visible {
  outline: 2px solid #3f7fd9;
  outline-offset: 3px;
}

/* =========================================================
   Mouvement (17 octobre 2026, soir) : fluide et discret.
   Opacité et transform uniquement ; tout est visible sans la
   classe .motion (réduction des animations demandée).
   ========================================================= */
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
:root {
  --ep-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Apparition de base : légère montée. */
.motion [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.9s var(--ep-ease) var(--d, 0s),
    transform 1.1s var(--ep-ease) var(--d, 0s);
}
.motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.motion [data-reveal='scale'] {
  transform: scale(0.86);
}
.motion [data-reveal='tilt'] {
  transform: translate3d(0, 40px, 0) rotate(-4deg);
}

/* Accueil : la photo se pose doucement. */
.motion .ep-hero .hero-photo {
  animation: ep-settle 2.2s var(--ep-ease) both;
}
@keyframes ep-settle {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
}
.motion .ep-hero .hero-lead {
  animation: ep-rise 1s var(--ep-ease) 0.5s both;
}
.motion .ep-hero .hero-actions {
  animation: ep-rise 1s var(--ep-ease) 0.65s both;
}
@keyframes ep-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
}

/* Lignes de preuves : le trait du bas se dessine, le texte suit. */
.ep-row {
  position: relative;
  border-bottom-color: transparent;
}
.ep-row::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--line);
  transform-origin: left center;
}
html.dark .ep-row::after {
  background: #1b3150;
}
.motion .ep-row[data-reveal] {
  transform: translate3d(0, 20px, 0);
}
.motion .ep-row::after {
  transform: scaleX(0);
  transition: transform 1.2s var(--ep-ease) calc(var(--d, 0s) + 0.15s);
}
.motion .ep-row.is-in::after {
  transform: none;
}
.ep-row-what {
  transition: color 0.3s;
}
@media (hover: hover) {
  .ep-row:hover .ep-row-what {
    color: #3f7fd9;
  }
}

/* Citation : les mots arrivent un par un. */
.ep-word {
  display: inline-block;
}
.motion [data-reveal='words'] {
  opacity: 1;
  transform: none;
}
.motion [data-reveal='words'] .ep-word {
  opacity: 0;
  transform: translate3d(0, 0.35em, 0);
  transition:
    opacity 0.7s var(--ep-ease),
    transform 0.8s var(--ep-ease);
  transition-delay: calc(var(--i) * 45ms);
}
.motion [data-reveal='words'].is-in .ep-word {
  opacity: 1;
  transform: none;
}

/* Frise : la ligne se trace, les points s'allument en cascade. */
.motion .ep-steps::before {
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 1.6s var(--ep-ease) 0.1s;
}
.motion .ep-steps.is-in::before {
  transform: none;
}
.motion .ep-steps li::before {
  transform: scale(0);
  transition: transform 0.6s var(--ep-ease) calc(var(--d, 0s) + 0.35s);
}
.motion .ep-steps li.is-in::before {
  transform: none;
}

/* Logos : ils se posent en cascade. */
.motion .ep-logos li[data-reveal] {
  transform: translate3d(0, 16px, 0) scale(0.9);
}
.ep-logos li {
  transition:
    opacity 0.9s var(--ep-ease) var(--d, 0s),
    transform 0.9s var(--ep-ease) var(--d, 0s),
    box-shadow 0.3s;
}
@media (hover: hover) {
  .ep-logos li:hover {
    box-shadow: 0 14px 28px -16px #0e2c5366;
  }
}

/* Boutons : réponse douce au survol et au clic. */
.home-epure .site-button {
  transition:
    transform 0.35s var(--ep-ease),
    box-shadow 0.35s var(--ep-ease),
    background-color 0.25s;
}
@media (hover: hover) {
  .home-epure .site-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -14px #0e2c5380;
  }
}
.home-epure .site-button:active {
  transform: translateY(0) scale(0.98);
}

/* =========================================================
   Continuité (17 octobre 2026, 19 h 30) : un seul fond clair,
   des passages en dégradé vers le bleu nuit, aucune coupure nette.
   ========================================================= */
body.home-epure {
  --ep-night: #0b1a30;
  background: var(--page-background);
}
html.dark body.home-epure {
  --ep-night: #07111f;
}

/* Les sections claires partagent le même fond : seul l'espace sépare. */
body.home-epure .client-proof,
body.home-epure .ep-dream,
body.home-epure .ep-quote,
body.home-epure .ep-offer,
body.home-epure .ep-tools,
body.home-epure .ep-why {
  background: var(--page-background);
  border: 0;
}
body.home-epure .ep-quote {
  text-align: center;
}
body.home-epure .ep-quote figure {
  margin: 0 auto;
}

/* Lignes de preuves : traits plus discrets, sans cadre autour de la liste. */
body.home-epure .ep-rows {
  border-top: 0;
}
.ep-row::after {
  background: linear-gradient(90deg, var(--line), transparent 92%);
}
html.dark .ep-row::after {
  background: linear-gradient(90deg, #1b3150, transparent 92%);
}

/* Manifeste : on glisse dans la nuit, puis on en ressort. */
body.home-epure .ep-manifeste {
  padding: clamp(200px, 32vh, 340px) 0;
  background:
    radial-gradient(55% 40% at 50% 62%, #1a4a8099 0%, transparent 70%),
    linear-gradient(
      to bottom,
      var(--page-background) 0%,
      var(--ep-night) 24%,
      var(--ep-night) 76%,
      var(--page-background) 100%
    );
}

/* Final : guide, appel et pied de page dans une même nuit. */
body.home-epure .ep-guide {
  padding: clamp(180px, 26vh, 280px) 0 clamp(72px, 10vh, 110px);
  background:
    radial-gradient(60% 50% at 80% 60%, #1d4a8680 0%, transparent 70%),
    linear-gradient(
      to bottom,
      var(--page-background) 0%,
      var(--ep-night) 32%,
      var(--ep-night) 100%
    );
}
body.home-epure .ep-contact {
  padding-top: clamp(64px, 10vh, 120px);
  background:
    radial-gradient(60% 60% at 50% 70%, #1a4a8080 0%, transparent 70%),
    var(--ep-night);
}
body.home-epure .ep-footer {
  background: var(--ep-night);
  box-shadow: 0 0 0 100vmax var(--ep-night);
  clip-path: inset(0 -100vmax);
  color: #9fb3cc;
}
body.home-epure .ep-footer .brand,
body.home-epure .ep-footer a {
  color: #c4d3e7;
}
body.home-epure .ep-footer a:hover {
  color: #ffffff;
}
body.home-epure .ep-footer .footer-legal,
body.home-epure .ep-footer .footer-main {
  border-color: #ffffff1a;
}

/* Apparitions plus douces : moins de distance, plus de temps. */
.motion [data-reveal] {
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 1.2s var(--ep-ease) var(--d, 0s),
    transform 1.4s var(--ep-ease) var(--d, 0s);
}
.motion .ep-row[data-reveal] {
  transform: translate3d(0, 12px, 0);
}

/* =========================================================
   Espacement resserré (17 octobre 2026, 19 h 35).
   Un seul rythme vertical pour toute la page : --ep-gap en haut
   et en bas de chaque section, donc 2 × --ep-gap entre deux blocs.
   ========================================================= */
body.home-epure {
  --ep-gap: clamp(40px, 6vh, 72px);
}
body.home-epure .client-proof {
  padding: clamp(20px, 3vh, 32px) 0 var(--ep-gap);
}
body.home-epure .ep-dream,
body.home-epure .ep-quote,
body.home-epure .ep-offer,
body.home-epure .ep-tools,
body.home-epure .ep-why {
  padding: var(--ep-gap) 0;
}
body.home-epure .ep-manifeste {
  padding: calc(var(--ep-gap) * 2) 0;
  background:
    radial-gradient(55% 45% at 50% 60%, #1a4a8099 0%, transparent 70%),
    linear-gradient(
      to bottom,
      var(--page-background) 0%,
      var(--ep-night) 16%,
      var(--ep-night) 84%,
      var(--page-background) 100%
    );
}
body.home-epure .ep-guide {
  padding: calc(var(--ep-gap) * 2) 0 var(--ep-gap);
  background:
    radial-gradient(60% 50% at 80% 60%, #1d4a8680 0%, transparent 70%),
    linear-gradient(
      to bottom,
      var(--page-background) 0%,
      var(--ep-night) 22%,
      var(--ep-night) 100%
    );
}
body.home-epure .ep-contact {
  padding: var(--ep-gap) 0 calc(var(--ep-gap) * 1.5);
}
body.home-epure .ep-rows {
  margin-top: clamp(24px, 4vh, 40px);
}
body.home-epure .ep-row {
  padding: clamp(16px, 2.4vh, 24px) 0;
}
body.home-epure .ep-steps {
  gap: clamp(24px, 3.5vh, 36px);
}
body.home-epure .ep-logos {
  margin-top: clamp(24px, 3.5vh, 36px);
}
body.home-epure .ep-manifeste-lead {
  margin-top: clamp(20px, 3vh, 32px);
}
body.home-epure .ep-why .shell {
  gap: var(--space-4);
}
body.home-epure .ep-contact .shell {
  gap: clamp(24px, 3.5vh, 36px);
}
@media (max-width: 800px) {
  body.home-epure {
    --ep-gap: 36px;
  }
  body.home-epure .ep-manifeste {
    padding: 72px 0;
  }
  body.home-epure .ep-guide {
    padding-top: 72px;
  }
  body.home-epure .ep-offer-grid {
    gap: 32px;
  }
}
/* En mode sombre, le fond est déjà nuit : pas besoin de longue transition. */
html.dark body.home-epure .ep-manifeste {
  padding: var(--ep-gap) 0;
}
html.dark body.home-epure .ep-guide {
  padding-top: var(--ep-gap);
}

/* Accueil : retour à la composition d'origine (photo de Rennes nette,
   mention manuscrite « Né à Rennes. Partout en France. »). */
.ep-hero h1 {
  margin-top: var(--space-3);
}
.ep-hero-lead.hero-lead {
  margin-top: var(--space-5);
}
.ep-hero-actions.hero-actions {
  margin-top: var(--space-6);
}
.motion .ep-hero .photo-note {
  animation: ep-note 1s var(--ep-ease) 1.1s both;
}
@keyframes ep-note {
  from {
    opacity: 0;
    transform: rotate(-9deg) translate3d(0, 8px, 0);
  }
}
@media (max-width: 800px) {
  .ep-hero-note {
    width: auto;
    text-align: left;
  }
}

/* =========================================================
   18 octobre 2026 : manifeste lisible, mention manuscrite visible
   sur téléphone, scène des outils d'origine.
   ========================================================= */

/* Manifeste : deux phrases nettes, sans rature. La première, plus petite,
   pose le décor ; la seconde porte le message ; le texte l'explique. */
body.home-epure .ep-m-before {
  font-size: 0.5em;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #c4d3e7;
}
body.home-epure .ep-m-before::after,
body.home-epure .ep-strike::after {
  content: none;
}
body.home-epure .ep-manifeste-lead {
  max-width: 30ch;
  color: #dbe6f4;
}
body.home-epure .ep-manifeste-lead strong {
  color: #ffffff;
  font-weight: 700;
}
.motion .ep-manifeste-title .ep-m-before {
  transition:
    opacity 0.8s var(--ep-ease) 0.1s,
    transform 0.9s var(--ep-ease) 0.1s;
}
.motion .ep-manifeste-title:not(.is-in) .ep-m-before {
  color: #c4d3e7;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
}
.motion .ep-manifeste-title .ep-m-now {
  transition:
    opacity 0.9s var(--ep-ease) 0.55s,
    transform 1s var(--ep-ease) 0.55s;
}
.motion .ep-manifeste-lead {
  transition: opacity 0.8s var(--ep-ease) 1s;
}

/* Scène des outils : on garde la mise en page d'origine. */
body.home-epure .cv-section {
  padding: var(--ep-gap) 0;
  background: var(--page-background);
}

/* Mention manuscrite : plus grande et lisible sur téléphone. */
@media (max-width: 800px) {
  body.home-epure .ep-hero .hero-photo {
    -webkit-mask-image: none;
    mask-image: none;
  }
  body.home-epure .ep-hero .photo-note {
    right: 16px;
    bottom: 20px;
    font-size: 27px;
    line-height: 1.05;
    text-shadow:
      0 1px 2px #000000b3,
      0 2px 14px #000000cc;
    z-index: 2;
  }
  body.home-epure .ep-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, #0b1a3099, transparent);
  }
  body.home-epure .ep-manifeste-lead {
    font-size: 18px;
  }
}

/* =========================================================
   Alternative mobile (18 octobre 2026) : le consultant visible dès
   l'accueil, un bouton d'appel toujours à portée de pouce, les
   objections levées avant l'appel final.
   ========================================================= */

/* Qui je suis, sous le bouton de l'accueil. */
.ep-who {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffffd9;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.3;
}
.ep-who img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
}
.ep-who strong {
  display: block;
  font-size: 14.5px;
  color: var(--navy);
}
html.dark .ep-who {
  border-color: #1b3150;
  background: #0f1e31d9;
  color: var(--dark-text);
}
html.dark .ep-who strong {
  color: #e8f0fb;
}

/* Questions : des accordéons simples, une réponse courte chacun. */
.ep-faq {
  padding: var(--ep-gap) 0;
  background: var(--page-background);
}
.ep-faq-list {
  max-width: 760px;
  margin-top: clamp(20px, 3vh, 32px);
  border-top: 1px solid var(--line);
}
.ep-faq details {
  border-bottom: 1px solid var(--line);
}
.ep-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  min-height: 56px;
  padding: var(--space-4) 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.ep-faq summary::-webkit-details-marker {
  display: none;
}
.ep-faq summary::after {
  content: '+';
  flex: none;
  font-size: 24px;
  font-weight: 400;
  color: #3f7fd9;
  transition: transform 0.3s var(--ep-ease);
}
.ep-faq details[open] summary::after {
  transform: rotate(45deg);
}
.ep-faq details p {
  margin: 0 0 var(--space-4);
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}
html.dark .ep-faq-list,
html.dark .ep-faq details {
  border-color: #1b3150;
}
html.dark .ep-faq summary {
  color: #e8f0fb;
}
html.dark .ep-faq details p {
  color: var(--dark-text);
}

/* Appel final : le guide en lien secondaire, plus de section dédiée. */
.ep-contact-alt {
  margin: 0;
  font-size: 15px;
  color: #c4d3e7;
}
.ep-contact-alt a {
  color: #ffffff;
  text-underline-offset: 3px;
}

/* Barre d'appel collée en bas, sur téléphone uniquement. */
.ep-sticky {
  display: none;
}
@media (max-width: 800px) {
  .ep-sticky {
    position: fixed;
    z-index: 40;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #ffffffeb;
    border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transform: translate3d(0, 110%, 0);
    transition: transform 0.45s var(--ep-ease);
  }
  .ep-sticky[hidden] {
    display: none;
  }
  .ep-sticky.is-shown {
    transform: none;
  }
  .ep-sticky .site-button {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 50px;
  }
  html.dark .ep-sticky {
    background: #07111feb;
    border-color: #1b3150;
  }
  /* Laisse la place à la barre en bas de page. */
  body.home-epure .ep-footer {
    padding-bottom: 84px;
  }
  /* Textes jamais sous 14 px sur téléphone. */
  body.home-epure .client-logo-card figcaption,
  body.home-epure .client-logo-card figcaption small,
  body.home-epure .ep-hero-note {
    font-size: 14px;
  }
  .ep-who {
    display: flex;
    width: fit-content;
  }
}

/* Accueil : « Vous utilisez déjà l'IA. Voilà ce qui change. » (21/10/2026) */
.ep-shift .ep-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
}
.ep-shift .ep-row-detail {
  color: var(--muted);
}
.ep-shift-head {
  padding-top: 0;
  padding-bottom: var(--space-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3f7fd9;
}
.ep-offer-more {
  display: inline-block;
}
@media (max-width: 900px) {
  .ep-shift .ep-row {
    grid-template-columns: 1fr;
  }
  .ep-shift-head {
    display: none;
  }
}

/* ---------- Cas clients en tuiles : un chiffre, une ligne, le métier ---------- */
.ep-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: clamp(28px, 5vh, 48px) 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 801px) {
  .ep-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}
.ep-tile {
  display: flex;
  flex-direction: column;
  padding: 16px 16px 14px;
  border-radius: var(--radius-card);
  background: var(--wash);
}
.ep-tile-wide {
  grid-column: 1 / -1;
}
@media (min-width: 801px) {
  .ep-tile-wide {
    grid-column: span 2;
  }
}
.ep-tile b {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.ep-tile-wide b {
  font-size: clamp(32px, 3.4vw, 46px);
}
.ep-tile p {
  margin: 8px 0 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--body);
}
.ep-tile small {
  margin-top: auto;
  font-size: 12px;
  font-weight: 600;
  color: #3f7fd9;
}
html.dark .ep-tile {
  background: #0f1f35;
}
html.dark .ep-tile b {
  color: #e8f0fb;
}
html.dark .ep-tile p {
  color: var(--dark-text);
}
html.dark .ep-tile small {
  color: #8ab8f7;
}

/* Grand écran : les blocs de texte seuls sont centrés, comme la citation et « À propos ». */
@media (min-width: 801px) {
  body.home-epure .ep-dream-title,
  body.home-epure .ep-offer-copy,
  body.home-epure .ep-faq .ep-title {
    margin-inline: auto;
    text-align: center;
  }
  body.home-epure .ep-offer-copy {
    max-width: 820px;
  }
  body.home-epure .ep-offer-lead {
    margin-inline: auto;
  }
  body.home-epure .ep-faq-list {
    margin-inline: auto;
  }
}

/* Un groupe de mots surligné par titre de section, tracé quand le titre apparaît. */
.motion [data-reveal] mark.hl-h {
  background-size: 0% 28%;
  transition: background-size 1.2s cubic-bezier(0.45, 0, 0.25, 1) 0.45s;
}
.motion [data-reveal].is-in mark.hl-h {
  background-size: 100% 28%;
}
#projet mark.hl-h {
  --hl: #2f6fc4;
}

/* Comparatif : ChatGPT seul, une formation, avec moi. */
.ep-compare {
  padding: var(--ep-gap) 0;
  background: var(--page-background);
}
.ep-compare .ep-title {
  margin-inline: auto;
  text-align: center;
}
.ep-compare-wrap {
  max-width: 860px;
  margin: clamp(28px, 5vh, 48px) auto 0;
}
.ep-compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.35;
}
.ep-compare-table th,
.ep-compare-table td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
  color: var(--body);
}
.ep-compare-table thead th {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.ep-compare-table tbody th {
  width: 32%;
  text-align: left;
  font-weight: 650;
  color: var(--navy);
}
.ep-compare-table .is-me {
  background: var(--wash);
  font-weight: 700;
  color: var(--navy);
}
.ep-compare-table thead .is-me {
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  color: #3f7fd9;
}
.ep-compare-table tbody tr:last-child td.is-me {
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}
html.dark .ep-compare-table th,
html.dark .ep-compare-table td {
  border-color: #1b3150;
  color: var(--dark-text);
}
html.dark .ep-compare-table tbody th,
html.dark .ep-compare-table .is-me {
  color: #e8f0fb;
}
html.dark .ep-compare-table .is-me {
  background: #0f1f35;
}
html.dark .ep-compare-table thead .is-me {
  color: #8ab8f7;
}
@media (max-width: 560px) {
  .ep-compare-table th,
  .ep-compare-table td {
    padding: 12px 6px;
  }
  .ep-compare-table tbody th {
    width: 30%;
  }
}
