/* ==========================================================================
   Jadore - Layout
   Header, navigation, mobile menu, language switcher, footer
   ========================================================================== */

/* --- Header / Navigation --- */
.header {
  padding: 20px 0;
  position: relative;
  z-index: 100;
}

.nav {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: relative;
  min-height: 121px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 48px;
  flex: 1;
}

.nav__links--right {
  justify-content: flex-end;
}

.nav__link {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.4;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.nav__link:hover {
  opacity: 0.7;
}

.nav__link--active {
  color: var(--color-accent);
}

.nav__phone {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-style: dotted;
  line-height: 1.2;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.nav__phone:hover {
  opacity: 0.7;
}

.nav__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.nav__logo img {
  width: 78px;
  height: 121px;
}

/* --- Hamburger Button (hidden on desktop) --- */
.nav__burger {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 201;
}

.nav__burger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__burger--open .nav__burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav__burger--open .nav__burger-line:nth-child(2) {
  opacity: 0;
}

.nav__burger--open .nav__burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Mobile Menu Overlay (hidden on desktop) --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu--open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 32px;
  padding: 80px 20px 40px;
}

.mobile-menu__link {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-primary);
  transition: color 0.2s ease;
}

.mobile-menu__link:hover {
  color: var(--color-accent);
}

.mobile-menu__phone {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-style: dotted;
  margin-top: 16px;
}

/* ==========================================================================
   Language Switcher (Dropdown)
   ========================================================================== */

.nav > .lang-switcher {
  margin-left: 24px;
}

/* Dropdown wrapper */
.lang-switcher {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

/* Trigger button */
.lang-switcher__trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 10px;
  background: transparent;
  border: 1.5px solid var(--color-primary);
  border-radius: 4px;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  line-height: 1;
  white-space: nowrap;
}

.lang-switcher__trigger:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.lang-switcher__chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.lang-switcher--open .lang-switcher__chevron {
  transform: rotate(180deg);
}

/* Dropdown menu */
.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--color-white);
  border: 1.5px solid var(--color-primary);
  border-radius: 4px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 300;
  min-width: 100%;
}

.lang-switcher--open .lang-switcher__menu {
  display: flex;
}

.lang-switcher__btn {
  display: block;
  width: 100%;
  padding: 7px 12px;
  background: transparent;
  border: none;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  text-align: center;
  line-height: 1;
}

.lang-switcher__btn:hover,
.lang-switcher__btn.is-active {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Mobile menu lang switcher — keep flat row layout */
.mobile-menu__lang {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.mobile-menu__lang .lang-switcher {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--color-primary);
  border-radius: 4px;
  overflow: hidden;
  position: static;
}

.mobile-menu__lang .lang-switcher__btn {
  width: 52px;
  height: 42px;
  font-size: 14px;
  padding: 0;
}

.mobile-menu__lang .lang-switcher__btn + .lang-switcher__btn {
  border-left: 1.5px solid var(--color-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--color-bg);
  color: var(--color-primary);
  padding: 60px 20px 32px;
}

.footer__inner {
  max-width: var(--container-width);
  margin: 0 auto;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(109, 56, 55, 0.15);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__logo {
}

.footer__tagline {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-primary);
  opacity: 0.7;
  max-width: 220px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.footer__link {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-primary);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

a.footer__link:hover {
  opacity: 1;
}

.footer__link--static {
  cursor: default;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
}

.footer__copy {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-primary);
  opacity: 0.5;
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-primary);
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.footer__legal-link:hover {
  opacity: 0.8;
}

.footer__credit-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-primary);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.footer__credit-link:hover {
  opacity: 1;
}

/* ==========================================================================
   Decorative Divider (shared across pages)
   ========================================================================== */
.exp-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: var(--container-width);
  margin: 48px auto;
  padding: 0 100px;
}

.exp-divider::before,
.exp-divider::after {
  content: '';
  flex: 1;
  height: 1px;
}

.exp-divider::before {
  background: linear-gradient(to right, transparent, rgba(201, 68, 108, 0.3));
}

.exp-divider::after {
  background: linear-gradient(to left, transparent, rgba(201, 68, 108, 0.3));
}

.exp-divider__ornament {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  transform: rotate(45deg);
  flex-shrink: 0;
  opacity: 0.45;
}

/* ==========================================================================
   Layout Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .header {
    padding: 16px 0;
  }

  .nav__links {
    gap: 24px;
  }

  .nav__links--right .nav__link {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .nav > .lang-switcher {
    margin-left: auto;
    margin-right: 12px;
  }
}

/* Progressive hiding — Phone number */
@media (max-width: 710px) {
  .nav__phone {
    display: none;
  }
}

/* Progressive hiding — Services */
@media (max-width: 680px) {
  .nav__links--left .nav__link:nth-child(3) {
    display: none;
  }
}

/* Progressive hiding — Tarifs */
@media (max-width: 620px) {
  .nav__links--left .nav__link:nth-child(2) {
    display: none;
  }
}

@media (max-width: 768px) {
  .exp-divider {
    padding: 0 40px;
    margin: 36px auto;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .exp-divider {
    padding: 0 20px;
    margin: 28px auto;
  }

  .nav__logo {
    position: static;
    transform: none;
    order: -1;
    flex-shrink: 0;
  }

  .nav__logo img {
    width: auto;
    height: 60px;
  }

  .nav__links {
    flex: none;
    gap: 16px;
  }

  .nav > .lang-switcher {
    margin-left: auto;
    margin-right: 12px;
  }

  .footer {
    padding: 40px 20px 24px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__tagline {
    font-size: 14px;
  }

  .footer__col-title {
    font-size: 13px;
  }

  .footer__link {
    font-size: 14px;
  }

  .footer__bottom {
    padding-top: 20px;
  }

  .footer__copy {
    font-size: 13px;
  }

  .footer__legal-link {
    font-size: 13px;
  }
}
