/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Sacramento&family=Montserrat:wght@400;600&display=swap'); /* ------------------------------------ */

/* ------------------------------------ */
/* BASE RESET & TYPOGRAPHIE             */
/* ------------------------------------ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Montserrat', sans-serif;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    height: 100%;
    background: linear-gradient(to bottom, #fff0f5, #ffe4e1);
    color: #333;
    overflow-x: hidden;
}

p {
    white-space: pre-line;
}

#container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
}

/* ------------------------------------ */
/* COUNTDOWN                            */
/* ------------------------------------ */

#home {
    text-align: center;
    padding-bottom: 240px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#title {
    font-family: 'Sacramento', cursive;
    font-size: 3rem;
    color: #ff6f91;
    margin-bottom: 20px;
    text-shadow: 1px 1px 4px rgba(255,111,145,0.6);
}

#countdown {
    font-size: 3rem;
    font-weight: 700;
    color: #ff385c;
    text-shadow: 0 0 10px #ff385c66, 0 0 20px #ff6f9166;
    animation: pulse 1.5s infinite alternate;
    margin-bottom: 20px;
}

@keyframes pulse {
    0% { text-shadow: 0 0 10px #ff385c66, 0 0 20px #ff6f9166; transform: scale(1); }
    50% { text-shadow: 0 0 20px #ff385c88, 0 0 30px #ff6f9188; transform: scale(1.05); }
    100% { text-shadow: 0 0 10px #ff385c66, 0 0 20px #ff6f9166; transform: scale(1); }
}

#buttons {
    margin-top: 5%;
    width: 60%;
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.button {
    width: 150px;
    padding: 14px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    color: white;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

#yes-button {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

#yes-button:hover {
    box-shadow: 0 10px 22px rgba(34, 197, 94, 0.35);
}

#yes-button:active {
    transform: translateY(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#no-button {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}

#no-button:hover {
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.35);
}

#no-button:active {
    transform: translateY(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.button:hover {
    transform: translateY(-3px);
}

.button-image {
    width: 40px;
    height: 40px;
}

/* ------------------------------------ */
/* CARDS                                */
/* ------------------------------------ */

#cards {
    display: flex;
    flex-direction: column;
    gap: 60px;
    width: 100%;
    max-width: 1200px;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: #fff0f5;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(255,111,145,0.3);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.card .header {
    text-align: center;
    width: 100%;
    margin-bottom: 15px;
}

.card .title {
    font-family: 'Sacramento', cursive;
    font-size: 2rem;
    color: #ff6f91;
    text-shadow: 1px 1px 4px rgba(255,111,145,0.5);
}

.card .content {
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex: 1;
}

.card .content img.image {
    width: 40%;
    max-width: 250px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(255,111,145,0.3);
    animation: float 6s ease-in-out infinite;
    transform: rotate(-2deg);
}

.card .content .text {
    flex: 1;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.5;
    text-align: center;
}

.card .content.even {
    flex-direction: row-reverse;
}

.drop {
    position: absolute;
    width: 6px;
    height: 10px;
    background: #00aaff;
    border-radius: 50%;
    animation: dropDown 1s ease-out forwards;
}

@keyframes dropDown {
    0% { opacity: 1; transform: translateY(0) rotate(0deg); }
    100% { opacity: 0; transform: translateY(60px) rotate(45deg); }
}

.heart {
    position: absolute;
    width: 20px;
    height: 20px;
    background: red;
    transform: rotate(-45deg);
    animation: floatUp 1s ease-out forwards;
}

.heart::before,
.heart::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background: red;
    border-radius: 50%;
}

.heart::before {
    top: -10px;
    left: 0;
}

.heart::after {
    top: 0;
    left: 10px;
}

@keyframes floatUp {
    0% { opacity: 1; transform: translate(0,0) rotate(-45deg) scale(1); }
    100% { opacity: 0; transform: translate(0,-100px) rotate(-45deg) scale(0.5); }
}

/* ------------------------------------ */
/* ANIMATIONS IMAGE FLOTTANTE           */
/* ------------------------------------ */

@keyframes float {
    0% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(-2deg); }
}

/* ------------------------------------ */
/* RESPONSIVE                           */
/* ------------------------------------ */

@media screen and (max-width: 900px) {
    .card {
        flex-direction: column;
        text-align: center;
    }
    .card .content, .card .content.even {
        flex-direction: column;
        align-items: center;
    }
    .card .content img.image {
        width: 80%;
        max-width: 300px;
        margin-bottom: 15px;
        transform: rotate(0deg);
    }
}
