/* ===========================================================
   NAVBAR + TICKER — premium glassmorphism
   =========================================================== */

/* -------- Ticker (Annonce bar) — premium gradient + edge fade -------- */
.ticker {
  position: relative;
  z-index: 90;
  height: 44px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg,
      var(--terracotta-dark) 0%,
      var(--terracotta) 25%,
      #d2784f 50%,
      var(--terracotta) 75%,
      var(--terracotta-dark) 100%);
  background-size: 300% 100%;
  animation: ticker-bg-pan 18s linear infinite;
  border-bottom: 1px solid rgba(251,246,238,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.15),
    0 4px 20px rgba(122,60,42,0.20);
}

@keyframes ticker-bg-pan {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Edge gradient masks for a smooth visual fade */
.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--terracotta-dark), transparent);
}
.ticker::after {
  right: 0;
  background: linear-gradient(-90deg, var(--terracotta-dark), transparent);
}

/* Note: OUVERT badge moved to navbar (.navbar__status) */

.ticker__track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 50s linear infinite;
  will-change: transform;
}

.ticker__item {
  color: var(--beige);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 28px;
  text-shadow: 0 1px 2px rgba(44,24,16,0.20);
}

.ticker__item::after {
  content: "✦";
  color: var(--beige-warm);
  margin-left: 28px;
  font-size: 10px;
  opacity: 0.75;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .ticker::before, .ticker::after { width: 40px; }
}

/* -------- Navbar — transparent glass -------- */
.navbar {
  position: fixed;
  top: 40px;
  left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: transparent;
  transition: padding 350ms var(--ease), top 350ms var(--ease);
}

.navbar__inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.navbar__left {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-self: start;
}

.navbar__right {
  display: flex;
  align-items: center;
  gap: 24px; /* same as the navbar__inner grid gap, so badge sits visually centered between pills and CTA */
  justify-self: end;
}

@media (max-width: 1280px) {
  .navbar__left .navbar__socials { display: none; }
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  transition: transform 300ms var(--ease), opacity 300ms var(--ease);
}
.navbar__logo:hover { transform: translateY(-2px); opacity: 0.88; }

/* Real logo images */
.navbar__logo-img {
  height: 96px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(44,24,16,0.30));
  transition: opacity 300ms var(--ease);
}

/*
  Default (transparent navbar on dark hero):
  show cream/light version, hide terracotta/dark
*/
.navbar__logo-img--light  { display: block; }
.navbar__logo-img--dark   { display: none; }

/*
  Solid navbar (is-solid pages OR home scrolled past 60px via JS):
  show terracotta version, hide cream
*/
.navbar.is-solid .navbar__logo-img--light  { display: none; }
.navbar.is-solid .navbar__logo-img--dark   { display: block; }

@media (max-width: 900px) {
  .navbar__logo-img { height: 70px; }
}

/* ---- Live OUVERT / FERMÉ status badge ---- */
.navbar__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  height: 44px;
  line-height: 1;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--beige);
  background: linear-gradient(135deg, rgba(122,60,42,0.32) 0%, rgba(122,60,42,0.14) 100%);
  border: 1px solid rgba(251,246,238,0.25);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  box-shadow:
    inset 1.5px 1.5px 0.5px 0 rgba(255,255,255,0.30),
    inset -1px -1px 0.5px 0.5px rgba(255,255,255,0.15),
    0 6px 18px rgba(44,24,16,0.20);
  text-shadow: 0 1px 2px rgba(44,24,16,0.40);
  transition: opacity 250ms var(--ease);
}

.navbar__status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6dd97f;
  box-shadow: 0 0 0 0 rgba(109,217,127,0.7), 0 0 10px rgba(109,217,127,0.9);
  animation: nav-pulse-open 2s ease-out infinite;
  flex-shrink: 0;
}

.navbar__status.is-closed .navbar__status__dot {
  background: #ff8a3d;
  box-shadow: 0 0 0 0 rgba(255,138,61,0.7), 0 0 10px rgba(255,138,61,0.9);
  animation: nav-pulse-closed 2s ease-out infinite;
}

