/* =========================================================
   VARIABLES – DARK (encre sumi-e + néon HK)
   ========================================================= */
:root, [data-theme="dark"] {
  --bg: #1a0a0a;
  --bg-grad:
    radial-gradient(circle at 15% 0%, #3d1515 0%, transparent 50%),
    radial-gradient(circle at 85% 100%, #2a1010 0%, transparent 50%),
    linear-gradient(180deg, #1a0a0a 0%, #0f0606 100%);
  --surface: #2a1212;
  --surface-2: #3a1a1a;
  --surface-glass: rgba(42, 18, 18, 0.78);
  --accent: #d62828;
  --accent-hover: #f77f00;
  --accent-soft: rgba(214, 40, 40, 0.2);
  --neon: #00b4d8;
  --neon-soft: rgba(0, 180, 216, 0.15);
  --gold: #ffd60a;
  --gold-soft: rgba(255, 214, 10, 0.12);
  --pivoine: #e63946;
  --peche: #f4a261;
  --jade: #2a9d8f;
  --text: #fff5e6;
  --text-muted: #d4b8a8;
  --border: #4a2020;
  --border-soft: rgba(255, 214, 10, 0.12);
  --warning: #ffd60a;
  --danger: #e63946;
  --success: #2a9d8f;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 24px rgba(0, 180, 216, 0.2);
  --radius: 0.5rem;
  --radius-pill: 999px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23ffd60a' stroke-width='0.5' opacity='0.08'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z'/%3E%3Cpath d='M30 10 L50 30 L30 50 L10 30 Z'/%3E%3Cpath d='M30 20 L40 30 L30 40 L20 30 Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* =========================================================
   VARIABLES – LIGHT (washi clair)
   ========================================================= */
[data-theme="light"] {
  --bg: #fff8f0;
  --bg-grad:
    radial-gradient(circle at 15% 0%, #ffe8d6 0%, transparent 50%),
    radial-gradient(circle at 85% 100%, #ffd9c9 0%, transparent 50%),
    linear-gradient(180deg, #fff8f0 0%, #ffeedd 100%);
  --surface: #ffffff;
  --surface-2: #fff0e0;
  --surface-glass: rgba(255, 255, 255, 0.88);
  --accent: #d62828;
  --accent-hover: #b81d1d;
  --accent-soft: rgba(214, 40, 40, 0.12);
  --neon: #0077b6;
  --neon-soft: rgba(0, 119, 182, 0.1);
  --gold: #d4a017;
  --gold-soft: rgba(212, 160, 23, 0.1);
  --pivoine: #e63946;
  --peche: #f4a261;
  --jade: #2a9d8f;
  --text: #2b1a14;
  --text-muted: #7a5a4a;
  --border: #f0d8c0;
  --border-soft: rgba(0, 0, 0, 0.06);
  --warning: #d4a017;
  --danger: #b81d1d;
  --success: #21867a;
  --shadow: 0 8px 24px rgba(120, 50, 20, 0.12);
  --shadow-glow: 0 0 20px rgba(0, 119, 182, 0.12);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23d4a017' stroke-width='0.5' opacity='0.1'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z'/%3E%3Cpath d='M30 10 L50 30 L30 50 L10 30 Z'/%3E%3Cpath d='M30 20 L40 30 L30 40 L20 30 Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ========== BASE ========== */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  background-image: var(--pattern), var(--bg-grad);
  background-attachment: fixed;
  background-size: 60px 60px, auto, auto;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--safe-bottom);
  transition: background-color var(--transition), color var(--transition);
}

.vh-wrapper { max-width: 960px; margin: 0 auto; padding: calc(1rem + var(--safe-top)) 1rem 1.5rem; }
@media (min-width: 768px) { .vh-wrapper { padding: 2rem 1.5rem; } }

/* ========== HEADER ========== */
..vh-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.85rem 0.5rem 0.85rem;
  margin: -1rem -1rem 1rem;
  background: var(--surface-glass);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 1px 0 var(--border-soft), var(--shadow-glow);
}
@media (min-width: 768px) { .vh-header { margin: -2rem -1.5rem 1rem; padding: 1rem 1.5rem; } }

.vh-header-row { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.vh-brand { display: flex; align-items: center; gap: 0.75rem; }

.vh-brand-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  box-shadow: 0 0 16px var(--accent-soft), inset 0 1px 0 rgba(255,255,255,0.2);
  transform: rotate(-8deg);
  transition: transform var(--transition);
  position: relative;
}
.vh-brand-icon::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0.4;
}
.vh-brand:hover .vh-brand-icon { transform: rotate(0deg) scale(1.08); }

.vh-header h1 {
  margin: 0;
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  position: relative;
  padding-left: 0.85rem;
}
/* Accent vertical (inspiration kanji) */
.vh-header h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--gold) 100%);
  box-shadow: 0 0 8px var(--accent-soft);
}
.vh-brand:hover .vh-brand-icon { transform: rotate(0deg) scale(1.05); }

.vh-header h1 {
  margin: 0;
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, var(--text) 0%, var(--accent-hover) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.vh-subtitle { margin: 0.15rem 0 0; display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.vh-pill-mini {
  display: inline-block; padding: 0.1rem 0.5rem; border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--text); font-size: 0.72rem;
  font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
}
.vh-pill-mini--muted { color: var(--text-muted); }

.vh-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.vh-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  cursor: pointer; transition: all var(--transition); padding: 0; min-height: auto; margin: 0;
}
.vh-icon-btn:hover { border-color: var(--accent); color: var(--accent-hover); transform: translateY(-1px); }

.vh-subtitle { margin: 0.15rem 0 0; display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.vh-pill-mini {
  display: inline-block; padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  border: 1px solid var(--border-soft);
}
.vh-pill-mini--muted { color: var(--text-muted); }

.vh-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.vh-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  padding: 0; min-height: auto; margin: 0;
}
.vh-icon-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 0 12px var(--accent-soft);
}

.vh-status {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition);
}
.vh-status::before {
  content: "";
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.vh-trip-bar { margin-top: 0.85rem; display: flex; align-items: center; gap: 0.75rem; }
.vh-trip-bar-track {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--surface-2);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}
.vh-trip-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--neon));
  background-size: 200% 100%;
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  animation: shimmer 3s linear infinite;
  box-shadow: 0 0 8px var(--accent-soft);
}
@keyframes shimmer {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}
.vh-trip-bar-label { font-size: 0.72rem; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: 0.02em; }

/* ========== NAV ========== */
.vh-nav { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; padding-bottom: 0.5rem; margin: 0.5rem 0 1rem; }
.vh-nav-group { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; padding-left: 0.75rem; border-left: 1px solid var(--border-soft); }
.vh-nav-group:first-child { padding-left: 0; border-left: none; }
.vh-nav-group-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-right: 0.25rem; white-space: nowrap; font-weight: 600; }
.vh-nav-group--end { margin-left: auto; }

.vh-nav button {
  flex-shrink: 0; border: 1px solid transparent;
  padding: 0.55rem 0.95rem; border-radius: var(--radius-pill);
  background: var(--surface); color: var(--text); cursor: pointer;
  font-size: 0.85rem; font-family: inherit;
  transition: all var(--transition); white-space: nowrap; min-height: 40px;
}
.vh-nav { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; padding-bottom: 0.5rem; margin: 0.5rem 0 1rem; }
.vh-nav-group { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; padding-left: 0.75rem; border-left: 1px solid var(--border-soft); }
.vh-nav-group:first-child { padding-left: 0; border-left: none; }
.vh-nav-group-label {
  font-size: 0.62rem; text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-right: 0.25rem;
  white-space: nowrap; font-weight: 700;
  opacity: 0.9;
}
.vh-nav-group--end { margin-left: auto; }

