
@font-face {
  font-family: 'GentiumPlus';
  src: url('/static/vitrine/GentiumPlus-Regular.woff2') format('woff2');
}


html {
    font-family: 'Cambria Math', 'GentiumPlus';
    width: 100dvw;
    min-width: 100dvw;
    max-width: 100dvw;
    margin:0px;
    padding:0px;
    background-color: white;
    color: #111;
    overflow-x:hidden;
    height:100%;
}

html.inverted {
    filter: invert(1);
}

html.inverted img,
html.inverted video,
html.inverted iframe {
    filter: invert(1); 
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    box-sizing: border-box;
    width:100%;
    height:auto;
    flex: 1;
    overflow-y: auto;
}

h2::first-letter {
    text-transform: uppercase;
}


/* entête */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 5px;
    box-sizing: border-box;    
    height: 370px;
}

.text-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    transform: translateX(100%);
    max-width: 100%;
}

.text-header.animate {
    animation: slideIn 1s ease-out forwards;
}

.header-logo {
    flex-shrink: 0;
    min-width:60%;
    min-height: 180px;
    background-image: url('/static/vitrine/logo_temple.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    box-sizing: border-box;
    cursor: pointer;
}

.text-header-div {
    min-width: 0;
    margin-right: 0; /* évite les débordements horizontaux */
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    cursor: pointer;
}

.text-header-div h1 {
    font-size: clamp(1.2rem, 5vw, 2.5rem);
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
    white-space: normal; 
    color : #111;
    font-family: 'Cambria Math', 'GentiumPlus';
}

.text-header-div h1::first-letter {
    color:red;
}

.text-header-div h2 {
    font-size: clamp(1rem, 4vw, 1.5rem); 
    font-weight: normal;
    white-space: normal; 
    border-top: 5px solid #111;
    padding: 5px;
    width: 100%;
    font-family: 'Cambria Math', 'GentiumPlus';
}

/* tronc */
main {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
    min-height: calc(100vh - 372px);
    row-gap: 20px;
    column-gap: 20px;
    width: 100%;
    background-image: url('/static/vitrine/fond.png');
    background-position: center;
    background-repeat: repeat;
    background-size: 200px;
    border-top: 2px solid #111;
    box-sizing: border-box;
}

/* Conteneur de la sidebar */
.section-side-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    box-sizing: border-box;
    border-right: 2px solid black;
    bottom: 0;
    z-index: 500;
}

/* Sidebar fixe à l'intérieur */
.section-side {
    position: fixed;
    top: 0;/*372px;*/ /* sous le header */
    left: 0;
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    box-sizing: border-box;
}

/* Contenu principal */
.section-main {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    margin-left: 120px; /* espace pour la sidebar */
    padding: 20px;
    row-gap: 20px;
    column-gap: 20px;
    align-items: center;
    justify-content: center;
}

.section-side button {
    cursor:pointer;
}

/* video */
.video-fore {
  position: relative;
  z-index: 1;
  max-height: 450px;
  max-width: 40%;
  object-fit: contain;
  display: block;
  margin: 20px;
}

/* BLOC CONTACT */
.contact-activite {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 10px 20px;
    min-width: 20%;
    border: 2px solid #111;
    background-color: whitesmoke;
    gap:5px;
}

.contact-activite h3 {
    width: 100%;
    text-align: center;
    margin:0;
    margin-bottom: 10px;
}

