#btn-open-popup {
  position: fixed;
  top: 15px;
  right: 20px;
  font-size: 24px;
  color: var(--accent-ff-color);
  cursor: pointer;
  z-index: 10000;
}
.overlay-div-nav-btn-co-deco {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--black-semi-transparant);
  backdrop-filter: blur(5px);
  --webkit-backdrop-filter: blur(5px);
  z-index: 1000;
}

.div-nav-btn-co-deco {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--white);
  padding: 50px 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 15px 35px var(--black-semi-transparant);
  animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.cross-div-nav-btn-co-deco {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: var(--accent-fg-color);
  transition: color 0.2s;
}

.cross-div-nav-btn-co-deco:hover {
  color: var(--accent-ff-color);
}

.popup-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

#btn-close-popup {
  position: fixed;
  top: 15px;
  right: 20px;
  font-size: 24px;
  color: var(--accent-ff-color);
  cursor: pointer;
  z-index: 10000;
}

#nav ul {
  height: fit-content !important;
  width: fit-content !important;
  display: flex;
}

#nav.open {
  background-color: var(--white);
  justify-content: center !important;
  align-items: center !important;
  padding-right: 0px !important;
  position: absolute;
}

.li-btn-nav-pp {
  background-color: transparent !important;
  border-radius: 0;
}

/* S'inscrire */
.a-btn-nav-pp {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 15px 25px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 17px;
  color: var(--accent-ff-color) !important;
  border: 2px solid var(--accent-ff-color);
  transition: all 0.3s ease;
}

.a-btn-nav-pp:hover {
  background-color: var(--accent-transparant-color);
  transform: translateY(-2px);
}

#btn-open-popup.btn-connexion-creation {
  position: fixed;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--accent-ff-color) !important;
  padding: 0;
  width: auto;
  height: auto;
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 999;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.2s;
}

#btn-open-popup.btn-connexion-creation i {
  padding-top: 5px;
  font-size: 34px;
  color: white !important;
  display: inline-block !important;
}

