/* ================================================================
   JT BARBER — style.css
   Styles communs : variables, reset, nav, footer, fab, burger, CTA
   ================================================================ */

/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:         #C9A84C;
  --gold-light:   #D4AE5A;
  --black:        #0A0A0A;
  --dark:         #111111;
  --dark2:        #1A1A1A;
  --dark3:        #222222;
  --white:        #FFFFFF;
  --grey:         #CCCCCC;
  --font-display: 'Cinzel', serif;
  --font-body:    'Raleway', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 0 40px;
  height: 70px;
  background: rgba(10,10,10,0.95);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  backdrop-filter: blur(8px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-icon {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -1px;
  border: 2px solid var(--gold);
  padding: 2px 8px;
  line-height: 1;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--white);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a.active {
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

.btn-reserve-nav {
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.btn-reserve-nav:hover { background: var(--gold-light); }

/* Panier nav — style icône */
a.btn-reserve-nav[title="Mon panier"] {
  background: rgba(201,168,76,0.1) !important;
  border: 1px solid rgba(201,168,76,0.4) !important;
  color: #C9A84C !important;
  width: 42px;
  height: 42px;
  padding: 0;
  justify-content: center;
  position: relative;
}
a.btn-reserve-nav[title="Mon panier"]:hover {
  background: var(--gold) !important;
  color: var(--black) !important;
}

/* ── BURGER ── */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MENU MOBILE ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(10px);
  z-index: 99;
  padding: 24px 20px 32px;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.mobile-menu.open { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--gold); }
.mobile-menu .btn-reserve-mobile {
  margin-top: 20px;
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  text-align: center;
  padding: 15px;
  border: none;
  border-bottom: none;
}

/* ── PAGE HEADER (pages internes) ── */
.page-header {
  padding: 140px 40px 80px;
  text-align: center;
  background: var(--dark);
  border-bottom: 1px solid rgba(201,168,76,0.1);
}

/* ── UTILITAIRES ── */
.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-divider {
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 20px;
}
.section-intro {
  font-size: 15px;
  font-weight: 300;
  color: var(--white);
  max-width: 520px;
  margin: 0 auto;
}

/* ── CTA SECTION ── */
.section-cta {
  padding: 100px 40px;
  text-align: center;
  background: var(--dark);
  border-top: 1px solid rgba(201,168,76,0.1);
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.cta-text {
  font-size: 15px;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 36px;
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 18px 40px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-cta:hover { background: var(--gold-light); }

/* ── FOOTER ── */
footer {
  background: var(--black);
  border-top: 1px solid rgba(201,168,76,0.15);
  padding: 28px 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-item { display: flex; align-items: center; gap: 12px; color: var(--grey); font-size: 12px; }
.footer-icon { color: var(--gold); font-size: 18px; flex-shrink: 0; }
.footer-label { font-size: 11px; color: var(--white); display: block; }
.footer-sub { font-size: 10px; color: var(--white); display: block; }

/* ── FAB ── */
.fab {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 200;
  background: var(--gold);
  color: var(--black);
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  gap: 3px;
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
  transition: background 0.2s, transform 0.2s;
}
.fab:hover { background: var(--gold-light); transform: scale(1.05); }
.fab-icon { font-size: 20px; }

/* ── ICÔNES ── */
.icon-cal::before   { content: "📅"; }
.icon-phone::before { content: "📞"; }
.icon-pin::before   { content: "📍"; }
.icon-clock::before { content: "🕙"; }
.icon-insta::before { content: "📸"; }

/* ── TABLETTE ── */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .btn-reserve-nav { display: none; }
  .burger { display: flex; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .section-cta { padding: 60px 24px; }
  .page-header { padding: 110px 24px 60px; }
}

/* ── MOBILE ── */
@media (max-width: 480px) {
  nav { padding: 0 16px; height: 60px; }
  .mobile-menu { top: 60px; }
  .nav-logo-icon { font-size: 20px; }
  .nav-logo-text { font-size: 11px; letter-spacing: 2px; }
  .btn-reserve-nav { display: none; }
  footer { padding: 24px 16px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 14px; }
  .footer-label { font-size: 10px; }
  .section-cta { padding: 50px 16px; }
  .btn-cta { width: 100%; justify-content: center; }
  .page-header { padding: 90px 16px 40px; }
  .fab { width: 56px; height: 56px; bottom: 20px; right: 16px; }
  .fab-icon { font-size: 18px; }
}

/* ── PANIER WOOCOMMERCE ── */
.nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold);
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.nav-cart:hover {
  background: var(--gold);
  color: var(--black);
}
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--gold);
  color: var(--black);
  font-size: 9px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media(max-width:900px) { .nav-cart { display: inline-flex; } }

/* ── PANIER DANS LA NAV ── */
.nav-cart {
  margin-left: 16px;
  flex-shrink: 0;
}

/* ── FAB — masqué en haut de page ── */
.fab {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}
.fab.visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* ── ICÔNE MON COMPTE ── */
.nav-account {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(201,168,76,0.1) !important;
  border: 1px solid rgba(201,168,76,0.4) !important;
  color: #C9A84C !important;
  font-size: 16px;
  text-decoration: none !important;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
  margin-right: 4px;
}
.nav-account:hover {
  background: var(--gold);
  color: var(--black);
}

/* ── ICÔNES NAV — masquer sur mobile ── */
@media(max-width:900px) { .nav-icons-desktop { display: none !important; } }

/* ── FOOTER CRÉDIT ── */
.footer-credit {
  text-align: center;
  padding: 12px 40px;
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(201,168,76,0.05);
  font-size: 11px;
  font-weight: 300;
  color: var(--grey);
  letter-spacing: 1px;
}
.footer-credit a {
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.2s;
}
.footer-credit a:hover { opacity: 0.7; }

/* ── BOUTONS WOOCOMMERCE — style cohérent avec le thème ── */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.added_to_cart,
.woocommerce .wc-forward {
  background: var(--gold) !important;
  color: var(--black) !important;
  font-family: var(--font-body) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  padding: 14px 28px !important;
  border: none !important;
  border-radius: 0 !important;
  transition: background 0.2s !important;
  text-decoration: none !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.added_to_cart:hover,
.woocommerce .wc-forward:hover {
  background: var(--gold-light) !important;
  color: var(--black) !important;
}

.woocommerce a.wc-forward,
.woocommerce p.return-to-shop a.wc-forward {
  margin-top: 60px !important;
  display: inline-block !important;
}
.woocommerce p.return-to-shop {
  margin-top: 60px !important;
}

/* Boutons secondaires (ex: "Continuer mes achats") en version outline */
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: transparent !important;
  color: var(--gold) !important;
  border: 1px solid rgba(201,168,76,0.5) !important;
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: rgba(201,168,76,0.08) !important;
  border-color: var(--gold) !important;
}
