/* ============================================================
   HERO.CSS — Nouvelle navbar + Hero Slider Glassmorphism
   CTTP — public/style/hero.css
   ============================================================ */

/* ── HEADER FLOTTANT (au-dessus du slider) ── */

.header-page {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

/* ── NAVBAR NOUVELLE LIGNE ── */

.acceuil-head-new {
  height: 76px;
  padding: 0 3%;
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 16px;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    padding 0.3s ease;
}

/* Hover : légèrement blanc, semi-transparent */
.acceuil-head-new.hovered {
  background-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Scroll : complètement blanc */
.acceuil-head-new.shrink {
  background-color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Brand */
.brand-new {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-new img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.9;
}

.brand-new .brand-text p {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  transition: color 0.3s ease;
}

.brand-new .brand-text span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: color 0.3s ease;
}

.acceuil-head-new:hover .brand-new .brand-text p,
.acceuil-head-new.shrink .brand-new .brand-text p {
  color: var(--gryeF);
}

.acceuil-head-new:hover .brand-new .brand-text span,
.acceuil-head-new.shrink .brand-new .brand-text span {
  color: var(--green);
}

/* 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: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 0 1.3rem;
  height: 76px;
  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: 1.3rem;
  right: 1.3rem;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.list-nav-new li a:hover {
  color: rgba(255, 255, 255, 0.75);
}

.list-nav-new li a:hover::after {
  transform: scaleX(1);
}

.acceuil-head-new:hover .list-nav-new li a,
.acceuil-head-new.shrink .list-nav-new li a {
  color: var(--gryeF);
}

.acceuil-head-new:hover .list-nav-new li a:hover,
.acceuil-head-new.shrink .list-nav-new li a:hover {
  color: var(--green);
}

/* 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 rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  padding: 0 8px;
  height: 32px;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}

.acceuil-head-new:hover .search-new,
.acceuil-head-new.shrink .search-new {
  border-color: var(--green);
  background: #fff;
}

.search-new input {
  border: none;
  outline: none;
  font-size: 1.1rem;
  color: #fff;
  background: transparent;
  width: 100px;
  transition: color 0.3s ease;
}

.search-new input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.acceuil-head-new:hover .search-new input,
.acceuil-head-new.shrink .search-new input {
  color: var(--green);
}

.acceuil-head-new:hover .search-new input::placeholder,
.acceuil-head-new.shrink .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: rgba(255, 255, 255, 0.8);
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.acceuil-head-new:hover .search-new button i,
.acceuil-head-new.shrink .search-new button i {
  color: var(--green);
}

.nav-right-new .icon-resau {
  display: flex;
  gap: 6px;
}

.nav-right-new .icon-resau a {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.nav-right-new .icon-resau a:hover {
  background: rgba(255, 255, 255, 0.3);
}

.acceuil-head-new:hover .nav-right-new .icon-resau a,
.acceuil-head-new.shrink .nav-right-new .icon-resau a {
  background: #f0faf8;
  border-color: rgba(1, 160, 140, 0.2);
  color: var(--green);
}

.acceuil-head-new:hover .nav-right-new .icon-resau a:hover,
.acceuil-head-new.shrink .nav-right-new .icon-resau a:hover {
  background: var(--green);
  color: #fff;
}

/* ── HERO SLIDER ── */

.hero-slider {
  margin-top: -76px;
  position: relative;
  height: 85vh;
  overflow: hidden;
}
.hero-slider--page {
  height: 45vh;
}
.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;
}

.hero-slide .slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.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/IMG_6440.jpg');
  background-color: #01a08c;
}

.slide-bg-4 {
  background-image: url('/imgs/missions/mission.jpg');
  background-color: #38598b;
}

/* ── 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: none;
  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;
}

/* ── RIBBON ── */

.hero-ribbon {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: rgba(1, 160, 140, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  z-index: 5;
}

.hero-ribbon-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
  text-decoration: none;
  transition: background 0.25s ease;
  height: 100%;
}

.hero-ribbon-item:hover {
  background: rgba(1, 160, 140, 0.2);
}

.hero-ribbon-icon {
  width: 44px;
  height: 44px;
  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;
  color: #fff;
  font-size: 1.8rem;
  flex-shrink: 0;
  transition: background 0.25s ease;
}

.hero-ribbon-item:hover .hero-ribbon-icon {
  background: rgba(1, 160, 140, 0.6);
}

.hero-ribbon-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.hero-ribbon-label {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.55);
}

.hero-ribbon-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.hero-ribbon-arrow {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.4);
  transition:
    color 0.25s ease,
    transform 0.25s ease;
  flex-shrink: 0;
}

.hero-ribbon-item:hover .hero-ribbon-arrow {
  color: #01a08c;
  transform: translateX(4px);
}

