:root { --bg: #0b1020; --card: #141a2a; --text: #e7eaf6;  --primary: rgba(14, 2, 2, 0.42); --muted: #aab4d1; --surface: rgba(255, 255, 255, 0.04); --header-bg: rgba(8, 12, 28, 0.92); --footer-bg: var(--header-bg); --overlay-dark: rgba(0, 0, 0, 0.55); --font-sans: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --font-serif: 'Merriweather', serif; }
{ box-sizing: border-box; } html, body { margin: 0; padding: 0; font-family: var(--font-sans); color: var(--text); background: var(--bg); }
/* Header et footer */
.site-header { transition: transform 0.25s ease, opacity 0.25s ease; z-index: 1000; position: sticky; top: 0;}
.site-header--hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.site-footer { background: var(--footer-bg); padding: 0.75rem 0; color: var(--muted); border-top: 1px solid rgba(255,255,255,0.08); }

/* Layout et header content */
.container { width: min(1200px, 92%); margin: 0 auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; width:90% }
.logo { font-weight: 600; font-size: 1.1rem; color: #fff; text-decoration: none; font-family: var(--font-serif); margin-left: 5vh }
.main-nav ul { display: flex; gap: 1rem; list-style: none; padding: 0; margin: 0; font-family: var(--font-serif)}
.main-nav a { padding: .5rem 0.75rem; color: #e8eaff; border-radius: 6px; text-decoration: none; }
.menu-toggle { display: none; background: transparent; color: #fff; border: 0; font-size: 1.6rem; }

/* Hero & parallax */
.hero { height: 100vh; display: grid; place-items: center; text-align: center; background-size: cover; background-position: center; position: relative; }
.hero .overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.hero-content { position: relative; z-index: 1; padding: 1rem 0; }
.heroH1 { font-size: clamp(1.75rem, 4vw + 1rem, 2rem); margin: 0 0 .5rem; line-height: 1.1;
}
.hero p { margin: 0 0 1rem; color: #f2f3ff; font-family: "Merriweather", serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-variation-settings:
            "wdth" 100;}

/* Sections & carrousels */
.section { padding: 3rem 0; }
.grid { display: grid; gap: 1.25rem; }
.features .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid rgba(255,255,255,0.08); padding: 1.25rem; border-radius: 12px; text-align: left; }
.card .icon { font-size: 1.75rem; display: inline-block; margin-bottom: .5rem; }


/* Cadre et ligne galerie (1:1 et ligne) */
.gallery-row {height:100vh; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; overflow-y: scroll;overflow-x: hidden; justify-content: center}
.gallery-row figure { width: 240px; height: 240px; margin: 0; overflow: hidden; flex: 0 0 auto; background: #111; }
.gallery-row img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery-row::-webkit-scrollbar {
    width: 0;  /* Remove scrollbar space */
    background: transparent;  /* Optional: just make scrollbar invisible */
}
/* Optional: show position indicator in red */
.gallery-row::-webkit-scrollbar-thumb {
    background: #FF0000;
}


/* Mode toggle + iconography */
.mode-toggle { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.75rem; }
.mode-btn { position: relative; padding: 0.5rem 0.9rem; border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.08); color: #fff; display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.mode-btn.active { background: var(--primary); color: #fff; }

/* icone sr-only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.gallery-frame {
    width: min(800px, 90%);
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    position: relative;
}

#imageCarousel {
    height: 100%; /* occupe tout le cadre */
    width: 100%;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

#imageCarousel .slides {
    height: 100%;
    width: 100%;
}

#imageCarousel .slide {
    height: 100%;              /* prendre toute la hauteur du cadre */
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
#imageCarousel .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* LA */


.gallery-row .caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    opacity: 0;
    height: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.9rem;
    transition: height 0.25s ease;
}
.gallery-row-figure {
    position: relative;
}

.gallery-row .gallery-row-figure:hover .caption,
.gallery-row .gallery-row-figure:focus-within .caption {
    height: 2.5em;
    opacity: 0.55;
}

.gallery-row .gallery-row-figure:hover .caption,
.gallery-row .gallery-row-figure:focus-within .caption p{
    opacity: 1;
}

.gallery-row .caption::before { content: attr(data-alt); }



.carousel .slides .slide .caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    opacity: 0;
    height: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.9rem;
    transition: height 0.25s ease;
}
.carousel .slides .slide-figure {
    position: relative;
}

.carousel .slides .slide:hover .caption,
.carousel .slides .slide:focus-within .caption {
    height: 2.5em;
    opacity: 0.55;
}

.carousel .slides .slide:hover .caption,
.carousel .slides .slide:focus-within .caption p{
    opacity: 1;
}

.carousel .slides .slide .caption::before { content: attr(data-alt); }


/* LA */


/* Carrousels généraux */
.carousel { position: relative; overflow: hidden; width: 100%; }
.carousel .slides { display: flex; transition: transform 0.5s ease; width: 100%; }
.carousel .slide { position: relative; min-width: 100%; display: flex; justify-content: center; align-items: center; padding: 0; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.35); color: #fff; border: 0; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }
.dots { display: flex; justify-content: center; gap: 6px; padding-top: 6px; }
.dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: #555; opacity: 0.9; cursor: pointer; }
.dots button.active { background: #fff; opacity: 1; }

/* Lightbox avec texte alt à droite dans la frame */
.lightbox {
position: fixed;
left: 0; top: 0; right: 0; bottom: 0;
display: none;
align-items: center;
justify-content: center;
background: #e6dac6e0;
z-index: 3000;
padding: 1rem;
}
.lightbox.open {
display: flex;
}
.lightbox-content {
display: flex;
align-items: center;
justify-content: center;
gap: 1rem;
/*max-width: 1200px;
width: 100%; */
}
.lightbox-content img {
max-width: 70vw;
max-height: 80vh;
width: auto;
height: auto;
}
.lightbox-alt {
width: 28vw;
min-width: 180px;
max-width: 320px;
height: auto;
background: rgba(0,0,0,0.6);
color: #000000;
padding: 12px;
border-radius: 8px;
overflow: auto;
display: contents;
}
.lightbox-close {
position: fixed;
top: 12px;
right: 12px;
width: 38px;
height: 38px;
border-radius: 50%;
border: 0;
background: rgba(0,0,0,.7);
color: #fff;
font-size: 20px;
line-height: 1;
cursor: pointer;
z-index: 3001;
}
.lightbox-close:hover,
.lightbox-close:focus {
background: rgba(0,0,0,.9);
}
@media (max-width: 900px) {
    .lightbox-content {
        flex-direction: column;
    }

    .lightbox-alt {
        width: 100%;
        max-width: 100%;
    }
}

/* Overlay sombre (via JS) */
/*#bgOverlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--overlay-dark); opacity: 0; pointer-events: none; z-index: 0; transition: opacity 0.3s ease; }
*/

.bgOverlayIndex {  opacity: 0.55; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--overlay-dark); pointer-events: none; z-index: 0; transition: opacity 0.3s ease; }

.bgOverlayOthers {  opacity: 0.85; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--overlay-dark); pointer-events: none; z-index: 0; transition: opacity 0.3s ease; }


