@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&family=Playwrite+DE+SAS:wght@100..400&family=Saira+Stencil:ital,wght@0,100..900;1,100..900&display=swap');


* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    button, a { cursor: pointer; }

    :root {
      --primary-teal: #1B6B5E;
      --primary-orange: #E88D1F;
      --primary-gold: #F5D99B;
      --dark-forest: #1E2F2F;
      --sand-light: #FDF9F2;
      --beige-mid: #F0EBE1;
      --stone: #4a5b66;
      --white: #FFFFFF;
      --black: #1A1A1A;
    }

    body {
      background: var(--sand-light);
      color: var(--dark-forest);
      scroll-behavior: smooth;
      overflow-x: hidden;
    }

    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: var(--beige-mid); border-radius: 10px; }
    ::-webkit-scrollbar-thumb { background: var(--primary-orange); border-radius: 10px; }

    .container {
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 24px;
      position: relative;
      z-index: 2;
    }

    /* ========== NAVBAR RESPONSIVE ========== */
    .navbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      position: sticky;
      top: 16px;
      z-index: 1100;
      background: rgba(255, 253, 245, 0.98);
      backdrop-filter: blur(12px);
      border-radius: 60px;
      margin: 0 auto;
      padding: 8px 24px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
      border: 1px solid rgba(232, 141, 31, 0.3);
      width: calc(100% - 32px);
      max-width: 1300px;
    }
   
    .logo {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .logo img {
      height: 44px;
      width: 44px;
      border-radius: 30px;
      object-fit: cover;
      background: var(--primary-green);
    }
    .logo span {
      font-size: 1.6rem;
      font-weight: 800;
      background: linear-gradient(135deg, var(--primary-green), var(--primary-orange));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      letter-spacing: -0.3px;
    }

    .nav-links {
      transition: all 0.3s ease;
    }
    .nav-links ul {
      display: flex;
      gap: 1.5rem;
      list-style: none;
    }
    .nav-links a {
      text-decoration: none;
      font-weight: 600;
      color: var(--dark-forest);
      transition: 0.25s;
      position: relative;
      font-size: 0.9rem;
    }
    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: -6px;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--primary-orange);
      transition: 0.3s;
    }
    .nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--primary-orange); }

.dropdown { 
  position: relative; 
}

/* 🔥 FIX IMPORTANT */
.nav-links {
  position: relative;
  z-index: 1000;
}

/* 🔥 DROPDOWN CORRIGÉ */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px); /* espace propre sous menu */
  left: 0;

  display: flex;
  flex-direction: column; /* 🔥 alignement vertical */
  gap: 5px;

  background: rgba(255, 253, 245, 0.98);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);

  min-width: 220px;
  padding: 10px 0;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: all 0.25s ease;

  list-style: none;
  border: 1px solid rgba(232, 141, 31, 0.2);

  z-index: 9999; /* 🔥 superposition */
}

/* HOVER */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ITEMS */
.dropdown-menu li { 
  padding: 0; 
}

/* LIENS */
.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  white-space: nowrap;
  text-align: left;
  transition: 0.2s;
}

/* HOVER ITEM */
.dropdown-menu a:hover {
  background: rgba(232, 141, 31, 0.1);
  color: var(--primary-orange);
}

/* enlever le trait animé */
.dropdown-menu a::after { 
  display: none; 
}

/* MENU TOGGLE */
.menu-toggle {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--primary-teal);
  background: none;
  border: none;
  padding: 8px;
}

