/* ============================================================
   HERO.CSS — Nouvelle navbar + Hero Slider Glassmorphism
   CTTP — public/style/hero.css
   ============================================================ */

/* ── NAVBAR NOUVELLE LIGNE ── */

.header-page {
  position: sticky;
  top: 0;
  z-index: 9999;
}

.acceuil-head-new {
  background-color: #fff;
  width: 100%;
  height: 62px;
  padding: 0 3%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 16px;
  transition:
    padding 0.3s ease,
    box-shadow 0.3s ease;
}

.acceuil-head-new.shrink {
  padding: 0 3%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Brand */
.brand-new {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-new img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.9;
}

.brand-new .brand-text p {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gryeF);
  line-height: 1;
}

.brand-new .brand-text span {
  font-size: 0.9rem;
  color: var(--green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Nav links centrale */
.list-nav-new {
  display: flex;
  list-style: none;
  flex: 1;
  justify-content: center;
  gap: 0;
}

.list-nav-new li {
  position: relative;
}

.list-nav-new li a {
  color: var(--gryeF);
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 0 1rem;
  height: 62px;
  display: flex;
  align-items: center;
  position: relative;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.list-nav-new li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.list-nav-new li a:hover {
  color: var(--green);
}

.list-nav-new li a:hover::after {
  transform: scaleX(1);
}

/* Dropdown */
.list-nav-new .dropdown {
  position: relative;
}

.list-nav-new .dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  min-width: 220px;
  display: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  padding: 8px 0;
  border-radius: 8px;
}

.list-nav-new .dropdown:hover .dropdown-menu {
  display: block;
}

.list-nav-new .dropdown .dropdown-menu li a {
  height: auto;
  padding: 10px 16px;
  font-size: 1.3rem;
  display: block;
  color: var(--gryeF);
  transition:
    background 0.2s,
    color 0.2s;
}

.list-nav-new .dropdown .dropdown-menu li a::after {
  display: none;
}

.list-nav-new .dropdown .dropdown-menu li a:hover {
  background: #f0faf8;
  color: var(--green);
}

/* Droite : recherche + réseaux */
.nav-right-new {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.search-new {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--green);
  border-radius: 6px;
  padding: 0 8px;
  height: 32px;
  gap: 6px;
  background: #fff;
}

.search-new input {
  border: none;
  outline: none;
  font-size: 1.1rem;
  color: var(--green);
  background: transparent;
  width: 100px;
}

.search-new input::placeholder {
  color: var(--green);
  opacity: 0.6;
}

.search-new button {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.search-new button i {
  color: var(--green);
  font-size: 1.3rem;
}

.nav-right-new .icon-resau {
  display: flex;
  gap: 6px;
}

.nav-right-new .icon-resau a {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #f0faf8;
  border: 1px solid rgba(1, 160, 140, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 1.3rem;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}

.nav-right-new .icon-resau a:hover {
  background: var(--green);
  color: #fff;
}

/* ── HERO SLIDER ── */

.hero-slider {
  position: relative;
  height: 70vh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide .slide-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.slide-bg-1 {
  background-image: url('/imgs/index/slider1.jpg');
  background-color: #155263;
}

.slide-bg-2 {
  background-image: url('/imgs/index/slider2.jpg');
  background-color: #38598b;
}

.slide-bg-3 {
  background-image: url('/imgs/index/slider3.jpg');
  background-color: #01a08c;
}

/* Overlay gradient teinté #01a08c sur les images */
.hero-slide .slide-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* ── FLÈCHES ── */

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 2rem;
  transition: background 0.2s;
  z-index: 10;
  line-height: 1;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.35);
}

.hero-arrow.prev {
  left: 20px;
}
.hero-arrow.next {
  right: 20px;
}

/* ── DOTS ── */

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.hero-dots .dot.active {
  background: #fff;
  width: 24px;
  border-radius: 5px;
}

/* ── WRAPPER DES 3 CARTES GLASS (fixe au-dessus du slider) ── */

.hero-glass-wrapper {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  width: 90%;
  max-width: 1100px;
  z-index: 5;
}

/* ── CHAQUE CARTE GLASSMORPHISM ── */

.hero-glass-card {
  flex: 1;
  background: rgba(1, 160, 140, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(1, 160, 140, 0.4);
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #fff;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    backdrop-filter 0.3s ease,
    border-color 0.3s ease;
}

.hero-glass-card:hover {
  transform: translateY(-6px);
  background: rgba(1, 160, 140, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(1, 160, 140, 0.65);
}

/* Icône */
.hero-glass-card .glass-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(1, 160, 140, 0.35);
  border: 1px solid rgba(1, 160, 140, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  flex-shrink: 0;
}

/* Label */
.hero-glass-card .glass-label {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: rgba(255, 255, 255, 0.65);
}

/* Titre */
.hero-glass-card .glass-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

/* Description */
.hero-glass-card .glass-desc {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  flex: 1;
}

/* Bouton */
.hero-glass-card .glass-btn {
  margin-top: auto;
  display: block;
  text-align: center;
  background: rgba(1, 160, 140, 0.85);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition:
    background 0.2s,
    transform 0.15s;
}

.hero-glass-card .glass-btn:hover {
  background: #01a08c;
  transform: translateY(-2px);
}

/* ── RESPONSIVE MOBILE ── */

@media (max-width: 768px) {
  .acceuil-head-new {
    display: none;
  }

  .hero-slider {
    height: auto;
    min-height: 60vh;
    margin-top: 8vh;
  }

  .hero-slide .slide-bg {
    height: 60vh;
  }

  .hero-glass-wrapper {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    flex-direction: column;
    width: 92%;
    margin: -60px auto 0;
    gap: 14px;
  }

  .hero-glass-card {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .hero-glass-card .glass-title {
    font-size: 1.7rem;
  }

  .hero-arrow {
    top: 30vh;
    width: 32px;
    height: 32px;
    font-size: 1.6rem;
  }

  .hero-arrow.prev {
    left: 8px;
  }
  .hero-arrow.next {
    right: 8px;
  }

  .hero-dots {
    bottom: auto;
    top: calc(60vh - 30px);
  }
}
