html, body {
  height: 100%;
  margin: 0;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif
}

html {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  scroll-behavior: smooth; 
}


article {
  /* oblligatoire pour “scroll snap” */
  scroll-snap-align: start;

  /* hauteur fixe et largeur qui tient compte de la nav */
  height: 100vh;
  width: calc(100% - var(--navwidth));

  /* mise en page, couleur… */
  background: var(--color, #fdfdfd);
  display: flex;
  flex-direction: column;
  justify-content: center;
  
}

/* texte sur fond noir*/
.texteblanc{
  width: 60%;
  margin: 20px auto;
  color: #ffffff;
  margin-top: 10px;
  font-size: 1vw;
  text-align: center;
}

/* texte sur fond blanc*/
.textenoir{
  width: 60%;
  margin: 20px auto;
  color: #000000;
  margin-top: 10px;
  font-size: 1vw;
  text-align: center;
}

/* titre sur fond noir*/
.blanc{
  font-size: 7vw;
  display: flex;
  align-items: center;
  margin: 0 auto;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  color: #000000;
}

/* titre sur fond blanc*/
.noir{
  font-size: 7vw;
  display: flex;
  align-items: center;
  margin: 0 auto;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  color: white;
}







/*titre*/
.page1{
    background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url(img/louvre.jpg);
    height: 100%;  
    width: 100%;
    background-position: center;
    background-size: cover;
}

h1{
  font-size: 15vw;
  color: rgb(0, 0, 0);
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  display: flex;
  justify-content: center;
  text-align: center;
}



/* barre navigation */
nav{
    display: flex;  
    align-items: center;
    justify-content: center;
    background-position: center;
    background-size: cover;
}

a{
    text-decoration: none;
}

nav .navbar{
    display: flex;
    padding: 20px;
    align-items: center;
    justify-content: space-between;
}

.navbar .nav-menu {
    display: flex;
    gap: 10px;
    margin-top: 2vh;

    position: fixed;
    top: 0;
    z-index: 100;
    text-align: right;
    list-style-type: none;
}

.navbar .nav-menu .nav-link {
    padding: 10px 10px;
    color: gold;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 25px;
    transition: 0.3s ease;
}

.navbar .nav-menu .nav-link:hover{
    background: rgb(0, 0, 0);
    color: white;
}







/*présentation*/
.qui{
  font-size: 7vw;
  display: flex;
  margin: 3vh;
  justify-content: center;
  color:#fdfdfd;
}

.qui-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  margin: 0;
}

.img-qui{
  height: 50vh;
  width: 50vw; 
  margin-left: 40%;  
  margin-top: -5%;               
}

.textequi{
  display: flex;     
  color: gold;
  font-size: 1vw;
  margin-right: -50%;
}





/*RECERCHES*/
.container-recherches {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 10px;
  justify-content: center;

}

.container-recherches img {
  flex: 0 0 150px;
  width: 100%; /* remplit la cellule réservée */
  height: auto; /* conserve le ratio */
  object-fit: cover;
  display: flex;
  justify-content: center;
  filter: saturate(1%) brightness(90%);
  opacity: 1;
}

.container-recherches img:hover {
  filter: none;
}






/* Moodboard images */
.img1{
  position: absolute;
  margin-top: 5%;
  left: 13%;
}

.img2{
  position: absolute;
  margin-top: -25%;
  left: 10%;
}

.img3{
  position: absolute;
  margin-top: -10%;
  left: 74%;
}

.img4{
  position: absolute;
  margin-top: -27%;
  left: 50%;
}

.img5{
  position: absolute;
  margin-top: 2%;
  left: 40%;
}

.img6{
  position: absolute;
  margin-top: 7%;
  left: 70%;
}

.img7{
  position: absolute;
  margin-top: -28%;
  left: 80%;
}

.img8{
  position: absolute;
  margin-top: -27%;
  left: 35%;
}

.img9{
  position: absolute;
  margin-top: -10%;
  left: 5%;
}

.effet-item{
  position: absolute;
  width: fit-content;
}

.effet-item img{
  height: 180px;
  width: auto;
  filter: saturate(1%) brightness(90%);
  transition: transform 0.5s ease, opacity 0.5s ease;
  display: block;
}






/* TEXTE */
.effet-label{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  color: gold;
  font-size: 20px;

  opacity: 0;
  transition: opacity 0.3s ease;
}

.effet-item:hover img{
  transform: scale(1.3);
  opacity: 0.3;
}

.effet-item:hover .effet-label{
  opacity: 1;
}





