/**
 * Étapes Print — Page d'accueil (complète modules/categories/ep-categories.css).
 */

.ep-home-page .fusion-page-title-bar { display: none !important; }
.ep-home-page #main { padding-top: 0 !important; padding-bottom: 0 !important; overflow-x: clip; }
.ep-home-page .fusion-row { max-width: none; }
.ep-home-page .post-content > .fusion-fullwidth { padding: 0 !important; }
.ep-home { --ep-gut: max(20px, calc((100vw - 1240px) / 2)); max-width: 1240px; margin: 0 auto; color: var(--c-text); font-size: 16px; line-height: 1.6; }
.ep-home h2 { margin: 0 !important; color: var(--c-text) !important; font-size: clamp(24px, 2.6vw, 32px) !important; line-height: 1.2 !important; font-weight: 700 !important; letter-spacing: -.01em; }
.ep-home h3 { color: var(--c-text) !important; font-weight: 700 !important; }
.ep-home p { margin: 0 0 12px; }

/* Boutons */
.ep-home-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 14px; font-size: 16px; font-weight: 700; text-decoration: none !important; transition: transform .15s, background .15s; }
.ep-home-btn:hover { transform: translateY(-1px); }
.ep-home-btn--main { background: var(--c-buy); color: #fff !important; }
.ep-home-btn--main:hover { background: #229345; }
.ep-home-btn--ghost { border: 2px solid rgba(255, 255, 255, .7); color: #fff !important; }
.ep-home-btn--light { background: #fff; color: var(--c-dark) !important; }
.ep-home-center { margin-top: 22px !important; text-align: center; }

/* ---------- Pleine largeur ---------- */

.ep-home-bleed { position: relative; width: 100vw; margin-left: calc(50% - 50vw); }

/* ---------- En-tête ---------- */

.ep-home-hero {
  color: #fff;
  background: linear-gradient(90deg, rgba(28, 31, 22, .9) 0%, rgba(28, 31, 22, .72) 42%, rgba(28, 31, 22, .1) 100%), var(--ep-hero) center / cover no-repeat, var(--c-dark);
}
.ep-home-hero__wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; min-height: min(78vh, 640px); padding: 64px var(--ep-gut); }
.ep-home-hero__in { min-width: 0; max-width: 680px; }
.ep-home-hero__eyebrow { margin: 0 0 14px !important; color: #cfe7a8; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ep-home-hero__t { margin: 0 0 16px !important; color: #fff !important; font-size: clamp(32px, 4vw, 54px) !important; line-height: 1.06 !important; font-weight: 700 !important; letter-spacing: -.02em; }
.ep-home-hero__lead { max-width: 600px; margin: 0 0 24px !important; color: rgba(255, 255, 255, .9); font-size: 19px; }
.ep-home-search { display: flex; max-width: 620px; margin: 0 !important; padding: 6px; border-radius: 16px; background: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); }
.ep-home-search input[type="search"] { flex: 1; min-width: 0; height: 54px !important; padding: 0 16px !important; border: 0 !important; background: transparent !important; color: var(--c-text) !important; font-size: 17px !important; box-shadow: none !important; outline: none; }
.ep-home-search button { padding: 0 24px; border: 0; border-radius: 12px; background: var(--c-buy); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }
.ep-home-search button:hover { background: #229345; }
.ep-home-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 0 !important; }
.ep-home-hero__btns .ep-home-btn--main { background: #fff; color: var(--c-dark) !important; }
.ep-home-hero__btns .ep-home-btn--main:hover { background: #eef3e3; }
.ep-home-hero__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 0 !important; font-size: 14px; }
.ep-home-hero__top > span { color: rgba(255, 255, 255, .75); margin-right: 2px; }
.ep-home-hero__top a { padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff !important; text-decoration: none !important; backdrop-filter: blur(4px); transition: background .15s; }
.ep-home-hero__top a:hover { background: rgba(255, 255, 255, .22); }
.ep-home-hero__top b { color: #cfe7a8; }
.ep-home-hero__proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0 !important; padding: 0 !important; list-style: none; color: rgba(255, 255, 255, .8); font-size: 14px; }
.ep-home-hero__proof li { margin: 0 !important; }
.ep-home-hero__proof strong { color: #fff; }
.ep-home-hero__offer {
  align-self: end; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 200px; height: 200px; border-radius: 50%; background: var(--c-buy); color: #fff !important; text-align: center; text-decoration: none !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3); transform: rotate(-6deg); transition: transform .2s;
}
.ep-home-hero__offer:hover { transform: rotate(0) scale(1.04); }
.ep-home-hero__offer strong { font-size: 50px; line-height: 1; }
.ep-home-hero__offer span { padding: 0 18px; font-size: 14px; line-height: 1.25; }
.ep-home-hero__offer em { margin-top: 6px; font-style: normal; font-size: 13px; font-weight: 700; text-decoration: underline; }

/* Avantages, collés sous l'en-tête */
.ep-home-offers { background: var(--c-dark); }
.ep-home-offers__in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 var(--ep-gut); }
.ep-home-offers__in > div { display: flex; flex-direction: column; gap: 2px; padding: 22px 24px; border-left: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .8); font-size: 15px; line-height: 1.35; }
.ep-home-offers__in > div:first-child { border-left: 0; padding-left: 0; }
.ep-home-offers strong { color: #fff; font-size: 26px; line-height: 1.15; }
.ep-home-offers a { color: #cfe7a8 !important; }

/* ---------- Labels (bandeau compact, plus bas) ---------- */

.ep-home-labels { margin-top: 64px; background: var(--c-accent-bg); }
.ep-home-labels__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 30px var(--ep-gut); }
.ep-home-labels__head { max-width: 420px; }
.ep-home-labels__head h2 { margin-bottom: 6px !important; font-size: 24px !important; }
.ep-home-labels__head p { margin: 0 !important; color: #3a3d33; font-size: 15px; }
.ep-home-labels__list { display: flex; flex-wrap: wrap; gap: 26px; margin: 0 !important; padding: 0 !important; list-style: none; }
.ep-home-labels__list li { display: flex; align-items: center; gap: 10px; margin: 0 !important; }
.ep-home-labels__list img { width: auto; height: 56px; object-fit: contain; }
.ep-home-labels__list span:last-child { font-size: 13px; font-weight: 700; line-height: 1.2; }
.ep-home-labels__badge {
  display: flex !important; align-items: center; justify-content: center; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%;
  background: #2f6f3e; color: #fff !important; font-size: 12px !important; font-weight: 800 !important; line-height: 1.05 !important; text-align: center;
}
.ep-home-labels__badge--green { background: #3c8d2f; font-size: 11px !important; }
.ep-home-labels__badge--fr { background: linear-gradient(90deg, #1f3f95 33%, #fff 33% 66%, #d6252e 66%); color: var(--c-text) !important; }

/* ---------- Sections ---------- */

.ep-home-sec { margin-top: 56px; }
.ep-home-sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.ep-home-sec__head a { color: var(--c-dark); font-weight: 700; text-decoration: none; white-space: nowrap; }
.ep-home-sec__head a:hover { text-decoration: underline; }

/* Univers */
.ep-home-univ { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.ep-home-univ__item { flex: 0 0 calc((100% - 56px) / 5); }
.ep-home-univ__item {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 16px; border: 1px solid var(--c-line); border-radius: 18px; background: #fff;
  color: var(--c-text) !important; text-decoration: none !important; transition: transform .18s, box-shadow .18s;
}
.ep-home-univ__item:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(28, 31, 22, .1); }
.ep-home-univ__img { display: block; aspect-ratio: 4 / 3; margin-bottom: 8px; overflow: hidden; border-radius: 12px; background: var(--c-sand); }
.ep-home-univ__img img { width: 100%; height: 100%; object-fit: cover; }
.ep-home-univ__t { font-size: 15px; font-weight: 700; line-height: 1.25; }
.ep-home-univ__p { color: var(--c-muted); font-size: 13px; }
.ep-home-univ__p strong { color: var(--c-buy); font-size: 16px; }

/* Étapes */
.ep-home-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 !important; padding: 0 !important; list-style: none; counter-reset: ep-hs; }
.ep-home-steps li { position: relative; display: flex; flex-direction: column; gap: 4px; margin: 0 !important; padding: 56px 20px 20px; border: 1px solid var(--c-line); border-radius: 18px; background: #fff; counter-increment: ep-hs; }
.ep-home-steps li::before { content: counter(ep-hs); position: absolute; top: 18px; left: 20px; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c-dark); color: #fff; font-weight: 700; font-size: 14px; }
.ep-home-steps strong { font-size: 17px; }
.ep-home-steps span { color: #4a4d44; font-size: 15px; }

/* Pros */
.ep-home-pros__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ep-home-pros__grid a {
  display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 18px; background: var(--c-sand);
  color: var(--c-text) !important; text-decoration: none !important; transition: background .15s;
}
.ep-home-pros__grid a:hover { background: var(--c-accent-bg); }
.ep-home-pros__grid a strong::after { content: " →"; color: var(--c-accent); }
.ep-home-pros__grid span { color: #4a4d44; font-size: 15px; }

/* ---------- Textes SEO ---------- */

.ep-home-seo { margin-top: 64px; color: #3a3d33; }
.ep-home-seo h2 { margin: 0 0 12px !important; font-size: clamp(22px, 2.3vw, 28px) !important; }
.ep-home-seo h3 { margin: 0 0 8px !important; font-size: 17px !important; line-height: 1.3 !important; }
.ep-home-seo a { color: var(--c-dark); font-weight: 700; }
.ep-home-seo__block, .ep-home-seo__split, .ep-home-seo__cols--light, .ep-home-seo__local, .ep-home-seo__faq { margin-bottom: 44px; }
.ep-home-seo__block > p { max-width: 900px; }
.ep-home-seo__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.ep-home-seo__cols > div { padding: 22px; border: 1px solid var(--c-line); border-radius: 18px; background: #fff; font-size: 15px; }
.ep-home-seo__cols--light > div { background: var(--c-sand); border-color: transparent; }
.ep-home-seo__split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.ep-home-seo__split h2 + p { margin-bottom: 14px !important; }
.ep-home-seo__split h2:not(:first-child) { margin-top: 28px !important; }
.ep-home-seo details { margin: 0 0 10px; border: 1px solid var(--c-line); border-radius: 12px; background: #fff; }
.ep-home-seo summary { position: relative; padding: 14px 50px 14px 16px; color: var(--c-text); font-weight: 700; list-style: none; cursor: pointer; }
.ep-home-seo summary::-webkit-details-marker { display: none; }
.ep-home-seo summary::after {
  content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c-accent-bg); color: var(--c-dark); font-weight: 700;
}
.ep-home-seo details[open] summary::after { content: "–"; background: var(--c-dark); color: #fff; }
.ep-home-seo details p { padding: 0 16px; font-size: 15px; }
.ep-home-seo details p:last-child { padding-bottom: 14px; }
.ep-home-seo__local { padding: 26px 30px; border-radius: 20px; background: var(--c-accent-bg); }

/* Blog */
.ep-home-blog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ep-home-blog__item { display: flex; flex-direction: column; gap: 8px; color: var(--c-text) !important; text-decoration: none !important; }
.ep-home-blog__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 16px; background: var(--c-sand); }
.ep-home-blog__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ep-home-blog__item:hover img { transform: scale(1.04); }
.ep-home-blog__item strong { font-size: 17px; line-height: 1.3; }
.ep-home-blog__item span:last-child { color: var(--c-muted); font-size: 14px; }

/* Appel final */
.ep-home-final { margin-top: 64px; background: var(--c-dark); color: #fff; }
.ep-home-final__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding: 48px var(--ep-gut); }
.ep-home-final__in > div { max-width: 760px; }
.ep-home-final h2 { margin-bottom: 10px !important; color: #fff !important; font-size: 26px !important; }
.ep-home-final p { margin: 0 !important; color: rgba(255, 255, 255, .85); }
.ep-home-final__btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Tablette et téléphone ---------- */

@media (max-width: 1100px) {
  .ep-home-univ__item { flex-basis: calc((100% - 42px) / 4); }
  .ep-home-offers__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ep-home-offers__in > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .ep-home-steps, .ep-home-pros__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ep-home-labels__in { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  .ep-home { --ep-gut: 16px; padding: 0 12px; font-size: 15px; }
  .ep-home-bleed { width: calc(100% + 24px); margin-left: -12px; }
  .ep-home-hero { background: linear-gradient(180deg, rgba(28, 31, 22, .84), rgba(28, 31, 22, .92)), var(--ep-hero) center / cover no-repeat, var(--c-dark); }
  .ep-home-hero__wrap { grid-template-columns: 1fr; min-height: 0; padding: 30px var(--ep-gut) 28px; }
  .ep-home-hero__lead { font-size: 16px; }
  .ep-home-search button { padding: 0 14px; }
  .ep-home-hero__btns .ep-home-btn { flex: 1 1 auto; }
  .ep-home-hero__top { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(-1 * var(--ep-gut)) !important; padding-right: var(--ep-gut); scrollbar-width: none; }
  .ep-home-hero__top a, .ep-home-hero__top > span { flex: 0 0 auto; white-space: nowrap; }
  .ep-home-hero__offer { position: absolute; top: 16px; right: 14px; width: 92px; height: 92px; }
  .ep-home-hero__offer strong { font-size: 24px; }
  .ep-home-hero__offer span { padding: 0 8px; font-size: 10px; }
  .ep-home-hero__offer em { display: none; }
  .ep-home-hero__eyebrow { padding-right: 100px; }
  .ep-home-offers__in > div { padding: 16px 14px; }
  .ep-home-offers__in > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .ep-home-offers strong { font-size: 20px; }
  .ep-home-offers__in > div { font-size: 13px; }
  .ep-home-labels__list { gap: 16px 20px; }
  .ep-home-univ { gap: 10px; }
  .ep-home-univ__item { flex-basis: calc((100% - 10px) / 2); }
  .ep-home-sec { margin-top: 40px; }
  .ep-home-steps, .ep-home-pros__grid, .ep-home-seo__cols, .ep-home-seo__split, .ep-home-blog { grid-template-columns: 1fr; }
  .ep-home-seo__split { gap: 8px; }
  .ep-home-final__in { padding: 32px var(--ep-gut); }
  .ep-home-final__btns .ep-home-btn { flex: 1 1 auto; }

}

.ep-home .ep-assist { --c-alert: #c8321f; max-width: none; margin-top: 28px; }
.ep-home-offers + .ep-home-sec, .ep-home-sec + .ep-home-offers { margin-top: 48px; }

/* Client connecté : en-tête réduit, l'assistant de commande visible sans défiler */
.ep-home-hero.is-compact .ep-home-hero__wrap { min-height: 0; padding-top: 30px; padding-bottom: 28px; }
.ep-home-hero.is-compact .ep-home-hero__t { font-size: clamp(24px, 2.4vw, 32px) !important; margin-bottom: 12px !important; }
.ep-home-hero.is-compact .ep-home-hero__lead,
.ep-home-hero.is-compact .ep-home-hero__btns,
.ep-home-hero.is-compact .ep-home-hero__top { display: none; }
.ep-home-hero.is-compact .ep-home-hero__offer { width: 130px; height: 130px; }
.ep-home-hero.is-compact .ep-home-hero__offer strong { font-size: 32px; }
.ep-home-hero.is-compact .ep-home-hero__proof { margin-top: 12px !important; }
@media (max-width: 760px) {
  .ep-home-hero.is-compact .ep-home-hero__wrap { padding-top: 22px; padding-bottom: 20px; }
  .ep-home-hero.is-compact .ep-home-hero__offer { width: 84px; height: 84px; }
  .ep-home-hero.is-compact .ep-home-hero__offer strong { font-size: 20px; }
}
