 /* Reset */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body, html {
      font-family: 'Segoe UI', sans-serif;
      background-color: #1111118c;
      background-image: linear-gradient(rgba(0, 0, 0, 0.37), rgba(0, 0, 0, 0.26)), url('../Follio/Img/Ampa3.jpg');
      background-size: cover;
      background-position: center center;
      background-repeat: no-repeat;
      background-attachment: fixed;
      overflow-x: hidden;
      color: #fff;
    }

    /* Background animé */
    .animated-background {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(-45deg, #ffd700, #c0a00e, #4caf50, #388e3c);
      background-size: 400% 400%;
      animation: gradientBG 15s ease infinite;
      z-index: -2;
    }

    @keyframes gradientBG {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }

    /* Loader */
    .loader {
      position: fixed;
      width: 100%;
      height: 100%;
      background: #111;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      transition: 0.4s ease;
    }

    .loader-logo {
      width: 100px;
      margin-bottom: 10px;
    }

    .loader-spinner {
      border: 5px solid #333;
      border-top: 5px solid #ffd700;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      animation: spin 1s linear infinite;
    }

    .loader-text {
      margin-top: 10px;
      font-size: 16px;
      color: #ddd;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    /* Navbar */
    .navbar {
      width: 100%;
      background: rgba(255, 215, 0, 0.95); /* Jaune */
      padding: 15px 30px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      position: fixed;
      z-index: 1000;
      backdrop-filter: blur(5px);
    }

    .nav-logo {
      height: 50px;
      transition: transform 0.3s;
    }

    .nav-logo:hover {
      transform: scale(1.05);
    }

    .menu-icon {
      display: none;
      font-size: 28px;
      cursor: pointer;
      color: #2c3e50;
      z-index: 1002;
    }

    .navbar-right {
      display: flex;
      align-items: center;
      gap: 20px;
    }

    /* Menu déroulant en grille */
    .menu-container {
      position: relative;
    }

    .grid-icon {
      font-size: 28px;
      cursor: pointer;
      color: #2c3e50;
      transition: all 0.3s;
    }

    .grid-icon:hover {
      color: #388e3c; /* Vert foncé */
      transform: scale(1.1);
    }

    .dropdown {
      position: absolute;
      top: 100%;
      right: 0;
      background: #111;
      border-radius: 10px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.2);
      width: 300px;
      padding: 15px;
      z-index: 1000;
      opacity: 0;
      visibility: hidden;
      transform: translateY(10px);
      transition: all 0.3s ease;
    }

    .dropdown.active {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .app-list {
      list-style: none;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }

    .app-list li {
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .app-icon {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 80px;
      height: 80px;
      background: rgba(56, 142, 60, 0.2); /* Vert */
      border-radius: 10px;
      text-decoration: none;
      color: #fff;
      font-weight: 500;
      text-align: center;
      transition: all 0.3s;
      padding: 5px;
      font-size: 14px;
    }

    .app-icon:hover {
      background: #ffd700; /* Jaune */
      color: #111;
      transform: translateY(-5px);
      box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    }

      /* Ajouts CSS pour l'alignement */
    .navbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .navbar-main {
      display: flex;
      align-items: center;
      gap: 30px;
    }
    
    .nav-links {
      display: flex;
      list-style: none;
      gap: 20px;
      margin: 0;
      padding: 0;
    }
    
    .nav-links li a {
      text-decoration: none;
      color: #2c3e50;
      font-weight: 600;
      transition: color 0.3s;
    }
    
    .nav-links li a:hover {
      color: #27ae60;
    }
    
    /* Masquer les liens sur mobile */
    @media (max-width: 960px) {
      .nav-links {
        display: none;
      }
    }

    /* Landing Section */
    .landing {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 120px 10% 60px;
      gap: 60px;
      min-height: 100vh;
      background: rgba(0, 0, 0, 0.6);
    }

    .landing-text {
      flex: 1;
      max-width: 550px;
      z-index: 1;
    }

    .landing-text h1 {
      font-size: 2.8rem;
      color: #ffd700; /* Jaune */
      margin-bottom: 20px;
      line-height: 1.2;
    }

    .landing-text p {
      font-size: 1.2rem;
      line-height: 1.6;
      color: #ddd;
      margin-bottom: 30px;
    }

    .btn {
      padding: 12px 25px;
      font-size: 16px;
      background: #388e3c; /* Vert */
      color: white;
      border: none;
      border-radius: 30px;
      text-decoration: none;
      transition: 0.3s;
      display: inline-block;
      cursor: pointer;
      box-shadow: 0 4px 10px rgba(56, 142, 60, 0.5);
      position: relative;
      overflow: hidden;
    }

    .btn:hover {
      background: #2e7d32; /* Vert foncé */
      transform: translateY(-3px);
      box-shadow: 0 6px 15px rgba(56, 142, 60, 0.6);
    }

    .btn::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 50%;
      transform: translate(-50%, -50%);
      transition: width 0.6s, height 0.6s;
    }

    .btn:hover::after {
      width: 300px;
      height: 300px;
    }

    /* SECTION LANDING */
.landing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px;
  gap: 30px;
}

/* Texte */
.landing-text {
  flex: 1;
}

.landing-text h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.landing-text p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.landing-text .btn {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary);
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.landing-text .btn:hover {
  background: var(--secondary);
}

/* Image/carrousel */
.landing-img {
  flex: 1;
  max-width: 600px;
}

.carousel {
  position: relative;
  width: 100%;
  height: 350px;   /* fixe une hauteur uniforme */
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.carousel-inner {
  display: flex;
  width: 100%;
  height: 100%;
}

.carousel-item {
  flex: 0 0 100%;
  height: 100%;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* ✅ ajuste sans déborder */
  display: block;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  z-index: 10;
}

.carousel-control.prev {
  left: 10px;
}

.carousel-control.next {
  right: 10px;
}

.carousel-control:hover {
  background: rgba(0,0,0,0.8);
}

.carousel-item {
  flex: 0 0 100%;
  height: 100%;
  display: none; /* cache toutes les images */
}

.carousel-item.active {
  display: block; /* affiche uniquement celle active */
}


    /* Mobile Menu */
    .mobile-menu {
      position: fixed;
      top: 0;
      right: -300px;
      width: 250px;
      height: 100%;
      background: #111;
      box-shadow: -5px 0 15px rgba(0,0,0,0.1);
      z-index: 1001;
      transition: right 0.3s ease;
      padding-top: 80px;
    }

    .mobile-menu.active {
      right: 0;
    }

    .mobile-links {
      list-style: none;
      padding: 20px;
    }

    .mobile-links li {
      margin-bottom: 15px;
      position: relative;
    }

    .mobile-links li a {
      text-decoration: none;
      color: #ddd;
      font-weight: 600;
      font-size: 18px;
      display: block;
      padding: 10px;
      border-radius: 8px;
      transition: all 0.3s;
    }

    .mobile-links li a:hover {
      background-color: rgba(255, 215, 0, 0.2); /* Jaune transparent */
      color: #ffd700; /* Jaune */
    }

    .mobile-submenu {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.4s ease;
      padding-left: 20px;
    }

    .mobile-submenu.active {
      max-height: 300px;
    }

    .mobile-submenu li {
      margin-bottom: 5px;
    }

    .mobile-submenu li a {
      font-size: 16px;
      padding: 8px 10px;
      color: #bbb;
    }

    .mobile-submenu li a:hover {
      color: #4caf50; /* Vert clair */
    }

    .close-menu {
      position: absolute;
      top: 20px;
      right: 20px;
      font-size: 24px;
      cursor: pointer;
      color: #ffd700; /* Jaune */
    }

    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.7);
      z-index: 1000;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s;
    }

    .overlay.active {
      opacity: 1;
      visibility: visible;
    }

    /* Footer */
    .footer {
      background: #2E7D32;
      color: white;
      padding: 30px;
      text-align: center;
      backdrop-filter: blur(5px);
    }

    .footer-content {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
    }

    .social-icons {
      display: flex;
      gap: 20px;
      margin-bottom: 15px;
    }

    .social-icons a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 45px;
      height: 45px;
      background: #4caf50; /* Vert */
      color: white;
      border-radius: 50%;
      text-decoration: none;
      transition: all 0.3s ease;
      font-size: 20px;
    }

    .social-icons a:hover {
      background: #ffd700; /* Jaune */
      color: #111;
      transform: translateY(-5px);
      box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }

    .social-icons img {
      width: 30px;
      height: 30px;
      margin: 0 10px;
      filter: brightness(0) invert(1);
      transition: transform 0.3s ease;
    }

    .social-icons img:hover {
      transform: scale(1.2);
      filter: none;
    }

    .social-icons img {
      width: 30px;
      height: 30px;
      margin: 0 10px;
      filter: grayscale(100%) brightness(0) invert(1);
      transition: transform 0.3s ease;
    }

    .social-icons img:hover {
      transform: scale(1.2);
      filter: none;
    }


    .footer-links {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 25px;
      margin-top: 10px;
    }

    .footer-links a {
      color: #bbb;
      text-decoration: none;
      transition: color 0.3s;
      font-weight: 500;
    }

    .footer-links a:hover {
      color: #ffd700; /* Jaune */
      text-decoration: underline;
    }

    .copyright {
      margin-top: 20px;
      font-size: 14px;
      color: #777;
    }

    /* Responsive */
    @media (max-width: 960px) {
      .landing {
        flex-direction: column;
        padding-top: 100px;
      }

      .landing-text {
        text-align: center;
      }

      .menu-icon {
        display: block;
      }
      
      .landing-img {
        height: 300px;
      }
      
      .footer-links {
        flex-direction: column;
        gap: 15px;
      }
      
      .dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
      }
      
      .dropdown.active {
        transform: translateX(-50%) translateY(0);
      }
    }

    @media (max-width: 768px) {
      .landing-text h1 {
        font-size: 2.2rem;
      }
      
      .landing-text p {
        font-size: 1rem;
      }
      
      .landing-img {
        height: 250px;
      }
      
      .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 18px;
      }
      
      .app-list {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 480px) {
      .navbar {
        padding: 15px 20px;
      }
      
      .landing {
        padding: 100px 5% 40px;
        gap: 40px;
      }
      
      .landing-img {
        height: 220px;
      }
      
      .app-icon {
        width: 70px;
        height: 70px;
        font-size: 12px;
      }
    }