/*
 * Artravel Hotels — styles partagés : nav, footer, burger mobile
 * Enqueué via functions.php sur toutes les pages du site
 */

/* ── Variables ───────────────────────────────────────────────────────────── */
:root {
  --gold:   #9b6a3b;
  --gold-l: #c9a96e;
  --bg:     #0D0B09;
  --text:   #D4C5A9;
  --gray:   #9A9590;
  --border: rgba(201,169,110,.18);

  /* Override Neve — remplace le bleu par le gold partout */
  --nv-primary-accent:     #c9a96e;
  --nv-secondary-accent:   #9b6a3b;
  --color-primary:         #c9a96e;
  --wp--preset--color--primary: #c9a96e;
  --wp--preset--color--vivid-cyan-blue: #c9a96e;
}

/* ── Override bleu Neve / WordPress (global) ─────────────────────────────── */

/* Liens */
a:hover, a:focus { color: #c9a96e; }

/* Focus rings : remplace le contour bleu natif */
:focus-visible { outline: 2px solid rgba(201,169,110,.6) !important; outline-offset: 2px; }
button:focus, a:focus, input:focus, select:focus, textarea:focus {
  box-shadow: none !important;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  outline: 1px solid rgba(201,169,110,.5) !important;
}

/* Boutons Neve génériques */
.nv-btn:hover, .nv-btn:active, .nv-btn:focus,
.button:hover, .button:active,
[class*="neve-"]:is(a):hover,
.menu-item-has-children > a:hover,
.sub-menu a:hover { color: #c9a96e !important; }

/* Blocs Gutenberg */
.wp-block-button__link:hover,
.wp-block-button__link:active,
.wp-block-button__link:focus {
  background-color: #9b6a3b !important;
  border-color:     #9b6a3b !important;
  color: #1A1714 !important;
}

/* Sélection de texte */
::selection { background: rgba(201,169,110,.35); color: #fff; }

/* ── Reset minimal ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; background: var(--bg); color: var(--text); margin: 0; }
a    { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ── Navigation ──────────────────────────────────────────────────────────── */
.arv-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  border-bottom: 1px solid rgba(201,169,110,.22);
  background: rgba(26,23,20,.96);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.arv-nav__logo {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #C9A96E;
  white-space: nowrap;
  text-decoration: none;
}
.arv-nav__logo em { font-style: italic; font-weight: 600; color: #E8D5B0; }

.arv-nav__links { display: flex; gap: 2rem; list-style: none; }
.arv-nav__links li {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #9A9590;
  cursor: pointer;
  transition: color .3s;
}
.arv-nav__links li:hover,
.arv-nav__links a:hover { color: #C9A96E; }
.arv-nav__links a { color: inherit; text-decoration: none; }

.arv-nav__actions { display: flex; align-items: center; gap: 1.2rem; }

.arv-nav__cta {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #1A1714;
  background: #C9A96E;
  border: none;
  padding: .6rem 1.6rem;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: opacity .3s;
  white-space: nowrap;
  display: inline-block;
  text-decoration: none;
}
.arv-nav__cta:hover { opacity: .85; background: #C9A96E !important; color: #1A1714 !important; }

.arv-nav__admin {
  font-size: 9px;
  color: #9A9590;
  border: 1px solid rgba(201,169,110,.22);
  padding: .4rem .9rem;
  letter-spacing: .1em;
  transition: color .3s, border-color .3s;
  text-decoration: none;
}
.arv-nav__admin:hover { color: #C9A96E; border-color: #C9A96E; }

/* ── Burger ──────────────────────────────────────────────────────────────── */
.arv-burger {
  display: none;
  flex-direction: column;
  gap: 5.5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}
.arv-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #C9A96E;
  transition: transform .3s, opacity .3s;
  transform-origin: center;
}
.arv-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.arv-burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.arv-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Menu mobile ─────────────────────────────────────────────────────────── */
.arv-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 2000;
  visibility: hidden;
  pointer-events: none;
}
.arv-mobile-nav__bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0;
  transition: opacity .3s;
}
.arv-mobile-nav__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(300px, 84vw);
  background: #1A1714;
  border-left: 1px solid rgba(201,169,110,.18);
  padding: 1.5rem 1.8rem 2.5rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.arv-mobile-nav.is-open                    { visibility: visible; pointer-events: auto; }
.arv-mobile-nav.is-open .arv-mobile-nav__bg    { opacity: 1; }
.arv-mobile-nav.is-open .arv-mobile-nav__panel { transform: translateX(0); }

.arv-mobile-nav__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(201,169,110,.15);
}
.arv-mobile-nav__brand { font-size: 14px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #C9A96E; }
.arv-mobile-nav__brand em { font-style: italic; font-weight: 400; color: #E8D5B0; }
.arv-mobile-nav__close {
  background: none; border: none; color: #9A9590;
  font-size: 26px; cursor: pointer; line-height: 1;
  transition: color .3s; padding: 0;
}
.arv-mobile-nav__close:hover { color: #C9A96E; }

.arv-mobile-nav__menu { list-style: none; flex: 1; }
.arv-mobile-nav__menu li { border-bottom: 1px solid rgba(201,169,110,.1); }
.arv-mobile-nav__menu a {
  display: block;
  padding: 1rem 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #D4C5A9;
  text-decoration: none;
  transition: color .2s, padding-left .2s;
}
.arv-mobile-nav__menu a:hover { color: #C9A96E; padding-left: 5px; }

.arv-mobile-nav__cta-mob {
  display: block;
  text-align: center;
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  background: #C9A96E;
  color: #1A1714;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity .3s;
}
.arv-mobile-nav__cta-mob:hover { opacity: .88; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.arv-footer {
  padding: 5rem 3rem;
  border-top: 1px solid rgba(201,169,110,.18);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  background: #1A1714;
}
.arv-footer__brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: .06em;
  color: #C9A96E;
  margin-bottom: .9rem;
}
.arv-footer__tagline {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.52);
  line-height: 1.9;
  max-width: 250px;
}
.arv-footer__col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #C9A96E;
  margin-bottom: 1.2rem;
}
.arv-footer__list { list-style: none; }
.arv-footer__list li {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.58);
  margin-bottom: .7rem;
  cursor: pointer;
  transition: color .3s;
}
.arv-footer__list li:hover,
.arv-footer__list a { color: inherit; }
.arv-footer__list a:hover { color: #C9A96E; }
.arv-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.3rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #141210;
}
.arv-footer__copy { font-size: 9px; font-weight: 600; color: rgba(255,255,255,.36); }
.arv-footer__legal { display: flex; gap: 1.5rem; list-style: none; }
.arv-footer__legal li { font-size: 9px; font-weight: 600; color: rgba(255,255,255,.36); cursor: pointer; transition: color .3s; }
.arv-footer__legal li:hover { color: #C9A96E; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .arv-nav           { padding: 1rem 1.2rem; }
  .arv-nav__links    { display: none; }
  .arv-nav__actions  { display: none; }
  .arv-burger        { display: flex; }

  .arv-footer        { grid-template-columns: 1fr; padding: 3rem 1.2rem; }
  .arv-footer__bottom{ flex-direction: column; gap: 1rem; align-items: flex-start; padding: 1.3rem 1.2rem; }
  .arv-footer__legal { flex-direction: column; gap: .7rem; }
}
