@import url(./navbar.css);

/* ===== Page "Nos promotions" ===== */

.globale{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 1rem;
    gap: 40px;
}

.titre-page{
    margin-top: 1rem;
    text-align: center;
    color: var(--c-bleu);
    font-weight: 600;
    font-size: max(2.5vw, 35px);
    font-family: 'Josefin', sans-serif;
}

.intro{
    max-width: 800px;
    text-align: center;
    font-size: 18px;
    line-height: 1.5;
    color: #333;
}

.promotion{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 95%;
    max-width: 1400px;
    gap: 15px;
    scroll-margin-top: 100px; /* le titre ne passe pas sous le menu quand on arrive par un lien */
}

.promotion h2{
    display: flex;
    justify-content: center;
    width: 100%;
    color: var(--c-bleu);
    font-weight: 600;
    font-size: max(2vw, 30px);
    font-family: 'Josefin', sans-serif;
}

.cadre-promo{
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 40px;
    padding: 1.5rem;
    border-radius: 5px;
    background-color: var(--c-bleu);
    box-shadow: var(--s-shadow);
}

.photo-classe{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 600px;
}

.photo-classe img{
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 5px;
    cursor: zoom-in;
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Zoom au survol de la souris (pas sur écran tactile, où le clic ouvre la photo en grand) */
@media (hover: hover){
    .photo-classe img:hover{
        transform: scale(1.12);
        z-index: 2;                               /* passe au-dessus de la photo voisine */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
    }
}

/* Case "photo à venir" : pas de zoom */
.photo-classe img.a-venir{
    object-fit: contain;
    background-color: #001d3d;
    cursor: default;
    transform: none !important;
    box-shadow: none !important;
}

.photo-classe figcaption{
    text-align: center;
    color: var(--c-gold);
    font-size: 20px;
    font-family: 'Josefin', sans-serif;
}

.photo-classe .annee-scolaire{
    color: white;
    font-size: 16px;
}

/* ===== Visionneuse plein écran ===== */

#visionneuse{
    margin: auto;
    padding: 0;
    border: none;
    background: transparent;
    max-width: 95vw;
    max-height: 95vh;
    overflow: visible;
}

#visionneuse::backdrop{
    background: rgba(0, 0, 0, 0.85);
}

#visionneuse img{
    display: block;
    max-width: 95vw;
    max-height: 85vh;
    border-radius: 5px;
}

#visionneuse .legende{
    margin-top: 10px;
    text-align: center;
    color: white;
    font-size: 18px;
}

#visionneuse .fermer{
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    color: white;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
}

/* ===== Mobile ===== */

@media screen and (max-width: 800px){
    .cadre-promo{
        flex-direction: column;
        align-items: center;
        gap: 25px;
        padding: 1rem;
    }
}
