/* L'enveloppe : une pochette en hauteur, au format de la carte pliée.
   Ordre des couches : fond, rabat ouvert, carte, poche, rabat fermé, sceau. */
.env {
  position: relative;
  width: var(--env-w, 280px);
  aspect-ratio: 162 / 229;
  perspective: 1400px;
}
.env__ombre {
  position: absolute; left: 4%; right: 4%; bottom: -6%; height: 10%;
  background: radial-gradient(closest-side, rgba(70, 45, 30, .3), transparent);
  filter: blur(7px);
}
.env__fond {
  position: absolute; inset: 0; border-radius: 3px;
  background: linear-gradient(#c9b8a7, #d8c9ba 45%);
}
.env__carte {
  position: absolute; z-index: 2; left: 6%; top: 4%; width: 88%;
  box-shadow: 0 2px 12px rgba(70, 45, 30, .2);
  will-change: transform;
}
.env__poche {
  position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%;
  filter: drop-shadow(0 -1px 2px rgba(70, 45, 30, .1));
}
.env__cote { fill: #ece2d7; }
.env__cote--d { fill: #e9ded2; }
.env__bas { fill: #f3ebe2; stroke: #dccfc1; stroke-width: .6; }

.env__rabat {
  position: absolute; z-index: 4; left: 0; top: 0; width: 100%; height: 48.9%;
  transform-origin: 50% 0;
  filter: drop-shadow(0 2px 3px rgba(70, 45, 30, .22));
}
.env__rabat polygon { fill: #f6efe7; stroke: #e0d4c7; stroke-width: .6; }
.env.est-ouverte .env__rabat { z-index: 1; filter: none; }
.env.est-ouverte .env__rabat polygon { fill: #d3c3b3; stroke: none; }

.env__sceau {
  position: absolute; z-index: 5; left: 50%; top: 47.5%; width: 21%;
  margin: -9.7% 0 0 -10.5%;
  filter: drop-shadow(0 2px 3px rgba(110, 40, 30, .4));
}
.env__sceau svg { display: block; width: 100%; height: auto; }
