@font-face {
    font-family: "Sackers";
    src: url("fonts/SackersGothicStd-Medium.otf") format("opentype");
}

@font-face {
    font-family: "Sackers";
    /*light*/
    font-weight: 400;
    src: url("fonts/SackersGothicStd-Light.otf") format("opentype");
}

@font-face {
    font-family: "Sackers";
    font-weight: 700;
    src: url("fonts/SackersGothicStd-Heavy.otf") format("opentype");
}

:root {
    --defaultHeight: 1920;
    --percent: var(--defaultHeight) * 100;
    --mult: var(--vh) / var(--percent);
    /* pour les boutons mieux vaut se baser sur 1080 */
    --mult2: var(--vh) / 1080 * 100;
}

html,
body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    font-family: "Sackers";
    font-weight: 700;
    overflow: hidden;
    color: white;
    overflow: hidden;
    position: relative;
}

body {
    background-color: #FFC1E5;
    color: #FFF;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: calc(29 * var(--mult));
}

.signature span{
    padding-right: 8px;
}

@media screen and (orientation: landscape) {
    body {
        background-image: url(images/BG_First_screen.webp);
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
    }
    body.flower-show2 {
        background-image: url(images/BG_all_experience.webp);
    }
    body.read {
        background-image: url(images/BG_all_experience.webp);
    }
    
}

strong {
    font-size: 120%;
}

@media screen and (orientation: portrait) {
    body:before {
        height: 100%;
        width: 30%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 12;
        content: "";
        background-image: url(images/left.webp);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: top left;
    }
    body:after {
        height: 100%;
        width: 30%;
        position: absolute;
        top: 0;
        right: 0;
        z-index: 12;
        content: "";
        background-image: url(images/right.webp);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: top right;
    }
    .flower-show:before {
        animation: fromLeft 0.2s ease forwards;
    }

    .flower-show:after {
        animation: fromRight 0.2s ease forwards;
    }

    body.flower-show2:before,
    body.flower-show2:after {
        z-index: 1;
    }

    body.flower-show2:before {
        background-image: url(images/left2.webp);
        animation: fromLeft 0.2s ease forwards;
    }

    body.flower-show2:after {
        background-image: url(images/right2.webp);
        animation: fromRight 0.2s ease forwards;
    }
    body.flower-hide:before {
        animation: toLeft 0.2s ease forwards;
    }
    body.flower-hide:after {
        animation: toRight 0.2s ease forwards;
    }
}

section {
    display: none;
    width: calc(100vh/16*9);
    min-height: 100%;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    top: 0;
    left: 0;
    z-index: 2;
    padding: calc(40 * var(--mult));
    box-sizing: border-box;
}

@media screen and (orientation: portrait) {
    section {
        width: 100%;
    }
}

section.activate {
    display: flex !important;
}

.hide {
    opacity: 0;
    transition: opacity 1s ease;
}

#quiz.hide {
    transition-duration: 1.3s;
}

.fadeIn {
    --delay-fadein: 0.15s;
    opacity: 0;
    animation: fadeIn 0.7s ease-in var(--delay-fadein) forwards;
}

.fadeOut {
    opacity: 1;
    animation: fadeOut 0.7s ease-in forwards;
}

.a2 {
    --delay-fadein: 0.3s;
}

.a3 {
    --delay-fadein: 0.45s;
}

.a4 {
    --delay-fadein: 0.6s;
}

.a5 {
    --delay-fadein: 0.75s;
}

.a6 {
    --delay-fadein: 0.9s;
}

.a7 {
    --delay-fadein: 1.05s;
}

.a8 {
    --delay-fadein: 1.2s;
}

.fadeInTop {
    --delay-fadein: 0.15s;
    opacity: 0;
    animation: fadeInTop 0.7s ease-in var(--delay-fadein) forwards;
}


.blur {
    filter: blur(8px);
}

.z-top {
    z-index: 16;
}

.dnone {
    display: none;
}

.box {
    background-color: #FDFBFA;
    color: #040000;
    text-transform: uppercase;
    padding: 0 calc(30 * var(--mult)) 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: calc(115 * var(--mult)) 0;
    box-sizing: border-box;
    text-transform: uppercase;
}

