/* Home hero « Du plan au terrain » : each PRO-ETUDES project is shown as a blueprint, and a lens reveals the real
   visual underneath (home.js moves it). Without JavaScript the lens rests on the building; with reduced motion or
   the pause button the hero shows a fixed plan | terrain split. */
@property --lens-r { syntax: '<length>'; inherits: true; initial-value: 0px; }

.hero--plan .hero-media { opacity: 1; filter: none; --lens-x: 68%; --lens-y: 44%; --lens-r: clamp(150px, 17vw, 270px); }
.hero--plan .hero-slide { position: absolute; inset: 0; width: auto; height: auto; }
.hero--plan .hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
.hero--plan .slide-plan { filter: grayscale(1) invert(1) contrast(1.9) brightness(.46); opacity: .9; }
.hero--plan .slide-tint { position: absolute; inset: 0; background: #0b3577; mix-blend-mode: color; }
.hero--plan .slide-real {
  -webkit-mask-image: radial-gradient(circle var(--lens-r) at var(--lens-x) var(--lens-y), #000 62%, transparent 100%);
          mask-image: radial-gradient(circle var(--lens-r) at var(--lens-x) var(--lens-y), #000 62%, transparent 100%);
}
.hero--plan .plan-lens {
  position: absolute; left: var(--lens-x); top: var(--lens-y); z-index: 1; pointer-events: none;
  width: calc(var(--lens-r) * 1.62); height: calc(var(--lens-r) * 1.62); transform: translate(-50%, -50%);
  border: 1px solid rgba(247, 118, 31, .85); border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 0 38px rgba(247, 118, 31, .28), inset 0 0 30px rgba(247, 118, 31, .12);
}
.hero--plan .plan-lens-label { position: absolute; bottom: calc(100% + 16px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 7px 12px; border: 1px solid rgba(247, 118, 31, .55); border-radius: 999px; background: rgba(6, 15, 31, .72); font: 600 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: #ffc08a; }
[dir=rtl] .hero--plan .plan-lens-label { font-family: inherit; font-size: 13px; letter-spacing: 0; }
.hero--plan .plan-lens::before, .hero--plan .plan-lens::after { content: ''; position: absolute; background: rgba(247, 118, 31, .9); }
.hero--plan .plan-lens::before { left: 50%; top: -9px; width: 1px; height: 18px; }
.hero--plan .plan-lens::after { top: 50%; right: -9px; width: 18px; height: 1px; }
@media (prefers-reduced-motion: no-preference) {
  .hero--plan .hero-media { animation: plan-lens-open 1.5s .35s cubic-bezier(.22, 1, .36, 1) both; }
}
@keyframes plan-lens-open { from { --lens-r: 0px; } to { --lens-r: clamp(150px, 17vw, 270px); } }

/* Text stays readable: dark on the copy side, open over the lens side. */
.hero--plan .hero-shade { background: linear-gradient(90deg, #060f1ff2 0%, #08162dd9 33%, #0a1a3359 60%, #0a1a3314 100%), linear-gradient(0deg, #050c19d9, transparent 36%); }
[dir=rtl] .hero--plan .hero-shade { background: linear-gradient(270deg, #060f1ff2 0%, #08162dd9 33%, #0a1a3359 60%, #0a1a3314 100%), linear-gradient(0deg, #050c19d9, transparent 36%); }
.hero--plan .hero-emblem { display: none; }

/* Static plan | terrain split (reduced motion, paused). */
.hero--plan.lens-static .hero-media { animation: none; }
.hero--plan.lens-static .slide-real { -webkit-mask-image: linear-gradient(90deg, transparent 52%, #000 66%); mask-image: linear-gradient(90deg, transparent 52%, #000 66%); }
[dir=rtl] .hero--plan.lens-static .slide-real { -webkit-mask-image: linear-gradient(270deg, transparent 52%, #000 66%); mask-image: linear-gradient(270deg, transparent 52%, #000 66%); }
.hero--plan.lens-static .plan-lens { display: none; }

/* Proof line under the calls to action. */
.hero--plan .hero-proof { display: flex; flex-wrap: wrap; gap: 10px 0; margin: 34px 0 0; padding: 0; list-style: none; font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #c9d6ea; }
.hero--plan .hero-proof li { display: flex; align-items: center; }
.hero--plan .hero-proof li + li::before { content: ''; width: 5px; height: 5px; margin: 0 16px; border-radius: 50%; background: #f7761f; }
[dir=rtl] .hero--plan .hero-proof { font-family: inherit; font-size: 14px; letter-spacing: 0; }
.hero--plan .slide-caption { text-transform: uppercase; }

@media (max-width: 760px) {
  .hero--plan .hero-media { --lens-x: 82%; --lens-y: 11%; --lens-r: 84px; }
  @keyframes plan-lens-open { from { --lens-r: 0px; } to { --lens-r: 84px; } }
  .hero--plan .plan-lens-label { display: none; }
  .hero--plan .hero-shade, [dir=rtl] .hero--plan .hero-shade { background: linear-gradient(180deg, #060f1f26 0%, #060f1f59 17%, #060f1fd9 33%, #060f1ff0 70%, #050c19 100%); }
  .hero--plan .hero-slide img { object-position: 64% center; }
  .hero--plan .hero-proof { flex-direction: column; gap: 9px; margin-top: 26px; font-size: 11px; letter-spacing: .1em; }
  .hero--plan .hero-proof li::before, .hero--plan .hero-proof li + li::before { content: ''; width: 5px; height: 5px; margin: 0 12px 0 0; border-radius: 50%; background: #f7761f; }
  [dir=rtl] .hero--plan .hero-proof li::before, [dir=rtl] .hero--plan .hero-proof li + li::before { margin: 0 0 0 12px; }
}
