
:root {
  --nv-bg: rgba(16,16,16,.62);
  --nv-brd: rgba(112,112,112,.22);
  --nv-txt: #d8d8d8;
  --nv-txt-strong: #fff;
  --nv-accent: #B7DC69;
  --nv-pill: rgba(183,220,105,.12);
}

.nv {
  position: fixed; top: 0; left: 0; right: 0;
  width: 100%;
  height: 74px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 12px;
  padding: 0 24px; z-index: 50;
  border-radius: 0;
  /* fond + blur déplacés dans la surface unique (.nvs) rendue par PageDropTitle,
     pour que barre + languette soient un seul backdrop-filter (couleur identique) */
  background: transparent;
}

/* Bridge anti-flicker entre le bouton et le menu */
.nv__dd { position: relative; }
.nv__dd-bridge {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
  background: transparent;
  pointer-events: auto;
  z-index: 59;
}

.nv__logo {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  color: var(--nv-accent); text-decoration: none;
  font-weight: 500; letter-spacing: .02em;
  font-size: 1.12rem; display: inline-flex; align-items: center; gap: 8px;
}
.nv__logo-icon {
  width: 24px; height: 24px; object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 5px rgba(183,220,105,0.45));
}

/* Grille 1fr auto 1fr : les deux pistes 1fr sont forcées à la même largeur
   (celle du côté le plus large), même si le conteneur se dimensionne sur son
   contenu. Le centre de .nv__nav-gap tombe donc pile au centre de la barre,
   elle-même centrée dans la page par la grille de .nv. */
.nv__center {
  display: inline-grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;
  padding: 6px 10px; border-radius: 999px;
  background: transparent;
  justify-self: center;
}

.nv__center-side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.nv__center-side--left  { justify-content: flex-end; }
.nv__center-side--right { justify-content: flex-start; }

.nv__link {
  position: relative; display:inline-flex; align-items:center; gap:.45rem;
  color: var(--nv-txt); text-decoration: none; font-size: .98rem;
  padding: 6px 14px; border-radius: 999px;
  transition: color .18s ease, background .18s ease, transform .18s ease;
  white-space: nowrap;
}
.nv__link:hover { color: var(--nv-txt-strong); background-color: rgba(255, 255, 255, 0); }
.nv__link.is-active { color: var(--nv-txt); text-shadow: none; box-shadow: none; }

.nv__dd { position: relative; }
.nv__dd-btn { cursor: pointer; }
.nv__caret { opacity:.75; margin-left: .25rem; }

.nv__dd-menu {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px);
  min-width: 280px;
  /* Même fond + blur que la barre (.nvs) pour une couleur identique */
  background: linear-gradient(rgba(183,220,105,0.045), rgba(183,220,105,0.045)), #181818e3;
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,.08); border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  padding: 8px; z-index: 60;
}

.nv__right { display: inline-flex; justify-self: end; align-items:center; gap: 12px; }
.nv__icon { position: relative; display:inline-flex; align-items:center; justify-content:center; padding:8px; border-radius:10px; transition: background .16s ease, transform .16s ease; }
.nv__icon img { display:block; }
.nv__icon:hover { background: rgba(255,255,255,.06); transform: translateY(-1px); }

