/*
Copyright 2025 Vito
https://mylucy.be
*/
/* 
    Created on : 21 nov. 2025, 13:45:37
    Author     : vito
*/


@import url(/fonts/YDS/stylesheet.css); /* include mistrall, berlin verblight etc...*/
a{
    color: #fff;
}

/* Wrapper pagin */
.pagin-wrapper {
    font-family: verblight;
}
.pagination-buttons {
  width: 50%; /* Doit avoir une largeur définie */
  margin-left: auto;
  margin-right: auto;
}

.pagin-title {
  width: 50%; /* Doit avoir une largeur définie */
  color: blue;
  font-size: 200%;
  margin: 10px;
  margin-left: auto;
  margin-right: auto;
}

/* Wrapper général */
.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;   /* fallback compris par NetBeans */
  height: 100svh;  /* override moderne (navigateurs récents) netbeans est en retard mais le code est bon pour les navigateur*/
  overflow: hidden;
  font-family: verblight;
}

/* MENUS À DROITE EN LIGNE */
.menu-bar {
  position: absolute;
  top: 20px;
  right: 100px;
  display: flex;
  flex-direction: row;   /* ---> alignement horizontal */
  gap: 120px;
  z-index: 1000; /* bien au-dessus du carousel */
}


/* Dropdown */
.dropdown {
  position: relative;
}

/* Bouton de menu */
.dropdown button {
  background: rgba(114,70,38,0.8); /* #9a5c30 */
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

/* affichage logo */
.logo-content {
  position: absolute;
  top: 20px;
  left: 100px;
  border-radius: 6px;
  background-color: rgba(250, 250, 250, 0.5);
  overflow: hidden;
  display: block;
  z-index: 1100; /* au-dessus des slides */
}
  .logo-content img {
    height: 120px;     /* ajuste si besoin */
    width: auto;
  }

/* Contenu du menu déroulant */
.dropdown-content {
  position: absolute;
  top: 40px;
  right: 0;
  min-width: 150px;
  background: rgba(114,70,38,0.9);
  border-radius: 6px;
  overflow: hidden;

  /* Au lieu de display:none / block */
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1100; /* au-dessus des slides */
}

/* Liens du dropdown */
.dropdown-content a {
  display: block;
  padding: 10px;
  color: white;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-content a:hover {
  background: rgba(255,255,255,0.1);
}
.bouton_shop a:hover {
  color: #fff ;
}


/* Affichage au survol :
   le :hover reste valable sur tout le bloc .dropdown
   (bouton + contenu) */
.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* BANNIÈRE HERO */
.hero {
  position: absolute;
  top: 50%;      /* un peu plus haut que la moitié */
  left: 22%;     /* légèrement décalé vers la gauche */
  transform: translateY(-50%); /* centre vertical relatif au top */
  background: transparent;
  color: #fff;
  padding: 18px 28px;
  border-radius: 10px;
  max-width: 40%;
  backdrop-filter: blur(4px);
}

.hero h2 {
    font-family: verblight;
  margin: 0 0 6px;
  font-size: 5.8rem;
  font-weight: 100;
}

.hero p {
  margin: 0;
  font-size: 1.4rem;
  background: rgba(114,70,38,0.8);
  
  padding: 5px;
  padding-left: 10px;
  border-radius: 5px;
}

/* Conteneur du carousel (prend 100% du wrapper) */
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Slides : fade via transition */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

/* Tes 4 images */
.s1 { background-image: url("../../img/intro_slide/image1.jpg"); }
.s2 { background-image: url("../../img/intro_slide/image2.jpg"); }
.s3 { background-image: url("../../img/intro_slide/image3.jpg"); }
.s4 { background-image: url("../../img/intro_slide/image4.jpg"); }

/* --- NAVIGATION PAR DOTS (radios) --- */

/* on cache les radios — ils doivent être des enfants directs du wrapper */
.carousel-wrapper input[type="radio"][name="slider"] {
  display: none;
}

/* Dots container */
.dots {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 20;
}

/* Style des dots */
.dots label {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Slide visible selon radio sélectionné */
/* Maintenant que les radios sont directement dans .carousel-wrapper,
   le sélecteur ~ fonctionne correctement */
#slide1:checked ~ .carousel .s1 { opacity: 1; }
#slide2:checked ~ .carousel .s2 { opacity: 1; }
#slide3:checked ~ .carousel .s3 { opacity: 1; }
#slide4:checked ~ .carousel .s4 { opacity: 1; }

/* Dot actif */
#slide1:checked ~ .dots label[for="slide1"],
#slide2:checked ~ .dots label[for="slide2"],
#slide3:checked ~ .dots label[for="slide3"],
#slide4:checked ~ .dots label[for="slide4"] {
  background: white;
  transform: scale(1.25);
}

/* Corrige la superposition du dropdown */
.menu-bar {
  z-index: 9999;
}

.dropdown-content {
  z-index: 10000;
  position: absolute;
}

.carousel, .slide {
  z-index: 1;
}

/* ===== Mobile (par défaut) : hero centré et lisible ===== */
@media screen and (max-width: 767px) {
  .hero {
    left: 40%;
    top: 55%;
        min-width: 70%;

    transform: translate(-50%, -50%);
    max-width: 92%;
    padding: 14px 16px;
    text-align: left;
    backdrop-filter: blur(2px);
  }

  .hero h2 {
    white-space: nowrap;      /* UNE seule ligne */
    font-size: 1.8rem;        /* souvent nécessaire */
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.3;
    padding: 8px 10px;
  }

  /* si un mot très long casse la mise en page */
  .hero p {
    overflow-wrap: anywhere;
  }
}

/* Ouverture via JS (classe .open) */
.dropdown.open .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobile: menu compact */
@media screen and (max-width: 767px) {
  .menu-bar {
    top: 12px;
    left: 12px;
    right: 12px;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
  }

  .dropdown button {
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  .dropdown-content {
    min-width: 180px;
  }
}

/* Bouton hamburger (caché sur desktop) */
.hamburger {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 12000;
  background: rgba(114,70,38,0.9);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
}

/* Mobile : on cache la barre et on affiche le hamburger */
@media screen and (max-width: 767px) {
  .hamburger { display: block; }

  .menu-bar {
    display: none;
    position: absolute;
    top: 56px;
    right: 12px;
    left: 12px;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    background: rgba(114,70,38,0.92);
    border-radius: 10px;
    z-index: 15000;
  }
  .menu-bar.open { display: flex; }

  .dropdown button {
    width: 100%;
    text-align: left;
  }

  .dropdown-content {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .dropdown.open .dropdown-content { display: block; }

  .dropdown-content a {
    padding: 10px 12px;
  }
}
@media screen and (max-width: 767px) {
  #mobileMenu { display: none; }
  #mobileMenu.open { display: flex; }

  .hamburger { display: block; z-index: 20000; }
}
/* Logo visible sur mobile */
@media screen and (max-width: 767px) {
    
  .logo-content {
    display: block;
    position: absolute;
    background-color: rgba(250, 250, 250, 0.7);
    top: 10px;
    left: 12px;
    z-index: 20000;   /* au-dessus du carousel */
  }

  .logo-content img {
    height: 80px;     /* ajuste si besoin */
    width: auto;
  }
   .logo-content,
  .hamburger {
    top: 12px;
  }

}