/* Fond global couvrant html+body */
html, body { height: 100%; margin: 0; }
html.site-bg, body.site-bg {
    background-image: url('../assets/IMG_1599.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    min-height: 100vh;
}
html, body { scroll-behavior: smooth; }

/* Footer sticky et layout */
html, body { height: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1 0 auto; }

/* Responsive menu */
@media  (min-width: 300px) and (max-width: 599px){
    .menu-toggle { display: inline-block; }
    .main-nav { display: none; width: 100%; }
    .main-nav.active { display: block; padding: 0.5rem 0; }
    .hero { height: 60vh; }
    .gallery-row {height:60vh;}
    .main-nav a { font-size: 0.70rem}
}
@media  (min-width: 600px) and (max-width: 1599px) {
    .hero { height: 80vh; }
    .gallery-row {height:80vh;}
}

@media (min-width: 1601px) {
    .hero { height: 100vh; }
    .gallery-row {height:100vh;}
}

/* Masquage du header (optionnel) */
.site-header--hidden { transform: translateY(-100%); opacity: 0; transition: transform 0.25s ease, opacity 0.25s ease; }

/* Boutons */
.btn { display: inline-block; padding: .85rem 1.4rem; border-radius: 6px; border: 0; cursor: pointer; }
.btn.primary { background: transparent; color: #fff;}

/* Formulaires et textes */
label { font-size: .9rem; color: var(--muted); }
input, textarea { width: 100%; padding: .75rem; border-radius: 6px; border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.25); color: #fff; }
textarea { resize: vertical; }

/* ARIA helpers */
[aria-label], [aria-hidden] { cue: none; }

/* Fin CSS */