/* ================= FILTER TOGGLE & FILTER BAR IN FOOTER ================== */

.filter-toggle {
  color: var(--color-accent);
  background: rgba(255,255,255,0.10);
  border: none;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  padding: 0.6em 1.5em;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
   display: block;
    margin: 0 auto;
  box-shadow: none;
  outline: none;
  letter-spacing: 0.01em;
}

.filter-toggle:hover {
  background: rgb(255, 255, 255);
  color: var(--color-primary);
}
.filter-toggle:focus,
.filter-toggle.active {
  background: rgb(255, 255, 255);
  color: var(--color-primary);
}

.filter-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  right: auto;
  bottom: 0;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 2000;
  min-height: 56px;
  padding: 0.8em 0;
  background: rgba(22,22,22,1);
  box-shadow: 0 -2px 16px 0 rgba(0,0,0,0.12);
}
.filter-bar.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.filter-bar .filter-menu {
  margin: 0 auto;
}


.filter-close {
  margin: 0 1rem;
  border-radius: 999px;
  padding: 0.6em 1.5em;
  color: var(--color-accent);
  background: rgba(255,255,255,0.10);
  border: none;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.filter-close:hover {
  background: rgb(255, 255, 255);
  color: var(--color-primary);
}
.filter-close:focus,
.filter-close.active {
  background: rgb(255, 255, 255);
  color: var(--color-primary);
}
/* ================= FILTER MENU ================== */
       /* Filter Menu */

       .filter-title {
  color: var(--color-secondary);
  font-size: 0.9em;
  font-weight: 400;
  margin-right: 1rem;
}

        .filter-menu {
            display: flex;
            align-items: center;
            gap: 1rem;
            z-index: 10;
            position: relative;
            /* No opacity/transform animation for filter-menu */
        }

.filter-btn {
  padding: 0.6em 1.5em;
  border: none;
  background: rgba(255,255,255,0.10);
  color: var(--color-accent);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, text-decoration 0.3s ease;
  outline: none;
  box-shadow: none;
}
.filter-btn:hover {
  background: rgb(255, 255, 255);
  color: var(--color-primary);
}
.filter-btn.active,
.filter-btn:focus {
  background: rgb(255, 255, 255);
  color: var(--color-primary);
}

.hidden {
  opacity: 0 !important;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fading-out {
  opacity: 0 !important;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
:root {
  --color-primary:   #161616;  /* Couleur dominante, souvent utilisée pour les fonds ou le texte fort */
  --color-secondary: #A3A3A3;  /* Couleur secondaire, parfaite pour les éléments de soutien */
  --color-accent:    #FCFCFC;  /* Couleur d’accent ou de contraste */
}


    html {
        scroll-behavior: smooth;
    }

header {
        transition: opacity 0.8s ease-out 0.6s, transform 0.8s ease-out 0.6s;

}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: inherit;
    background-color: var(--color-primary);
    display: flex;
overflow: hidden;
}



main {
    height: 100vh;
}



    .fade-in {
        opacity: 0;
        transform: translateY(30px);
        /* Only set initial state, no animation or transition here */
    }

    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 1.8s ease-out, transform 1.8s ease-out;
    }


.reveal {
  overflow: hidden;
  position: relative;
}

.reveal img {
  transform: translateY(-101%);
  transition: transform 1.8s cubic-bezier(0.25, 0.8, 0.25, 1); /* reveal lent */
}

.reveal.visible img {
  transform: translateY(0);
}





.main-container {
    position: relative;
}






.home svg {
    position: relative;
    display: block;
    width: 110%;
    height: auto;
    opacity: 1;
}



.home span {
    width: 100%;
}



.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100%;
}

.hero {
    height: 100vh;
    z-index: 1;
    position: relative;
}

.home {
    position: relative; /* nouveau */
    transform: none; /* supprime translateY(10%) si inutile */
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    margin-bottom: auto;
    z-index: 0;

    transform: translateY(-10%);
}

.container-cover {
    position: absolute; /* nouveau */
    top: 0; /* commence en haut */
    left: 18vw;
    right: 12vw;
    display: flex;
    flex-direction: row;
    justify-content: start;
    width: auto;
    padding: 0;
    z-index: 1; /* ajuste selon le besoin */
    transform: translateY(100%);
}

.cover {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 50%;
}

.home .img2 {
    transform: translateX(2vw);
      z-index: 2;
      width: 18vw;
      height: 24vw;
}

