/**
 * Styles pour la popup Poème du Mois - VERSION MOIS UNIQUE
 * 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 5px;
    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;
    z-index: 10;
}

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

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

/* Masquer complètement la scrollbar */
.poeme-content::-webkit-scrollbar {
    display: none;
    width: 0 !important;
    height: 0 !important;
}

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

.poeme-content p:last-child {
    margin-bottom: 0;
}

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

/* Style de l'auteur en fin de poème */
.poeme-auteur {
    font-family: 'Dancing Script', cursive;
    font-size: 28px;
    font-weight: 700;
    color: #8b4513;
    margin-top: 30px !important;
    text-align: center;
}

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

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

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

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

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

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

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

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

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

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

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