/* ==========================================================================
   EYNSO · Accueil — page horizontale (rana-gorgani.com)
   Chargée seulement sur les pages qui contiennent la classe ep-home.
   Section : « ep ep-v2 ep-home ep-hpage » > piste « ep-hpage__track »
   > panneaux « ep-panel h-… ». Sur ordinateur les panneaux défilent de
   droite à gauche ; sur tablette et téléphone ils s'empilent.
   ========================================================================== */

.ep.ep-home { background-color: var(--ep-paper); }
.ep.ep-home .ep-panel {
  --padding-left: max(var(--ep-gutter), env(safe-area-inset-left, 0px), (var(--ep-vw, 100vw) - var(--ep-max)) / 2);
  --padding-right: max(var(--ep-gutter), env(safe-area-inset-right, 0px), (var(--ep-vw, 100vw) - var(--ep-max)) / 2);
  --padding-top: clamp(72px, 11vh, 130px); --padding-bottom: clamp(72px, 11vh, 130px);
}
.ep.ep-home.is-pinned .ep-panel { --padding-top: clamp(40px, 8vh, 96px); --padding-bottom: clamp(64px, 10vh, 110px); justify-content: center; --justify-content: center; }

/* Encre du trait peint pendant le défilement, panneau par panneau */
.ep.ep-home .ep-panel { --ep-line-ink: 13,12,10; }
.ep.ep-home .h-hero { --ep-line-ink: 242,240,233; }
.ep.ep-home .h-eynso { --ep-line-ink: 118,25,36; }
.ep.ep-home .h-activ { --ep-line-ink: 192,138,42; }
.ep.ep-home .h-oeuvres { --ep-line-ink: 43,84,176; }
.ep.ep-home .h-insta { --ep-line-ink: 118,25,36; }

/* Titres de l'extension ENSO Title : même encre que la charte */
.ep.ep-home .elementor-widget-enso_title { width: auto; max-width: 100%; }

