/* nav */

.site-header {
  background: #ffff;
  position: sticky;
  top: 0;
  z-index: 99;
  padding: 25px 70px;
}

.site-header-bar {
  display: flex;
  gap: 70px;
  align-items: center;
}

.site-header-bar .site-logo {
  width: 95px;
  display: inline-flex;
  align-items: center;
}

.site-header-bar .site-logo svg {
  width: 100%;
}

.site-header .content-right {
  display: none;
}

.site-header-bar .site-nav {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  flex-grow: 1;
  align-items: center;
}
.site-header-bar .site-nav .nav {
  list-style: none;
  display: inline-flex;
  gap: 45px;
}

.site-header-bar .site-nav .nav li a {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
  padding: 5px 0;
  position: relative;
}

.site-header-bar .site-nav .nav li a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  transition: all 0.3s ease-in;
  background: #0e0b0b;
}

.site-header-bar .site-nav .nav li a:hover:after,
.site-header-bar .site-nav .nav li a.is-active:after,
.site-header-bar .site-nav .nav li.active a:after {
  width: 26px;
}

.site-header-bar .site-nav .nav li a.is-active,
.site-header-bar .site-nav .nav li.active a {
  font-weight: 600;
}
.site-header-actions .icon-lng {
  display: inline-flex;
  width: 35px;
  align-items: center;
}
.site-header-actions .icon-lng svg {
  width: 100%;
  height: 100%;
}

/* megapanel */

.megapanel-wrap {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 21px 0;
  background-color: #0e0b0b99;
  min-height: 100vh;
}

.megapanel-wrap.is-active {
  display: block;
}

.megapanel {
  display: none;
}

.megapanel.is-active {
  display: block;
  animation: megapanel-in 0.18s ease;
}

@keyframes megapanel-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.megapanel-card {
  background: #fff;
  border-radius: 20px;
  box-shadow:
    0 30px 60px -10px rgba(14, 11, 11, 0.18),
    0 10px 24px rgba(14, 11, 11, 0.08);
  padding: 37px 26px;
  max-width: 1290px;
}

.megapanel-grid {
  display: grid;
  grid-template-columns: 50% 1fr;
  gap: 48px;
  position: relative;
}

.megapanel-grid:not(.credit-layout):after {
  content: "";
  position: absolute;
  left: 48px;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 1px;
  background: #f1f1f1;
}

.megapanel-grid.credit-layout {
  grid-template-columns: 340px 1fr;
}

.megapanel-grid.credit-layout .credit-side {
  border-right: 1px solid #f1f1f1;
}

.megapanel-grid.credit-layout .credit-side-innerContent {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
}

.megapanel-grid.credit-layout .credit-side-icon {
  width: 76px;
  height: 76px;
}

.megapanel-icon,
.megapanel-icon svg {
  width: 100%;
  height: 100%;
}

.megapanel-col .titre-h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 2.223;
  margin-bottom: 20px;
}

.megapanel-col .desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.786;
  color: #0e0b0b;
  margin-bottom: 30px;
}

.megapanel-cta,
.megapanel-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  line-height: 22px;
  font-weight: 600;
  border-radius: 9px;
  padding: 29px 31px;
  min-height: 80px;
}

.megapanel-cta {
  background: #0e0b0b;
  color: #fff;
}

.megapanel-cta svg,
.megapanel-link svg {
  transition: transform 0.2s ease;
  width: 18px;
  height: 18px;
}

.megapanel-cta:hover svg,
.megapanel-link:hover svg {
  transform: translateX(3px);
}

.megapanel-cta:hover {
  background: #2b2626;
}

.megapanel-link {
  color: #0e0b0b;
}

.megapanel-checklist {
  list-style: none;
}

.megapanel-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 25px;
  font-weight: 300;
}

.megapanel-checklist li em {
  font-family: Wingdings, Arial;
}

.megapanel-checklist svg {
  flex-shrink: 0;
  background: #0e0b0b;
  color: #fff;
  border-radius: 50%;
  padding: 3px;
  box-sizing: content-box;
}

.megapanel-links-list {
  list-style: none;
  padding: 0 25px;
  background: #fcfcfc;
}

.megapanel-links-list li {
  display: flex;
  gap: 28px;
  align-items: center;
}

.megapanel-links-list li .item-icon {
  width: 26px;
  height: 26px;
}

.megapanel-links-list li:not(:last-of-type) {
  border-bottom: 2px solid #f0eeec;
}

.megapanel-links-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 10px;
  border-radius: 10px;
  font-size: 18px;
  line-height: 23px;
  font-weight: 500;
  padding: 25px 0;
}

.megapanel-links-list li a:hover .row-label {
  transform: translateX(-3px);
}

.megapanel-links-list .row-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 21px;
  height: 21px;
  transition: transform 0.2s ease;
}

.megapanel-stats-row {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f0eeec;
}

.megapanel-stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  position: relative;
}

.megapanel-stat svg {
  width: 26px;
  height: 26px;
}
.megapanel-stat:not(:last-of-type)::after {
  content: "";
  position: absolute;
  top: 0;
  right: -15px;
  width: 2px;
  height: 100%;
  background: #f0eeec;
}

.credit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 32px;
}

.credit-icon {
  display: inline-flex;
  color: #0e0b0b;
}
.credit-grid-item {
  display: flex;
  gap: 10px;
}
.credit-grid-item .credit-grid-item-icon {
  flex: 0 0 32px;
}
.credit-grid-item .titre-h4 {
  font-size: 18px;
  line-height: 1.122;
  font-weight: 500;
  margin-bottom: 5px;
}
.credit-grid-item p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  color: #726d6a;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

