/* ═══════════════════════════════════════════════════════════════
   shared.css — Toupropre
   Centralized styles for nav, footer, cookie bar, popup.
   Included by every page. Edit once → applies everywhere.
   ═══════════════════════════════════════════════════════════════ */

/* ─── TOKENS ────────────────────────────────────────────────── */
@font-face {
  font-family: 'Bristol';
  src: url('../fonts/Bristol.otf') format('opentype');
  font-display: swap;
}

:root {
  --cream:    #F5F1EC;
  --bordeaux: #A12A3C;
  --rose:     #F2DDE0;
  --bleu:     #CCDFF4;
  --dark:     #1A1A1A;
  --mid:      #7A7068;
  --white:    #FFFFFF;
  --sans:     'Josefin Sans', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--dark);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ─── SHIPPING BAR ──────────────────────────────────────────── */
.shipping-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  height: 36px;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}
.shipping-sep { color: rgba(255,255,255,0.22); padding: 0 20px; }

/* ─── NAV ───────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 36px; left: 0; right: 0;
  z-index: 200;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(245,241,236,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26,26,26,0.07);
}

.nav-logo img { height: 48px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--bordeaux); }

.nav-cta {
  background: var(--bordeaux) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: #8b1e31 !important; color: var(--white) !important; }

/* ─── FOOTER ────────────────────────────────────────────────── */
footer {
  padding: 60px 80px 32px;
  border-top: 1px solid rgba(26,26,26,0.09);
  background: var(--cream);
}
footer p { font-size: 11px; font-weight: 300; color: var(--mid); }
footer a { text-decoration: none; }

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 56px;
}
.footer-brand img { height: 30px; width: auto; margin-bottom: 10px; }
.footer-brand p { font-size: 12px; font-weight: 300; letter-spacing: 0.06em; color: var(--mid); }

.footer-nav { display: flex; gap: 64px; }
.footer-col h4 {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--dark); margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 13px; font-weight: 300; color: var(--mid); transition: color 0.18s; }
.footer-col a:hover { color: var(--dark); }

.footer-payments {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 32px; padding-bottom: 24px;
  border-bottom: 1px solid rgba(26,26,26,0.07);
  flex-wrap: wrap;
}
.footer-payments-label {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mid);
}
.payment-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.payment-badge {
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--mid); border: 1px solid rgba(26,26,26,0.13);
  padding: 5px 10px; background: var(--white);
}

.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-slogan {
  font-family: 'Bristol', Georgia, serif;
  font-size: 15px;
  color: var(--bordeaux);
}

/* ─── COOKIE BAR ────────────────────────────────────────────── */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 400;
  background: rgba(20,16,12,0.97);
  padding: 14px 56px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  transform: translateY(0); transition: transform 0.3s ease;
}
.cookie-bar.hidden { transform: translateY(100%); }
.cookie-bar p { font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.6); letter-spacing: 0.02em; }
.cookie-bar a { color: rgba(255,255,255,0.4); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  font-family: var(--sans); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; padding: 9px 18px; border: none; white-space: nowrap;
}
.cookie-accept { background: var(--bordeaux); color: var(--white); }
.cookie-refuse { background: none; color: rgba(255,255,255,0.42); border: 1px solid rgba(255,255,255,0.16) !important; }

/* ─── POPUP ─────────────────────────────────────────────────── */
.popup-overlay {
  position: fixed; inset: 0;
  background: rgba(26,26,26,0.65);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.popup-overlay.visible { opacity: 1; pointer-events: all; }
.popup-box {
  background: var(--cream); padding: 52px 44px 44px;
  max-width: 420px; width: 92%;
  position: relative; text-align: center;
}
.popup-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none; font-size: 26px;
  font-weight: 300; color: var(--mid); cursor: pointer; line-height: 1;
}
.popup-kiki { width: 56px; margin: 0 auto 18px; }
.popup-offer {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--bordeaux); margin-bottom: 10px;
}
.popup-title {
  font-family: 'Bristol', Georgia, serif;
  font-size: 36px; line-height: 1.1; color: var(--dark); margin-bottom: 10px;
}
.popup-sub { font-size: 13.5px; font-weight: 300; color: var(--mid); line-height: 1.65; margin-bottom: 24px; }
.popup-form { display: flex; flex-direction: column; gap: 10px; }
.popup-form input {
  padding: 15px 18px; border: 1.5px solid rgba(26,26,26,0.12);
  background: var(--white); font-family: var(--sans);
  font-size: 13px; font-weight: 300; outline: none; color: var(--dark);
}
.popup-form input::placeholder { color: rgba(26,26,26,0.32); }
.popup-form input:focus { border-color: rgba(26,26,26,0.28); }
.popup-form button {
  background: var(--bordeaux); color: var(--white); border: none; padding: 15px;
  font-family: var(--sans); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; transition: background 0.2s;
}
.popup-form button:hover { background: #8b1e31; }
.popup-note { font-size: 11px; color: rgba(26,26,26,0.36); margin-top: 14px; letter-spacing: 0.03em; }
.popup-success { display: none; color: var(--bordeaux); font-size: 14px; font-weight: 400; margin-top: 16px; }

/* ─── LEGAL CONTENT LINKS (override base a reset) ───────────── */
.legal-content a { color: var(--bordeaux); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { opacity: 0.75; }

/* ─── HAMBURGER BUTTON ───────────────────────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  z-index: 201;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--dark);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── MOBILE MENU ────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 190;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu a {
  font-family: var(--sans);
  font-size: clamp(22px, 7vw, 32px);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  padding: 14px 0;
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: #fff; }
.mobile-menu .mm-cta {
  color: var(--bordeaux) !important;
  font-weight: 500;
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  footer { padding: 40px 32px 28px; }
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-nav { flex-wrap: wrap; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cookie-bar { padding: 14px 24px; flex-wrap: wrap; gap: 14px; }
}
@media (max-width: 480px) {
  .shipping-bar { height: 28px; font-size: 9px; letter-spacing: 0.1em; }
  .nav { height: 56px; padding: 0 16px; top: 28px; }
  .nav-logo img { height: 36px; }
  .cookie-bar { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 20px; }
}
