/* =============================================
   PAGE 4 — responsive4.css
   Responsive pour la page Métiers
   ============================================= */

/* =============================================
   <= 1440px
   ============================================= */
@media (max-width: 1440px) {
  .approche-section,
  .support-section,
  .sales-section,
  .tableau-section,
  .diff-section {
    width: 100%;
    max-width: 100%;
  }
}

/* =============================================
   TABLETTE (max 1024px)
   ============================================= */
@media (max-width: 1024px) {

  /* ---- Header ---- */
  .nav { display: none !important; }
  .header-cta .btn-outline-dark,
  .header-cta .btn-dark { display: none !important; }
  .hamburger { display: flex !important; }

  /* ---- Hero ---- */
  .hero-content { flex-direction: column; padding: 40px 24px 48px; gap: 40px; }
  .p2-title { width: 100%; font-size: 48px; }
  .p2-desc { width: 100%; }
  .p2-photo-wrap { width: 100%; height: 360px; }
  .p2-photo { width: 100%; height: 100%; }

  /* ---- Approche ---- */
  .approche-section { padding: 60px 32px; }
  .approche-cards { flex-wrap: wrap; justify-content: center; gap: 20px; }
  .approche-card { width: calc(50% - 10px); }

  /* ---- Support ---- */
  .support-section { flex-direction: column-reverse; padding: 40px 32px; gap: 40px; }
  .support-left { width: 100%; }
  .support-photo { width: 100%; height: 320px; }
  .support-livrable-box { position: static !important; bottom: auto !important; left: auto !important; right: auto !important; width: 100% !important; height: auto !important; margin-top: 16px; }
  .support-right { width: 100%; }

  /* ---- Sales ---- */
  .sales-section { flex-direction: column; padding: 40px 32px; gap: 40px; }
  .sales-left { width: 100%; }
  .sales-right { position: static !important; width: 100%; display: flex; flex-direction: column; gap: 0; }
  .sales-photo { width: 100%; height: 320px; }
  .sales-livrable-box { position: static !important; bottom: auto !important; left: auto !important; right: auto !important; width: 100% !important; height: auto !important; margin-top: 16px; }

  /* ---- Tableau ---- */
  .tableau-section { padding: 60px 32px; }
  .tableau-box { overflow-x: auto; }

  /* ---- Diff ---- */
  .diff-section { padding: 60px 32px; }
  .diff-grid { flex-wrap: wrap; justify-content: center; }
  .diff-card { width: calc(33% - 16px); }
}

/* =============================================
   MOBILE (max 768px)
   ============================================= */
