/* Responsive CSS pour le site Meat First */

/* Règles globales de typographie responsive */
html {
  font-size: 16px;
}

/* Grands écrans */
@media (min-width: 1200px) {
  .hero-content h1 {
    font-size: 3.5em;
    line-height: 1.2;
  }
  
  h2, .section-title {
    font-size: 2.2em;
  }
  
  p {
    font-size: 1.1em;
    line-height: 1.6;
  }
}

/* Écrans moyens (tablettes) */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  .hero-content h1 {
    font-size: 3em;
    line-height: 1.2;
  }
  
  h2, .section-title {
    font-size: 2em;
  }
  
  p {
    font-size: 1em;
    line-height: 1.5;
  }
  
  /* Ajustements pour les sections accueil */
  .hero-content {
    width: 90%;
    max-width: 700px;
  }
}

/* Petits écrans (smartphones) */
@media (max-width: 68px) {
  html {
    font-size: 14px;
  }
  
  body {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .hero-content h1 {
    font-size: 2.2em;
    line-height: 1.2;
    padding: 0 15px;
  }
  
  h2, .section-title {
    font-size: 1.8em;
  }
  
  p {
    font-size: 1em;
    line-height: 1.5;
  }
  
  /* Ajustements pour les sections */
  .services-grid, .products-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  /* Réinitialiser toute la structure de navigation */
  .top-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 60px !important;
    max-height: 60px !important;
    min-height: 60px !important;
    background-color: #181818 !important;
    z-index: 1000 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
    overflow: visible !important;
  }
  
  /* Cacher le menu principal */
  .main-nav, .meatfirst-menu {
    display: none !important;
  }
  
  /* Logo qui dépasse de la barre */
  .logo-center-container {
    position: absolute !important;
    top: 0px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    z-index: 1002 !important;
    pointer-events: all !important;
  }
  
  .logo-big {
    display: block !important;
    width: auto !important;
    height: 51px !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Bouton contact à droite - plus visible */
  .contact-btn {
    position: absolute !important;
    top: 50% !important;
    right: 15px !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    padding: 5px 12px !important;
    height: auto !important;
    min-height: 22px !important;
    font-size: 0.85em !important;
    line-height: 1.2 !important;
    z-index: 1001 !important;
    white-space: nowrap !important;
    background-color: #ffb82e !important;
    color: #000 !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    max-width: 120px !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* Bouton burger à gauche, en haut */
  .burger-btn {
    position: fixed !important;
    top: 20px !important;
    left: 15px !important;
    margin: 0 !important;
    z-index: 1001 !important;
    height: 22px !important;
    width: 28px !important;
    transform: none !important;
  }
  
  /* Lignes du burger */
  .burger-btn span {
    height: 3px !important;
  }
  
  /* Réinitialiser le contenu principal */
  main {
    margin-top: 60px !important;
    padding-top: 0 !important;
  }
  
  /* Ajuster le hero */
  .hero {
    margin-top: 0 !important;
    padding-top: 20px !important;
  }
}

/* Très petits écrans */
@media (max-width: 480px) {
  html {
    font-size: 13px;
  }
  
  .hero-content h1 {
    font-size: 1.8em;
    line-height: 1.2;
    padding: 0 10px;
  }
  
  h2, .section-title {
    font-size: 1.5em;
  }
  
  p {
    font-size: 0.9em;
    line-height: 1.4;
  }
  
  /* Ajustements pour les sections */
  .services-grid, .products-grid {
    grid-template-columns: 1fr;
  }
  
  /* Logo ajusté mais toujours dépassant */
  .logo-big {
    height: 45px !important;
  }
  
  /* Bouton contact encore ajusté */
  .contact-btn {
    right: 10px !important;
    padding: 4px 10px !important;
    font-size: 0.8em !important;
    min-height: 20px !important;
  }
}

/* Correctif pour le footer sur mobile - format sur 4 lignes */
@media (max-width: 600px) {
  /* S'assurer que chaque ligne du footer est bien alignée et centrée */
  .footer-address-row {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin-bottom: 8px !important;
  }
  
  .footer-address-row span {
    margin: 3px 0 !important;
    justify-content: center !important;
  }
  
  /* Espacement entre chaque ligne du footer */
  .footer-address {
    gap: 2px !important;
  }
  
  .single-btn {
    font-size: 0.6em;
    padding: 0;
    max-width: unset;
    margin-left: -10px;
    margin-right: 0;
    display: block;
  }
} 