/* ==========================================================================
   1.10.0 — Accueil : hero éditorial et « L'esprit derrière les idées »
   ========================================================================== */

.el-h-hero,
.el-h-mind {
  --el-h-gutter: var(--el-gutter);
  --el-h-max: var(--el-wide);
  --el-h-ease: cubic-bezier(.2, .7, .2, 1);
  font-family: var(--wp--preset--font-family--manrope, sans-serif);
}

/* ---------- Hero ---------- */
.el-h-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, calc(100svh - var(--el-hd-h, 68px) - 28px - 72px), 860px);
  padding: clamp(1.5rem, 4vw, 3rem) var(--el-h-gutter) clamp(3.5rem, 6vw, 5rem);
  background: var(--el-ivory);
  overflow: hidden;
}

.el-h-wrap {
  width: 100%;
  max-width: var(--el-h-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.el-h-kicker-brand {
  margin-bottom: 1.15rem !important;
}
.el-h-kicker-brand span {
  color: var(--el-navy);
  font-weight: 800;
}

.el-h-title {
  margin: 0 0 clamp(1.75rem, 3.5vw, 2.75rem);
  font-family: var(--wp--preset--font-family--newsreader, Georgia, serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 4.3vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--el-navy);
}
.el-h-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.el-h-line > span { display: block; }
.el-h-line--accent > span {
  font-style: italic;
  font-weight: 400;
  color: var(--el-copper-text);
}

.el-h-body { max-width: 56ch; }
.el-h-lead {
  position: relative;
  margin: 0 0 1rem;
  padding-left: 1.4rem;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.65;
  color: var(--el-navy);
}
.el-h-lead::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  bottom: 0.45em;
  width: 2px;
  background: linear-gradient(var(--el-copper), rgba(196, 106, 57, 0));
}
.el-h-welcome {
  margin: 0 0 2rem;
  padding-left: 1.4rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--el-slate-text);
}
.el-h-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; padding-left: 1.4rem; }

/* Visuel : panneau bleu nuit à motif, portrait en arche, promesse */
.el-h-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 410px);
  padding: 0 0 3.25rem 2.5rem;
}
.el-h-panel {
  position: absolute;
  top: 16%;
  right: -2.75rem;
  bottom: 1.5rem;
  left: 34%;
  border-radius: 28px;
  background-color: var(--el-navy);
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56' fill='none' stroke='%23D98552' stroke-width='1'><path d='M28 8 L40 20 L28 32 L16 20 Z'/><circle cx='28' cy='20' r='1.6' fill='%23D98552' stroke='none'/><path d='M0 46 L7 40 L14 46 L21 40 L28 46 L35 40 L42 46 L49 40 L56 46'/></svg>");
  background-size: 56px 56px;
  background-blend-mode: normal;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.el-h-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(23, 36, 51, 0.55), rgba(23, 36, 51, 0.92) 60%);
}
.el-h-portrait {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 18px 18px;
  overflow: hidden;
  background: var(--el-soft-ivory);
  box-shadow: 0 30px 60px rgba(23, 36, 51, 0.18);
}
.el-h-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  filter: url(#el-duotone);
}
.el-h-promise {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(80%, 330px);
  padding: 1.15rem 1.25rem 1.2rem;
  background: rgba(248, 246, 241, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(23, 36, 51, 0.08);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(23, 36, 51, 0.14);
}
.el-h-promise-k {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--el-copper-text);
}
.el-h-promise-k::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.el-h-promise-q {
  margin: 0;
  font: italic 400 1rem/1.5 var(--wp--preset--font-family--newsreader, Georgia, serif);
  color: var(--el-navy);
}

/* Entrée : les lignes du titre montent, le portrait se découvre */
@media (prefers-reduced-motion: no-preference) {
  .el-h-line > span { animation: el-h-rise 0.9s var(--el-h-ease) both; }
  .el-h-line:nth-child(2) > span { animation-delay: 0.1s; }
  .el-h-line:nth-child(3) > span { animation-delay: 0.2s; }
  .el-h-body { animation: el-h-fade 0.9s 0.35s var(--el-h-ease) both; }
  .el-h-portrait { animation: el-h-unveil 1.1s 0.15s var(--el-h-ease) both; }
  .el-h-panel { animation: el-h-fade 1s 0.05s ease both; }
  .el-h-promise { animation: el-h-fade 0.9s 0.6s var(--el-h-ease) both; }
}
@keyframes el-h-rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes el-h-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes el-h-unveil { from { clip-path: inset(100% 0 0 0 round 999px 999px 18px 18px); } to { clip-path: inset(0 0 0 0 round 999px 999px 18px 18px); } }