.vh-nav button {
  flex-shrink: 0;
  border: 1px solid var(--border);
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 0.82rem;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  white-space: nowrap;
  min-height: 40px;
  position: relative;
}
.vh-nav button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  transition: opacity var(--transition);
  pointer-events: none;
}
.vh-nav button:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-soft);
}
.vh-nav button:hover::after { opacity: 1; }
.vh-nav button:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
.vh-nav button.vh-nav-active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  font-weight: 700;
  border-color: var(--accent-hover);
  box-shadow: 0 4px 16px var(--accent-soft), 0 0 0 1px var(--gold) inset;
}
.vh-nav button.vh-nav-active::after { opacity: 0; }

.vh-nav-btn-return { border-color: var(--danger) !important; color: var(--danger) !important; }
.vh-nav-btn-return:hover { background: var(--danger) !important; color: #fff !important; }
.vh-nav-btn-return.vh-nav-active { background: var(--danger) !important; color: #fff !important; box-shadow: 0 4px 16px rgba(217, 79, 79, 0.4); }

@media (max-width: 640px) {
  .vh-nav { gap: 0.5rem; }
  .vh-nav-group {
    padding-left: 0; border-left: none; width: 100%;
    overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.35rem;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .vh-nav-group::-webkit-scrollbar { display: none; }
  .vh-nav-group-label { display: none; }
  .vh-nav-group--end { margin-left: 0; }
}

/* ========== MAIN ========== */
.vh-main {
  background: var(--surface);
  padding: 1.25rem;
  border-radius: var(--radius);
  min-height: 380px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
  transition: background-color var(--transition);
}
/* Coin doré style japonais */
.vh-main::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 60px; height: 60px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  opacity: 0.25;
  border-top-left-radius: var(--radius);
  pointer-events: none;
}
.vh-main::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 60px; height: 60px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  opacity: 0.25;
  border-bottom-right-radius: var(--radius);
  pointer-events: none;
}
@media (min-width: 768px) { .vh-main { padding: 1.75rem 2rem; } }

.vh-view { display: none; animation: fadeIn 0.35s ease; }
.vh-view-active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
  position: relative;
  padding-left: 0.85rem;
}
h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--gold));
}

h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}
[data-theme="light"] h2 { color: var(--accent); }
.vh-muted { color: var(--text-muted); font-size: 0.9rem; margin-top: 0; }
.vh-small { font-size: 0.8rem; }
.vh-divider { height: 1px; background: var(--border-soft); margin: 1.5rem 0; }

/* ========== CARTES DASHBOARD ========== */
.vh-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.vh-card {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 1rem 1.1rem;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.vh-card::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 30px; height: 30px;
  background: radial-gradient(circle at top right, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.vh-card:hover {
  transform: translateY(-2px);
  border-left-color: var(--gold);
  box-shadow: 0 6px 20px var(--accent-soft);
}
.vh-card-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 700;
  opacity: 0.9;
}
.vh-card strong { font-size: 1.1rem; font-weight: 700; color: var(--text); letter-spacing: 0.01em; }

.vh-dash-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border-soft); }

.vh-btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.95rem; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: transparent; color: var(--text);
  font-size: 0.85rem; font-weight: 500; cursor: pointer;
  transition: all var(--transition); margin-top: 0; min-height: auto;
}
.vh-btn-ghost:hover { border-color: var(--accent); color: var(--accent-hover); background: var(--accent-soft); }
.vh-btn-file { cursor: pointer; }

/* ========== CHECKLIST ========== */
.vh-checklist { list-style: none; padding: 0; margin: 0.75rem 0; }
.vh-checklist li {
  margin-bottom: 0.5rem; padding: 0.65rem 0.85rem;
  border-radius: var(--radius); background: var(--surface-2);
  transition: background var(--transition), transform 0.15s;
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}
.vh-checklist li:hover { background: var(--border); }
.vh-checklist label { display: flex; align-items: center; gap: 0.65rem; margin: 0; cursor: pointer; font-size: 0.95rem; color: var(--text); flex: 1; min-height: 28px; }
.vh-checklist input[type="checkbox"] { width: 1.25rem; height: 1.25rem; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.vh-checklist label:has(input:checked) span { text-decoration: line-through; opacity: 0.55; }
.vh-checklist input[type="checkbox"]:checked { animation: pop 0.3s ease; }
@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* ========== FORMULAIRES ========== */
label { display: block; margin: 0.75rem 0; font-size: 0.9rem; color: var(--text-muted); }
input[type="text"], input[type="number"], input[type="date"], input[type="time"], input[type="datetime-local"], select, textarea {
  width: 100%; margin-top: 0.35rem; padding: 0.65rem 0.8rem;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 1rem;
  font-family: inherit; transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 44px;
}
[data-theme="light"] input, [data-theme="light"] select, [data-theme="light"] textarea { background: #fafbfc; }
select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-right: 2rem;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 100px; resize: vertical; }

.vh-form-grid { display: grid; grid-template-columns: 1fr; gap: 0.25rem 1rem; }
@media (min-width: 640px) {
  .vh-form-grid { grid-template-columns: 1fr 1fr; }
  .vh-form-grid label:nth-child(3) { grid-column: 1 / -1; }
}

/* ========== BOUTONS ========== */
button { font-family: inherit; font-size: 0.95rem; cursor: pointer; }
.vh-main button:not(.vh-icon-btn):not(.vh-btn-ghost):not(.vh-btn-file):not(.note-del):not(.vh-map-zoom):not(.vh-map-tab):not(.vh-notes-filter):not(.vh-day-pill):not(.vh-share-btn) {
  margin-top: 0.75rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--accent-hover);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.82rem;
  transition: all var(--transition);
  min-height: 44px;
  position: relative;
  overflow: hidden;
}
.vh-main button:not(.vh-icon-btn):not(.vh-btn-ghost):not(.vh-btn-file):not(.note-del):not(.vh-map-zoom):not(.vh-map-tab):not(.vh-notes-filter):not(.vh-day-pill):not(.vh-share-btn)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition);
}
.vh-main button:not(.vh-icon-btn):not(.vh-btn-ghost):not(.vh-btn-file):not(.note-del):not(.vh-map-zoom):not(.vh-map-tab):not(.vh-notes-filter):not(.vh-day-pill):not(.vh-share-btn):hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-soft), 0 0 0 1px var(--gold);
}
.vh-main button:not(.vh-icon-btn):not(.vh-btn-ghost):not(.vh-btn-file):not(.note-del):not(.vh-map-zoom):not(.vh-map-tab):not(.vh-notes-filter):not(.vh-day-pill):not(.vh-share-btn):hover::after { opacity: 1; }
.vh-main button:active { transform: scale(0.98); }

/* ========== TOTAL / WARNING ========== */
.vh-total { margin-top: 1rem; font-size: 1rem; }
#data-total { font-weight: 700; color: var(--accent-hover); }
[data-theme="light"] #data-total { color: var(--accent); }
.vh-warning { color: var(--warning); margin-top: 0.75rem; min-height: 1.2em; font-size: 0.9rem; }

