/* responsive.css - Styles responsive et adaptations mobiles */

/* Styles de base responsive */
@media (max-width: 768px) {
  /* Prévenir le défilement horizontal */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  * {
    max-width: 100%;
  }
  /* Navigation mobile */
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
  }
  
  .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    gap: 40px;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu a {
    color: white;
    font-size: 24px;
    text-decoration: none;
    padding: 20px;
    transition: color 0.3s;
  }
  
  .nav-menu a:hover {
    color: var(--accent-green);
  }
  
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    position: relative;
  }
  
  .mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-black);
    margin: 3px 0;
    transition: 0.3s;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
    background: white;
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
    background: white;
  }

  /* Hero section mobile - Optimisation pour éviter le scroll */
  .hero {
    padding: 40px 20px 40px 20px;
    text-align: center;
   
    display: flex;
    align-items: center;
    overflow: hidden;
  }
  
  .hero-grid {
    display: block;
    gap: 20px;
    width: 100%;
  }
  
  .hero-content {
    margin: 20px;
  }
  
  .hero-content h1 {
    font-size: 28px;
    margin-bottom: 16px;
    line-height: 1.2;
  }
  
  .hero-content p {
    font-size: 16px;
    margin-bottom: 20px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
  }
  
  /* Hero card mobile - hauteur adaptative */
  /* .hero-card-flip {
    height: auto;
    min-height: 280px;
    max-height: 350px;
    padding: 0;
    margin: 0;
    overflow: hidden;
  } */
  
  .hero-card {
    padding: 20px;
    min-height: 280px;
    max-height: 350px;
    overflow-y: hidden;
  }
  
  .hero-visual {
    margin-top: 0;
  }
  
  /* Optimisation des éléments de la carte hero sur mobile */
  .odoo-badge {
    margin-bottom: 12px;
    flex-direction: column;
    gap: 8px;
  }
  
  .partner-badge {
    font-size: 12px;
    padding: 4px 8px;
  }
  
  .hero-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .hero-card p {
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.4;
  }
  
  .google-reviews-widget {
    padding: 12px;
    margin-top: 12px;
  }
  
  .google-logo img {
    width: 50px;
    height: 16px;
  }
  
  .stars-container svg {
    width: 16px;
    height: 16px;
  }
  
  .reviews-text {
    font-size: 12px;
  }
  
  .rating {
    font-size: 14px;
    font-weight: bold;
  }
  
  .count {
    font-size: 11px;
  }
  
  /* Stats de la face arrière */
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
  }
  
  .stat-item {
    padding: 8px 0;
  }
  
  .stat-value {
    font-size: 20px;
  } 
  
  .stat-label {
    font-size: 12px;
  }
  
 

  /* Services grid mobile - largeur complète comme migration */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .service-card {
    padding: 40px 24px;
    min-height: 400px;
    width: 100%;
    margin: 0;
  }

  /* Trust badges - 2 par ligne sur mobile */
  .badges-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
  }

  .badge-item {
    width: 100%;

    text-align: center;
  }

  /* Process timeline mobile */
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Results grid mobile */
  .results-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Testimonials mobile */
  .testimonial-card {
    padding: 30px 20px;
  }

  /* CTA buttons mobile */
  .cta-buttons {
    flex-direction: column;
    gap: 16px;
  }
  
  .btn-cta, .btn-cta-secondary {
    padding: 16px 32px;
    font-size: 16px;
  }

  /* Footer mobile */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .footer-section h4 {
    margin-bottom: 20px;
  }

  /* Typography mobile */
  .section-title {
    font-size: 28px;
  }
  
  .section-description {
    font-size: 16px;
  }

  /* Container mobile */
  .container {
    padding: 60px 20px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  
  /* Toutes les sections sur mobile */
  section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Grilles et flexbox sur mobile */
  .grid,
  .flex,
  .grid-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .contact-form-section{padding:0px;}

  .faq {padding:0px;}
}

/* Tablette styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-grid {
    gap: 40px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* Large screens optimizations */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
  
  .hero-title {
    font-size: 64px;
  }
  
  .section-title {
    font-size: 56px;
  }
}

/* Très petits écrans */
@media (max-width: 480px) {
  .hero {
    padding: 20px 16px 20px 16px;

  }
  
  .hero-content h1 {
    font-size: 24px;
    margin-bottom: 12px;
  }
  
  .hero-content p {
    font-size: 14px;
    margin-bottom: 16px;
  }
  
  .hero-buttons {
    gap: 8px;
    margin-bottom: 16px;
  }
  
  /* .hero-card-flip {
    min-height: 250px;
    max-height: 300px;
    overflow: hidden;
  } */
  
  .hero-card {
    padding: 16px;
    /* min-height: 250px;
    max-height: 300px; */
    overflow-y: hidden;
  }
  
  .hero-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .hero-card p {
    font-size: 13px;
    margin-bottom: 10px;
  }
  
  .google-reviews-widget {
    padding: 8px;
    margin-top: 8px;
  }
  
  .odoo-badge {
    margin-bottom: 8px;
  }
  
  .partner-badge {
    font-size: 10px;
    padding: 3px 6px;
  }
  
  .service-card,
  .result-card,
  .testimonial-card {
    padding: 20px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 12px 24px;
    font-size: 14px;
  }
}