.icon-account {
  width: 50px;
  height: 50px;
  background-color: var(--accent-ff-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.section-image-pres {
  height: 100vh;
  width: 100%;
  background-image: url("../image/Gemini_Generated_Image_2.png");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.section-image-pres > div {
  background-color: transparent;
  backdrop-filter: none;
  --webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  max-width: 900px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  position: relative;
}

.section-image-pres p {
  font-family: "Poppins", sans-serif;
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 800;
  color: var(--white);
  margin: 0;
  line-height: 1.1;
  text-shadow: 0 4px 15px var(--black-semi-transparant);
}

.section-image-pres button {
  background: linear-gradient(
    45deg,
    var(--accent-color),
    var(--accent-ff-color)
  );
  color: var(--white);
  border: none;
  padding: 13px 50px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  animation: bounceIn 1.6s infinite 1.6s;
  box-shadow: 0 10px 25px var(--black-transparent);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: absolute;
  bottom: calc((-1.5) * (26px + 1rem));
}

.section-image-pres button:hover {
  animation: none;
}

@keyframes bounceIn {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.h1-discover {
  text-align: center;
  font-weight: 800;
  color: var(--accent-ff-color);
  padding-top: 20px;
  padding-bottom: 10px;
  font-size: clamp(40, 4vw, 64px);
  margin-left: 5%;
  margin-right: 5%;
}

.h2-discover {
  max-width: 800px;
  margin: auto;
  text-align: center;
  padding-bottom: 60px;
  color: var(--accent-fg-color);
  width: 90%;
}

.section-presentation-features {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.div-features {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  min-height: 300px;
  width: fit-content;
  margin-left: 5%;
  margin-right: 5%;
  gap: 20px;
  justify-content: center;
  align-items: center;
  background-color: var(--accent-transparant-color);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 0px 5px var(--accent-fg-color);
}

.div-features > div {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}

.feature-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.feature-item i {
  color: var(--greeen);
  font-size: 15px;
  flex-shrink: 0;
}

.feature-item span {
  color: var(--accent-ff-color);
  font-weight: 600;
  font-size: 16px;
}
.div-features-reverse {
  flex-direction: row-reverse;
}

.img-container {
  position: relative;
  max-width: 500px;
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
}

.div-features img {
  display: block;
  width: 100%;
  height: auto;
  transition: 0.2s;
}

.img-container::before {
  content: url(../image/oeil.png);
  background: rgba(0, 0, 0, 0.3);
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.img-container:hover::before {
  opacity: 1;
}

.div-features > div {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  align-items: center;
  gap: 10px;
}

.div-features > div > h3 {
  color: var(--accent-ff-color);
  font-size: clamp(19px, 2.7vw, 24px);
  font-weight: 800;
}

.div-features > div > p {
  width: 100%;
  color: var(--accent-fg-color);
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 600;
  text-wrap-style: balance;
  text-align: center;
}

/* Lightbox (ouvrir img) */
#lightbox {
  position: fixed;
  z-index: 10001;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--black);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}

#lightbox.active {
  opacity: 1;
  pointer-events: all;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px var(--black-semi-transparant);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

#lightbox.active img {
  transform: scale(1);
}

.section-temoignages {
  width: 100%;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.titre-temoignages {
  color: var(--accent-ff-color);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  text-align: center;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avis-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 20px 5px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.avis-track::-webkit-scrollbar {
  display: none;
}

.div-avis {
  flex: 0 0 350px;
  scroll-snap-align: start;
  background-color: var(--real-white);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 4px 15px var(--accent-transparant-color);
  border: 1px solid var(--accent-transparant-color);
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: transform 0.3s ease;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
}

.swipe-indicator {
  display: flex;
  align-items: center;
}

.div-avis:hover {
  transform: translateY(-5px);
}

.header-avis {
  display: flex;
  align-items: center;
  gap: 15px;
}

.avatar-avis {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent-bg-color);
  color: var(--white);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.infos-avis h3 {
  margin: 0;
  color: var(--accent-ff-color);
  font-size: 18px;
}

.stars {
  color: var(--yellow-bg);
  font-size: 15px;
  margin-top: 2px;
}

.div-avis p {
  color: var(--accent-fg-color);
  font-size: 15px;
  line-height: 1.5;
  font-style: italic;
  margin: 0;
}

.nav-btn-avis {
  background-color: var(--real-white);
  border: 2px solid var(--accent-transparant-color);
  color: var(--accent-ff-color);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  transition: 0.3s;
  z-index: 2;
  flex-shrink: 0;
  padding-top: 1px;
}

.nav-btn-avis:hover {
  background-color: var(--accent-color);
  color: var(--white);
  box-shadow: 0 4px 10px var(--accent-transparant-color);
}

.prev-avis {
  margin-right: 15px;
}
.next-avis {
  margin-left: 15px;
}

@media (max-width: 768px) {
  .div-avis {
    flex: 0 0 100%;
    scroll-snap-align: center;
  }
  .nav-btn-avis {
    display: none;
  }
  .slider-wrapper {
    width: 100%;
  }
}

.desktop-auth-buttons {
  display: none;
}

.btn-auth-login,
.btn-auth-register {
  text-decoration: none;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.2s ease;
  font-family: "Poppins", sans-serif;
  white-space: nowrap;
}

.btn-auth-login {
  background-color: var(--real-white) !important;
  color: var(--accent-ff-color);
  border: 2px solid var(--accent-ff-color);
}

.btn-auth-login:hover {
  transform: translateY(-2px);
}

.btn-auth-register {
  background-color: var(--accent-ff-color);
  color: white;
  border: 2px solid var(--accent-ff-color);
  box-shadow: 0 4px 10px rgba(76, 22, 144, 0.2);
}

.btn-auth-register:hover, #btn-decouvrir:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(76, 22, 144, 0.3);
}


@media screen and (min-width: 900px) {
  #btn-open-popup,
  #btn-open-popup.btn-connexion-creation {
    display: none !important;
  }

  .desktop-auth-buttons {
    display: flex;
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 10000;
    align-items: center;
    gap: 15px;
  }
}

@media screen and (min-width: 900px) {
  #btn-open-popup,
  #btn-open-popup.btn-connexion-creation {
    display: none !important;
  }
  .desktop-auth-buttons {
    display: flex;
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 10000;
    align-items: center;
    gap: 15px;
  }
}