/* ========== NOTES ========== */
.vh-notes-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.vh-notes-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: 0.92rem;
  word-break: break-word;
  animation: fadeIn 0.25s ease;
  transition: all var(--transition);
  position: relative;
}
.vh-notes-list li::before {
  content: "";
  position: absolute;
  left: -3px; top: 0; bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(180deg, var(--accent), var(--gold));
}
.vh-notes-list li:hover {
  transform: translateX(3px);
  box-shadow: 0 2px 12px var(--accent-soft);
  border-left-color: var(--gold);
}

/* ========== BUDGET ========== */
.vh-budget-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.75rem; margin: 0.5rem 0 1rem; }
.vh-budget-card { padding: 0.9rem 1rem; background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: 0.5rem; transition: all var(--transition); }
.vh-budget-card strong { display: block; font-size: 1.3rem; color: var(--accent-hover); margin-top: 0.25rem; font-variant-numeric: tabular-nums; }
[data-theme="light"] .vh-budget-card strong { color: var(--accent); }
.vh-budget-card--warning { border-left-color: var(--warning); }
.vh-budget-card--warning strong { color: var(--warning) !important; }
.vh-budget-card--danger { border-left-color: var(--danger); }
.vh-budget-card--danger strong { color: var(--danger) !important; }
.vh-conv-result { font-size: 1.1rem; font-weight: 600; color: var(--accent-hover); margin-top: 0.5rem; font-variant-numeric: tabular-nums; }
[data-theme="light"] .vh-conv-result { color: var(--accent); }

/* ========== JOUR PAR JOUR ========== */
.vh-days-header { display: flex; gap: 1rem; align-items: end; margin-bottom: 0.75rem; flex-wrap: wrap; }
.vh-days-header label { margin: 0; flex: 1; min-width: 150px; }
.vh-day-pill {
  min-width: 44px; min-height: 44px;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.vh-day-pill:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px var(--accent-soft);
}
.vh-day-pill.vh-day-pill--active {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  border-color: var(--accent-hover);
  font-weight: 700;
  box-shadow: 0 4px 16px var(--accent-soft), 0 0 0 1px var(--gold) inset;
}
.vh-day-pill.has-notes { border-color: var(--gold); }
.vh-day-pill.has-notes::after {
  content: "";
  position: absolute;
  top: 3px; right: 3px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
}
  content: ""; position: absolute; top: 4px; right: 4px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent-hover);
}

/* ========== SANTÉ / BATTERIE ========== */
.vh-battery-box {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; background: var(--surface-2);
  border-left: 3px solid var(--success); border-radius: 0.6rem;
  margin-bottom: 0.75rem; flex-wrap: wrap;
}
.vh-battery-box strong { font-size: 1.15rem; color: var(--success); }

/* ========== RETOUR ========== */
.vh-danger-zone { margin-top: 2rem; padding: 1rem; background: rgba(231, 76, 60, 0.08); border: 1px solid rgba(231, 76, 60, 0.3); border-radius: var(--radius); }
.vh-danger-zone h3 { margin-top: 0; color: var(--danger); }

/* ========== CARTES SVG ========== */
.vh-map-tabs { display: flex; gap: 0.4rem; margin: 0.75rem 0 1rem; flex-wrap: wrap; }
.vh-map-tab {
  padding: 0.5rem 0.95rem; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); cursor: pointer; font-size: 0.85rem;
  transition: all var(--transition); margin: 0; min-height: 40px;
}
.vh-map-tab:hover { border-color: var(--accent); }
.vh-map-tab--active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }

.vh-map-wrap {
  position: relative; background: var(--surface-2);
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 5; border: 1px solid var(--border-soft);
}
#vh-map-svg { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; user-select: none; transition: transform 0.15s ease-out; }
#vh-map-svg:active { cursor: grabbing; }
#vh-map-svg .land {
  fill: var(--surface-2);
  stroke: var(--gold);
  stroke-width: 1.2;
  opacity: 0.7;
  transition: fill 0.2s;
}
[data-theme="light"] #vh-map-svg .land {
  fill: rgba(184, 146, 58, 0.08);
  stroke: var(--gold);
}
#vh-map-svg .city {
  fill: var(--accent-hover);
  stroke: var(--surface);
  stroke-width: 2;
  cursor: pointer;
  transition: r 0.2s, fill 0.2s;
}
[data-theme="light"] #vh-map-svg .city { fill: var(--accent); }
#vh-map-svg .city:hover { r: 8; fill: var(--gold); }
#vh-map-svg .city.has-note { fill: var(--gold); }
#vh-map-svg .city-label {
  fill: var(--text);
  font-size: 9px;
  font-family: system-ui, sans-serif;
  pointer-events: none;
  text-anchor: middle;
  font-weight: 600;
  letter-spacing: 0.02em;
}
#vh-map-svg .transport-line { transition: opacity 0.2s, stroke-width 0.2s; }
#vh-map-svg .transport-line:hover { opacity: 1 !important; stroke-width: 3; }
#vh-map-svg .transport-line.is-dimmed { opacity: 0.1 !important; }
#vh-map-svg .transport-line.is-highlighted {
  opacity: 1 !important;
  stroke-width: 4 !important;
  filter: drop-shadow(0 0 6px currentColor);
}

.vh-map-wrap {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border-soft);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.3);
}

.vh-poi-panel {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  animation: fadeIn 0.25s ease;
  box-shadow: 0 4px 16px var(--accent-soft);
}

.vh-map-legend {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.4rem 1rem;
  font-size: 0.78rem;
  animation: fadeIn 0.25s ease;
}

/* ========== PLEIN ÉCRAN CARTE ========== */
.vh-map-wrap:fullscreen, .vh-map-wrap:-webkit-full-screen {
  aspect-ratio: unset; width: 100vw; height: 100vh;
  border-radius: 0; background: var(--bg);
}
.vh-map-wrap:fullscreen #vh-map-svg, .vh-map-wrap:-webkit-full-screen #vh-map-svg { height: 100%; }
.vh-map-wrap.vh-map-fallback-fullscreen {
  position: fixed; inset: 0; z-index: 9999;
  border-radius: 0; aspect-ratio: unset; background: var(--bg);
}

/* ========== PLANNING ========== */
.vh-plan-list { display: flex; flex-direction: column; gap: 0.4rem; margin: 1rem 0; min-height: 60px; }
.vh-plan-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0.85rem; background: var(--surface-2);
  border-left: 3px solid var(--accent); border-radius: 0.5rem;
  animation: fadeIn 0.2s ease;
}
.vh-plan-item.done { opacity: 0.55; }
.vh-plan-item.done .vh-plan-text { text-decoration: line-through; }
.vh-plan-time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--accent-hover); min-width: 3.2rem; font-size: 0.9rem; }
[data-theme="light"] .vh-plan-time { color: var(--accent); }
.vh-plan-text { flex: 1; font-size: 0.95rem; }
.vh-plan-item input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); cursor: pointer; }
.vh-plan-add { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.vh-plan-add input[type="time"] { width: auto; min-width: 110px; margin-top: 0; flex: 0 0 auto; }
.vh-plan-add input[type="text"] { margin-top: 0; flex: 1; min-width: 140px; }
.vh-plan-add button { margin-top: 0; min-width: 44px; padding: 0.7rem 1rem; }

.vh-airplane-banner {
  padding: 0.75rem 1rem; background: var(--accent-soft);
  border-left: 3px solid var(--accent); border-radius: 0.5rem;
  font-size: 0.9rem; margin-bottom: 1rem; color: var(--text);
}

/* ========== COMPTE À REBOURS VOL ========== */
.vh-flight-info { padding: 0.9rem 1rem; background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: var(--radius); margin-bottom: 1rem; }
.vh-flight-countdown { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border-soft); }
.vh-flight-countdown strong { font-size: 1.4rem; color: var(--accent-hover); font-variant-numeric: tabular-nums; transition: color var(--transition); }
[data-theme="light"] .vh-flight-countdown strong { color: var(--accent); }
.vh-flight-countdown.urgent strong { color: var(--warning); }
.vh-flight-countdown.critical strong { color: var(--danger); }

