/* ── Barre de navigation globale MacroVisionPRO (partagée sur toutes les pages) ── */
:root { --mv-acc: #4be28e; --mv-acc-rgb: 75,226,142; }

.mv-nav {
  position: sticky; top: 0; z-index: 200; padding: 0 26px;
  background: rgba(18, 14, 9, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #2c2421;
  font-family: Geist, system-ui, sans-serif;
}
.mv-nav-inner {
  max-width: 1210px; margin: 0 auto; height: 56px;
  display: flex; align-items: center; gap: 20px;
}

/* marque */
.mv-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.mv-brand .mv-logo {
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  background: linear-gradient(135deg, rgba(var(--mv-acc-rgb), 0.9), rgba(var(--mv-acc-rgb), 0.4));
  display: flex; align-items: center; justify-content: center; color: #0e1a12;
}
.mv-brand .mv-name { font-size: 15.5px; font-weight: 600; letter-spacing: -0.015em; color: #f3eee9; white-space: nowrap; }
.mv-brand .mv-name .pro { color: var(--mv-acc); font-weight: 700; }

/* catégories + menus déroulants */
.mv-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.mv-cat { position: relative; }
.mv-cat-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border: none; cursor: pointer;
  background: transparent; border-radius: 8px; text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px; letter-spacing: 0.05em; font-weight: 600; color: #9a8d83;
  transition: background .12s, color .12s;
}
.mv-cat-btn:hover { background: rgba(250, 242, 232, 0.05); color: #e7ddd3; }
.mv-cat-btn .chev { display: flex; color: #6f655d; transition: transform .15s; }
.mv-cat.open .mv-cat-btn { background: rgba(250, 242, 232, 0.05); color: #f0e9e2; }
.mv-cat.open .mv-cat-btn .chev { transform: rotate(180deg); }
.mv-cat-btn.has-active { color: #f4dfcb; }

.mv-drop {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 216px;
  background: #1c1712; border: 1px solid #342c27; border-radius: 11px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55); padding: 6px; z-index: 210;
  display: none; animation: mvIn .14s ease;
}
.mv-cat.open .mv-drop { display: block; }
@keyframes mvIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mv-drop a {
  display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 7px; text-decoration: none;
  font-size: 14px; color: #cdbfb4; transition: background .1s, color .1s;
}
.mv-drop a:hover { background: rgba(250, 242, 232, 0.05); color: #f0e9e2; }
.mv-drop a.active { background: rgba(var(--mv-acc-rgb), 0.1); color: #f0e9e2; }
.mv-drop a .dot { width: 6px; height: 6px; border-radius: 50%; background: #4f463f; flex: none; }
.mv-drop a.active .dot { background: var(--mv-acc); box-shadow: 0 0 7px rgba(var(--mv-acc-rgb), 0.6); }

/* Page à part : le Brief Quotidien. Lien direct, sans menu déroulant. Typographie identique aux
   catégories — c'est le séparateur, et l'absence de chevron, qui le placent hors de la série. */
.mv-sep { width: 1px; height: 20px; background: #332b26; margin: 0 9px; flex: none; }
.mv-solo {
  display: inline-flex; align-items: center; height: 34px; padding: 0 13px; flex: none;
  border-radius: 8px; text-decoration: none; text-transform: uppercase; white-space: nowrap;
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px; letter-spacing: 0.05em; font-weight: 600;
  color: #9a8d83; transition: background .12s, color .12s;
}
.mv-solo:hover { background: rgba(250, 242, 232, 0.05); color: #e7ddd3; }
.mv-solo.active { color: #f4dfcb; }

/* actions à droite */
.mv-actions { display: flex; align-items: center; gap: 9px; flex: none; margin-left: auto; }
.mv-icon {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid #2c2421; background: #1a1513; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #9a8d83; transition: color .12s, border-color .12s;
}
.mv-icon:hover { color: #e7ddd3; border-color: #463b34; }
.mv-btn {
  height: 34px; padding: 0 14px; border-radius: 8px; cursor: pointer;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.04em; font-weight: 600;
  transition: filter .12s, background .12s;
}
.mv-btn.ghost { background: transparent; border: 1px solid #342c27; color: #cdbfb4; }
.mv-btn.ghost:hover { border-color: #5a4d44; color: #f0e9e2; }
.mv-btn.solid { background: var(--mv-acc); border: 1px solid var(--mv-acc); color: #0e1a12; }
.mv-btn.solid:hover { filter: brightness(1.08); }

/* popover réglages */
.mv-set { position: relative; }
.mv-set-pop {
  position: absolute; right: 0; top: calc(100% + 8px); width: 210px;
  background: #1c1712; border: 1px solid #342c27; border-radius: 11px; box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
  padding: 6px; z-index: 210; display: none; animation: mvIn .14s ease;
}
.mv-set.open .mv-set-pop { display: block; }
.mv-set-pop .lbl { padding: 8px 11px 5px; font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.1em; color: #6f655d; }
.mv-set-pop button {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 11px; border: none; border-radius: 7px; cursor: pointer;
  background: transparent; color: #cdbfb4; font-family: Geist, system-ui, sans-serif; font-size: 13px; text-align: left; transition: background .1s;
}
.mv-set-pop button:hover { background: rgba(250, 242, 232, 0.05); color: #f0e9e2; }
.mv-set-pop .soon { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 8px; letter-spacing: 0.05em; color: #6f655d; background: #211c19; border: 1px solid #322a25; padding: 2px 5px; border-radius: 4px; }

/* modale auth */
.mv-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(3px); z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; }
.mv-overlay.open { display: flex; }
.mv-modal {
  width: 372px; max-width: 100%; background: #1c1712; border: 1px solid #342c27; border-radius: 16px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65); padding: 24px; animation: mvIn .16s ease; position: relative;
}
.mv-modal .mv-close { position: absolute; top: 16px; right: 16px; width: 28px; height: 28px; border-radius: 7px; border: none; background: transparent; cursor: pointer; color: #8f8379; display: flex; align-items: center; justify-content: center; }
.mv-modal .mv-close:hover { background: #241e1b; color: #e7ddd3; }
.mv-modal h2 { margin: 2px 0 3px; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; color: #f3eee9; }
.mv-modal .sub { font-size: 12.5px; color: #8f8379; }
.mv-tabs { display: flex; gap: 2px; background: #171310; border: 1px solid #2c2421; border-radius: 9px; padding: 3px; margin: 18px 0 16px; }
.mv-tabs button { flex: 1; height: 34px; border: none; border-radius: 6px; cursor: pointer; background: transparent; color: #8f8379; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.05em; font-weight: 600; }
.mv-tabs button.active { background: #322a25; color: #f4dfcb; }
.mv-field { margin-bottom: 12px; }
.mv-field label { display: block; font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.08em; color: #7a6f66; margin-bottom: 6px; }
.mv-field input {
  width: 100%; height: 40px; padding: 0 13px; background: #130d0b; border: 1px solid #2c2421; border-radius: 9px;
  color: #ece7e2; font-family: Geist, system-ui, sans-serif; font-size: 13.5px; outline: none; transition: border-color .12s;
}
.mv-field input:focus { border-color: rgba(var(--mv-acc-rgb), 0.45); }
.mv-field input::placeholder { color: #5f564e; }
.mv-submit { width: 100%; height: 42px; margin-top: 4px; border: none; border-radius: 10px; cursor: pointer; background: var(--mv-acc); color: #0e1a12; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.05em; font-weight: 700; transition: filter .12s; }
.mv-submit:hover { filter: brightness(1.08); }
.mv-note { margin-top: 14px; padding: 10px 12px; background: rgba(231, 201, 140, 0.08); border: 1px solid rgba(231, 201, 140, 0.24); border-radius: 9px; font-size: 11.5px; line-height: 1.5; color: #c9b89a; }

@media (max-width: 880px) {
  .mv-cat-btn .label-long { display: none; }
  .mv-brand .mv-name { font-size: 14px; }
  .mv-nav-inner { gap: 10px; padding: 0 14px; }
}

/* ── Logo officiel MacroVisionPRO (mark radar + mot) ── */
@keyframes mvpRadarSpin { to { transform: rotate(360deg); } }
.mvp-logo { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.mvp-logo__mark { position: relative; width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1.5px solid rgba(var(--acc-rgb, 75,226,142), 0.3); overflow: hidden; }
.mvp-logo__mark::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(var(--acc-rgb, 75,226,142), 0.55), transparent 32%); animation: mvpRadarSpin 4s linear infinite; }
.mvp-logo__mark::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: var(--acc, #4be28e); }
.mvp-logo__word { font-family: Geist, system-ui, sans-serif; font-weight: 600; font-size: 23px; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.mvp-logo__word b { font-weight: 600; color: var(--acc, #4be28e); }
.mvp-logo__word i { font-weight: 600; font-style: normal; color: #f3eee9; }
@media (prefers-reduced-motion: reduce) { .mvp-logo__mark::before { animation: none; } }

/* taille adaptée à la barre de nav */
.mv-nav .mvp-logo { gap: 9px; flex: none; }
.mv-nav .mvp-logo__mark { width: 28px; height: 28px; border-width: 1.4px; }
.mv-nav .mvp-logo__mark::after { width: 4px; height: 4px; margin: -2px; }
.mv-nav .mvp-logo__word { font-size: 20.2px; }
/* Connecté (classe mv-auth posée par nav.js / landing.js) → logo +4 % */
.mv-nav.mv-auth .mvp-logo__word { font-size: 21px; }
