/* V2 : ciel lisible, enveloppe construite dans un repère unique, pas d’étirement de pièces raster. */
.sky{height:370px;opacity:1;background-size:auto 370px;background-position:center top;mask-image:linear-gradient(#000 0 94%,transparent 100%)}.hero .eyebrow{color:#f2e6ca;text-shadow:0 1px 1px #1c273c;font-size:10px}.hero{padding-top:145px}.hero .names{margin-top:35px}.hero .name-thread{filter:drop-shadow(0 .4px .2px #f5e4be)}#curtain-canvas{image-rendering:auto}.date-embroidery{height:95px;position:relative;z-index:1}.date-stars{position:absolute;top:14px;left:23%;width:54%;height:30px;display:flex;align-items:center;justify-content:space-between}.date-stars i{display:block;width:9px;height:9px;opacity:0;background:#b59961;clip-path:polygon(50% 0,59% 38%,100% 50%,59% 61%,50% 100%,40% 61%,0 50%,40% 38%)}.date-stars i:nth-child(odd){width:13px;height:13px}.date-star-guide{position:absolute;width:26px;height:26px;max-width:none;top:47%;left:0;object-fit:contain;z-index:2;opacity:0;pointer-events:none}#date-stage{min-height:210px;overflow:visible;margin-top:35px}#date-trigger{bottom:-2px;font-size:12px}.date-actions{margin-top:30px}#date-stage[data-state=open] .date-embroidery{filter:none}
#envelope{aspect-ratio:1.16;width:min(550px,100%);margin-top:65px;isolation:isolate;perspective:1300px;overflow:visible}.envelope-body{position:absolute;inset:26.5% 0 0;background:linear-gradient(160deg,#fff9e88c,transparent 60%,#9e805833),url('assets/04b-fond-ivoire.webp') center/700px;border:2px solid #b9a17b;border-radius:6px;box-shadow:inset 0 5px 14px #977d5755,inset 0 0 0 5px #f4e8d0,0 8px 16px #6b56352b;z-index:0}.envelope-body:after{content:'';position:absolute;inset:8px;border:1px dashed #bc9f70;border-radius:3px}.envelope-pocket-v2{position:absolute;left:0;bottom:0;width:100%;height:73.5%;z-index:4;overflow:visible;filter:drop-shadow(0 -1px 1px #6f563b33);pointer-events:none}.envelope-flap{position:absolute;left:0;top:26.5%;width:100%;height:46.4%;transform-origin:50% 0;transform-style:preserve-3d;z-index:5;transition:transform 1.8s cubic-bezier(.4,0,.2,1),z-index 0s .95s}.envelope-flap>div{position:absolute;inset:0;clip-path:polygon(0 0,100% 0,50% 100%);backface-visibility:hidden;border-top:2px solid #bba175;background:linear-gradient(165deg,#fff8e3aa,transparent 48%,#9c7b4944),url('assets/04b-fond-ivoire.webp') center/700px}.envelope-flap>div:before,.envelope-flap>div:after{content:'';position:absolute;top:-1%;width:73%;height:3px;border-top:1px solid #c3aa7c;border-bottom:1px dashed #fff9e4;transform-origin:0 50%;left:0;transform:rotate(37deg)}.envelope-flap>div:after{left:100%;transform:rotate(143deg)}.envelope-flap .flap-back{transform:rotateY(180deg);background:linear-gradient(145deg,#ead9bd55,#fff6e47a),url('assets/04b-fond-ivoire.webp') center/700px}#envelope[data-state=open] .envelope-flap{transform:rotateX(180deg);z-index:1}#envelope-open{inset:26.5% 0 0}#rsvp-card-open{top:43%;left:15%;width:70%;height:47%;opacity:0;background:linear-gradient(150deg,#fffaf0bb,#f5ead5bb),url('assets/04b-fond-ivoire.webp') center/700px;border:1px solid #c7b28e;border-radius:5px;padding:25px 14px 25px;box-shadow:inset 0 0 0 5px #f6ecd9,inset 0 0 0 6px #d9c5a0,0 4px 8px #67503924;transition:transform 1.6s 1s,opacity .2s 1.1s;transform:translateY(0);z-index:2}#rsvp-card-open:before{content:'';position:absolute;inset:10px;border:1px dashed #bea77d;border-radius:2px;pointer-events:none}#envelope[data-state=open] #rsvp-card-open{transform:translateY(-79%);opacity:1}#rsvp-card-open span{position:relative;font-size:clamp(26px,4vw,43px);line-height:1.07}#rsvp-card-open small{position:relative;font-size:11px;margin-top:15px;letter-spacing:.3px}#envelope-hint{margin-top:22px}
.closing{max-width:none;padding:60px 0 0}.closing>p{max-width:700px;padding-left:25px;padding-right:25px}.closing .names{width:min(410px,calc(100% - 50px))}.closing .portrait{margin-top:35px}.footer-landscape{width:100%;margin:45px 0 0;overflow:hidden}.footer-landscape img{width:100%;height:auto;max-width:none;display:block;object-fit:contain}.closing-dunes{display:none}
@media(max-width:650px){.hero{padding-top:135px}.sky{height:350px;background-size:auto 350px}.hero .eyebrow{font-size:9px;letter-spacing:1.1px}.hero .names{margin-top:30px}#envelope{margin-top:60px}#rsvp-card-open{padding:20px 12px}#rsvp-card-open span{font-size:clamp(23px,7vw,33px)}#rsvp-card-open small{font-size:10px;margin-top:12px}.footer-landscape{margin-top:35px}.footer-landscape img{width:100%;height:auto;object-fit:contain}#date-stage{min-height:190px}.date-stars{top:10px}.date-star-guide{width:22px;height:22px}}@media(prefers-reduced-motion:reduce){.envelope-flap,#rsvp-card-open{transition:none}}
