/* =========================================================
   COMMERZFINANZ
   RESPONSIVE.CSS
   Responsive global du site
========================================================= */


/* =========================================================
   ÉCRANS <= 1200px
========================================================= */

@media (max-width: 1200px) {

  /* Réduction légère des marges latérales */
  .cf-container {
    width: calc(100% - 40px);
  }

}


/* =========================================================
   TABLETTES LARGE
========================================================= */

@media (max-width: 1100px) {

  /* Réduction espace navigation */
  .cf-nav {
    gap: 18px;
  }

  /* Bouton plus compact */
  .cf-btn {
    padding: 0 16px;
  }

  /* Footer responsive */
  .cf-footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cf-footer-brand {
    grid-column: span 3;
  }

}


/* =========================================================
   TABLETTES
========================================================= */

@media (max-width: 991px) {

  /* -----------------------------------
     TOP BAR
  ----------------------------------- */

  .cf-topbar-inner {
    height: auto;
    min-height: 42px;
    padding: 10px 0;
  }

  .cf-topbar-right {
    display: none;
  }

  .cf-topbar-left {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    text-align: center;
  }

  /* -----------------------------------
     HEADER
  ----------------------------------- */

  .cf-navbar-inner {
    height: 76px;
  }

  .cf-logo img {
    height: 48px;
  }

  .cf-burger {
    display: block;
  }

  /* -----------------------------------
     MENU MOBILE
  ----------------------------------- */

  .cf-nav {
    position: fixed;
    top: 120px;
    left: 0;
    right: 0;

    width: 100%;

    background: var(--cf-white);

    flex-direction: column;
    align-items: stretch;

    gap: 0;

    padding: 20px;

    border-top: 1px solid var(--cf-border);

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);

    transform: translateY(-130%);
    opacity: 0;
    visibility: hidden;

    transition: all .30s ease;

    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .cf-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  /* Liens menu mobile */

  .cf-nav > a,
  .cf-menu-link {
    width: 100%;
    text-align: left;

    padding: 14px 15px;

    border-radius: 10px;
  }

  .cf-nav > a:hover,
  .cf-menu-link:hover {
    background: var(--cf-light);
    color: var(--cf-primary);
  }

  /* Sous-menu Services */

  .cf-menu-item {
    width: 100%;
  }

  .cf-submenu {
    position: static;

    width: 100%;

    opacity: 1;
    visibility: visible;

    transform: none;

    display: none;

    box-shadow: none;
    border: 0;

    padding-left: 15px;
    margin-bottom: 10px;
  }

  .cf-menu-item.open .cf-submenu {
    display: block;
  }

  /* -----------------------------------
     ACTIONS HEADER
  ----------------------------------- */

  .cf-actions {
    gap: 10px;
  }

  .nav-flag-dropdown {
    min-width: 90px;
  }

  /* -----------------------------------
     FOOTER
  ----------------------------------- */

  .cf-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }

  .cf-footer-brand {
    grid-column: span 2;
  }

  .cf-footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .cf-footer-bottom div {
    justify-content: center;
    flex-wrap: wrap;
  }

}


/* =========================================================
   SMARTPHONES
========================================================= */

@media (max-width: 640px) {

  /* -----------------------------------
     CONTAINER
  ----------------------------------- */

  .cf-container {
    width: calc(100% - 24px);
  }

  /* -----------------------------------
     TOP BAR
  ----------------------------------- */

  .cf-topbar {
    font-size: 12px;
  }

  .cf-topbar-left {
    gap: 8px;
  }

  /* -----------------------------------
     HEADER
  ----------------------------------- */

  .cf-navbar-inner {
    gap: 10px;
  }

  .cf-logo img {
    height: 42px;
  }

  .cf-actions {
    gap: 8px;
  }

  /* Cache le bouton principal */
  .cf-btn {
    display: none;
  }

  /* GTranslate */
  .nav-flag-dropdown {
    min-width: 70px;
  }

  /* Position menu mobile */
  .cf-nav {
    top: 112px;
    max-height: calc(100vh - 112px);
  }

  /* -----------------------------------
     FOOTER
  ----------------------------------- */

  .cf-footer-grid {
    grid-template-columns: 1fr;
  }

  .cf-footer-brand {
    grid-column: span 1;
  }

  .cf-footer-logo img {
    height: 50px;
  }

  /* -----------------------------------
     BOUTON RETOUR HAUT
  ----------------------------------- */

  .cf-back-top {
    width: 46px;
    height: 46px;

    right: 15px;
    bottom: 15px;

    font-size: 18px;
  }

}


/* =========================================================
   PETITS SMARTPHONES
========================================================= */

@media (max-width: 480px) {

  .cf-logo img {
    height: 38px;
  }

  .cf-navbar-inner {
    height: 70px;
  }

  .cf-nav {
    top: 106px;
  }

}

/* =========================================================
   RESPONSIVE PAGES CRÉDITS
========================================================= */

@media (max-width: 991px) {
  .cf-loan-grid {
    grid-template-columns: 1fr;
  }

  .cf-loan-image img {
    height: 420px;
  }

  .cf-faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cf-loan-grid h2 {
    font-size: 30px;
  }

  .cf-loan-image img {
    height: 320px;
  }

  .cf-faq-item {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .cf-legal-card {
    padding: 28px;
  }

  .cf-legal-card h2 {
    font-size: 28px;
  }

  .cf-legal-card h3 {
    font-size: 19px;
  }
}

/* =========================================================
   RESPONSIVE CONTACT PAGE
========================================================= */

@media (max-width: 991px) {
  .cf-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cf-contact-form-card,
  .cf-contact-info-card {
    padding: 28px;
  }

  .cf-contact-form {
    grid-template-columns: 1fr;
  }

  .cf-form-group-full {
    grid-column: span 1;
  }

  .cf-contact-form-card h2,
  .cf-contact-info-card h2 {
    font-size: 28px;
  }

  .cf-contact-map-card iframe {
    height: 330px;
  }
}

/* =========================================================
   RESPONSIVE PAGE CONFIRMATION
========================================================= */

@media (max-width: 640px) {
  .cf-confirmation-card {
    padding: 38px 26px;
  }

  .cf-confirmation-card h1 {
    font-size: 30px;
  }

  .cf-confirmation-icon {
    width: 72px;
    height: 72px;
    font-size: 34px;
  }
}

/* =========================================================
   RESPONSIVE PAGE KREDITANFRAGE
========================================================= */

@media (max-width: 768px) {
  .cf-loan-request-card {
    padding: 30px;
  }

  .cf-form-grid {
    grid-template-columns: 1fr;
  }

  .cf-form-group-full {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .cf-loan-request-card {
    padding: 24px;
  }

  .cf-form-section h2 {
    font-size: 22px;
  }
}

/* =========================================================
   RESPONSIVE KREDITANFRAGE
========================================================= */

@media (max-width: 991px) {

  .cf-loan-request-card {
    max-width: 100%;
    padding: 35px;
  }

}

@media (max-width: 768px) {

  .cf-loan-request-card {
    padding: 25px;
    border-radius: 20px;
  }

}