@charset "utf-8";

body {
    min-height: 100vh;
    color: #fff;
    font-family: "Gabarito", serif;
    overflow-x: hidden;
    background: #000;
}

a {
    color: rgb(240, 187, 107);
}

#video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

#video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#video-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.fallback-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

header {
    overflow-x: hidden;
}

.navbar-brand {
    max-width: 350px;
}

.navbar-brand img {
    margin-bottom: -5px;
}

.porteur {
    max-width: 400px;
}

.lead {
    font-weight: 400;
}

.text-primary {
    color: #d5fdff !important;
}

.text-warning {
    color: #fff1b3 !important;
}

.text-success {
    color: rgb(72, 195, 97) !important;
}

.text-glow {
    animation: magic-glow 2s infinite ease-in-out;
}

@keyframes magic-glow {
    0% {
        text-shadow: 0 0 10px rgba(233, 213, 161, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(233, 213, 161, 0.7);
    }
    100% {
        text-shadow: 0 0 10px rgba(233, 213, 161, 0.3);
    }
}

.bg-primary {
    background-color: #848072 !important;
}

.bg-secondary {
    background-color: rgb(152, 151, 131) !important;
    position: relative;
}

.bg-dark {
    background-color: rgb(37, 49, 62) !important;
}

.bg-info {
    background-color: rgb(74, 0, 138) !important;
}

.card-slot {
    width: 175px;
    height: 263px;
    animation: glow 2s infinite ease-in-out;
    background: url("../img/bg-card.webp") center top scroll no-repeat;
    background-size: cover;
    position: relative;
}

.card-slot::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 0;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 10px rgba(215, 201, 163, 0.4);
    }
    50% {
        box-shadow: 0 0 24px rgba(215, 201, 163, 0.7);
    }
    100% {
        box-shadow: 0 0 10px rgba(215, 201, 163, 0.4);
    }
}


.card-name {
    min-height: 36px;
    max-width: 100% !important;
}

#availablecards {
    transform: perspective(800px) rotateX(25deg);
}

.card-slot .card-option {
    margin: 0;
}

.card-option {
    width: 80px;
    height: 122px;
    perspective: 1000px;
    cursor: pointer;
    margin: -4px;
    position: relative;
    animation: floatOneByOne 1s ease-in-out 1 forwards;
    animation-delay: var(--delay, 0s);
    transition: margin-top 0.3s ease;
}

.card-option:hover {
    margin-top: -15px;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card-inner.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.card-front {
    transform: rotateY(180deg);
}

.card-back {
    transform: rotateY(0deg);
}

@keyframes floatOneByOne {
    0% {
        transform: translateY(0);
        filter: brightness(1);
    }
    50% {
        transform: translateY(-10px);
        filter: brightness(1.5);
    }
    100% {
        transform: translateY(0);
        filter: brightness(1);
    }
}

@keyframes flyToSlot {
    0% {
        transform: translate(0, 0) scale(1) rotateY(0deg);
    }
    50% {
        transform: translate(calc(var(--dx) * 0.5), calc(var(--dy) * 0.5)) scale(2) rotateY(180deg);
    }
    100% {
        transform: translate(var(--dx), var(--dy)) scale(2) rotateY(360deg);
    }
}

#questionnaire {
    display: none;
}

.question-step {
    display: none;
}

.question-step.active {
    display: block;
}

.progress {
    background-color: #424242;
    height: 25px;
}

.progress-bar {
    background-color: #4d9d5d;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(145deg, #fff 0%, #ffe9b7 40%, #dde6e2 80%, #7aa49a 100%);
    color: #25313e;
    border-radius: 48px;
    border: 1px solid rgba(255, 239, 200, 0.5) !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 5px 12px rgba(255, 230, 170, 0.4), inset 0 0 3px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(2px);
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    border-radius: 46px;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    pointer-events: none;
}

