/* ═══════════════════════════════════════════════════════════
   PLAN TECHNIQUE ANIMÉ — calque par calque, à l'intérieur du
   rideau d'ouverture existant (.opening-curtain > .opening-plan).
   Scopé à .visual-stage / .plan-layer : n'affecte rien d'autre
   sur la page. Le positionnement/la taille du bloc restent gérés
   par .opening-plan (signature.css) ; ce fichier ne gère que la
   pile de calques et leur apparition.
   ═══════════════════════════════════════════════════════════ */

.visual-stage {
  aspect-ratio: 1536 / 1024;
}

.plan-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  will-change: transform, opacity;
}

/* Les animations attendent la fin du loader d'ouverture. */
.js .visual-stage:not(.is-playing) .plan-layer {
  animation-play-state: paused;
}

.visual-stage.intro-done .plan-layer {
  animation: none;
  will-change: auto;
  transform: none;
  opacity: 1;
}

/* Le calque 00 contient déjà toute la cuisine : il reste un plan de fond
   très discret pour que les autres calques se construisent visiblement
   par-dessus. */
.visual-stage.intro-done .layer-00 { opacity: .22; }
.visual-stage.intro-done .layer-08 { opacity: .16; }

.layer-00 { animation: hero-layer-00 1.8s var(--ease, ease) 0s forwards; }
@keyframes hero-layer-00 {
  from { opacity: 0; transform: translateY(20px) scale(.985); }
  to { opacity: .22; transform: translateY(0) scale(1); }
}

.layer-03 { animation: hero-layer-03 1.2s var(--ease, ease) .75s forwards; }
@keyframes hero-layer-03 {
  from { opacity: 0; transform: translateY(35px); }
  to { opacity: 1; transform: translateY(0); }
}

.layer-04 { animation: hero-layer-04 1.2s var(--ease, ease) 1.13s forwards; }
@keyframes hero-layer-04 {
  from { opacity: 0; transform: translateX(35px); }
  to { opacity: 1; transform: translateX(0); }
}

