/* ══════════════════════════════════════════
   BARRE PROMO
══════════════════════════════════════════ */
.promo-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--promo-h);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--navy-clusier);
}

.promo-bar__text {
  margin: 0;
}

.promo-bar a {
  color: var(--navy-clusier);
  font-family: var(--sans-bold);
  border-bottom: 1px solid var(--navy-clusier);
  padding-bottom: 1px;
  margin-left: 6px;
  transition: opacity 0.2s;
}

.promo-bar a:hover { opacity: 0.65; }

/* Décale le header et le drawer mobile quand la barre promo est active */
body.has-promo-bar .site-header {
  top: var(--promo-h);
}

body.has-promo-bar.admin-bar .site-header {
  top: calc(var(--promo-h) + 32px);
}

@media screen and (max-width: 782px) {
  body.has-promo-bar.admin-bar .site-header {
    top: calc(var(--promo-h) + 46px);
  }
}

/* FIX : décaler la barre promo sous la barre d'admin WordPress */
body.admin-bar .promo-bar {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .promo-bar {
    top: 46px;
  }
}

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; 
  left: 0; 
  right: 0; 
  z-index: 100;
  height: 10rem;
  background: rgba(13,27,42,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 0.5px solid var(--border);
}

.header-inner {
  width: 100%;
  margin: 0;
  max-width: none;
  height: 100%;
  display: flex; align-items: center;
  padding: 0 64px;
}

/* LOGO */
.site-logo img {
  height: 130px;
  width: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  shape-rendering: geometricPrecision;
  transform: translate3d(0, 0, 0);
}

/* COLONNE DROITE */
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex: 1;
  margin-left: 48px;
}

/* NAVIGATION — LIGNE 1 */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  width: 100%;
  padding-bottom: 0.5rem;
}

.nav-menu { 
  display: flex;
  align-items: center; 
  gap: 28px;
}

.nav-menu a {
  font-family: var(--serif-reg);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}

.nav-menu a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.5em;
}

/* LANGUE */
.lang-switcher { 
  margin-left: 4px;
}

.lang-link {
  font-family: var(--serif-reg);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--white);
  border: 0.5px solid var(--white);
  border-radius: 2px;
  padding: 4px 8px;
  transition: all 0.2s;
}

/* Caché sur desktop, géré par .header-right */
.header-lang-mobile {
  display: none;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .header-lang-mobile {
    display: flex;
    align-items: center;
    margin-left: auto;
  }
}

/* LIGNE 2 : horaires + bouton RDV */
.header-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: 0;
}

