/* ==========================================================================
   Layout — Navigation & Footer — mobile-first
   ========================================================================== */

:root {
  --nav-height: 73px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.lpc-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--t-base), box-shadow var(--t-base);
}

.lpc-nav--scrolled {
  background: rgba(250, 247, 242, .95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.lpc-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 24px;
  transition: padding var(--t-base);
}

/* Logo */
.lpc-nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.lpc-nav__logo img {
  height: 40px;
  width: auto;
}

.lpc-nav__logo-text {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: .02em;
}

/* Liens desktop */
.lpc-nav__links {
  display: none;
}

.lpc-nav__menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.lpc-nav__menu li a {
  position: relative;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text);
  padding-bottom: 2px;
}

.lpc-nav__menu li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}

.lpc-nav__menu li a:hover::after,
.lpc-nav__menu li.current-menu-item a::after,
.lpc-nav__menu li.current_page_item a::after {
  transform: scaleX(1);
}

/* Actions (panier + burger) */
.lpc-nav__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lpc-nav__cart {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--text);
  transition: color var(--t-fast);
}

.lpc-nav__cart:hover {
  color: var(--primary);
}

.lpc-nav__cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg3);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Burger */
.lpc-nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.lpc-nav__burger-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--t-base), opacity var(--t-base);
  transform-origin: center;
}

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

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

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

/* Nav mobile */
.lpc-nav__mobile {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding-block: 24px;
}

.lpc-nav__mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lpc-nav__mobile-menu li a {
  display: block;
  padding: 14px 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color var(--t-fast);
}

.lpc-nav__mobile-menu li:last-child a {
  border-bottom: none;
}

.lpc-nav__mobile-menu li a:hover {
  color: var(--primary);
}

/* Offset contenu sous la nav fixe */
body {
  padding-top: var(--nav-height);
}

/* Empêche le scroll quand le menu mobile est ouvert */
body.lpc-nav-open {
  overflow: hidden;
}

/* ==========================================================================
   Desktop (≥ 901px)
   ========================================================================== */

@media (min-width: 901px) {
  .lpc-nav__links {
    display: flex;
    flex: 1;
    justify-content: center;
  }

  .lpc-nav__burger {
    display: none;
  }

  .lpc-nav__mobile {
    display: none !important;
  }

  .lpc-nav__inner {
    height: auto;
    padding-block: 20px;
  }

  .lpc-nav--scrolled .lpc-nav__inner {
    padding-block: 14px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.lpc-footer {
  background: var(--bg3);
  color: var(--white);
}

.lpc-footer__top {
  padding-block: var(--section-py-mobile);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Brand */
.lpc-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lpc-footer__logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.lpc-footer__logo-text {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: .02em;
}

.lpc-footer__description {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 253, 249, .6);
  max-width: 300px;
}

.lpc-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lpc-footer__social-link {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  padding: 8px 16px;
  border: 1px solid rgba(201, 169, 110, .35);
  transition: background var(--t-fast), color var(--t-fast);
}

.lpc-footer__social-link:hover {
  background: var(--accent);
  color: var(--bg3);
}

/* Grille colonnes */
.lpc-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 24px;
}

.lpc-footer__col-title {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: 16px;
}

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

.lpc-footer__menu li a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 253, 249, .4);
  transition: color var(--t-fast);
}

.lpc-footer__menu li a:hover {
  color: var(--white);
}

/* Barre copyright */
.lpc-footer__bottom {
  border-top: 1px solid rgba(255, 253, 249, .1);
  padding-block: 20px;
}

.lpc-footer__copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 253, 249, .4);
}

.lpc-footer__copyright a {
  color: rgba(255, 253, 249, .4);
  transition: color var(--t-fast);
}

.lpc-footer__copyright a:hover {
  color: var(--white);
}

/* ==========================================================================
   Desktop footer (≥ 901px)
   ========================================================================== */

@media (min-width: 901px) {
  .lpc-footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    align-items: flex-start;
    padding-block: var(--section-py-desktop);
    gap: 0 60px;
  }
}