@media (max-width: 768px) {

  /* ---- Header ---- */
  .header-inner { height: auto; padding: 12px 16px; flex-wrap: nowrap; justify-content: space-between; align-items: center; }
  .nav { display: none !important; }
  .header-cta .btn-outline-dark, .header-cta .btn-dark { display: none !important; }
  .header-contact { font-size: 14px; }
  .hamburger { display: flex !important; margin-left: auto; }

  /* ---- Hero ---- */
  .p2-title { font-size: 34px; }
  .p2-label { font-size: 16px; }
  .p2-desc { font-size: 15px; }
  .hero-buttons { flex-direction: column; gap: 12px; }
  .btn-cyan, .btn-outline-cyan { width: 100%; height: 54px; justify-content: center; }
  .p2-photo-wrap { height: 240px; }

  /* ---- Approche ---- */
  .approche-section { padding: 48px 20px; gap: 24px; }
  .approche-title { font-size: 26px; }
  .approche-desc { font-size: 15px; }
  .approche-cards { flex-direction: column; gap: 16px; }
  .approche-card { width: 100%; padding: 24px 20px; }
  .approche-card-title { font-size: 18px; }
  .approche-card-text { font-size: 15px; }

  /* ---- Support ---- */
  .support-section { flex-direction: column-reverse; padding: 40px 20px; gap: 28px; }
  .support-left { width: 100%; }
  .support-photo { width: 100%; height: 240px; border-radius: 14px; }
  .support-livrable-box {
    position: static !important;
    bottom: auto !important; left: auto !important; right: auto !important;
    width: 100% !important; height: auto !important;
    margin-top: 12px; padding: 20px 16px;
    border-radius: 12px; box-shadow: 0 0 30px 0 rgba(0,0,0,0.07);
  }
  .support-livrable-title { font-size: 16px; margin-left: 0; }
  .support-livrable-list { margin-left: 0; }
  .support-right { width: 100%; }
  .support-title { font-size: 24px; width: 100% !important; white-space: normal; overflow-wrap: break-word; }
  .support-acc-title { font-size: 15px; }
  .support-acc-list li span { font-size: 14px; }

  /* ---- Sales ---- */
  .sales-section { flex-direction: column; padding: 40px 20px; gap: 28px; }
  .sales-left { width: 100%; }
  .sales-title { font-size: 24px; width: 100% !important; white-space: normal; overflow-wrap: break-word; }
  .sales-right {
    position: static !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .sales-photo { width: 100%; height: 240px; border-radius: 14px; }
  .sales-livrable-box {
    position: static !important;
    bottom: auto !important; left: auto !important; right: auto !important;
    width: 100% !important; height: auto !important;
    margin-top: 12px; padding: 20px 16px;
    border-radius: 12px; box-shadow: 0 0 30px 0 rgba(0,0,0,0.07);
  }
  .sales-livrable-title { font-size: 16px; margin-left: 0; }
  .sales-livrable-list { margin-left: 0; }
  .sales-acc-title { font-size: 15px; }
  .sales-acc-list li span { font-size: 14px; }

  /* ---- Tableau ---- */
  .tableau-section { padding: 48px 20px; gap: 20px; }
  .tableau-title { font-size: 22px; width: 100%; text-align: center; }
  .tableau-subtitle { font-size: 14px; text-align: center; }
  .tableau-box {
    width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
    border-radius: 12px; border: 1px solid #E2E8F0;
  }
  .tableau { min-width: 500px; width: 100%; border-collapse: collapse; }
  .tableau-head-row { background: #F5F5F5; }
  .tableau-th { font-size: 11px; padding: 10px 8px; text-align: center; white-space: nowrap; border-bottom: 1px solid #E2E8F0; }
  .tableau-th:first-child { text-align: left; padding-left: 12px; }
  .tableau-row { border-bottom: 1px solid #F0F0F0; }
  .tableau-row--last { border-bottom: none; }
  .tableau-metier { font-size: 12px; font-weight: 600; padding: 10px 8px 10px 12px; white-space: nowrap; }
  .tableau-cell { padding: 10px 8px; text-align: center; vertical-align: middle; }
  .tableau-cell svg { width: 18px; height: 18px; }
  .tableau-dash { font-size: 14px; color: #ccc; }

  /* ---- Diff ---- */
  .diff-section { padding: 48px 20px; gap: 24px; }
  .diff-title { font-size: 22px; width: 100%; text-align: center; }
  .diff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; width: 100%; }
  .diff-card {
    width: 100%; height: auto; min-height: 120px; padding: 20px 16px; gap: 12px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    border-radius: 12px; box-shadow: 0 0 40px 0 rgba(0,0,0,0.06);
  }
  .diff-card svg { width: 40px; height: 40px; flex-shrink: 0; }
  .diff-card-text { font-size: 13px; font-weight: 600; line-height: 1.3; }

  /* ---- Contact ---- */
  .contact-section { height: auto !important; }
  .contact-inner { flex-direction: column; padding: 40px 20px; gap: 32px; }
  .contact-title { font-size: 36px; width: 100%; }
  .contact-subtitle { font-size: 20px; }
  .contact-desc { font-size: 15px; width: 100%; }
  .contact-btn-call { width: 100%; justify-content: center; }
  .contact-form-box { width: 100%; height: auto; padding: 28px 20px; }
  .contact-form-title { font-size: 22px; }
  .contact-sep { width: 100% !important; }
  .contact-btn-send { width: 100%; justify-content: center; }
}

/* =============================================
   PETIT MOBILE (max 480px)
   ============================================= */
@media (max-width: 480px) {

  .p2-title { font-size: 28px; }
  .approche-title, .support-title, .sales-title,
  .tableau-title, .diff-title { font-size: 20px; }
  .contact-title { font-size: 28px; }

  .approche-card { padding: 20px 16px; }
  .support-photo, .sales-photo { height: 200px; }

  .tableau { min-width: 420px; }
  .tableau-th { font-size: 10px; padding: 8px 6px; }
  .tableau-metier { font-size: 11px; padding: 8px 6px 8px 10px; }
  .tableau-cell { padding: 8px 6px; }
  .tableau-cell svg { width: 16px; height: 16px; }

  .diff-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .diff-card { padding: 16px 12px; min-height: 100px; }
  .diff-card svg { width: 32px; height: 32px; }
  .diff-card-text { font-size: 12px; }
}