/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* VARIABLES COULEURS */
:root{
    --bg-main: #121212;        /* fond principal (au lieu de #000 / #111) */
    --bg-soft: #1d1d1d;        /* sections */
    --bg-elevated: #222;      /* cartes / cadres */

    --text-main: #e6e6e6;     /* texte principal */
    --text-muted: #9a9a9a;    /* texte secondaire */

    --border-faint: rgba(255,255,255,.08);
}


/* BASE */
body{
    min-height:100vh;
    display:flex;
    flex-direction:column;

    background: var(--bg-main);
    color: var(--text-main);
    font-family: "Helvetica Neue", Arial, sans-serif;
}


a{
    text-decoration:none;
    color:inherit;
}

/* CONTAINER */
.container{
    width:90%;
    max-width:1100px;
    margin:auto;
}

/* HEADER */
.header{
    background:var(--bg-main);
    border-bottom:1px solid var(--border-faint);
}

.header-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 0;
}

.logo{
    font-size:1.3rem;
    letter-spacing:.12em;
    color:var(--text-main);
}

.nav a{
    margin-left:22px;
    font-size:1.1rem;
    color:var(--text-muted);
}

.nav a:hover{
    color:var(--text-main);
}





/* HERO */
.hero{
    display: flex;
    justify-content: center;
    align-items: center;
	margin-top:  20px;
    padding: 0;
    min-height: 0;
    background: none;
}

/* TITRE HERO */
.hero-title{
    margin: 0;
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: .3em;
    text-transform: uppercase;

    line-height: 1;

    transform: translateY(-5%);

    pointer-events: none;
}


.slideshow-launch{
    display: inline-block;     /* ⬅️ clé */
    width: auto;               /* ⬅️ empêche l’étirement */
    max-width: fit-content;    /* ⬅️ limite au texte */
	background: none;
    border: 1px solid rgba(255,255,255,.35);
	margin-top:  70px;
    color: var(--text-muted);
    font-size: 1.5rem;
    letter-spacing: .25em;
    text-transform: uppercase;

    padding: 10px 22px;
    cursor: pointer;
	position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.slideshow-launch:hover{
    color: var(--text-main);
}



/* STATEMENT */
.statement{
    max-width:760px;
    margin:40px auto 20px;
    padding:0 20px;
    text-align:center;

    font-size:1.05rem;
    line-height:1.8;
    color:var(--text-muted);
}

.statement p{
    margin-bottom:2.5em;
}




/* CTA */
.cta{
    text-align:center;
    margin-bottom:50px;
}

.cta a{
    font-size:.9rem;
    letter-spacing:.18em;
    text-transform:uppercase;
    color:var(--text-main);

    border-bottom:1px solid var(--border-soft);
    padding-bottom:6px;
}

.cta a:hover{
    border-color:var(--text-main);
}









/* HERO DE PAGE GALERIE */
.page-hero{
    position: relative;
    margin: 30px 0 60px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    padding-left: 0%;
}


/* IMAGE HERO */
.page-hero img{
    max-width: 400px;   /* ⬅️ ajuste ici (600–900 selon ton goût) */
    width: 100%;
    height: auto;
    display: block;
}


/* TITRE */
.page-hero h1{
    position: absolute;
    left: 45%;          /* aligné avec l’image */
    top: 45%;
    transform: translateY(-50%);

    color: #fff;
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: .35em;
    text-transform: uppercase;

    text-shadow: 0 2px 10px rgba(0,0,0,.6);
    margin: 0;
}









/* APERÇU GALERIE */
.gallery-cover{
    display:block;
    position:relative;
    overflow:hidden;

    background:var(--bg-soft);
    border:1px solid var(--border-faint);
}

.gallery-cover img{
    width:100%;
    height:160px;
    object-fit:cover;
    display:block;
    transition:transform .35s ease, opacity .35s ease;
}

.gallery-cover span{
    position:absolute;
    bottom:0;
    left:0;
    right:0;

    padding:10px 12px;
    font-size:.85rem;
    letter-spacing:.08em;

    background:rgba(0,0,0,.6);
    color:#f0f0f0;
}

.gallery-cover:hover img{
    transform:scale(1.04);
    opacity:.9;
}






/* PAGES GALERIES */
.gallery-page h1{
    margin:40px 0 10px;
    font-size:1.8rem;
    font-weight:300;
}

.gallery-page h2{
    margin:30px 0 15px;
    font-size:1.1rem;
    font-weight:300;
    color:var(--text-main);
}


/* MINIATURE AVEC TITRE */
.thumb{
    position: relative;
}

.thumb-caption{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;

    padding: 6px 8px;
    font-size: .7rem;
    letter-spacing: .05em;

    background: rgba(0,0,0,.65);
    color: #eaeaea;

    text-align: center;
    pointer-events: none;
}


/* GRILLE PHOTOS */
.gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(140px, 1fr));
    gap:14px;
    margin-bottom:60px;
}

