@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Menu burger */
.burger-menu {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2000;
    margin-top: 2vh;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    margin-bottom: 5px;
    position: relative;
    background: #ffffff;
    border-radius: 3px;
    transform-origin: center;
    transition: 0.4s;
}

.burger-menu span:last-child {
    margin-bottom: 0;
}

/* Animation burger en croix */
.burger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

html, body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
}

body,html {
  margin: 0;
  font: bold 1rem;
  background: #222;
  font-family: Montserrat;
  font-weight: 500;
  scroll-behavior: smooth;
  width: 100%; 
  visibility: hidden;
  color: #ededed;
}

html, body, footer {
  margin: 0;
  padding: 0;
}

body.loaded {
  visibility: visible;
  transition: opacity 0.5s ease;
}

a {
  text-decoration: none;
  color: aqua;
}

header {
  text-align: start;
  position:relative;
  z-index: 1999;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

footer {
  background-color: #181818;
  padding: 2em 0 2em 0;
  margin: 0;
  width: 100%;
  left: 0;
  right: 0;
  position: relative;
  box-sizing: border-box;
}

footer>div>ul {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap:1em ;
  list-style-type: none;
  padding: 0;
}

footer a {
  text-decoration: none;
  color: #ededed
} 

h1.title {
  margin-top: 1em;
  display: block;
}

h1.title>a{
text-decoration: none;
color: #ededed;
font-weight: 200;
}

/* Menu styles */
.menu {
    list-style: none; 
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 0.5rem; 
    max-width: 100vw;
}

.imghp {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0; /* abaisse le z-index pour que le contenu passe au-dessus */
}

.imghp::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
}

.imghp img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.menu>li>a {
    color: #ededed;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.1rem; /* Réduit l'espacement des lettres */
    padding: 0.8rem 1.2rem; /* Réduit légèrement le padding */
    position: relative;
    display: inline-block;
    font-weight: 200;
    font-size: clamp(0.8rem, 1.5vw, 1rem); /* Taille de police responsive */
}

.menu>li>a:after {    
  content: "";
  display: block;
  height: 0.05em; /* Utilisation de em au lieu de px */
  background: #ededed;
  position: absolute;
  bottom: 0.5em; /* Position ajustée */
  left: 50%;
  width: 0;
  transform: translateX(-50%); /* Centrage horizontal */
  transition: width 0.3s ease;
}

.menu>li:hover>a:after,
.menu>li:focus-within>a:after { 
  width: calc(100% - 2rem); /* Ajustement de la largeur en tenant compte du padding */
}

nav{
    display: flex;
    justify-content: center;
    margin-top: -1.5rem;
}

.menu>li {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  list-style-type: none;
  top: 100%;
  width: 100%;
  padding: 0.5rem 0; /* Réduit de 1.5rem à 0.5rem */
  z-index: 1000;
  left: 0;
  border-radius: 8px;
  margin-top: -0.7vh; /* Ajout d'une marge négative pour rapprocher */
  background-color: #2222222a;
}

.menu li:hover .submenu {
  display: block;
}

.submenu li {
  width: 100%;
}

.submenu li a {
  padding: 0.3rem 1rem; /* Réduit de 0.5rem à 0.3rem */
  display: block;
  font-size: 0.9rem;
  color: #ededed;
  text-decoration: none;
  transition: 0.3s ease;
  font-weight: 200;
}

.submenu li a:hover {
  font-weight: 400;
}

