/* ===== L'Été 2026 — carnet de voyage ===== */

:root {
  --paper: #faf3e3;
  --paper-deep: #f3e8d0;
  --ink: #1f3a4d;
  --ink-soft: #4d6376;
  --accent: #e8632b;
  --accent-soft: #fbe0d2;
  --gold: #e8a83d;
  --pine: #2e7d6b;
  --card: #fffdf7;
  --line: #e3d5b8;
  --shadow: 0 2px 8px rgba(31, 58, 77, .08), 0 12px 32px rgba(31, 58, 77, .07);

  --c-papi: #e8a83d;
  --c-opi: #2e7d6b;
  --c-corse: #7e6baa;
  --c-roadtrip: #e8632b;
  --c-work: #b04a3a;
  --c-admin: #5a7d9a;
  --c-voyage: #3f6fa3;
  --c-autres: #c98ba6;

  --f-display: "Fraunces", Georgia, serif;
  --f-body: "Karla", "Helvetica Neue", sans-serif;
  --f-mono: "Spline Sans Mono", monospace;
}

html[data-theme="night"] {
  --paper: #101d2e;
  --paper-deep: #0b1522;
  --ink: #f2e8d5;
  --ink-soft: #a3b2c2;
  --accent: #ff7a3d;
  --accent-soft: #3a2417;
  --gold: #f0b75a;
  --pine: #4fa893;
  --card: #182a3f;
  --line: #2b3f56;
  --shadow: 0 2px 8px rgba(0, 0, 0, .35), 0 14px 36px rgba(0, 0, 0, .3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.55;
  transition: background .4s ease, color .4s ease;
}

/* paper grain */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, header, nav, footer { position: relative; z-index: 1; }

::selection { background: var(--accent); color: #fff; }

/* ===== Nav ===== */
#nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 36px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 700; font-style: italic;
  font-size: 1.25rem; color: var(--ink); text-decoration: none;
}
.nav-sun {
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold), var(--accent));
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent);
}
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600;
  font-size: .92rem; letter-spacing: .02em;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.nav-links a:hover { color: var(--accent); border-color: var(--accent); }

#themeToggle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  font-size: 1.1rem; cursor: pointer; transition: transform .3s ease;
}
#themeToggle:hover { transform: rotate(40deg); }
html[data-theme="day"] .theme-icon-night { display: none; }
html[data-theme="night"] .theme-icon-day { display: none; }

/* ===== Hero ===== */
#hero {
  position: relative; overflow: hidden;
  padding: 90px 36px 130px;
  background: linear-gradient(175deg, var(--paper) 0%, var(--paper-deep) 100%);
}
.hero-sun {
  position: absolute; top: -120px; right: -80px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--gold) 0%, var(--accent) 55%, transparent 72%);
  opacity: .55; filter: blur(2px);
  animation: sunPulse 9s ease-in-out infinite;
}
@keyframes sunPulse { 50% { transform: scale(1.06); opacity: .65; } }

.hero-inner { max-width: 1000px; margin: 0 auto; }
.hero-kicker {
  font-family: var(--f-mono); font-size: .85rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
  animation: rise .7s ease both;
}
.hero-title {
  font-family: var(--f-display); font-weight: 850;
  font-size: clamp(4rem, 11vw, 8.5rem); line-height: .92;
  letter-spacing: -.02em; animation: rise .7s .08s ease both;
}
.hero-title em { color: var(--accent); font-style: italic; font-weight: 550; }
.hero-sub {
  margin-top: 26px; font-size: 1.15rem; color: var(--ink-soft); max-width: 560px;
  animation: rise .7s .16s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; animation: rise .7s .24s ease both; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1.5px solid var(--line);
  padding: 7px 16px 7px 10px; border-radius: 99px;
  font-weight: 700; font-size: .95rem; box-shadow: var(--shadow);
}
.chip .emoji { font-size: 1.2rem; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 44px; margin-top: 54px;
  animation: rise .7s .32s ease both;
}
.stat .num {
  font-family: var(--f-display); font-size: 3.4rem; font-weight: 800; line-height: 1;
  color: var(--ink);
}
.stat .num small { font-size: 1.4rem; color: var(--accent); }
.stat .lbl {
  font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .18em; color: var(--ink-soft); margin-top: 6px;
}
.stat.countdown .num { color: var(--accent); }

.wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 90px; }
.wave path { fill: var(--paper); }
#hero .wave path { fill: var(--paper); }

.hero-grain { display: none; }

/* ===== Sections ===== */
.section { padding: 90px 36px; max-width: 1180px; margin: 0 auto; }
.section-alt {
  max-width: none;
  background: var(--paper-deep);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section-alt > * { max-width: 1180px; margin-left: auto; margin-right: auto; }

.section-head { margin-bottom: 44px; }
.section-no {
  font-family: var(--f-mono); color: var(--accent); font-size: .8rem;
  letter-spacing: .25em;
}
.section-head h2 {
  font-family: var(--f-display); font-weight: 800; font-style: italic;
  font-size: clamp(2.1rem, 4.5vw, 3.2rem); margin-top: 6px; letter-spacing: -.01em;
}
.section-sub { color: var(--ink-soft); margin-top: 10px; max-width: 640px; }

/* ===== Legend ===== */
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.legend-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 700; color: var(--ink-soft);
}
.legend-dot { width: 13px; height: 13px; border-radius: 4px; }
.legend-star { color: var(--accent); font-size: 1rem; }
.legend-hint {
  flex-basis: 100%; font-size: .82rem; color: var(--ink-soft); font-style: italic;
}

/* ===== Nights counter ===== */
.nights { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.night-tile {
  display: flex; gap: 14px; align-items: center;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 16px;
  padding: 14px 22px; box-shadow: var(--shadow);
}
.night-dot { width: 15px; height: 15px; border-radius: 5px; flex: 0 0 auto; }
.nt-num { font-family: var(--f-display); font-weight: 850; font-size: 1.8rem; line-height: 1; }
.nt-num small { font-size: .85rem; font-weight: 600; font-family: var(--f-body); color: var(--ink-soft); }
.nt-lbl { font-weight: 700; font-size: .9rem; margin-top: 3px; }
.nt-sub { font-family: var(--f-mono); font-size: .68rem; color: var(--accent); margin-top: 3px; }

/* ===== Chapters (horizontal flow) ===== */
.chapters {
  display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 18px;
  scrollbar-width: thin;
}
.chapter {
  flex: 0 0 auto; min-width: 178px; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 16px;
  padding: 14px 16px; box-shadow: var(--shadow);
  border-top: 5px solid var(--seg-color, var(--accent));
  transition: transform .18s ease, box-shadow .18s ease;
}
.chapter:hover { transform: translateY(-4px) rotate(-.5deg); }
.chapter { overflow: hidden; }
.chapter-photo {
  display: block; width: calc(100% + 32px); margin: -14px -16px 10px;
  height: 82px; object-fit: cover; border-bottom: 1.5px solid var(--line);
}
.chapter .dates { font-family: var(--f-mono); font-size: .72rem; color: var(--ink-soft); letter-spacing: .05em; }
.chapter .title { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; margin-top: 4px; }
.chapter .nights { font-size: .8rem; color: var(--ink-soft); margin-top: 4px; }
.chapter .who-tag {
  display: inline-block; margin-top: 7px; font-size: .68rem; font-weight: 800;
  font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent);
}

