/* ============================================================
                            BODY
============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-y: scroll;
  overflow-x: hidden;
  cursor: url('images/cursor.png') 0 0, auto;
  background-image: url(images/Fond_Bleu.webp);
}

a, button, [role="button"], input[type="submit"], input[type="button"], input[type="reset"], label[for], select, .nav-item, .nav-item > a, .dropdown a, .grille a, .popup-close, .popup-machine-lien, .popup-mouche-lien, [onclick], [tabindex], .carousel-slide, .carousel-btn, .lightbox-close, .lightbox-nav {
  cursor: url('images/cursor_hover.png') 0 0, pointer !important;
}

/* ============================================================
                            FONTS
============================================================ */

@font-face {
  font-family: 'BianzhidaiMessy';
  src: url('fonts/bianzhidai_noBG-Messy.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'BianzhidaiPearl';
  src: url('fonts/bianzhidai_noBG-Pearl.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'BianzhidaiCloud';
  src: url('fonts/bianzhidai_noBG-Cloud.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Garabosse';
  src: url('fonts/Garabosse-Perle.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* ============================================================
                            MENU
============================================================ */

.topnav {
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8vw;
  width: clamp(350px, 64vw, 680px);
  height: 6vh;                                  
  position: fixed;
  top: 6dvh;
  left: 50%;   
  transform: translate(-50%, -50%);
  z-index: 999;
  box-shadow: 0px 0px 10px 10px #ffffff;
  overflow: visible;
  white-space: nowrap;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-item > a {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(100px, 14vw, 200px);        
  text-align: center; 
  font-family: 'BianzhidaiPearl', sans-serif; 
  rotate: random;
  color: #463838;
  text-decoration: none;
  font-size: clamp(9px, 2vw, 18px);
  position: relative;
}

.nav-item > a::after {
  content: attr(data-text);
  font-family: 'BianzhidaiMessy', sans-serif;
  font-size: clamp(7px, 1.8vw, 14px);       
  color: #463838;
  position: absolute;
  inset: 0;                                  
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;                                 
}

.nav-item > a:hover { color: transparent; }
.nav-item > a:hover::after { opacity: 1; }

.dropdown a:hover {
  color: #7562C7;
}

/* ============================================================
                        BANNIERE
============================================================ */

.banner {
  background-image: url(images/Header_Mouche.webp);
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 94vh;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 4vh;
  
}

.tagline {
  font-family: 'Garabosse', sans-serif;
  font-size: clamp(20px, 1.8vw, 33px);
  text-align: center;
  color: #000000;
  line-height: 1.5;
  -webkit-text-stroke: 6px #95D8EF;
  paint-order: stroke fill;
  width: 94vw;
}

/* ============================================================
                        BLOCS TEXTE
============================================================ */

.text-block {
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  margin: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 3vw, 2rem);
}

.text-block p {
  font-family: 'Garabosse', sans-serif;
  font-weight: bold;
  font-size: clamp(20px, 1.8vw, 30px);
  color: #000000;
  line-height: 1.7;
  -webkit-text-stroke: 6px #B6F772;
  paint-order: stroke fill;
}

.text-block strong {
  font-family: 'BianzhidaiPearl', sans-serif;
  font-weight: normal;
  font-size: clamp(20px, 1.8vw, 33px);
  background-color: #B6F772;
  -webkit-text-stroke: 0;
}

.text-block .highlight {
  font-family: 'BianzhidaiCloud', sans-serif;
  font-weight: normal;
  font-size: clamp(22px, 1.8vw, 33px);
  background-color: #B6F772;
  -webkit-text-stroke: 0;
}

/* ============================================================
                        BANNIÈRES IMAGES
============================================================ */

.img-banner {
  width: 100%;
  height: clamp(200px, 30vh, 400px);
  overflow: hidden;
  position: relative;
}

.img-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ============================================================
                          SECTION VIDÉO
============================================================ */

.section-video {
  position: relative;
  width: 100%;
}

.section-video img {
  width: 100%;
  height: clamp(120vh, 140vh, 180vh);
  object-fit: cover;
  display: block;
}

.section-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  text-align: center;
}

.section-text {
  margin-bottom: 2rem;
}

.section-text p {
  font-family: 'Garabosse', sans-serif;
  font-weight: bold;
  font-size: clamp(20px, 1.8vw, 33px);
  color: #000000;
  line-height: 1.7;
  -webkit-text-stroke: 6px #B6F772;
  paint-order: stroke fill;
  padding-top: 12vh;
  padding-bottom: 6vh;
}

.section-text strong {
  font-family: 'BianzhidaiPearl', sans-serif;
  font-weight: normal;
  background-color: #B6F772;
  -webkit-text-stroke: 0;
}

.section-text .highlight {
  font-family: 'BianzhidaiCloud', sans-serif;
  font-weight: normal;
  background-color: #B6F772;
  -webkit-text-stroke: 0;
}

.section-titre {
  display: inline-block;
  font-family: 'BianzhidaiCloud', sans-serif;
  font-weight: normal;
  font-size: clamp(24px, 2.5vw, 34px);
  background-color: #95D8EF;
  padding: 1vh;
  margin-bottom: 2vh;
}

.video-wrapper {
  width: 90%;
  aspect-ratio: 16 / 9;
  margin: 4%;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
}

/* ============================================================
                          CARROUSEL
============================================================ */

.carousel-section {
  padding: clamp(2rem, 4vw, 4rem) 0;
  text-align: center;
  overflow: hidden;
}

.carousel-title {
  display: inline-block;
  font-family: 'BianzhidaiCloud', sans-serif;
  font-weight: normal;
  font-size: clamp(24px, 2.5vw, 34px);
  background-color: #9583FF;
  padding: 1vh;
  margin-bottom: 2vh;
}

.carousel-outer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
}

.carousel-btn {
  background: none;
  border: none;
  font-family: 'BianzhidaiPearl', sans-serif;
  font-size: clamp(16px, 2vw, 28px);
  color: #000000;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 10;
  padding: 0 1rem;
  line-height: 1;
  align-self: center;
}

.carousel-window {
  overflow: hidden;
  width: 90%;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.carousel-slide {
  flex: 0 0 calc(33.333% - 1rem);
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: scale(0.95);
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

.carousel-slide img {
  width: 100%;
  height: 50vh;
  object-fit: cover;
  display: block;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  border-radius: 2px;
}

.lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  color: #ffffff;
  font-size: 1.2rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #ffffff;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  cursor: pointer;
  padding: 1rem 1.5rem;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 10000;
}

.lightbox-nav:hover {
  opacity: 1;
}

#lightbox-prev {
  left: 0.5rem;
}

#lightbox-next {
  right: 0.5rem;
}

/* ============================================================
                            FOOTER
============================================================ */

.footer-block {
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: left;
}

.footer-block p {
  font-family: 'Garabosse', sans-serif;
  font-weight: bold;
  font-size: clamp(14px, 1.2vw, 20px);
  color: #000000;
  margin-bottom: 0.5rem;
  -webkit-text-stroke: 6px #E967DB;
  paint-order: stroke fill;
}

.footer-block h4 {
  font-size: clamp(18px, 2vw, 32px);
  font-weight: normal;
  line-height: 1;
}

.footer-block strong {
  font-family: 'BianzhidaiPearl', sans-serif;
  font-weight: normal;
  -webkit-text-stroke: 6px #E967DB;
  paint-order: stroke fill;
  background-color: #E967DB;
}

.footer-block .highlight {
  font-family: 'BianzhidaiCloud', sans-serif;
  font-weight: normal;
  -webkit-text-stroke: 6px #E967DB;
  paint-order: stroke fill;
  background-color: #E967DB;
}

.footer-block-logos {
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 2rem;
  margin-top: 2rem;
}

.footer-block-logos img {
  height: clamp(30px, 4vw, 60px);
  width: auto;
}

/* ============================================================
                          RESPONSIVE
============================================================ */

@media (max-width: 768px) {
  .body {
    width: 94vw;
  }

  .bloc-titre-img {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 25vh;
  }

  .bloc-titre-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    margin: 0;
  }

  .banner {
    background-image: url('images/Header_Mouche_mobile.webp');
    background-size: cover;
    background-position: center bottom;
    height: 40vh;
    aspect-ratio: 7/8;
  }

  .section-video {
    position: static;
  }

  .section-video img {
    display: none;
  }

  .section-content {
    position: static;
    transform: none;
    margin: 0 auto;
    padding: 2rem 0;
  }

  .section-text p {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .video-wrapper {
    width: calc(100% - 1rem);
    padding-bottom: 5%;
  }

  .carousel-slide img {
    height: 40vh;
  }
  .carousel-title {
    width: 94vw;
  }

  .text-block, .text-block p, .section-text, .section-text p, .tagline, .footer-block, .footer-block p {
    text-align: justify;
  }  

  .text-block {
    margin: 0.5rem;
  }

  .carousel-slide {
    flex: 0 0 calc(100% - 0.75rem);
  }


  .carousel-btn {
    padding: 0 0.5rem;
  }
}