/* AFECEN Responsive CSS */

/* ==========================================================================
   4K & ULTRA WIDE SCREENS (Min-width: 1800px)
   ========================================================================== */
@media (min-width: 1800px) {
  :root {
    --container-max-width: 1600px;
  }
  
  html {
    font-size: 18px; /* Scales up layout elements proportionally on large screens */
  }
  
  .hero-title {
    font-size: 4.5rem;
  }
}

/* ==========================================================================
   DESKTOP (Max-width: 1200px)
   ========================================================================== */
@media (max-width: 1200px) {
  :root {
    --container-max-width: 960px;
    --spacing-lg: 3.5rem;
    --spacing-xl: 6rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
}

/* ==========================================================================
   LAPTOPS & LARGE TABLETS (Max-width: 992px)
   ========================================================================== */
@media (max-width: 992px) {
  :root {
    --container-max-width: 720px;
    --spacing-lg: 3rem;
    --header-height: 70px;
  }
  
  /* Navigation Collapse */
  .burger {
    display: flex; /* Displays mobile hamburger toggle */
  }
  
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-primary-dark);
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--spacing-lg) var(--spacing-md);
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .nav.open {
    transform: translateX(0);
  }
  
  .nav-list {
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    text-align: center;
  }
  
  .nav-link {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
  }
  
  .nav-link:hover, .nav-link.active {
    color: var(--color-secondary);
  }
  
  .nav-btn {
    width: 80%;
    max-width: 300px;
    margin-top: 1rem;
    border-color: var(--color-secondary) !important;
    color: var(--color-secondary) !important;
  }
  
  .nav-btn:hover {
    background-color: var(--color-secondary) !important;
    color: var(--color-primary-dark) !important;
  }
  
  /* Grids adjustments */
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .about-content-left {
    padding-right: 0;
  }
  
  .team-grid, .services-grid, .projects-grid, .actualites-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
  
  .formation-body {
    grid-template-columns: 1fr;
  }
  
  .formation-action {
    align-items: flex-start;
    margin-top: var(--spacing-sm);
  }
}

/* ==========================================================================
   SMALL TABLETS & MOBILE PHONES (Max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --container-max-width: 540px;
    --spacing-lg: 2.5rem;
  }
  
  .hero-title {
    font-size: 2.4rem;
  }
  
  .hero-text {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .team-grid, .services-grid, .projects-grid, .actualites-grid {
    grid-template-columns: 1fr;
  }
  
  .pub-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-sm);
  }
  
  .pub-filter-wrap {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 5px;
  }
  
  .pub-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
  
  .pub-actions {
    width: 100%;
  }
  
  .pub-actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   X-SMALL MOBILE PHONES (Max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
  :root {
    --spacing-lg: 2rem;
  }
  
  .hero-title {
    font-size: 1.9rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .about-bento {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
