/* ========================================
   RESPONSIVE MOBILE - Ne touche pas au desktop
   ======================================== */

/* Tablettes (768px et moins) */
@media screen and (max-width: 768px) {
  
  /* Header mobile optimisé */
  header .container {
    flex-direction: column;
    padding: 15px;
  }
  
  header .logo h1 {
    font-size: 1.8rem;
  }
  
  header .logo .slogan {
    font-size: 0.85rem;
  }
  
  /* Navigation mobile */
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #0e162b;
    transition: right 0.3s ease;
    z-index: 1000;
    padding-top: 80px;
  }
  
  nav.active {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
    padding: 20px;
  }
  
  nav ul li {
    margin: 15px 0;
    width: 100%;
  }
  
  nav ul li a {
    display: block;
    padding: 12px 15px;
    font-size: 1.1rem;
  }
  
  /* Hero Section */
  .hero {
    padding: 60px 20px;
    min-height: auto;
  }
  
  .hero h1 {
    font-size: 2rem;
    line-height: 1.3;
  }
  
  .hero p {
    font-size: 1rem;
    margin: 20px 0;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .hero-buttons .btn {
    width: 100%;
    padding: 15px 25px;
    font-size: 1rem;
  }
  
  /* Services Grid */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-card {
    padding: 25px 20px;
  }
  
  .service-card h3 {
    font-size: 1.3rem;
  }
  
  .service-card p {
    font-size: 0.95rem;
  }
  
  /* Features Grid */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Expertise Section */
  .expertise-grid {
    flex-direction: column;
  }
  
  .expertise-main,
  .expertise-sidebar {
    width: 100%;
  }
  
  .services-cards-row {
    flex-direction: column;
  }
  
  .service-detail-card {
    margin-bottom: 20px;
  }
  
  /* Location tags */
  .location-tags {
    gap: 8px;
  }
  
  .location-tag {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
  
  /* Testimonials */
  .testimonials-slider {
    flex-direction: column;
  }
  
  .testimonial {
    width: 100%;
    margin-bottom: 20px;
  }
  
  /* FAQ */
  .faq-container {
    padding: 0 15px;
  }
  
  .faq-question {
    font-size: 1rem;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer-about,
  .footer-links,
  .footer-services,
  .footer-contact {
    width: 100%;
  }
  
  .social-media {
    justify-content: center;
  }
  
  /* Buttons global */
  .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
  }
  
  /* Section titles */
  .section-title {
    font-size: 1.8rem;
  }
  
  /* Container padding */
  .container {
    padding: 0 20px;
  }
  
  /* Page headers */
  .page-header {
    padding: 40px 20px;
  }
  
  .page-header h2 {
    font-size: 1.8rem;
  }
  
  .page-header p {
    font-size: 0.95rem;
  }
}

/* Smartphones (480px et moins) */
@media screen and (max-width: 480px) {
  
  /* Header ultra compact */
  header .logo h1 {
    font-size: 1.5rem;
  }
  
  header .logo .slogan {
    font-size: 0.75rem;
  }
  
  /* Hero ultra compact */
  .hero {
    padding: 40px 15px;
  }
  
  .hero h1 {
    font-size: 1.6rem;
  }
  
  .hero p {
    font-size: 0.9rem;
  }
  
  /* Service cards */
  .service-card {
    padding: 20px 15px;
  }
  
  .service-icon {
    font-size: 2.5rem;
  }
  
  .service-card h3 {
    font-size: 1.1rem;
  }
  
  .service-card p {
    font-size: 0.85rem;
  }
  
  /* Location tags plus petits */
  .location-tag {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
  
  /* Section titles */
  .section-title {
    font-size: 1.5rem;
  }
  
  /* FAQ compact */
  .faq-question {
    font-size: 0.9rem;
  }
  
  .faq-answer p {
    font-size: 0.85rem;
  }
  
  /* Footer compact */
  footer {
    padding: 30px 15px;
  }
  
  .footer-content h3 {
    font-size: 1.1rem;
  }
  
  .footer-content p,
  .footer-content li {
    font-size: 0.85rem;
  }
  
  /* Buttons plus grands pour le touch */
  .btn {
    padding: 16px 20px;
    font-size: 1rem;
    min-height: 48px; /* Taille minimale recommandée pour le touch */
  }
  
  /* Contact cards */
  .contact-card {
    padding: 20px 15px;
  }
  
  .contact-card h3 {
    font-size: 1.1rem;
  }
  
  /* Pricing cards si présent */
  .pricing-card {
    padding: 20px 15px;
  }
  
  .pricing-card-price {
    font-size: 1.8rem;
  }
}

/* Optimisation des images mobiles */
@media screen and (max-width: 768px) {
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  .about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  
  /* Hero background responsive */
  .hero {
    background-size: cover;
    background-position: center;
  }
}

/* Amélioration du touch sur mobile */
@media (hover: none) and (pointer: coarse) {
  
  /* Augmente la zone de touch */
  a, button, .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Supprime les effets hover sur mobile */
  .btn:hover,
  .service-card:hover,
  a:hover {
    transform: none;
  }
  
  /* Active state pour feedback visuel */
  .btn:active {
    transform: scale(0.98);
    opacity: 0.9;
  }
}

/* Orientation paysage mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
  
  .hero {
    min-height: auto;
    padding: 40px 20px;
  }
  
  nav {
    padding-top: 60px;
  }
}

/* Hamburger menu mobile */
@media screen and (max-width: 768px) {
  
  .hamburger-menu {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }
  
  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    margin: 6px 0;
    transition: 0.3s;
  }
  
  .hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }
  
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  
  /* Overlay mobile */
  .mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
  }
  
  .mobile-nav-overlay.active {
    display: block;
  }
}

/* Masque le hamburger sur desktop */
@media screen and (min-width: 769px) {
  .hamburger-menu {
    display: none;
  }
  
  .mobile-nav-overlay {
    display: none;
  }
}
