@font-face {
    font-family: 'Inclusive';
    src: url('fonts/InclusiveSans-VariableFont_wght.ttf') format('truetype');
}

/* =========================================
   1. RESET ET BASE
========================================= */
body::-webkit-scrollbar { display: none; }
html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #F9F9F9;
}

body, html {
    overflow: hidden; 
    height: 100vh; 
    width: 100%;
}

body {
    font-family: 'Inclusive', sans-serif;
    background-color: rgb(15, 15, 15);
    padding-top: 70px; 
    display: flex;
    flex-direction: column;
}

main {
    height: 100vh;
    display: flex;
    flex-direction: column; 
    overflow: hidden; 
}

a { text-decoration: none; }

/* =========================================
   2. BARRE DE NAVIGATION & MENU
========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 70px;
    
    /* Effet Glassmorphism ajouté pour la lisibilité */
    background-color: rgba(15, 15, 15, 0.8); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
}

.brand-name {
    font-size: 1.5rem;
    font-weight: bold;
}

.hamburger {
    display: block;
    cursor: pointer;
    z-index: 1001;
}

button.hamburger {
    background: none;
    border: none;
    padding: 0;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #F9F9F9;
    border-radius: 50px;
    transition: all 0.4s ease-in-out;
}

.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.side-menu {
    position: absolute;
    right: 100px; 
    display: flex;
    flex-direction: row; 
    gap: 2.5rem; 
    list-style-type: none;
    opacity: 0; 
    visibility: hidden; 
    transform: translateX(20px); 
    transition: all 0.4s ease-in-out;
}

.side-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.side-menu a {
    font-size: 1.2rem;
    display: block;
    padding: 0.5rem;
    font-weight: bold;
}

.side-menu a span {
    color: #898989; 
    transition: color 0.3s ease;
}

.side-menu a:hover span { color: #F9F9F9; }

/* =========================================
   3. STICKERS & TITRES DE LA PAGE PROJET
========================================= */
#stickers {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.sticker-img {
    width: 450px !important;
    height: auto;
    display: block;
    padding: 0 !important;
    transform: translateY(-10px); 
    cursor: pointer;
}

.sticker-touch {
    width: clamp(220px, 80vw, 500px) !important; 
    height: auto; 
    display: block;
}

.sticker-touch2 {
    width: 65% !important; 
    height: fit-content;
    display: block;
}

main h2 {
    padding-bottom: 1rem;
    color: #FF83D1;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.back-link {
    width: fit-content;
    display: inline-block;
    margin: 0 0 1rem 8rem; 
    color: #898989;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.back-link:hover { color: #FF83D1; }

/* =========================================
   4. STRUCTURE DES CARTES PROJETS
========================================= */
.img-wrapper {
    width: 100%;
    border-radius: 6px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
    overflow: hidden; 
}

.img-wrapper2 {
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
    overflow: hidden; 
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.215, 0.610, 0.355, 1);
}

@media (hover: hover) {
    .project-image img:not(.no-zoom):hover,
    .project-image video:not(.no-zoom):hover {
        transform: scale(1.06); 
    }
}

.project-info h3 {
    color: #FF83D1;
    margin-bottom: 1rem;
    margin-top: 2.5rem;
    font-size: 1.8rem;
}

.project-info h3:first-child { margin-top: 0; }

.project-info p {
    line-height: 1.6;
    font-size: 1.1rem;
    color: #E0E0E0;
    text-align: justify;
}

.project-info a { color: #FF83D1; }

.project-image video {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    box-shadow: none;
    border-radius: 0;
    transition: transform 0.5s cubic-bezier(0.215, 0.610, 0.355, 1);
}

/* =========================================
   5. SLIDER HORIZONTAL (MOLETTE)
========================================= */
#projects-scroll-container {
    flex: 1; 
    width: 100%;
    position: relative; 
    overflow: hidden;
    display: flex; 
    align-items: flex-start; 
    padding-top: 2vh; 
}

.projects-sticky-wrapper {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: flex-start; 
}

.projects-track {
    display: flex;
    height: 100%; 
    align-items: flex-start; 
    width: max-content;
    will-change: transform;
    padding-left: 7rem;
}

.project-details {
    width: 85vw; 
    height: fit-content; 
    flex-shrink: 0;
    margin-right: 5vw; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    padding: 0 2rem; 
}

.project-image {
    width: 50%;
    position: relative;
    top: auto;
}

.project-info {
    width: 45%;
    max-height: 100%; 
    overflow-y: auto;
    padding-right: 1rem;
}

.project-info::-webkit-scrollbar { width: 5px; }
.project-info::-webkit-scrollbar-thumb {
    background-color: #FF83D1;
    border-radius: 10px;
}

footer { display: none; }

/* =========================================
   6. ANIMATIONS D'APPARITION AU SCROLL
========================================= */
.hidden-anim {
    opacity: 0;
    transform: translateY(40px); 
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.hidden-anim.show {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 150ms; }
.delay-2 { transition-delay: 300ms; }

/* =========================================
   7. MEDIA QUERIES (Responsive)
========================================= */

/* --- TABLETTE (<= 1024px) --- */
@media (max-width: 1024px) {
    body, html {
        overflow: auto;
        height: auto;
    }

    main {
        height: auto;
        display: block;
        padding-top: 60px;
    }

    #stickers {
        padding-bottom: 60px;
        padding-top: 0px;
    }

.sticker-touch2 {
        /* On remplace le 85% rigide par une taille fluide et intelligente */
        width: clamp(200px, 80vw, 750px) !important; 
        
        /* LA LIGNE MAGIQUE ANTI-ÉCRASEMENT : force l'image à garder ses proportions */
        height: auto !important; 
        
        /* On s'assure qu'il reste bien centré */
        margin: 0 auto; 
    }

    footer {
        display: block;
        text-align: center;
        padding: 1rem 3rem;
    }

    main h2 { font-size: 2rem; }
    
    .back-link { margin: 0 0 2rem 2rem; }

    .projects-sticky-wrapper {
        height: auto;
        display: block;
    }

    .projects-track {
        flex-direction: column;
        width: 100%;
        height: auto;
        transform: none !important; 
        padding-left: 0;
        gap: 0.5rem;
    }

    .project-details {
        width: 100%;
        height: auto;
        margin-bottom: 4rem;
        flex-direction: column;
        padding: 0 2rem;
        gap: 0.5rem;
    }

    .project-image, 
    .project-info {
        width: 100%;
    }

    .project-image { margin-bottom: 2rem; }
    .project-info { max-height: none; overflow: visible; }
    .project-info h3 { font-size: 1.5rem; }
    
    footer p { font-size: 0.9rem; }
}

/* --- MOBILE (<= 768px) --- */
@media (max-width: 768px) {
    .side-menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%; 
        background-color: #FF83D1; 
        flex-direction: column; 
        justify-content: center;
        align-items: center;
        gap: 0;
        opacity: 1;
        visibility: visible;
        transform: translateX(100%); 
        transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 999;
    }

    .side-menu.active { transform: translateX(0); }
    .side-menu a {
        font-size: 1.5rem;
        padding: 2rem;
        font-weight: bold; 
    }
    .side-menu a span { color: #F9F9F9; }

    main { padding-top: 40px; }
    
    #stickers {
        padding-bottom: 40px;
        padding-top: 0px;
    }
    
    .back-link { margin: 0 0 1rem 2rem; }
}