/* ========== TOUTES LES NOTES ========== */
.vh-allnotes-filters { display: flex; gap: 0.4rem; margin: 0.75rem 0 1rem; flex-wrap: wrap; }
.vh-notes-filter {
  padding: 0.45rem 0.9rem; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); cursor: pointer; font-size: 0.82rem;
  transition: all var(--transition); margin: 0; min-height: 38px;
}
.vh-notes-filter:hover { border-color: var(--accent); }
.vh-notes-filter.vh-notes-filter--active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.vh-allnotes-list { display: flex; flex-direction: column; gap: 0.5rem; }
.vh-allnotes-item { padding: 0.75rem 0.9rem; background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: 0.5rem; animation: fadeIn 0.2s ease; }
.vh-allnotes-item.type-day { border-left-color: var(--accent-hover); }
.vh-allnotes-item.type-poi { border-left-color: var(--warning); }
.vh-allnotes-meta { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 600; }
.vh-allnotes-text { font-size: 0.95rem; word-break: break-word; line-height: 1.4; }

/* ========== RÉSUMÉ ========== */
.vh-summary-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.vh-summary-header h2 { margin: 0 0 0.25rem; }
.vh-summary-content { display: flex; flex-direction: column; gap: 1rem; }
.vh-summary-block { padding: 0.9rem 1rem; background: var(--surface-2); border-radius: var(--radius); border-left: 4px solid var(--accent); }
.vh-summary-block--critical { border-left-color: var(--danger); }
.vh-summary-block--warning { border-left-color: var(--warning); }
.vh-summary-block--good { border-left-color: var(--success); }
.vh-summary-block h3 { margin: 0 0 0.5rem; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 700; }
.vh-summary-line { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.3rem 0; font-size: 0.92rem; border-bottom: 1px solid var(--border-soft); }
.vh-summary-line:last-child { border-bottom: none; }
.vh-summary-line strong { color: var(--text); font-variant-numeric: tabular-nums; }
.vh-summary-line .vh-summary-val { color: var(--accent-hover); font-weight: 600; }
[data-theme="light"] .vh-summary-line .vh-summary-val { color: var(--accent); }
.vh-summary-empty { font-size: 0.88rem; color: var(--text-muted); font-style: italic; padding: 0.4rem 0; }
.vh-summary-list { list-style: none; padding: 0; margin: 0; }
.vh-summary-list li { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0; font-size: 0.9rem; }
.vh-summary-list li::before { content: "○"; color: var(--warning); font-size: 0.8rem; flex-shrink: 0; }
.vh-summary-list li.done::before { content: "✓"; color: var(--success); font-weight: 700; }

/* ========== PARTAGE ========== */
.vh-share-btn {
  background: transparent; border: none; color: var(--text-muted);
  font-size: 1rem; padding: 0.3rem 0.5rem; cursor: pointer;
  transition: color var(--transition), transform var(--transition);
  min-height: auto; line-height: 1; border-radius: 0.4rem;
}
.vh-share-btn:hover { color: var(--accent-hover); background: var(--accent-soft); transform: scale(1.1); }
[data-theme="light"] .vh-share-btn:hover { color: var(--accent); }

/* ========== TOAST ========== */
.vh-toast {
  position: fixed; bottom: calc(2rem + var(--safe-bottom)); left: 50%;
  transform: translate(-50%, 20px); padding: 0.65rem 1.2rem;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--accent); border-radius: var(--radius-pill);
  box-shadow: var(--shadow); font-size: 0.88rem; font-weight: 500;
  z-index: 2000; opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.vh-toast.vh-toast--visible { opacity: 1; transform: translate(-50%, 0); }

/* ========== FOOTER ========== */
.vh-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.05em;
}
.vh-footer-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
  box-shadow: 0 0 6px var(--gold);
}