/* 🔥 OPTIONNEL (important si bug) */
.navbar {
  overflow: visible;
}
    /* ========== HERO ========== */
    .hero-marodoka {
      position: relative;
      min-height: 85vh;
      display: flex;
      align-items: center;
      background: linear-gradient(125deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('../Follio/Img/Nosybe/MO3.jpg');
      background-size: cover;
      background-position: center 30%;
      background-attachment: scroll;
      margin-bottom: 20px;
      border-radius: 0 0 60px 60px;
      padding: 80px 0;
    }
    .hero-grid {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 40px;
    }
    .hero-text { flex: 1.2; }
    .badge {
      background: rgba(232, 141, 31, 0.9);
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 18px;
      border-radius: 60px;
      font-weight: 700;
      font-size: 0.8rem;
      margin-bottom: 24px;
      color: white;
      backdrop-filter: blur(2px);
    }
    .hero-text h1 {
      font-size: 3.4rem;
      font-weight: 800;
      line-height: 1.2;
      margin-bottom: 20px;
      color: white;
      text-shadow: 0 4px 20px rgba(0,0,0,0.4);
    }
    .hero-text p {
      font-size: 1rem;
      line-height: 1.5;
      color: rgba(255,255,255,0.95);
      margin-bottom: 20px;
    }
    .hero-image {
      flex: 0.9;
      border-radius: 32px;
      overflow: hidden;
      box-shadow: 0 25px 40px -12px rgba(0,0,0,0.3);
    }
    .hero-image img { width: 100%; display: block; transition: transform 0.5s ease; }
    .hero-image:hover img { transform: scale(1.03); }

    section { padding: 70px 0; position: relative; }
    .section-title {
      font-family: 'Playfair Display', serif;
      font-size: 2.6rem;
      text-align: center;
      margin-bottom: 16px;
      color: var(--dark-forest);
    }
    .section-subtitle {
      text-align: center;
      font-size: 1.1rem;
      color: var(--stone);
      max-width: 700px;
      margin: 0 auto 48px;
      padding: 0 16px;
    }
    .bg-light { background: var(--sand-light); }
    .bg-warm { background: var(--beige-mid); }
    .bg-terracotta { background: #E8E0D3; }

    /* Section spécifique pour les formations */
    .formations-section {
      background: linear-gradient(135deg, #1E2F2F, #2A3A32);
      color: white;
    }
    .formations-section .section-title,
    .formations-section .section-subtitle {
      color: white;
    }
    .formations-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 30px;
      margin-top: 20px;
    }
    .formation-card {
      background: rgba(255, 255, 255, 0.95);
      border-radius: 28px;
      overflow: hidden;
      transition: transform 0.3s ease, box-shadow 0.3s;
      color: var(--dark-forest);
    }
    .formation-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 30px 40px -12px rgba(0,0,0,0.3);
    }
    .formation-card img {
      width: 100%;
      height: 200px;
      object-fit: cover;
    }
    .formation-info {
      padding: 24px;
    }
    .formation-info h3 {
      font-size: 1.4rem;
      font-weight: 700;
      margin-bottom: 10px;
      color: var(--primary-teal);
    }
    .formation-info h3 i {
      color: var(--primary-orange);
      margin-right: 8px;
    }
    .formation-info p {
      color: var(--stone);
      line-height: 1.5;
      margin-bottom: 16px;
    }
    .formation-badge {
      display: inline-block;
      background: var(--primary-orange);
      color: white;
      padding: 4px 12px;
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: 600;
      margin-top: 8px;
    }

    .search-section {
      background: linear-gradient(135deg, rgba(0,0,0,0.75), rgba(0,0,0,0.65)), url('../Follio/Img/Nosybe/MO5.jpg');
      background-attachment: scroll;
      background-size: cover;
      padding: 50px 0;
    }
    .search-container {
      background: rgba(255, 255, 255, 0.96);
      border-radius: 48px;
      padding: 20px 28px;
      box-shadow: 0 20px 35px -10px rgba(0,0,0,0.15);
      display: flex;
      flex-wrap: wrap;
      align-items: flex-end;
      justify-content: space-between;
      gap: 20px;
      border: 1px solid rgba(232,141,31,0.3);
    }
    .search-item { flex: 1; min-width: 160px; }
    .search-item label {
      font-size: 0.7rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--primary-orange);
      margin-bottom: 6px;
      display: block;
    }
    .search-item input, .search-item select {
      width: 100%;
      padding: 10px 0;
      border: none;
      background: transparent;
      font-weight: 600;
      font-size: 0.95rem;
      outline: none;
      border-bottom: 2px solid #e2e2e2;
      transition: border-color 0.2s;
    }
    .search-item input:focus, .search-item select:focus { border-bottom-color: var(--primary-orange); }
    .btn-go {
      background: var(--primary-teal);
      border: none;
      padding: 12px 32px;
      border-radius: 60px;
      font-weight: 700;
      font-size: 0.95rem;
      color: white;
      display: flex;
      align-items: center;
      gap: 10px;
      cursor: pointer;
      transition: 0.25s;
      white-space: nowrap;
    }
    .btn-go:hover { background: #0F4A40; transform: translateY(-2px); }

    .activities-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 30px;
    }
    .activity-card {
      background: var(--white);
      border-radius: 28px;
      overflow: hidden;
      box-shadow: 0 20px 30px -8px rgba(0,0,0,0.1);
      transition: transform 0.3s ease, box-shadow 0.3s;
    }
    .activity-card:hover { transform: translateY(-8px); box-shadow: 0 30px 40px -12px rgba(0,0,0,0.2); }
    .activity-card img { width: 100%; height: 200px; object-fit: cover; }
    .activity-info { padding: 24px 20px; }
    .activity-info h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; color: var(--dark-forest); }
    .activity-info h3 i { color: var(--primary-orange); margin-right: 8px; }
    .activity-info p { color: var(--stone); line-height: 1.5; font-size: 0.95rem; }

    .camping-cta {
      background: linear-gradient(115deg, #1E2F2F, #0F1E18), url('../Follio/Img/Nosybe/P9.jpg');
      background-blend-mode: overlay;
      background-size: cover;
      background-attachment: scroll;
      text-align: center;
      padding: 70px 20px;
    }
    .camping-cta h2 { font-size: 2.3rem; font-weight: 800; color: white; }
    .camping-cta p { font-size: 1.1rem; margin: 16px 0 28px; color: rgba(255,255,255,0.9); }
    .btn-camping {
      background: var(--primary-orange);
      border: none;
      padding: 14px 38px;
      font-size: 1rem;
      font-weight: 700;
      border-radius: 60px;
      color: var(--dark-forest);
      cursor: pointer;
      transition: 0.25s;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      box-shadow: 0 8px 18px rgba(0,0,0,0.2);
    }
    .btn-camping:hover { background: #ffb45a; transform: scale(1.02); }

    .destinations-carousel {
      background: var(--beige-mid);
      padding: 70px 0;
    }
    .carousel-container {
      position: relative;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }
    .desti-cards {
      display: flex;
      gap: 24px;
      overflow-x: auto;
      scroll-behavior: smooth;
      padding: 16px 5px 32px;
      scrollbar-width: thin;
      scroll-snap-type: x mandatory;
    }
    .desti-cards::-webkit-scrollbar { height: 5px; }
    .desti-cards::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); border-radius: 10px; }
    .desti-cards::-webkit-scrollbar-thumb { background: var(--primary-orange); border-radius: 10px; }
    .desti-card {
      min-width: 260px;
      background: var(--white);
      border-radius: 28px;
      overflow: hidden;
      box-shadow: 0 15px 25px rgba(0,0,0,0.08);
      scroll-snap-align: start;
      flex-shrink: 0;
      transition: transform 0.3s;
    }
    .desti-card:hover { transform: translateY(-5px); }
    .desti-card img { width: 100%; height: 200px; object-fit: cover; }
    .desti-info { padding: 20px; }
    .desti-info h4 { font-size: 1.3rem; font-weight: 700; color: var(--dark-forest); }
    .desti-info p { color: var(--stone); margin: 6px 0 14px; font-size: 0.9rem; }
    .btn-book {
      background: var(--primary-teal);
      border: none;
      color: white;
      padding: 8px 22px;
      border-radius: 40px;
      font-weight: 600;
      cursor: pointer;
      transition: 0.2s;
      font-size: 0.85rem;
    }
    .btn-book.primary { background: var(--primary-orange); }
    .btn-book:hover { opacity: 0.9; transform: scale(1.02); }
    .carousel-btn {
      position: absolute;
      top: 45%;
      transform: translateY(-50%);
      background: white;
      border: none;
      width: 42px;
      height: 42px;
      border-radius: 60px;
      box-shadow: 0 6px 18px rgba(0,0,0,0.15);
      cursor: pointer;
      color: var(--primary-teal);
      font-size: 1.2rem;
      transition: 0.2s;
      z-index: 10;
    }
    .carousel-btn.left { left: -8px; }
    .carousel-btn.right { right: -8px; }
    .carousel-btn:hover { background: var(--primary-orange); color: white; }
    
    .news-section {
      background: linear-gradient(135deg, #1E2F2F, #2A3A32), url('../Follio/Img/Nosybe/MO3.jpg');
      background-blend-mode: overlay;
      background-size: cover;
      background-attachment: scroll;
    }
    .news-section .section-title, .news-section .section-subtitle { color: white; }
    .news-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 30px;
    }
    .news-card {
      background: rgba(255, 255, 255, 0.96);
      border-radius: 28px;
      overflow: hidden;
      transition: 0.3s;
    }
    .news-card:hover { transform: translateY(-8px); box-shadow: 0 20px 30px rgba(0,0,0,0.15); }
    .news-card img { width: 100%; height: 200px; object-fit: cover; }
    .news-card .content { padding: 24px; }
    .news-card h4 { font-size: 1.3rem; margin-bottom: 10px; color: var(--dark-forest); }
    .btn-news {
      background: var(--primary-orange);
      color: white;
      padding: 8px 22px;
      border-radius: 40px;
      text-decoration: none;
      font-size: 0.85rem;
      font-weight: 600;
      display: inline-block;
      margin-top: 14px;
      transition: 0.2s;
      border: none;
      cursor: pointer;
    }

    .presentation-section {
      background: var(--sand-light);
      padding: 70px 0;
    }
    .presentation-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 40px;
      align-items: center;
    }
    .presentation-text { flex: 1.2; }
    .presentation-text h2 {
      font-size: 2.8rem;
      color: var(--dark-forest);
    }
    .presentation-text h3 { font-size: 1.6rem; font-weight: 700; margin: 20px 0 10px; color: var(--primary-teal); }
    .presentation-highlight {
      background: rgba(27, 107, 94, 0.1);
      padding: 18px 22px;
      border-radius: 24px;
      margin-top: 22px;
      border-left: 4px solid var(--primary-orange);
    }
    .presentation-image {
      flex: 0.9;
      border-radius: 28px;
      overflow: hidden;
      box-shadow: 0 25px 35px -12px rgba(0,0,0,0.2);
    }
    .presentation-image img { width: 100%; display: block; transition: transform 0.4s; }
    .presentation-image:hover img { transform: scale(1.02); }

    footer {
      background: #0F1E18;
      color: #CFD8D1;
      padding: 50px 20px 30px;
      border-radius: 50px 50px 0 0;
      margin-top: 50px;
    }
    .footer-grid {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 35px;
      max-width: 1280px;
      margin: 0 auto;
    }
    .footer-col { flex: 1; min-width: 180px; }
    .footer-col h4 { color: var(--primary-gold); margin-bottom: 18px; font-weight: 700; font-size: 1.1rem; }
    .footer-col p, .footer-col li { font-size: 0.85rem; line-height: 1.5; color: #cbd5cf; }
    .footer-col ul { list-style: none; }
    .footer-col li { margin-bottom: 10px; cursor: pointer; transition: color 0.2s; }
    .footer-col li:hover { color: var(--primary-orange); }
    .social-icons i { font-size: 1.4rem; margin-right: 18px; cursor: pointer; transition: color 0.2s; }
    .social-icons i:hover { color: var(--primary-orange); }
    .copyright { text-align: center; padding-top: 40px; font-size: 0.75rem; border-top: 1px solid #2E4238; margin-top: 35px; }

    .back-to-top {
      position: fixed;
      bottom: 25px;
      right: 25px;
      width: 48px;
      height: 48px;
      background: var(--primary-orange);
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
      z-index: 1000;
      box-shadow: 0 4px 15px rgba(0,0,0,0.2);
      border: none;
      font-size: 1.3rem;
    }
    .back-to-top.show { opacity: 1; visibility: visible; }
    .back-to-top:hover { background: var(--primary-teal); transform: translateY(-5px); }

    /* ========== RESPONSIVE : TABLETTE & MOBILE ========== */
    @media (max-width: 1024px) {
      .hero-text h1 { font-size: 2.8rem; }
      .section-title { font-size: 2.2rem; }
    }
    
    @media (max-width: 950px) {
      .menu-toggle { 
        display: block; 
      }
      .nav-links {
        display: none;
        width: 100%;
        background: rgba(255, 253, 245, 0.98);
        border-radius: 28px;
        margin-top: 16px;
        padding: 16px 0;
      }
      .nav-links.active {
        display: block;
      }
      .nav-links ul {
        flex-direction: column;
        gap: 0;
        align-items: center;
      }
      .nav-links li {
        width: 100%;
        text-align: center;
        padding: 8px 0;
      }
      .dropdown {
        position: relative;
      }
      .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: rgba(240, 235, 225, 0.95);
        padding-left: 0;
        box-shadow: none;
        border: none;
        margin-top: 8px;
        border-radius: 20px;
      }
      .dropdown.active .dropdown-menu {
        display: block;
      }
      .dropdown-menu a {
        text-align: center;
        padding: 10px 0;
      }
      .navbar {
        flex-direction: column;
        gap: 12px;
        top: 10px;
      }
      .hero-marodoka { min-height: 70vh; padding: 60px 0; }
      .hero-text h1 { font-size: 2.2rem; }
      .search-container { flex-direction: column; align-items: stretch; border-radius: 32px; padding: 20px; }
      .btn-go { justify-content: center; width: 100%; white-space: normal; }
      .camping-cta h2 { font-size: 1.8rem; }
    }
    
    @media (max-width: 768px) {
      .container { padding: 0 20px; }
      .hero-grid { flex-direction: column; gap: 30px; }
      .hero-text { text-align: center; }
      .badge { margin-left: auto; margin-right: auto; }
      .hero-text p { text-align: center; }
      .section-title { font-size: 1.9rem; }
      .section-subtitle { font-size: 1rem; margin-bottom: 32px; }
      section { padding: 50px 0; }
      .desti-card { min-width: 240px; }
      .carousel-btn { display: none; }
      .presentation-grid { flex-direction: column; text-align: center; }
      .presentation-text h2 { font-size: 2.2rem; }
      .presentation-highlight { text-align: left; }
      .footer-grid { flex-direction: column; gap: 30px; text-align: center; }
      .social-icons i { margin: 0 10px; }
      .footer-col input, .footer-col button { width: 100% !important; }
      .hero-image { display: none; }
    }
    
    @media (max-width: 480px) {
      .hero-text h1 { font-size: 1.8rem; }
      .badge { font-size: 0.7rem; }
      .activity-info h3 { font-size: 1.2rem; }
      .btn-camping { padding: 12px 24px; font-size: 0.9rem; }
      .navbar { padding: 8px 16px; }
    }

    /* Animation smooth */
    html {
      scroll-padding-top: 100px;
    }