/* Mobile Optimizations for Afrique Rabotage
 * This file contains enhanced mobile-specific styles
 */

/* Meilleure gestion du menu mobile */
@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }
  
  .logo img {
    height: 80px;
  }
  
  .nav-menu {
    z-index: 1000;
    overflow-y: auto;
  }
  
  .nav-menu li {
    width: 100%;
    margin-bottom: 15px;
  }
  
  .nav-menu li a {
    display: block;
    padding: 12px 15px;
    width: 100%;
    text-align: left;
    border-left: 3px solid transparent;
  }
  
  .nav-menu li a:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--primary-color);
  }

  /* Amélioration du bouton hamburger */
  .mobile-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
  }
  
  .mobile-toggle span {
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
  }
  
  .mobile-toggle span::before,
  .mobile-toggle span::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
  }
  
  .mobile-toggle span::before {
    top: -8px;
  }
  
  .mobile-toggle span::after {
    bottom: -8px;
  }
}

/* Optimisations de la section Hero pour mobile */
@media (max-width: 576px) {
  .hero {
    min-height: auto;
    padding: 60px 0 40px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .btn {
    display: block;
    width: 100%;
    margin: 10px 0;
  }
}

/* Optimisations pour les sections de services */
@media (max-width: 768px) {
  .service-card {
    margin-bottom: 30px;
  }
  
  .service-icon-container {
    width: 60px;
    height: 60px;
  }
  
  .service-banner {
    height: 120px;
  }
}

/* Optimisations pour la section expertise */
@media (max-width: 768px) {
  .expertise-container {
    padding: 10px;
  }
  
  .expertise-item {
    margin-bottom: 20px;
  }
  
  .expertise-icon {
    min-width: 50px;
    margin-right: 15px;
  }
}

/* Optimisations pour la section témoignages */
@media (max-width: 576px) {
  .testimonial-text {
    padding: 15px;
    font-size: 0.9rem;
  }
  
  .testimonial-author {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .testimonial-author img {
    margin-bottom: 10px;
  }
}

/* Optimisations du formulaire de contact */
@media (max-width: 768px) {
  .contact-form form {
    padding: 20px 15px;
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  
  .contact-cta {
    flex-direction: column;
  }
  
  .contact-cta a {
    width: 100%;
    margin: 5px 0;
  }
}

/* Optimisation du footer */
@media (max-width: 576px) {
  .footer-col {
    margin-bottom: 30px;
  }
  
  .footer {
    padding-bottom: 20px;
  }
  
  .footer-logo img {
    height: 80px;
    margin: 0 auto 20px;
    display: block;
  }
}

/* Optimisations pour les boutons d'appel à l'action */
@media (max-width: 576px) {
  .btn-primary, 
  .btn-secondary {
    font-size: 0.9rem;
    padding: 10px 15px;
    width: 100%;
    margin: 5px 0;
    display: block;
    text-align: center;
  }
}

/* Optimisations des espacements généraux pour mobile */
@media (max-width: 576px) {
  section {
    padding: 40px 0;
  }
  
  h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  
  p {
    margin-bottom: 15px;
  }
  
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}
