/* ==============================================
   LAYERONE WEBSITE - Responsive Styles
   Mobile-first responsive breakpoints
   ============================================== */

/* ========== TABLET (768px - 1023px) ========== */
@media (max-width: 1023px) {
  :root {
    --section-padding: var(--space-5xl);
  }

  h1 {
    font-size: var(--text-3xl);
  }

  h2 {
    font-size: var(--text-2xl);
  }

  /* Navigation */
  .navbar-nav {
    display: none;
  }

  .navbar-toggle {
    display: block;
  }

  .mobile-menu {
    display: block;
  }

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

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

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

  .pricing-grid .pricing-card:last-child {
    grid-column: span 2;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Feature Detail */
  .feature-detail {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

  .feature-detail:nth-child(even) {
    direction: ltr;
  }

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

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

  .footer-brand {
    grid-column: span 2;
    max-width: none;
    margin-bottom: var(--space-2xl);
  }
}

/* ========== MOBILE (320px - 767px) ========== */
@media (max-width: 767px) {
  :root {
    --container-padding: var(--space-lg);
    --section-padding: var(--space-4xl);
    --nav-height: 64px;
  }

  /* Typography */
  h1 {
    font-size: var(--text-2xl);
  }

  h2 {
    font-size: var(--text-xl);
  }

  h3 {
    font-size: var(--text-lg);
  }

  /* Buttons */
  .btn {
    width: 100%;
    justify-content: center;
  }

  .btn-lg {
    padding: var(--space-lg) var(--space-2xl);
  }

  /* Hero */
  .hero {
    padding: calc(var(--nav-height) + var(--space-3xl)) var(--container-padding) var(--space-3xl);
    min-height: auto;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-card {
    padding: var(--space-2xl) var(--space-xl);
  }

  .hero-logo {
    height: 60px;
  }

  .hero-title {
    font-size: var(--text-2xl);
  }

  .hero-subtitle {
    font-size: var(--text-lg);
  }

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

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

  .pricing-grid .pricing-card:last-child {
    grid-column: span 1;
    max-width: none;
  }

  /* Download */
  .download-cards {
    grid-template-columns: 1fr;
  }

  .download-card {
    padding: var(--space-2xl);
  }

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

  /* Feature Cards */
  .feature-card {
    padding: var(--space-2xl);
  }

  /* Pricing Cards */
  .pricing-card {
    padding: var(--space-2xl);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

  /* Section Headers */
  .section-header {
    margin-bottom: var(--space-3xl);
  }

  /* Cards */
  .glass-card {
    border-radius: var(--radius-lg);
  }

  .card {
    padding: var(--space-xl);
  }

  /* CTA Section */
  .cta-card {
    padding: var(--space-2xl);
  }

  /* Testimonial */
  .testimonial {
    padding: var(--space-2xl);
  }

  .testimonial blockquote {
    font-size: var(--text-lg);
  }

  /* Store Badges */
  .store-badges {
    flex-direction: column;
    align-items: center;
  }

  /* Contact Items */
  .contact-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
}

/* ========== SMALL MOBILE (< 375px) ========== */
@media (max-width: 374px) {
  :root {
    --container-padding: var(--space-md);
  }

  h1 {
    font-size: var(--text-xl);
  }

  .hero-card {
    padding: var(--space-xl) var(--space-lg);
  }

  .btn {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-md);
  }
}

/* ========== LARGE DESKTOP (1440px+) ========== */
@media (min-width: 1440px) {
  :root {
    --container-max: 1320px;
  }

  .hero-content {
    max-width: 550px;
  }

  .hero-card {
    padding: var(--space-5xl) var(--space-4xl);
  }
}

/* ========== TRÈS GRAND ÉCRAN (1920px+) ========== */
@media (min-width: 1920px) {
  :root {
    --container-max: 1440px;
  }
}

/* ========== PRINT ========== */
@media print {
  .animated-background,
  .navbar,
  .mobile-menu,
  .footer-social,
  .btn {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  .glass-card,
  .card {
    background: white;
    border: 1px solid #ccc;
    box-shadow: none;
  }
}

/* ========== ORIENTATION LANDSCAPE MOBILE ========== */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--space-xl));
    padding-bottom: var(--space-xl);
  }
}

/* ========== HOVER QUERIES ========== */
/* Désactiver hover effects sur touch devices */
@media (hover: none) {
  .btn:hover {
    transform: none;
  }

  .card:hover,
  .feature-card:hover {
    transform: none;
    box-shadow: none;
  }

  .navbar-link:hover::after {
    width: 0;
  }
}

/* ========== HIGH CONTRAST MODE ========== */
@media (prefers-contrast: high) {
  :root {
    --border-light: black;
    --text-secondary: black;
    --text-muted: #333;
  }

  .btn-primary {
    background: black;
    color: white;
  }

  .glass-card {
    background: white;
    border: 2px solid black;
  }
}
