@import url('../_components/slideshow.css'); 
/* ===== Menu Latéral ===== */
.prestations-menu {
    width: 250px; /* Largeur fixe pour le menu */
    position: fixed;
    top: 50%;
    transform: translatey(-50%);
    left:0;
    height: fit-content;
    background-color: white;
    padding: 1.5em;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-color);
    align-self: flex-start; /* Alignement en haut */
    z-index: 1000;
}

.gallery-lightbox-triggers{
    display: none;
}

@media (max-width: 1300px) {
    .prestations-menu {
        transform: translate(-90%, -50%); /* Masque le menu à gauche */
        transition: transform 0.3s ease;
    }

    /* Affiche le menu au survol (desktop) */
    .prestations-menu:hover {
        transform: translate(0, -50%);
    }

    /* Pour mobile : affiche le menu au clic (optionnel) */
    .prestations-menu.active {
        transform: translate(0, -50%);
    }
}

.prestations-menu h3 {
    color: var(--secondary-color);
    font-size: 1.3em;
    margin-bottom: 1em;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5em;
}

.prestations-menu nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.prestations-menu nav li {
    margin-bottom: 0.8em;
}

.prestations-menu nav a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 0.3em 0;
}

.prestations-menu nav a:hover {
    color: var(--secondary-color);
}

/* Mise en évidence de l'élément actif dans le menu */
.prestations-menu nav a.active {
    color: var(--secondary-color);
    font-weight: 600;
}

/* ===== Contenu Principal ===== */
.prestations-content {
    flex: 1; /* Prend tout l'espace restant */
    min-width: 0; /* Évite les problèmes de flexbox avec le contenu long */
}

/* Introduction */
.prestations-content .intro {
    margin-bottom: 2em;
    text-align: center;
}

.prestations-content .intro h1 {
    color: var(--text-color-dark);
    margin-bottom: 0.5em;
}

/* Style des prestations */
.prestation {
    margin-bottom: 3em;
    padding: 2em;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    scroll-margin-top: 100px; /* Pour compenser le header fixe */
}

.prestation h2 {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 0 0 1em;
    font-size: 1.8em;
    color: var(--text-color-dark);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.prestation h2::before,
.prestation h2::after {
    content: "";
    flex: 1;
    height: 2px;
    background: var(--secondary-color);
    margin: 0 1em;
}

/* Description et composition */
.prestation-description {
    margin-bottom: 1.5em;
    text-align: justify;
    color: #444;
    line-height: 1.6;
}

.prestation-composition {
    margin-bottom: 1.5em;
}

.prestation-composition h3 {
    color: var(--secondary-color);
    font-size: 1.2em;
    margin-bottom: 0.5em;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.3em;
}

/* Images des prestations */
.prestation-images {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 1em;
}

.prestation-images img {
    border-radius: 4px;
    box-shadow: 0 1px 3px var(--shadow-color);
    transition: transform 0.3s ease;
}

.prestation-images img:hover {
    transform: scale(1.02);
}

/* Section contact et about */
.contact-section,
.about-section {
    max-width: 800px;
    margin: 3em auto;
    text-align: center;
    padding: 2em;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.contact-section h2,
.about-section h2 {
    color: var(--secondary-color);
    margin-bottom: 1em;
}

.contact-link {
    margin: 1.5em 0;
    font-size: 1.2em;
}

.about-link {
    margin-top: 1.5em;
}

/* Boutons */
.button {
    display: inline-block;
    padding: 0.8em 1.5em;
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: var(--hover-color);
}

/* ===== Diaporama dans la page ===== */
.prestation-gallery {
    margin: 1.5em 0;
    position: relative;
}

.gallery-slideshow {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--shadow-color);
}

.slideshow-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 400px; /* Hauteur fixe pour le diaporama */
}

.slideshow-slide {
    min-width: 100%;
    position: relative;
}

.slideshow-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit tout l'espace sans déformation */
    display: block;
}

.slideshow-slide figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-color-light);
    padding: 10px;
    text-align: center;
    font-size: 0.9em;
}

.slideshow-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
}

.slideshow-prev,
.slideshow-next {
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-color-light);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s ease;
}

.slideshow-prev:hover,
.slideshow-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slideshow-dots {
    display: flex;
    gap: 8px;
}

.slideshow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s ease;
}

.slideshow-dot.active {
    background: var(--text-color-light);
}

@media (max-width: 768px) {

    .prestation {
        padding: 1.5em;
    }

    .prestation h2 {
        font-size: 1.5em;
    }

    .prestation-images img {
        width: 100%; /* 1 image par ligne sur mobile */
    }

    .prestations-menu {
        display: none;
    }

    .slideshow-container {
        height: auto; /* Hauteur réduite sur mobile */
    }
}

