/* =============================================
   RESPONSIVE.CSS — ESPACE 3 FINANCES
   Breakpoints : 1199 | 1023 | 767 | 599 | 479
   ============================================= */

/* ── 1700px ─────────────────────────────────── */
@media only screen and (max-width: 1700px) {
  .main-header .header-lower .outer-box .ui-btn-outer {
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
  }
  .header-style-one .header-lower .logo-box { margin-right: 30px; }
  .main-menu .navigation > li { margin-right: 50px; }
}

/* ── 1439px ─────────────────────────────────── */
@media only screen and (max-width: 1439px) {
  .main-menu .navigation > li { margin-right: 30px; }
}

/* ── 1199px — Tablette large ────────────────── */
@media only screen and (max-width: 1199px) {
  .header-top { margin-left: 0; padding: 0; }
  .main-header .main-box { align-items: center; }
  .main-header .header-lower .logo-box { margin-top: 0; min-height: auto; }

  /* Titres */
  h1 { font-size: 38px !important; }
  h2 { font-size: 28px !important; }

  /* Hero */
  .hero-section .hero-content h1 { font-size: 38px; }
  .hero-section { padding: 60px 20px; }
  .hero-section .row { flex-wrap: wrap; }

  /* Feature section */
  .feature-section-3 .row { flex-wrap: wrap; }
  .loan-calculator-widget { padding: 28px; }

  /* About */
  .about-section .image-column-3 .inner-column { padding-right: 0; }

  /* Growth / stats */
  .growth-block { margin-bottom: 30px; }

  /* FAQ */
  .faq-wrapper-2 { padding: 40px 20px; }

  /* News */
  .news-box-items { margin-bottom: 30px; }

  /* Footer */
  .main-footer .footer-widget { margin-bottom: 30px; }
}

/* ── 1199px — Tablette / Menu mobile ────────── */
@media only screen and (max-width: 1199px) {
  /* Header */
  .header-top,
  .main-header .main-menu { display: none; }
  .main-header .logo { min-width: auto; }
  .main-header .logo img,
  .sticky-header .logo img { width: auto; max-width: none; max-height: 45px; }
  .mobile-nav-toggler { display: block; }
  .main-header .main-box .nav-outer { width: auto; }
  .main-header .main-box { justify-content: space-between; }

  /* Language selector sur mobile */
  .language-selector { margin-right: 10px; }

  /* Hero */
  .hero-section { padding: 50px 15px 40px; text-align: center; }
  .hero-section .hero-content h1 { font-size: 32px; }
  .hero-section .hero-image { margin-top: 30px; }
  .hero-section .col-xl-7,
  .hero-section .col-lg-6 { width: 100% !important; max-width: 100%; flex: 0 0 100%; }
  .hero-section .col-xl-5,
  .hero-section .col-lg-6:last-child { display: none; }
  .hero-section .hero-button { justify-content: center; display: flex; }

  /* Feature / Slider */
  .feature-section-3 .col-lg-7,
  .feature-section-3 .col-lg-5 { width: 100% !important; max-width: 100%; flex: 0 0 100%; }
  .loan-calculator-widget { margin-bottom: 20px; }
  .feature-box-3 { text-align: center; padding: 30px 20px; }
  .feature-box-3 .arrow-shape { display: none; }

  /* About */
  .about-section .col-lg-6 { width: 100% !important; max-width: 100%; flex: 0 0 100%; }
  .about-section .image-column-3 { margin-bottom: 40px; }

  /* Services */
  .why-choose-section-2 .col-xl-5 { display: none; }
  .why-choose-section-2 .col-xl-7 { width: 100% !important; max-width: 100%; flex: 0 0 100%; }

  /* How it works */
  .how-it-work-wrapper .row { gap: 20px 0; }

  /* Growth */
  .growth-section .col-xl-7,
  .growth-section .col-xl-3 { width: 100% !important; max-width: 100%; flex: 0 0 100%; text-align: center; }
  .growth-section .col-xl-4 { width: 33.33% !important; flex: 0 0 33.33%; }

  /* Testimonials */
  .testimonial-section-3 { padding: 40px 15px; }

  /* FAQ */
  .faq-wrapper-2 .col-xxl-8 { width: 100% !important; max-width: 100%; flex: 0 0 100%; }
  .faq-items-wrap .col-xl-5,
  .faq-items-wrap .col-lg-6 { width: 100% !important; max-width: 100%; flex: 0 0 100%; }
  .faq-content-style-3 { margin-bottom: 30px; }

  /* News */
  .news-secton .col-xl-4,
  .news-secton .col-lg-4 { width: 100% !important; max-width: 100%; flex: 0 0 100%; }

  /* Footer */
  .main-footer .footer-widget { margin-bottom: 30px; }
  .main-footer .col-xl-3,
  .main-footer .col-xl-4,
  .main-footer .col-xl-2 { width: 50% !important; max-width: 50%; flex: 0 0 50%; }
}

