/* =============================================================================
   RESPONSIVE CORE — Shared responsive rules across all pages
   ============================================================================= */

/* ===== TABLET (≤ 900px) ===== */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Sub-page layouts */
  .contact-container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-logos {
    flex-direction: row;
    justify-content: center;
    padding: 30px 20px;
  }

  .accueil-split-container,
  .content-split-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

/* ===== MOBILE (≤ 768px) ===== */
@media (max-width: 768px) {
  .navbar-container {
    padding: 10px 20px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 110px 40px 40px;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
  }

  .nav-links a {
    font-size: 1.3rem;
    margin-bottom: 25px;
    width: 100%;
    text-align: center;
  }

  .nav-links .btn-nav-contact {
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }

  .nav-links.open {
    right: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Sub-page headers */
  .page-header h1 {
    font-size: 1.8rem;
  }

  .creche-hero h2 {
    font-size: 1.5rem;
  }

  .hero-logos {
    gap: 15px;
  }

  .hero-logo-item img {
    height: 55px;
  }

  .actus-grid {
    grid-template-columns: 1fr;
  }

  /* Sub-page section paddings */
  .creche-info,
  .tarifs-section,
  .form-section,
  .alimentation-section,
  .hygiene-section,
  .accompagnement-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .preinscription-overlay-box {
    padding: 30px 20px;
    margin: 20px 15px;
  }
}

/* ===== MOBILE PERF — Disable expensive backdrop-filter for 60fps ===== */
@media (max-width: 768px) {
  .navbar.scrolled .navbar-container {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.97);
  }

  .tribe-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.95);
  }

  .scroll-down-arrow {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.85);
  }

  .recipe-paper {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.97);
  }

  .contact-redesign-grid {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.97);
  }

  .image-blob {
    animation: none;
  }
}

/* ===== SMALL MOBILE (≤ 360px) ===== */
@media (max-width: 360px) {
  .nav-logo-text .logo-svg {
    height: 38.4px;
  }

  .nav-logo-text .svg-text-base {
    font-size: 25.6px;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .section-bar h2 {
    font-size: 1rem;
  }
}