.map-secteur {
    margin-top: 20px;
    width: 400px;
    min-width:400px;
    height:300px;
    background-color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.map-secteur label {
    text-align: center;
    color: white;
    cursor: pointer;
    width: 90%;
}

.links {
    width:100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
}

.links img {
    max-width: 24px;
}

.links img:hover {
    cursor: pointer;
}


/* activite detail */
.detail-activite-container {
    display: flex;
    flex-direction: column;
    width: 80%;
    gap: 20px;
}

.detail-activite {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    justify-content: flex-start;
}

.activite-titre {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border: 2px solid #111;
    width: 90%;
    padding: 10px;
    border-top-left-radius: 20px;
    background-color: white;
    box-shadow: 1px 1px 0px #000, -1px -1px 0px #000;
}
.activite-titre h2 {
    width: 90%;
    margin-left:40px;
}

.activite-titre button {
    width:10%;
    font-size: x-large;
    cursor: pointer;
    border-radius: 5px;
}

.activite-item-container {
    display: flex;
    flex-direction: row;
    width: 85%;
    border: 1px solid #111;
    background-color: white;
    box-shadow: 1px 1px 0px #000, -1px -1px 0px #000;
}

.activite-item-share {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 15%;
    border-right: 2px solid #111;
    min-width:min-content;
}

.activite-share-sdiv {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.fb-link-share {
    width: 40px;
}

.activite-item {
    display: flex;
    flex-direction: row;
    width: 85%;    
}

.activite-item * {
    cursor: pointer;
}

.activite-item-description {
    padding: 5px 10px;
    width: 40%;
    border-right: 1px solid #111;
    max-height:180px;
    overflow:hidden;
    box-sizing: border-box;
    scrollbar-width: none;
    overflow-y: auto;
}

.activite-item-description h3 {
    margin-top: 15px;
    margin-bottom: 10px;
}

.activite-item-description h4 {
    font-style: italic;
    font-weight: normal;
    margin-top: 5px;
}

.activite-item-photos {
    width: 60%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    border-left: 2px solid #111;
}

.activite-item-photos img {
    width: 50%;
    max-height: 180px;
    box-sizing: border-box;
    object-fit: cover;  
}

.activite-item-photos-more {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    box-sizing: border-box;
    object-fit: cover;  
    width: 50%;
    border-left: 2px solid #111;
    overflow: hidden;
    height: 180px;
    align-content:flex-start;
}


.activite-item-photos-more img {
    width: 33.3%;
    height: 60px;
    box-sizing: border-box;
}

.section-ask-more {
    padding: 12px 28px;
    width: 50%;
    border: 1px solid #111;
    background: linear-gradient(to bottom, #f2f2f2, #dcdcdc);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0s ease;
    cursor: pointer;
}

.section-ask-more:hover {
    background: #111;
    color: white;
}

.section-ask-more:focus {
    outline: none;
}

/* footer */
footer {
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

/* POPUP MENU */
.popup-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 20%;
    height: 100%;
    background-color: white;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap:20px;
    opacity: 0;
    transform: translateX(-100%);
    pointer-events: none;
    transition: transform 1s ease, opacity 1s ease;
}

.popup-menu.active {
    opacity: 1;
    transform: translateX(0%);
    pointer-events: auto;
}


/* POPUP DIAPO  */
.popup-carousel, .popup-carousel-galerie {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 999;
    backdrop-filter: blur(5px);
    overflow: hidden;
}


.carousel, .carousel-galerie {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw; height: 80vh;
    overflow: hidden;        
    display: flex; flex-direction: row;
    align-items: flex-start;
    color: white;
    background-color: #111;
}

.carousel-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px;
    text-align: center;
    width:20%;
    height:100%;
}

.catalogue-description {
    max-height: 25%;
    overflow-y: auto;
}

.catalog-album {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content:flex-start;
    max-height: 60%;
    width: 100%;
    gap: 5px;
    overflow-y:auto;
}

.catalog-album img {
    max-width: 30%;
}

.carousel-display {
    position:relative;
    width:80%;
    height:100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.carousel-display-galerie {
    width:100%;
    height:100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.carousel-display label, .carousel-display-galerie label {
    padding: 5px;
}

.carousel-slide-container, .carousel-slide-container-galerie {
    display: flex;
    width: 100%; height: 90%;
    justify-content: center;
    align-items: center;
    position: relative;
}

.carousel-slide-container-galerie { 
    width: 90%;
}

/* Chaque slide */
.carousel-slide, .carousel-slide-galerie {
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #111;
    pointer-events: none;
    z-index: 0;
}

.carousel-slide.show, .carousel-slide-galerie.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 1;
}

.carousel-slide[hidden], .carousel-slide-galerie[hidden] {
    display: none;
}

.carousel-slide img, .carousel-slide-galerie img {
    max-height: 100%;
    width: auto;
    object-fit: contain;  
}

.carousel-button, .carousel-button-galerie {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #111;
    color: white;
    font-size: 2em;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border: 1px solid #111;
    opacity:0.5;
}

.carousel-button:hover, .carousel-button-galerie:hover {
    border: 1px solid white;
}

.prev-galerie {
    left: 0px;
}
.prev {
    left: calc(20% + 15px);
}

.next, .next-galerie {
    right: 10px;
}

.close, .close-galerie {
    top:5%;
    right: 10px;
}

/* galerie */
.galerie-div {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.galerie-div img {
    width:30%;
    max-height: 300px;
    cursor: pointer;
}

.galerie-navigation {
    display: flex;
    gap: 30px;
    padding: 10px;
    background-color: white;
    border: 2px solid #111;
    border-radius: 5px;
}


/* contact */
.mes-infos {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 20px;
    border: 2px solid #111;
    background-color: white;
    box-sizing: border-box;
    width: 600px;
    max-width: 100%;
}

.mes-infos div {
    display: flex;
    flex-direction: column;
    width: 48%;
    box-sizing: border-box;
}

.mes-infos img {
    max-width: 256px;
    border: 1px solid #111;
}

.prestataires {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    padding: 20px;
    border: 2px solid #111;
    background-color: white;
    box-sizing: border-box;
    min-width: 600px;
    width: 25%;
}

.mes-infos h2, .prestataires h2, .info-legales h2 {
    text-align: center;
    width: 100%;
}

.prestataires div, .info-legales div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 48%;
    box-sizing: border-box;
    gap:5px;
}

.info-legales div {
    width: 100%;
}

.info-legales {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 5px;
    padding: 20px;
    border: 2px solid #111;
    background-color: white;
    min-width: 300px;
    width: 20%;
}

.info-legales p {
    margin-top: 5px;
}

html, body {
    overflow-x: hidden;
}

/* responsive */ 

@media (max-width: 768px) {
    .header-logo {
        min-height:90px;
    }
    .random-galery,
    .contact-activite,
    .detail-activite-container {
        width: 100% !important;
        align-items: center;
    }

    .contact-activite {
        align-items: center;
    }
    
    .map-secteur {
        min-width: 90%;
    }

    .activite-item {
        flex-direction: column;
    }

    .activite-item-description,
    .activite-item-photos {
        width: 100%;
    }
    
    .activite-item-description {
        border-right:none;
    }
    .activite-item-photos {
        border-left: none;
        border-top: 2px solid #111;
    }

    .map-secteur {
        width: 100%;
        max-width: 100%;
    }
    
    .prev {
        left: 0; 
    }
    
    .carousel-head {
        display:none;
    }
    
    .carousel-display {
        width:100%;
    }
    
    .mes-infos, .prestataires {
        min-width: 10px;
        width: 90%;
        max-width: 90%;
    }
    
    .mes-infos div, .prestataires div {
        width:100%;
        max-width: 100%;
    }
    
    .popup-menu {
        width : 40%;
    }

}


/* */