/* ===== Months ===== */
.months { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 26px; margin-top: 26px; }
.month { background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.month h4 {
  font-family: var(--f-display); font-style: italic; font-size: 1.35rem;
  margin-bottom: 14px; text-transform: capitalize;
}
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dow {
  font-family: var(--f-mono); font-size: .62rem; text-align: center;
  color: var(--ink-soft); text-transform: uppercase; padding-bottom: 4px;
}
.day {
  position: relative; border-radius: 8px; min-height: 52px; padding: 4px 5px;
  background: color-mix(in srgb, var(--paper) 55%, transparent);
  border: 1px solid transparent; cursor: pointer; overflow: hidden;
  transition: border-color .15s;
}
.day:hover { border-color: var(--accent); }
.day.out { opacity: .22; pointer-events: none; }
.day .n { font-family: var(--f-mono); font-size: .7rem; font-weight: 600; color: var(--ink-soft); }
.day .bands { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; }
.day .band { height: 9px; opacity: .92; }
.day .band.berni-band { height: 6px; opacity: .75; }
.day .icons {
  position: absolute; top: 2px; right: 4px;
  display: flex; gap: 2px; align-items: center; line-height: 1;
}
.day .icons .ev { color: var(--accent); font-size: .6rem; }
.day .icons .fl { font-size: .55rem; }
.day .icons .wk { font-size: .55rem; filter: saturate(.8); }
.day.today { border: 1.5px solid var(--accent); }

/* ===== Buttons ===== */
.btn-add {
  margin-top: 28px; padding: 11px 22px; border-radius: 99px; cursor: pointer;
  border: 1.5px dashed var(--accent); color: var(--accent); background: transparent;
  font-family: var(--f-body); font-weight: 800; font-size: .92rem;
  transition: background .2s, color .2s;
}
.btn-add:hover { background: var(--accent); color: #fff; }

/* ===== Vehicle card ===== */
.vehicle-card {
  display: flex; flex-wrap: wrap; gap: 26px; align-items: center;
  background: linear-gradient(120deg, var(--card) 60%, var(--accent-soft));
  border: 1.5px solid var(--line); border-radius: 22px;
  padding: 28px 32px; margin-bottom: 36px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.vehicle-card::after {
  content: "🚐"; position: absolute; right: 22px; bottom: -14px;
  font-size: 6.4rem; opacity: .14; transform: rotate(-8deg);
}
.vehicle-photo {
  flex: 0 1 300px; min-width: 220px; max-height: 190px;
  object-fit: contain; border-radius: 14px; align-self: center;
}
.vehicle-card:has(.vehicle-photo)::after { content: none; }
.vehicle-main { flex: 1 1 340px; }
.vehicle-status {
  display: inline-block; font-family: var(--f-mono); font-size: .68rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  padding: 5px 12px; border-radius: 99px; margin-bottom: 12px;
}
.vehicle-card h3 { font-family: var(--f-display); font-size: 1.7rem; font-weight: 800; }
.vehicle-meta { margin-top: 10px; color: var(--ink-soft); font-size: .95rem; line-height: 1.7; }
.vehicle-price {
  font-family: var(--f-display); font-size: 2.6rem; font-weight: 850; color: var(--accent);
  flex: 0 0 auto; text-align: right;
}
.vehicle-price small { display: block; font-family: var(--f-body); font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.vehicle-cta {
  display: inline-block; margin-top: 12px; padding: 11px 22px; border-radius: 99px;
  background: var(--accent); color: #fff; font-weight: 800; text-decoration: none;
  font-size: .92rem; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 45%, transparent);
  transition: transform .15s ease;
}
.vehicle-cta:hover { transform: translateY(-2px); }

/* ===== Map ===== */
.map-wrap {
  border-radius: 22px; overflow: hidden; border: 1.5px solid var(--line);
  box-shadow: var(--shadow); margin-bottom: 40px;
}
#map { height: 440px; width: 100%; background: var(--paper-deep); }
.leaflet-popup-content-wrapper { background: var(--card); color: var(--ink); border-radius: 12px; font-family: var(--f-body); }
.leaflet-popup-tip { background: var(--card); }
.map-marker {
  background: var(--accent); color: #fff; border-radius: 50%;
  width: 26px !important; height: 26px !important;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-weight: 700; font-size: .75rem;
  border: 2.5px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; }
.step {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 20px;
  padding: 22px; box-shadow: var(--shadow); position: relative;
  transition: transform .18s ease; overflow: hidden;
}
.step-photo {
  display: block; width: calc(100% + 44px); margin: -22px -22px 16px;
  height: 160px; object-fit: cover;
  border-bottom: 1.5px solid var(--line);
}
.step .step-day { position: relative; z-index: 1; }
.step:has(.step-photo) .step-day { margin-top: 0; }
.step:has(.step-photo) .step-no {
  top: 130px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.step:hover { transform: translateY(-3px); }
.step:nth-child(even) { transform: rotate(.35deg); }
.step:nth-child(odd) { transform: rotate(-.35deg); }
.step:nth-child(even):hover, .step:nth-child(odd):hover { transform: translateY(-3px) rotate(0); }
.step-day {
  display: inline-block; font-family: var(--f-mono); font-size: .7rem;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: var(--accent); color: #fff; border-radius: 99px; padding: 4px 12px;
}
.step-no {
  position: absolute; top: 16px; right: 20px;
  font-family: var(--f-display); font-size: 2.2rem; font-weight: 850; font-style: italic;
  color: color-mix(in srgb, var(--accent) 28%, transparent);
}
.step-route { font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; margin-top: 12px; }
.step-route .arrow { color: var(--accent); }
.step-row { display: flex; gap: 9px; margin-top: 11px; font-size: .92rem; color: var(--ink-soft); }
.step-row .ico { flex: 0 0 auto; }
.step-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.step-links a {
  font-size: .78rem; font-weight: 700; text-decoration: none;
  color: var(--accent); border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent);
  padding: 4px 12px; border-radius: 99px; transition: background .15s, color .15s;
}
.step-links a:hover { background: var(--accent); color: #fff; }

.editable { cursor: text; border-bottom: 1px dashed transparent; transition: border-color .15s; }
.editable:hover { border-color: var(--accent); }
body.family .editable, body.family .chapter, body.family .event, body.family .day { cursor: default; }
body.family .editable:hover { border-color: transparent; }
body.family .day:hover { border-color: transparent; }
.editable-input {
  width: 100%; font: inherit; color: inherit; background: var(--paper);
  border: 1.5px solid var(--accent); border-radius: 8px; padding: 4px 8px;
}

.archive { margin-top: 36px; color: var(--ink-soft); font-size: .92rem; }
.archive summary { cursor: pointer; font-weight: 700; color: var(--ink-soft); }
.archive p { margin-top: 10px; max-width: 720px; }

/* ===== Résas & todo ===== */
.todo-progress { margin-bottom: 34px; }
.progress-track {
  height: 12px; border-radius: 99px; background: var(--paper-deep);
  border: 1px solid var(--line); overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  transition: width .6s cubic-bezier(.5, 0, .2, 1);
}
.progress-label { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; color: var(--ink-soft); margin-top: 8px; text-transform: uppercase; }

.resas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.col-title { font-family: var(--f-display); font-style: italic; font-size: 1.45rem; margin-bottom: 18px; }

.todo-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.todo {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 13px 16px; box-shadow: var(--shadow); position: relative;
}
.todo.done { opacity: .55; }
.todo.done .todo-text { text-decoration: line-through; }
.todo-check {
  flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px;
  border-radius: 7px; border: 2px solid var(--accent); background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .8rem; transition: background .15s;
}
.todo.done .todo-check { background: var(--accent); }
.todo-text { flex: 1; font-weight: 600; font-size: .95rem; }
.todo-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tag {
  font-family: var(--f-mono); font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 2.5px 9px; border-radius: 99px; background: var(--paper-deep); color: var(--ink-soft);
}
.tag.haute { background: color-mix(in srgb, var(--c-work) 18%, transparent); color: var(--c-work); }
.tag.link-tag { background: var(--accent-soft); }
.tag.link-tag a { color: var(--accent); text-decoration: none; }
.todo-del {
  flex: 0 0 auto; border: none; background: none; color: var(--ink-soft);
  cursor: pointer; font-size: 1rem; opacity: 0; transition: opacity .15s;
}
.todo:hover .todo-del { opacity: .8; }

.todo-add { display: flex; gap: 10px; margin-top: 16px; }
.todo-add input {
  flex: 1; padding: 12px 16px; border-radius: 12px; font: inherit;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
}
.todo-add input:focus { outline: none; border-color: var(--accent); }
.todo-add button {
  width: 46px; border-radius: 12px; border: none; background: var(--accent);
  color: #fff; font-size: 1.4rem; cursor: pointer;
}

.bookings { display: flex; flex-direction: column; gap: 14px; }
.booking {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 16px;
  padding: 16px 18px; box-shadow: var(--shadow);
}
.booking-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.booking-title { font-family: var(--f-display); font-weight: 800; font-size: 1.08rem; flex: 1; }
.status {
  font-family: var(--f-mono); font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 4px 11px; border-radius: 99px; cursor: pointer; border: none;
}
.status.reserve { background: color-mix(in srgb, var(--pine) 20%, transparent); color: var(--pine); }
.status.a_reserver { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.status.a_verifier { background: color-mix(in srgb, var(--gold) 25%, transparent); color: color-mix(in srgb, var(--gold) 70%, var(--ink)); }
.booking-dates { font-family: var(--f-mono); font-size: .72rem; color: var(--ink-soft); margin-top: 6px; letter-spacing: .04em; }
.booking-details { font-size: .88rem; color: var(--ink-soft); margin-top: 7px; }
.booking-price { font-family: var(--f-display); font-weight: 800; color: var(--accent); font-size: 1.15rem; }
.booking a.booking-link {
  display: inline-block; margin-top: 9px; font-size: .8rem; font-weight: 700;
  color: var(--accent); text-decoration: none;
}
.booking a.booking-link:hover { text-decoration: underline; }

.gmail-note {
  margin-top: 18px; font-size: .85rem; color: var(--ink-soft);
  background: var(--paper-deep); border: 1.5px dashed var(--line);
  border-radius: 14px; padding: 13px 16px;
}

/* ===== Budget ===== */
.budget-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-bottom: 34px; }
.budget-tile {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 18px;
  padding: 20px 22px; box-shadow: var(--shadow);
}
.budget-tile .amt { font-family: var(--f-display); font-weight: 850; font-size: 2.1rem; line-height: 1.1; }
.budget-tile.t-total .amt { color: var(--ink); }
.budget-tile.t-paid .amt { color: var(--pine); }
.budget-tile.t-due .amt { color: var(--accent); }
.budget-tile .lbl {
  font-family: var(--f-mono); font-size: .68rem; text-transform: uppercase;
  letter-spacing: .16em; color: var(--ink-soft); margin-top: 7px;
}
.budget-tile .sub { font-size: .78rem; color: var(--ink-soft); margin-top: 5px; }

.budget-table { display: flex; flex-direction: column; gap: 10px; }
.budget-row {
  display: grid; grid-template-columns: 1fr 130px 130px 34px; gap: 14px; align-items: center;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 13px 18px; box-shadow: var(--shadow);
}
.budget-row.head {
  background: transparent; border: none; box-shadow: none; padding: 2px 18px;
  font-family: var(--f-mono); font-size: .65rem; text-transform: uppercase;
  letter-spacing: .14em; color: var(--ink-soft);
}
.budget-row .b-label { font-weight: 700; font-size: .95rem; }
.budget-row .b-notes { font-size: .8rem; color: var(--ink-soft); margin-top: 3px; font-weight: 400; }
.budget-row .b-amount, .budget-row .b-paid {
  font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; text-align: right;
  cursor: text; border-bottom: 1px dashed transparent;
}
.budget-row .b-amount:hover, .budget-row .b-paid:hover { border-color: var(--accent); }
.budget-row .b-paid { color: var(--pine); }
.budget-row .b-amount.empty, .budget-row .b-paid.empty {
  color: var(--ink-soft); font-family: var(--f-mono); font-size: .72rem; font-weight: 600;
}
.budget-row .b-del {
  border: none; background: none; color: var(--ink-soft); cursor: pointer;
  font-size: 1rem; opacity: 0; transition: opacity .15s;
}
.budget-row:hover .b-del { opacity: .8; }
.budget-note {
  margin-top: 26px; font-size: .88rem; color: var(--ink-soft);
  background: var(--paper-deep); border: 1.5px dashed var(--line);
  border-radius: 14px; padding: 13px 18px; max-width: 720px;
}
@media (max-width: 720px) {
  .budget-row { grid-template-columns: 1fr 90px 90px 28px; gap: 8px; padding: 12px 12px; }
}

/* ===== Events ===== */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.event {
  display: flex; gap: 14px; align-items: flex-start; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 16px;
  padding: 16px 18px; box-shadow: var(--shadow); transition: transform .15s ease;
}
.event:hover { transform: translateY(-3px); }
.event-date {
  flex: 0 0 auto; text-align: center; min-width: 56px;
  background: var(--paper-deep); border-radius: 12px; padding: 8px 6px;
}
.event-date .d { font-family: var(--f-display); font-weight: 850; font-size: 1.3rem; line-height: 1; }
.event-date .m { font-family: var(--f-mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.event-title { font-weight: 800; font-size: .98rem; }
.event-range { font-family: var(--f-mono); font-size: .7rem; color: var(--ink-soft); margin-top: 4px; }
.event-notes { font-size: .85rem; color: var(--ink-soft); margin-top: 5px; }

/* ===== Footer ===== */
footer {
  text-align: center; padding: 46px 20px 60px; color: var(--ink-soft);
  font-size: .85rem; border-top: 1px solid var(--line);
}
.mono { font-family: var(--f-mono); font-size: .8rem; }

/* ===== Modal ===== */
.modal-backdrop[hidden] { display: none; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 25, 38, .55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--card); color: var(--ink); border-radius: 22px;
  border: 1.5px solid var(--line);
  width: min(520px, 100%); max-height: 88vh; overflow-y: auto;
  padding: 28px; box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
  animation: pop .25s cubic-bezier(.3, 1.4, .6, 1) both;
}
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(14px); } }
.modal h3 { font-family: var(--f-display); font-style: italic; font-size: 1.5rem; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label {
  display: block; font-family: var(--f-mono); font-size: .68rem;
  text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 14px; border-radius: 10px; font: inherit;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; align-items: center; }
.modal-actions .spacer { flex: 1; }
.btn-primary, .btn-ghost, .btn-danger {
  padding: 10px 20px; border-radius: 99px; font: inherit; font-weight: 800;
  cursor: pointer; border: 1.5px solid transparent; font-size: .9rem;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink-soft); }
.btn-danger { background: transparent; border-color: color-mix(in srgb, var(--c-work) 50%, transparent); color: var(--c-work); }
.btn-danger:hover { background: var(--c-work); color: #fff; }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 200; background: var(--ink); color: var(--paper);
  font-weight: 700; font-size: .9rem; padding: 12px 24px; border-radius: 99px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  animation: toastIn .3s ease both;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 16px); } }

/* ===== Print button ===== */
.btn-print {
  margin-top: 16px; padding: 10px 20px; border-radius: 99px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  font-family: var(--f-body); font-weight: 700; font-size: .88rem;
  box-shadow: var(--shadow); transition: border-color .2s, transform .15s;
}
.btn-print:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ===== Print view (PDF partageable) ===== */
#printView { display: none; }

@media print {
  @page { size: A4 landscape; margin: 9mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff; color: #1f3a4d; }
  body::before { display: none; }
  #nav, #hero, main, footer, .toast, .modal-backdrop { display: none !important; }

  #printView { display: block; font-family: "Karla", sans-serif; }
  .pv-head { display: flex; align-items: baseline; gap: 16px; border-bottom: 2.5px solid #e8632b; padding-bottom: 6px; }
  .pv-head h1 { font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 20pt; font-weight: 800; }
  .pv-head p { font-size: 9pt; color: #4d6376; }
  .pv-legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 7px 0 8px; }
  .pv-legend .legend-item { font-size: 7pt; font-weight: 700; color: #4d6376; display: inline-flex; align-items: center; gap: 5px; }
  .pv-legend .legend-dot { width: 9px; height: 9px; border-radius: 3px; }

  .pv-nights { display: flex; gap: 22px; margin: 0 0 8px; }
  .pv-night { font-size: 9pt; display: inline-flex; align-items: center; gap: 5px; }
  .pv-night .legend-dot { width: 9px; height: 9px; border-radius: 3px; }
  .pv-night em { color: #4d6376; font-style: normal; font-size: 7.5pt; }

  .pv-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .pv-months .month { border: 1px solid #d8cdb4; border-radius: 8px; padding: 8px; background: #fff; box-shadow: none; }
  .pv-months .month h4 { font-family: "Fraunces", serif; font-style: italic; font-size: 11pt; margin-bottom: 5px; }
  .pv-months .month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
  .pv-months .dow { font-size: 5.5pt; text-align: center; color: #4d6376; text-transform: uppercase; }
  .pv-months .day { position: relative; min-height: 26px; border-radius: 3px; padding: 1px 3px; background: #faf6ec; overflow: hidden; }
  .pv-months .day.out { opacity: .18; }
  .pv-months .day .n { font-size: 6pt; font-weight: 600; color: #4d6376; }
  .pv-months .day .bands { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; }
  .pv-months .day .band { height: 6px; }
  .pv-months .day .band.berni-band { height: 4px; opacity: .75; }
  .pv-months .day .icons { position: absolute; top: 1px; right: 2px; display: flex; gap: 1px; }
  .pv-months .day .icons .ev { display: none; }
  .pv-months .day .icons .fl { font-size: 5pt; }
  .pv-months .day .icons .wk { font-size: 5pt; }
  .pv-months .day.today { border: none; }
  .pv-legend .legend-hint, .pv-legend .legend-star { display: none; }
  .pv-legend .legend-item:has(.legend-star) { display: none; }

  .pv-program { margin-top: 10px; }
  .pv-program h2 { font-family: "Fraunces", serif; font-style: italic; font-size: 12pt; margin-bottom: 5px; }
  .pv-cols { column-count: 3; column-gap: 18px; }
  .pv-row { display: flex; gap: 7px; align-items: baseline; break-inside: avoid; padding: 2.5px 0; border-bottom: .5px solid #eee3cc; }
  .pv-row .pv-dot { width: 8px; height: 8px; border-radius: 3px; flex: 0 0 auto; align-self: center; }
  .pv-row .pv-dates { font-size: 7.5pt; font-weight: 700; color: #4d6376; min-width: 88px; flex: 0 0 auto; }
  .pv-row .pv-title { font-size: 8.5pt; font-weight: 700; }
  .pv-row .pv-place { font-size: 7.5pt; color: #4d6376; }
  .pv-row .pv-who { font-size: 7pt; font-weight: 800; color: #e8632b; text-transform: uppercase; letter-spacing: .06em; }
  .pv-foot { margin-top: 8px; font-size: 7pt; color: #4d6376; }
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .resas-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 20px; }
  #hero { padding: 64px 20px 110px; }
  .hero-stats { gap: 26px; }
  .vehicle-price { text-align: left; }
}
