/**
 * Styles pour la popup Poème du Mois
 * Thème: 1_astra-child - Or des Plantes
 */

/* === OVERLAY DE LA POPUP === */
.poeme-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.poeme-overlay.active {
    opacity: 1;
}

/* === CONTAINER PRINCIPAL DE LA POPUP === */
.poeme-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 90%;
    max-width: 611px;
    max-height: 511px;
    background: linear-gradient(135deg, #f4f1e8 0%, #e8dcc0 100%);
    border: 2px solid #d4af37;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    overflow: hidden;
    position: relative;
}

.poeme-overlay.active .poeme-popup {
    transform: translate(-50%, -50%) scale(1);
}

/* === HEADER DE LA POPUP === */
.poeme-header {
    padding: 20px 50px 15px;
    border-bottom: 1px solid #d4af37;
    background: linear-gradient(135deg, #f9f6ef 0%, #ede1c8 100%);
    position: relative;
}

.poeme-titre {
    font-family: 'Dancing Script', cursive;
    font-size: 28px;
    font-weight: 700;
    color: #8b4513;
    text-align: center;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.poeme-date {
    font-family: 'Dancing Script', cursive;
    font-size: 16px;
    color: #a0522d;
    text-align: center;
    margin: 0;
    font-style: italic;
}

/* === BOUTON DE FERMETURE === */
.poeme-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #8b4513;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s ease;
}

.poeme-close:hover {
    color: #d4af37;
}

/* === CONTENU DU POÈME === */
.poeme-content {
    padding: 25px 30px;
    max-height: calc(511px - 120px);
    overflow-y: auto;
    font-family: 'Dancing Script', cursive;
    font-size: 18px;
    line-height: 1.6;
    color: #5d4037;
    text-align: center;
}

.poeme-content::-webkit-scrollbar {
    width: 8px;
}

.poeme-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.poeme-content::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 4px;
}

.poeme-content::-webkit-scrollbar-thumb:hover {
    background: #b8941f;
}

/* === FORMATAGE DU CONTENU POÉTIQUE === */
.poeme-content p {
    margin: 0 0 20px 0;
}

.poeme-content br + br {
    display: block;
    content: "";
    margin-top: 15px;
}

/* === FLÈCHES DE NAVIGATION === */
.poeme-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.8);
    border: none;
    color: white;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poeme-nav:hover {
    background: rgba(212, 175, 55, 1);
    transform: translateY(-50%) scale(1.1);
}

.poeme-nav.prev {
    left: -20px;
}

.poeme-nav.next {
    right: -20px;
}

.poeme-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.poeme-nav:disabled:hover {
    transform: translateY(-50%) scale(1);
    background: rgba(212, 175, 55, 0.8);
}

/* === INDICATEUR DE POSITION === */
.poeme-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Dancing Script', cursive;
    font-size: 14px;
    color: #8b4513;
    background: rgba(255, 255, 255, 0.7);
    padding: 5px 10px;
    border-radius: 15px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .poeme-popup {
        width: 95%;
        max-width: 95vw;
        max-height: 80vh;
    }

    .poeme-header {
        padding: 15px 40px 10px;
    }

    .poeme-titre {
        font-size: 24px;
    }

    .poeme-date {
        font-size: 14px;
    }

    .poeme-content {
        padding: 20px 25px;
        font-size: 16px;
    }

    .poeme-nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .poeme-nav.prev {
        left: -17px;
    }

    .poeme-nav.next {
        right: -17px;
    }
}

@media (max-width: 480px) {
    .poeme-popup {
        max-height: 85vh;
    }

    .poeme-header {
        padding: 15px 35px 10px;
    }

    .poeme-titre {
        font-size: 20px;
    }

    .poeme-content {
        padding: 15px 20px;
        font-size: 15px;
    }
}

/* === ANIMATION DE TRANSITION ENTRE POÈMES === */
.poeme-content.transitioning {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.poeme-content.slide-in {
    opacity: 1;
    transform: translateX(0);
}