/* ============================================================
   Header nav + footer partagés des pages Événements.
   Cohérent avec la home : Inter, brique #B23A34, boutons N&B.
   Nav superposée au hero photo (--over, texte blanc) ou barre
   pleine (--solid). Burger sous 820px.
   ============================================================ */
.ev-nav,
.ev-foot { --brick: #B23A34; --ink: #1A1A1A; --hd: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* ---- Header nav ---- */
.ev-nav { font-family: var(--hd); z-index: 20; }
.ev-nav--over { position: absolute; top: 0; left: 0; right: 0; }
.ev-nav--solid { position: sticky; top: 0; background: #fff; border-bottom: 1px solid #ececec; }
.ev-nav__wrap {
  max-width: 1240px; margin: 0 auto; padding: 16px clamp(20px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.ev-nav__brand { display: inline-flex; align-items: center; text-decoration: none; }
.ev-nav__logo { height: clamp(40px, 4.4vw, 56px); width: auto; display: block; }
/* Show the logo that fits the variant's background. */
.ev-nav--over .ev-nav__logo--dark { display: none; }
.ev-nav--solid .ev-nav__logo--light { display: none; }

/* Two clusters: primary links, then the auth + CTA actions, evenly spaced. */
.ev-nav__menu { display: flex; align-items: center; gap: clamp(24px, 3.5vw, 44px); }
.ev-nav__links { display: flex; align-items: center; gap: clamp(20px, 2.2vw, 28px); }
.ev-nav__actions { display: flex; align-items: center; gap: 20px; }
.ev-nav__menu a { text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; transition: opacity .2s ease; }
.ev-nav--over .ev-nav__menu a { color: #fff; opacity: .92; }
.ev-nav--over .ev-nav__menu a:hover { opacity: 1; }
.ev-nav--solid .ev-nav__menu a { color: var(--ink); opacity: .78; }
.ev-nav--solid .ev-nav__menu a:hover { opacity: 1; }
.ev-nav__menu a.is-active { opacity: 1; position: relative; }
.ev-nav__menu a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: currentColor;
}
.ev-nav--over .ev-nav__menu a.is-active::after { background: #fff; }
.ev-nav--solid .ev-nav__menu a.is-active::after { background: var(--brick); }

/* CTA pill — black & white only, per the charter */
.ev-pill {
  display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border-radius: 999px;
  background: var(--ink); color: #fff !important; border: 1px solid var(--ink); opacity: 1 !important;
  transition: transform .2s ease, box-shadow .25s ease;
}
.ev-pill:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -16px rgba(0,0,0,.6); }
.ev-nav--over .ev-pill { background: #fff; color: var(--ink) !important; border-color: #fff; }

/* Burger (hidden on desktop) */
.ev-nav__burger { display: none; width: 44px; height: 40px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px; padding: 0; }
.ev-nav__burger span { display: block; height: 2px; width: 24px; margin: 0 auto; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.ev-nav--over .ev-nav__burger span { background: #fff; }
.ev-nav--solid .ev-nav__burger span { background: var(--ink); }
.ev-nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ev-nav__burger.is-open span:nth-child(2) { opacity: 0; }
.ev-nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .ev-nav__burger { display: flex; }
  .ev-nav__menu {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #0f0f10; padding: 8px clamp(20px, 4vw, 40px) 20px;
    box-shadow: 0 24px 40px -24px rgba(0,0,0,.6);
    max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .28s ease;
  }
  .ev-nav__menu.is-open { max-height: 80vh; visibility: visible; }
  .ev-nav--solid .ev-nav__menu { background: #fff; border-top: 1px solid #ececec; }
  .ev-nav__links, .ev-nav__actions { flex-direction: column; align-items: stretch; gap: 0; }
  .ev-nav__actions { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.12); }
  .ev-nav--solid .ev-nav__actions { border-top-color: #eee; }
  .ev-nav__menu a { color: #fff; opacity: .95; padding: 14px 2px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 17px; }
  .ev-nav--solid .ev-nav__menu a { color: var(--ink); border-color: #eee; }
  .ev-nav__actions a:last-child { border-bottom: 0; }
  .ev-nav__menu a.is-active::after { display: none; }
  .ev-pill { align-self: flex-start; margin-top: 14px; height: 46px; }
  .ev-nav--over .ev-pill { background: var(--ink); color: #fff !important; border-color: var(--ink); }
}

/* ---- Footer (brique, comme la home) ---- */
.ev-foot { background: var(--brick); color: #fff; font-family: var(--hd); padding: clamp(40px, 5vw, 72px) 0 34px; }
.ev-foot__wrap {
  max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
}
.ev-foot__brand { font-weight: 700; font-size: 21px; letter-spacing: -.02em; color: #fff; text-decoration: none; }
.ev-foot__links { display: flex; gap: 26px; flex-wrap: wrap; }
.ev-foot__links a { color: #fff; text-decoration: none; font-size: 15px; opacity: .9; }
.ev-foot__links a:hover { opacity: 1; }
.ev-foot__copy { opacity: .8; font-size: 14px; }
@media (max-width: 620px) {
  .ev-foot__wrap { flex-direction: column; align-items: flex-start; gap: 18px; }
}

:where(.ev-nav a, .ev-nav button, .ev-foot a):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 10px; }

/* ---- Blog tags ---- */
.tagchip { display:inline-block; font-size:12.5px; line-height:1; padding:6px 10px; border-radius:999px;
  background:#F3EAE0; color:#8A5A2B; text-decoration:none; margin:0 6px 6px 0; white-space:nowrap; }
a.tagchip:hover { background:#E9DCCB; }
.post__tags { display:flex; flex-wrap:wrap; margin-top:10px; }
.post-tags { display:flex; flex-wrap:wrap; gap:0; margin-top:clamp(20px,3vw,32px);
  padding-top:18px; border-top:1px solid var(--line,#EBDFD3); }
