/* ============================================================================
   MonHaras — Landing éleveurs (/decouvrir-eleveurs), refonte d'octobre 2026.
   Préfixe : eld-. Feuille autonome, chargée par presentation-eleveurs.php.

   Parti pris : UNE grande scène 3D (l'écran du héros, qui se redresse) et des
   maquettes de l'interface en relief, révélées une fois à l'entrée. Pas de
   bandeau défilant, pas de scène épinglée, pas de défilement détourné.

   Garde-fous contre les superpositions :
     - chaque section est un contexte d'empilement isolé (isolation) et coupe
       ce qui dépasse (overflow: clip) : une maquette inclinée ne déborde
       jamais sur la section voisine ;
     - les éléments flottants autour des maquettes restent DANS le rembourrage
       de leur cadre, et les pastilles du héros n'existent qu'au-dessus de
       1100 px, là où la marge latérale les accueille ;
     - le sommaire collant se cale SOUS l'en-tête du site (--header-h), et les
       ancres réservent sa hauteur (scroll-margin-top).
   ========================================================================= */

.eld {
  --n0: #0A1222;
  --n1: #0E192F;
  --n2: #142240;
  --n3: #1B2A4A;
  --gold: #C8973F;
  --gold2: #E2B45C;
  --amber: #E2793A;          /* l'orange du film de présentation */
  --cream: #F7F1E6;
  --tx: #EEF2F8;
  --tx2: rgba(238, 242, 248, .80);
  --tx3: rgba(238, 242, 248, .60);
  --line: rgba(255, 255, 255, .10);
  --glass: rgba(255, 255, 255, .05);
  --ink: #16213A;            /* texte des maquettes et de la section claire */
  --ink2: #5A6478;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --nav-h: 56px;

  position: relative;
  background: var(--n0);
  color: var(--tx);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
.eld *, .eld *::before, .eld *::after { box-sizing: border-box; }
.eld :where(p, h1, h2, h3, h4, ul, ol, figure, figcaption, dl, dd) { margin: 0; padding: 0; }
.eld :where(ul, ol) { list-style: none; }
.eld a { color: inherit; }

/* style.css impose une encre sombre aux titres : illisible sur la nuit. */
.eld h1, .eld h2, .eld h3, .eld h4, .eld summary { color: #fff; }

.eld-wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.eld-sec {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(64px, 9vw, 120px);
  scroll-margin-top: calc(var(--header-h, 70px) + var(--nav-h));
}

/* ---------- Typographie ---------- */
.eld-kicker {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold2);
}
.eld-kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.eld-h1 {
  font-family: Fraunces, Georgia, serif; font-weight: 600;
  font-size: clamp(2.3rem, 5.6vw, 4.4rem); line-height: 1.04; letter-spacing: -.02em;
  text-wrap: balance;
}
.eld-h1 em, .eld-h2 em { font-style: italic; color: var(--gold2); }
.eld-h2 {
  font-family: Fraunces, Georgia, serif; font-weight: 600;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.1; letter-spacing: -.015em;
  text-wrap: balance;
}
.eld-lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--tx2); max-width: 60ch; text-wrap: pretty; }
.eld-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.eld-head--c { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- Boutons ---------- */
.eld-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.eld-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-weight: 650; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
}
.eld-btn--gold {
  background: linear-gradient(180deg, #E9BE69, var(--gold));
  color: #1A1408 !important;
  box-shadow: 0 10px 30px -8px rgba(226, 180, 92, .55), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.eld-btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(226, 180, 92, .7), inset 0 1px 0 rgba(255, 255, 255, .45); }
.eld-btn--ghost { border: 1px solid rgba(255, 255, 255, .22); color: #fff !important; background: rgba(255, 255, 255, .04); }
.eld-btn--ghost:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }
.eld-btn:focus-visible { outline: 3px solid var(--gold2); outline-offset: 3px; }
.eld-btn--sm { min-height: 40px; padding: 0 18px; font-size: .92rem; }

/* ---------- Révélations (une fois, à l'entrée) ----------
   Masquées seulement sous .eld--anim, posée par le script : sans lui, tout
   est visible. */
.eld--anim .eld-rv {
  opacity: 0; transform: translate3d(0, 28px, 0);
  transition: opacity .7s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.eld--anim .eld-rv.is-in { opacity: 1; transform: none; }
.eld--anim .eld-rv.is-instant { transition: none !important; }

/* ══════════════════════════════════ HÉROS ══════════════════════════════════ */
.eld-hero {
  position: relative; isolation: isolate; overflow: clip;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 7vw, 96px);
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(226, 180, 92, .16), transparent 70%),
    radial-gradient(45% 40% at 85% 30%, rgba(226, 121, 58, .12), transparent 70%),
    radial-gradient(45% 40% at 10% 40%, rgba(70, 110, 190, .16), transparent 70%),
    linear-gradient(180deg, var(--n1), var(--n0));
}
/* Sol en perspective : un quadrillage fin qui fuit vers l'horizon. Statique
   (animer un background-position repeindrait la zone à chaque image). */