/* ========== BANDEAU MAJ PWA ========== */
.vh-pwa-update {
  position: fixed; left: 50%; bottom: calc(1rem + var(--safe-bottom));
  transform: translateX(-50%); display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 1rem; background: var(--surface-2);
  border: 1px solid var(--accent); border-radius: var(--radius-pill);
  box-shadow: var(--shadow); font-size: 0.9rem; z-index: 1000;
  animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideUp { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
.vh-pwa-update button { margin: 0; padding: 0.4rem 0.9rem; min-height: auto; border: none; border-radius: var(--radius-pill); background: var(--accent); color: #fff; font-weight: 600; cursor: pointer; font-size: 0.85rem; }
.vh-pwa-update button:hover { background: var(--accent-hover); }

/* ========== VIGNETTES MODULES ========== */
.modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.module-card {
  display: block; padding: 1.25rem 1.5rem;
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border-soft); text-decoration: none;
  color: var(--text); transition: all var(--transition); box-shadow: var(--shadow);
}
.module-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 10px 30px var(--accent-soft); }
.module-card h3 { margin: 0 0 0.4rem; color: var(--accent-hover); }
[data-theme="light"] .module-card h3 { color: var(--accent); }
.module-card p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

/* ========== IMPRESSION ========== */
@media print {
  @page { size: A4 portrait; margin: 1.5cm; }
  body { background: #fff !important; color: #000 !important; font-size: 11pt; padding: 0; }
  .vh-header, .vh-nav, .vh-footer, .vh-pwa-update, .vh-map-tabs,
  .vh-map-controls, .vh-poi-panel, .vh-dash-actions, #airplane-banner,
  .vh-main > section:not(#view-maps):not(#view-predeparture) { display: none !important; }
  .vh-wrapper { max-width: 100%; padding: 0; }
  .vh-main { background: #fff !important; box-shadow: none !important; padding: 0 !important; min-height: auto !important; }
  #view-maps, #view-predeparture { display: block !important; padding: 0 !important; }
  #view-maps h2, #view-predeparture h2 {
    color: #000 !important; font-size: 16pt;
    margin: 0 0 0.5cm; border-bottom: 1px solid #000; padding-bottom: 0.2cm;
  }
  .vh-map-wrap { aspect-ratio: 4 / 5 !important; border: 1px solid #ccc !important; background: #fff !important; page-break-inside: avoid; max-height: 18cm; }
  #vh-map-svg .land { fill: #e8f4f3 !important; stroke: #45a29e !important; }
  #vh-map-svg .city { fill: #0b0c10 !important; stroke: #fff !important; }
  #vh-map-svg .city-label { fill: #000 !important; font-weight: 600; }
  #vh-map-svg .transport-line { opacity: 0.85 !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .vh-map-legend { background: #f5f5f5 !important; border: 1px solid #ccc !important; page-break-inside: avoid; margin-top: 0.5cm; }
  .vh-legend-row { color: #000 !important; }
  .vh-legend-dot { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  svg * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }

  body.vh-printing-summary .vh-main > section:not(#view-predeparture) { display: none !important; }
  body.vh-printing-summary #view-predeparture .vh-summary-header button { display: none !important; }
  body.vh-printing-summary .vh-summary-block { background: #fff !important; border: 1px solid #ccc !important; border-left-width: 4px !important; page-break-inside: avoid; margin-bottom: 0.4cm; }
  body.vh-printing-summary .vh-summary-block h3 { color: #333 !important; }
  body.vh-printing-summary .vh-summary-line { border-bottom: 1px solid #eee !important; color: #000 !important; }
  body.vh-printing-summary .vh-summary-val { color: #000 !important; font-weight: 700; }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
/* =========================================================
   ARRONDISSEMENTS TOKYO (zoom ≥ 1.8)
   ========================================================= */
#vh-map-svg .ward-label {
  fill: var(--gold);
  font-size: 6px;
  font-family: system-ui, sans-serif;
  text-anchor: middle;
  font-weight: 500;
  letter-spacing: 0.05em;
  opacity: 0.9;
  pointer-events: none;
  text-transform: uppercase;
}
[data-theme="light"] #vh-map-svg .ward-label {
  fill: var(--accent);
  opacity: 0.7;
}

/* =========================================================
   TEMPLES KYOTO (zoom ≥ 1.5)
   ========================================================= */
#vh-map-svg .temple-icon {
  cursor: pointer;
  transition: transform 0.2s;
  filter: drop-shadow(0 0 2px var(--accent));
}
#vh-map-svg .temple-icon:hover {
  filter: drop-shadow(0 0 6px var(--gold));
}
#vh-map-svg .temple-label {
  fill: var(--text);
  font-size: 6px;
  font-family: system-ui, sans-serif;
  text-anchor: middle;
  font-weight: 500;
  pointer-events: none;
  opacity: 0.85;
}
[data-theme="light"] #vh-map-svg .temple-label { opacity: 0.75; }
#vh-map-svg .temples-layer g { cursor: pointer; }
#vh-map-svg .temples-layer g:hover .temple-label { fill: var(--gold); }

/* =========================================================
   CARTES AMÉLIORÉES — eau / fleuve / décor / halo / label-bg
   ========================================================= */
#vh-map-svg .water {
  fill: rgba(0, 229, 255, 0.08);
  stroke: var(--neon);
  stroke-width: 0.8;
  stroke-dasharray: 2 2;
  opacity: 0.7;
}
[data-theme="light"] #vh-map-svg .water {
  fill: rgba(0, 122, 138, 0.08);
  stroke: var(--neon);
}
#vh-map-svg .river {
  fill: none;
  stroke: var(--neon);
  stroke-width: 2;
  opacity: 0.5;
  stroke-linecap: round;
}
#vh-map-svg .decor {
  fill: var(--gold);
  opacity: 0.2;
  stroke: var(--gold);
  stroke-width: 0.5;
}
#vh-map-svg .city-halo {
  fill: var(--accent);
  opacity: 0.15;
  pointer-events: none;
}
#vh-map-svg .city-label-bg {
  fill: var(--surface);
  opacity: 0.85;
  pointer-events: none;
  transition: opacity 0.2s;
}
[data-theme="light"] #vh-map-svg .city-label-bg {
  fill: var(--surface);
  opacity: 0.9;
}
#vh-map-svg g:hover .city-label-bg { opacity: 1; }
/* =========================================================
   HANKO (sceau rouge japonais)
   ========================================================= */
#view-dashboard { position: relative; }

.vh-hanko {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 0.3rem;
  transform: rotate(3deg);
  opacity: 0.65;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  letter-spacing: 0;
  pointer-events: none;
  box-shadow: inset 0 0 8px var(--accent-soft);
}
[data-theme="light"] .vh-hanko { opacity: 0.5; }
/* =========================================================
   EFFET LANTERNE (glow rouge subtil sur header)
   ========================================================= */
.vh-header::before {
  content: "";
  position: absolute;
  top: -20px;
  right: 20%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  animation: lanternGlow 4s ease-in-out infinite;
}
@keyframes lanternGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

/* =========================================================
   BADGE "MODE AVION" stylé lanterne
   ========================================================= */
.vh-airplane-banner {
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--gold-soft, rgba(224, 184, 76, 0.08)) 100%);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: 1rem;
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.vh-airplane-banner::before {
  content: "🏮";
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  opacity: 0.5;
}
.vh-sakura {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: var(--radius);
}
.vh-sakura span {
  position: absolute;
  top: -20px;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle at 30% 30%, #ffd1dc, #ff9eb5);
  border-radius: 50% 0 50% 0;
  opacity: 0.35;
  animation: sakuraFall 12s linear infinite;
}
.vh-sakura span:nth-child(1) { left: 10%; animation-delay: 0s; }
.vh-sakura span:nth-child(2) { left: 30%; animation-delay: 3s; animation-duration: 15s; }
.vh-sakura span:nth-child(3) { left: 55%; animation-delay: 6s; animation-duration: 13s; }
.vh-sakura span:nth-child(4) { left: 75%; animation-delay: 2s; animation-duration: 16s; }
.vh-sakura span:nth-child(5) { left: 90%; animation-delay: 8s; animation-duration: 14s; }

@keyframes sakuraFall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0.35; }
  100% { transform: translateY(500px) rotate(360deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .vh-sakura { display: none; }
}
/* =========================================================
   URGENCES
   ========================================================= */
.vh-emergency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
  margin: 0.75rem 0 1.5rem;
}
.vh-emergency-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
}
.vh-emergency-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--accent-soft);
}
.vh-emergency-card--jp { border-left: 3px solid var(--accent); }
.vh-emergency-card--hk { border-left: 3px solid var(--neon); }
.vh-emergency-card--fr { border-left: 3px solid var(--gold); }
.vh-emergency-flag { font-size: 1.4rem; }
.vh-emergency-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.vh-emergency-card strong {
  font-size: 1.1rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

/* Phrases */
.vh-phrases {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.vh-phrases li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.vh-phrases li:hover {
  border-left-color: var(--gold);
  transform: translateX(2px);
}
.vh-phrase-text { flex: 1; display: flex; flex-direction: column; gap: 0.15rem; }
.vh-phrase-fr { font-size: 0.9rem; font-weight: 500; }
.vh-phrase-jp {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", system-ui, serif;
}
.vh-phrase-jp em { font-style: italic; color: var(--gold); }
.vh-phrase-play {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition);
  margin: 0;
  min-height: auto;
  padding: 0;
  flex-shrink: 0;
}
.vh-phrase-play:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  transform: scale(1.1);
}

/* =========================================================
   eSIM
   ========================================================= */
.vh-esim-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.75rem 0 1.5rem;
}
.vh-esim-card {
  display: block;
  padding: 0.85rem 1rem;
  background: var(--surface-2);
  border-left: 3px solid var(--neon);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
}
.vh-esim-card:hover {
  border-left-color: var(--gold);
  transform: translateX(2px);
  box-shadow: 0 4px 16px var(--accent-soft);
}
.vh-esim-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}
.vh-esim-country { font-size: 0.9rem; font-weight: 600; }
.vh-esim-head strong { color: var(--gold); font-variant-numeric: tabular-nums; }
.vh-esim-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}
/* =========================================================
   SHINKANSEN
   ========================================================= */
.vh-shinkansen {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
}
.vh-shinkansen li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-soft);
}
.vh-shinkansen li:last-child { border-bottom: none; }
.vh-line-dot {
  display: inline-block;
  width: 14px;
  height: 4px;
  border-radius: 2px;
  flex-shrink: 0;
}
.vh-shinkansen strong { color: var(--gold); }
/* =========================================================
   URGENCES
   ========================================================= */