/* ---------- L'esprit derrière les idées ---------- */
.el-h-mind {
  position: relative;
  z-index: 1;
  margin-top: -28px;
  padding: clamp(4rem, 8vw, 7rem) var(--el-h-gutter) clamp(4rem, 7vw, 6rem);
  background: var(--el-navy);
  color: var(--el-ivory);
  border-radius: 28px 28px 0 0;
}
.el-h-mind-wrap {
  max-width: var(--el-h-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.el-h-mind-head { position: sticky; top: calc(var(--el-hd-h, 68px) + 48px); }
.el-h-kicker {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--el-copper-light);
}
.el-h-mind-title {
  margin: 0 0 2rem;
  font: 500 clamp(2.3rem, 4.2vw, 3.8rem)/1.04 var(--wp--preset--font-family--newsreader, Georgia, serif);
  letter-spacing: -0.03em;
  color: var(--el-ivory);
  text-wrap: balance;
}
.el-h-mind .el-h-mind-text p {
  margin: 0 0 1.5rem;
  font-family: var(--wp--preset--font-family--newsreader, Georgia, serif) !important;
  font-size: clamp(1.3rem, 2vw, 1.75rem) !important;
  font-weight: 400;
  line-height: 1.45 !important;
  letter-spacing: -0.01em;
  color: var(--el-ivory);
}
.el-h-mind .el-h-mind-text p:last-child { margin-bottom: 0; }
.el-h-mind .el-reveal-text.is-revealing .el-w { color: rgba(248, 246, 241, 0.22); }
.el-h-mind .el-reveal-text.is-revealing .el-w.is-lit { color: var(--el-ivory); }

/* Ligne du parcours : quatre secteurs, du premier à aujourd'hui */
.el-h-path {
  position: relative;
  max-width: var(--el-h-max);
  margin: clamp(3.5rem, 7vw, 6rem) auto 0;
  padding: 2.25rem 0 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
.el-h-path::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(248, 246, 241, 0.18), var(--el-copper-light));
  transform-origin: left;
}
.el-h-path li { position: relative; display: grid; align-content: start; gap: 0.35rem; margin: 0; }
.el-h-path-dot {
  position: absolute;
  top: calc(-2.25rem - 6px);
  left: 0;
  width: 11px;
  height: 11px;
  background: var(--el-navy);
  border: 1.5px solid rgba(248, 246, 241, 0.55);
  transform: rotate(45deg);
}
.el-h-path li.is-now .el-h-path-dot { background: var(--el-copper-light); border-color: var(--el-copper-light); }
.el-h-path li.is-now .el-h-path-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid var(--el-copper-light);
  opacity: 0;
}
.el-h-path-n { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; color: rgba(248, 246, 241, 0.55); }
.el-h-path-t { font: 500 clamp(1.15rem, 1.6vw, 1.45rem)/1.2 var(--wp--preset--font-family--newsreader, Georgia, serif); color: var(--el-ivory); }
.el-h-path-now {
  justify-self: start;
  margin-top: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(217, 133, 82, 0.16);
  color: var(--el-copper-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* La ligne se dessine quand elle arrive à l'écran (JavaScript actif seulement) */
html.el-motion .el-h-path::before { transform: scaleX(0); transition: transform 1.4s var(--el-h-ease); }
html.el-motion .el-h-path li { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s var(--el-h-ease); transition-delay: calc(0.25s + var(--i) * 0.28s); }
html.el-motion .el-h-path.is-in::before { transform: none; }
html.el-motion .el-h-path.is-in li { opacity: 1; transform: none; }
html.el-motion .el-h-path.is-in li.is-now .el-h-path-dot::after { animation: el-h-pulse 2.4s 1.6s ease-out infinite; }
@keyframes el-h-pulse { 0% { opacity: 0.9; transform: scale(0.6); } 100% { opacity: 0; transform: scale(1.6); } }

/* ---------- Tablette et mobile ---------- */
@media (max-width: 960px) {
  .el-h-hero { min-height: 0; padding-top: 1rem; }
  .el-h-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .el-h-title { font-size: clamp(2.3rem, 7.4vw, 4rem); }
  .el-h-visual { justify-self: center; width: min(100%, 400px); }
  .el-h-mind-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .el-h-mind-head { display: contents; }
  .el-h-mind-title { margin-bottom: 0; }
  .el-h-mind-text { order: 2; }
  .el-h-mind-head .wp-block-buttons { order: 3; }
}
@media (max-width: 960px) {
  .el-h-mind-wrap { display: flex; flex-direction: column; }
}
@media (max-width: 560px) {
  .el-h-lead, .el-h-welcome, .el-h-ctas { padding-left: 0; }
  .el-h-lead::before { display: none; }
  .el-h-visual { padding-left: 1.25rem; padding-bottom: 4.5rem; }
  .el-h-panel { right: -1.25rem; }
}

/* Ligne de parcours verticale sur tablette et téléphone (2.1.2) */
@media (max-width: 960px) {
  .el-h-path { grid-template-columns: 1fr; padding-top: 0; padding-left: 1.75rem; gap: 1.75rem; }
  .el-h-path::before { top: 0; bottom: 0; left: 5px; right: auto; width: 1px; height: auto; background: linear-gradient(rgba(248, 246, 241, 0.18), var(--el-copper-light)); transform-origin: top; }
  .el-h-path-dot { top: 0.35rem; left: calc(-1.75rem); }
  html.el-motion .el-h-path::before { transform: scaleY(0); }
  html.el-motion .el-h-path.is-in::before { transform: none; }
}
