/* ===================================
   NAMÉLYAHOME Landing Page - Responsive Premium
   Adaptations mobile-first premium
   =================================== */

/* ===== BASE MOBILE (320px+) ===== */
@media (max-width: 767px) {
  /* Typographie mobile premium */
  :root {
    --text-h1: clamp(2.5rem, 8vw, 3.5rem);
    --text-h2: clamp(2rem, 6vw, 2.8rem);
    --text-h3: clamp(1.5rem, 4vw, 2rem);
    --space-5xl: 6rem;
    --space-4xl: 4rem;
    --space-3xl: 3rem;
  }

  /* Header mobile */
  .header__content {
    padding: var(--space-sm) 0;
  }
  
  .logo {
    font-size: 1.25rem;
  }
  
  .cta-header {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.75rem;
  }

  /* Hero mobile premium */
  .hero {
    padding: var(--space-4xl) 0 var(--space-3xl);
  }
  
  .hero__title {
    margin-bottom: var(--space-xl);
    line-height: 1.1;
  }
  
  .hero__subtitle {
    font-size: var(--text-base);
    margin-bottom: var(--space-2xl);
  }

  /* Problem section mobile */
  .problem-layout {
    grid-template-columns: 1fr;
    grid-template-areas: none;
    gap: var(--space-2xl);
    text-align: center;
  }

  .problem-content,
  .problem-visual,
  .problem-cta {
    grid-area: auto;
  }
  
  .problem-content {
    padding-right: 0;
    order: 1;
    text-align: center;
  }

  .problem-visual {
    order: 2;
  }

  .problem-cta {
    order: 3;
    text-align: center;
  }
  
  .plan-placeholder {
    width: 280px;
    height: 180px;
  }
  
  .problem-paragraph br {
    display: none;
  }

  /* Services mobile premium */
  .services-section h2 {
    text-align: center;
    padding-left: 0;
  }
  
  .services-section h2::after {
    margin: var(--space-lg) auto 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: none;
  }
  
  .service-card {
    padding: var(--space-2xl) var(--space-lg);
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    text-align: center;
    min-height: auto;
  }
  
  .service-card:last-child {
    border-bottom: none;
  }
  
  .service-number {
    font-size: var(--text-h2);
  }
  
  .service-card p br {
    display: none;
  }

  /* Qualification mobile */
  .qualification-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .qualification-card {
    padding: var(--space-xl);
  }

  /* Decision mobile */
  .pricing-info {
    padding: var(--space-xl);
  }
  
  .pricing-text p br {
    display: none;
  }

  /* CTA mobile premium */
  .cta-primary {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-sm);
  }
  
  .cta-primary--large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--text-base);
  }

  /* Modal mobile */
  .modal__container {
    width: 95%;
    padding: var(--space-xl);
    max-height: 95vh;
  }
  
  .qualification-form {
    max-width: 100%;
  }
  
  .calendly-inline-widget {
    min-height: 500px;
  }

  /* Proof section mobile */
  .proof-text br {
    display: none;
  }
  
  .before-after-slider {
    max-width: 100%;
    margin: 0 var(--space-md);
  }
  
  .slider-container {
    height: 300px;
  }
  
  .plan-2d,
  .plan-3d {
    width: 240px;
    height: 160px;
    padding: var(--space-md);
  }
}

