/* ============================================
   HAALS FORMATION - RESPONSIVE DESIGN
   ============================================ */

/* Tablette (768px - 1024px) */
@media screen and (max-width: 1024px) {
  :root {
    --font-size-h1: 2rem;
    --font-size-h2: 1.75rem;
    --font-size-h3: 1.35rem;
    --spacing-xl: 3rem;
    --spacing-lg: 2.5rem;
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

/* Mobile (< 768px) */
@media screen and (max-width: 768px) {
  :root {
    --font-size-h1: 1.75rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.25rem;
    --font-size-base: 15px;
    --spacing-xl: 2rem;
    --spacing-lg: 2rem;
    --spacing-md: 1.5rem;
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .hero {
    padding: var(--spacing-lg) 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: var(--font-size-base);
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  /* Section séjours linguistiques - mobile */
  .sejours-image-wrapper {
    order: -1;
    margin-bottom: var(--spacing-md);
  }
  
  .sejours-image-container {
    max-width: 100%;
    transform: none;
  }
  
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .btn-large {
    padding: 14px 30px;
    font-size: var(--font-size-base);
  }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
  
  /* Menu burger */
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    flex-direction: column;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    z-index: 999;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }
  
  .nav-link {
    padding: var(--spacing-sm);
    width: 100%;
    text-align: left;
    border-bottom: 1px solid var(--color-gray-light);
  }
  
  .nav-link.active::after {
    display: none;
  }
  
  body.menu-open {
    overflow: hidden;
  }
  
  /* Filtres formations responsive */
  .filter-btn {
    padding: 8px 16px;
    font-size: var(--font-size-small);
  }
  
  .formation-info {
    font-size: var(--font-size-small);
  }
  
  .formation-info span {
    font-size: var(--font-size-small);
  }
}

/* Mobile petit (< 480px) */
@media screen and (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .hero-logo {
    max-width: 150px;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .card:hover {
    transform: translateY(-5px) scale(1.01);
  }
  
  /* Désactiver certaines animations sur mobile pour les performances */
  .hero::before {
    animation: none !important;
  }
  
  .hero-logo {
    animation: fadeInUp 0.8s ease-out 0.1s both !important;
  }
  
  .card-icon {
    transform: none !important;
  }
  
  .card:hover .card-icon {
    transform: scale(1.05) !important;
  }
  
  /* Réduire les transitions sur mobile */
  .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  /* Optimiser le rendu */
  .hero {
    will-change: auto;
  }
}