.paragraph,
.paragraph-contact,
.slider-text {
    color: #ededed;
    margin: 6vh 3em 0 3em;
    text-align: center;
    position: relative;
    z-index: 3;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.paragraph-priv {
    color: #ededed;
    margin: 10vh 3em 0 3em;
    text-align: center;
    position: relative;
    z-index: 3;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.title-expo {
  margin: 10vh 4vw 0 4vw;
}

.paragraph>a {
  font-style: italic;
  color: #ededed;
  text-decoration: underline dotted;}

  .paragraph>a.to {
    font-style: italic;
    color: #ededed;
    text-decoration: underline;}

h1{
  color: #ededed;
  text-align: center;
  font-weight: 200;
}

.private svg {
  margin-top: 12vh;
}

/* Menu mobile */


.fb-circle {
  background: #f8f8f81a;
  color: #fff;
  border-radius: 50%;
  position: fixed; /* Changé de 'absolute' à 'fixed' */
  bottom: 20px; /* Changé de 'top' à 'bottom' */
  left: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  z-index: 2;
  transition: 0.3s ease;
  text-decoration: none;
}

.fb-circle:hover {
  background: #3b5998;
}

.no-scroll {
  overflow: hidden;
  height: 100vh;
}

.nav-menu .close-btn{
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.fb-logo {
  font-size: 1.5rem;
  color: ededed;
  font-weight: 600;
}

.private:hover {
  color: #ededed;
}

.bienvenu {
  margin-top: 2em;
}

span.mdp {
width: 22rem;
margin-bottom: 1em;
}

.input {
  margin-left: 1em;
}

form.contact {
  background: rgba(255, 255, 255, 0);
  display: flex;
  flex-direction: column;
  margin: 5rem auto; /* Réduction de la marge */
  border-radius: 8px;
  color: #ededed;
}

label {
  display: block;
  margin-bottom: 0.8rem; /* Réduction de la marge */
}

textarea {
  height: 15vh; /* Hauteur adaptative */
  min-height: 60px; /* Hauteur minimum */
  resize: vertical;
}

.contact-me{text-align: center;}
    label { display: block; margin-bottom: 1rem; }
    input, textarea { width: 100%; padding: 0.7vh; border: 1px solid #ededed; border-radius: 4px;margin-bottom: 1em; }
    button.send { padding: 0.6rem 1.2rem; background: #ff9f00a3; color: #ededed; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; }
    button.send:hover { background: #ff9d0069; }
    .message { text-align: center; margin-top: 1rem; }
    #messageResult {
      margin-top: 1rem;
      text-align: center;
      color: #ededed;
    }

@media screen and (max-width: 1300px) {
  .menu>li>a {
      font-size: clamp(0.8rem, 1.5vw, 0.8rem);
  }
}

@media screen and (max-width: 1200px) {
    .menu>li>a {
        padding: 0.7rem 1rem;
        letter-spacing: 0.08rem;
    }
    .menu { 
      flex-wrap: wrap; /* Permet au menu de passer à la ligne si nécessaire */
    }
    .bulle {
      width: 55%;
  }
}
@media screen and (max-width: 992px) {
  .menu {
      padding: 0 1rem;
  }
  
  .menu>li>a {
      padding: 0.6rem 0.8rem;
      letter-spacing: 0.05rem;
  }
}
/* Ajustements pour les écrans plus petits */
@media screen and (max-height: 900px) {
  textarea {
    height: 12vh;
  }
  
  label {
    margin-bottom: 0.6rem;
  }
}

/* Ajustement pour tablettes */
@media screen and (max-width: 820px) {
  .menu {
      flex-wrap: wrap;
      justify-content: center;
  }
  
  .menu>li {
      margin: 0.2rem;
  }
  
  .menu>li>a {
      padding: 0.5rem 0.7rem;
      font-size: 0.9rem;
  }

  nav {
      margin-top: -1rem;
  }
}

@media screen and (min-width: 769px) {

form.private {
  text-align: center;
  margin-top: 5em;
  display: flex;
  max-width: 35vw;
  justify-content: center;
  color: ededed;
  align-items: center;
  position: relative;
  left: 32.5vw;
  flex-direction: column;
  }

form.contact {
  max-width: 35vw;
}
}
/* Media queries pour les différentes tailles d'écran */

@media screen and (max-width: 768px) {
  .burger-menu {
      display: grid;
      justify-items: center
  }

  .nav-menu {
      position: fixed;
      top: 0;
      right: -100%;
      width: 100%;
      height: 106vh;
      background: rgba(34, 34, 34, 0.98);
      transition: 0.4s ease;
      z-index: 1500;
  }

  .nav-menu.active {
      right: 0;
      height: 103%;
  }

  .menu {
      padding-top: 20vh;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
  }

  .menu > li {
      width: 100%;
      text-align: center;
      margin: 15px 0;
  }

  .menu > li > a {
      display: block;
      padding: 15px;
      font-size: 18px;
  }

  .submenu {
      position: static;
      display: none;
      background: rgba(68, 68, 68, 0.5);
      padding: 10px 0;
      margin-top: 5px;
      width: 100%;
  }

  .menu > li.active .submenu {
      display: block;
  }

  /* Désactiver les effets hover sur mobile */
  .menu > li > a:after {
      display: none;
  }

  .paragraph-contact {
      margin: 5em 1.5em 0 1.5em;
  }

  form.contact {
      max-width: 80vw;
      margin: 1rem auto;
  }

  .bulle {
      width: 60%;
  }

  form.private {
  text-align: center;
  margin-top: 5em;
  display: flex;
  max-width: 80vw;
  justify-content: center;
  color: ededed;
  align-items: center;
  position: relative;
  left: 9.5vw;
  flex-direction: column;
  }
}

@media screen and (max-height: 726px) {
.paragraph-contact {
  margin: 4vh 3em 0 3em;
  }
  label {
    margin-bottom: -0.2rem;
}
}

@media screen and (max-width: 480px) {
  .title {
      font-size: 1.2rem;
  }

  .bulle {
    width: 95%;
  }

  .menu > li > a {
      font-size: 14px;
  }

  .paragraph {
      margin: 4vh 1.5em 1.5em 1.5em;
  }

  .fb-circle {
      width: 35px;
      height: 35px;
      bottom: 15px;
      left: 15px;
  }

  .fb-logo {
      font-size: 1.2rem;
  }


  .input {
      margin-left: 0;
      margin-bottom: 1em;
  }
}


/* Ajoutez ces règles à la fin du fichier */

/* Corrections pour iOS */
@supports (-webkit-touch-callout: none) {
    form.contact {
        width: 100%;
        max-width: 80vw;
        margin: 2vh auto;
        position: relative;
        z-index: 1;
    }

    .paragraph-contact {
        margin-bottom: 2em;
    }

    input, textarea {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 4px;
    }

    .paragraph,
    .paragraph-contact,
    .slider-text,
    .bulle,
    h1 {
        color: #ededed !important;
        position: relative;
        z-index: 3;
        mix-blend-mode: normal;
        isolation: isolate;
    }
    
    body {
        background: #222;
        -webkit-font-smoothing: antialiased;
    }
}

.content-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding-top: 100vh;
  width: 100%;
  padding-right: 0;
  margin-right: 0;
}
