/* ═══════════════════════════════════════════
   LA MAISON PASSIVE, PLIÉE — animation d'accueil
   Feuille pliée en 3D, pilotée par le défilement.
   Reprend les variables et la typographie du site.
═══════════════════════════════════════════ */
.mp { position: relative; height: 820vh; background: var(--off-white); }
.mp-pin {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  padding: var(--nav-h) 40px 0 0;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center; gap: 24px;
  max-width: 1680px; margin: 0 auto;
  background: radial-gradient(ellipse at 36% 56%, #fdfcfa 0%, var(--off-white) 60%);
}
.mp-stage {
  position: relative; height: 100%; min-height: 0;
  perspective: 1500px; perspective-origin: 50% 42%;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.mp-stage:active { cursor: grabbing; }
.mp-world { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.mp-net {
  position: absolute; left: -600px; top: -400px; width: 1200px; height: 800px;
  transform-style: preserve-3d; transform-origin: 600px 400px;
}
.mp-face { position: absolute; transform-style: preserve-3d; }
.mp-face > .f, .mp-face > .b {
  position: absolute; inset: 0; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: #fbf9f4; outline: 2px dashed rgba(44,44,44,.3); outline-offset: -2px;
}
.mp-face > .b { transform: rotateY(180deg); background: #f3efe6; }
.mp-face img { display: block; width: 100%; height: 100%; max-width: none; }
.mp-face img.r180 { transform: rotate(180deg); }
.mp-gl > .f, .mp-gl > .b { clip-path: polygon(100% 0, 37.5% 0, 0 50%, 37.5% 100%, 100% 100%); outline: none; }
.mp-gr > .f, .mp-gr > .b { clip-path: polygon(0 0, 62.5% 0, 100% 50%, 62.5% 100%, 0 100%); outline: none; }
.mp-up { position: absolute; left: 50%; top: 50%; width: 800px; height: 960px; margin: -480px 0 0 -400px; }
.mp-gl .mp-up { transform: rotate(-90deg); }
.mp-gr .mp-up { transform: rotate(90deg); }
.mp-shade { position: absolute; inset: 0; background: #3b2f1c; opacity: 0; pointer-events: none; }
.mp-shadow {
  position: absolute; left: -160px; top: -160px; width: 1520px; height: 1120px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(40,30,10,.3), rgba(40,30,10,0));
  transform: translateZ(8px); pointer-events: none;
}

/* ── Texte ── */
.mp-text { max-width: 440px; }
.mp-steps { position: relative; min-height: 400px; }
.mp-step {
  position: absolute; inset: 0; opacity: 0; transform: translateY(12px);
  transition: opacity .45s, transform .45s; pointer-events: none;
}
.mp-step.on { opacity: 1; transform: none; pointer-events: auto; }
.mp-step .t-label { margin-bottom: 14px; }
.mp-step .t-title { margin-bottom: 14px; }
.mp-step .t-body { margin-bottom: 16px; }
.mp-fiche {
  background: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--green);
  border-radius: 4px; padding: 14px 16px; font-size: 13px; color: var(--anthracite);
}
.mp-fiche dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; }
.mp-fiche dl.mp-classes { grid-template-columns: 1fr auto auto; gap: 4px 22px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.mp-fiche dt { color: var(--mid); }
.mp-fiche dd { font-weight: 600; text-align: right; white-space: nowrap; }
.mp-fiche dd.h { font-weight: 400; color: var(--mid); }
.mp-fiche .eq { font-family: Georgia, 'Times New Roman', serif; font-size: 15px; text-align: center; padding: 4px 0; }
.mp-fiche small { display: block; margin-top: 8px; font-size: 11px; line-height: 1.5; color: var(--light); }
.mp-cta {
  display: inline-block; margin-top: 18px; background: var(--anthracite); color: var(--white);
  padding: 12px 28px; border-radius: 100px; font-size: 13px; font-weight: 600; letter-spacing: .01em;
}
.mp-cta:hover { background: #444; }
.mp-dots { display: flex; gap: 6px; margin-top: 22px; }
.mp-dots i { width: 20px; height: 2px; border-radius: 2px; background: var(--border); transition: background .3s; }
.mp-dots i.on { background: var(--green); }
.mp-hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  font-size: 11px; font-weight: 500; letter-spacing: .03em; color: var(--light);
  transition: opacity .4s; white-space: nowrap;
}
.mp-credit { background: var(--off-white); padding: 0 40px 28px; text-align: center; font-size: 10px; color: var(--light); letter-spacing: .02em; }
.mp-credit a { text-decoration: underline; }

@media (min-width: 1800px) {
  .mp-pin { max-width: 2100px; gap: 40px; }
  .mp-text { max-width: 560px; }
  .mp-step .t-label { font-size: 12px; }
  .mp-step .t-title { font-size: 36px; margin-bottom: 18px; }
  .mp-step .t-body { font-size: 17px; }
  .mp-fiche { font-size: 16px; padding: 18px 20px; }
  .mp-fiche .eq { font-size: 18px; }
  .mp-fiche small { font-size: 13px; }
  .mp-cta { font-size: 15px; padding: 14px 34px; }
  .mp-steps { min-height: 520px; }
}
@media (max-width: 860px) {
  .mp-pin { grid-template-columns: 1fr; grid-template-rows: 36vh auto; align-content: start; gap: 0; padding: var(--nav-h) 0 0; }
  .mp-text { max-width: none; padding: 0 20px; }
  .mp-steps { min-height: 360px; }
  .mp-step .t-label, .mp-step .t-title, .mp-step .t-body { margin-bottom: 10px; }
  .mp-fiche { font-size: 12px; padding: 10px 12px; }
  .mp-fiche .eq { font-size: 13px; }
  .mp-dots { display: none; }
  .mp-fiche small { display: none; }
  .mp-cta { margin-top: 12px; padding: 10px 24px; }
  .mp-step .t-title { font-size: 20px; }
  .mp-credit { padding: 0 20px 24px; }
}
@media (prefers-reduced-motion: reduce) { .mp-step { transition: none; } }
