html {
  scroll-behavior: smooth;
}
body {
  font-family: 'montserrat',Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f8f8;
}
header {
  position: sticky;
  top: 0;
  background-color: #f8f8f8;
  border: 2px solid rgb(197, 197, 197);
  max-height: 15%;
  z-index: 1000;
}
.menu-responsive {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f8f8;
  padding: 10px 20px;
  color: black;
}
.menu-logo img {
  height: 128px;
  max-height: 200px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.menu-logo {
  min-width: 100px; /* évite qu’il se compresse trop */
}
.menu-list {
  display: flex;
  gap: 20px;
  list-style: none;
}

.menu-list li a {
  color: black;
  text-decoration: none;
  padding: 5px 10px;
}

.menu-button {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: black;
  cursor: pointer;
}

/* Responsive */
@media screen and (max-width: 1800px) {
  .menu-list {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #f8f8f8;
  }

  .menu-list.active {
    display: flex;
  }

  .menu-button {
    margin-left: 0px;
    display: block;
  }
  .menu-button:hover{
    transition: background-color 0.3s, color 0.3s;
    background-color: #3333331a;
    border-radius: 10px;
  }
}
.downpage {
  width: 100%;
  height: 100%;
  max-width: 150%;
  margin-top: 10px;
  align-self: baseline;
  color: #333;
  background-color: #333;
}
.downpage > p {
  margin: inherit;
  width: inherit;
}
.montserrat-montserrat {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}
.menu ul {
  list-style: none;
  margin: 35px;
  padding: 0;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}

.menu > ul > li {
  position: relative;
  padding: 15px 20px;
  border: 2px solid rgb(83, 83, 83);
  border-radius: 15px;
  background-color: white;
  cursor: pointer;
  min-width: 300px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.menu > ul > li:hover {
  background-color: rgb(216, 216, 216);
  color: white;
  transition: background-color 0.3s, color 0.3s;
}
.menu li .submenu {
  display: flex;
  gap: 0px;
  margin: 0;
  flex-direction: column; 
  align-items: center;         
  text-align: center; 
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  border: 2px solid rgb(83, 83, 83);
  border-radius: 5px;
  width: max-content;
  z-index: 10;
  align-items: center;
  opacity: 0;
  max-height: 250px;
  overflow: hidden;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
ul{
  list-style-type:none;
}
.menu li:hover .submenu {
  opacity: 1;
  pointer-events: auto;
  color: black;
}
.submenu li {
  width: 100%;
  padding: 10px 50px;
  text-align: left;
  transition: background-color 0.3s, color 0.3s;
}

.submenu li:hover {
  background-color: rgb(197, 197, 197);
  color: white;
  cursor: pointer;
}
.logo{
  display: block;
  margin: 40px auto;
  margin-bottom: 0;
  max-width: 60%;
  width: 512px;
  height: auto;
}
.submenu a {
  display: block;
  width: auto;
  color: inherit;
  text-decoration: none;
}
.submenu li:hover a {
  color: white;
}
.texte-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  align-items: center;
  text-align: center;
  font-size: 1.2em auto;
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 2.5%;
}
.texte-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.minilogo{
  display: block;
  margin-top: inherit;
  width: 128px;
  max-width: 100%;
}
.separation{
  width: 100%;
  height: 100%;
  max-width: 50%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10%;
  margin-bottom: 5%;
  align-self: center;
  color: green;
  background-color: green;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.carousel {
  max-width: 800px;
  width: 100%;
  margin: auto;
  overflow: hidden;
  position: relative;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.carousel-track {
  height: 60vh;
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-track-scroll {
  display: flex;
  animation: scroll-infinite 50s linear infinite;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.5);
  border: none;
  font-size: 2rem;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
}
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 1.5em;
  padding: 0.4em 0.8em;
  cursor: pointer;
  z-index: 10;
}
.carousel-btn.prev {
  left: 10px;
}
.carousel-btn.next {
  right: 10px;
}

/* CAROUSEL INFINI */
.carousel-track-scroll img {
  width: 700px;
  flex-shrink: 0;
}
@keyframes scroll-infinite {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.carousel-infinite-scroll {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.carousel-track img {
  width: 100%;
  flex-shrink: 0;
  object-fit: scale-down;
}
.trois-images {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 50px auto;
  max-width: 1000px;
  width: 33%;
}
.trois-images img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.trois-images img:hover {
  transform: scale(1.05);
}
.arrow {
  font-size: 2rem;
  color: #333;
  align-self: center;
}
.carousel-caption {
  text-align: center;
  margin-top: 15px;
  font-size: 1.1em;
  color: #333;
  font-weight: 500;
}
.divProjet{
  margin-top: 0;
  flex: 0 0 100%;         /* Chaque slide prend 100% de la largeur du carousel */
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: 1.5em;
  overflow-wrap: break-word;
  word-break: break-word;
  display: flex;
  flex-direction: column; /* 🔁 Empile les éléments */
  align-items: center;     /* Centre horizontalement */
  justify-content: center; /* Centre verticalement si besoin */
  height: 100%;
}
.divProjet img {
  width: 100% auto;
  height: 100% auto;
  object-fit: contain;
}
.divProjet p {
  text-align: center;
  font-size: clamp(1rem, 1vw, 1.1rem);
}
button {
  /* Variables */
  --button_radius: 0.75em;
  --button_color: #e8e8e8;
  --button_outline_color: #000000;
  font-size: 17px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  border-radius: var(--button_radius);
  background: var(--button_outline_color);
}

.button_top {
  display: block;
  box-sizing: border-box;
  border: 2px solid var(--button_outline_color);
  border-radius: var(--button_radius);
  padding: 0.75em 1.5em;
  background: var(--button_color);
  color: var(--button_outline_color);
  transform: translateY(-0.2em);
  transition: transform 0.1s ease;
}

button:hover .button_top {
  /* Pull the button upwards when hovered */
  transform: translateY(-0.33em);
}

button:active .button_top {
  /* Push the button downwards when pressed */
  transform: translateY(0);
}
.wave-group {
  position: relative;
}

.wave-group .input {
  font-size: 16px;
  padding: 10px 10px 10px 5px;
  display: block;
  width: 200px;
  border: none;
  border-bottom: 1px solid #515151;
  background: transparent;
}

.wave-group .input:focus {
  outline: none;
}

.wave-group .label {
  color: #999;
  font-size: 18px;
  font-weight: normal;
  position: absolute;
  pointer-events: none;
  left: 5px;
  top: 10px;
  display: flex;
}

.wave-group .label-char {
  transition: 0.2s ease all;
  transition-delay: calc(var(--index) * .05s);
}

.wave-group .input:focus ~ label .label-char,
.wave-group .input:valid ~ label .label-char {
  transform: translateY(-20px);
  font-size: 14px;
  color: #5264AE;
}

.wave-group .bar {
  position: relative;
  display: block;
  width: 200px;
}

.wave-group .bar:before,.wave-group .bar:after {
  content: '';
  height: 2px;
  width: 0;
  bottom: 1px;
  position: absolute;
  background: #5264AE;
  transition: 0.2s ease all;
  -moz-transition: 0.2s ease all;
  -webkit-transition: 0.2s ease all;
}

.wave-group .bar:before {
  left: 50%;
}

.wave-group .bar:after {
  right: 50%;
}

.wave-group .input:focus ~ .bar:before,
.wave-group .input:focus ~ .bar:after {
  width: 50%;
}
@media (max-width: 768px) {
  .divProjet {
    font-size: 1.2em;
    padding: 1.5em 0.5em;
  }
  .carousel{
    max-width: 110%;
  }
  .prev, .next {
    font-size: 1.2em;
    padding: 0.3em 0.6em;
  }
  .texte-scroll{
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .prev, .next {
    font-size: 1em;
    padding: 0.2em 0.5em;
  }
  .carousel{
    max-width: 110%;
  }
  .texte-scroll{
    max-width: 100%;
  }
}