/* ===========================
   STYLES PAGE SPECTACLES
   =========================== */

/* Conteneur global adapté pour intégration WordPress */
.puyducraft-wrapper {
    font-family: 'Georgia', serif;
    background-color: transparent;
    margin: 0 auto;
    padding: 20px 10px;
    padding-top: 180px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.spectacles-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 25px;
    max-width: 1400px;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.spectacle-card {
    position: relative;
    width: 300px;
    height: 300px;
    background-color: #fff;
    border-radius: 16px;
    border: 2px solid #E5D5C0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.spectacle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* Zone image supérieure */
.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 165px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ribbon-new {
    position: absolute;
    top: 22px;
    left: -45px;
    transform: rotate(-35deg);
    background-color: #0d1b2a;
    color: white;
    padding: 6px 45px;
    font-size: 11px;
    font-weight: bold;
    font-family: sans-serif;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 4;
    line-height: 1.2;
}

.ribbon-new span {
    color: #EBB614;
    display: block;
    font-size: 13px;
}

.badge-spectacle {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #EBB614;
    color: #111;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    font-family: sans-serif;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    white-space: nowrap;
}

.badge-ephemere {
    background-color: #C0392B;
    color: #FFF;
}

.badge-immersif {
    background-color: #1B4D3E;
    color: #FFF;
}

.badge-diner {
    background-color: #6B2D5C;
    color: #FFF;
}

/* --- VAGUE INCURVÉE --- */
.wave-separator {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 25px;
    z-index: 2;
    pointer-events: none;
}

.wave-separator svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Zone de texte inférieure */
.spectacle-card .card-content {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    box-sizing: border-box;
    text-align: center;
    z-index: 1;
}

.spectacle-card .card-title {
    margin: 0;
    color: #111;
    font-size: 17px;
    font-weight: bold;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- POP-UP (MODAL) --- */
.pdc-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.75);
    justify-content: center;
    align-items: center;
    padding: 15px;
    box-sizing: border-box;
}

.pdc-modal .modal-content {
    background-color: #FFFDF9;
    padding: 25px;
    border-radius: 16px;
    max-width: 550px;
    width: 100%;
    text-align: center;
    position: relative;
    border: 2px solid #E5D5C0;
    animation: pdcFadeIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

@keyframes pdcFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.pdc-modal .close-btn {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 26px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
}

.pdc-modal .close-btn:hover { color: #000; }

.pdc-modal .modal-title { color: #8B0000; margin-top: 5px; font-size: 24px; }
.pdc-modal .modal-duration { font-family: sans-serif; font-weight: bold; color: #EBB614; background: #222; display: inline-block; padding: 4px 14px; border-radius: 12px; margin: 10px 0; font-size: 13px; }
.pdc-modal .modal-desc { font-family: sans-serif; color: #444; line-height: 1.5; font-size: 14px; margin-bottom: 15px; }

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* RESPONSIVE SMARTPHONE */
@media (max-width: 600px) {
    .puyducraft-wrapper {
        padding: 220px 5px 10px;
    }
    .spectacles-container {
        gap: 15px;
    }
    .spectacle-card {
        width: 100%;
        max-width: 320px;
        height: 280px;
    }
    .pdc-modal .modal-content {
        padding: 20px 15px;
    }
}

/* BANNIERE CUSTOM DIAGONALE (Haut Gauche) */
.badge-custom {
    position: absolute !important;
    top: 25px !important;
    left: -45px !important;
    transform: rotate(-45deg) !important;
    background-color: rgba(184, 29, 36, 0.95) !important;
    color: #fff !important;
    font-weight: bold !important;
    padding: 6px 40px !important;
    border: 1px solid #EBB614 !important;
    width: 200px !important;
    text-align: center !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3) !important;
    bottom: auto !important; /* On annule le bottom par defaut de badge-spectacle */
    font-size: 11px !important;
}