.container-intro {
    display: flex;
    flex-direction: row;
    justify-content: end;
    width: 90%;

    margin-bottom: 24px;
}

.intro {
    width: 40%;
}

.home .img2 img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

p {
	font-family: "Inter", serif;
	font-size: 11px;
	font-optical-sizing: auto;
	font-weight: 200;
	font-style: normal;
  color: var(--color-accent);}
  






.works {
    height: 80vh;
    z-index: 3;
    position: absolute;
    top: 0vh;

}


        /* Gallery Container */
        .gallery-wrapper {
            width: 100vw;
            height: 100vh;
            position: relative;
            display: flex;
            align-items: center;
            opacity: 0; /* état initial */
            animation: fadeInDelayed 2s ease forwards 2s;
        }

        .gallery {
            display: flex;
            padding: 0 50vw;
            transition: none;
            will-change: transform;
        }

        .gallery__item {
            flex: 0 0 320px;
            width: 320px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 1rem;
            transition: flex-basis 0.4s ease, width 0.4s ease, transform 0.4s ease;
            cursor: pointer;
            transform-origin: center;
            height: 500px;
        }

        .gallery__item img {
              width: 100%;
            height: 100%;
            object-fit: cover;
            aspect-ratio: auto; /* supprime le ratio qui crée le décalage */
            aspect-ratio: 4 / 5;
            object-fit: cover;
            transition: all 0.4s ease;
        }

        .gallery-caption {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--color-accent);
            transition: all 0.4s ease;
            opacity: 0.8;
            transform: translateY(0);
        }

        .gallery-category {
            font-size: 0.9rem;
            font-weight: 400;
            color: var(--color-secondary);
            transition: all 0.4s ease;
            opacity: 0.7;
            transform: translateY(0);
        }

        /* Scale effect for centered items */
        .gallery__item.center {
            flex: 0 0 450px;
            width: 450px;
            vertical-align: top;
            height: 500px;
        }

        .gallery__item.center .gallery-caption {
            opacity: 1;
            font-size: 1.4rem;
        }

        .gallery__item.center .gallery-category {
            opacity: 1;
        }

        .gallery__item.center img {
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
        }



    


/* Animation d'apparition fluide pour les projets de la galerie */
@keyframes fadeInDelayed {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}












.name {
display: flex;
flex-direction: column;
justify-content: end;



}
.name h1{
    transform: rotate(-90deg);
    display: flex;
    justify-content: end;
}

.h4 {
    font-family: "Inter", sans-serif;
	font-size: 16px;
	font-optical-sizing: auto;
	font-weight: 600;
    letter-spacing: -1px;
	font-style: normal;
    color: var(--color-accent);
}







.container-works {
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
     width: 50%;
     height: 80%;
}


.cover-work img {
    align-items: center;
     position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-work{
    display: flex;
    flex-direction: row;
        position: relative; /* nouveau */
      z-index: 1;
      width: 100%;
      height: 18vw;
      overflow: hidden;
}

.title-work {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
        position: relative; /* nouveau */
    color: var(--color-accent);
    z-index: 2;
    width: 100%;

}

.title-work h2{
    font-family: "Inter", serif;
	font-size: 48px;
	font-optical-sizing: auto;
    letter-spacing: -2px;
	font-weight: 300;
    font-style: italic;

}

.description-work {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
        position: relative; /* nouveau */
    z-index: 2;
    width: 100%;

}

.description-work p {
        color: var(--color-accent);
        width: 50%;
        padding-top: 12px;

}


.right-cross {
 transform: translateX(100%);
}

.left-cross {
 transform: translateX(-100%);
}




    /* Footer */
        footer {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 1rem 2rem;
            background: var(--color-primary);
            z-index: 10;
            opacity: 0;
            transform: translateY(100%);
            transition: opacity 0.8s ease-out 0.6s, transform 0.8s ease-out 0.6s;
        }

        footer.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .footer-bottom {
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0.6;
            position: relative;
            gap: 2rem; /* espace entre les éléments */
        }

.footer-bottom .filter-toggle {
    position: absolute;
    left: 50%;
    bottom: 3rem; /* garde le bouton légèrement au-dessus du bas */
    transform: translateX(-50%) translateY(50px);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1) 2s, opacity 1s ease 2s;
}

