
/* Import des styles communs */
@import url('style.css');

/* ========================================
   CONTENU PRINCIPAL - PERFORMANCES
   ======================================== */
.content-performances {
    margin-top: 110px;
    margin-left: 90px;
    padding: 30px;
    min-height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.box h1 {
    position: relative;
    padding-bottom: 12px;
}

.box h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #a8d0e6, #f8b88b);
    border-radius: 2px;
}

/* --- Boîte principale Performance --- */
.performance-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1.5rem;
    padding: 35px;
    width: 100%;
    max-width: 1200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.performance-box:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* --- Titre principal --- */
.performance-box h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #0f172a;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    position: relative;
    padding-bottom: 15px;
}

.performance-box h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #a8d0e6, #f8b88b);
    border-radius: 2px;
}

/* --- Conteneur d'images côte à côte --- */
.performance-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.performance-images img {
    width: 48%;
    max-width: 550px;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    object-fit: contain;
}

.performance-images img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* --- Conteneur de boutons --- */
.performance-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

/* --- Boutons de performance --- */

.perf-btn {
    background: transparent;
    color: #333;
    border: 1.5px solid #a8d0e6;
    padding: 14px 28px;
    border-radius: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.perf-btn:hover {
    background: #a8d0e6;
    color: #1a3a4a;
    transform: translateY(-2px);
}

.perf-btn:active {
    transform: translateY(0);
}

/* ========================================
   LIGHTBOX MODERNE
   ======================================== */
#image-modal {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

#image-modal.active {
    display: flex;
}

.modal-image-wrapper {
    background: white;
    padding: 20px;
    border-radius: 1.5rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    border-radius: 0.75rem;
}

#image-modal .close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: white;
    font-size: 42px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

#image-modal .close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 1600;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .content-performances {
        margin-left: 20px;
        padding: 20px;
    }
    
    .performance-images {
        flex-direction: column;
    }
    
    .performance-images img {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .content-performances {
        margin-left: 10px;
        padding: 15px;
        margin-top: 100px;
    }
    
    .performance-box {
        padding: 20px;
    }
    
    .performance-box h1 {
        font-size: 1.5rem;
    }
    
    .performance-buttons {
        flex-direction: column;
    }
    
    .perf-btn {
        width: 100%;
    }
}

/* --- Titres dans les bo�tes --- */
.box-title {
    text-align: center;
    margin-bottom: 20px;
    color: inherit;
    font-size: 1.8rem;
}

/* --- Affichage c�te � c�te des images --- */
.images-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.images-container img {
    width: 50%; /* Chaque image occupe environ la moiti� de la largeur */
    height: auto;
    border-radius: 8px;
    cursor: pointer; /* Indique que l'image est cliquable */
}

/* --- Style de la lightbox --- */
#lightbox {
    display: none;
    position: fixed;
    z-index: 1500;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

#lightbox-img {
    max-width: 90%;
    max-height: 90vh;
}
#lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* --- Style de la note (footnote) --- */
.footnote {
    text-align: left;
    font-size: 0.9rem;
    margin-top: 10px;
}

.footnote p {
    margin: 0;
}