.hero-ribbon-divider {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

/* ── RESPONSIVE MOBILE ── */

@media (max-width: 768px) {
  .acceuil-head-new {
    display: none;
  }

  .header-page {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
  }

  .hero-slider {
    margin-top: 0;
    height: 60vh;
    overflow: hidden;
  }

  .hero-slide .slide-bg {
    height: 60vh;
  }

  .hero-arrow {
    top: 30vh;
    width: 32px;
    height: 32px;
    font-size: 1.6rem;
  }

  .hero-arrow.prev {
    left: 8px;
  }
  .hero-arrow.next {
    right: 8px;
  }

  .hero-dots {
    top: calc(60vh - 30px);
    bottom: auto;
  }

  .hero-ribbon {
    display: none;
  }

  /* ── NAVBAR MOBILE ── */
  .mobile-nav-barv2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 14px;
    background: rgba(1, 100, 85, 0.97);
    position: relative;
    z-index: 9999;
  }

  .mobile-brand-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
  }

  .mobile-brand-link img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
  }

  .mobile-brand-link .m-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
  }

  .mobile-brand-link .m-brand-sub {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.4px;
  }

  .mobile-hamburger {
    width: 38px;
    height: 38px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
  }

  .mobile-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.25s ease;
  }

  .mobile-hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-hamburger.is-open span:nth-child(2) {
    opacity: 0;
  }
  .mobile-hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .mobile-drawer-overlay.is-open {
    opacity: 1;
    pointer-events: all;
  }

  .mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 82vw;
    max-width: 300px;
    background: #fff;
    z-index: 10001;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-drawer.is-open {
    transform: translateX(0);
  }

  .mobile-drawer-header {
    background: #01a08c;
    padding: 16px 14px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-drawer-header img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
  }

  .mobile-drawer-header .dh-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
  }

  .mobile-drawer-header .dh-sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.4px;
  }

  .mobile-drawer-search {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
  }

  .mobile-drawer-search form {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
  }

  .mobile-drawer-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 10px;
    font-size: 1.3rem;
    background: #f8f8f6;
  }

  .mobile-drawer-search button {
    border: none;
    background: #01a08c;
    color: #fff;
    padding: 0 12px;
    font-size: 1.3rem;
    cursor: pointer;
  }

  .mobile-drawer-section {
    padding: 10px 14px 4px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #888;
  }

  .mobile-drawer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    font-size: 1.4rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition:
      background 0.15s,
      border-color 0.15s;
  }

  .mobile-drawer-link i {
    font-size: 1.6rem;
    color: #888;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
  }

  .mobile-drawer-link:hover,
  .mobile-drawer-link.active {
    background: #f0faf8;
    border-left-color: #01a08c;
    color: #01a08c;
  }

  .mobile-drawer-link:hover i,
  .mobile-drawer-link.active i {
    color: #01a08c;
  }

  .mobile-drawer-toggle {
    cursor: pointer;
  }

  .mobile-drawer-toggle .toggle-chevron {
    margin-left: auto;
    font-size: 1.2rem;
    transition: transform 0.25s ease;
  }

  .mobile-drawer-toggle.is-open .toggle-chevron {
    transform: rotate(180deg);
  }

  .mobile-drawer-submenu {
    display: none;
    background: #f8f8f6;
    border-left: 3px solid #e0e0e0;
    padding-left: 14px;
  }

  .mobile-drawer-submenu.is-open {
    display: block;
  }

  .mobile-drawer-submenu .mobile-drawer-link {
    font-size: 1.3rem;
    padding: 9px 14px;
    border-left: none;
  }

  .mobile-drawer-divider {
    height: 1px;
    background: #eee;
    margin: 6px 0;
  }

  .mobile-drawer-quick-section {
    padding: 10px 14px 4px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #888;
  }

  .mobile-drawer-quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    transition: background 0.15s;
  }

  .mobile-drawer-quick-link:hover {
    background: #f0faf8;
  }

  .mobile-drawer-quick-link .q-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.6rem;
  }

  .mobile-drawer-quick-link .q-icon.green {
    background: #e8f7f5;
    color: #01a08c;
  }
  .mobile-drawer-quick-link .q-icon.purple {
    background: #eef0fa;
    color: #534ab7;
  }
  .mobile-drawer-quick-link .q-icon.amber {
    background: #faf0e8;
    color: #854f0b;
  }

  .mobile-drawer-quick-link .q-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #888;
  }

  .mobile-drawer-quick-link .q-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: #333;
  }

  .mobile-drawer-socials {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
  }

  .mobile-drawer-socials a {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #666;
    text-decoration: none;
    transition:
      border-color 0.2s,
      color 0.2s;
  }

  .mobile-drawer-socials a:hover {
    border-color: #01a08c;
    color: #01a08c;
  }

  .mobile-drawer-langs {
    display: flex;
    gap: 6px;
    padding: 0 14px 20px;
  }

  .mobile-drawer-langs button {
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-size: 1.2rem;
    font-weight: 600;
    color: #666;
    background: #fff;
    cursor: pointer;
    transition:
      background 0.2s,
      color 0.2s,
      border-color 0.2s;
  }

  .mobile-drawer-langs button:hover {
    background: #01a08c;
    color: #fff;
    border-color: #01a08c;
  }

  /* ── TITRE HERO MOBILE ── */
  .hero-title-main {
    font-size: 3rem;
  }

  .hero-title-label {
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  }
} /* ← FIN @media (max-width: 768px) */
@media (min-width: 769px) {
  .mobile-nav-barv2 {
    display: none !important;
  }
  .mobile-drawer {
    display: none !important;
  }
  .mobile-drawer-overlay {
    display: none !important;
  }
}
/* ── TITRE HERO PAR PAGE ── */
.hero-page-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero-title-label {
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: rgba(255, 255, 255, 0.75);
}

.hero-title-main {
  font-size: 5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #fff;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.9),
    0 8px 32px rgba(0, 0, 0, 0.6);
  line-height: 1;
  border-bottom: 3px solid var(--green);
  padding-bottom: 8px;
}

/* ── WIDGET DE TRADUCTION ── */
#google_translate_element .goog-te-gadget-simple {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 6px !important;
  padding: 4px 8px !important;
  font-size: 1.2rem !important;
}

#google_translate_element .goog-te-gadget-simple a {
  color: #fff !important;
  text-decoration: none !important;
}

.acceuil-head-new.shrink #google_translate_element .goog-te-gadget-simple a {
  color: var(--gryeF) !important;
}
