/* ============================================================
   BIGUINE — Chrome : nav, drawer, footer
   ============================================================ */

/* — NAV — */
.logo-img {
  display: block; width: auto;
  transition: filter .4s var(--ease);
}
.logo-img--light { filter: invert(1); }
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background .5s var(--ease), border-color .5s var(--ease), color .4s var(--ease);
  border-bottom: 1px solid transparent;
  color: var(--ink);
}
.nav--solid {
  background: rgba(245,241,234,0.86);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--line-soft);
}
.nav--light { color: var(--paper); }

/* — Top tier : langue · logo · CTA — */
.nav__top {
  border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  transition: border-color .5s var(--ease);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  transition: height .4s var(--ease);
}
.nav--solid .nav__inner { height: 62px; }

.nav__lang {
  grid-column: 1; justify-self: start;
  display: flex; align-items: center; gap: 0.55rem;
}
.nav__lang-btn {
  background: none; border: 0; color: inherit; cursor: pointer;
  font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 500; padding: 4px 0;
  opacity: 0.5; transition: opacity .3s;
}
.nav__lang-btn:hover { opacity: 0.85; }
.nav__lang-btn.is-active { opacity: 1; }
.nav__lang-sep { opacity: 0.32; font-size: 0.7rem; }

.nav__logo { grid-column: 2; justify-self: center; }
.nav__logo img { display: block; height: 35px; width: auto; }
.nav__burger { display: none; background: none; border: 0; color: inherit; padding: 6px; justify-self: start; }

/* — Bottom tier : liens centrés — */
.nav__bar {
  display: flex; justify-content: center; align-items: center;
  height: 70px;
  transition: height .4s var(--ease);
  border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  transition: border-color .5s var(--ease);
}
.nav--solid .nav__bar { height: 62px; }
.nav__links {
  display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.6rem);
}
.nav__link {
  font-family: var(--sans);
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  position: relative; padding: 6px 0; color: inherit; opacity: 0.78;
  transition: opacity .3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav__link:hover { opacity: 1; }
.nav__link:hover::after,
.nav__link.is-active::after,
.current-menu-item > .nav__link::after,
.current-menu-parent > .nav__link::after,
.current-menu-ancestor > .nav__link::after { transform: scaleX(1); }
.nav__link.is-active,
.current-menu-item > .nav__link,
.current-menu-parent > .nav__link,
.current-menu-ancestor > .nav__link { opacity: 1; }

.nav__right { grid-column: 3; justify-self: end; }
.nav__rdv {
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  border: 1px solid currentColor; padding: 0.85em 1.5em; color: inherit;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.nav--light .nav__rdv:hover { background: var(--paper); color: var(--ink); }
.nav--solid .nav__rdv:hover, .nav:not(.nav--light) .nav__rdv:hover { background: var(--ink); color: var(--paper); }

/* — DRAWER mobile — */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(420px, 90vw); z-index: 90;
  background: var(--noir); color: var(--paper);
  transform: translateX(100%); transition: transform .55s var(--ease);
  display: flex; flex-direction: column; padding: 1.5rem clamp(1.5rem,5vw,2.5rem) 2rem;
}
.drawer.is-open { transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1.5rem; }
.drawer__top span[data-placeholder] { color: var(--paper); }
.drawer__close { background: none; border: 0; color: var(--paper); padding: 6px; }
.drawer__links { display: flex; flex-direction: column; margin-top: 1rem; flex: 1; }
.drawer__link {
  font-family: var(--serif); font-size: 1.9rem; padding: 0.5rem 0; color: var(--paper);
  border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; align-items: baseline; gap: 1rem;
  opacity: 0; transform: translateX(14px); transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s;
}
.drawer.is-open .drawer__link { opacity: 1; transform: none; }
.drawer__link.is-active { color: var(--accent); }
.drawer__cta { margin-top: 1.5rem; justify-content: center; }
.drawer__scrim {
  position: fixed; inset: 0; z-index: 80; background: rgba(20,17,14,0.5);
  opacity: 0; pointer-events: none; transition: opacity .5s; backdrop-filter: blur(2px);
}
.drawer__scrim.is-open { opacity: 1; pointer-events: auto; }

/* — FOOTER — */
.footer { background: var(--noir); color: var(--paper); padding-top: clamp(3.5rem,7vw,6rem); }
.footer__grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.4fr; gap: clamp(2rem,4vw,4rem);
  padding-bottom: clamp(3rem,5vw,4.5rem);
}
.footer__brand span[data-placeholder] { color: var(--paper); align-items: flex-start; }
.footer__tag { font-style: italic; color: rgba(245,241,234,0.66); max-width: 24ch; margin: 1.4rem 0 1.6rem; }
.footer__social { display: flex; gap: 1rem; }
.footer__social a { opacity: 0.7; transition: opacity .3s; }
.footer__social a:hover { opacity: 1; }

.footer__col ul { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.footer__col a { color: rgba(245,241,234,0.72); transition: color .3s, padding-left .3s; }
.footer__col a:hover { color: var(--paper); padding-left: 4px; }

.footer__contact { display: flex; flex-direction: column; align-items: flex-start; }
.footer__contact-mail { font-family: var(--serif); font-size: 1.15rem; color: rgba(245,241,234,0.85); margin: 1.2rem 0 1.6rem; border-bottom: 1px solid rgba(255,255,255,0.25); padding-bottom: 4px; transition: color .3s, border-color .3s; }
.footer__contact-mail:hover { color: var(--paper); border-color: var(--paper); }
.footer__join { display: inline-flex; align-items: center; gap: 0.6em; font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; color: var(--paper); border: 1px solid rgba(255,255,255,0.3); padding: 0.9em 1.5em; transition: background .4s var(--ease), color .4s var(--ease), border-color .4s; }
.footer__join:hover { background: var(--paper); color: var(--noir); border-color: var(--paper); }
.footer__join .arrow { transition: transform .35s var(--ease); }
.footer__join:hover .arrow { transform: translateX(4px); }

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1.6rem 0; border-top: 1px solid rgba(255,255,255,0.1);
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.08em; color: rgba(245,241,234,0.5);
}
.footer__legal { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer__legal a:hover { color: var(--paper); }

/* — Responsive — */
@media (max-width: 1080px) {
  .nav__bar { display: none; }
  .nav__lang { display: none; }
  .nav__burger { display: inline-flex; grid-column: 1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand, .footer__contact { grid-column: span 2; }
}
@media (max-width: 620px) {
  .nav__rdv { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand, .footer__contact { grid-column: auto; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
