/* --- Police --- */
html {
    font-family: "Stardos Stencil", sans-serif;
}

/* --- Bandeaux bleus --- */
#bienvenue, #bts, #stage {
    background-color: rgb(158, 175, 192);
    padding: 20px;
    margin: 20px auto;
    border-radius: 8px;
    max-width: 1200px;
    text-align: left;
}

.titre-ligne {
    display: flex;
    align-items: baseline; /* pour que le petit texte soit bien aligné */
    gap: 15px; /* espace entre les deux */
}

/* Le sous-titre en plus petit */
.sous-titre {
    font-size: 18px; /* ajuste comme tu veux */
    font-weight: 300;
    opacity: 0.8;
    font-family: inherit; /* même police que le h1 */
}

/* --- Galerie centrée --- */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px auto;
    max-width: 1200px;
}

/* --- Images et hover --- */
.image-box {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.image-box img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.image-box:hover img {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* --- Overlay --- */
.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.overlay span {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
}

.image-box:hover .overlay {
    opacity: 1;
}

/* --- Popup plein écran --- */
.popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.popup-content {
    position: relative;
    width: 100%; height: 100%;
}

#portfolio-images img {
    max-width: 90vw;
    max-height: 85vh;
    margin: auto;
    display: block;
    object-fit: contain;
    border-radius: 5px;
}

/* --- Fermeture --- */
.close {
    position: absolute;
    top: 20px; right: 30px;
    font-size: 50px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    z-index: 10001;
}

/* --- Flèches --- */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 70px;
    color: white;
    cursor: pointer;
    padding: 20px;
    z-index: 10001;
}

#prev { left: 40px; }
#next { right: 40px; }

/* --- Responsive --- */
@media (max-width: 1024px) { .gallery { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 768px) { .gallery { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }
