@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Great+Vibes&display=swap');
@import url('https://cdn.jsdelivr.net/npm/@fontsource/stack-sans-text/index.css');

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-container {
    display: flex;
    padding: 4em;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

h1 {
    font-family: 'Stack Sans Text', sans-serif;
    text-transform: uppercase;
    font-size: 3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.containerLeft{
    padding-inline: 2em;
    max-width: 35em;
}

.containerRight{
    padding-inline: 2em;
    width: 25em;
}

.intro{
    text-align: justify;
}

.contentLog{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.letter {
    background: linear-gradient(145deg, #fff0f5, #ffe6f1);
    padding: 1.5rem;
    border-radius: 25px;
    margin-bottom: 2rem;
    box-shadow: 0 15px 35px rgba(255,105,150,0.2);
}

.btn-continue {
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
}

.btn-continue:hover {
    transform: translateY(-3px) scale(1.05);
}

.login-form{
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-form input {
    width: 100%;
    height: 2.75rem;
    font-size: 1.2rem;
    border-radius: 15px;
    border: 2px solid #ff91b7;
    padding: 0.25rem 0.75rem;
    transition: all 0.3s ease;
}

.login-form input:focus {
    border-color: #ff4b8b;
    box-shadow: 0 0 10px rgba(255,111,163,0.3);
    outline: none;
}


.error {
    color: #b3003c;
    font-weight: bold;
    margin-top: 0.5rem;
}

.indice, #hint-text {
    color: #d4418e;
    font-size: 0.95rem;
    margin-top: 1rem;
}


.countdown {
    background: linear-gradient(145deg, #ff9aa2, #ffc0cb);
    color: #fff;
    border-radius: 25px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(255,105,150,0.2);
    margin-bottom: 2rem;
}
.countdown .timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.time-box {
    background: rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    min-width: 100px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    cursor: default;
}
.time-box:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(255,105,150,0.3);
}
.time-box span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}
.time-box small {
    display: block;
    font-size: 0.85rem;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
a.day {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.25rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    background: #fff;
    color: #aaa;
    box-shadow: 0 8px 15px rgba(255,105,150,0.1);
    cursor: not-allowed;
}
a.day.open {
    background: linear-gradient(145deg, #ff6fa3, #ff91b7);
    color: #fff;
    cursor: pointer;
}
a.day.open:hover {
    transform: scale(1.1) translateY(-3px);
    background: linear-gradient(145deg, #ff91b7, #ff4b8b);
    box-shadow: 0 12px 25px rgba(255,105,150,0.25);
}
a.day.locked {
    background: #fff0f5;
    color: #ccc;
}

.divButton {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}


/* Popup fermé = aucun blocage */
#popup-overlay:not(.show),
#popup-letter:not(.show) {
    z-index: -9999 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Overlay flouté */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: 0.03s;
    z-index: 10;
}

.popup-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* Conteneur popup */
.popup-letter {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    transform: translate(-50%, -45%) scale(0.9);
    border-radius: 15px;
    padding: 25px;
    opacity: 0;
    transition: 0.03s;
    z-index: 11;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.popup-letter.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Bouton fermer */
.close-popup {
    background: none;
    border: none;
    font-size: 28px;
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
    color: #ff4b8c;
}

/* Images dans la lettre */
.popup-letter img {
    width: 100%;
    margin-top: 10px;
    border-radius: 10px;
}






@media (max-width: 768px) {    
    .time-box {
        min-width: 70px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    .btn-continue, form button {
        font-size: 1.5rem;
    }
    h1 {
        font-size: 2.5rem;
    }
}


@media (max-width: 900px){
    
    .containerLeft{
        width: 100%;
    }
    
    .containerRight{
        width: 100%;
    }

    .page-container {
        padding: 0!important;
    }


    .btn-continue{
        font-size: 0.5rem;
    }
}
