/*
 * Tourmaline Safaris — Styles globaux (nav + footer)
 * Chargé sur toutes les pages du site.
 */

/* ── RESET MINIMAL ── */
*, *::before, *::after { box-sizing: border-box; }
a { text-decoration: none; }

/* ── MASQUER L'ENTÊTE ET LE FOOTER PAR DÉFAUT D'ASTRA ── */
#masthead,
#ast-footer-overlay,
.site-footer,
.ast-site-footer-wrap,
footer.site-footer {
  display: none !important;
}

/* ── ESPACE POUR LA NAV FIXE sur les pages internes ── */
body:not(.tourmaline-homepage) {
  padding-top: 72px;
}

/* ═══════════════════════════════════
   NAVIGATION
═══════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 72px; padding: 0 56px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: background .45s ease, backdrop-filter .45s ease, border-color .45s ease;
}
/* Sur les pages internes : nav toujours en mode scrolled */
body:not(.tourmaline-homepage) .nav {
  background: rgba(253,250,245,.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--sable, #F0E8D8);
}
.nav--scrolled {
  background: rgba(253,250,245,.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--sable, #F0E8D8);
}
.nav__logo {
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-size: 20px; font-weight: 600;
  letter-spacing: -.015em; color: var(--blanc, #fff);
  display: flex; align-items: center; gap: 8px;
  transition: color .4s ease;
}
.nav__logo em { font-style: italic; font-weight: 300; color: var(--dune-d, #D4906A); }
.nav__logo-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--dune, #C07048); flex-shrink: 0;
}
.nav--scrolled .nav__logo,
body:not(.tourmaline-homepage) .nav__logo { color: var(--nuit, #2D2420); }

.nav__links {
  display: flex; gap: 36px; list-style: none;
  align-items: center; margin: 0; padding: 0;
}
.nav__links a {
  font-size: 11px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase;
  color: rgba(255,255,255,.65); transition: color .3s;
  position: relative;
}
.nav__links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0;
  height: 1px; background: var(--dune, #C07048);
  transition: width .35s ease;
}
.nav__links a:hover { color: var(--blanc, #fff); }
.nav__links a:hover::after { width: 100%; }
.nav--scrolled .nav__links a,
body:not(.tourmaline-homepage) .nav__links a { color: var(--gris, #7A7469); }
.nav--scrolled .nav__links a:hover,
body:not(.tourmaline-homepage) .nav__links a:hover { color: var(--nuit, #2D2420); }

.nav__cta {
  font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: 9px 22px; border: 1px solid rgba(255,255,255,.3); border-radius: 2px;
  color: rgba(255,255,255,.8); transition: all .3s; white-space: nowrap;
}
.nav__cta:hover { background: var(--dune, #C07048); border-color: var(--dune, #C07048); color: #fff; }
.nav--scrolled .nav__cta,
body:not(.tourmaline-homepage) .nav__cta {
  border-color: var(--sable-s, #D9C9A8); color: var(--nuit, #2D2420);
}
.nav--scrolled .nav__cta:hover,
body:not(.tourmaline-homepage) .nav__cta:hover {
  background: var(--dune, #C07048); border-color: var(--dune, #C07048); color: #fff;
}

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
.footer-v3 {
  background: var(--sable, #F0E8D8);
  padding: 80px 72px 48px;
  position: relative;
}
.footer-v3::before {
  content: ''; display: block; height: 1px;
  background: linear-gradient(90deg, transparent, var(--dune, #C07048) 30%, var(--or, #C9993A) 70%, transparent);
  position: absolute; top: 0; left: 72px; right: 72px;
}
.footer-v3__top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; padding-bottom: 56px;
  border-bottom: 1px solid var(--sable-s, #D9C9A8);
}
.footer-v3__logo {
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-size: 22px; font-weight: 600;
  color: var(--nuit, #2D2420); margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.footer-v3__logo em { font-style: italic; font-weight: 300; color: var(--dune, #C07048); }
.footer-v3__tagline {
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-size: 14px; font-style: italic;
  color: rgba(45,36,32,.45); margin-bottom: 10px;
}
.footer-v3__coords {
  font-family: monospace; font-size: 9px;
  color: rgba(192,112,72,.5); letter-spacing: .14em; margin-bottom: 18px;
}
.footer-v3__desc {
  font-size: 13px; font-weight: 300; line-height: 1.7;
  color: var(--gris, #7A7469); margin-bottom: 24px; max-width: 280px;
}
.footer-v3__socials { display: flex; gap: 8px; }
.footer-v3__social {
  width: 34px; height: 34px; border: 1px solid var(--sable-s, #D9C9A8);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--gris, #7A7469);
  border-radius: 2px; transition: border-color .3s, color .3s;
}
.footer-v3__social:hover { border-color: var(--dune, #C07048); color: var(--dune, #C07048); }
.footer-v3__col-title {
  font-size: 9px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(45,36,32,.38); margin-bottom: 20px;
}
.footer-v3__links {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-v3__links a {
  font-size: 13px; font-weight: 300;
  color: var(--gris, #7A7469); transition: color .3s;
}
.footer-v3__links a:hover { color: var(--nuit, #2D2420); }
.footer-v3__bottom {
  display: flex; justify-content: space-between; align-items: center; padding-top: 28px;
}
.footer-v3__copy {
  font-family: monospace; font-size: 10px;
  color: rgba(45,36,32,.3); letter-spacing: .06em;
}
.footer-v3__legal { display: flex; gap: 20px; }
.footer-v3__legal a {
  font-size: 11px; color: rgba(45,36,32,.3); transition: color .3s;
}
.footer-v3__legal a:hover { color: rgba(45,36,32,.65); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav { padding: 0 36px; }
  .nav__links { gap: 24px; }
  .footer-v3__top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .nav { padding: 0 24px; }
  .nav__links { display: none; }
  .footer-v3 { padding: 60px 24px 36px; }
  .footer-v3__top { grid-template-columns: 1fr; gap: 32px; }
  .footer-v3__bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
  .footer-v3::before { left: 24px; right: 24px; }
}
