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

@font-face {
    font-family: 'ByeByeBinary';
    src: url('fonts/BBBDMSans-Light.woff2') format('woff2'),
         url('fonts/BBBDMSans-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'ByeByeBinary';
    src: url('fonts/BBBDMSans-Regular.woff2') format('woff2'),
         url('fonts/BBBDMSans-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'ByeByeBinary';
    src: url('fonts/BBBDMSans-Bold.woff2') format('woff2'),
         url('fonts/BBBDMSans-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Bianzhidai Base';
    src: url('fonts/bianzhidai_noBG-Base.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Bianzhidai Brush';
    src: url('fonts/bianzhidai_noBG-Brush.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Bianzhidai Cloud';
    src: url('fonts/bianzhidai_noBG-Cloud.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Bianzhidai Bubble';
    src: url('fonts/bianzhidai_noBG-Bubble.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Herthey';
    src: url('fonts/BBB-Herthey-Futural--15.woff2') format('woff2'),
         url('fonts/BBB-Herthey-Futural--15.woff') format('woff');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Herthey';
    src: url('fonts/BBB-Herthey-Futural-40.woff2') format('woff2'),
         url('fonts/BBB-Herthey-Futural-40.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Herthey';
    src: url('fonts/BBB-Herthey-Futural-95.woff2') format('woff2'),
         url('fonts/BBB-Herthey-Futural-95.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}


h1 { 
	font-family:'Bianzhidai Base', sans-serif; 
	font-weight: 400; 
	font-style: normal; 
	font-size: 60px; 
	color: rgb(1, 127, 211); 
	text-align: left; 
	margin-left: 10%;
	margin-top: 5%;
	margin-bottom: 2%;
}
h2 {
	font-family: 'Herthey', sans-serif;
	font-weight: 400;
	color: rgb(1, 127, 211);
	font-size: 16px;
}

h3 {
	font-family: 'Hertey', sans-serif;
	font-weight: 700;
	font-size: 10px;
	color: rgb(181, 235, 255);
}

body {
    font-family: Lato, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: rgba(20, 20, 20, 1);
}

#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
}

/* CONTEXTE DU TITRE */
.title-wrapper {
    position: relative;
    z-index: 0;
    isolation: isolate;
}

/* ÉTOILE */
.etoile {
    position: absolute;
    top: -160%;
    left: -16%;
    width: 40%;
    z-index: -1;
    opacity: 0.8;
    pointer-events: none;
}

/* GALERIE AU-DESSUS */
.gallery {
    position: relative;
    z-index: 1;
}


nav {
    width: 100%;
    background-color: rgba(20, 20, 20, 1);
    position: sticky;
    top: 0;
    z-index: 10;
}

nav ul {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav ul li {
    flex: 1;
    text-align: center;
    position: relative;
}

nav ul li a {
    display: block;
    padding: 15px 0;
    text-decoration: none;
    color: black;
    position: relative; 
    transition: color 0.3s;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;         
    height: 2px;        
    background-color: #acd111;
    transition: width 0.3s; 
}

nav ul li a:hover {
    color: #acd111;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li .sous {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    z-index: 1000;
}

nav ul li:hover .sous {
    display: flex;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
    nav ul li {
        text-align: left;
    }
}

.gallery ul {
    list-style: none;
    margin-left: 10%;
    padding: 0;
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    max-width: 70rem;
	background-size: cover;
	z-index: 3;
}

.gallery ul li {
    overflow: hidden;
    position: relative;
}

.gallery figure {
    margin: 0;
    position: relative;
    overflow: hidden;
}

.gallery img {
    width: 100%;
    display: block;
    aspect-ratio: 1/1;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 1s, filter 0.5s;
}

.gallery figure::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: rgba(0, 0, 0, 0.5);
    transform: scale(2);
    opacity: 0;
    transition: transform 0.9s, opacity 0.3s;
}

.gallery figcaption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    color: white;
    font-size: 1.2rem;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.6s, transform 0.6s;
}

.gallery a:hover img {
    transform: scale(1.2);
    filter: grayscale(0%);
}

.gallery a:hover figcaption {
    opacity: 1;
}

.gallery a:hover figure::after {
    transform: scale(2.5);
    opacity: 1;
}
