* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  
}

html.fixed {
    overflow: hidden;
    height: 100%;
}

header img {
  cursor: pointer;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  scroll-behavior: smooth;
  transition: all ease-in-out 0.2s;
  animation: bgMove 30s ease infinite;

}

body {
            padding-bottom: 60px; /* pour que le contenu ne soit pas caché par le footer */
        }

nav {
  position: fixed;
  left: 0;
  right: 0;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  padding: 10px;
  border-radius: 2px;

  width: 100%;
  box-sizing: border-box;
  background: url("black-scales.pngs") repeat;

  background: rgba(255, 255, 255, 0.658);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: all 0.6s ease-in-out;

  border-bottom: 1px solid gba(255, 255, 255, 0.863);
  box-shadow: -1px 0px 2px 1px rgba(226, 226, 226, 0.2);
}

nav.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

nav p {
  color: #000000;
  margin-left: 50px;
  font-weight: none;
  font-size: 15px;
}

nav img {
    width: 60px;
    margin-left: 50px;
}
nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin-right: 55px;
  padding: 0;
}

nav li img {
  width: 15px;
  margin-right: 7px;
}

nav li {
  cursor: pointer;
  color: rgb(0, 0, 0);
  font-weight: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  transition: all ease-in-out O.3s;
}

nav li:hover {
 opacity: 50%;
 transition: all ease-in-out O.3s;

}

        h2 {
                margin-top: 5%;
                font-size: 2rem;
                margin-bottom: -20px;
                color: #111;
                letter-spacing: 0.5px;
                text-align: left;
        }

        .nav-view {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 93%;               /* largeur adaptative */
    max-width: 100%;        /* limite sur grands écrans */
    margin: 0 auto 20px auto; /* centrage horizontal + espace en bas */
    padding: 10px 0;
    box-sizing: border-box;
    margin-bottom: -60px;
    margin-top: 60px;
}

nav ul li a {
  text-decoration: none;
  color: #000000;
}
.nav-view h2 {
    margin: 0;
    font-size: 1.5rem;
}

.nav-view .btn-back {
    cursor: pointer;
}

.nav-view .btn-back img {
    height: 28px;
    transition: transform 0.2s ease;
}


        .gallery-view {
            padding: 60px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
        }

        .gallery-view img {
            width: 100%;
            height: auto;
            object-fit: cover;
            border-radius: 5px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
            transition: transform 0.4s ease;
            cursor: pointer;
        }

        .gallery-view img:hover {
            transform: scale(1.03);
        }

        .fullscreen-viewer {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: none;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            overflow: hidden;
            backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
        }

        .fullscreen-viewer.hidden {
            display: none;
        }

        .slider-container {
            position: relative;
            width: 90%;
            max-width: 1200px;
            height: 90%;
            max-height: 80vh;
            overflow: hidden;
            opacity: 1;
            transform: scale(1);
            transition: transform 0.4s ease, opacity 0.4s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            background: none;
        }

        @keyframes scaleIn {
            from {
                transform: scale(0.95);
                opacity: 0;
            }
            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        .slider-container.animate-in {
            animation: scaleIn 0.4s ease forwards;
        }

        .slider-inner {
    width: 100%;
    height: 100%;
    transition: left 0.3s ease;
        }

        .slider-inner img {
            width: 100%;
            height: auto;
            flex-shrink: 0;
            border-radius: 8px;
            object-fit: contain;
            max-height: 100%;
        }

        .nav-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 64px;
            height: 64px;
            cursor: pointer;
            z-index: 10000;
            opacity: 0.8;
        }

        .nav-arrow:hover {
            opacity: 1;
        }

        .nav-left {
            left: 50px;
        }

        .nav-right {
            right: 50px;
        }

        


.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background: rgba(255, 255, 255, 0.15); /* clair & semi-transparent */
    color: #858484dc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 10;
    user-select: none;
    box-shadow: 0 -1px 1px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);           /* 💡 Cœur de l’effet flou */
    -webkit-backdrop-filter: blur(10px);   /* Pour Safari */
}

.footer-content {
  display: flex;
  justify-content: center;
  gap: 1em;
}

.footer a {
  text-decoration: underline;
  color: #858484dc;
}

.footer a:hover {
  color: #ffffff;
}

#closeBtn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
}

#closeBtn span {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}



@media (max-width: 800px) {

  .overlay {
    text-align: center;
  }

.overlay h1 {

  font-size: 50px;
  margin-bottom: 20px;
}

.overlay p {
  font-size: 22px;
}

.overlay button {
  padding: 15px 35px;
  font-size: 20px;

}

.about p {
  max-width: 350px;
}
  
  .vizual-image-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    font-size: 7px;
}

.footer-content {
  gap: 5px;
}

  /* Désactive le flip */
  .folder:hover .folder-inner {
    transform: none;
  }

  /* Fixe la face avant et masque la face arrière */
  .folder-inner {
    transform: none;
  }

  .folder-back {
    display: none;
  }

  /* Affiche le titre sur la face avant */
  .folder-front::after {
    content: attr(data-title); /* affiche depuis un attribut HTML */
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    height: 220px;
    padding-top: 10%;
    padding-bottom: 10%;
    margin-bottom: -22px;
  }

  #gallery {
    padding: 60px 10px;

  }

  

#contact h2 {
  margin-top: 20%;
  font-size: 2rem;
  margin-bottom: 40%;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  }

  .contact-container {
    flex-direction: column;
    align-items: center; /* centre les blocs horizontalement */
    padding: 0 20px;
  }

  .img-text {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 200px;       /* limite la largeur pour rester esthétique */
    padding: 10px 0;
    border: none;
    padding-left: 0;
    margin: 0;
  }

  .img-text img {
    margin-right: 10px;
  }

  .img-text:not(:first-child) {
    border: none;
    padding-left: 0;
  }

  nav p {
  color: #000000;
  margin-left: 5px;
  font-weight: none;
  font-size: 16px;
}

nav ul {
  font-size: 11px;
  margin-right: 5px;
  gap: 15px;
}

hr {
  display: none;
}


.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    margin-top: 8%;
}

.gallery-item {
    text-decoration: none;
    color: white;
}

.image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 ratio */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.39);
}

.image-blur {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1); /* évite les bordures floues */
    z-index: 1;
}

.image-title {
  display: none;
    position: absolute;
    top: 90%;
    left: 50%;
    z-index: 1;
    color: #000000;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all ease-in-out 0.3s;
}

.image-wrapper:hover .image-title {
  display: none;
  transition: all ease-in-out 0.3s;
}

.image-wrapper:hover .image-blur {
  filter: blur(0px);
  transition: all ease-in-out 0.3s;
}

.nav-view {
    width: 80%;
}

nav img {

    margin-left: 10px;
}

.nav-arrow {
    display: none;
}
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.fadeIn {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media screen and (max-width: 768px) {
    .gallery-view {
        padding: 20px;
        display: block;
    }

    .gallery-view img {
        width: 100%;
        margin-bottom: 20px;
        border-radius: 0;
        box-shadow: none;
        cursor: default;
        transform: none !important;
    }

    .gallery-view img:hover {
        transform: none;
    }

    /* Désactive le plein écran */
    .fullscreen-viewer {
        display: none !important;
    }
}