.vh-emergency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
  margin: 0.75rem 0 1.5rem;
}
.vh-emergency-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
}
.vh-emergency-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--accent-soft);
}
.vh-emergency-card--jp { border-left: 3px solid var(--accent); }
.vh-emergency-card--hk { border-left: 3px solid var(--neon); }
.vh-emergency-card--fr { border-left: 3px solid var(--gold); }
.vh-emergency-flag { font-size: 1.4rem; }
.vh-emergency-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.vh-emergency-card strong {
  font-size: 1.1rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.vh-phrases {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.vh-phrases li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.vh-phrases li:hover {
  border-left-color: var(--gold);
  transform: translateX(2px);
}
.vh-phrase-text { flex: 1; display: flex; flex-direction: column; gap: 0.15rem; }
.vh-phrase-fr { font-size: 0.9rem; font-weight: 500; }
.vh-phrase-jp {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", system-ui, serif;
}
.vh-phrase-jp em { font-style: italic; color: var(--gold); }
.vh-phrase-play {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition);
  margin: 0;
  min-height: auto;
  padding: 0;
  flex-shrink: 0;
}
.vh-phrase-play:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  transform: scale(1.1);
}

/* =========================================================
   eSIM
   ========================================================= */
.vh-esim-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.75rem 0 1.5rem;
}
.vh-esim-card {
  display: block;
  padding: 0.85rem 1rem;
  background: var(--surface-2);
  border-left: 3px solid var(--neon);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
}
.vh-esim-card:hover {
  border-left-color: var(--gold);
  transform: translateX(2px);
  box-shadow: 0 4px 16px var(--accent-soft);
}
.vh-esim-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}
.vh-esim-country { font-size: 0.9rem; font-weight: 600; }
.vh-esim-head strong { color: var(--gold); font-variant-numeric: tabular-nums; }
.vh-esim-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

/* =========================================================
   SHINKANSEN
   ========================================================= */
.vh-shinkansen {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
}
.vh-shinkansen li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-soft);
}
.vh-shinkansen li:last-child { border-bottom: none; }
.vh-line-dot {
  display: inline-block;
  width: 14px;
  height: 4px;
  border-radius: 2px;
  flex-shrink: 0;
}
.vh-shinkansen strong { color: var(--gold); }

/* ========== PARTAGE + TOAST ========== */
.vh-toast {
  position: fixed; bottom: calc(2rem + var(--safe-bottom)); left: 50%;
  transform: translate(-50%, 20px); padding: 0.65rem 1.2rem;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--gold); border-radius: var(--radius-pill);
  box-shadow: var(--shadow); font-size: 0.88rem; font-weight: 500;
  z-index: 2000; opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.vh-toast.vh-toast--visible { opacity: 1; transform: translate(-50%, 0); }

/* ========== BANNIÈRE MODE AVION ========== */
.vh-airplane-banner {
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--gold-soft) 100%);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  font-size: 0.88rem; margin-bottom: 1rem;
  color: var(--text); position: relative; overflow: hidden;
}
.vh-airplane-banner::before {
  content: "🏮"; position: absolute;
  right: 0.75rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem; opacity: 0.5;
}

/* ========== FOOTER ========== */
.vh-footer {
  margin-top: 2rem; text-align: center;
  font-size: 0.72rem; color: var(--text-muted);
  display: flex; justify-content: center; align-items: center; gap: 0.5rem;
  letter-spacing: 0.05em;
}
.vh-footer-dot {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--gold);
  opacity: 0.6; box-shadow: 0 0 6px var(--gold);
}

/* ========== BANDEAU MAJ PWA ========== */
.vh-pwa-update {
  position: fixed; left: 50%; bottom: calc(1rem + var(--safe-bottom));
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--gold);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow); font-size: 0.9rem; z-index: 1000;
  animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.vh-pwa-update button {
  margin: 0; padding: 0.4rem 0.9rem; min-height: auto;
  border: none; border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff; font-weight: 600; cursor: pointer; font-size: 0.85rem;
}

/* ========== VIGNETTES MODULES ========== */
.modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.module-card {
  display: block; padding: 1.25rem 1.5rem;
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border-soft); text-decoration: none;
  color: var(--text); transition: all var(--transition); box-shadow: var(--shadow);
}
.module-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 10px 30px var(--accent-soft); }
.module-card h3 { margin: 0 0 0.4rem; color: var(--gold); }
.module-card p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

