/* ============================================================
   STYLES GLOBAUX
   ============================================================ */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: white;
    background-color: #000;
}


/* ============================================================
   EN-TÊTE / NAVIGATION
   ============================================================ */
.header-background {
    background-color: rgba(190, 21, 34, 1);
    padding: 5px 0;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(5px);
    transition: background-color 0.3s ease;
}

.header-background nav ul {
    list-style: none;
    margin: 0;
    padding: 0 4%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
}

.header-background nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.header-background nav ul li a:hover {
    color: black;
}

/* Pousse les icônes réseaux sociaux vers la droite */
.header-background nav ul li:nth-last-child(4) {
    margin-left: auto;
}

.header-background nav ul li a i {
    font-size: 1.4rem;
}

/* Logo dans la nav */
.header-background .logo {
    height: 100%;
    max-height: 60px;
    width: auto;
}


/* ============================================================
   PAGE D'ACCUEIL — BANDEAU VIDÉO
   ============================================================ */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

/* Vidéo floue en arrière-plan */
.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px) brightness(0.7);
    transform: scale(2.2);
}

/* Vidéo principale centrée */
.video-main {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 2;
}


/* ============================================================
   PAGE D'ACCUEIL — SECTION SPECTACLES
   ============================================================ */
.spectacles {
    padding: 40px 20px;
    text-align: center;
}

/* Grille 2 colonnes */
.spectacle-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.spectacle-list h3 {
    text-align: center;
    width: 100%;
}

/* Carte spectacle */
.spectacle-item {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    background-color: #111;
    border: 2px solid red;
    border-radius: 10px;
    overflow: hidden;
    padding: 20px 20px 40px;
    flex-wrap: wrap;
}

.spectacle-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(190, 21, 34, 0.35);
}

/* Texte + média côte à côte dans chaque carte */
.spectacle-contenu {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
}

.spectacle-contenu .spectacle-texte {
    flex: 1;
    min-width: 200px;
    box-sizing: border-box;
}

.spectacle-contenu .video-slideshow {
    flex: 1;
    display: block;
    margin: 0;
}

/* Bouton "Plus d'infos" */
.spectacle-texte a {
    display: inline-block;
    padding: 8px 18px;
    margin-top: 10px;
    background: linear-gradient(145deg, #ff0000, #cc0000);
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
}

.spectacle-texte a:hover {
    background: linear-gradient(145deg, #cc0000, #ff0000);
    box-shadow: 0 6px 12px rgba(190, 21, 34, 0.5);
    transform: translateY(-3px) scale(1.05);
}

.spectacle-texte a:active {
    transform: translateY(0px) scale(0.98);
    box-shadow: 0 3px 6px rgba(190, 21, 34, 0.4);
}


/* ============================================================
   VIDÉO SLIDESHOW (pages spectacles et accueil)
   ============================================================ */
.video-slideshow {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

/* Ratio 16:9 */
.video-slideshow::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.video-slideshow video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ============================================================
   PAGE COMPAGNIE
   ============================================================ */

/* Logo flottant à gauche */
.logocbp {
    float: left;
    width: auto;
    height: 300px;
    margin: 0 40px 20px 40px;
}

/* Bloc de présentation */
.compagnie {
    padding: 40px;
    overflow: hidden;
    background-color: #1a1a1a;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    margin: 40px 40px 10px 40px;
}

.compagnie h1 {
    margin-bottom: 20px;
    font-size: 2rem;
}

/* Section artistes */
.artistes {
    padding: 10px 40px 20px 40px;
    text-align: center;  
}

.artistes h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Grille 4 colonnes */
.artistes-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    justify-items: center;
    align-items: stretch;
    padding: 20px 20px;
}

/* Carte artiste */
.artiste-item {
    background-color: #1a1a1a;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    padding: 20px;
    max-width: 300px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
}

.artiste-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(190, 21, 34, 0.4);
}

.artiste-item img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ff0000;
    margin-bottom: 15px;
}

.artiste-item h3 {
    color: #ff4444;
    margin: 10px 0 5px 0;
}

.artiste-item p {
    color: #ccc;
    font-size: 0.95em;
    margin: 0 10px 10px 10px;
}


/* ============================================================
   PAGES SPECTACLES — IMAGE D'EN-TÊTE
   ============================================================ */
.entetemutation,
.enteteled,
.enteteledtherebelight,
.entetecabaret {
    width: 100%;
    height: 600px;
    background-size: 110%;
    background-repeat: no-repeat;
    background-position: 20% 20%;
}

.entetemutation        { background-image: url("images/mutation/entete.jpg"); }
.enteteled             { background-image: url("images/LED/entete.jpg"); }
.enteteledtherebelight { background-image: url("images/ledtherebelight/entete.jpg"); }
.entetecabaret         { background-image: url("images/cabaret/entete.jpg"); }


/* ============================================================
   PAGES SPECTACLES — CONTENU
   ============================================================ */

/* Titre centré */
#spectacle h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

/* Texte + vidéo côte à côte */
.presentation-spectacle {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    padding: 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.texte-spectacle {
    flex: 1;
}

/* Vidéo en boucle */
.video-loop {
    flex: 1;
}

.video-loop video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Intégration YouTube */
.video-youtube {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 40px auto;
    border-radius: 12px;
    overflow: hidden;
}

.video-youtube::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

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

/* Bouton de contact dans les pages spectacles */
.btn-contact {
    display: block;
    width: fit-content;
    margin: 10px auto 0 auto;
    padding: 8px 18px;
    background: linear-gradient(145deg, #ff0000, #cc0000);
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
}

.btn-contact:hover {
    background: linear-gradient(145deg, #cc0000, #ff0000);
    box-shadow: 0 6px 12px rgba(190, 21, 34, 0.5);
    transform: translateY(-3px) scale(1.05);
}

.btn-contact:active {
    transform: translateY(0px) scale(0.98);
    box-shadow: 0 3px 6px rgba(190, 21, 34, 0.4);
}


/* ============================================================
   CARROUSEL DE PHOTOS (pages spectacles)
   ============================================================ */
.carrousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 40px auto;
    position: relative;
    overflow: hidden;
}

.carrousel-track {
    display: flex;
    gap: 15px;
    width: 100%;
    position: relative;
}

/* Images du carrousel — floues par défaut */
.carrousel-track img {
    min-width: calc(33% - 10px);
    max-width: calc(33% - 10px);
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
    opacity: 0.5;
    filter: blur(2px) brightness(0.6);
    transform: scale(0.92);
    flex-shrink: 0;
}

/* Image centrale — nette */
.carrousel-track img.active {
    opacity: 1;
    filter: none;
    transform: scale(1);
}

/* Flèches de navigation */
.carrousel-btn {
    background: linear-gradient(145deg, #ff0000, #cc0000);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.25s ease;
    z-index: 10;
}

.carrousel-btn:hover {
    background: linear-gradient(145deg, #cc0000, #ff0000);
    box-shadow: 0 4px 10px rgba(190, 21, 34, 0.5);
    transform: scale(1.1);
}


/* ============================================================
   PIED DE PAGE
   ============================================================ */
footer {
    background-color: rgba(190, 21, 34, 1);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 1rem;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
    .artistes-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .artistes-list {
        grid-template-columns: 1fr;
    }

    .spectacle-list {
        grid-template-columns: 1fr;
    }

    .presentation-spectacle {
        flex-direction: column;
    }

    .spectacle-contenu {
        flex-direction: column;
    }

    .spectacle-contenu .video-slideshow {
        max-width: 100%;
        margin: 10px 0 0 0;
    }
}