.eld-hero__floor {
  position: absolute; z-index: -1; left: -40%; right: -40%; bottom: 0; height: 70%;
  background-image:
    linear-gradient(rgba(226, 180, 92, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 180, 92, .16) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(700px) rotateX(64deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .5) 40%, transparent 85%);
          mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .5) 40%, transparent 85%);
  pointer-events: none;
}
.eld-hero__copy { display: grid; justify-items: center; gap: 22px; }
.eld-hero__copy > * { animation: eldRise .9s var(--ease) both; }
.eld-hero__copy > :nth-child(2) { animation-delay: .08s; }
.eld-hero__copy > :nth-child(3) { animation-delay: .16s; }
.eld-hero__copy > :nth-child(4) { animation-delay: .24s; }
.eld-hero__copy > :nth-child(5) { animation-delay: .32s; }
.eld-hero .eld-lead { margin-inline: auto; }
.eld-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px;
  border-radius: 999px; border: 1px solid rgba(226, 180, 92, .35); background: rgba(226, 180, 92, .08);
  font-size: .86rem; color: var(--tx);
}
.eld-badge b { flex: none; white-space: nowrap; background: var(--gold2); color: #1A1408; border-radius: 999px; padding: 2px 9px; font-size: .74rem; letter-spacing: .04em; }
.eld-assur { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: .9rem; color: var(--tx3); }
.eld-assur li { display: inline-flex; align-items: center; gap: 7px; }
.eld-assur li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none;
  background: rgba(226, 180, 92, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23E2B45C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* Scène 3D : l'écran se redresse au défilement (--k : 0 → 1, posé en JS). */
.eld-stage {
  position: relative; margin: clamp(40px, 6vw, 72px) auto 0; max-width: 1060px;
  perspective: 1600px; perspective-origin: 50% 0%;
  animation: eldRise 1s .3s var(--ease) both;
}
.eld-screen {
  --k: 0;
  position: relative; z-index: 1;
  border-radius: 18px; padding: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(0, 0, 0, .2), 0 0 80px -20px rgba(226, 180, 92, .25);
  transform-origin: 50% 0%;
  transform: rotateX(calc((1 - var(--k)) * 22deg)) scale(calc(.9 + var(--k) * .1));
  will-change: transform;
}
.eld-screen__bar { display: flex; align-items: center; gap: 6px; padding: 4px 6px 10px; }
.eld-screen__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.eld-screen__bar span {
  margin-left: 10px; padding: 3px 14px; border-radius: 999px; background: rgba(0, 0, 0, .25);
  font-size: .74rem; color: var(--tx3); letter-spacing: .02em;
}
.eld-screen__media { position: relative; border-radius: 10px; overflow: hidden; background: #0B1426; aspect-ratio: 16 / 9; }
.eld-screen__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.eld-sound {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(10, 18, 34, .78); color: #fff; font: 600 .86rem Inter, system-ui, sans-serif;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  transition: background-color .2s;
}
.eld-sound:hover { background: rgba(10, 18, 34, .95); }
.eld-sound:focus-visible { outline: 3px solid var(--gold2); outline-offset: 2px; }
.eld-sound svg { width: 18px; height: 18px; }
.eld-stage__cap { margin-top: 18px; font-size: .9rem; color: var(--tx3); }

/* Pastilles flottantes autour de l'écran : grands écrans seulement. */
.eld-pop {
  position: absolute; z-index: 2; display: none;
  align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: #fff; color: var(--ink); font-size: .84rem; font-weight: 600; text-align: left;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55);
  animation: eldFloat 6s ease-in-out infinite;
}
.eld-pop small { display: block; font-weight: 500; color: var(--ink2); font-size: .76rem; }
.eld-pop .eld-ico { flex: none; }
.eld-pop--a { left: -70px; top: 22%; }
.eld-pop--b { right: -64px; top: 46%; animation-delay: -2s; }
.eld-pop--c { left: -40px; bottom: 6%; animation-delay: -4s; }
@media (min-width: 1240px) { .eld-pop { display: inline-flex; } }

/* ---------- Icônes rondes (pastilles, listes) ---------- */
.eld-ico {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  font-size: 15px; line-height: 1; background: #F3EBDD;
}
.eld-ico--g { background: #E4F2E9; }
.eld-ico--b { background: #E6ECF7; }
.eld-ico--o { background: #FBE7DA; }

/* ═════════════════════════ CE QUE LA PAGE REMPLACE ═════════════════════════ */
.eld-replace { padding-block: clamp(48px, 6vw, 72px); background: var(--n0); border-top: 1px solid var(--line); }
.eld-replace__in { display: grid; gap: 22px; justify-items: center; text-align: center; }
.eld-replace__t { font-size: .95rem; color: var(--tx3); }
.eld-strikes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; }
.eld-strikes li {
  position: relative; padding: 8px 16px; border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, .2); color: var(--tx2); font-size: .95rem;
}
/* Le trait de rature se pose de gauche à droite, une fois. */
.eld-strikes li::after {
  content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 2px;
  background: var(--amber); border-radius: 2px;
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .5s var(--ease) var(--d, 0s);
}
.eld-strikes.is-in li::after, .eld:not(.eld--anim) .eld-strikes li::after { transform: scaleX(1); }
.eld-strikes.is-in li { color: var(--tx3); transition: color .4s var(--d, 0s); }
.eld-replace__to { font-family: Fraunces, Georgia, serif; font-size: clamp(1.4rem, 2.6vw, 2rem); color: #fff; }
.eld-replace__to em { color: var(--gold2); }

/* ═══════════════════════════════ SOMMAIRE COLLANT ═══════════════════════════ */
.eld-nav {
  position: sticky; top: var(--header-h, 70px); z-index: 30;
  height: var(--nav-h);
  background: rgba(10, 18, 34, .94);
  border-block: 1px solid var(--line);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  @media (min-width: 900px) {
    .eld-nav { background: rgba(10, 18, 34, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  }
}
.eld-nav__in { display: flex; align-items: center; gap: 16px; height: 100%; }
.eld-nav__track {
  flex: 1; min-width: 0; height: 100%;
  display: flex; align-items: center; overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent);
}
.eld-nav__track::-webkit-scrollbar { display: none; }
.eld-nav__track ul { display: flex; gap: 4px; padding-inline: 12px; }
.eld-nav__track a {
  display: block; padding: 7px 13px; border-radius: 999px; white-space: nowrap;
  font-size: .88rem; font-weight: 550; color: var(--tx3); text-decoration: none;
  transition: color .2s, background-color .2s;
}
.eld-nav__track a:hover { color: #fff; }
.eld-nav__track a[aria-current] { color: #1A1408; background: var(--gold2); }
.eld-nav .eld-btn { flex: none; }
@media (max-width: 899px) { .eld-nav .eld-btn { display: none; } }

/* ════════════════════════════════ CHAPITRES ════════════════════════════════ */
.eld-chap { background: var(--n0); }
.eld-chap:nth-of-type(even) { background: linear-gradient(180deg, var(--n0), var(--n1) 50%, var(--n0)); }
.eld-chap__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(36px, 6vw, 80px); align-items: center;
}
.eld-chap--flip .eld-chap__copy { order: 2; }
.eld-chap__copy { display: grid; gap: 18px; align-content: start; }
.eld-chap__num { font: 600 .82rem Inter, sans-serif; letter-spacing: .12em; color: var(--tx3); }
.eld-chap__num b { color: var(--gold2); font-weight: 700; }
.eld-tag {
  justify-self: start; display: inline-flex; gap: 6px; align-items: center;
  padding: 4px 11px; border-radius: 999px; font-size: .78rem; font-weight: 650;
  background: rgba(111, 191, 140, .14); color: #9FE0B5; border: 1px solid rgba(111, 191, 140, .3);
}
.eld-tag--sub { background: rgba(226, 180, 92, .12); color: var(--gold2); border-color: rgba(226, 180, 92, .35); }

.eld-checks { display: grid; gap: 12px; margin-top: 4px; }
.eld-checks li { position: relative; padding-left: 32px; color: var(--tx2); }
.eld-checks li b { color: #fff; font-weight: 650; }
.eld-checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 6px;
  background: rgba(226, 180, 92, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23E2B45C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* ---------- Maquettes en relief ----------
   .eld-visual  : la perspective + le conteneur de requête (unités cqw) ;
   .eld-mock    : l'entrée (une rotation qui se pose, une fois) ;
   .eld-rig     : l'inclinaison de repos + celle du pointeur (--tx/--ty) ;
   .eld-ui      : la carte d'interface elle-même (coupe son contenu) ;
   .eld-float   : des éléments en avant-plan (translateZ), DANS le cadre. */
.eld-visual {
  position: relative; container-type: inline-size;
  perspective: 1400px;
  padding: clamp(18px, 4%, 36px);
}
.eld-mock { transform-style: preserve-3d; }
.eld--anim .eld-mock.eld-rv { transform: rotateY(-26deg) rotateX(14deg) translate3d(0, 40px, -80px); transition-duration: .7s, 1.1s; }
.eld--anim .eld-mock.eld-rv.is-in { transform: none; }
.eld-rig {
  --rx: 7deg; --ry: -11deg; --tx: 0deg; --ty: 0deg;
  position: relative; transform-style: preserve-3d;
  transform: rotateX(calc(var(--rx) + var(--ty))) rotateY(calc(var(--ry) + var(--tx)));
  transition: transform .45s var(--ease);
}
.eld-chap--flip .eld-rig { --ry: 11deg; }
.eld-ui {
  position: relative; overflow: hidden;
  background: #FBF9F5; color: var(--ink);
  border-radius: clamp(12px, 2.6cqw, 20px);
  font-size: clamp(10.5px, 2.35cqw, 14px); line-height: 1.45;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06);
}
.eld-ui::after { /* reflet qui suit le pointeur */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(40% 40% at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .35), transparent 70%);
  transition: opacity .3s;
}
.eld-visual:hover .eld-ui::after { opacity: 1; }
.eld-float {
  position: absolute; z-index: 2;
  transform: translateZ(60px);
  background: #fff; color: var(--ink); border-radius: 12px;
  font-size: clamp(10px, 2.2cqw, 13px); line-height: 1.35;
  padding: .8em 1em; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .65);
  display: flex; align-items: center; gap: .7em; white-space: nowrap;
}
.eld-float small { display: block; color: var(--ink2); font-size: .86em; }
/* Posées AU-DESSUS ou AU-DESSOUS de la carte, ne mordant que sur son
   bord (12 px) : elles ne cachent jamais une pastille ni une ligne de la
   maquette. .eld-visual leur réserve la hauteur dans son rembourrage, pour
   qu'elles ne débordent pas non plus sur le texte voisin. */
.eld-float--tr, .eld-float--tl { bottom: calc(100% - 12px); }
.eld-float--br, .eld-float--bl { top: calc(100% - 12px); }
.eld-float--tr, .eld-float--br { right: -3%; }
.eld-float--tl, .eld-float--bl { left: -3%; }
.eld-visual:has(.eld-float--tr, .eld-float--tl) { padding-top: clamp(48px, 4.5vw, 64px); }
.eld-visual:has(.eld-float--br, .eld-float--bl) { padding-bottom: clamp(48px, 4.5vw, 64px); }
.eld-float .eld-ico { width: 2.3em; height: 2.3em; font-size: 1.1em; border-radius: .7em; }

/* Barre de titre d'une maquette */
.eld-ui__top {
  display: flex; align-items: center; gap: .8em; padding: .9em 1.2em;
  background: #fff; border-bottom: 1px solid #EEE6D8;
}
.eld-ui__top b { font-family: Fraunces, Georgia, serif; font-size: 1.15em; }
.eld-ui__top .eld-pill { margin-left: auto; }
.eld-ui__body { padding: 1.1em 1.2em 1.3em; display: grid; gap: .8em; }
.eld-pill {
  display: inline-flex; align-items: center; gap: .35em; padding: .25em .7em; border-radius: 999px;
  font-size: .82em; font-weight: 650; white-space: nowrap; background: #F3EBDD; color: #7A5A22;
}
.eld-pill--g { background: #E2F3E8; color: #1E7A4B; }
.eld-pill--o { background: #FCE6D7; color: #A84B14; }
.eld-pill--b { background: #E6ECF7; color: #2C4A80; }
.eld-pill--r { background: #FBE4E1; color: #A32D20; }
.eld-row {
  display: flex; align-items: center; gap: .8em; padding: .7em .85em;
  background: #fff; border: 1px solid #EEE6D8; border-radius: .8em; min-width: 0;
}
/* Seul le libellé prend la place libre : pastilles, montants et boutons
   gardent leur largeur naturelle. */
.eld-row > span:not(.eld-ico):not(.eld-pill):not(.eld-amt):not(.eld-btnui) { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eld-row > .eld-pill, .eld-row > .eld-btnui, .eld-row > .eld-amt { flex: none; }
.eld-row small { display: block; color: var(--ink2); font-size: .85em; overflow: hidden; text-overflow: ellipsis; }
.eld-row .eld-amt { margin-left: auto; font-weight: 700; white-space: nowrap; }
.eld-row .eld-ico { width: 2.2em; height: 2.2em; font-size: 1.05em; border-radius: .7em; }
.eld-mini { font-size: .8em; color: var(--ink2); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.eld-btnui {
  display: inline-flex; align-items: center; justify-content: center; padding: .55em 1em; border-radius: .7em;
  background: var(--amber); color: #fff; font-weight: 700; font-size: .9em; white-space: nowrap;
}
.eld-btnui--n { background: var(--n3); }

/* Fiche cheval */
.eld-horse { display: flex; gap: 1em; align-items: center; }
.eld-horse__ph {
  flex: none; width: 4.2em; height: 4.2em; border-radius: 1em;
  display: grid; place-items: center; font-size: 1.7em;
  background: linear-gradient(135deg, #E9D5AE, #C8973F);
}
.eld-horse h4 { font-family: Fraunces, Georgia, serif; font-size: 1.3em; color: var(--ink) !important; }
.eld-horse p { color: var(--ink2); font-size: .92em; }
.eld-tabs { display: flex; gap: .4em; flex-wrap: wrap; }
.eld-tabs span { padding: .35em .8em; border-radius: 999px; font-size: .85em; font-weight: 600; color: var(--ink2); background: #F1ECE3; }
.eld-tabs span:first-child { background: var(--n3); color: #fff; }

/* Anneau de gestation (le remplissage se joue à l'entrée) */
.eld-gest { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 1.2em; align-items: center; }
.eld-ring { position: relative; width: 9.5em; height: 9.5em; }
.eld-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.eld-ring circle { fill: none; stroke-width: 10; }
.eld-ring .t { stroke: #EFE6D6; }
.eld-ring .f {
  stroke: url(#eldGold); stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.6s var(--ease) .35s;
}
.eld-mock.is-in .eld-ring .f, .eld:not(.eld--anim) .eld-ring .f { stroke-dashoffset: 38; }
.eld-ring__in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.eld-ring__in b { font-family: Fraunces, Georgia, serif; font-size: 2.1em; line-height: 1; }
.eld-ring__in small { color: var(--ink2); font-size: .8em; }
.eld-miles { display: grid; gap: .45em; }
.eld-miles li { display: flex; align-items: center; gap: .55em; font-size: .92em; }
.eld-miles i { width: .7em; height: .7em; border-radius: 50%; background: #D9CCB4; flex: none; }
.eld-miles .ok i { background: #1E7A4B; }
.eld-miles .next i { background: var(--amber); box-shadow: 0 0 0 .3em rgba(226, 121, 58, .2); }

/* Mini-arbre généalogique */
.eld-tree { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5em; align-items: center; }
.eld-tree__col { display: grid; gap: .45em; }
.eld-tree__n {
  padding: .45em .6em; border-radius: .6em; background: #fff; border: 1px solid #EEE6D8;
  font-size: .82em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.eld-tree__n--m { border-left: 3px solid #D86A8E; }
.eld-tree__n--p { border-left: 3px solid #4C79C8; }
.eld-tree__n--f { background: var(--n3); color: #fff; border-color: var(--n3); font-weight: 700; }

/* Vue d'en haut de l'élevage */
.eld-map {
  position: relative; aspect-ratio: 16 / 10; border-radius: .9em; overflow: hidden;
  background: linear-gradient(135deg, #9DBF7E, #7FA862);
  display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: .45em; padding: .45em;
}
.eld-zone {
  position: relative; border-radius: .6em; padding: .5em .6em; font-size: .78em; font-weight: 700; color: #1C2A12;
  background: rgba(255, 255, 255, .22); border: 1.5px dashed rgba(255, 255, 255, .7);
}
.eld-zone--box { background: #EADFC9; border: 0; color: var(--ink); display: grid; grid-template-columns: repeat(3, 1fr); gap: .3em; align-content: start; }
.eld-zone--box > b { grid-column: 1 / -1; }
.eld-zone--box i { aspect-ratio: 1; border-radius: .3em; background: #fff; display: grid; place-items: center; font-style: normal; font-size: .95em; }
.eld-zone--barn { background: #C9A46A; border: 0; color: #2A1D08; }
.eld-zone--sand { background: #E8D7B0; border: 0; }
.eld-zone span { position: absolute; font-size: 1.2em; }

/* Liste de prix par paliers */
.eld-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4em; }
.eld-tiers div { text-align: center; padding: .5em .3em; border-radius: .6em; background: #fff; border: 1px solid #EEE6D8; }
.eld-tiers b { display: block; font-size: 1.05em; }
.eld-tiers small { color: var(--ink2); font-size: .8em; }
.eld-tiers .on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(200, 151, 63, .25); }

/* Facture */
.eld-inv { display: grid; gap: .55em; }
.eld-inv__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1em; }
.eld-inv__head b { font-family: Fraunces, Georgia, serif; font-size: 1.3em; }
.eld-inv__l { display: flex; justify-content: space-between; gap: 1em; font-size: .92em; padding: .35em 0; border-bottom: 1px dashed #E6DCCB; }
.eld-inv__l span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eld-inv__tot { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.1em; padding-top: .3em; }
.eld-steps-ui { display: flex; align-items: center; gap: .4em; font-size: .8em; color: var(--ink2); }
.eld-steps-ui i { flex: 1; height: 3px; border-radius: 3px; background: #E6DCCB; }
.eld-steps-ui i.on { background: #1E7A4B; }

/* Téléphone (espace client) */
.eld-phone-wrap { display: grid; place-items: center; }
.eld-phone {
  width: min(320px, 74cqw); aspect-ratio: 9 / 17;
  padding: .55em; border-radius: 2.6em; background: #0B0F18;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .85), inset 0 0 0 2px #2A3245;
  font-size: clamp(10px, 3.6cqw, 13px);
}
.eld-phone .eld-ui { height: 100%; border-radius: 2.1em; font-size: 1em; display: flex; flex-direction: column; }
.eld-phone__notch { width: 34%; height: 1.4em; margin: .4em auto 0; border-radius: 999px; background: #0B0F18; }
.eld-phone .eld-ui__body { flex: 1; align-content: start; overflow: hidden; }
.eld-phone__hello { font-family: Fraunces, Georgia, serif; font-size: 1.35em; font-weight: 600; }
.eld-pay {
  border-radius: .9em; padding: .9em; background: var(--n3); color: #fff; display: grid; gap: .5em;
}
.eld-pay b { font-size: 1.3em; }
.eld-pay .eld-btnui { justify-self: start; }

/* Bulle de discussion (copilote IA, échanges client) */
.eld-chat { display: grid; gap: .6em; }
.eld-msg { max-width: 86%; padding: .7em .9em; border-radius: 1em; font-size: .92em; line-height: 1.45; white-space: normal; }
.eld-msg--me { justify-self: end; background: var(--n3); color: #fff; border-bottom-right-radius: .3em; }
.eld-msg--ai { justify-self: start; background: #fff; border: 1px solid #EEE6D8; border-bottom-left-radius: .3em; }
.eld-msg--ai b { color: #7A5A22; }

/* Équipe */
.eld-team { display: flex; gap: .5em; flex-wrap: wrap; }
.eld-team span { display: inline-flex; align-items: center; gap: .45em; padding: .35em .7em .35em .35em; background: #fff; border: 1px solid #EEE6D8; border-radius: 999px; font-size: .85em; }
.eld-team i { width: 1.8em; height: 1.8em; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; color: #fff; font-size: .85em; }

/* ═══════════════════════════ AUTOMATISMES (frise) ═══════════════════════════ */
.eld-auto { background: linear-gradient(180deg, var(--n0), var(--n2)); }
.eld-flow { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.eld-flow::before { /* le fil qui relie les étapes, tracé une fois */
  content: ""; position: absolute; left: 4%; right: 4%; top: 27px; height: 2px;
  background: linear-gradient(90deg, var(--gold2), var(--amber));
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 1.4s var(--ease) .2s;
}
.eld-flow.is-in::before, .eld:not(.eld--anim) .eld-flow::before { transform: scaleX(1); }
/* align-content: start — sinon la cellule, étirée à la hauteur de la plus
   haute de la rangée, répartit l'excédent entre ses lignes et les titres
   ne s'alignent plus d'une étape à l'autre. */
.eld-flow li { position: relative; display: grid; gap: 10px; justify-items: start; align-content: start; }
.eld-flow__dot {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px;
  background: var(--n2); border: 1px solid rgba(226, 180, 92, .4); font-size: 24px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
}
.eld-flow__when { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold2); }
.eld-flow h3 { font-size: 1.02rem; font-weight: 650; }
.eld-flow p { font-size: .92rem; color: var(--tx3); }

/* ═══════════════════════ TOUT EST INCLUS (section claire) ═══════════════════ */
.eld-all { background: var(--cream); color: var(--ink); }
.eld-all h2, .eld-all h3, .eld-all summary { color: var(--ink); }
.eld-all .eld-kicker { color: #9C6F2A; }
.eld-all .eld-h2 em { color: #A8741F; }   /* l'or clair de la nuit est illisible sur crème */
.eld-all .eld-lead { color: var(--ink2); }
.eld-all__grid { columns: 3 300px; column-gap: 22px; }
.eld-all details {
  break-inside: avoid; margin-bottom: 22px;
  background: #fff; border: 1px solid #E8DDCB; border-radius: 18px; padding: 18px 20px 16px;
  box-shadow: 0 10px 30px -22px rgba(22, 33, 58, .35);
}
.eld-all summary {
  list-style: none; display: flex; align-items: center; gap: 10px;
  font-family: Fraunces, Georgia, serif; font-size: 1.12rem; font-weight: 600;
}
.eld-all summary::-webkit-details-marker { display: none; }
.eld-all summary .eld-ico { width: 34px; height: 34px; font-size: 17px; }
.eld-all summary small { margin-left: auto; font: 600 .78rem Inter, sans-serif; color: var(--ink2); }
.eld-all ul { display: grid; gap: 7px; margin-top: 12px; }
.eld-all li { position: relative; padding-left: 22px; font-size: .93rem; line-height: 1.45; color: #2B3550; }
.eld-all li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 11px; height: 7px;
  border-left: 2px solid #1E7A4B; border-bottom: 2px solid #1E7A4B; transform: rotate(-45deg);
}
.eld-all li.sub::after {
  content: "Abonnement"; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  font-size: .7rem; font-weight: 700; background: #FBF1DD; color: #9C6F2A; vertical-align: 1px;
}
@media (min-width: 721px) {
  .eld-all summary { pointer-events: none; }
  .eld-all summary small { display: none; }
}
@media (max-width: 720px) {
  .eld-all summary { cursor: pointer; }
  .eld-all summary::after { content: "+"; margin-left: 8px; font: 400 1.4rem Inter, sans-serif; color: #9C6F2A; transition: transform .25s; }
  .eld-all details[open] summary::after { transform: rotate(45deg); }
}

/* ═════════════════════════════════ TARIFS ═════════════════════════════════ */
.eld-price { background: var(--n0); }
.eld-price__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 980px; margin-inline: auto; perspective: 1400px; }
.eld-plan {
  position: relative; display: grid; gap: 16px; align-content: start;
  padding: clamp(24px, 3.4vw, 36px); border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid var(--line);
  transition: transform .45s var(--ease), border-color .3s;
}
.eld-plan:hover { transform: translateY(-4px) rotateX(2deg); border-color: rgba(226, 180, 92, .35); }
.eld-plan--gold { border-color: rgba(226, 180, 92, .45); background: linear-gradient(180deg, rgba(226, 180, 92, .14), rgba(226, 180, 92, .03)); }
.eld-plan h3 { font-family: Fraunces, Georgia, serif; font-size: 1.45rem; font-weight: 600; }
.eld-plan__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.eld-plan__price b { font-family: Fraunces, Georgia, serif; font-size: clamp(2.2rem, 4vw, 3rem); color: #fff; line-height: 1; }
.eld-plan__price span { color: var(--tx3); font-size: .95rem; }
.eld-plan .eld-checks li { font-size: .95rem; }
.eld-plan .eld-btn { justify-self: start; margin-top: 6px; }
.eld-price__note { max-width: 760px; margin: 26px auto 0; text-align: center; font-size: .9rem; color: var(--tx3); }
.eld-price__note a { color: var(--gold2); }

/* ═════════════════════════════ DÉMARRER (3 étapes) ═════════════════════════ */
.eld-start { background: linear-gradient(180deg, var(--n0), var(--n1)); }
.eld-start__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: eldstep; }
.eld-start__grid li {
  counter-increment: eldstep; position: relative; padding: 26px 24px 24px; border-radius: 20px;
  background: var(--glass); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start;
}
.eld-start__grid li::before {
  content: counter(eldstep, decimal-leading-zero);
  font: 600 2.2rem/1 Fraunces, Georgia, serif; color: var(--gold2);
}
.eld-start__grid h3 { font-size: 1.08rem; font-weight: 650; }
.eld-start__grid p { color: var(--tx3); font-size: .95rem; }
.eld-start .eld-cta { justify-content: center; margin-top: 34px; }

/* ═══════════════════════════════════ FAQ ═══════════════════════════════════ */
.eld-faq { background: var(--n1); }
.eld-faq .eld-wrap { max-width: 820px; }
.eld-faq h2 { font-family: Fraunces, Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 22px; }
.eld-faq .faq-item { border-bottom: 1px solid rgba(255, 255, 255, .12); padding: 4px 0; }
.eld-faq .faq-item summary { cursor: pointer; padding: 14px 0; font-weight: 650; font-size: 1.04rem; list-style: none; display: flex; gap: 12px; justify-content: space-between; }
.eld-faq .faq-item summary::-webkit-details-marker { display: none; }
.eld-faq .faq-item summary::after { content: "+"; color: var(--gold2); font-size: 1.4rem; line-height: 1; transition: transform .25s; }
.eld-faq .faq-item[open] summary::after { transform: rotate(45deg); }
.eld-faq .faq-answer { color: rgba(238, 242, 248, .72); padding-bottom: 16px; }
.eld-faq .faq-answer p { margin: 0; }
.eld-faq a { color: var(--gold2); }
.eld-faq__more { margin-top: 26px; font-size: .92rem; color: var(--tx3); }

/* ═════════════════════════════════ CTA FINAL ═══════════════════════════════ */
.eld-final {
  text-align: center;
  background:
    radial-gradient(50% 60% at 50% 100%, rgba(226, 180, 92, .18), transparent 70%),
    var(--n0);
}
.eld-final__in { display: grid; justify-items: center; gap: 20px; }
.eld-final .eld-cta { justify-content: center; }
.eld-final__note { font-size: .9rem; color: var(--tx3); }

/* ═══════════════════════════════ ANIMATIONS ════════════════════════════════ */
@keyframes eldRise { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
@keyframes eldFloat { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -10px, 0); } }

/* ═══════════════════════════════ RESPONSIVE ════════════════════════════════ */
@media (max-width: 980px) {
  .eld-flow { grid-template-columns: 1fr; gap: 22px; padding-left: 4px; }
  .eld-flow::before { left: 31px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; transform: scaleY(0); transform-origin: 50% 0; background: linear-gradient(180deg, var(--gold2), var(--amber)); }
  .eld-flow.is-in::before, .eld:not(.eld--anim) .eld-flow::before { transform: scaleY(1); }
  .eld-flow li { grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; row-gap: 2px; }
  .eld-flow__dot { grid-row: span 3; }
}
@media (max-width: 900px) {
  .eld-chap__grid { grid-template-columns: minmax(0, 1fr); }
  .eld-chap--flip .eld-chap__copy { order: 0; }
  .eld-rig { --rx: 4deg; --ry: -5deg; }
  .eld-chap--flip .eld-rig { --ry: 5deg; }
  .eld-visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .eld-price__grid, .eld-start__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .eld { --nav-h: 50px; }
  .eld-wrap { width: calc(100% - 32px); }
  .eld-hero { padding-top: 36px; }
  .eld-cta { width: 100%; }
  .eld-cta .eld-btn { flex: 1 1 100%; }
  .eld-screen { padding: 6px; border-radius: 12px; transform: rotateX(calc((1 - var(--k)) * 16deg)) scale(calc(.94 + var(--k) * .06)); }
  .eld-screen__bar { display: none; }
  .eld-sound { right: 8px; bottom: 8px; min-height: 36px; padding: 0 12px; font-size: .8rem; }
  .eld-nav__track a { font-size: .84rem; padding: 6px 11px; }
  .eld-gest { grid-template-columns: 8em minmax(0, 1fr); }
  .eld-ring { width: 8em; height: 8em; }
  .eld-float { transform: translateZ(30px); }
}
/* Sur téléphone, une pastille posée sur la maquette cacherait son texte :
   on la retire, les puces du texte disent la même chose. */
@media (max-width: 560px) {
  .eld-float { display: none; }
  .eld-visual:has(.eld-float) { padding-block: 18px; }
  .eld-badge { font-size: .8rem; text-align: left; }
  /* Le bouton du son devient une pastille ronde : en toutes lettres, il
     masquait un tiers de la vidéo sur un téléphone. Le libellé reste lu par
     les lecteurs d'écran. */
  .eld-sound { width: 40px; padding: 0; justify-content: center; }
  .eld-sound span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ═════════════════════════ MOINS D'ANIMATIONS ═════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .eld *, .eld *::before, .eld *::after { animation: none !important; transition: none !important; }
  .eld-screen { transform: none !important; }
  .eld-rig { transform: rotateX(var(--rx)) rotateY(var(--ry)) !important; }
  .eld-ring .f { stroke-dashoffset: 38 !important; }
  .eld-strikes li::after { transform: scaleX(1) !important; }
  .eld-flow::before { transform: none !important; }
}

/* ═══════════════ RACCORDS avec le gabarit du site (body.eld-body) ═══════════ */
.eld-body { background: #0A1222; }
.eld-body main { padding: 0; }
.eld-body .site-footer { margin-top: 0; }

/* Bouton Trustpilot : « .eld a { color: inherit } » rendait son texte clair sur son fond clair. */
.eld a.tp-review-link { color: #233e34; }
.eld a.tp-review-link:hover { color: #193d2c; }
