/* ==========================================
   RESPONSIVE - RAMONEUR ARDENNES
   ========================================== */

/* ==========================================
   MOBILE (max-width: 575px)
   ========================================== */
@media (max-width: 575.98px) {
  html {
    font-size: 14px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .container {
    padding: 0 var(--spacing-sm);
  }

  .section {
    padding: var(--spacing-xl) 0;
  }

  /* Hero */
  .hero {
    padding: var(--spacing-xl) 0;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-row {
    gap: var(--spacing-sm);
  }

  .stat-item {
    flex: 1 1 calc(50% - var(--spacing-sm));
    min-width: auto;
    padding: var(--spacing-sm);
  }

  .stat-value {
    font-size: 1.75rem;
  }

  /* Grilles */
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .process-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .process-grid::before {
    display: none;
  }

  /* FAQ */
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-header {
    position: static;
    text-align: center;
    margin-bottom: var(--spacing-lg);
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Formulaire */
  .form {
    padding: var(--spacing-md);
  }

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

  /* Footer */
  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  /* City info */
  .city-info-grid {
    grid-template-columns: 1fr;
  }

  /* Breadcrumb */
  .breadcrumb-list {
    font-size: 0.75rem;
  }
}

/* ==========================================
   MENU MOBILE (max-width: 991px)
   ========================================== */
@media (max-width: 991.98px) {
  .header-top {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  /* Navigation overlay */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px var(--spacing-md) var(--spacing-lg);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
  }

  .nav.active {
    right: 0;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    animation: fadeIn 0.3s ease;
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--gray-200);
  }

  .nav-link {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.05rem;
    justify-content: space-between;
    border-radius: 0;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover {
    background: rgba(232, 93, 4, 0.08);
  }

  /* Dropdown mobile */
  .dropdown-toggle svg {
    transition: var(--transition-base);
  }

  .nav-item.open .dropdown-toggle svg {
    transform: rotate(180deg);
  }

  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    min-width: 100%;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    background: var(--gray-50);
  }

  .dropdown-menu::before {
    display: none;
  }

  .nav-item.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    padding: 14px 20px 14px 40px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--gray-200);
  }

  .dropdown-menu li:last-child a {
    border-bottom: none;
  }

  /* CTA mobile dans le menu */
  .nav::after {
    content: 'Appelez-nous';
    display: block;
    width: calc(100% - 40px);
    margin: var(--spacing-lg) 20px var(--spacing-md);
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--white);
    text-align: center;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
  }

  /* Logo mobile */
  .logo-text {
    font-size: 1.25rem;
  }

  .logo-icon {
    width: 38px;
    height: 38px;
  }

  .logo-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* ==========================================
   TABLET (576px - 767px)
   ========================================== */
@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    max-width: 540px;
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .zones-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

/* ==========================================
   TABLET LARGE (768px - 991px)
   ========================================== */
@media (min-width: 768px) and (max-width: 991.98px) {
  .container {
    max-width: 720px;
  }

  h1 { font-size: 2.5rem; }

  .hero h1 {
    font-size: 2.5rem;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .zones-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .faq-header {
    position: static;
    text-align: center;
    margin-bottom: var(--spacing-lg);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid::before {
    display: none;
  }
}

/* ==========================================
   DESKTOP (992px - 1199px)
   ========================================== */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .zones-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-main {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* ==========================================
   DESKTOP LARGE (1200px+)
   ========================================== */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }

  .services-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .zones-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ==========================================
   IMAGES RESPONSIVE
   ========================================== */
@media (max-width: 767.98px) {
  .hero-image img {
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--radius-lg);
  }
}

/* ==========================================
   TABLES RESPONSIVE
   ========================================== */
@media (max-width: 767.98px) {
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* ==========================================
   PRINT
   ========================================== */
@media print {
  .header,
  .footer,
  .nav,
  .hero,
  .btn,
  .back-to-top,
  .breadcrumb {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    text-decoration: underline;
  }

  section {
    page-break-inside: avoid;
  }
}

/* ==========================================
   PREFERS REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ==========================================
   HOVER POUR ÉCRANS TACTILES
   ========================================== */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .card:hover,
  .zone-item:hover,
  .why-item:hover,
  .testimonial-card:hover {
    transform: none;
  }

  .btn-primary:hover {
    transform: none;
  }
}
