@font-face {
  font-family: sanfr;
  src: url(./font/Sans\ Fransisco\ Regular.ttf);
}

/* Reset */

* {
  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%;
}

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;

}

a {
  color: inherit;
  text-decoration: none;
}

header img {
  cursor: pointer;
}

nav {
  position: fixed;
  left: 0;
  right: 0;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  padding: 5px;
  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 img {
  width: 60px;
  margin-left: 50px;
}

nav p {
  color: #000000;
  margin-left: 50px;
  font-weight: none;
  font-size: 15px;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin-right: 50px;
  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;

}

/* PAGES */
.page {
  display: none;
  animation: fadeIn 0.5s ease;
}

.page:not(.hidden) {
  display: contents;
}

.hidden {
  display: none !important;
}

/* FULLSCREEN HERO */
.fullscreen-bg {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.fullscreen-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.overlay {
  position: relative;
  z-index: 1;
  background-color: #00000080;
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
  height: 100vh;
  width: 100vw;
}


.overlay.show {
  opacity: 1;
  transform: translateY(0);
}

.overlay h1 {
  font-size: 48px;
  margin-bottom: -5px;
}

.overlay p {
  font-size: 18px;
  margin-bottom: 25px;
}

.overlay button {
  padding: 12px 28px;
  background: #e03535;
  color: rgb(255, 255, 255);
  border: none;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
  transition: all ease-in-out 0.2s;
}

.overlay button:hover {
  background: #242323;
  color: white;
  
}

/* SERVICES */
.services {
  background: white;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  padding-top: 60px;
  padding-bottom: 100px;
  margin-bottom: -30px;

}

.service-card {
  background: #f9f9f9;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.418);
  overflow: hidden;
  max-width: 300px;
  transition: transform 0.3s;
  text-align: center;
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card h3 {
  margin: 15px 0 10px;
  font-size: 20px;
}

.service-card p {
  padding: 0 15px 20px;
  font-size: 15px;
  color: #555;
}

/* About */
.about {
  padding: 80px 0;
  background: #f9f9f9;
  text-align: center;
  
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about p {
  text-align: center;
  max-width: 800px;

  margin: 0 auto;
  color: #555;
}

.rdv {
  background: #f9f9f9;
  text-align: center;
  padding-top: 80px;
}

.rdv h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.rdv p {
  text-align: center;
  max-width: 800px;

  margin: 0 auto;
  color: #555;
}

.rdv-container p {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.rdv-container .max-about {
  font-size: 20px;
  text-align: left;
}

/* PHOTOS EXEMPLES */
#VIZUAL {
  padding: 80px 0;
  background: #f9f9f9;
  text-align: center;
}

.vizualiser h2 {
  margin-bottom: 40px;
  font-size: 2rem;
}

.vizual-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0px; /* espace égal entre colonnes et lignes */
}

.vizual-image-wrapper {
  width: 100%;
  padding: 3%; /* réduit visuellement la taille de l’image */
  box-sizing: border-box;
}

.vizual-image-wrapper img {
  width: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: 2px 2px 15px rgba(44, 43, 43, 0.651);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.vizual-image-wrapper img:hover {
  transform: scale(1.01);
}

/* Animation swipe */
.vizual-image-wrapper img.swipe-out {
  opacity: 0;
  transform: translateX(-40px);
}

.vizual-image-wrapper img.swipe-in {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive : 1 colonne sur mobile */


#contact {
  text-align: center;
}


#contact h2 {
   margin-top: 8%;
  font-size: 2.8rem;
  margin-bottom: 10%;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.contact-container {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  justify-content: left;
}

.img-text {
  display: flex; /* ou row selon ton besoin */
  align-items: center;
  padding: 0 10px;
  font-size: 16px;
}

.img-text img {
  width: 35px;
  margin-right: 10px;
}

/* GENERAL SECTION */
#gallery {
  padding: 80px 20px;
  text-align: center;


}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
    margin-top: 3%;
}

.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: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* centre parfaitement */
    z-index: 2;
    color: #fff;
    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: block;
  transition: all ease-in-out 0.3s;
}

.image-wrapper:hover .image-blur {
  filter: blur(5px);
  transition: all ease-in-out 0.3s;
}


/* CONTACT */
form input,
form textarea,
form button {
  display: block;
  width: 100%;
  margin-top: 15px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}

form textarea {
  height: 150px;
  resize: vertical;
}

form button {
  background: #00adb5;
  color: white;
  border: none;
  margin-top: 20px;
  transition: 0.3s;
}

form button:hover {
  background: #007e87;
}

/* FOOTER */

.fixed footer {
  position: fixed;
}

.footer {
    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;
}

.footer a:hover {
  color: #ffffff;
}



.image-highlight-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: brightness(0.6);
  z-index: 9998;
  display: none;
}

.image-highlight {
  position: fixed;
  top: 50%;
  left: 50%;
  max-width: 90vw;
  max-height: 90vh;
  transform: translate(-50%, -50%);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
  z-index: 9999;
  cursor: pointer;
  display: none;
  transition: transform 0.3s ease;
}

.image-highlight:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

/* NAVBAR MASQUÉE AU CHARGEMENT */
.hidden-on-load {
  transform: translateY(-100%);
  transition: transform 0.6s ease-in-out;
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: all ease-in-out 0.6s;
}

nav.visible {
  transform: translateY(0);
  transition: all ease-in-out 0.3s;
}

/* Style de base */


.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* 2. Main prend toute la place restante */
main {
  flex: 1;
}

@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;
}


.rdv {
  background: #f9f9f9;
  text-align: center;
  padding-top: 80px;
}

.rdv h2 {
  font-size: 1.7rem;
  margin-bottom: 20px;
}

.rdv p {
  text-align: center;
  max-width: 350px;

  margin: 0 auto;
  color: #555;
}
  
  .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;
  }

  nav img {
    margin-left: 10px;
  }

  #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;
}
}


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
