@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Unica+One&display=swap');

/* ═══════════════════════════════════════════════════════════════
   LECISELÉ — Header premium
   Architecture : fixed, transparent → dark glass on scroll,
   drawer mobile, underline-only hover on desktop links.
═══════════════════════════════════════════════════════════════ */

:root {
  --gold:        #C6A664;
  --gold-dark:   #A88C4A;
  --gold-light:  #E8D9B0;
  --bg-dark:     #0a0a0a;
  --bg-card:     #1a1a1a;
  --border-dark: #2e2e2e;
  --text-light:  rgba(255,255,255,0.82);
  --text-muted:  rgba(255,255,255,0.45);
  --header-h:    68px;
  --drawer-w:    300px;
}

/* ── Base ──────────────────────────────────────────────────── */
.lc-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.45s ease, border-color 0.45s ease,
              backdrop-filter 0.45s ease, box-shadow 0.45s ease;
}

/* Scrolled state */
.lc-header--scrolled {
  background: rgba(10,10,10,0.88);
  border-bottom-color: rgba(198,166,100,0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 32px rgba(0,0,0,0.5);
}

/* Inner layout: logo | links | actions */
.lc-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

/* ── Logo ──────────────────────────────────────────────────── */
.lc-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.lc-logo-img {
  height: 42px;
  width: auto;
  display: block;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.lc-logo:hover .lc-logo-img {
  opacity: 0.88;
  transform: scale(1.03);
}

/* ── Desktop nav links ─────────────────────────────────────── */
.lc-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.lc-sep {
  color: var(--text-muted);
  font-size: 0.7rem;
  margin: 0 1rem;
  user-select: none;
}

.lc-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.25s ease;
  white-space: nowrap;
}

/* Thin gold underline on hover / active */
.lc-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.lc-link:hover,
.lc-link--active {
  color: #fff;
}
.lc-link:hover::after,
.lc-link--active::after {
  width: 100%;
}

/* Booking CTA link — slightly warm tint */
.lc-link--cta {
  color: var(--gold-light);
}
.lc-link--cta::after {
  background: var(--gold);
}
.lc-link--cta:hover {
  color: var(--gold);
}

/* ── Right action group ────────────────────────────────────── */
.lc-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

/* Icon buttons (profile, wishlist, cart) */
.lc-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.lc-icon-btn:hover {
  color: var(--gold);
  background: rgba(198,166,100,0.08);
}

/* Online dot on profile */
.lc-online-dot {
  position: absolute;
  bottom: 7px; right: 7px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4CAF50;
  border: 1.5px solid var(--bg-dark);
}

/* Badge (cart / wishlist count) */
.lc-badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--bg-dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}