/* Classe visible pour déclencher l'animation */
.footer-bottom .filter-toggle.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

        .footer-bottom .footer-info {
            margin-right: auto;
        }

        .footer-bottom .rs {
            margin-left: auto;
            font-size: 0.8rem; /* même taille que .footer-info */
        }

        .footer-bottom .rs p a {
            font-size: 0.8rem; /* même taille que .footer-info */
            color: var(--color-secondary);
            text-decoration: none;
            font-weight: 400;
            transition: color 0.3s ease; /* animation de la couleur */
        }

        .footer-bottom .rs p a:hover {
            color: var(--color-accent); /* couleur au survol */
        }

        .footer-info {
            color: var(--color-secondary);
            font-size: 0.8rem;
            font-weight: 400;
        }

        .footer-info a {
            font-size: 1rem;
            color: var(--color-secondary);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-info a:hover {
            color: var(--color-accent);
        }

        .rs {
            display: flex;
            gap: 2rem;
        }





/* Remove scroll-indicator styles (no longer used) */












/* =============== HERO SVG ANIMATION =============== */


@keyframes svgFadeColor {
    from { fill: var(--color-accent); }
    to { fill: #ececec06; }
}

.fade-in.visible .hero-svg path {
    animation: svgFadeColor 1.8s ease forwards 1.8s;
}

        /* Animate caption upwards on hover */
        .gallery__item:hover .gallery-caption {
            transform: translateY(-10px);
            transition: transform 0.3s ease;
        }

        /* Animate category upwards on hover */
        .gallery__item:hover .gallery-category {
            transform: translateY(-10px);
            transition: transform 0.3s ease;
        }




/* Button hover and active animations for smooth feel */
.filter-btn, .filter-toggle, .filter-close {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.filter-toggle:hover {
  transform: translateX(-50%) translateY(-3px) scale(1.03);
}

.filter-toggle:active {
  transform: translateX(-50%) translateY(0) scale(0.98);
}

.filter-btn:hover, .filter-close:hover {
  transform: translateY(-3px) scale(1.03);
}

.filter-btn:active, .filter-close:active {
  transform: translateY(0) scale(0.98);
}













@media (max-width: 768px) {






        /* Gallery Container */
        .gallery-wrapper {
            width: 100vw;
            height: 100vh;
            position: relative;
            display: flex;
            align-items: center;
            opacity: 0; /* état initial */
            animation: fadeInDelayed 2s ease forwards 2s;
        }

        .gallery {
            display: flex;
            padding: 0 50vw;
            transition: none;
            will-change: transform;
        }

        .gallery__item {
            flex: 0 0 220px;
            width: 220px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 1rem;
            transition: flex-basis 0.4s ease, width 0.4s ease, transform 0.4s ease;
            cursor: pointer;
            transform-origin: center;
            height: 320px;
        }

        .gallery__item img {
              width: 100%;
            height: 100%;
            object-fit: cover;
            aspect-ratio: auto; /* supprime le ratio qui crée le décalage */
            aspect-ratio: 4 / 5;
            object-fit: cover;
            transition: all 0.4s ease;
        }

        .gallery-caption {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--color-accent);
            transition: all 0.4s ease;
            opacity: 0.8;
            transform: translateY(0);
        }

        .gallery-category {
            font-size: 0.9rem;
            font-weight: 400;
            color: var(--color-secondary);
            transition: all 0.4s ease;
            opacity: 0.7;
            transform: translateY(0);
        }

        /* Scale effect for centered items */
  .gallery__item.center {
    flex: 0 0 220px;  /* même taille que les autres */
    width: 220px;
    height: 320px;
    box-shadow: none; /* enlever aussi l'ombre */
  }

        .gallery__item.center .gallery-caption {
            opacity: 1;
            font-size: 1.4rem;
        }

        .gallery__item.center .gallery-category {
            opacity: 1;
        }

        .gallery__item.center img {
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
        }




        .footer-bottom .filter-toggle { 
            bottom: 2rem;
            padding: 0.8em 2em;
            font-size: 1.1rem;
        }

         .footer-info {
            display: none;
        }

        .footer-info a {
            display: none;

        }

        .rs {
            display: none;
        }

/* Disable hover animations on mobile */
.gallery__item:hover .gallery-caption,
.gallery__item:hover .gallery-category {
    transform: none !important;
}

.gallery__item:hover img {
    transform: none !important;
    box-shadow: none !important;
}

}