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

html, body {
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    background: black;
    color: white;
}

/* ================= HEADER ================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;

    background: transparent;
    overflow: hidden;
}

 /* couche 1 : ultra soft (départ quasi invisible) */
header::before {
    content: "";
    position: absolute;
    inset: 0;

    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
}

/* couche 2 : progression + vrai pic de blur */
header::after {
    content: "";
    position: absolute;
    inset: 0;

    /* 🔥 plus réaliste que 30px constant */
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    mask-image: linear-gradient(
        to bottom,

        /* 0–8px : quasi clean */
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.98) 5%,
        rgba(0,0,0,0.94) 10%,

        /* début visible */
        rgba(0,0,0,0.85) 18%,
        rgba(0,0,0,0.72) 26%,

        /* montée rapide */
        rgba(0,0,0,0.55) 36%,
        rgba(0,0,0,0.38) 48%,

        /* 🔥 zone blur fort (vraie profondeur ici) */
        rgba(0,0,0,0.20) 62%,
        rgba(0,0,0,0.08) 78%,

        /* disparition */
        rgba(0,0,0,0) 100%
    );
}

/* contenu net */
header > * {
    position: relative;
    z-index: 2;
}
/* ================= FIN DE HEADER ================= */

.logo img {
    height: 40px;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #25e0d5;
}

/* ================= SOCIALS ================= */
.socials {
    display: flex;
    gap: 15px;
}

.socials img,
.mobile-socials img {
    height: 25px;
    opacity: 0.8;
    transition: all 0.3s ease;
    filter: invert(1);
}

.socials img:hover,
.mobile-socials img:hover {
    opacity: 1;
    filter: invert(74%) sepia(57%) saturate(420%) hue-rotate(130deg) brightness(95%) contrast(90%);
}

.inverser {
    filter: invert(1);
}

/* ================= HAMBURGER ================= */
.hamburger {
    display: none;
    width: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
    z-index: 110;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
    transition: all 0.4s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 10px;
}

/* ================= MOBILE MENU ================= */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transform: translateY(-100%);
    transition: transform 0.5s ease;
    z-index: 90;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 22px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.mobile-socials {
    position: absolute;
    bottom: 40px;
    display: flex;
    gap: 25px;
}

.mobile-socials img {
    height: 22px;
}

/* ================= HERO (VERSION FLEXIBLE PROJET) ================= */
/*
UTILISATION HTML :
<section class="hero">
    <img class="hero-bg" src="images/TONIMAGE.jpg">
    <h1>TITRE</h1>
</section>
*/

.hero {
    height: 50vh;
    display: flex;
    align-items: flex-end;
    padding: 100px 5vw;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 60px);
    letter-spacing: 4px;
    position: relative;
    z-index: 1;
}

/* ================= CONTENT ================= */
.info {
    padding: 80px 5vw;
    max-width: 1200px;
}

.meta h2 {
    font-size: 14px;
    letter-spacing: 2px;
    opacity: 0.6;
    margin-bottom: 9px;
    margin-top: 20px;
}

.meta p {
    font-size: 20px;
}

.effect {
    font-size: 22px;
    letter-spacing: 2px;
    margin-top: 30px;
    color: #25e0d5;
}

/* ================= GRID ================= */
.section-title {
    padding: 0 5vw;
    margin: 20px 0;
    font-size: 14px;
    letter-spacing: 3px;
    opacity: 0.6;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    padding: 0 5vw 80px;
}

.grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.6s ease;
}

.grid img:hover {
    transform: scale(1.05);
}

/* ================= VIDEO ================= */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin-bottom: 40px;
}

.video-container iframe {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* ================= FESTIVALS ================= */
.festivals {
    padding: 0 5vw 100px;
}

.festivals p {
    margin-bottom: 10px;
    font-size: 14px;
    opacity: 0.8;
}

/* ================= LIGHTBOX ================= */
#lightbox {
    position: fixed;
    inset: 0;
    background: black;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 200;
    flex-direction: column;
}

#lightbox img {
    max-width: 90%;
    max-height: 80%;
    margin-bottom: 20px;
}

#lightbox .close,
#lightbox .prev,
#lightbox .next {
    position: absolute;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    background: rgba(0,0,0,0.5);
}

#lightbox .close { top: 20px; right: 30px; }
#lightbox .prev { left: 30px; top: 50%; transform: translateY(-50%); }
#lightbox .next { right: 30px; top: 50%; transform: translateY(-50%); }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    nav, .socials {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

/* ================= UTILITY ================= */
.content-width {
    padding: 0 5vw;
}

/* ================= SOUS TITRE ================= */
.subtitle {
    font-size: 20px;
    letter-spacing: 3px;
    text-transform: lowercase;
    margin-bottom: 8px;
    opacity: 0.9;
}

/* ================= BLOCAGE DU SCROL QUAND MENU MOBILE OUVERT ================= */


/* ================= FOOTER ================= */

.site-footer {
    width: 100%;
    padding: 20px 20px;
    background: black;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.site-footer p {
    color: rgba(255,255,255,0.45);
    font-size: 14px;
    line-height: 1.0;
    letter-spacing: 1px;
    margin: 8px 0;
    font-family: Arial, sans-serif;
}

.site-footer strong {
    color: white;
    font-weight: 400;
}

/* ================= CONTEXTE ET DESCRIPTION DU PROJET ================= */
.project-description {
    margin-top: 40px;
    max-width: 1300px;
}

.project-description h2 {
    font-size: 14px;
    letter-spacing: 2px;
    opacity: 0.6;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.project-description p {
    font-size: 16px;
    line-height: 1.2;
    opacity: 0.9;
    margin-bottom: 12px;
}