/* Styles Responsive - Calfeutrage ZLS */

@import url('variables.css');

/* --- TABLETTES ET PORTABLES (MAX 992px) --- */
@media (max-width: 992px) {
  /* En-tête / Menu Mobile */
  .hamburger {
    display: block;
  }
  
  .nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 85%;
    max-width: 300px;
    height: calc(100vh - 80px);
    background-color: rgba(17, 24, 39, 0.96); /* Menu mobile sombre translucide */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--spacing-xl);
    gap: var(--spacing-xl);
    box-shadow: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 105;
  }
  
  .nav.active {
    left: 0;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  }
  
  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 5px;
  }
  
  .nav-link {
    font-size: var(--fs-lg);
    width: 100%;
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all var(--transition-fast) ease;
  }
  
  .nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
    padding-left: var(--spacing-xs);
  }
  
  .nav-link::after {
    display: none;
  }
  
  .header-ctas {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-top: var(--spacing-lg);
  }
  
  .header-ctas .btn {
    width: 100%;
  }

  /* Animation hamburger actif */
  .hamburger.active .hamburger-inner {
    background-color: transparent;
  }
  
  .hamburger.active .hamburger-inner::before {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--primary);
  }
  
  .hamburger.active .hamburger-inner::after {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--primary);
  }

  /* Overlay de navigation */
  .nav-overlay {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }
  
  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Hero Section */
  .hero {
    padding: 70px 0 80px 0;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    text-align: center;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-badges {
    justify-content: center;
  }
  
  .hero-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
  }

  /* Pied de page (Footer) */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .sub-footer {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }

  /* Zones et Carte */
  .map-section-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .map-placeholder {
    height: 300px;
  }
}

/* --- TÉLÉPHONES MOBILES (MAX 768px) --- */
@media (max-width: 768px) {
  :root {
    /* Ajustement de la typographie sur mobile */
    --fs-5xl: 2.125rem;
    --fs-4xl: 1.75rem;
    --fs-3xl: 1.4rem;
    --fs-2xl: 1.2rem;
    --fs-xl: 1.1rem;
    --fs-lg: 0.95rem;
    --fs-base: 0.9rem;
  }
  
  .section {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
  }

  /* En-tête */
  .header-container {
    height: 70px;
  }
  
  .logo img {
    height: 40px !important; /* Ajuste la taille du logo ZLS sur mobile */
  }

  .nav {
    top: 70px;
    height: calc(100vh - 70px);
  }
  
  .nav-overlay {
    top: 70px;
  }
  
  .header-ctas .btn-phone {
    display: none; /* Cacher le bouton d'appel du haut sur petit mobile, remplacé par la barre fixe */
  }

  .hero {
    padding: 50px 0 60px 0;
  }

  /* Formulaires */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Bannière CTA */
  .cta-banner {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .cta-banner-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  /* Barre d'appel fixe sur mobile */
  .mobile-call-bar {
    display: flex; /* Afficher sur mobile */
  }
  
  /* Ajustement de la marge du bas du body pour ne pas cacher le contenu par la barre d'appel fixe */
  body {
    padding-bottom: 75px; 
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

/* --- PETITS MOBILES (MAX 480px) --- */
@media (max-width: 480px) {
  .hero-title {
    font-size: var(--fs-4xl);
    line-height: 1.2;
  }
  
  .zones-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-form-wrapper {
    padding: var(--spacing-lg) var(--spacing-md);
  }
  
  .logo-text {
    font-size: var(--fs-base) !important;
  }
}