.hours-strip {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.hours-label {
  font-family: var(--serif-reg);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

.hours-content {
  font-family: var(--serif-reg);
  font-size: 13px;
  color: var(--white);
}

/* BOUTON RDV */
.nav-cta {
  font-family: var(--sans-bold);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-clusier);
  background: var(--white);
  padding: 9px 20px;
  border-radius: 2px;
  transition: background 0.2s;
  white-space: nowrap;
}

.nav-cta:hover {
  color: var(--white);
  background: var(--navy-clusier);
  text-decoration: underline;
  border: 0.5px solid var(--white);
}

/* ══════════════════════════════════════════
   HAMBURGER BUTTON
══════════════════════════════════════════ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
  flex-shrink: 0;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

body:not(.home) .nav-toggle__bar {
  background: var(--navy-clusier);
}

/* ══════════════════════════════════════════
   DRAWER MOBILE
   Placé hors du <header> dans le DOM pour
   éviter les conflits backdrop-filter Safari
══════════════════════════════════════════ */
.mobile-nav {
  position: fixed;
  top: 0; left: 0;
  width: min(320px, 85vw);
  height: 100dvh;
  background: var(--navy-clusier);
  border-right: 0.5px solid var(--border);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.77, 0, 0.18, 1);
  overflow-y: auto;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

/* BOUTON FERMER */
.mobile-nav__close {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  padding: 28px 28px 20px;   /* ← plus d'espace en haut */
  background: var(--navy-clusier);
  border: none;
  border-bottom: 0.5px solid var(--border);
  cursor: pointer;
  color: var(--white);
  touch-action: manipulation;
  transition: color 0.2s;
}

/* Décalage barre admin */
.admin-bar .mobile-nav {
  padding-top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .mobile-nav {
    padding-top: 46px;
  }
}

.mobile-nav__close svg {
  pointer-events: none;
}
.mobile-nav__close:hover {
  color: var(--gray-clusier-light);
}

.mobile-nav__inner {
  display: flex;
  flex-direction: column;
  min-height: calc(100% - 60px);
  padding: 24px 28px 48px;
}

.mobile-nav__menu {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mobile-nav__menu li {
  border-bottom: 0.5px solid var(--border);
}

.mobile-nav__menu a {
  display: block;
  font-family: var(--serif-reg);
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  padding: 18px 0;
  transition: color 0.2s, padding-left 0.2s;
}

.mobile-nav__menu a:hover {
  color: var(--gray-clusier-light);
  padding-left: 6px;
}

.mobile-nav__footer {
  border-top: 0.5px solid var(--border);
  padding-top: 24px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav__hours-label {
  font-family: var(--serif-reg);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}

.mobile-nav__hours-content {
  font-family: var(--serif-reg);
  font-size: 13px;
  color: var(--white);
}

.mobile-nav__lang {
  display: flex;
  gap: 10px;
}

.mobile-nav__lang .lang-link {
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

/* Overlay */
.mobile-nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.6);
  z-index: 290;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.mobile-nav__overlay.is-open { 
  display: block;
}

/* ══════════════════════════════════════════
   BARRE ADMIN WORDPRESS
══════════════════════════════════════════ */
.admin-bar .site-header { 
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header { 
  top: 46px; 
  }
}

/* ══════════════════════════════════════════
   PAGES INTÉRIEURES — overrides header
══════════════════════════════════════════ */
body:not(.home) .site-header {
  background: var(--white);
  border-bottom: 0.5px solid rgba(23, 37, 53, 0.12);
}

body:not(.home) .nav-menu a      { 
  color: var(--navy-clusier);
}

body:not(.home) .nav-cta         { 
  color: var(--white);
  background: var(--navy-clusier);
}

body:not(.home) .lang-link       { 
  color: var(--navy-clusier); 
  border-color: var(--navy-clusier); 
}

body:not(.home) .hours-label,
body:not(.home) .hours-content   { 
  color: var(--navy-clusier);
}

/* NEWSLETTER (icône enveloppe, à côté de la langue) */
.newsletter-link {
  display: inline-flex;
  align-items: center;
  color: var(--white);
  margin-left: 10px;
  transition: opacity 0.2s;
}

.newsletter-link:hover {
  opacity: 0.65;
}

body:not(.home) .newsletter-link {
  color: var(--navy-clusier);
}

.mobile-nav__lang .newsletter-link {
  color: var(--white);
  margin-left: 4px;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */

/* — DESKTOP : drawer désactivé — */
@media (min-width: 1025px) {
  .nav-toggle { 
  display: none;
}
  .mobile-nav,
  .mobile-nav__overlay {
  display: none !important; 
}
}

/* — TABLETTE + MOBILE (≤ 1024px) — */
@media (max-width: 1024px) {
  :root { --nav-h: 72px; }

  .site-header { 
  height: 72px;
}

  .header-inner {
    padding: 0 28px;
    position: relative;
  }

  .nav-toggle { display: flex; }

  .site-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .site-logo img { height: 5.5rem; }

  .header-right { display: none; }
}

/* — MOBILE (≤ 600px) — */
@media (max-width: 600px) {
  .site-header { 
  height: 64px;
}
  .header-inner { 
  padding: 0 20px; 
  }
  
  .site-logo img { 
  height: 4.5rem; 
}
}