/* ── 767px — Mobile ─────────────────────────── */
@media only screen and (max-width: 767px) {
  /* Titres */
  h1 { font-size: 28px !important; line-height: 1.2; }
  h2 { font-size: 22px !important; }
  h3 { font-size: 18px !important; }

  /* Hero */
  .hero-section { padding: 40px 15px 30px; }
  .hero-3 { padding: 100px 15px 40px !important; }
  .hero-section .hero-content h1 { font-size: 26px; }
  .hero-section .text-item p { font-size: 14px; }
  .hero-section .hero-button .theme-btn { font-size: 14px; padding: 10px 20px; }

  /* Sections padding */
  .section-padding { padding: 50px 0; }

  /* Feature / Slider */
  .slider-container { padding: 12px; }
  .slider-value { font-size: 14px; padding: 6px 12px; }
  .widget-title { font-size: 18px !important; margin-bottom: 24px !important; }
  .cta-button { padding: 14px 28px; font-size: 16px; }

  /* About */
  .about-section .image-column-3 .image1,
  .about-section .image-column-3 .image2 { max-width: 100%; }
  .about-section .info.float-bob-x { display: none; }
  .about-section .skill-feature { margin-top: 20px; }

  /* Services */
  .choose-us-box-style-2 { padding: 20px 15px; }
  .why-choose-section-2 .col-md-6 { width: 100% !important; max-width: 100%; flex: 0 0 100%; }

  /* How it works */
  .how-it-work-items-style-3 { padding: 20px 15px; margin-bottom: 20px; }
  .how-it-work-items-style-3 .number { font-size: 36px; }
  .how-it-work-section .col-xl-3,
  .how-it-work-section .col-lg-4,
  .how-it-work-section .col-md-6 { width: 50% !important; max-width: 50%; flex: 0 0 50%; }

  /* Growth */
  .growth-section .col-xl-4 { width: 100% !important; max-width: 100%; flex: 0 0 100%; }
  .growth-block { text-align: center; padding: 20px; }

  /* Testimonials */
  .testimonial-wrapper-3 { flex-direction: column; }
  .image-box-style-3 { margin-bottom: 20px; }

  /* FAQ */
  .faq-section-2 { padding: 40px 15px; }

  /* News */
  .news-box-items { padding: 20px; }

  /* Footer */
  .main-footer .col-xl-3,
  .main-footer .col-xl-4,
  .main-footer .col-xl-2 { width: 100% !important; max-width: 100%; flex: 0 0 100%; }
  .main-footer .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  /* Formulaire demande */
  #loanForm { padding: 20px !important; border-radius: 20px !important; }
  .flex.mb-8 { margin-bottom: 24px !important; }
  .step-content h2 { font-size: 20px !important; }
  .grid-cols-2, .grid.grid-cols-2 { grid-template-columns: 1fr !important; }
  .grid.grid-cols-3 { grid-template-columns: 1fr 1fr !important; }

  /* Bouton slider */
  .main-slider .title { padding: 7px 20px; }
  .main-slider .title:before { display: none; }
}

