/* --------------------------------------
   1) Ajustement du body
-------------------------------------- */
body {
    margin: 0; 
    /* Comme on a une navbar fixe, on met un padding-top 
       égal ou légèrement supérieur à la hauteur initiale. */
    padding-top: 175px; 
  }
  
  /* Import de la police Inter */
  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');
  
  /* =======================
     NAVBAR STYLES
     ======================= */
  
  /* Navbar fixée en haut */
  .header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999; /* Pour que la navbar soit au-dessus du contenu */
    background-color: #2a2a2a;
    color: #fff;
    font-family: 'Inter', sans-serif;
  
    /* On prépare une transition pour la hauteur, si besoin */
    transition: all 0.3s ease-in-out;
  }
  
  /* Barre de navigation */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  
    /* Grand padding par défaut */
    padding: 3rem;
    background-color: #2a2a2a; 
  
    /* Transition sur le padding */
    transition: padding 0.3s ease-in-out;
  }
  
  /* --- Logo + titre --- */
  .navbar-left {
    display: flex;
    align-items: center;
    gap: 1rem; 
  }
  .logo {
    height: 70px; 
    transition: height 0.3s ease-in-out; /* Important pour l’animation */
  }
  .title-block {
    display: flex;
    flex-direction: column; 
  }
  .main-title {
    font-size: 2rem;
    margin-bottom: 0.3rem;
    transition: font-size 0.3s ease-in-out;
  }
  .tagline {
    font-size: 1rem;
    font-style: italic;
    color: #ccc; 
    transition: font-size 0.3s ease-in-out, opacity 0.3s ease-in-out;
  }
  
  /* --- Menu desktop + burger --- */
  .navbar-right {
    display: flex;
    align-items: center;
  }
  .nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
  }
  .nav-links li {
    position: relative;
  }
  .nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
  }
  .nav-links a:hover {
    text-decoration: underline;
  }
  
  /* Sous-menu => caché par défaut */
  .submenu {
    display: none;
    position: absolute; 
    top: 100%;
    left: 0;
    background-color: #333;
    list-style: none;
    padding: 0.5rem;
  }
  .submenu li {
    padding: 0.3rem 1rem;
  }
  .submenu li a {
    color: #fff;
  }
  
  /* Au survol, en desktop => affiche la sous-liste */
  @media (min-width: 769px) {
    .submenu-parent:hover .submenu {
      display: block;
    }
  }
  
  /* Ligne jaune */
  .nav-underline {
    height: 3px;
    background-color: #f3c306;
    margin: 0 1rem;
    border-radius: 30px;
  }
  
  /* ---------- Burger mobile ---------- */
  .nav-toggle {
    display: none; /* Masqué sur desktop */
    position: relative;
    width: 30px;
    height: 24px;
    cursor: pointer;
  }
  /* 3 barres du burger */
  .nav-toggle span {
    position: absolute;
    width: 100%;
    height: 3px;
    background: #fff;
    transition: 0.4s;
    transform-origin: center;
  }
  .bar1 { top: 0; }
  .bar2 { top: 10px; }
  .bar3 { top: 20px; }
  
  /* =======================
     RESPONSIVE
     ======================= */
  @media (max-width: 768px) {
    /* On affiche le burger, on masque le menu inline */
    .nav-toggle {
      display: block;
      /* on peut le fixer en haut à droite pour mobile */
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 1001;
    }
    .nav-links {
      display: none; /* masqué par défaut */
    }
  
    /* Au clic => overlay plein écran */
    .nav-links.show {
      position: fixed;
      top: 0; left: 0;
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 2rem;
      background: rgba(0,0,0,0.9);
      z-index: 1000;
      animation: fadeIn 0.4s ease;
    }
    @keyframes fadeIn {
      from { opacity: 0; }
      to   { opacity: 1; }
    }
  
    /* Liens agrandis en overlay */
    .nav-links.show li a {
      font-size: 1.2rem;
    }
  
    /* Sous-menu en mode overlay => on enlève position absolute pour qu'il soit dans le flux */
    .submenu {
      position: static;
      background-color: transparent;
    }
    .submenu.show-submenu {
      display: block;  /* affiché au clic sur “Véhicule” */
      text-align: center;
    }
  
    .navbar {
      padding: 1rem;
    }
  
    body {
      margin: 0; 
      padding-top: 120px;  /* Ajuste selon la hauteur de ta navbar */
    }
  }
  
  /* ============= Animation burger -> croix ============= */
  .nav-toggle.open .bar1 {
    transform: translateY(10px) rotate(45deg);
  }
  .nav-toggle.open .bar2 {
    opacity: 0;
  }
  .nav-toggle.open .bar3 {
    transform: translateY(-10px) rotate(-45deg);
  }
  
  /* 
   * ------------------------------
   *   CLASSE .shrink au scroll
   * ------------------------------
   */
 /* Sur desktop : .shrink */
.header-container.shrink .navbar {
    padding: 1.5rem;
  }
  .header-container.shrink .logo {
    height: 40px;
  }
  .header-container.shrink .main-title {
    font-size: 1.2rem;
  }
  .header-container.shrink .tagline {
    opacity: 0;
  }
  
  /* Sur mobile : .shrink-mobile */
  .header-container.shrink-mobile .navbar {
    padding: 1.5rem; /* peut-être déjà pas trop grand de base */
  }
  .header-container.shrink-mobile .logo {
    height: 50px; /* juste un peu plus petit */
  }
  .header-container.shrink-mobile .main-title {
    font-size: 1.5rem; /* réduction modérée */
  }
  .header-container.shrink-mobile .tagline {
    opacity: 0.7; /* éventuellement on la laisse un peu visible */
  }
  