@keyframes lc-badge-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.7); }
  70%  { transform: scale(0.88); }
  100% { transform: scale(1); }
}
.lc-badge--pop {
  animation: lc-badge-pop 0.38s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* ── Profile dropdown ──────────────────────────────────────── */
.lc-dropdown-wrap {
  position: relative;
}

.lc-profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 6px;
  list-style: none;
  margin: 0;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(198,166,100,0.08);
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.lc-profile-menu--open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.lc-menu-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.lc-menu-item:hover {
  background: rgba(198,166,100,0.1);
  color: #fff;
}
.lc-menu-item--danger { color: #ef4444; }
.lc-menu-item--danger:hover { background: rgba(239,68,68,0.1); color: #ef4444; }

.lc-menu-divider {
  height: 1px;
  background: var(--border-dark);
  margin: 4px 6px;
}

/* ── Burger (mobile) ───────────────────────────────────────── */
.lc-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.lc-burger-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-light);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

/* Burger → X animation */
.lc-burger--open .lc-burger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.lc-burger--open .lc-burger-line:nth-child(2) {
  opacity: 0;
  width: 0;
}
.lc-burger--open .lc-burger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Overlay (mobile) ──────────────────────────────────────── */
.lc-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.lc-overlay--visible {
  opacity: 1;
  pointer-events: all;
}

/* ── Drawer ────────────────────────────────────────────────── */
.lc-drawer {
  position: fixed;
  top: 0; right: 0;
  z-index: 1002;
  width: var(--drawer-w);
  max-width: 88vw;
  height: 100dvh;
  background: var(--bg-card);
  border-left: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.lc-drawer--open {
  transform: translateX(0);
}

/* Drawer header */
.lc-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid var(--border-dark);
  flex-shrink: 0;
}
.lc-drawer-logo {
  height: 36px;
  width: auto;
}
.lc-drawer-close {
  width: 36px; height: 36px;
  border: none;
  background: transparent;
  color: var(--text-light);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.lc-drawer-close:hover { background: rgba(255,255,255,0.07); color: #fff; }

/* Drawer nav links */
.lc-drawer-nav {
  flex: 1;
  padding: 0.75rem 0;
}

.lc-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.lc-drawer-link:hover,
.lc-drawer-link--active {
  color: #fff;
  background: rgba(255,255,255,0.03);
  padding-left: 1.8rem;
}
.lc-drawer-link--gold {
  color: var(--gold-light);
}
.lc-drawer-link--gold:hover,
.lc-drawer-link--gold.lc-drawer-link--active {
  color: var(--gold);
}

.lc-drawer-arrow {
  font-size: 0.65rem;
  opacity: 0.35;
  transition: opacity 0.2s, transform 0.2s;
}
.lc-drawer-link:hover .lc-drawer-arrow {
  opacity: 0.8;
  transform: translateX(3px);
}

/* Drawer footer (utility links) */
.lc-drawer-footer {
  padding: 1rem 0.75rem 1.5rem;
  border-top: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-shrink: 0;
}

.lc-drawer-util {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.lc-drawer-util:hover { color: var(--text-light); background: rgba(255,255,255,0.05); }
.lc-drawer-util--danger { color: rgba(239,68,68,0.7); }
.lc-drawer-util--danger:hover { color: #ef4444; background: rgba(239,68,68,0.07); }

/* ── Body offset (content below fixed header) ──────────────── */
body { padding-top: var(--header-h); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 991px) {
  .lc-nav-links { display: none; }
  .lc-burger    { display: flex; }

  .lc-header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding: 0 1.1rem;
  }

  /* On mobile header is always slightly dark for readability */
  .lc-header {
    background: rgba(10,10,10,0.75);
    border-bottom-color: rgba(198,166,100,0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  /* Fewer icons on mobile — profile dropdown not needed (in drawer) */
  .lc-dropdown-wrap { display: none; }
}

@media (max-width: 480px) {
  :root { --header-h: 58px; }
  .lc-logo-img { height: 36px; }
}


/* ══════════════════════════════════════════════════════════════
   SÉLECTEUR LANGUE & DEVISE — Leciselé
   (Injecté dynamiquement par currency.js dans .navbar-actions)
══════════════════════════════════════════════════════════════ */

.lc-currency-wrapper {
  position: relative;
  z-index: 1050;
}

/* Bouton principal */
.lc-lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 0 10px;
  height: 36px;
  cursor: pointer;
  color: var(--text-light);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}
.lc-lang-btn:hover,
.lc-lang-btn[aria-expanded="true"] {
  background: rgba(198,166,100,0.08);
  border-color: var(--gold);
  color: var(--gold);
}

.lc-flag { font-size: 1rem; line-height: 1; }
.lc-code { font-weight: 700; font-size: 0.68rem; letter-spacing: 0.08em; }
.lc-chevron {
  width: 10px; height: 6px;
  color: inherit; flex-shrink: 0;
  transition: transform 0.22s ease;
}
.lc-lang-btn[aria-expanded="true"] .lc-chevron { transform: rotate(180deg); }

/* Dropdown */
.lc-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(198,166,100,0.07);
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.lc-dropdown.lc-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.lc-dropdown-header {
  padding: 11px 14px 7px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--border-dark);
}

.lc-dropdown-list {
  padding: 6px;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.lc-dropdown-list::-webkit-scrollbar { width: 4px; }
.lc-dropdown-list::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

.lc-lang-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-light);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  text-align: left;
  transition: background 0.16s ease;
}
.lc-lang-item:hover { background: rgba(198,166,100,0.1); }
.lc-lang-item.lc-active { background: rgba(198,166,100,0.15); }

.lc-item-flag  { font-size: 1.1rem; flex-shrink: 0; width: 22px; text-align: center; }
.lc-item-label { flex: 1; font-weight: 500; font-size: 0.78rem; }
.lc-item-currency { font-weight: 700; font-size: 0.7rem; color: var(--gold); letter-spacing: 0.05em; }
.lc-item-symbol   { font-size: 0.75rem; color: var(--text-muted); min-width: 18px; text-align: right; }
.lc-item-check    { font-size: 0.72rem; color: var(--gold); opacity: 0; transition: opacity 0.15s; margin-left: 2px; }
.lc-lang-item.lc-active .lc-item-check { opacity: 1; }

/* Price transition animation */
.price-current, .price-old, .price-new,
.price-original, .price-sale, .price-current1,
.total-amount, .payment-amount { transition: color 0.3s ease; }

@media (max-width: 991px) {
  .lc-dropdown { right: auto; left: 0; width: 220px; }
  .lc-code { display: none; }
  .lc-lang-btn { padding: 0 9px; gap: 4px; }
}

@media (max-width: 400px) {
  .lc-dropdown {
    width: calc(100vw - 32px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px) scale(0.97);
  }
  .lc-dropdown.lc-open {
    transform: translateX(-50%) translateY(0) scale(1);
  }
}