@keyframes nav-pulse-open {
  0%   { box-shadow: 0 0 0 0 rgba(109,217,127,0.7), 0 0 10px rgba(109,217,127,0.9); }
  100% { box-shadow: 0 0 0 8px rgba(109,217,127,0), 0 0 10px rgba(109,217,127,0.9); }
}

@keyframes nav-pulse-closed {
  0%   { box-shadow: 0 0 0 0 rgba(255,138,61,0.7), 0 0 10px rgba(255,138,61,0.9); }
  100% { box-shadow: 0 0 0 8px rgba(255,138,61,0), 0 0 10px rgba(255,138,61,0.9); }
}

/* ---- Social icons ---- */
.navbar__socials {
  display: flex;
  gap: 8px;
}

.navbar__socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--beige);
  background: linear-gradient(135deg, rgba(251,246,238,0.22) 0%, rgba(251,246,238,0.06) 100%);
  border: 1px solid rgba(251,246,238,0.30);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  box-shadow:
    inset 1.5px 1.5px 0.5px 0 rgba(255,255,255,0.35),
    inset -1px -1px 0.5px 0.5px rgba(255,255,255,0.18),
    0 6px 16px rgba(44,24,16,0.18);
  transition: transform 280ms var(--ease-out), background 280ms var(--ease);
}
.navbar__socials a:hover {
  transform: translateY(-2px) scale(1.08);
  background: linear-gradient(135deg, rgba(251,246,238,0.34), rgba(251,246,238,0.14));
}
.navbar__socials svg { width: 16px; height: 16px; filter: drop-shadow(0 1px 2px rgba(44,24,16,0.40)); }

@media (max-width: 1280px) {
  .navbar__status { display: none; }
}
@media (max-width: 1024px) {
  .navbar__socials { display: none; }
}

/* Frosted glass nav pills container — terracotta tint for universal contrast */
.navbar__nav {
  display: flex;
  gap: 4px;
  position: relative;
  padding: 6px;
  border-radius: var(--radius-pill);
  justify-self: center;
  background:
    linear-gradient(135deg, rgba(122,60,42,0.36) 0%, rgba(122,60,42,0.16) 100%);
  border: 1px solid rgba(251,246,238,0.30);
  backdrop-filter: blur(28px) saturate(180%) contrast(1.05) brightness(0.95);
  -webkit-backdrop-filter: blur(28px) saturate(180%) contrast(1.05) brightness(0.95);
  box-shadow:
    inset 1.5px 1.5px 0.5px 0 rgba(255,255,255,0.32),
    inset -1px -1px 0.5px 0.5px rgba(255,255,255,0.16),
    inset 0 -1px 0 rgba(0,0,0,0.10),
    0 12px 36px rgba(44,24,16,0.22),
    0 4px 10px rgba(44,24,16,0.12);
  overflow: hidden;
  isolation: isolate;
}

.navbar__nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), transparent 50%),
    radial-gradient(120% 80% at 50% -20%, rgba(255,255,255,0.20), transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* Noise grain on pills */
.navbar__nav::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
  background-size: 240px 240px;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

.navbar__nav > * { position: relative; z-index: 2; }

.navbar__nav a {
  position: relative;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--beige);
  transition: color 250ms var(--ease), background 250ms var(--ease), transform 250ms var(--ease);
  white-space: nowrap;
  text-shadow:
    0 1px 2px rgba(44,24,16,0.85),
    0 0 8px rgba(44,24,16,0.45);
  z-index: 2;
}

.navbar__nav a:hover {
  background: rgba(251,246,238,0.18);
  transform: translateY(-1px);
}

.navbar__nav a.is-active {
  background: linear-gradient(180deg, var(--beige), var(--beige-warm));
  color: var(--terracotta-dark);
  text-shadow: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 4px 14px rgba(44,24,16,0.20);
}

/* CTA */
.navbar__cta { justify-self: end; }

.navbar__cta .btn {
  /* Inherits gradient + shine from .btn--terracotta — only override sizing here */
  padding: 0 26px;
  height: 44px;
  font-size: 12px;
}

