/* ============================================
   PEDAGOWEB - RESPONSIVE STYLES
   Adaptations pour tablettes et mobiles
   ============================================ */

/* === TABLETTES (max-width: 1024px) === */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--espace-sm);
  }
  
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--espace-sm);
  }
  
  .section {
    padding: var(--espace-lg) 0;
  }
}

/* === MOBILE (max-width: 768px) === */
@media (max-width: 768px) {
  /* Navigation mobile */
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--blanc);
    flex-direction: column;
    padding: var(--espace-md);
    box-shadow: var(--ombre-moyenne);
    z-index: 999;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-link {
    padding: var(--espace-sm) 0;
    width: 100%;
    text-align: center;
  }
  
  .btn-primary {
    width: 100%;
    margin-top: var(--espace-sm);
  }
  
  /* Hero */
  .hero {
    padding: var(--espace-md) 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  /* Cards */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: var(--espace-sm);
  }
  
  /* Sections */
  .section {
    padding: var(--espace-md) 0;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--espace-md);
  }
  
  /* Contact page */
  div[style*="grid-template-columns: 1fr 1fr"] {
    display: block !important;
  }
  
  div[style*="grid-template-columns: 1fr 1fr"] > div:first-child {
    margin-bottom: var(--espace-md);
  }
  
  /* WhatsApp button */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 1.5rem;
  }
  
  /* Typography */
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  /* Buttons */
  .btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
  }
  
  /* Logo */
  .logo {
    height: 40px;
  }
}

/* === PETIT MOBILE (max-width: 480px) === */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .card {
    padding: 1rem;
  }
  
  .footer {
    padding: 2rem 0 1rem;
  }
}