/* ===== NOVAEL : agenda, brochure, chat WhatsApp ===== */
:root {
  --nv-blue: #10559b;
  --nv-teal: #005c76;
  --nv-green: #25a64f;
  --nv-wa: #25d366;
  --nv-ink: #0f2a3d;
  --nv-muted: #5b6b7a;
  --nv-line: #e3eaf0;
  --nv-bar-h: 44px;
  --nv-radius: 14px;
  --nv-shadow: 0 18px 50px rgba(15, 42, 61, 0.22);
}

/* Réserve la place du bandeau fixe */
body:has(#nv-annonce-bar), body.nv-has-bar { padding-top: var(--nv-bar-h); }

/* ---------- Bandeau agenda ---------- */
.nv-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 9990;
  height: var(--nv-bar-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 12px 0 0;
  background: linear-gradient(90deg, var(--nv-teal) 0%, var(--nv-blue) 55%, #0e6a5a 100%);
  color: #fff; font-size: 14px; line-height: 1.2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
.nv-bar button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.nv-bar__label {
  height: 100%; display: flex; align-items: center; gap: 8px;
  padding: 0 16px; background: var(--nv-green) !important;
  font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 12px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-right: 24px;
}
.nv-bar__ticker { position: relative; flex: 1; height: 100%; overflow: hidden; }
.nv-bar__item {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left;
  opacity: 0; transform: translateY(100%); transition: opacity .45s ease, transform .45s ease;
}
.nv-bar__item.is-active { opacity: 1; transform: translateY(0); }
.nv-bar__item.is-leaving { opacity: 0; transform: translateY(-100%); }
.nv-bar__item strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.nv-bar__item--static { font-weight: 500; }
.nv-bar__meta { opacity: .85; font-size: 13px; }
.nv-badge {
  flex: none; display: inline-block; padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.nv-bar__cta {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; background: #fff !important; color: var(--nv-blue) !important;
  font-weight: 700; font-size: 13px; text-decoration: none; transition: transform .2s ease;
}
.nv-bar__cta:hover { transform: translateY(-1px); }
.nv-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--nv-green); color: #fff; font-size: 11px;
}

/* ---------- Fenêtres (agenda / brochure) ---------- */
.nv-modal[hidden] { display: none; }
.nv-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.nv-modal__backdrop { position: absolute; inset: 0; background: rgba(9, 25, 38, 0.55); backdrop-filter: blur(2px); animation: nv-fade .25s ease; }
.nv-modal__sheet {
  position: relative; width: min(680px, 100%); max-height: min(86vh, 820px); overflow: auto;
  background: #fff; color: var(--nv-ink); border-radius: 18px; box-shadow: var(--nv-shadow);
  animation: nv-rise .3s ease;
}
.nv-modal--side { justify-content: flex-end; padding: 0; }
.nv-modal--side .nv-modal__sheet { width: min(430px, 100%); height: 100%; max-height: none; border-radius: 18px 0 0 18px; animation: nv-slide .3s ease; }
.nv-modal__head {
  position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 22px 24px 16px; background: #fff; border-bottom: 1px solid var(--nv-line);
}
.nv-modal__head h2 { margin: 2px 0 0; font-size: 22px; font-weight: 800; color: var(--nv-teal); line-height: 1.25; }
.nv-eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--nv-green); }
.nv-modal__body { padding: 20px 24px 26px; }
.nv-close {
  flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: #f1f5f8; color: var(--nv-ink); font-size: 24px; line-height: 1;
}
.nv-close:hover { background: #e3eaf0; }
.nv-close--light { background: rgba(255, 255, 255, 0.18); color: #fff; }
.nv-close--light:hover { background: rgba(255, 255, 255, 0.3); }

.nv-event { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--nv-line); }
.nv-event:last-child { border-bottom: 0; }
.nv-event__date {
  flex: none; width: 70px; height: 76px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--nv-blue), var(--nv-teal)); color: #fff;
}
.nv-event__day { font-size: 28px; font-weight: 800; line-height: 1; }
.nv-event__month { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.nv-event__content h3 { margin: 8px 0 6px; font-size: 18px; font-weight: 700; color: var(--nv-ink); }
.nv-event__content p { margin: 0 0 10px; color: var(--nv-muted); font-size: 15px; line-height: 1.55; }
.nv-badge--soft { background: #e8f6ed; border-color: #bfe6cc; color: #187a3a; }
.nv-event__facts { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--nv-ink); font-size: 14px; }
.nv-event__facts i { color: var(--nv-green); margin-right: 4px; }
.nv-empty { text-align: center; padding: 16px 8px 6px; color: var(--nv-muted); }
.nv-empty i { font-size: 40px; color: var(--nv-green); }
.nv-empty p { margin: 12px auto 18px; max-width: 420px; line-height: 1.6; }

.nv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.nv-btn:hover { transform: translateY(-1px); }
.nv-btn--primary { color: #fff; background: linear-gradient(90deg, var(--nv-green), var(--nv-blue)); box-shadow: 0 8px 20px rgba(16, 85, 155, 0.25); }
.nv-btn--ghost { color: var(--nv-blue); background: #fff; border: 2px solid var(--nv-blue); }

/* ---------- Brochure ---------- */
.nv-brochure-tab {
  position: fixed; right: 0; top: 50%; z-index: 9980; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 10px; border: 0; border-radius: 12px 0 0 12px; cursor: pointer;
  background: linear-gradient(180deg, var(--nv-blue), var(--nv-teal)); color: #fff;
  box-shadow: -4px 6px 18px rgba(15, 42, 61, 0.25); transition: padding .2s ease;
}
.nv-brochure-tab:hover { padding-right: 14px; }
.nv-brochure-tab i { font-size: 18px; color: #bff0cf; }
.nv-brochure-tab span { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.nv-cover { border-radius: var(--nv-radius); overflow: hidden; border: 1px solid var(--nv-line); margin-bottom: 18px; }
.nv-cover img { display: block; width: 100%; height: auto; }
.nv-cover__placeholder {
  aspect-ratio: 4 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center;
  background: radial-gradient(circle at 20% 20%, #e8f6ed, transparent 55%), linear-gradient(160deg, #f4f8fb, #e4eef6);
  color: var(--nv-teal); font-weight: 600;
}
.nv-cover__placeholder img { width: 62%; max-width: 230px; }
.nv-text { margin: 0 0 14px; color: var(--nv-muted); line-height: 1.6; font-size: 15px; }
.nv-checks { list-style: none; margin: 0 0 20px; padding: 0; }
.nv-checks li { position: relative; padding: 6px 0 6px 28px; font-size: 15px; color: var(--nv-ink); }
.nv-checks li::before {
  content: "\2713"; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--nv-green);
}
.nv-actions { display: grid; gap: 10px; }

/* ---------- Chat WhatsApp ---------- */
.nv-chat { position: fixed; right: 22px; bottom: 22px; z-index: 9985; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-size: 15px; }
.nv-chat__fab {
  position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--nv-wa); color: #fff; font-size: 32px; display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45); transition: transform .2s ease;
}
.nv-chat__fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); animation: nv-pulse 2.4s infinite; }
.nv-chat__fab:hover { transform: scale(1.06); }
.nv-chat__badge {
  position: absolute; top: -2px; right: -2px; width: 22px; height: 22px; border-radius: 50%;
  background: #e53935; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff;
}
.nv-chat.is-open .nv-chat__badge, .nv-chat.is-seen .nv-chat__badge { display: none; }
.nv-chat__teaser[hidden], .nv-chat__window[hidden] { display: none; }
.nv-chat__teaser {
  position: relative; max-width: 250px; padding: 14px 34px 14px 16px; border-radius: 14px 14px 4px 14px;
  background: #fff; color: var(--nv-ink); box-shadow: var(--nv-shadow); animation: nv-rise .3s ease;
}
.nv-chat__teaser p { margin: 0; line-height: 1.45; font-size: 14px; }
.nv-chat__teaser-close { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 20px; color: var(--nv-muted); cursor: pointer; }
.nv-chat__window {
  width: min(360px, calc(100vw - 32px)); border-radius: 18px; overflow: hidden; background: #efeae2;
  box-shadow: var(--nv-shadow); animation: nv-rise .3s ease;
}
.nv-chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: #075e54; color: #fff; }
.nv-chat__head img { width: 40px; height: 40px; border-radius: 50%; background: #fff; object-fit: contain; padding: 3px; }
.nv-chat__head div { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.nv-chat__head strong { font-size: 15px; }
.nv-chat__head span { font-size: 12px; opacity: .9; }
.nv-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--nv-wa); margin-right: 4px; }
.nv-chat__body { padding: 16px; max-height: 320px; overflow: auto; }
.nv-msg { display: inline-block; padding: 10px 14px; border-radius: 4px 14px 14px 14px; background: #fff; color: var(--nv-ink); line-height: 1.5; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.nv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.nv-chips button {
  border: 1px solid #b9dfc6; background: #fff; color: #0b6b3a; border-radius: 999px; padding: 7px 12px;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s ease;
}
.nv-chips button:hover { background: #e8f6ed; }
.nv-chat__form { display: flex; gap: 8px; padding: 10px; background: #f0f2f5; }
.nv-chat__form input { flex: 1; min-width: 0; border: 0; border-radius: 999px; padding: 11px 16px; font-size: 15px; outline: none; background: #fff; color: var(--nv-ink); }
.nv-chat__form input:focus { box-shadow: 0 0 0 2px var(--nv-wa); }
.nv-chat__form button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--nv-wa); color: #fff; cursor: pointer; font-size: 16px; }
.nv-chat__note { margin: 0; padding: 0 14px 10px; background: #f0f2f5; font-size: 11px; color: var(--nv-muted); text-align: center; }
.nv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@keyframes nv-fade { from { opacity: 0; } }
@keyframes nv-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes nv-slide { from { transform: translateX(100%); } }
@keyframes nv-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

body.nv-lock { overflow: hidden; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  :root { --nv-bar-h: 42px; }
  .nv-bar { font-size: 13px; gap: 8px; padding-right: 8px; }
  .nv-bar__label { padding: 0 18px 0 12px; }
  .nv-bar__label span, .nv-bar__meta { display: none; }
  .nv-bar__item .nv-badge { display: none; }
  .nv-bar__cta { padding: 6px 10px; font-size: 12px; }
  .nv-modal { padding: 0; align-items: flex-end; }
  .nv-modal__sheet { width: 100%; max-height: 88vh; border-radius: 18px 18px 0 0; }
  .nv-modal--side .nv-modal__sheet { border-radius: 18px 18px 0 0; height: auto; max-height: 92vh; animation: nv-rise .3s ease; }
  .nv-modal--side { align-items: flex-end; }
  .nv-event { gap: 14px; }
  .nv-event__date { width: 58px; height: 64px; }
  .nv-chat { right: 14px; bottom: 14px; }
  .nv-chat__fab { width: 56px; height: 56px; font-size: 28px; }
  .nv-brochure-tab { padding: 12px 8px; }
  .nv-brochure-tab span { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .nv-bar__item, .nv-modal__sheet, .nv-chat__window, .nv-chat__fab::after { transition: none; animation: none; }
}
@media (max-width: 760px) {   .nv-bar__item--static { inset: 0 auto 0 0; width: max-content; padding-left: 100%; overflow: visible; animation: nv-marquee 22s linear infinite; } } @keyframes nv-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
