/* 
 * Styles adaptatifs pour domain.com
 * Optimisé pour tous les appareils
 */

/* ---------- TABLETTES (< 1024px) ---------- */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .about-wrapper {
    gap: 2rem;
  }
  
  .services-grid,
  .audit-types-grid,
  .testimonials-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .statistics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-wrapper {
    gap: 2rem;
  }
}

/* ---------- TABLETTES PORTRAIT ET MOBILES LARGES (< 768px) ---------- */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .nav-toggle {
    display: block;
    z-index: 1001;
  }
  
  .menu-toggle {
    width: 30px;
    height: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
  }
  
  .menu-toggle.open span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }
  
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.4s ease;
    z-index: 1000;
  }
  
  .main-nav.visible {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    text-align: center;
  }
  
  .main-nav li {
    margin: 1rem 0;
  }
  
  .main-nav a {
    color: white;
    font-size: 1.5rem;
  }
  
  .main-nav a:hover:after {
    width: 0;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .about-wrapper {
    flex-direction: column;
  }
  
  .about-image {
    order: -1;
    margin-bottom: 2rem;
  }
  
  .form-container {
    padding: 2rem;
  }
  
  .footer-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ---------- MOBILES (< 576px) ---------- */
@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .hero-section {
    height: 80vh;
  }
  
  .services-grid,
  .audit-types-grid,
  .statistics-grid,
  .testimonials-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .benefit-item {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
  }
  
  .form-container {
    padding: 1.5rem;
  }
  
  .cookie-popup {
    left: 10px;
    right: 10px;
    max-width: calc(100% - 20px);
  }
}
