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

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    font-family: serif;
    color: #f4f7f7;
    height: 100vh;
    background-color: #000;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .55);
    backdrop-filter: blur(1px);
}

body * {
    z-index: 1;
}

.year {
    font-size: 10rem;
    z-index: -0.5;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    opacity: 0.3;
    font-weight: 900;
    color: #fff;
    text-shadow: 2px 2px 15px rgba(255,255,255,0.2);
    letter-spacing: 5px;
}

h1 {
    font-size: 60px;
    margin: -60px 0 40px;
    text-transform: none;
    letter-spacing: normal;
    position: relative;
    z-index: 0;
    font-weight: 700;
}

#span1, #span2 {
    color: #ff69b4;
    font-weight: 700;
    transition: color 0.3s ease;
}

#span1:hover, #span2:hover {
    color: #ff1493;
}

.countdown {
    display: flex;
    visibility: hidden;
    opacity: 0;
    transform: scale(2);
    transition: opacity .3s ease, visibility .3s ease;
    gap: 2rem;
    position: relative;
    z-index: 2;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
}

.time {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 15px;
    background: none;
    backdrop-filter: none;
    padding: 0;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.time:hover {
    transform: none;
    box-shadow: none;
}

.time h2 {
    margin: 0 0 5px;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.time small {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.loading {
    position: absolute;
    width: 100px;
    height: auto;
    opacity: .75;
    transition: .1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.video-background {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -2;
    animation: fadeIn 2s ease-in;
}

.video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translateX(-50%) translateY(-50%);
    pointer-events: none;
}

@media (max-width: 768px) {
    body {
        justify-content: center;
        padding-top: 0;
    }

    .year {
        font-size: 6rem;
        top: 20px;
        transform: translate(-50%, 0);
        opacity: 0.1;
    }

    h1 {
        font-size: 2.5rem;
        margin: 0 0 30px;
    }

    .countdown {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 0;
        margin: 0;
        transform: scale(1);
    }

    .time {
        padding: 10px;
        margin: 0;
        min-width: 120px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }

    .time h2 {
        font-size: 2.5rem;
        margin-bottom: 5px;
    }

    .time small {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
}

/* Pour les très petits écrans */
@media (max-width: 360px) {
    body {
        justify-content: center;
        padding-top: 0;
    }

    .year {
        font-size: 5rem;
        top: 10px;
    }

    h1 {
        font-size: 2rem;
        margin: 0 0 20px;
    }

    .countdown {
        gap: 10px;
    }

    .time {
        min-width: 100px;
        padding: 8px;
    }

    .time h2 {
        font-size: 2rem;
    }

    .time small {
        font-size: 0.8rem;
    }
}

/* Pour les téléphones en mode paysage */
@media (max-height: 500px) {
    body {
        justify-content: center;
        padding: 0;
    }

    .year {
        font-size: 4rem;
        top: 5px;
    }

    .countdown {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .time {
        min-width: 90px;
    }

    .time h2 {
        font-size: 1.8rem;
    }
}

.container, .loader-container {
    display: none;
}

.wish-button {
    padding: 10px 20px;
    font-size: 1.2rem;
    color: #fff;
    background-color: #ff69b4;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 2;
    margin-top: 70px;
}

.wish-button:hover {
    background-color: #ff1493;
}

.send-button {
    padding: 10px 20px;
    font-size: 1.2rem;
    color: #fff;
    background-color: #25D366;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.send-button:hover {
    background-color: #128C7E;
}