/*
 * Feuille de style pour la page Campus.
 *
 * Ce fichier contient les styles spcifiques  la page Campus.
 * Actuellement, il ne contient qu'un style pour ajuster le padding
 * par rapport au header fixe.
 */

.page-campus {
    padding-top: 10vh; /* Espace pour le header fixe */
}

/* Bejaia Campus Gallery Slider */
.bejaia-gallery-slider {
    position: relative;
    margin-bottom: 2rem;
}

.gallery-viewport {
    overflow: hidden;
}

.gallery-track {
    display: flex;
    /* La transition du track est gérée par GSAP */
}

.gallery-slide {
    flex-shrink: 0;
    width: 33.333%;
    padding: 0 8px;
    box-sizing: border-box;
}

.gallery-slide.active-slide img {
    border-color: var(--himi-tertiary);
}

.gallery-slide img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease, border-color 0.3s ease;
    border: 4px solid transparent;
}

.gallery-slide img:hover {
    opacity: 0.8;
}

/* Styles for Image Modal */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(19, 74, 125, 0.7); /* Himi Blue semi-transparent */
    backdrop-filter: blur(10px); /* Effet verre dépoli */
    -webkit-backdrop-filter: blur(10px); /* Compatibilité Safari */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.image-modal-overlay.is-visible {
    display: flex;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease-out;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.image-modal-close:hover {
    color: #bbb;
}

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

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.gallery-dots {
    text-align: center;
    margin-top: 1.5rem;
}

.gallery-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    padding: 0;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.gallery-dot.active {
    background: var(--himi-tertiary);
    transform: scale(1.2);
}

/* Make other page images clickable for modal */
.groupe-image img,
.pdg-image-wrapper img,
.section-bejaia-focus img[alt*='L\'équipe'] {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.groupe-image img:hover,
.pdg-image-wrapper img:hover,
.section-bejaia-focus > img[alt*='L\'equipe']:hover {
    opacity: 0.8;
}