/* ── 599px ──────────────────────────────────── */
@media only screen and (max-width: 599px) {
  .main-header .header-lower .logo-box {
    padding-left: 0;
    min-width: auto;
    margin-right: 0;
    max-width: 140px;
  }
  .main-header .header-lower .logo-box .logo img { max-width: 140px; }

  /* How it works → 1 colonne */
  .how-it-work-section .col-xl-3,
  .how-it-work-section .col-lg-4,
  .how-it-work-section .col-md-6,
  .how-it-work-section .col-sm-6 { width: 100% !important; max-width: 100%; flex: 0 0 100%; }

  /* Hero */
  .hero-section .hero-content h1 { font-size: 22px; }

  /* Formulaire */
  .grid.grid-cols-3 { grid-template-columns: 1fr !important; }
  #prevBtn, #nextBtn { padding: 10px 20px !important; font-size: 13px !important; }
  .flex.justify-between.mt-8 { flex-direction: column; gap: 10px; }
  .flex.justify-between.mt-8 button { width: 100%; }
}

/* ── 479px — Très petit mobile ──────────────── */
@media only screen and (max-width: 479px) {
  h1 { font-size: 22px !important; }
  h2 { font-size: 18px !important; }

  .section-padding { padding: 40px 0; }

  /* Header */
  .main-header .main-box { padding: 10px 12px; }

  /* Hero */
  .hero-section { padding: 30px 12px; }
  .hero-section .hero-content h1 { font-size: 20px; }
  .hero-section .theme-btn { width: 100%; text-align: center; justify-content: center; }

  /* Slider calculator */
  .loan-calculator-widget { padding: 16px; border-radius: 16px; }
  .widget-title { font-size: 16px !important; margin-bottom: 16px !important; }
  .slider-value { font-size: 12px; padding: 5px 10px; }
  .cta-button { padding: 12px 20px; font-size: 14px; width: 100%; }

  /* Feature box */
  .feature-box-3 span { font-size: 18px; }
  .feature-box-3 .theme-btn { width: 100%; text-align: center; justify-content: center; }

  /* About */
  .about-content-3 .theme-btn { width: 100%; text-align: center; justify-content: center; }
  .skill-feature .box-title { font-size: 16px; }

  /* Services */
  .choose-us-box-style-2 { padding: 16px 12px; }
  .choose-us-box-style-2 .icon { width: 40px; height: 40px; font-size: 18px; }

  /* Growth */
  .growth-block { padding: 16px; }
  .pie-graph .graph-outer { width: 90px; height: 90px; }
  .growth-block .pie-graph { height: 90px; }

  /* Testimonials */
  .testimonial-section-3 .array-button { justify-content: center; }

  /* Footer */
  .main-footer { padding: 40px 0 20px; }
  .footer-widget .widget-title { font-size: 16px; }

  /* Formulaire */
  #loanForm { padding: 14px !important; border-radius: 16px !important; }
  .step-indicator { width: 30px !important; height: 30px !important; font-size: 12px !important; }
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="date"],
  select { padding: 12px 14px !important; font-size: 15px !important; }

  /* Contacts page */
  .contact-section { padding: 40px 0; }
  .contact-details .col-6 { width: 100% !important; max-width: 100%; flex: 0 0 100%; }
}

/* ── Hero-3 z-index fix — section entière cliquable ─────────────────── */
/* style.css met z-index:-1 sur .hero-3 → tout son contenu passe derrière  */
/* la couche body et les clics ne sont pas reçus par les éléments enfants. */
.hero-3 { z-index: 0 !important; }

/* ── Desktop min-width guard (évite les règles mobiles sur grand écran) ── */
@media only screen and (min-width: 1200px) {
  .main-menu .navigation > li > ul,
  .main-menu .navigation > li > ul > li > ul {
    display: block !important;
    visibility: hidden;
    opacity: 0;
  }
}
