@import "../vendor/bootstrap/dist/css/bootstrap.min-z0zQt-h.css";
@import "bootstrap-icons-plInsPv.css";
@import "swiper-bundle.min-XuYiK0u.css";

/* Fond écran*/
body {
    background: url("../images/background-YnlOxfI.jpg") no-repeat center center fixed;
    background-size: cover;
}

.nav-link:hover {
    text-decoration: underline;
}

/* Menu Navbar */
.page-overlay {
    background: rgba(0, 0, 0, 0.6);
    min-height: 100vh;
}

.main-with-fixed-navbar {
    padding-top: 6rem !important;
}

.navbar-astro {
    z-index: 1050;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-astro.navbar-astro--scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.2);
}

.navbar-astro.navbar-astro--scrolled .navbar-brand,
.navbar-astro.navbar-astro--scrolled .nav-link {
    color: #212529 !important;
}

.main-with-fixed-navbar {
    padding-top: 6rem !important;
}

.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Page Apod */
.apod-page {
    padding-top: 2rem;
}

.description-box {
    font-size: 1.1rem;
    margin-top: 20px;
    white-space: pre-line;
}

.text-shadow {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.apod-media-box {
    background: #fff;
    padding: 18px;
    border-radius: .75rem;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

.loading-overlay {
    background: rgba(0, 0, 0, 0.45);
    z-index: 2000;
}

.loading-spinner {
    width: 4rem;
    height: 4rem;
}

/* Formulaire bootstrap */
.form-control,
.form-select {
    border-radius: 0.5rem;
}

.card {
    border-radius: 1rem;
}

.btn {
    border-radius: 0.5rem;
}

/* swiper */
.swiper {
    width: 100%;
    padding-bottom: 3rem;
}

.swiper-slide {
    height: auto;
}

.swiper-slide .card {
    min-height: 100%;
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff;
}

.swiper-pagination-bullet {
    background: #fff;
}

/* Image cliquable avec download */
a[download] img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Modale image */
.objet-image-clickable {
    cursor: zoom-in;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.objet-image-clickable:hover {
    opacity: 0.9;
    transform: scale(1.01);
}

.image-modal-fullscreen {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

/* Caroussel bootstrap */
#diaporamaCarousel,
#diaporamaCarousel .carousel-inner,
#diaporamaCarousel .carousel-item,
.diaporama-slide {
    width: 100vw;
    height: 100vh;
}

.diaporama-slide {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diaporama-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Navbar mobile */
.navbar-astro .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: none;
}

.navbar-astro .navbar-toggler-icon {
    filter: invert(1);
}

.navbar-astro.navbar-astro--scrolled .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.4);
}

.navbar-astro.navbar-astro--scrolled .navbar-toggler-icon {
    filter: none;
}

/* Menu déroulé mobile */
@media (max-width: 991.98px) {
    .navbar-astro .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 1rem;
        background-color: rgba(0, 0, 0, 0.88);
    }

    .navbar-astro.navbar-astro--scrolled .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.95);
    }

    .navbar-astro.navbar-astro--scrolled .nav-link,
    .navbar-astro.navbar-astro--scrolled .navbar-brand {
        color: #212529 !important;
    }
}