/* ============================================================
   DESIGN SYSTEM GLOBAL — LE PASSEUR DE RÊVES
   Chargé sur toutes les pages WP (WooCommerce, blog, pages standard).
   Les templates standalone (page-passeur-*.php) n'incluent PAS
   wp_head(), donc ce fichier ne les affecte pas.
============================================================ */

/* ---- Variables ---- */
:root {
  --night:       #0D1B2A;
  --night-mid:   #122234;
  --night-light: #1A2E42;
  --cream:       #FAF6EF;
  --cream-alt:   #F0EAE0;
  --cream-dark:  #E8DFD0;
  --text:        #1C1C1C;
  --text-soft:   #6B6560;
  --orange:      #F4732A;
  --orange-dark: #D95F1A;
  --gold:        #C9A84C;
  --gold-light:  #E2C97E;
  --white-warm:  #F5F0E8;

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Source Sans 3', sans-serif;
  --font-ui:     'Montserrat', sans-serif;

  --radius:      4px;
  --shadow-card: 0 2px 16px rgba(13,27,42,0.10), 0 1px 4px rgba(13,27,42,0.06);
  --shadow-hover: 0 8px 32px rgba(13,27,42,0.18), 0 2px 8px rgba(13,27,42,0.10);
}

/* ---- Reset partiel ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 88px; /* compense le header fixe */
}

/* ---- Bouton principal ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

/* ============================================================
   HEADER
============================================================ */
.passeur-site-header {
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  z-index: 1000 !important;
  background: rgba(13, 27, 42, 0.92) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  padding: 0 2rem;
  height: 88px !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s;
  visibility: visible !important;
  opacity: 1 !important;
  /* Fix mobile scroll — force GPU compositing pour éviter le décrochage
     lors de l'animation de la barre d'adresse Android/iOS */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.passeur-site-header .logo {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  text-decoration: none;
}

.passeur-site-header .logo-icon {
  height: 80px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 5px 0;
}

.passeur-site-header .logo-icon img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.passeur-site-header .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.passeur-site-header .logo-text .top {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.passeur-site-header .logo-text .main {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white-warm);
  letter-spacing: 0.01em;
}

.passeur-site-header nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.passeur-site-header nav a {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-warm);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}

.passeur-site-header nav a:hover { opacity: 1; color: var(--gold-light); }

.passeur-site-header .nav-cta {
  background: var(--orange) !important;
  color: #fff !important;
  opacity: 1 !important;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.75rem !important;
  transition: background 0.2s !important;
}

.passeur-site-header .nav-cta:hover { background: var(--orange-dark) !important; }

/* ---- Hamburger ---- */
.passeur-site-header .menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.passeur-site-header .menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white-warm);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.passeur-site-header .menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.passeur-site-header .menu-btn.open span:nth-child(2) { opacity: 0; }
.passeur-site-header .menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Menu mobile ---- */
.passeur-mobile-menu {
  display: none;
  position: fixed;
  top: 88px;
  left: 0; right: 0; bottom: 0;
  background: var(--night);
  z-index: 998;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.passeur-mobile-menu.open { display: flex; }

.passeur-mobile-menu a {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-warm);
  text-decoration: none;
  transition: color 0.2s;
}

.passeur-mobile-menu a:hover { color: var(--gold-light); }

.passeur-mobile-menu .btn-primary {
  margin-top: 1rem;
  font-size: 0.95rem;
  padding: 0.9rem 2.4rem;
}

/* ============================================================
   FOOTER
============================================================ */
.passeur-site-footer {
  background: var(--night);
  border-top: 1px solid rgba(201,168,76,0.15);
  padding: 3.5rem 2rem 2.5rem;
}

.passeur-site-footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.passeur-site-footer .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(245,240,232,0.08);
}

.passeur-site-footer .footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  text-decoration: none;
}

.passeur-site-footer .footer-brand .logo-icon {
  height: 70px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 5px 0;
}

.passeur-site-footer .footer-brand .logo-icon img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.passeur-site-footer .footer-brand .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.passeur-site-footer .footer-brand .logo-text .top {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.passeur-site-footer .footer-brand .logo-text .main {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white-warm);
  letter-spacing: 0.01em;
}

.passeur-site-footer .tagline {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-style: italic;
  color: rgba(245,240,232,0.45);
  margin-top: 0.8rem;
  max-width: 240px;
  line-height: 1.5;
}

.passeur-site-footer .footer-links {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.passeur-site-footer .footer-col h4 {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.passeur-site-footer .footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
}

.passeur-site-footer .footer-col a,
.passeur-site-footer .footer-col li {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: rgba(245,240,232,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.passeur-site-footer .footer-col a:hover { color: var(--white-warm); }

.passeur-site-footer .footer-social-item  { display: flex; flex-direction: column; gap: 0.5rem; }
.passeur-site-footer .footer-social-label { font-family: var(--font-sans); font-size: 0.88rem; color: rgba(255,255,255,0.55); }
.passeur-site-footer .footer-social-icons { display: flex; gap: 0.6rem; }

.passeur-site-footer .footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.55);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.passeur-site-footer .footer-social-btn:hover { background: var(--gold); color: var(--night); }

.passeur-site-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.passeur-site-footer .footer-legal {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: rgba(245,240,232,0.25);
  letter-spacing: 0.05em;
}

.passeur-site-footer .footer-humain {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: rgba(201,168,76,0.5);
  letter-spacing: 0.08em;
}

/* ---- Bouton panier flottant ---- */
.passeur-cart-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 52px;
  height: 52px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(244,115,42,0.40);
  z-index: 8000;
  transition: transform 0.2s, box-shadow 0.2s;
}
.passeur-cart-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(244,115,42,0.55);
  color: #fff;
}
.passeur-cart-float-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--night);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  border: 2px solid var(--cream);
}

/* ---- Barre admin WordPress (décale le header fixe vers le bas) ---- */
body.admin-bar .passeur-site-header { top: 32px !important; }
@media screen and (max-width: 782px) {
  body.admin-bar .passeur-site-header { top: 46px !important; }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {
  .passeur-site-header nav { display: none; }
  .passeur-site-header .menu-btn { display: flex; }

  .passeur-site-footer .footer-top { flex-direction: column; gap: 2rem; }
  .passeur-site-footer .footer-links { gap: 2rem; }
  .passeur-site-footer .footer-bottom { flex-direction: column; align-items: flex-start; }
}
