/* Styles spécifiques pour tablettes */

/* Mode paysage - grandes tablettes */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .container {
    max-width: 900px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .logo {
    height: 40px;
  }

  nav ul li {
    margin-left: 1.2rem;
  }

  nav ul li a {
    font-size: 0.9rem;
  }

  .hero {
    padding: 6rem 2rem;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    justify-content: flex-start;
    text-align: left;
  }

  .hero-content {
    margin: 0;
    margin-left: 3%;
    max-width: 550px;
    z-index: 10;
    padding: 1.8rem;
  }

  .hero-video-container {
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-video {
    /* Optimisation pour tablette */
    width: 100vw;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.35) contrast(1.15);
  }

  .hero-overlay {
    /* Ajustement de l'overlay pour tablette */
    width: 100vw;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.85)),
      linear-gradient(
        135deg,
        rgba(44, 24, 16, 0.75) 0%,
        rgba(139, 90, 60, 0.9) 100%
      );
  }

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

  .hero-features {
    justify-content: space-around;
    max-width: 600px;
    margin: 1.8rem auto;
  }

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

/* Mode portrait - tablettes moyennes et petites */
@media screen and (min-width: 601px) and (max-width: 900px) and (orientation: portrait) {
  .container {
    max-width: 100%;
    padding: 0 1.5rem;
  }

  .hero {
    padding: 5rem 1.5rem;
  }

  .hero h2 {
    font-size: 2.2rem;
  }

  .cta-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }

  .services-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 3/4;
  }

  .about-image .ramoneur-img {
    max-width: 100%;
    height: 100%;
    display: block;
    margin: 0 auto;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-around;
  }
}

/* Orientation mixte - tablettes en mode paysage et desktop en mode portrait */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .services-grid,
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .hero h2 {
    font-size: 2.2rem;
  }

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

  .service-card,
  .pricing-card {
    padding: 1.5rem;
  }
}

/* Styles pour le menu tablette */
@media screen and (min-width: 768px) and (max-width: 992px) {
  nav ul li {
    margin-left: 0.8rem;
  }

  nav ul li a {
    font-size: 0.85rem;
    padding: 0.3rem;
  }
}