/* MATÉRIELS */
/* Conteneur général : scroll horizontale */
.image-container {
  display: grid;
  grid-template-columns: repeat(4, auto); /* largeur = contenu */
  gap: 10px; /* espace réel entre images */
  margin-top: 20px;
  justify-content: center; /* centre l’ensemble */
}

.img-box {
  width: fit-content; /* s’adapte à l’image */
  height: fit-content;
}

.img-box img {
  display: block; /* supprime espaces inline */
  max-height: 250px;
  width: auto;
  transition: transform 0.5s ease;
  filter: saturate(1%) brightness(90%);
}

.img-box:hover img {
  filter: none;
}







/*PATCH*/
.patch{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;  
  margin: 0 auto;          
}





/*EXPLICATION PATCH*/
.explication-patch {
  display: flex;
  overflow-x: auto;
  gap: 30px;
  padding: 10px;
  justify-content: flex-start;
  align-items: center;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.explication-patch img {
  flex: 0 0 300px;
  width: 100%; /* remplit la cellule réservée */
  max-height: 150%; /* limite la hauteur sans forcer la largeur */
  height: auto; /* conserve le ratio */
  object-fit: cover;
  display: flex;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
  transform-origin: center center;
  will-change: transform;
  filter: saturate(1%) brightness(90%);
  opacity: 0.3;
}

.explication-patch img.zoom {
  transform: scale(1.10);
  z-index: 10;
  /*box-shadow: 0 12px 30px rgba(0,0,0,0.35);*/
  filter: none;
  opacity: 1;
}

/* Conteneur pour chaque image + label */
.expli-item {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 300px;
}

.expli-label {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  color: rgb(0, 0, 0);
  text-align: center;
  font-weight: bold;
  z-index: 5;
}

.expli {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: rgb(0, 0, 0);
  text-align: center;
  z-index: 5;
  width: 270px;
}







/* vidéo */
.carousel {
  width: 55%;      
  margin: 0 auto;    
  text-align: center; 
}

.carousel video {
  display: none;
  width: 100%;
}

.carousel video.active {
  display: block;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 20px;               
  margin-top: 15px;
}

.btn-nav {
  background-color: #ffffff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;   
  font-size: 20px;
  transition: transform 0.2s;
}

.btn-nav:hover {
  transform: scale(1.1); 
}






/* =========================
   RESPONSIVE MOBILE
   ========================= */
@media screen and (max-width: 768px) {

  /* Désactiver le scroll-snap sur mobile */
  html {
    scroll-snap-type: none;
  }

  article {
    height: auto;
    min-height: 100vh;
    width: 100%;
    padding: 40px 20px;
  }

  /* ---------- TITRES ---------- */
  h1 {
    font-size: 14vw;
  }

  .blanc,
  .noir,
  .qui {
    font-size: 12vw;
    text-align: center;
  }

  /* ---------- TEXTE ---------- */
  .texteblanc,
  .textenoir,
  .textequi {
    width: 100%;
    font-size: 4vw;
    margin: 20px auto;
    text-align: center;
  }

  /* ---------- NAVIGATION ---------- */
  .navbar .nav-menu {
    position: relative;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
  }

  .navbar .nav-menu .nav-link {
    font-size: 18px;
  }

  /* ---------- QUI SOMMES NOUS ---------- */
  .qui-container {
    flex-direction: column;
    width: 100%;
  }

  .img-qui {
    width: 80%;
    height: auto;
    margin: 0 auto 20px auto;
  }

  .textequi {
    margin: 0;
  }

  /* ---------- RECHERCHES ---------- */
  .container-recherches {
    justify-content: flex-start;
  }

  .container-recherches img {
    flex: 0 0 200px;
  }

  /* ---------- MOODBOARD ---------- */
  .effet {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .effet-item,
  .img1, .img2, .img3, .img4, .img5,
  .img6, .img7, .img8, .img9 {
    position: relative;
    margin: 0;
    left: auto;
    top: auto;
  }

  .effet-item img {
    width: 100%;
    height: auto;
  }

  /* ---------- MATÉRIELS ---------- */
  .image-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .img-box img {
    max-height: none;
    width: 100%;
  }

  /* ---------- PATCH ---------- */
  .patch {
    width: 100%;
  }

  /* ---------- EXPLICATION PATCH ---------- */
  .explication-patch {
    gap: 15px;
  }

  .explication-patch img {
    flex: 0 0 250px;
  }

  .expli-label {
    font-size: 1rem;
  }

  .expli {
    font-size: 0.8rem;
  }

  /* ---------- VIDÉOS ---------- */
  .carousel {
    width: 100%;
  }

  .buttons {
    gap: 10px;
  }

  .btn-nav {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}
