.nv__burger {
  justify-self: end;
  width: 40px; height: 40px; border: none; background: transparent; cursor: pointer; border-radius: 0;
  display: grid; place-items:center; gap:4px; padding: 0;
}
.nv__burger span { display:block; width: 22px; height: 2px; background: #f0f0f0; transition: transform .2s, opacity .2s; }
.nv__burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nv__burger.is-open span:nth-child(2) { opacity: 0; }
.nv__burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nv__sep { height: 0px; width: 100%; background: linear-gradient(to right, #222, #444 40%, #222 100%); opacity:.5; }

.nv--menu-open {
  background:
    radial-gradient(130% 200% at 50% -60%, rgba(183,220,105,0.10), rgba(183,220,105,0) 55%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0) 60%),
    rgba(12,13,12,0.85);
}

/* ── Mobile Drawer ── */
.nvm { 
  position: fixed; inset: 0; z-index: 48; 
  pointer-events: none; 
  overflow: hidden;
  height: 100dvh;
  overscroll-behavior: contain;
}
.nvmm--show { pointer-events: auto; }

.nvm::before {
  content:""; position:absolute; inset:0; background: rgba(10,10,10,.78);
  -webkit-backdrop-filter: blur(8px) saturate(120%); backdrop-filter: blur(8px) saturate(120%);
  opacity: 0; transition: opacity .2s;
}
.nvmm--show::before { opacity: 1; }

.nvm__panel {
  position: absolute;
  top: 64px;
  left: 0;
  width: 100%;

  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;

  transform: translateY(-10px);
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease;

  padding: 12px 16px 24px;
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.nvmm--show .nvm__panel { transform: translateY(0); opacity: 1; }

.nvm__link, .nvm__btn {
  text-align: left; text-decoration: none; font-size: 1.06rem; font-weight: 600;
  color: #eefef0; padding: 14px 14px; border-radius: 0;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.nvm__link:hover, .nvm__btn:hover {
  background: rgba(183,220,105,.08); border-color: rgba(183,220,105,.22); color: #B7DC69;
}
.nvm__link.is-active { outline: 2px solid rgba(183,220,105,.25); }

.nvm__sub { display:flex; flex-direction: column; gap: 8px; padding-left: 8px; }
.nvm__sublink {
  text-decoration:none; color:#ebffe3; font-weight: 500; font-size: 1.0rem;
  padding: 12px 12px; border-radius: 0; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.nvm__sublink:hover { background: rgba(183,220,105,.08); border-color: rgba(183,220,105,.22); color: #B7DC69; }

/* ✅ Highlight vert (mobile hub) */
.nvm__sublink.nvm__sublink--green{
  background: rgba(90,220,140,.14);
  border-color: rgba(90,220,140,.24);
  color: #eafff1;
}

.nvm__sep { height:1px; background: rgba(255,255,255,.08); margin: 4px 12px; }

/* ── Mobile profile section ── */
.nvm__profile-section { display: flex; flex-direction: column; gap: 0; }
.nvm__profile-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left; font-size: 1.0rem; font-weight: 600;
  color: #eefef0; padding: 13px 14px; border-radius: 0;
  background: rgba(183,220,105,.07); border: 1px solid rgba(183,220,105,.18);
  transition: background .16s ease, border-color .16s ease;
}
.nvm__profile-toggle:hover { background: rgba(183,220,105,.13); border-color: rgba(183,220,105,.32); }
.nvm__profile-toggle-left { display: flex; align-items: center; gap: 10px; }
.nvm__profile-toggle-name { font-weight: 600; color: #B7DC69; }

.nvm__profile-panel {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 8px 8px; margin-top: 4px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 0;
}

.nvm__profile-action-btn {
  text-align: center; text-decoration: none; font-size: 0.9rem; font-weight: 600;
  color: #B7DC69; padding: 10px 12px; border-radius: 0;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  transition: background .15s ease, border-color .15s ease;
}
.nvm__profile-action-btn:hover { background: rgba(183,220,105,.09); border-color: rgba(183,220,105,.25); color: #B7DC69; }

.nvm__profile-logout {
  width: 100%; text-align: center; font-size: 0.9rem; font-weight: 600;
  color: #f87171; padding: 10px 12px; border-radius: 0; margin-top: 2px;
  background: rgba(248,113,113,.06); border: 1px solid rgba(248,113,113,.15);
  transition: background .15s ease, border-color .15s ease;
}
.nvm__profile-logout:hover { background: rgba(248,113,113,.13); border-color: rgba(248,113,113,.3); }

.nvm__socials { display:flex; gap: 16px; margin-top: 14px; }

/* Bouton login — vert plein, texte gris foncé, arrondi */

/* ── Boutons spéciaux des menus principaux ─────────────────────────────── */

/* Base “pill” */
.nv__pill{
  border: 1px solid transparent;
  background: transparent;
  font-weight: 600;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

/* Tools, Programs et Learn */
.nv__pill--hub,
.nv__pill--programs,
.nv__pill--learn {
  background-color: transparent;
  border: none;
  border-radius: 0;
  color: #B7DC69;
  position: relative;
}
.nv__pill--hub::before, .nv__pill--hub::after,
.nv__pill--programs::before, .nv__pill--programs::after,
.nv__pill--learn::before, .nv__pill--learn::after {
  content: none;
}

.nv__pill--hub:hover,
.nv__dd:hover .nv__pill--hub,
.nv__pill--programs:hover,
.nv__dd:hover .nv__pill--programs,
.nv__pill--learn:hover,
.nv__dd:hover .nv__pill--learn {
  background-color: transparent;
  border: none;
  color: #B7DC69;
  box-shadow: none;
}

/* Neutralise le hover générique des liens pour ces pills (évite conflit) */
.nv__pill.nv__link:hover{
  background-color: inherit;
}

/* ── Hover explicites : logo + items des menus déroulants ───────────── */
:root{
  --logo-hover:        #cfe88a;
  --logo-hover-glow:   rgba(183,220,105,.55);

  --dd-item-hover-bg:  rgba(183,220,105,.10);
  --dd-item-hover-txt: #ffffff;
  --dd-item-hover-sub: #bfeecf;
}

/* Logo Captain Workout */
.nv__logo:hover,
.nv__logo:focus-visible{
  color: var(--logo-hover);
  text-shadow: 0 0 18px var(--logo-hover-glow);
  outline: none;
}

/* Items des menus déroulants */

/* Titre + meta à l'intérieur d'un item récent */

/* Accessibilité clavier: on reflète le hover */

/* ── Profile Dropdown ─────────────────────────────────────────────────── */
.nv__profile-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  /* ★ Meme hauteur que ".nv-btn" : les deux se cotoient dans la barre et doivent rester d'accord. */
  height: 44px;
  padding: 0 28px 0 16px;
  cursor: pointer;
}
.nv__profile-btn-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #cfe88a;
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nv__profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #172016;
  background: #B7DC69;
  border: 1px solid rgba(255,255,255,.35);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: -.03em;
  box-shadow: 0 0 18px rgba(91,74,158,.18);
}
.nv__profile-avatar--large { width: 44px; height: 44px; font-size: .82rem; }

.nv__pill--profile {
  background-color: rgba(183,220,105,0.10);
  border: 1px solid rgba(183,220,105,0.30);
  border-radius: 999px;
  position: relative;
  transition: background-color .15s ease, border-color .15s ease;
}
.nv__pill--profile:hover,
.nv__dd:hover .nv__pill--profile {
  background-color: rgba(183,220,105,0.18);
  border-color: rgba(183,220,105,0.45);
  box-shadow: none;
}

.nv__dd-menu--profile {
  position: absolute;
  top: calc(100% + 12px);
  z-index: 60;
  width: min(720px, calc(100vw - 32px));
  min-width: 540px;
  right: 0;
  left: auto;
  /* Même fond + blur que la barre (.nvs) */
  background: linear-gradient(rgba(183,220,105,0.045), rgba(183,220,105,0.045)), #181818e3;
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  padding: 10px;
  transform: translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  /* ⚠ Plafonner la hauteur ne suffit pas : sans "flex column" les deux colonnes
     gardent leur hauteur de contenu et debordent par le bas du menu. */
  max-height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
}
.nv__dd-menu--profile.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(6px);
}

/* ── Hub Mega-menu ─────────────────────────────────────────────────── */
.nv__hub-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 260px;
  /* Même fond + blur que la barre (.nvs) */
  background: linear-gradient(rgba(183,220,105,0.045), rgba(183,220,105,0.045)), #181818e3;
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  padding: 20px;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.nv__hub-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nv__hub-grid {
  display: flex;
  gap: 0;
  align-items: flex-start;
}

/* Espace simple entre deux entrées de la barre (desktop) */
.nv__nav-gap {
  flex: 0 0 auto;
  width: 50px;
}

/* Séparateur vertical entre deux entrées de la barre (desktop) */

.nv__link--start {
  color: #B7DC69;
  font-weight: 800;
}
.nv__link--start:hover { color: #d0f18b; }

/* ── Menus Programs / Learn (colonne simple, même habillage que le mega-menu) ── */
.nv__programs-menu,
.nv__learn-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 190px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: linear-gradient(rgba(183,220,105,0.045), rgba(183,220,105,0.045)), #181818e3;
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  padding: 12px;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.nv__programs-menu.is-open,
.nv__learn-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ── Entrées de menu avec icône (Learn + colonne Tools) ── */
.nv__learn-menu { width: 210px; }

.nv__menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  font-size: .88rem;
  transition: background .15s ease, color .15s ease;
}
.nv__menu-link:hover {
  background: rgba(183,220,105,.10);
  color: #fff;
}

.nv__menu-ico {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  opacity: .75;
  transition: opacity .15s ease;
}
.nv__menu-link:hover .nv__menu-ico { opacity: 1; }

/* ── Programs : cartes illustrées (reprend la mise en scène des pages) ── */
.nv__programs-menu { width: 250px; padding: 12px; }

.nv__program-row { display: flex; flex-direction: column; gap: 8px; }

.nv__program-card {
  position: relative;
  display: block;
  min-width: 0;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  transition: background .16s, border-color .16s, transform .16s;
}
.nv__program-card:hover {
  background: rgba(183,220,105,.07);
  border-color: rgba(183,220,105,.22);
  transform: translateY(-2px);
}

/* Perso de la page, en petit, calé à droite */
.nv__program-art {
  position: absolute;
  right: 10px;
  bottom: 0;
  z-index: 1;
  height: 58px;
  width: auto;
  object-fit: contain;
  display: block;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  transition: transform .18s ease;
}
.nv__program-card:hover .nv__program-art { transform: translateY(-2px); }

/* Titre par-dessus, aligné à gauche */
.nv__program-title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 72px 0 14px;
  font-size: .84rem;
  font-weight: 700;
  color: #e4e4e4;
  text-align: left;
  text-shadow: 0 1px 6px rgba(0,0,0,.85);
  transition: color .15s;
}
.nv__program-card:hover .nv__program-title { color: #fff; }

.nv__programs-menu { width: 310px; padding: 14px; }
.nv__programs-menu .nv__hub-label { padding-left: 3px; }
.nv__programs-menu .nv__program-row { margin-bottom: 10px; }
/* Program cards: the gym backdrop fades out toward the title, the program character stands on the right. */
.nv__programs-menu .nv__program-card::before {
  opacity: .45;
  background: url('/images/programs/menu-bg.webp') center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 40%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 40%, #000 100%);
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.nv__programs-menu .nv__program-card:hover::before { opacity: .62; }
.nv__programs-menu .nv__program-title { min-height: 78px; padding-right: 92px; }
.nv__programs-menu .nv__program-title span { display: grid; gap: 3px; }
.nv__programs-menu .nv__program-title small { color: rgba(255,255,255,.52); font-size: .64rem; font-weight: 600; }
.nv__programs-menu .nv__program-art { right: 16px; bottom: 0; height: 76px; max-width: none; object-fit: contain; -webkit-mask-image: none; mask-image: none; }

.nv__hub-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nv__hub-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(183,220,105,.6);
  padding: 0 6px 10px;
}

.nv__hub-all-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  color: #B7DC69;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(183,220,105,.22);
  background-color: rgba(183,220,105,.1);
  transition: background-color .15s, border-color .15s;
}
.nv__hub-all-btn:hover {
  background-color: rgba(183,220,105,.16);
  color: #B7DC69;
}

.nvm__link--start { color:#B7DC69 !important; font-weight:850 !important; }

.site-footer {
  width:min(1240px,calc(100% - 40px));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin:0 auto;
  padding:22px 0 30px;
  border-top:1px solid rgba(255,255,255,.075);
  color:#747b70;
  font-size:.7rem;
}
.site-footer nav { display:flex; flex-wrap:wrap; gap:20px; }
.site-footer a { color:#9eb873; font-weight:700; text-decoration:none; }
.site-footer a:hover { color:#cbed83; }

@media (max-width:760px) {
  .site-footer { width:calc(100% - 24px); align-items:flex-start; flex-direction:column; padding-bottom:24px; }
}

/* ── Notification badge ─────────────────────────────────────────────── */
.nv__notif-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px; border-radius: 999px;
  background: #f74f4f; color: #fff;
  font-size: 11px; font-weight: 700;
  box-shadow: 0 0 0 2px #111;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  pointer-events: none;
}
.nv__notif-badge[hidden] { display: none; }

/* ── Profile dropdown 2-panel layout ──────────────────────────────── */
.nv__panels-titles {
  display: flex;
  align-items: center;
  padding: 0 6px 8px;
  margin-bottom: 4px;
}
.nv__panels-title {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(183,220,105,.6);
}
.nv__panels-title:first-child { padding-right: 16px; }
.nv__panels-title:last-child {
  width: 280px;
  flex: none;
  padding-left: 16px;
}
.nv__profile-panels {
  display: flex;
  gap: 0;
  /* min-height:0 est OBLIGATOIRE sur toute la chaine : par defaut un enfant flex
     refuse de retrecir sous la hauteur de son contenu, et rien ne defile. */
  flex: 1;
  min-height: 0;
}
/* ★ Un ecart LEGER entre les lignes : les notifications comme les profils sont des blocs a fond
   propre, et sans respiration ils se lisent comme un seul pave. "gap" plutot qu'une marge sur chaque
   ligne : rien n'est ajoute avant la premiere ni apres la derniere. */
.nv__notif-panel { flex: 1; min-width: 0; padding-right: 10px; display: flex; flex-direction: column; gap: 4px; min-height: 0; overflow-y: auto; }
.nv__notif-vsep {
  width: 1px; background: rgba(255,255,255,0.08);
  margin: 8px 0; flex-shrink: 0;
}
.nv__profiles-panel { width: 240px; flex-shrink: 0; padding-left: 10px; display: flex; flex-direction: column; gap: 4px; min-height: 0; }
.nv__profiles-panel { width: 280px; }
.nv__account-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px;
  margin-bottom: 5px;
  border-radius: 12px;
  background: rgba(183,220,105,.08);
  border: 1px solid rgba(183,220,105,.2);
}
.nv__account-card div { min-width: 0; }
.nv__account-card strong { display: block; color: #fff; font-size: .95rem; }
.nv__account-card span:not(.nv__profile-avatar) { display: block; color: #858585; font-size: .7rem; margin-top: 2px; }
.nv__account-links { display: grid; gap: 3px; }
.nv__account-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  color: #d8d8d8;
  text-decoration: none;
  font-size: .83rem;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.nv__account-links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nv__account-links a span { width: 18px; color: #B7DC69; text-align: center; }
.nv__profile-dashboard,
.nv__profile-signout {
  display: block;
  padding: 9px 10px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font-size: .8rem;
  font-weight: 700;
}
.nv__profile-dashboard { color: #172016; background: #B7DC69; }
.nv__profile-dashboard:hover { color: #172016; background: #c8e987; }
.nv__profile-signout { color: #8f8f8f; margin-top: 5px; }
.nv__profile-signout:hover { color: #fff; background: rgba(255,255,255,.05); }
/* La liste defile, le pied ne bouge pas. */
.nv__profiles-foot { flex-shrink: 0; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.08); }

.nv__notif-panel::-webkit-scrollbar { width: 10px; }
.nv__notif-panel::-webkit-scrollbar-track { background: transparent; }
.nv__notif-panel::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
}
.nv__notif-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.28);
  background-clip: padding-box;
}

.nv__notif-empty {
  padding: 20px 12px; color: #888; font-size: 13px; text-align: center;
}
.nv__notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 10px; border-radius: 10px; cursor: pointer;
  color: inherit; text-decoration: none;
  transition: background .15s ease;
}
.nv__notif-item:hover { background: rgba(255,255,255,.06); }
.nv__notif-item.is-unread {
  /* ⚠ Le fond suffit a distinguer une notification non lue. Le liseré gauche partait avec un
     "padding-left" reduit de 2 px pour compenser son epaisseur : les deux s'en vont ensemble, sinon
     les lignes non lues resteraient decalees de deux pixels par rapport aux autres. */
  background: rgba(183,220,105,.05);
}
.nv__notif-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.nv__notif-content { display: block; flex: 1; min-width: 0; }
.nv__notif-title { display: block; font-size: 13px; font-weight: 600; color: #e8e8e8; }
.nv__notif-body {
  display: block;
  font-size: 12px; color: #999; margin-top: 2px;
  /* ⚠ Plus de "-webkit-line-clamp" : il coupait a 2 lignes, avec les points de suspension
     et rien pour lire la suite. La colonne defile depuis, la hauteur peut donc etre libre. */
  line-height: 1.45;
  word-break: break-word;
}
.nv__notif-date { display: block; font-size: 11px; color: #666; margin-top: 3px; }
.nv__notif-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #B7DC69; flex-shrink: 0; margin-top: 4px;
}
.nv__notif-markread {
  font-size: 11px; color: #B7DC69; background: none; border: none;
  cursor: pointer; padding: 0; font-weight: 600; opacity: 0.8;
}
.nv__notif-markread:hover { opacity: 1; }

.nvs {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 74px;
  z-index: 48;
  background: #181818e3;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  pointer-events: none;
}

.nvs-sizer {
  position: fixed;
  top: 0; left: -9999px;
  visibility: hidden;
  display: inline-block;
  padding: 15px 26px 9px;
  font-size: 1rem; font-weight: 800; letter-spacing: -0.01em;
  white-space: nowrap;
  pointer-events: none;
}

        .gs__trigger {
          display: inline-flex;
          align-items: center;
          gap: 7px;
          padding: 5px 14px;
          border-radius: 999px;
          border: 1px solid rgba(255,255,255,0.12);
          background: rgba(255,255,255,0.04);
          color: rgba(255,255,255,0.4);
          font-size: 0.8rem;
          font-family: inherit;
          cursor: pointer;
          transition: border-color 0.15s, background 0.15s, color 0.15s;
          white-space: nowrap;
        }
        .gs__trigger:hover {
          border-color: rgba(255,255,255,0.2);
          background: rgba(255,255,255,0.07);
          color: rgba(255,255,255,0.6);
        }
        .gs__trigger svg { width: 13px; height: 13px; flex-shrink: 0; }
        .gs__trigger kbd {
          padding: 1px 6px;
          border-radius: 6px;
          border: 1px solid rgba(255,255,255,0.12);
          background: rgba(255,255,255,0.06);
          font-size: 0.68rem;
          font-family: inherit;
          color: rgba(255,255,255,0.3);
          margin-left: 2px;
        }

        .sr-only {
          position: absolute;
          width: 1px;
          height: 1px;
          padding: 0;
          margin: -1px;
          overflow: hidden;
          clip: rect(0,0,0,0);
          white-space: nowrap;
          border: 0;
        }
        body.has-modal { overflow: hidden; }
        .site-search {
          position: fixed;
          top: min(15vh,120px);
          left: 50%;
          width: min(660px,calc(100vw - 28px));
          max-height: min(720px,76dvh);
          margin: 0;
          padding: 0;
          overflow: hidden;
          transform: translateX(-50%);
          border: 1px solid rgba(183,220,105,.24);
          border-radius: 20px;
          color: #eef1e9;
          background: #131612;
          box-shadow: 0 30px 100px rgba(0,0,0,.72), inset 0 1px rgba(255,255,255,.035);
        }
        .site-search::backdrop { background: rgba(3,5,3,.8); backdrop-filter: blur(6px); }
        .site-search__box { display: flex; min-height: 0; max-height: min(720px,76dvh); flex-direction: column; }
        .site-search header {
          display: flex;
          align-items: center;
          gap: 12px;
          padding: 16px 18px;
          border-bottom: 1px solid rgba(255,255,255,.075);
        }
        .site-search header svg { width: 21px; height: 21px; flex: 0 0 auto; color: #89917f; }
        .site-search input {
          min-width: 0;
          flex: 1;
          padding: 5px 0;
          border: 0;
          outline: 0;
          color: #f4f6f1;
          background: transparent;
          font: inherit;
          font-size: 1rem;
        }
        .site-search input::placeholder { color: #686e63; }
        .site-search header button {
          width: 34px;
          height: 34px;
          padding: 0;
          flex: 0 0 auto;
          border: 1px solid rgba(255,255,255,.08);
          border-radius: 50%;
          color: #a8aea2;
          background: rgba(255,255,255,.035);
          font-size: 1.25rem;
        }
        .site-search__hint {
          margin: 0;
          padding: 13px 18px 7px;
          color: #7d8477;
          font-size: .67rem;
          font-weight: 800;
          letter-spacing: .1em;
          text-transform: uppercase;
        }
        .site-search__results {
          display: grid;
          gap: 5px;
          min-height: 120px;
          padding: 4px 10px 12px;
          overflow-y: auto;
          overscroll-behavior: contain;
        }
        .site-search__results a {
          display: flex;
          align-items: center;
          justify-content: space-between;
          gap: 18px;
          padding: 12px 13px;
          border: 1px solid transparent;
          border-radius: 12px;
          color: inherit;
          text-decoration: none;
        }
        .site-search__results a:hover,
        .site-search__results a:focus-visible {
          outline: none;
          border-color: rgba(74,114,176,.18);
          background: rgba(74,114,176,.07);
        }
        .site-search__results a span { min-width: 0; }
        .site-search__results strong,
        .site-search__results small { display: block; }
        .site-search__results strong { color: #eef3e8; font-size: .88rem; }
        .site-search__results small { margin-top: 3px; color: #838a7d; font-size: .73rem; line-height: 1.35; }
        .site-search__results em {
          flex: 0 0 auto;
          color: #a9ca63;
          font-size: .63rem;
          font-style: normal;
          font-weight: 800;
          letter-spacing: .06em;
          text-transform: uppercase;
        }
        .site-search__empty { margin: auto; padding: 30px 18px; color: #7c8277; text-align: center; font-size: .82rem; }
        .site-search footer {
          display: flex;
          gap: 16px;
          padding: 10px 18px;
          border-top: 1px solid rgba(255,255,255,.065);
          color: #696f65;
          font-size: .65rem;
        }
        .site-search footer span { display: inline-flex; align-items: center; gap: 4px; }
        .site-search footer kbd {
          min-width: 21px;
          padding: 2px 5px;
          border: 1px solid rgba(255,255,255,.1);
          border-radius: 5px;
          color: #9aa292;
          background: rgba(255,255,255,.04);
          text-align: center;
        }

        @media (max-width: 600px) {
          .site-search { top: 76px; max-height: calc(100dvh - 92px); border-radius: 16px; }
          .site-search__box { max-height: calc(100dvh - 92px); }
          .site-search footer { display: none; }
          .site-search__results a { align-items: flex-start; }
        }

        /* Sous 1600 : version compacte (icône + Ctrl K), sans le libellé */
        @media (max-width: 1600px) {
          .gs__trigger { padding: 5px 10px; gap: 6px; }
          .gs__trigger-label { display: none; }
        }

        /* Sous 1500 : plus de place, on masque le bouton */
        @media (max-width: 1500px) {
          .gs__trigger { display: none; }
        }

        

/* ──────────────────────────────────────────────
   Bascule desktop / mobile — le site d'origine
   monte la nav complète au-delà de 1400px et le
   burger en dessous (React, `window.innerWidth < 1400`).
   Ici c'est la même bascule, en CSS.
   ────────────────────────────────────────────── */
.nv__center,
.nv__right { display: none; }
.nv__burger { display: grid; }

@media (min-width: 1400px) {
  .nv__center { display: inline-grid; }
  .nv__right { display: inline-flex; }
  .nv__burger { display: none; }
  .nvm { display: none; }
}

/* Les accordéons du menu mobile sont repliés par défaut : `.nvm__sub`
   déclare `display:flex`, ce qui l'emporte sur le `[hidden]` de l'UA. */
.nvm__sub[hidden] { display: none; }