/* ---- Language flag button ---- */
.lang-flag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  border: 1px solid rgba(251,246,238,0.25);
  background: linear-gradient(135deg, rgba(122,60,42,0.32) 0%, rgba(122,60,42,0.14) 100%);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  box-shadow:
    inset 1.5px 1.5px 0.5px 0 rgba(255,255,255,0.30),
    inset -1px -1px 0.5px 0.5px rgba(255,255,255,0.15),
    0 6px 18px rgba(44,24,16,0.20);
  transition: transform 150ms var(--ease), box-shadow 150ms var(--ease);
  flex-shrink: 0;
}
.lang-flag-btn:hover {
  transform: scale(1.08);
  box-shadow:
    inset 1.5px 1.5px 0.5px 0 rgba(255,255,255,0.35),
    inset -1px -1px 0.5px 0.5px rgba(255,255,255,0.20),
    0 8px 24px rgba(44,24,16,0.28);
}
.lang-flag-btn:active { transform: scale(0.95); }

/* Burger */
.navbar__burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(251,246,238,0.26) 0%, rgba(251,246,238,0.10) 100%);
  border: 1px solid rgba(251,246,238,0.35);
  backdrop-filter: blur(24px) saturate(200%) contrast(1.05);
  -webkit-backdrop-filter: blur(24px) saturate(200%) contrast(1.05);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  justify-self: end;
  box-shadow:
    inset 1.5px 1.5px 0.5px 0 rgba(255,255,255,0.50),
    inset -1px -1px 0.5px 0.5px rgba(255,255,255,0.25),
    0 4px 16px rgba(44,24,16,0.20);
  transition: transform 250ms var(--ease);
}
.navbar__burger:hover { transform: scale(1.05); }
.navbar__burger span {
  width: 20px;
  height: 2px;
  background: var(--beige);
  border-radius: 2px;
  transition: transform 300ms var(--ease), opacity 300ms var(--ease);
}

/* Drawer — frosted glass */
.drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(360px, 90vw);
  height: 100vh;
  background:
    linear-gradient(180deg, rgba(160,80,58,0.85), rgba(122,60,42,0.92));
  backdrop-filter: blur(36px) saturate(220%) contrast(1.05);
  -webkit-backdrop-filter: blur(36px) saturate(220%) contrast(1.05);
  border-left: 1px solid rgba(251,246,238,0.22);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 400ms var(--ease-out);
  padding: 100px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow:
    inset 1.5px 0 0 rgba(255,255,255,0.20),
    -20px 0 60px rgba(44,24,16,0.40);
}
.drawer.is-open { transform: translateX(0); }
.drawer a {
  padding: 14px 20px;
  border-radius: 14px;
  color: var(--beige);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(251,246,238,0.20);
  background: linear-gradient(135deg, rgba(251,246,238,0.10), rgba(251,246,238,0.04));
  transition: background 250ms var(--ease), transform 250ms var(--ease);
}
.drawer a:hover { background: rgba(251,246,238,0.18); transform: translateX(-4px); }
.drawer a.is-active { background: var(--beige); color: var(--terracotta-dark); }
.drawer .btn { margin-top: 16px; }

.drawer__close {
  position: absolute;
  top: 24px; right: 24px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(251,246,238,0.14);
  border: 1px solid rgba(251,246,238,0.24);
  color: var(--beige);
  font-size: 24px;
  display: grid; place-items: center;
  transition: transform 250ms var(--ease), background 250ms var(--ease);
}
.drawer__close:hover { background: rgba(251,246,238,0.24); transform: rotate(90deg); }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(44,24,16,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease);
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* Navbar stays 100% transparent at all times. Glass effect only on the
   nav pills + burger + CTA. Scrolled state only nudges padding. */
.navbar.is-solid { padding: 10px 0; }
.has-solid-nav .navbar { background: transparent; }

/* Mobile */
@media (max-width: 1024px) {
  .navbar__nav { display: none; }
  .navbar__cta { display: none; }
  .navbar__burger { display: flex; }
  .navbar__inner { grid-template-columns: auto 1fr; }
  .navbar__logo { font-size: 18px; justify-self: start; }
  .navbar__logo svg { width: 28px; height: 28px; }
}
