/* RESET */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

/* BODY */

body{
font-family:Arial, Helvetica, sans-serif;
background:#000;
color:white;
display:flex;
flex-direction:column;
align-items:center;
line-height:1.5;
}

/* LIENS */

a{
color:white;
text-decoration:none;
transition:0.3s;
}

a:hover{
color:#f0c040;
}

/* STRUCTURE CENTRÉE */

header,
.hero,
.filters,
.galerie,

footer{
width:100%;
max-width:1200px;
margin:auto;
}

/* HEADER */

header{
display:flex;
justify-content:space-between;
align-items:center;
padding:20px;
background:#000;
position:sticky;
top:0;
z-index:100;
}

header h1{
font-size:22px;
letter-spacing:2px;
}

/* NAV */

nav{
display:flex;
gap:20px;
}

nav a{
font-size:14px;
opacity:0.8;
}

nav a:hover{
opacity:1;
}

/* MENU MOBILE */

#menu-toggle{
display:none;
font-size:22px;
cursor:pointer;
}

/* HERO */

.hero{
text-align:center;
padding:80px 20px;
}

.hero h2{
font-size:32px;
margin-bottom:10px;
}

.hero p{
opacity:0.7;
}

/* FILTRES */

.filters{
text-align:center;
margin:30px 0;
}

.filters button{
margin:5px;
padding:10px 15px;
border:none;
background:#222;
color:white;
cursor:pointer;
border-radius:5px;
transition:0.3s;
}

.filters button:hover{
background:#f0c040;
color:black;
}

/* GALERIE STYLE PINTEREST */

.galerie{
display:grid;
grid-template-columns:repeat(auto-fit, minmax(250px,1fr));
gap:15px;

max-width:1200px;
margin:auto;
padding:10px;
}

.card{
break-inside:avoid;
margin-bottom:15px;
overflow:hidden;
border-radius:8px;
}

.card img{
width:100%;
display:block;
border-radius:8px;
cursor:pointer;
transition:0.4s;

border:5px solid rgb(252, 245, 245);
box-shadow:0 5px 15px rgba(0,0,0,0.5);
}
.card img:hover{ transform:scale(1.03); filter:brightness(0.8); }
/* 
.card img:hover{
transform:scale(1.03);
filter:brightness(0.9);
border-color:#f0c040;
} */

/* LIGHTBOX */

#lightbox{
display:none;
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.95);
flex-direction:column;
align-items:center;
justify-content:center;
padding:20px;
z-index:200;
}

#lightbox-img{
max-width:90%;
max-height:60%;
border-radius:10px;
}

.lightbox-text{
text-align:center;
margin-top:20px;
max-width:600px;
}

#close{
position:absolute;
top:20px;
right:30px;
font-size:30px;
cursor:pointer;
}

/* FOOTER */

footer{
text-align:center;
padding:40px 20px;
border-top:1px solid #333;
margin-top:40px;
font-size:14px;
}

footer a{
margin:0 5px;
}

/* RESPONSIVE */

@media(max-width:1000px){
.galerie{ column-count:3; }
}

@media(max-width:700px){
.galerie{ column-count:2; }
}

@media(max-width:500px){
.galerie{ column-count:1; }
}

/* MOBILE NAV */

@media(max-width:768px){

nav{
display:none;
position:absolute;
top:70px;
right:0;
background:black;
flex-direction:column;
padding:20px;
}

nav.active{
display:flex;
}

#menu-toggle{
display:block;
}

}