/* =========================
   SÃ‰CURITÃ‰ GLOBALE
========================= */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* =========================
   TABLETTE & PETIT DESKTOP
========================= */
@media (max-width: 900px) {

  .tab-content-inner {
    grid-template-columns: 1fr;
  }

  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 768px) {

  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
  }

}
/* =========================
   MOBILE (iPhone & Ã©quivalent)
========================= */
@media (max-width: 650px) {

  /* Sections */
  section {
    padding: 40px 16px;
  }

  /* =========================
     HEADER DU HAUT (HORIZONTAL)
  ========================== */
  
	/* ===== HEADER TOUJOURS SUR UNE SEULE LIGNE ===== */

  .top-bar .container {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  /* LOGO : on le limite encore */
  .logo {
    flex: 0 0 auto;
  }

  .logo img {
    max-width: 70px;
  }

  /* MAIN MENU : ON LUI DONNE PLUS DE PLACE */
  .main-nav {
    flex: 1 1 auto;      /* ðŸ”¥ il prend TOUT lâ€™espace restant */
    min-width: 0;        /* ðŸ”¥ obligatoire pour le scroll */
    overflow-x: auto;
    white-space: nowrap;
  }

  .main-nav ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .main-nav a {
    font-size: 0.68rem;
    padding: 4px 6px;
  }

  /* ACTIONS : ON LES COMPRESSE */
  .header-actions {
    flex: 0 0 auto;
    gap: 4px;
  }

  .contact-link {
    font-size: 0.65rem;
  }

}

  /* =========================
     SERVICES BAR (HEADER DU BAS)
  ========================== */
  @media (max-width: 800px) {

  .services-bar {
    position: relative; /* plus de blocage */
  }

  .services-bar .container {
    overflow: visible;
  }

  .services-bar ul {
    display: flex;
    flex-wrap: wrap;   /* AUTORISE Ã€ DESCENDRE */
    justify-content: center;
    gap: 6px;
  }

  .services-bar li {
    flex: 0 1 auto;
  }

  .services-bar a {
    font-size: 0.75rem;
    padding: 6px 8px;
    white-space: normal; /* TEXTE Ã€ LA LIGNE */
    text-align: center;
  }

}


  /* =========================
     PAGE HEADER
  ========================== */
  .page-header {
    padding: 50px 16px;
    text-align: center;
  }

  .page-header h1 {
    font-size: 1.6rem;
    line-height: 1.25;
    word-break: break-word;
  }

  .page-header p {
    font-size: 1rem;
    line-height: 1.5;
  }

  /* =========================
     GALERIE
  ========================== */
  .galerie-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .projet-card {
    width: 100%;
  }

  .projet-image img {
    width: 100%;
    height: auto;
    display: block;
  }

  .projet-overlay span {
    font-size: 0.95rem;
    padding: 8px;
  }

  /* =========================
     FILTRES & PAGINATION
  ========================== */
  .filtres {
    flex-wrap: wrap;
    gap: 10px;
  }

  .filtre-btn {
    flex: 1 1 45%;
    font-size: 0.9rem;
    padding: 10px;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* =========================
     PROCESS / STEPS
  ========================== */
  .process-steps,
  .steps,
  .steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .process-step,
  .step {
    width: 100%;
    text-align: center;
  }

/* ===============================
   ZONE D'INTERVENTION - MOBILE
================================ */

@media (max-width: 768px) {

  .zone-intervention {
    text-align: center;
  }

  .zone-intervention .map-wrapper {
    display: flex;
    justify-content: center;
  }

}

@media (max-width: 500px) {

  .features-list {
    display: flex;
    flex-direction: column;
    align-items: center;   /* centre horizontalement */
    gap: 14px;
  }

  .feature-item {
    width: 100%;
    justify-content: center; /* centre icône + texte */
    text-align: center;
  }

}

@media (max-width: 900px) {
  .tailles-table table {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .tailles-table table {
    font-size: 14px;
  }

  .tailles-table th,
  .tailles-table td {
    padding: 10px;
  }
}

@media (max-width: 600px) {
  .tailles-table table {
    font-size: 13px;
  }

  .tailles-table th,
  .tailles-table td {
    padding: 8px;
  }
}

@media (max-width: 530px) {
  .tailles-table table {
    font-size: 12px;
  }

  .tailles-table th,
  .tailles-table td {
    padding: 6px;
  }
}

@media (max-width: 768px) {

  .services-bar {
    display: none;
  }

  .mobile-services {
    display: block;
  }

}