.box img {
    max-width: 80%;
}

.create .box p {
    padding: calc(75 * var(--mult)) 0;
}

.box-container {
    margin: calc(95 * var(--mult)) 0; 
    width: 100%;
}

.box-container .box {
   margin: calc(15 * var(--mult)) 0; 
}

.bevel-css {
    box-shadow: 4px -1px 4px 0px rgba(255, 255, 255, 0.5), 0.2px 0.2px 0px rgba(0, 0, 0, 0.5);

    border-radius: 0.5px;
}


button.bt {
    border: 0;
    font: inherit;
    cursor: pointer;
    outline: none;
    color: #FFFFFF;
    background-color: #E31739;
    border-radius: 5px;
    width: 80%;
    max-width: 250px;
    height: calc(110 * var(--mult));
    margin: auto 0 calc(8% - 40 * var(--mult));
    transform-origin: center;
    font-size: clamp(15px, calc(35 * var(--mult)), 40px);
    padding: 0.5rem 0.7rem;
    box-sizing: content-box;
    text-transform: uppercase;
	margin-bottom:2rem;
}

.logo {
    width: 50%;
    display: block;
    margin: calc(10% - 40 * var(--mult)) auto 0;
}

#create .logo {
    margin-bottom: calc(10% - 40 * var(--mult));
}

.form {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
    max-height: 90%;
    width: 100%;
}

.composition {
    position: relative;
    transform-origin: bottom center;
    --comp-scale: 1;
    height: calc(225 * var(--mult) * var(--comp-scale));
    margin-top: calc(400 * var(--mult) * var(--comp-scale));;
}

.create .composition {
    margin-bottom: calc(-180 * var(--mult));
}

.composition .vase {
    height: 100%;
    object-fit: contain;
}

.flex-composition {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    /* padding-bottom: 10%; */
}

.ensemble {
    position: absolute;
}

.ensemble-back {
    /* transform: scale(0.65); */
    position: absolute;
    top: 12%;
    left: 50%;
    transform: scale(calc(var(--scale) * var(--comp-scale) * 0.65));
}

.ensemble-front {
    /* transform: scale(0.48); */
    position: absolute;
    top: 26.5%;
    left: 50%;
    transform: scale(calc(var(--scale) * var(--comp-scale) * 0.45));
}

.vase {
    position: relative;
    z-index: 15;
}

.fleur {
    position: absolute;
    top: 0;
    left: 0;
}

.ensemble-1 {
    transform-origin: 100% 100%;
    transform: translate(-90%, -100%);
    --pop-angle: 22deg;
}

.ensemble-2 {
    transform-origin: 100% 100%;
    transform: translate(-100%, -100%);
    --pop-angle: 12deg;
}

.ensemble-3 {
    transform-origin: 50% 100%;
    transform: translate(-50%, -100%);
    z-index: 1;
    --pop-angle: 0;
}

.ensemble-4 {
    transform-origin: 0% 0%;
    transform: translate(0, -100%);
    --pop-angle: -12deg;
}

.ensemble-5 {
    transform-origin: 0% 0%;
    transform: translate(-10%, -100%);
    --pop-angle: -22deg;
}

.ensemble-1 .tige {
    transform: translate(0, 0);
}

.ensemble-2 .tige {
    transform: translate(0, 0);
}

.ensemble-3 .tige {
    transform: translate(0, 0);
}

.ensemble-4 .tige {
    transform: translate(0, 0);
}

.ensemble-5 .tige {
    transform: translate(0, 0);
}

.ensemble-1 .fleur {
    transform-origin: 53% 58.7%;
    transform: translate(-150px, -138px) rotate(-69deg);
}

.ensemble-2 .fleur {
    transform-origin: 53% 58.7%;
    transform: translate(-150px, -170px) rotate(-39deg);
}

.ensemble-3 .fleur {
    transform-origin: 53% 58.7%;
    transform: translate(-85px, -170px) rotate(0);
}