/* ===== SMALL MOBILE (max 480px) ===== */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }
  
  .cta-primary {
    width: 100%;
    padding: var(--space-lg) var(--space-md);
  }
  
  .plan-placeholder {
    width: 250px;
    height: 160px;
  }
  
  .plan-room {
    font-size: 0.75rem;
  }
  
  .slider-container {
    height: 250px;
  }
  
  .plan-2d,
  .plan-3d {
    width: 200px;
    height: 140px;
  }
  
  .handle-button {
    width: 35px;
    height: 35px;
  }
  
  .service-number {
    font-size: var(--text-h3);
  }
  
  .service-separator {
    width: 50px;
    height: 3px;
  }
  
  .service-card {
    padding: var(--space-lg);
  }
  
  .pricing-info {
    padding: var(--space-lg);
  }
  
  .modal__container {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
    padding: var(--space-md);
  }
  
  .modal__close {
    top: var(--space-sm);
    right: var(--space-sm);
    width: 35px;
    height: 35px;
  }
  
  .calendly-inline-widget {
    min-height: 450px;
  }
  
  .form-group select {
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

/* ===== TABLET (768px - 1023px) ===== */
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    padding: 0 var(--space-lg);
  }
  
  .header__content {
    padding: var(--space-sm) 0;
  }
  
  .hero {
    padding: var(--space-5xl) 0 var(--space-4xl);
  }
  
  /* Ajustements tablet premium */
  .problem-layout {
    gap: var(--space-3xl);
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .service-card {
    border-right: none;
    text-align: center;
  }
  
  .qualification-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .qualification-card {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .modal__container {
    width: 80%;
    max-width: 600px;
  }
}

/* ===== DESKTOP (1024px+) ===== */
@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-xl);
  }
  
  .header__content {
    padding: var(--space-sm) 0;
  }
  
  .hero {
    padding: var(--space-5xl) 0;
  }
  
  .hero__content {
    max-width: 1000px;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Effets hover premium desktop */
  .service-card:hover {
    transform: translateY(-12px) scale(1.02);
  }
  
  .qualification-card:hover {
    transform: translateY(-6px);
  }
  
  .before-after-slider {
    height: 500px;
  }
  
  .slider-container {
    height: 500px;
  }
  
  .modal__container {
    width: 70%;
    max-width: 700px;
  }
  
  /* Effets hover pour desktop */
  .cta-primary:hover {
    transform: translateY(-3px);
  }
  
  .cta-header:hover {
    transform: translateY(-2px);
  }
  
  /* Animations d'apparition désactivées — sections statiques au chargement */
}

/* ===== LARGE DESKTOP (1200px+) ===== */
@media (min-width: 1200px) {
  /* Espacement premium large écran */
  .container {
    padding: 0 var(--space-xl);
  }
  
  .hero__content {
    max-width: 1000px;
  }
  
  .problem-layout {
    max-width: 1200px;
    gap: var(--space-5xl);
  }
  
  .services-grid {
    max-width: 1200px;
    gap: var(--space-2xl);
  }
  
  .qualification-grid {
    max-width: 1200px;
    gap: var(--space-3xl);
  }
  
  section {
    padding: var(--space-5xl) 0;
  }
}

/* ===== TRÈS LARGE ÉCRAN (1400px+) ===== */
@media (min-width: 1400px) {
  .hero {
    padding: 8rem 0;
  }
  
  .hero__content {
    max-width: 1100px;
  }
}

/* ===== ORIENTATION PAYSAGE MOBILE ===== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: var(--space-2xl) 0;
  }
  
  .modal__container {
    max-height: 95vh;
    overflow-y: auto;
  }
  
  .calendly-inline-widget {
    min-height: 400px;
  }
}

/* ===== ANIMATIONS PREMIUM ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== PRINT PREMIUM ===== */
@media print {
  .hero,
  .services-section,
  .qualification-section,
  .decision-section {
    padding: 2rem 0;
  }
  
  .service-card,
  .qualification-card {
    break-inside: avoid;
    margin-bottom: 1rem;
  }
  
  .cta-primary,
  .cta-header,
  .cta-secondary {
    display: none;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .qualification-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* ===== ACCESSIBILITÉ PREMIUM ===== */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .qualification-card,
  .cta-primary,
  .hero__title,
  .hero__subtitle,
  .problem-content,
  .problem-visual {
    animation: none !important;
  }
  
  .service-card:hover,
  .qualification-card:hover,
  .cta-primary:hover {
    transform: none !important;
  }
  
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== HIGH CONTRAST PREMIUM ===== */
@media (prefers-contrast: high) {
  .service-card {
    border: 2px solid var(--color-primary);
  }
  
  .qualification-card {
    border: 2px solid var(--color-white);
  }
  
  .cta-primary,
  .cta-header {
    border: 2px solid currentColor;
  }
}