/* =========================================
   STRUCTURE PRINCIPALE
========================================= */
:root {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

main {
    display: block;
    width: 100vw;
    min-height: 100vh;
    position: relative;
}

#mobile-msg {
    display: none;
    height: 100vh;
    width: 100vw;
    font-size: 1.2rem;
    line-height: 1.5;
    padding: 2rem;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* =========================================
   2. FOND FIXE
========================================= */
#fixed-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -100;
    background-color: var(--main-color);
}

#fixed-bg video, #fixed-bg img {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    /* height: 50%; */
    width: 100%;
    min-height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 500ms ease;
}

#fixed-bg .visible { opacity: 1;}

/* =========================================
   3. BLOCS DE PROJETS (LE PASSE-PARTOUT SVG)
========================================= */
.scroll-group {
    width: 100vw;
    display: flex;
    flex-direction: column;
}

.project-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    padding-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
}

#fixed-blur-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(#f7edd510 1px, transparent 1px),
        linear-gradient(90deg, #f7edd510 1px, transparent 1px);
    background-size: 20px 20px;

    backdrop-filter: blur(15px) brightness(0.6) grayscale(1);
    -webkit-backdrop-filter: blur(15px) brightness(0.6) grayscale(1);
    mask: url(#dynamic-window-mask);
    -webkit-mask: url(#dynamic-window-mask);

}

.carrousel-container {
    position: relative;
    width: 80vw;
    height: 80vh;
    z-index: 2;
    transform: translate(0,0);
    transition: width 200ms ease, filter 200ms ease;
    will-change: transform;
}

.carrousel-container:hover {
    backdrop-filter: brightness(.7);
    width: 90vw;
}


/* =========================================
TEXTES & TYPOGRAPHIE
========================================= */

.text-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.text-container:hover button {
    opacity: 1;
}

.text-container h3 {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    text-wrap: nowrap;
    text-align: center;
}

.text-container button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none;
    background: none;
    cursor: pointer;
    transition: 200ms ease;
    opacity: 0;
}

.type, .date {
    font-family: Writer;
    font-size: 1rem;
    font-weight: 300;
    font-style: italic;
    position: absolute;
    bottom: 3%;
    display: block;
}

.type {
    left: 3%;
    text-align: left;
}

.date {
    right: 3%;
    text-align: right;
}


/* =========================================
   RESPONSIVE
========================================= */
/* Sur Tablette (moins de 1024px) */
@media (max-width: 1024px) {
    
}

/* Sur Mobile (moins de 768px) */
@media (max-width: 768px) {
    .carrousel-container {
        height: 70vh;
    }
    
    .date, .type {
        display: none;
    }

    .text-container h3 {
        width: 90%;
        font-size: 1.2rem;
        text-wrap: wrap;
    }
}