.ensemble-4 .fleur {
    transform-origin: 53% 58.7%;
    transform: translate(20px, -170px) rotate(30deg);
}

.ensemble-5 .fleur {
    transform-origin: 53% 58.7%;
    transform: translate(200px, -175px) rotate(75deg)
}

.anim-wrapper {
    opacity: 0;
    transform-origin: 50% 100%;
    transition: opacity 0.3s ease-out;
    --pop-angle: inherit;
}

.anim-wrapper.fade-out {
    opacity: 0;
}

@keyframes popFlower {
    0% {
        transform: scale(0.8) rotate(calc(var(--pop-angle)));
    }

    70% {
        transform: scale(1) rotate(calc(var(--pop-angle) * -0.2));
        /* léger dépassement */
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

.animate-pop {
    opacity: 1;
    animation: popFlower 0.35s ease-out;
}

input,
textarea {
    width: 100%;
    box-sizing: border-box;
    height: calc(80 * var(--mult));
    border: 0;
    font: inherit;
    font-size: calc(25 * var(--mult));
    padding:5px 8px;
    cursor: pointer;
    outline: none;
    color: #4A4A4A;
    background-color: #FFF;
    border-radius: 5px;
    box-shadow: 4px -1px 4px 0px rgba(255, 255, 255, 0.5), 0.2px 0.2px 0px rgba(0, 0, 0, 0.5);
    border-radius: 0.5px;
}

textarea {
    resize: none;
}

textarea {
    resize: none;
    overflow-y: hidden;
    box-sizing: border-box;
}

input::placeholder,
textarea::placeholder {
    font-size: inherit;
}

textarea {
    flex: 1;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    width: 100%;
    color: #4A4A4A;
}

.checkbox-label input {
    border: 0;
    box-shadow: none;
    width: fit-content;
    width: 18px;
}

/*  READ */
.enveloppe {
    max-width: 63%;
    margin-left: -4%;
    margin: auto;
}

.card {
   /* margin-bottom: auto;*/
    max-width: 100%;
    transform: perspective(400px) rotate3d(1, -1, 0, 90deg);
}

.card img {
    object-fit: contain;
    width: 80%;
}

.card.start {
    animation: rotate 0.4s 0.3s;
    animation-fill-mode: both;
	visibility:visible;
}

#read-2 .composition {
    transform-origin: bottom center;
    --comp-scale: 1.4;
    margin: 0;
    padding-bottom: 10%;
}

/* LANGUES */

.lang-collapse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 42;
    background-color: rgba(4, 0, 0, 0.9);
    font-size: calc(48 * var(--mult));
    text-transform: uppercase;
}

.lang-collapse .container {
    background-color: white;
    border-radius: 5px;
    color: #040000;
    padding: 1rem;
}

.lang-collapse .container li{
	cursor:pointer;
}

ul {
    list-style: none;
    text-align: center;
    padding: 0;
}

li {
    font-size: calc(40 * var(--mult));
    padding: 0.5rem;
}

li.selected {
    background-color: #FFC1E5;
}


button.lang {
    top: 6px;
    right: 6px;
    position: absolute;
    z-index: 42;
    background-color: white;
    border: 0;
    border-radius: 5px;
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 9px;
	cursor:pointer;
}

button.lang:before {
    content: "";
    width: 18px;
    height: 18px;
    background: url("images/globe.svg");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
}

button.lang span {
    text-transform: uppercase;
}

button.lang span.rotate {
    transform: rotate(90deg);
}


.fade {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0s linear 0.45s;
}

.fade.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease;
}

.animTop {
    transform: translateY(20%);
    transition: transform 0.4s ease;
}

.show .animTop {
    transform: translateY(0);
    
}
/* ANIMATIONS */


@keyframes fromLeft {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0%);
    }
}
@keyframes toLeft {
    from {
        transform: translateX(0%);
    }

    to {
        transform: translateX(-100%);
    }
}

@keyframes fromRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0%);
    }
}

@keyframes toRight {
    from {
        transform: translateX(0%);
    }

    to {
        transform: translateX(100%);
    }
}

