/* The gift set card (inc/carte.php). Sizes follow the image: 1cqw = 1% of its width. */
.carte-coffret{position:relative;container-type:inline-size;width:100%;aspect-ratio:1080/1350;overflow:hidden;background:#2E1626;}
.carte-coffret>img{display:block;width:100%;height:100%;object-fit:cover;}
.carte-coffret .cc-mots{position:absolute;left:26%;right:26%;top:47.5%;height:21.5%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#2E1626;}
.carte-coffret p{margin:0;}
.carte-coffret .cc-sur{font-family:'Marcellus',Georgia,serif;font-size:3.4cqw;line-height:1.3;letter-spacing:.12em;text-transform:uppercase;max-width:12em;text-wrap:balance;}
.carte-coffret .cc-nom{font-family:'Marcellus',Georgia,serif;font-size:4.7cqw;line-height:1.28;letter-spacing:.05em;margin-top:3.2cqw;text-wrap:balance;}
html[lang^="fr"] .carte-coffret .cc-nom{font-size:4.2cqw;}
.carte-coffret .cc-pour{position:absolute;left:30%;right:30%;top:77.6%;text-align:center;font-family:'EB Garamond',Georgia,serif;font-style:italic;font-size:2.9cqw;color:#2E1626;}
.carte-coffret .cc-pour:empty{display:none;}

/* Unboxing: the card's words arrive one after the other */
html.anime #coffret-ouverture .cc-mots>*,html.anime #coffret-ouverture .cc-pour{opacity:0;transform:translateY(1.2cqw);transition:opacity 1.2s ease,transform 1.4s cubic-bezier(.2,.7,.2,1);}
html.anime #coffret-ouverture .cc-nom{transition-delay:.35s;}
html.anime #coffret-ouverture .cc-pour{transition-delay:.7s;}
html.anime #coffret-ouverture.ouvert .cc-mots>*,html.anime #coffret-ouverture.ouvert .cc-pour{opacity:1;transform:none;}