.lang-switch {
  position: relative;
}

.lang-switch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font: inherit;
  font-weight: 500;
  color: inherit;
  cursor: pointer;
  padding: 5px 0;
}

.lang-switch-menu {
  list-style: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 50px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(14, 11, 11, 0.12);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
  z-index: 20;
}

.lang-switch.is-active .lang-switch-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switch-menu a {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
}

.lang-switch-menu a:hover {
  background: #f4f2f2;
}

.lang-switch-menu a.is-active {
  font-weight: 600;
}
.megapanel[data-panel="a-propos"] .megapanel-card,
.megapanel[data-panel="aide"] .megapanel-card {
  max-width: 860px;
}

.megapanel[data-panel="rachat-de-credit"] .megapanel-card {
  max-width: 985px;
}

.megapanel-col.about-side .megapanel-link {
  padding-left: 0;
}

.megapanel-col.about-side,
.megapanel-col.aide-side,
.megapanel-col.rachat-de-credit {
  display: flex;
  gap: 16px;
  align-items: start;
}

.megapanel-col.rachat-de-credit.last {
  flex-wrap: wrap;
}

.megapanel-col.about-side .megapanel-icon,
.megapanel-col.aide-side .megapanel-icon,
.megapanel-col.rachat-de-credit .megapanel-icon {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
}

.megapanel-col.rachat-de-credit .megapanel-content {
  display: flex;
  gap: 16px;
}

.megapanel-col.about-side .megapanel-col-about-content .megapanel-photo img {
  width: 100%;
  display: block;
}

.megapanel-stats-row {
  flex-grow: 1;
  margin: 0;
}

.site-footer .lang-switch-menu {
  top: auto;
  bottom: calc(100% + 10px);
}

@media screen and (max-width: 767px) {
  .site-header {
    padding: 23px 20px;
  }
  .site-header .content-logo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .site-header .content-right {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .site-header .content-right .icon-menu {
    display: inline-flex;
    width: 23px;
    height: 20px;
  }
  .site-header .content-logo .toggle-menu {
    width: 20px;
    display: flex;
    gap: 5px;
    flex-direction: column;
    cursor: pointer;
  }

  .site-header .content-logo .toggle-menu:before {
    content: "";
    width: 18px;
    height: 2px;
    background-color: #0e0b0b;
  }

  .site-header .content-logo .toggle-menu:after {
    content: "";
    width: 18px;
    height: 2px;
    background-color: #0e0b0b;
  }

  .site-header-bar .site-logo {
    width: 70px;
  }

  /* Le dessin du logo touche le bord bas de son viewBox : sans débordement, le bas des lettres rondes est rogné. */
  .site-header .site-logo svg {
    overflow: visible;
  }
  .site-header-bar .site-nav {
    display: none;
  }

  .site-header .content-logo .toggle-menu {
    background: none;
    border: 0;
    box-sizing: content-box;
    margin: -10px;
    padding: 10px;
  }

  .megapanel-wrap {
    display: none !important;
  }
}

/* mobile nav */

.mobile-nav {
  display: none;
}

@media screen and (max-width: 767px) {
  html.mobile-nav-open {
    overflow: hidden;
  }

  .mobile-nav:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 100;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    padding: 0 22px 40px;
  }

  .mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 23px 0 47px;
  }

  .mobile-nav-head .site-logo {
    display: inline-flex;
    width: 70px;
    margin-left: -2px;
  }

  .mobile-nav-head .site-logo svg {
    width: 100%;
  }

  .mobile-nav-close {
    display: inline-flex;
    background: none;
    border: 0;
    padding: 10px;
    margin: -10px -3px -10px -10px;
  }

  .mobile-nav-close img {
    width: 20px;
    height: 22px;
  }

  .mobile-nav-list {
    list-style: none;
    border-bottom: 1px solid #e4e4e4;
  }

  .mobile-nav-item {
    border-top: 1px solid #e4e4e4;
  }

  .mobile-nav-item.is-open {
    border-top-color: transparent;
  }

  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 87px;
    padding: 0 7px;
    background: none;
    border: 0;
    border-radius: 5px;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    text-align: left;
    color: var(--akelo-black);
  }

  .mobile-nav-item.is-open .mobile-nav-toggle {
    background: #eceff5;
    margin: 0 -7px;
    padding: 0 14px;
    width: calc(100% + 14px);
  }

  .mobile-nav-chevron {
    width: 20px;
    height: 13px;
    transition: transform 0.2s ease;
  }

  .mobile-nav-item.is-open .mobile-nav-chevron {
    transform: rotate(180deg);
  }

  .mobile-nav-sub {
    list-style: none;
    padding: 12px 7px 30px;
  }

  .mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 23px;
    min-height: 88px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
  }

  .mobile-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    height: 36px;
  }

  .mobile-nav-icon img,
  .mobile-nav-icon svg {
    width: 33px;
    max-height: 36px;
  }

  .mobile-nav-more a {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 60px;
    margin-left: 59px;
    font-size: 16px;
    font-weight: 400;
  }

  .mobile-nav-more svg {
    width: 16px;
    height: 16px;
  }

  .mobile-nav-lang {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 40px 7px 0;
  }

  .mobile-nav-lang > img {
    width: 25px;
    height: 25px;
  }

  .mobile-nav-lang .lang-switch-toggle {
    font-size: 22px;
    font-weight: 300;
    gap: 10px;
  }

  .mobile-nav-lang .lang-switch-toggle svg {
    width: 18px;
    height: 18px;
  }

  .mobile-nav-lang .lang-switch-menu {
    left: 0;
    right: auto;
  }
}