@keyframes fadeInTop {
    from {
        opacity: 0;
        transform: translateY(50%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.anim-a1 {
    animation: opacity 0.6s cubic-bezier(0.250, 0.100, 0.250, 1.000) 0.1s;
    animation-fill-mode: both;
}

.anim-a2 {
    animation: opacity 0.6s cubic-bezier(0.250, 0.100, 0.250, 1.000) 0.15s;
    animation-fill-mode: both;
}

.anim-a3 {
    animation: opacity 0.6s cubic-bezier(0.250, 0.100, 0.250, 1.000) 0.2s;
    animation-fill-mode: both;
}

.anim-a4 {
    animation: opacity 0.6s cubic-bezier(0.250, 0.100, 0.250, 1.000) 0.25s;
    animation-fill-mode: both;
}

.anim-a5 {
    animation: opacity 0.6s cubic-bezier(0.250, 0.100, 0.250, 1.000) 0.3s;
    animation-fill-mode: both;
}

.anim-a6 {
    animation: opacity 0.6s cubic-bezier(0.250, 0.100, 0.250, 1.000) 0.35s;
    animation-fill-mode: both;
}

.anim-a7 {
    animation: opacity 0.6s cubic-bezier(0.250, 0.100, 0.250, 1.000) 0.4s;
    animation-fill-mode: both;
}

.anim-a8 {
    animation: opacity 0.6s cubic-bezier(0.250, 0.100, 0.250, 1.000) 0.65s;
    animation-fill-mode: both;
}

/* ANIMATION */
@keyframes opacity {
    0% {
        opacity: 0;
        visibility: hidden;
    }

    to {
        opacity: 1;
        visibility: visible;
    }
}

@keyframes opacity25p {
    0% {
        opacity: 0;
        visibility: hidden;
    }

    to {
        opacity: 0.25;
        visibility: visible;
    }
}

.zoomInAndOut {
    animation: zoomInOut 0.2s ease-in-out 1 alternate;
}

@keyframes zoomInOut {
    0% {
        transform: scale(1.0);
    }

    100% {
        transform: scale(1.5);
    }
}

@keyframes rotate {
    100% {
        transform: perspective(400px) rotate3d(1, -1, 0, 0deg);
    }
}

@media screen and (orientation: landscape) and (min-aspect-ratio: 16/9) {
    #read-2 .composition {
        --comp-scale: 1.35;
    }
}

@media screen and (orientation: portrait) and (min-aspect-ratio: 390/580) {
    #read-2 .composition {
        --comp-scale: 1.33;
    }
}

@media screen and (orientation: landscape) and (min-aspect-ratio: 1/1) and (max-aspect-ratio: 1.2/1) {}


#openPopup {
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
}

/* Overlay */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
  color: #555;
  text-transform: uppercase;
}

/* Popup */
.popup {
  background: #ffffff;
  width: 70%;
  max-width: 300px;
  border-radius: 16px;
  padding: 24px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  position: relative;
}

/* Active state */
.popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.popup-overlay.active .popup {
  transform: translateY(0);
  opacity: 1;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #555;
}

.close-btn:hover {
  color: #000;
}

/* Content */
.popup h2 {
  margin-top: 0;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

/* Buttons */
.btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  border: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
}

.actions .btn {
    aspect-ratio: 1;
    width: fit-content;
    font-size: 48px;
    width: 30%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  opacity: 0.95;
}

.mail {
  background: #3b82f6;
}

.whatsapp {
  background: #25d366;
}

.info-click {
    color:#040000;
    width: 80%;
    max-width: 250px;
}

/* :lang(en) .card{ */
.card{
    visibility: hidden;
}


/* AJOUT JC - CODE PROMO */
#code-promo-fr{
	font-size: 1.75rem;
    font-weight: bold;
    color: rgb(227, 23, 57);
	margin: 1rem 0;
}


#code-promo-text{
	color: #444;
    font-size: 0.6rem;
	margin-top: 1rem;
	font-family:arial;
	Font-weight:300;
}


@media screen and (max-width: 1282px){
    .box {
		margin: calc(50 * var(--mult)) 0;
	}
}


@media screen and (max-width: 482px){
}