/* ------------------------------------------------------
   MOBILE FIRST — BASE DARK TRASH
------------------------------------------------------ */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body.dark-body {
    background: #000;
    color: #fff;
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* Bruit VHS permanent */
body.dark-body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("images/noise.png");
    opacity: 0.12;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 9999;
    animation: vhsNoise 0.2s infinite;
}

@keyframes vhsNoise {
    0% { opacity: 0.1; }
    50% { opacity: 0.2; }
    100% { opacity: 0.1; }
}

/* Scanlines */
body.dark-body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.03) 0px,
        rgba(255,255,255,0.03) 1px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
    z-index: 9998;
}

/* ------------------------------------------------------
   DÉCHIRURES / OVERLAYS
------------------------------------------------------ */
.rip-overlay {
    position: fixed;
    inset: 0;
    background: url("images/tear.png") center/cover no-repeat;
    opacity: 0.15;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 9997;
}

/* ------------------------------------------------------
   HEADER — MOBILE FIRST
------------------------------------------------------ */
:root {
    --header-height: 70px;
}

.kl-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid #222;
    z-index: 1000;
}

.kl-logo {
    font-family: "Playfair Display", serif;
    font-size: 1.6rem;
    letter-spacing: 4px;
    color: #fff;
    text-shadow: 0 0 12px #fff;
    animation: glitchLogo 3s infinite;
}

@keyframes glitchLogo {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 1px); }
    40% { transform: translate(2px, -1px); }
    60% { transform: translate(-1px, -2px); }
    80% { transform: translate(1px, 2px); }
    100% { transform: translate(0); }
}

.kl-nav a {
    margin-left: 20px;
    color: #ccc;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.2s;
}

.kl-nav a:hover {
    color: #fff;
    text-shadow: 0 0 8px #fff;
}

/* ------------------------------------------------------
   HERO — VIDÉO ENTIÈRE SUR MOBILE
------------------------------------------------------ */

/* Le HERO ne force pas le plein écran sur mobile :
   il s'adapte à la taille réelle de la vidéo */
.kl-hero {
    position: relative;
    width: 100%;
    margin-top: var(--header-height);
    background: #000;
    overflow: hidden;

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

/* Shadowbox stabilise la vidéo */
.kl-hero-shadowbox {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Vidéo affichée ENTIEREMENT sur mobile */
.kl-hero-video {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center center;
    filter: brightness(0.9) contrast(1.1) grayscale(1);
}

/* Overlay */
.kl-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
    z-index: 2;
    pointer-events: none;
}

/* Texte */
.kl-hero-content {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 3;
}

.kl-title {
    opacity: 0 !important;
    visibility: hidden !important;
}

.kl-subtitle {
    margin-top: 10px;
    font-size: 1rem;
    color: #fff;
    letter-spacing: 3px;
}

/* ------------------------------------------------------
   FLASH PHOTO TRASH
------------------------------------------------------ */
.flash-overlay {
    position: fixed;
    inset: 0;
    background: white;
    opacity: 0;
    pointer-events: none;
    z-index: 2000;
}

.flash-trigger:hover ~ .flash-overlay {
    animation: flashTrash 0.15s;
}

@keyframes flashTrash {
    0% { opacity: 0; }
    20% { opacity: 1; }
    100% { opacity: 0; }
}

/* ------------------------------------------------------
   GALERIE — MOBILE FIRST
------------------------------------------------------ */
.kl-gallery {
    padding: 80px 0;
}

.kl-section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #fff;
    letter-spacing: 4px;
    text-shadow: 0 0 12px #fff;
}

.kl-gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px;
}

.kl-photo-card {
    overflow: hidden;
    border: 2px solid #111;
    transition: 0.3s;
}

.kl-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.6) brightness(0.8) grayscale(1);
    transition: 0.3s;
}

.kl-photo-card:hover img {
    transform: scale(1.2);
    filter: contrast(2) brightness(1.2) grayscale(0);
}

.kl-photo-card:hover {
    border-color: #fff;
    box-shadow: 0 0 25px #fff;
}

/* ------------------------------------------------------
   ABOUT — MOBILE FIRST
------------------------------------------------------ */
.kl-about {
    padding: 80px 0;
    background: #050505;
}

.kl-about-inner {
    display: block;
    padding: 0 20px;
}

.kl-about-text p {
    margin-bottom: 20px;
    color: #ccc;
    line-height: 1.7;
}

.kl-about-img img {
    width: 100%;
    margin-top: 30px;
    border: 2px solid #222;
    filter: grayscale(1) contrast(1.8);
    transition: 0.3s;
}

.kl-about-img:hover img {
    filter: grayscale(0) contrast(2);
    transform: scale(1.05);
}

/* ------------------------------------------------------
   FORMULAIRE — MOBILE FIRST
------------------------------------------------------ */
.kl-contact {
    padding: 80px 0;
    background: #000;
}

.kl-form {
    width: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kl-form-group label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: #fff;
}

.kl-form-group input,
.kl-form-group textarea {
    width: 100%;
    padding: 14px;
    background: #0a0a0a;
    border: 2px solid #222;
    color: #fff;
    font-size: 1rem;
    transition: 0.2s;
}

.kl-form-group input:focus,
.kl-form-group textarea:focus {
    border-color: #fff;
    box-shadow: 0 0 12px #fff;
}

.kl-submit {
    padding: 14px 28px;
    background: #fff;
    color: #000;
    border: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: 0.2s;
}

.kl-submit:hover {
    background: #000;
    color: #fff;
    border: 1px solid #fff;
}

/* ------------------------------------------------------
   FOOTER
------------------------------------------------------ */
.kl-footer {
    padding: 30px;
    text-align: center;
    background: #000;
    border-top: 1px solid #111;
    color: #666;
    letter-spacing: 2px;
}

/* ------------------------------------------------------
   DESKTOP BREAKPOINTS
------------------------------------------------------ */
@media (min-width: 768px) {

    :root {
        --header-height: 80px;
    }

    .kl-header {
        padding: 18px 40px;
    }

    .kl-logo {
        font-size: 2rem;
        letter-spacing: 6px;
    }

    .kl-nav a {
        font-size: 0.95rem;
        margin-left: 30px;
    }

    /* Sur desktop, si tu veux que le hero remplisse l'écran,
       on peut repasser en cover */
    .kl-hero {
        height: calc(100vh - var(--header-height));
    }

    .kl-hero-shadowbox {
        height: 100%;
    }

    .kl-hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover; /* mets contain ici si tu veux jamais de crop */
    }

    .kl-hero-content {
        bottom: 15%;
    }

    .kl-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 40px;
        gap: 25px;
    }

    .kl-about-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        padding: 0 40px;
    }

    .kl-form {
        width: 60%;
        margin: auto;
    }
}
