/* ==========================================================================
   1. Styles de base et layout principal
   ========================================================================== */
body.single-spectacle {
    background-color: #ffffff;
}

body.single-spectacle .ct-container {
    padding: 0;
    margin: 0;
    max-width: none;
    width: 100%;
    background-color: #ffffff;
}

.spectacle-container {
    display: grid;
    grid-template-columns: 50% 50%;
    margin: 0;
    padding: 0;
    max-width: 100%;
    height: auto;
    min-height: 100vh;
    overflow: visible;
}

/* ==========================================================================
   2. Colonne média et diaporama
   ========================================================================== */
.spectacle-media-column {
    position: sticky;
    top: 130px;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(to right,
        var(--theme-color) 50%,
        transparent 50%
    ) !important;
}

/* Container du diaporama */
.spectacle-slideshow-container {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Diaporama */
.spectacle-slideshow {
    width: 100%;
    height: 600px;
    position: relative;
}

/* Slides */
.slideshow-item {
    height: 600px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Images du diaporama */
.slideshow-image,
.single-image {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Container pour image unique */
.single-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Slick slider elements */
/* .slick-list,
.slick-track,
.slick-slide,
.slick-slide > div {
    height: 600px !important;
}

.slick-slide {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slick-active {
    opacity: 1;
} */

/* Navigation du diaporama */
.spectacle-slideshow .slick-prev,
.spectacle-slideshow .slick-next {
    width: 44px;
    height: 44px;
    background-color: transparent !important;
    border: 2px solid #ffffff;
    z-index: 2;
}

.spectacle-slideshow .slick-prev {
    left: 20px;
}

.spectacle-slideshow .slick-next {
    right: 20px;
}

.spectacle-slideshow .slick-prev:before,
.spectacle-slideshow .slick-next:before {
    font-family: monospace;
    font-size: 20px;
    line-height: 1;
    color: #ffffff;
    opacity: 1;
}

.spectacle-slideshow .slick-prev:before {
    content: "<";
}

.spectacle-slideshow .slick-next:before {
    content: ">";
}

.spectacle-slideshow .slick-prev:hover,
.spectacle-slideshow .slick-next:hover {
    background-color: #ffffff !important;
}

.spectacle-slideshow .slick-prev:hover:before,
.spectacle-slideshow .slick-next:hover:before {
    color: #000000;
}

.spectacle-slideshow .slick-dots {
    display: none !important;
}

/* ==========================================================================
   3. Colonne de contenu
   ========================================================================== */
.spectacle-content-column {
    padding-left: 0rem;
    padding-right: 4rem;
    padding-bottom: 4rem;
    max-width: 720px;
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

/* Catégorie */
.spectacle-category {
    font-family: 'Kelpt', sans-serif;
    font-size: 1.2em;
    color: #1f1f1f;
    text-transform: uppercase;
}

/* Sous-catégories */
.spectacle-subcategories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 8px !important;
}

.spectacle-subcategory {
    display: inline-block !important;
    padding: 5px 10px !important;
    margin-right: 10px !important;
    background-color: #1f1f1f !important;
    color: #ffffff !important;
    font-family: 'Kelpt', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 3px !important;
}

/* Titre */
.entry-title {
    font-family: 'Kelpt', sans-serif;
    font-size: 3em;
    font-weight: 900;
    line-height: 1;
    margin: 0;
}

/* Dates et lieu */
.spectacle-dates .date-item {
    margin-bottom: 1rem;
}

.spectacle-dates .date {
    font-family: 'Kelpt', sans-serif;
    font-size: 1.4em;
    font-weight: 700;
    line-height: 1.2;
    color: #1f1f1f !important;
    border-bottom-width: 4px;
    border-bottom-style: solid;
    padding-bottom: 0px;
    display: inline-block;
}

.spectacle-dates .time {
    font-family: 'Kelpt', sans-serif;
    font-size: 0.8em;
    font-weight: 500;
    color: #666666 !important;
    margin-left: 0.5em;
}

.spectacle-dates .lieu {
    color: #666666;
    font-size: 1.1em;
    line-height: 1em;
    margin-top: 0.25em;
    display: block;
}

/* Citation */
.spectacle-citation {
    position: relative !important;
    margin: 10px 0 !important;
    padding: 0 0 0 10px !important;
    font-family: 'Kelpt', sans-serif !important;
    font-size: 28px !important;
    font-style: italic !important;
    line-height: 1.4 !important;
    color: #1f1f1f !important;
    border-left: none !important;
}

.spectacle-citation::before {
    content: '"' !important;
    position: absolute !important;
    left: 0 !important;
    top: -20px !important;
    font-family: 'Kelpt', sans-serif !important;
    font-size: 120px !important;
    font-style: normal !important;
    line-height: 1 !important;
}

.spectacle-subtitle {
    font-family: 'Kelpt', sans-serif;
    font-size: 1.2em;
    line-height: 1em;
    font-weight: 500;
    color: #1f1f1f;
}

.spectacle-description {
    margin-top: 2rem;
    color: #1f1f1f;
    font-size: 1.1em;
    line-height: 1.6;
}
/* Description */

.spectacle-ressources {
    margin-top: 2rem;
    color: #666666;
    font-size: 1.1em;
    line-height: 1.6;
}

.spectacle-description p,
.spectacle-ressources p {
    margin-bottom: 1.5em;
}

.spectacle-description p:last-child,
.spectacle-ressources p:last-child {
    margin-bottom: 0;
}

/* Documents */
.spectacle-documents {
    margin: 40px 0 !important;
}

.spectacle-documents h2 {
    font-family: 'Kelpt', sans-serif !important;
    font-size: 28px !important;
    font-weight: 900 !important;
    color: #1f1f1f !important;
    margin-bottom: 20px !important;
}

.documents-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

/* Boutons (Documents et Réservation) */
.document-download-button,
.reservation-button {
    font-family: 'Kelpt', sans-serif !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 12px 24px !important;
    font-size: 1.2em !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

/* Style spécifique pour le bouton document */
.document-download-button {
    border: 2px solid #1f1f1f !important;
    color: #1f1f1f !important;
    background-color: transparent !important;
}

.document-download-button:hover {
    background-color: #1f1f1f !important;
    color: #ffffff !important;
}

/* Style spécifique pour le bouton réservation */
.reservation-button {
    border: 2px solid #1f1f1f !important;
    color: #ffffff !important;
    background-color: #1f1f1f !important;
}

.reservation-button:hover {
    background-color: transparent !important;
    color: #1f1f1f !important;
}

/* Vidéos */
.video-container {
    margin: 2rem 0;
}

.video-container iframe {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16/9;
}

/* Son / Audio (sous les vidéos) */
.spectacle-audios {
    margin-top: 2rem;
}

.spectacle-audios .audio-container {
    margin-bottom: 1.5rem;
}

.spectacle-audios .audio-container:last-child {
    margin-bottom: 0;
}

.spectacle-audios .audio-title {
    font-family: 'Kelpt', sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    color: #1f1f1f;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.spectacle-audios .audio-file audio {
    max-width: 100%;
    height: 48px;
}

.spectacle-audios .audio-soundcloud iframe {
    max-width: 100%;
}

/* ==========================================================================
   4. Thèmes de couleur
   ========================================================================== */
/* Définir les couleurs pour chaque thème */
.spectacle-media-column.coral { --theme-color: #eb504b; }
.spectacle-media-column.mint { --theme-color: #c5f5e7; }
.spectacle-media-column.lavender { --theme-color: #90a8e6; }
.spectacle-media-column.sunflower { --theme-color: #f1c935; }
.spectacle-media-column.slate { --theme-color: #efd9b2; }
.spectacle-media-column.rose { --theme-color: #eec6f8; }

/* Couleurs de la bordure des dates selon le thème */
.spectacle-content-column.coral .date { border-bottom-color: #eb504b; }
.spectacle-content-column.mint .date { border-bottom-color: #c5f5e7; }
.spectacle-content-column.lavender .date { border-bottom-color: #90a8e6; }
.spectacle-content-column.sunflower .date { border-bottom-color: #f1c935; }
.spectacle-content-column.slate .date { border-bottom-color: #efd9b2; }
.spectacle-content-column.rose .date { border-bottom-color: #eec6f8; }

/* Couleurs du guillemet selon le thème */
.spectacle-content-column.coral .spectacle-citation::before { color: #eb504b !important; }
.spectacle-content-column.mint .spectacle-citation::before { color: #c5f5e7 !important; }
.spectacle-content-column.lavender .spectacle-citation::before { color: #90a8e6 !important; }
.spectacle-content-column.sunflower .spectacle-citation::before { color: #f1c935 !important; }
.spectacle-content-column.slate .spectacle-citation::before { color: #efd9b2 !important; }
.spectacle-content-column.rose .spectacle-citation::before { color: #eec6f8 !important; }

/* ==========================================================================
   5. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .spectacle-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .spectacle-media-column {
        position: relative;
        height: 600px;
        top: 0px;
    }

    .spectacle-content-column {
        height: auto;
        padding: 2rem;
    }

    .slideshow-image,
    .single-image {
        max-width: 100%;
        max-height: 100%;
    }
}

/* Suppression de la bordure des blockquotes */
blockquote:not(.is-style-plain):not(.has-text-align-center):not(.has-text-align-right) {
    border-inline-start: 0px !important;
}

/* ==========================================================================
   6. Styles du back-office
   ========================================================================== */
/* Gestion de l'affichage des dates dans le back-office */
.date-type-unique .date-range-fields {
    display: none !important;
}

.date-type-range .date-unique-field {
    display: none !important;
}

/* Pour s'assurer que les champs sont bien visibles quand nécessaire */
.date-type-range .date-range-fields {
    display: block !important;
}

.date-type-unique .date-unique-field {
    display: block !important;
}