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

html, body {
    height: 100%;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
    background: black;
}

/* ================= 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 */
.logo img {
    height: 40px;
}

/* ================= DESKTOP NAV ================= */
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: 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: 120;
}

.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; }

/* CROIX */
.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);
    pointer-events: auto;
}

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

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

/* ================= SECTIONS ================= */
section {
    width: 100%;
    position: relative;
    min-height: 100vh;
}

#home {
    height: 100vh;
    overflow: hidden;
}

/* VIDEO */
.video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* HERO */
.hero-text {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-text h1 {
    font-size: clamp(32px, 6vw, 80px);
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* ================= PROJECTS ================= */
.image-bg {
    background: black;
}

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

.project {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    text-decoration: none;
}

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

.project:hover img {
    transform: scale(1.06);
}

.project-info {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project:hover .project-info {
    opacity: 1;
}

.project-info h3 {
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.project-info span {
    font-size: 14px;
    opacity: 0.8;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {

    nav, .socials {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .projects {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    /* FORCE VISIBILITÉ TITRES */
    .project-info {
        opacity: 1 !important;
        background: none;
        text-shadow: 0 0 5px rgba(0,0,0,0.7);
    }
}

/* ================= 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;
}