.layer-01 { animation: hero-layer-01 1.2s var(--ease, ease) 1.5s forwards; }
@keyframes hero-layer-01 {
  from { opacity: 0; transform: translateY(-45px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.layer-02 { animation: hero-layer-02 1.2s var(--ease, ease) 1.8s forwards; }
@keyframes hero-layer-02 {
  from { opacity: 0; transform: translate(25px, -20px); }
  to { opacity: 1; transform: translate(0, 0); }
}

.layer-05 { animation: hero-layer-05 1.2s var(--ease, ease) 2.18s forwards; }
@keyframes hero-layer-05 {
  from { opacity: 0; transform: translateX(35px); }
  to { opacity: 1; transform: translateX(0); }
}

.layer-06 { animation: hero-layer-06 1.2s var(--ease, ease) 2.48s forwards; }
@keyframes hero-layer-06 {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

.layer-08 { animation: hero-layer-08 1.8s var(--ease, ease) 3.15s forwards; }
@keyframes hero-layer-08 {
  from { opacity: 0; transform: scale(.97); }
  to { opacity: .16; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .plan-layer {
    animation-duration: .01s !important;
    animation-delay: 0s !important;
    transform: none !important;
  }
}

/* Première page du dossier technique. La scène, le rideau et leur transformation
   restent pilotés par les styles et scripts existants. */
.opening-curtain {
  padding: 150px 5.5vw 108px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: stretch;
  gap: 2vw;
  background-color: #fdfefd;
  /* background-image: linear-gradient(rgba(33,48,79,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(33,48,79,.025) 1px, transparent 1px); */
  background-size: 88px 88px;
}
.opening-curtain .study-copy { grid-column: 1; grid-row: 1; position: relative; z-index: 1; }
.study-copy { color: var(--blue-night); font-family: var(--font-signature); }
.study-label { margin: 0 0 30px; font-size: 10px; font-weight: 600; letter-spacing: .17em; line-height: 1.6; }
.study-label::before { content: ''; display: inline-block; width: 22px; height: 2px; margin-right: 12px; vertical-align: middle; background: var(--blue-deep); }
.opening-curtain .study-title, .study-mobile .study-title { margin: 0; font-family: var(--font-display); font-size: clamp(46px,5.5vw,88px); font-weight: 500; line-height: 1.06; letter-spacing: -.055em; }
.study-description { max-width: 460px; margin: 28px 0 0; font-size: 15px; line-height: 1.75; color: #5c6873; }
.study-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 23px; margin-top: 32px; }
.study-actions .liensousgal { margin: 0; min-height: 48px; padding: 0 17px; gap: 18px; background: var(--blue-night); color: white; border-color: var(--blue-night); }
.study-actions .liensousgal span { font-size: 9px; letter-spacing: .09em; }
.study-actions .liensousgal i { font-style: normal; }
.study-actions .liensousgal:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.study-secondary { display: inline-flex; align-items: center; gap: 15px; min-height: 44px; color: var(--blue-night); text-decoration: none; font-size: 9px; letter-spacing: .08em; border-bottom: 1px solid #c6cdd3; }
.study-secondary:hover { color: var(--blue-deep); border-color: currentColor; }
.study-actions a:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 5px; }
.opening-curtain .opening-plan { position: relative; grid-column: 2; grid-row: 1; z-index: 0; top: auto; right: auto; width: 112%; margin-left: -6%; opacity: 1; transform: none; }
.study-guides { position: absolute; inset: 0; width: 100%; height: 100%; color: #aab8c1; opacity: .65; }
.study-drawing-meta { position: absolute; top: -25px; left: 7%; right: 6%; display: flex; justify-content: space-between; gap: 20px; padding-bottom: 12px; border-bottom: 1px solid #dce2e5; font-size: 8px; letter-spacing: .1em; color: #647782; }
.study-note { position: absolute; z-index: 1; font-family: var(--font-signature); font-size: 9px; font-weight: 600; letter-spacing: .08em; padding: 8px 0; border-top: 1px solid currentColor; background: #fdfefd; }
.study-note::before { content: ''; position: absolute; top: -3px; left: 0; width: 5px; height: 5px; background: currentColor; }
.study-note b { display: block; margin-top: 3px; font-size: 8px; font-weight: 400; }
.study-note--cold { top: 44%; right: 1%; color: var(--blue-deep); }
.study-note--heat { left: 7%; bottom: 16%; color: #b85624; }
.study-note--air { left: 28%; top: 7%; color: #548642; }
.study-dimension { position: absolute; bottom: 4%; left: 25%; right: 15%; text-align: center; font-size: 7px; letter-spacing: .12em; color: #6a7c88; }
.study-register { position: absolute; top: 119px; left: 5.5vw; right: 5.5vw; display: flex; justify-content: space-between; color: #78858e; font-size: 8px; letter-spacing: .15em; }
.study-footer { position: absolute; bottom: 30px; left: 5.5vw; right: 5.5vw; display: flex; justify-content: space-between; gap: 20px; padding-top: 19px; border-top: 1px solid #dce2e5; font-size: 9px; letter-spacing: .1em; color: #687782; }
.study-footer span+span { border-left: 1px solid #dce2e5; padding-left: 25px; }
.study-mobile { display: none; }
@media (min-width: 769px) and (max-width: 1050px) {
  .opening-curtain { padding-inline: 5vw; gap: 0; }
  .opening-curtain .study-title { font-size: 55px; }
  .study-description { font-size: 14px; }
  .study-actions { gap: 12px; margin-top: 22px; }
  .study-note { font-size: 7px; }
  .study-drawing-meta { font-size: 6px; }
  .study-footer { font-size: 7px; gap: 12px; }
  .study-footer span+span { padding-left: 12px; }
}
@media (min-width: 769px) and (max-height: 740px) {
  .opening-curtain { padding-top: 130px; padding-bottom: 80px; }
  .study-register { top: 105px; }
  .study-label { margin-bottom: 18px; }
  .opening-curtain .study-title { font-size: clamp(44px, 5vw, 68px); }
  .study-description { margin-top: 20px; }
  .study-actions { margin-top: 20px; }
  .study-footer { bottom: 22px; }
}
@media (max-width: 768px) {
  /* Ne pas réafficher .opening-scene : son masquage empêche le chargement vidéo. */
  .study-mobile { display: block; padding: 105px 24px 22px; background: #fdfefd; }
  .study-mobile .study-label { font-size: 8px; margin-bottom: 23px; letter-spacing: .12em; }
  .study-mobile .study-title { font-size: clamp(43px, 10vw, 68px); }
  .study-mobile .study-description { margin-top: 22px; font-size: 14px; line-height: 1.7; max-width: 480px; }
  .study-mobile .study-actions { margin-top: 23px; gap: 10px 20px; }
  .study-mobile-drawing { position: relative; max-width: 500px; margin: 26px auto 0; border-top: 1px solid #dce2e5; }
  .study-mobile-drawing img { display: block; width: 100%; height: auto; }
  .study-mobile-drawing .study-note { font-size: 7px; }
  .study-mobile-drawing .study-note--cold { top: 25%; right: 0; }
  .study-mobile-drawing .study-note--heat { bottom: 10%; left: 0; }
  .study-mobile-footer { border-top: 1px solid #dce2e5; padding-top: 15px; font-size: 7px; letter-spacing: .09em; color: #687782; }
}
@media (min-width: 769px) and (max-width: 1050px) {
  .opening-curtain { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .opening-curtain .opening-plan { width: 100%; margin-left: 0; }
  .opening-curtain .study-title { font-size: clamp(44px, 6vw, 55px); }
}
