/* --- art.css --- */
.art-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Sous la navbar */
    pointer-events: none;
}

#treeCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#initial-heart-container {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.5s ease;
}

.big-heart {
    font-size: 3rem;
    filter: drop-shadow(0 0 10px rgba(166, 77, 255, 0.5));
    margin-right: -10px; /* Overlap with line */
    z-index: 2;
    transition: transform 0.3s ease;
}

.heart-text-wrapper {
    display: inline-block;
    border-bottom: 2px solid;
    border-left: 2px solid;
    border-image: linear-gradient(to right, #ff4db8, #a64dff) 1;
    padding-left: 15px;
    padding-bottom: 5px;
    padding-right: 10px;
    transform: translateY(10px);
}

.heart-text {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
    background: linear-gradient(to right, #ff4db8, #a64dff);
    -webkit-background-clip: text;
    color: transparent;
}

#initial-heart-container:hover .big-heart {
    transform: scale(1.1);
}

#animation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Empêche de bloquer les clics */
}

#poem-container {
    position: absolute;
    top: 20%;
    left: 10%;
    max-width: 400px;
}

#poem-text {
    font-size: 1.2rem;
    color: var(--color-light);
    line-height: 1.8;
    text-shadow: 0px 2px 4px rgba(0,0,0,0.8);
}

#timer-container {
    position: absolute;
    bottom: 15%;
    left: 10%;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.timer-intro {
    font-size: 1rem;
    color: var(--color-light);
    margin-bottom: 5px;
    text-shadow: 0px 2px 4px rgba(0,0,0,0.8);
}

#timer-text {
    font-size: 1.2rem;
    font-weight: bold;
    background: linear-gradient(to right, #ff4db8, #a64dff);
    -webkit-background-clip: text;
    color: transparent;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.8));
}

/* Responsive Mobile (Téléphone) */
@media (max-width: 768px) {
    #poem-container {
        top: 10%;
        left: 5%;
        width: 90%;
    }
    #poem-text {
        font-size: 1rem;
    }
    #timer-container {
        bottom: 5%;
        left: 5%;
        width: 90%;
        text-align: center;
    }
    .timer-intro {
        font-size: 0.85rem;
    }
    #timer-text {
        font-size: 1rem;
    }
    .big-heart {
        font-size: 2.5rem;
    }
    .heart-text {
        font-size: 1.1rem;
    }
}