/* ========== IMPRESSION ========== */
@media print {
  @page { size: A4 portrait; margin: 1.5cm; }
  body { background: #fff !important; color: #000 !important; font-size: 11pt; padding: 0; }
  .vh-header, .vh-nav, .vh-footer, .vh-pwa-update, .vh-map-tabs,
  .vh-map-controls, .vh-poi-panel, .vh-dash-actions, #airplane-banner,
  .vh-main > section:not(#view-maps):not(#view-predeparture) { display: none !important; }
  .vh-wrapper { max-width: 100%; padding: 0; }
  .vh-main { background: #fff !important; box-shadow: none !important; padding: 0 !important; min-height: auto !important; }
  #view-maps, #view-predeparture { display: block !important; padding: 0 !important; }
  #view-maps h2, #view-predeparture h2 { color: #000 !important; font-size: 16pt; margin: 0 0 0.5cm; border-bottom: 1px solid #000; padding-bottom: 0.2cm; }
  .vh-map-wrap { aspect-ratio: 4 / 5 !important; border: 1px solid #ccc !important; background: #fff !important; page-break-inside: avoid; max-height: 18cm; }
  #vh-map-svg .land { fill: #e8f4f3 !important; stroke: #45a29e !important; }
  #vh-map-svg .city { fill: #0b0c10 !important; stroke: #fff !important; }
  #vh-map-svg .city-label { fill: #000 !important; font-weight: 600; }
  #vh-map-svg .transport-line { opacity: 0.85 !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .vh-map-legend { background: #f5f5f5 !important; border: 1px solid #ccc !important; page-break-inside: avoid; margin-top: 0.5cm; }
  .vh-legend-row { color: #000 !important; }
  .vh-legend-dot { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  svg * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  body.vh-printing-summary .vh-main > section:not(#view-predeparture) { display: none !important; }
  body.vh-printing-summary #view-predeparture .vh-summary-header button { display: none !important; }
  body.vh-printing-summary .vh-summary-block { background: #fff !important; border: 1px solid #ccc !important; border-left-width: 4px !important; page-break-inside: avoid; margin-bottom: 0.4cm; }
  body.vh-printing-summary .vh-summary-block h3 { color: #333 !important; }
  body.vh-printing-summary .vh-summary-line { border-bottom: 1px solid #eee !important; color: #000 !important; }
  body.vh-printing-summary .vh-summary-val { color: #000 !important; font-weight: 700; }
}

/* ========== SAKURA (pétales animés) ========== */
.vh-sakura { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: var(--radius); }
.vh-sakura span {
  position: absolute; top: -20px;
  width: 8px; height: 8px;
  background: radial-gradient(circle at 30% 30%, #ffd1dc, #ff9eb5);
  border-radius: 50% 0 50% 0;
  opacity: 0.35;
  animation: sakuraFall 12s linear infinite;
}
.vh-sakura span:nth-child(1) { left: 10%; animation-delay: 0s; }
.vh-sakura span:nth-child(2) { left: 30%; animation-delay: 3s; animation-duration: 15s; }
.vh-sakura span:nth-child(3) { left: 55%; animation-delay: 6s; animation-duration: 13s; }
.vh-sakura span:nth-child(4) { left: 75%; animation-delay: 2s; animation-duration: 16s; }
.vh-sakura span:nth-child(5) { left: 90%; animation-delay: 8s; animation-duration: 14s; }
@keyframes sakuraFall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0.35; }
  100% { transform: translateY(500px) rotate(360deg); opacity: 0; }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .vh-sakura { display: none; }
}
/* =========================================================
   HORLOGE MULTI-FUSEAUX
   ========================================================= */
.vh-clocks {
  display: inline-flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
}

.vh-clock {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  transition: all var(--transition);
}

.vh-clock:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.vh-clock-flag {
  font-size: 0.85rem;
  line-height: 1;
}

.vh-clock-time {
  font-weight: 600;
  color: var(--text);
}

/* Optionnel : mettre en avant le fuseau "actif" (le pays où on est) */
.vh-clock--active {
  border-color: var(--gold);
  background: var(--gold-soft);
  box-shadow: 0 0 8px var(--gold-soft);
}
.vh-clock--active .vh-clock-time {
  color: var(--gold);
}
/* =========================================================
   VIBRANCE ASIATIQUE – Accents de couleur supplémentaires
   ========================================================= */

/* Header : dégradé rouge profond → laque */
.vh-header {
  background: linear-gradient(180deg, rgba(42, 18, 18, 0.85) 0%, rgba(26, 10, 10, 0.85) 100%);
}
[data-theme="light"] .vh-header {
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.92) 0%, rgba(255, 238, 221, 0.92) 100%);
}

/* Halo lanterne plus vif */
.vh-header::before {
  background: radial-gradient(circle, rgba(230, 57, 70, 0.4) 0%, transparent 70%);
}

/* Logo : rouge pur, cercle lumineux */
.vh-brand-icon {
  background: radial-gradient(circle at 30% 30%, #f77f00 0%, #d62828 50%, #a01616 100%);
  box-shadow: 0 0 20px rgba(214, 40, 40, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}
.vh-brand-icon::after {
  border-color: var(--gold);
  opacity: 0.7;
}

/* Titre header : plus contrasté */
.vh-header h1 {
  color: #fff5e6;
  text-shadow: 0 0 20px rgba(247, 127, 0, 0.3);
}
[data-theme="light"] .vh-header h1 {
  color: #d62828;
  text-shadow: none;
}
.vh-header h1::before {
  background: linear-gradient(180deg, #d62828 0%, #ffd60a 100%);
  box-shadow: 0 0 12px rgba(214, 40, 40, 0.5);
}

/* Nav : état actif plus pétant */
.vh-nav button.vh-nav-active {
  background: linear-gradient(135deg, #d62828 0%, #f77f00 100%);
  box-shadow: 0 4px 16px rgba(214, 40, 40, 0.4), 0 0 0 1px var(--gold) inset;
}
.vh-nav-group-label {
  color: #ffd60a;
  text-shadow: 0 0 8px rgba(255, 214, 10, 0.3);
}

/* Cartes dashboard : bordure gauche colorée par position */
.vh-card:nth-child(1) { border-left-color: #d62828; }
.vh-card:nth-child(2) { border-left-color: #f77f00; }
.vh-card:nth-child(3) { border-left-color: #ffd60a; }
.vh-card:nth-child(4) { border-left-color: #00b4d8; }
.vh-card:nth-child(5) { border-left-color: #2a9d8f; }
.vh-card:nth-child(6) { border-left-color: #e63946; }

.vh-card:hover {
  border-left-color: #ffd60a;
  box-shadow: 0 6px 20px rgba(214, 40, 40, 0.25);
}

/* Boutons principaux : dégradé vermillon → orange */
.vh-main button:not(.vh-icon-btn):not(.vh-btn-ghost):not(.vh-btn-file):not(.note-del):not(.vh-map-zoom):not(.vh-map-tab):not(.vh-notes-filter):not(.vh-day-pill):not(.vh-share-btn):not(.vh-phrase-play) {
  background: linear-gradient(135deg, #d62828 0%, #f77f00 100%);
  border-color: #f77f00;
}
.vh-main button:hover {
  background: linear-gradient(135deg, #f77f00 0%, #ffd60a 100%);
  box-shadow: 0 6px 20px rgba(247, 127, 0, 0.4), 0 0 0 1px var(--gold);
}

/* Bouton danger : rouge pivoine plus vif */
.vh-btn-danger {
  background: linear-gradient(135deg, #e63946 0%, #c1121f 100%) !important;
}
.vh-btn-danger:hover {
  background: linear-gradient(135deg, #ff4d6d 0%, #e63946 100%) !important;
}

/* Notes : bordure gauche arc-en-ciel alternée */
.vh-notes-list li:nth-child(4n+1) { border-left-color: #d62828; }
.vh-notes-list li:nth-child(4n+2) { border-left-color: #f77f00; }
.vh-notes-list li:nth-child(4n+3) { border-left-color: #ffd60a; }
.vh-notes-list li:nth-child(4n+4) { border-left-color: #00b4d8; }

.vh-notes-list li:hover {
  border-left-color: #ffd60a;
  box-shadow: 0 2px 12px rgba(214, 40, 40, 0.3);
}

/* Budget cards : couleurs distinctes */
.vh-budget-card:nth-child(1) {
  border-left-color: #00b4d8;
}
.vh-budget-card:nth-child(2) {
  border-left-color: #f77f00;
}
.vh-budget-card:nth-child(3) {
  border-left-color: #2a9d8f;
}

/* Jour pill actif : vermillon → or */
.vh-day-pill.vh-day-pill--active {
  background: linear-gradient(135deg, #d62828 0%, #f77f00 100%);
  border-color: #f77f00;
  box-shadow: 0 4px 16px rgba(214, 40, 40, 0.4), 0 0 0 1px #ffd60a inset;
}
.vh-day-pill.has-notes {
  border-color: #ffd60a;
}
.vh-day-pill.has-notes::after {
  background: #ffd60a;
  box-shadow: 0 0 8px #ffd60a;
}

/* Checklist cochée : coche jade */
.vh-checklist input[type="checkbox"]:checked {
  accent-color: #2a9d8f;
}
.vh-checklist input[type="checkbox"] {
  accent-color: #d62828;
}

/* Badge réseau en ligne : vert jade vif */
#network-status[style*="#45a29e"] {
  background: #2a9d8f !important;
  color: #fff;
}

/* Arrondissements Tokyo : dorés lumineux */
#vh-map-svg .ward-label {
  fill: #ffd60a;
  opacity: 1;
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.8));
}
[data-theme="light"] #vh-map-svg .ward-label {
  fill: #d4a017;
  opacity: 0.9;
}

/* Temples Kyoto : icônes pivoine */
#vh-map-svg .temple-icon {
  filter: drop-shadow(0 0 4px #e63946);
}
#vh-map-svg .temple-icon:hover {
  filter: drop-shadow(0 0 8px #f77f00);
}

/* Villes : points plus vifs */
#vh-map-svg .city {
  fill: #f77f00;
  stroke: #fff5e6;
}
#vh-map-svg .city:hover {
  fill: #ffd60a;
}
#vh-map-svg .city.has-note {
  fill: #ffd60a;
}

/* Urgences : cartes ultra colorées */
.vh-emergency-card--jp {
  border-left: 4px solid #e63946;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.08), transparent);
}
.vh-emergency-card--hk {
  border-left: 4px solid #f77f00;
  background: linear-gradient(135deg, rgba(247, 127, 0, 0.08), transparent);
}
.vh-emergency-card--fr {
  border-left: 4px solid #ffd60a;
  background: linear-gradient(135deg, rgba(255, 214, 10, 0.08), transparent);
}
.vh-emergency-card strong {
  color: #ffd60a;
  text-shadow: 0 0 10px rgba(255, 214, 10, 0.3);
}

/* Boutons audio : cercle rouge lumineux */
.vh-phrase-play {
  border-color: #d62828;
  color: #d62828;
}
.vh-phrase-play:hover {
  background: #d62828;
  color: #fff5e6;
  box-shadow: 0 0 12px rgba(214, 40, 40, 0.5);
}

/* Horloges : pastilles colorées */
.vh-clock {
  border-color: rgba(255, 214, 10, 0.2);
}
.vh-clock--active {
  border-color: #ffd60a;
  background: linear-gradient(135deg, rgba(214, 40, 40, 0.2), rgba(247, 127, 0, 0.2));
  box-shadow: 0 0 12px rgba(255, 214, 10, 0.3);
}
.vh-clock--active .vh-clock-time {
  color: #ffd60a;
  text-shadow: 0 0 6px rgba(255, 214, 10, 0.4);
}

/* Hanko (sceau) : rouge plus profond */
.vh-hanko {
  color: #e63946;
  border-color: #e63946;
  box-shadow: inset 0 0 12px rgba(230, 57, 70, 0.3), 0 0 12px rgba(230, 57, 70, 0.2);
}

/* Sakura : rose plus vif */
.vh-sakura span {
  background: radial-gradient(circle at 30% 30%, #ffb3c6, #ff4d6d);
  opacity: 0.5;
}

/* Trip bar : dégradé multicolore */
.vh-trip-bar-fill {
  background: linear-gradient(90deg, #d62828, #f77f00, #ffd60a, #00b4d8);
  background-size: 300% 100%;
}
/* =========================================================
   CORRECTION CONTRASTE — Thème clair : remplacer l'or par du brun/or foncé
   ========================================================= */
[data-theme="light"] {
  /* Variable dédiée au texte "doré" sur fond clair */
  --gold-text: #b8860b;      /* or foncé, lisible sur blanc */
  --gold-text-strong: #8b6508; /* encore plus foncé pour les gros titres */
}

/* Tous les textes qui utilisent --gold en thème clair */
[data-theme="light"] h3,
[data-theme="light"] .vh-nav-group-label,
[data-theme="light"] .vh-card-label,
[data-theme="light"] .vh-emergency-card strong,
[data-theme="light"] .vh-esim-head strong,
[data-theme="light"] .vh-shinkansen strong,
[data-theme="light"] .vh-plan-time,
[data-theme="light"] .vh-phrase-jp em,
[data-theme="light"] .vh-clock--active .vh-clock-time,
[data-theme="light"] .vh-budget-card strong,
[data-theme="light"] .vh-conv-result,
[data-theme="light"] .vh-flight-countdown strong,
[data-theme="light"] #data-total,
[data-theme="light"] .vh-poi-header strong,
[data-theme="light"] .vh-summary-line .vh-summary-val {
  color: var(--gold-text) !important;
}

/* Titres principaux (h2, h1) : on garde le rouge, plus lisible */
[data-theme="light"] .vh-header h1 {
  color: #d62828;
}

/* Marqueurs de carte : or plus foncé sur fond clair */
[data-theme="light"] #vh-map-svg .ward-label {
  fill: #b8860b;
  filter: none;
  opacity: 0.9;
}
[data-theme="light"] #vh-map-svg .city-label {
  fill: #2b1a14;
  font-weight: 700;
}
[data-theme="light"] #vh-map-svg .temple-label {
  fill: #2b1a14;
  font-weight: 600;
  opacity: 0.9;
}

/* Horloge active : or foncé */
[data-theme="light"] .vh-clock--active {
  border-color: #b8860b;
  background: linear-gradient(135deg, rgba(214, 40, 40, 0.1), rgba(247, 127, 0, 0.1));
}
[data-theme="light"] .vh-clock--active .vh-clock-time {
  color: #8b6508;
  text-shadow: none;
}

/* Hanko : rouge plus sombre pour ressortir */
[data-theme="light"] .vh-hanko {
  color: #a01616;
  border-color: #a01616;
  box-shadow: inset 0 0 12px rgba(160, 22, 22, 0.15), 0 0 12px rgba(160, 22, 22, 0.15);
}

/* Cartes d'urgence : doré plus foncé */
[data-theme="light"] .vh-emergency-card strong {
  text-shadow: none;
}

/* Éviter les halos trop lumineux en clair */
[data-theme="light"] .vh-nav-group-label {
  text-shadow: none;
}

/* Boutons principaux : dégradé plus contrasté */
[data-theme="light"] .vh-main button:not(.vh-icon-btn):not(.vh-btn-ghost):not(.vh-btn-file):not(.note-del):not(.vh-map-zoom):not(.vh-map-tab):not(.vh-notes-filter):not(.vh-day-pill):not(.vh-share-btn):not(.vh-phrase-play) {
  background: linear-gradient(135deg, #d62828 0%, #e63946 100%);
  color: #ffffff;
  border-color: #c1121f;
}

[data-theme="light"] .vh-main button:not(.vh-icon-btn):not(.vh-btn-ghost):not(.vh-btn-file):not(.note-del):not(.vh-map-zoom):not(.vh-map-tab):not(.vh-notes-filter):not(.vh-day-pill):not(.vh-share-btn):not(.vh-phrase-play):hover {
  background: linear-gradient(135deg, #c1121f 0%, #d62828 100%);
  box-shadow: 0 6px 20px rgba(193, 18, 31, 0.3);
}

/* Nav active en clair : contraste fort */
[data-theme="light"] .vh-nav button.vh-nav-active {
  background: linear-gradient(135deg, #d62828 0%, #e63946 100%);
  color: #ffffff;
  border-color: #c1121f;
}

/* Jour pill actif en clair */
[data-theme="light"] .vh-day-pill.vh-day-pill--active {
  background: linear-gradient(135deg, #d62828 0%, #e63946 100%);
  color: #ffffff;
  border-color: #c1121f;
}

/* Texte dans les cartes budget : lisible */
[data-theme="light"] .vh-budget-card--warning strong {
  color: #8b6508 !important;
}
[data-theme="light"] .vh-budget-card--danger strong {
  color: #b81d1d !important;
}

/* Compte à rebours vol urgent/critical : reste lisible */
[data-theme="light"] .vh-flight-countdown.urgent strong {
  color: #b8860b;
}
[data-theme="light"] .vh-flight-countdown.critical strong {
  color: #b81d1d;
}

/* Phrases : kanji en or foncé */
[data-theme="light"] .vh-phrase-jp em {
  color: #8b6508;
  font-weight: 600;
}

/* Points des cities sur carte en clair : garder visible */
[data-theme="light"] #vh-map-svg .city {
  fill: #d62828;
  stroke: #fff8f0;
}

[data-theme="light"] #vh-map-svg .city:hover,
[data-theme="light"] #vh-map-svg .city.has-note {
  fill: #b8860b;
}

/* Bordure dorée des cartes dashboard en clair : plus soutenue */
[data-theme="light"] .vh-card:hover {
  border-left-color: #b8860b;
}