.btn-primary:hover {
    background: linear-gradient(145deg, #7aa49a 0%, #dde6e2 40%, #ffe9b7 80%, #fff 100%);
    color: #25313e;
    box-shadow: 0 8px 24px rgba(255, 215, 140, 0.5),
    inset 0 0 2px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.04);
}

.card {
    padding: 40px;
    border-radius: 20px;
}

#questionnaire .card-body {
    min-height: 538px;
}

#gift {
    font-size: 3rem;
}

footer, footer a {
    color: #3a3a3a;
}

.form-control, .form-select, .form-check {
    max-width: 500px;
    margin: 0 auto;
}

.porteur-final {
    float: left;
    max-width: 270px;
    margin-right: 30px;
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 10px rgb(255, 241, 202);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 100;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.countdown {
    width: 56px;
    display: inline-block;
}

#testimonials {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 1));
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 0 15px rgb(255, 243, 213);
    min-height: 152px;
}

.testimonial-author {
    margin-top: 10px;
    font-size: 14px;
}

.video-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

.video-wrapper video::-webkit-media-controls {
    display: none !important;
}

.video-wrapper video {
    background: url('../img/about.webp') center center / cover no-repeat;
}

.gift {
    max-width: 400px;
}

#infoIcon {
    cursor: pointer;
    color: white !important;
}

.popover-header {
    color: black;
}

.sticky-card-bar {
    background: #25313E !important;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    position: relative;
    z-index: 100;
}

.sticky-card-bar img {
    height: 104px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
    object-fit: cover;
}

.sticky-card-bar img:hover {
    transform: scale(2);
}

.row.g-2 {
    max-width: 510px;
    margin: 0 auto;
}

.prev-step {
    color: #fff;
    font-size: 1rem;
    position: absolute;
    left: 10px;
    text-decoration: none !important;
    top: 10px;
    background: #848072;
    border-radius: 50px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1200px;
    }
}

@media (max-width: 1199px) {
    .navbar {
        background: transparent !important;
    }

    .navbar-brand {
        max-width: 220px;
    }

    .navbar .order-4 {
        background: #25313e;
    }

    h1.h4 {
        font-size: 1.1rem;
    }

    p.h4 {
        font-size: 1.2rem;
    }

    p.h5 {
        font-size: 1rem;
    }

    h2.h5 {
        font-size: 1.15rem;
    }

    .card-slot {
        width: 100px;
        height: 150px;
    }

    .card-option {
        width: 50px;
        height: 75px;
        margin: -2px;
    }

    .card-name {
        min-height: 27px;
        font-size: .65rem;
    }

    .card {
        padding: 20px 10px 10px 10px;
    }

    .porteur {
        max-width: 300px;
    }

    .lead {
        font-size: 1rem;
    }

    #video-container {
        position: absolute;
        z-index: inherit;
        max-height: 500px;
    }

    #video-container::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 50%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
        pointer-events: none;
        z-index: 1;
    }

    .card-option:hover {
        margin-top: inherit !important;
    }

    .card-body {
        min-height: inherit;
    }

    .porteur-final {
        max-width: 140px;
        margin-right: 10px;
    }

    body::before {
        display: none;
    }

    .h2, h2 {
        font-size: calc(1.325rem + .7vw);
    }

    .notification {
        font-size: 12px;
        right: 20px;
    }

    #questionnaire .card-body {
        min-height: inherit;
    }
}

@media (max-width: 575px) {
    #video-container {
        margin-top: 50px;
        max-height: 350px;
    }

    #video-container::before {
        height: 30%;
    }

    #tarot, #questionnaire {
        background: url(../img/bg-mobile.webp) center top scroll no-repeat;
        background-size: cover;
    }

    .sticky-card-bar img {
        height: 48px;
    }

    .small, small {
        font-size: .7em;
    }

    .form-select {
        padding-right: 0;
    }

    .countdown {
        width: 40px;
    }
}