/* VIGNETTES */
.gallery-grid img.photo{
    width:100%;
    height:120px;
    object-fit:cover;
    cursor:pointer;

    background:var(--bg-soft);
    border:1px solid var(--border-faint);

    transition:opacity .25s ease;
}

.gallery-grid img.photo:hover{
    opacity:.85;
}

/* LIGHTBOX */
.lightbox{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);

    display: none;
    align-items: center;
    justify-content: center;

    z-index: 1000;
}


/* CONTENU DIAPO */
.slideshow-content{
    display: flex;
    flex-direction: column;
    align-items: center;

    max-height: 120vh;           /* ⬅️ CLÉ */
    padding: 60px 0 40px;    /* espace haut/bas */
    box-sizing: border-box;
}


/* CONTENEUR IMAGE */
.slideshow-photo{
    width: 90vw;
    max-height: 90vh;        /* image volontairement limitée */

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;        /* ⬅️ empêche tout dépassement */
}


/* IMAGE DIAPO */
.slideshow-photo img{
    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;
    display: block;
}


/* LÉGENDE DIAPORAMA */
.slide-caption{
    margin-top: 24px;
    font-size: .85rem;
    letter-spacing: .12em;
    color: #cfcfcf;
    text-align: center;
}

/* Lecteur Diapo */

.slideshow-controls{
    margin-top: 20px;
    display: flex;
    gap: 16px;
}

.slideshow-controls button{
    background: none;
    border: 1px solid rgba(255,255,255,.3);
    color: #eaeaea;
    font-size: 1.1rem;
    padding: 8px 14px;
    cursor: pointer;
    opacity: .8;
}

.slideshow-controls button:hover{
    opacity: 1;
}



/* NAV SLIDES */
.nav-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:none;
    border:none;
    color:#eaeaea;
    font-size:3rem;
    cursor:pointer;
    opacity:.7;
}

.nav-btn:hover{
    opacity:1;
}

.prev{left:30px}
.next{right:30px}

/* BOUTON FERMER */
.close-btn{
    position:absolute;
    top:25px;
    right:30px;
    background:none;
    border:none;
    color:#fff;
    font-size:2rem;
    cursor:pointer;
    opacity:.7;
    z-index:1100;
}

.close-btn:hover{
    opacity:1;
}

/* FOOTER */
.footer{
    margin:0;
    padding:8px 0;

    text-align:center;
    font-size:.7rem;
    line-height:1.2;

    color:var(--text-muted);
    border-top:1px solid var(--border-faint);
}



/* RESPONSIVE */
@media (max-width:600px){
    .hero-title{
        font-size:1.8rem;
        letter-spacing:.22em;
    }
	.page-hero{
        height: 180px;
        margin: 20px 0 65px;
    }

    .page-hero h1{
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        font-size: 2.2rem;
        letter-spacing: .2em;
        text-align: center;
    }
	
	.slideshow-content{
        padding-top: 80px;
    }
	
	.page-hero{
    
    margin: 80px 0 60px;
	}
}
