/* =============================================
   PAGE 12 — responsive12.css
   Responsive pour la page "Comment ça marche"
   ============================================= */

/* ---- Fix global ---- */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

* {
  box-sizing: border-box;
}

/* =============================================
   <= 1440px — Débordement large écran
   ============================================= */
@media (max-width: 1440px) {
  .hero-section,
  .section,
  .externalis-section,
  .capa-section,
  .durable-section,
  .contact-section {
    width: 100%;
    max-width: 100%;
  }
}

/* =============================================
   TABLETTE (max 1024px)
   ============================================= */
@media (max-width: 1024px) {

  /* ---- Hero ---- */
  .hero-content {
    flex-direction: column;
    padding: 40px 24px 48px;
    gap: 40px;
  }

  .title12 { font-size: 42px; }
  .p2-desc { width: 100%; }
  .p2-photo-wrap { width: 100%; height: 360px; }
  .p2-photo { width: 100%; height: 100%; object-fit: cover; }
  .p2-right { width: 100%; }

  /* ---- Sections étapes (01 → 07) ---- */
  .section {
    flex-direction: column;
    padding: 40px 32px;
    gap: 32px;
  }

  .col-left {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    width: 100%;
  }

  .vertical-line { display: none; }

  .photo {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
  }

  .col-right { width: 100%; }

  .title { font-size: 28px; }
  .subtitle { font-size: 16px; }

  .boxes-grid {
    flex-direction: column;
    gap: 16px;
  }

  .box-large,
  .box-small {
    width: 100%;
    height: auto;
  }

  .boxes-right {
    flex-direction: row;
    gap: 16px;
  }

  .boxes-right .box-small {
    flex: 1;
  }

  /* ---- Section "À quoi vous attendre" ---- */
  .externalis-section { padding: 60px 32px; }
  .externalis-section .section-title { font-size: 32px; }
  .cards-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  .card {
    width: calc(50% - 10px);
    height: auto;
  }

  /* ---- Capa ---- */
  .capa-section { padding: 60px 32px; width: 100%; }
  .capa-title { width: 100%; font-size: 32px; }
  .capa-layout {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .capa-col { width: 100%; }
  .capa-item { width: 100%; }
  .capa-photo {
    width: 100%;
    max-width: 400px;
    height: 300px;
  }

  /* ---- Durable ---- */
  .durable-section { padding: 60px 32px; }
  .durable-section .section-title { font-size: 32px; }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* ---- Contact ---- */
  .contact-section { height: auto !important; }
  .contact-inner { flex-direction: column; padding: 48px 32px; gap: 40px; }
  .contact-title { width: 100%; font-size: 42px; }
  .contact-desc { width: 100%; }
  .contact-form-box { width: 100%; height: auto; }
  .contact-sep { width: 100%; }
}

/* =============================================
   MOBILE (max 768px)
   ============================================= */
@media (max-width: 768px) {

  /* ---- Header ---- */
  .header { padding: 12px 16px 0; }
  .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 ---- */
  .hero-section { height: auto; min-height: auto; }
  .hero-content { flex-direction: column; padding: 28px 20px 40px; gap: 28px; }
  .title12 { font-size: 30px; line-height: 120%; }
  .p2-label { font-size: 13px; }
  .p2-desc { font-size: 16px; }
  .hero-buttons { flex-direction: column; gap: 12px; }
  .btn-cyan, .btn-outline-cyan { width: 100%; height: 54px; justify-content: center; }
  .p2-photo-wrap { width: 100%; height: 240px; }

  /* ---- Sections étapes ---- */
  .section {
    flex-direction: column;
    padding: 36px 20px;
    gap: 24px;
  }

  .col-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
  }

  .step-number {
    font-size: 48px;
  }

  .photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
  }

  .col-right { width: 100%; }

  .title { font-size: 24px; }
  .subtitle { font-size: 15px; }

  .boxes-grid {
    flex-direction: column;
    gap: 12px;
  }

  .box {
    width: 100%;
    height: auto;
    padding: 20px 16px;
  }

  .box-title { font-size: 12px; }
  .box-list { gap: 10px; }
  .box-list li { font-size: 14px; }

  .boxes-right {
    flex-direction: column;
    gap: 12px;
  }

  /* ---- Section "À quoi vous attendre" ---- */
  .externalis-section {
    padding: 48px 20px;
    gap: 28px;
  }
  .externalis-section .section-title {
    font-size: 26px;
    text-align: center;
  }
  .externalis-section .section-subtitle {
    font-size: 15px;
    text-align: center;
  }
  .cards-container {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .card {
    width: 100%;
    height: auto;
    padding: 24px 20px;
  }
  .card h3 { font-size: 20px; }
  .card p { font-size: 15px; }

  /* ---- Capa ---- */
  .capa-section {
    padding: 48px 20px;
    gap: 36px;
    width: 100%;
  }
  .capa-title { width: 100%; font-size: 26px; }
  .capa-layout {
    flex-direction: column;
    gap: 24px;
  }
  .capa-col { width: 100%; gap: 12px; }
  .capa-item {
    width: 100%;
    min-height: 72px;
    padding: 0 16px;
  }
  .capa-item span { font-size: 16px; }
  .capa-photo {
    width: 100%;
    max-width: 100%;
    height: 240px;
    border-radius: 16px;
  }

  /* ---- Durable ---- */
  .durable-section {
    padding: 48px 20px;
    gap: 28px;
  }
  .durable-section .section-title { font-size: 26px; }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .feature-box {
    padding: 20px 16px;
    gap: 12px;
  }
  .feature-box p { font-size: 14px; }
  .flexible-tag {
    width: 100%;
    justify-content: center;
    font-size: 15px;
  }

  /* ---- Contact ---- */
  .contact-section { height: auto !important; }
  .contact-inner { flex-direction: column; padding: 40px 20px; gap: 32px; }
  .contact-left { gap: 20px; }
  .contact-title { font-size: 32px; width: 100%; }
  .contact-subtitle { font-size: 20px; }
  .contact-desc { font-size: 15px; width: 100%; }
  .contact-btn-call { width: 100%; justify-content: center; text-align: center; }
  .contact-form-box { width: 100%; height: auto; padding: 28px 20px; }
  .contact-form-title { font-size: 20px; }
  .contact-sep { width: 100% !important; }
  .contact-btn-send { width: 100%; justify-content: center; }

  /* ---- Modal ---- */
  .modal-box { width: calc(100% - 40px); padding: 32px 24px; }
}

/* =============================================
   PETIT MOBILE (max 480px)
   ============================================= */
@media (max-width: 480px) {

  .title12 { font-size: 24px; }
  .title { font-size: 20px; }
  .subtitle { font-size: 14px; }

  .externalis-section .section-title,
  .capa-title,
  .durable-section .section-title { font-size: 22px; }

  .step-number { font-size: 36px; }

  .photo { height: 180px; }

  .features-grid { grid-template-columns: 1fr; }

  .card h3 { font-size: 18px; }

  .contact-title { font-size: 26px; }

  .btn-cyan, .btn-outline-cyan { font-size: 14px; height: 50px; }

  .p2-photo-wrap { height: 200px; }
}