/* -------------------------------------------------- 01 · Hero (reprend le hero v4) */
.ep.ep-home .ep-panel.ep-hero, .ep.ep-home .ep-panel.h-oeuvres { --padding-left: 0px; --padding-right: 0px; }
.ep.ep-home .ep-panel.h-hero { --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; --justify-content: stretch; justify-content: stretch; background-color: #121110; }
.ep.ep-home .ep-panel.h-hero > .ep-show-w { flex: 1 1 auto; }
.ep.ep-home .ep-panel.h-oeuvres { padding-inline: max(var(--ep-gutter), env(safe-area-inset-left, 0px)); }
.ep.ep-home .ep-hero .ep-hero__title { font-size: clamp(64px, 12vw, 230px); }
.ep.ep-home.is-pinned .ep-hero .ep-hero__title { font-size: clamp(64px, min(12vw, 22vh), 230px); }
.ep.ep-home.is-pinned .ep-hero > .ep-scrollhint a { flex-direction: row; gap: 14px; }
.ep.ep-home.is-pinned .ep-hero > .ep-scrollhint a::after { width: 46px; height: 1px; background: linear-gradient(to right, rgba(242, 240, 233, .9), transparent); animation: ep-slide-x 2.2s var(--ep-ease) infinite; }
@keyframes ep-slide-x { 0% { transform: scaleX(0); transform-origin: left; } 45% { transform: scaleX(1); transform-origin: left; } 55% { transform: scaleX(1); transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

/* -------------------------------------------------- 02 · EYNSO */
.ep.ep-home .h-eynso {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center;
  --column-gap: clamp(32px, 5.5vw, 110px); --row-gap: 40px;
  background-color: var(--ep-paper);
}
.ep.ep-home .h-figure img { width: 100%; max-width: none; aspect-ratio: 4 / 5; object-fit: cover; background: var(--ep-paper-2); }
.ep.ep-home.is-pinned .h-figure img { aspect-ratio: auto; height: min(68vh, 760px); }
.ep.ep-home .h-figure .widget-image-caption { margin-top: 10px; font-family: var(--ep-f-ui); font-size: 13px; color: var(--ep-muted); text-align: left; }
.ep.ep-home .h-text { --row-gap: clamp(14px, 2.4vh, 26px); }
.ep.ep-home .h-quote {
  --ep-mw: 23em;
  font-family: var(--ep-f-display); font-style: italic; font-weight: 500;
  font-size: clamp(24px, min(1.5vw + 12px, 3.6vh), 40px); line-height: 1.2; color: var(--ep-fg); text-wrap: balance;
}
.ep.ep-home .h-quote::after { content: ""; display: block; width: 56px; height: 2px; margin-top: clamp(16px, 2.6vh, 28px); background: var(--ep-carmin); }
.ep.ep-home .h-lead { font-family: var(--ep-f-display); font-weight: 600; font-size: clamp(22px, min(1vw + 14px, 3vh), 32px); line-height: 1.15; color: var(--ep-fg); }
.ep.ep-home .h-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); --column-gap: clamp(24px, 3vw, 48px); --row-gap: 16px; }
.ep.ep-home .h-cols .elementor-widget-text-editor, .ep.ep-home .h-small { font-size: clamp(16px, min(.3vw + 14px, 2.2vh), 19px); line-height: 1.6; }
@media (min-width: 2200px) { .ep.ep-home .h-cols .elementor-widget-text-editor { font-size: 21px; } }
@media (max-width: 899px) { .ep.ep-home .h-eynso, .ep.ep-home .h-cols { grid-template-columns: minmax(0, 1fr); } }
.ep.ep-home .e-con > .elementor-element.elementor-widget:is(.h-quote) { max-width: var(--ep-mw, 100%); }

/* -------------------------------------------------- 03 · Activations */
.ep.ep-home .h-activ {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center;
  --column-gap: clamp(32px, 5.5vw, 110px); --row-gap: 40px;
  background-color: var(--ep-sheet);
}
.ep.ep-home .h-activ .v2-h2 { font-size: clamp(40px, min(3.6vw + 12px, 9vh), 92px); }
.ep.ep-home .h-chips > .elementor-widget-container, .ep.ep-home .h-chips:not(:has(> .elementor-widget-container)) { display: flex; flex-wrap: wrap; gap: 10px; }
.ep.ep-home .h-chips p {
  display: inline-flex; align-items: center; min-height: 36px; padding: 4px 16px;
  border: 1px solid var(--ep-line); border-radius: 99px;
  font-family: var(--ep-f-ui); font-size: 14px; letter-spacing: .02em; color: var(--ep-fg);
}
.ep.ep-home .h-chips p + p { margin-top: 0; }
.ep.ep-home .h-activ .ep-enso { width: min(100%, 560px); }
.ep.ep-home.is-pinned .h-activ .ep-enso { width: min(100%, 66vh, 760px); }
@media (max-width: 899px) { .ep.ep-home .h-activ { grid-template-columns: minmax(0, 1fr); } .ep.ep-home .h-activ > .ep-enso-w { order: -1; } }

/* -------------------------------------------------- 04 · Œuvres */
.ep.ep-home .h-oeuvres { --ep-card-bg: var(--ep-paper-2); --row-gap: 36px; background-color: var(--ep-paper-2); }
.ep.ep-home .h-oeuvres__head { --row-gap: 16px; max-width: 560px; }
.ep.ep-home .h-oeuvres__head .elementor-widget-text-editor { max-width: 26em; }
.ep.ep-home .h-oeuvres__end { --row-gap: 18px; align-items: flex-start; --align-items: flex-start; }
.ep.ep-home.is-pinned .h-oeuvres {
  --flex-direction: row; flex-direction: row; align-items: center; --align-items: center;
  --column-gap: clamp(48px, 5vw, 110px);
}
.ep.ep-home.is-pinned .h-oeuvres__head { flex: 0 0 auto; width: clamp(300px, 26vw, 440px); }
.ep.ep-home.is-pinned .h-oeuvres > .ep-oeuvres-w { flex: 0 0 auto; width: auto; max-width: none; }
.ep.ep-home.is-pinned .h-oeuvres__end { flex: 0 0 auto; width: clamp(240px, 20vw, 340px); }
.ep.ep-home:not(.is-pinned) .h-oeuvres > .ep-oeuvres-w { margin-inline: calc(-1 * max(var(--ep-gutter), env(safe-area-inset-left, 0px))); }
.ep.ep-home:not(.is-pinned) .h-oeuvres .ep-cards { padding-inline: max(var(--ep-gutter), env(safe-area-inset-left, 0px)); scroll-padding-inline: max(var(--ep-gutter), env(safe-area-inset-left, 0px)); }

/* -------------------------------------------------- 05 · Instagram */
.ep.ep-home .h-insta {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr); align-items: center;
  --column-gap: clamp(20px, 3vw, 56px); --row-gap: 36px;
  background-color: var(--ep-paper);
}
.ep.ep-home .h-mosaic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); --column-gap: 10px; --row-gap: 10px; }
.ep.ep-home .h-mosaic img { width: 100%; max-width: none; aspect-ratio: 1 / 1; object-fit: cover; background: var(--ep-paper-2); transition: transform .9s var(--ep-ease-out), filter .5s; }
.ep.ep-home .h-mosaic a { display: block; overflow: hidden; }
.ep.ep-home .h-mosaic a:hover img, .ep.ep-home .h-mosaic a:focus-visible img { transform: scale(1.05); }
.ep.ep-home .h-mosaic--b { transform: translateY(clamp(18px, 4vh, 48px)); }
.ep.ep-home .h-insta__center { --align-items: center; align-items: center; text-align: center; --row-gap: 14px; }
.ep.ep-home .h-insta__center .v2-h2 { font-size: clamp(40px, min(3.4vw + 8px, 8vh), 84px); }
.ep.ep-home .h-handle { font-family: var(--ep-f-display); font-style: italic; font-size: clamp(22px, 1vw + 14px, 30px); color: var(--ep-carmin); }
.ep.ep-home .h-insta__center .elementor-widget-text-editor { max-width: 24em; }
@media (max-width: 899px) {
  .ep.ep-home .h-insta { grid-template-columns: minmax(0, 1fr); }
  .ep.ep-home .h-insta__center { order: -1; }
  .ep.ep-home .h-mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); --column-gap: 6px; }
  .ep.ep-home .h-mosaic--b { transform: none; }
}

/* -------------------------------------------------- 06 · Newsletter */
.ep.ep-home .h-news { --align-items: center; align-items: center; text-align: center; --row-gap: 20px; background-color: var(--ep-sheet); isolation: isolate; }
.ep.ep-home .h-news > .elementor-element { position: relative; z-index: 1; }
.ep.ep-home .h-news > .h-news__enso {
  position: absolute; left: 50%; top: 50%; z-index: 0;
  width: min(92vw, 86vh, 820px); max-width: none; transform: translate(-50%, -50%); pointer-events: none;
}
.ep.ep-home .h-news > .h-news__enso .ep-enso { width: 100%; }
.ep.ep-home .h-news .elementor-widget-text-editor { max-width: 34em; }
.ep.ep-home .h-news > .ep-nl-w { width: 100%; margin-top: 10px; }
