@charset "UTF-8";
:root {
  color-scheme: light;
  --paper: #f6f3eb;
  --white: #fffefb;
  --ink: #223e35;
  --green: #204c40;
  --muted: #6d796e;
  --line: #deded1;
  --gold: #b58a4d;
  --soft: #eaf0e5;
  --serif: Iowan Old Style, Palatino Linotype, Baskerville, Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding-bottom: calc(90px + env(safe-area-inset-bottom));
  line-height: 1.65;
}
button,
input,
select {
  font: inherit;
}
button,
a,
summary,
input {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button,
summary {
  cursor: pointer;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--green);
  text-underline-offset: 4px;
}
a,
button,
summary,
input,
select {
  outline-offset: 5px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
}
[hidden] {
  /* biome-ignore lint/complexity/noImportantStyles: L’attribut hidden doit primer sur les composants flex et grid. */
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0 0 1rem;
}
h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.25rem, 6vw, 3.8rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  margin-bottom: 1.4rem;
}
h1 em {
  font-weight: 400;
  color: #57715c;
}
h2 {
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.4;
}
h3 {
  font-size: 1.05rem;
  line-height: 1.4;
}
p:last-child {
  margin-bottom: 0;
}
dialog h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  padding-right: 25px;
}
.icon {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  vertical-align: middle;
}
.muted,
small {
  color: var(--muted);
}
.small {
  font-size: 0.82rem;
}
.eyebrow {
  font-size: 0.69rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.lead {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--muted);
  max-width: 660px;
  margin-bottom: 2rem;
}
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 17px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 9px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}
.button:hover {
  border-color: var(--green);
  background: var(--soft);
}
.button.primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.button.primary:hover {
  background: #16392f;
}
.button.compact {
  font-size: 0.78rem;
  padding: 6px 12px;
  min-height: 36px;
}
.inline-link {
  border: 0;
  padding: 4px 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: inherit;
  color: var(--green);
  text-align: left;
}
.inline-link:hover {
  color: #846031;
}
.danger {
  color: #a03e2d;
}
.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
}
.skip {
  position: fixed;
  top: -100px;
  left: 10px;
  z-index: 200;
  background: white;
  padding: 10px;
}
.skip:focus {
  top: 10px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #f6f3ebf5;
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
  backdrop-filter: blur(10px);
}
.topbar-inner {
  max-width: 1060px;
  margin: auto;
  height: 78px;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: -0.05em;
}
.brand svg {
  width: 29px;
  height: 33px;
}
.brand-dot {
  color: var(--gold);
}
.top-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.settings-button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 50%;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
}
.status {
  font-size: 0.73rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.status:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b9aa7d;
}
.status[data-ready="true"]:before {
  background: #718766;
}
.messages,
.back-wrapper {
  max-width: 950px;
  margin: auto;
  padding: 0 28px;
}
.messages:has(:not([hidden])) {
  padding-top: 16px;
}
dialog p {
  font-size: 0.9rem;
}
.messages p {
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--soft);
  font-size: 0.87rem;
}
.messages [data-error="true"],
#storage-warning {
  background: #f8e3d9;
  color: #8a3c28;
}
.back-wrapper:has(a:not([hidden])) {
  padding-top: 22px;
}
.back-link {
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 12px;
}
main {
  max-width: 860px;
  margin: auto;
  padding: 22px 28px;
  outline: none;
  overflow-wrap: anywhere;
}
main.library {
  max-width: 950px;
  padding-top: 55px;
}
.library > .eyebrow {
  margin-bottom: 20px;
}
.library .lead {
  margin-bottom: 42px;
}
.library-heading,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 30px 0 20px;
}
.library-heading h2,
.section-heading h2 {
  margin: 0;
}
.count {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  vertical-align: middle;
  margin-left: 6px;
}
.empty {
  border: 1px dashed #bdc7b6;
  border-radius: 15px;
  background: #fbfaf5;
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.empty-symbol {
  background: var(--soft);
  border: 1px solid #dce5d7;
  border-radius: 18px;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  transform: rotate(-7deg);
}
.empty-symbol .icon {
  width: 33px;
  height: 33px;
}
.empty h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
}
.empty p {
  color: var(--muted);
  font-size: 0.92rem;
}
.empty .button {
  margin: 10px 0 16px;
}
.privacy-note {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin: 30px 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.privacy-note > .icon {
  margin-top: 3px;
  color: #718766;
}
.privacy-note strong {
  font-size: 0.86rem;
  font-weight: 600;
}
.privacy-note p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}
.trip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.trip-card {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.trip-card:hover {
  transform: translateY(-3px);
  border-color: #9caa91;
}
.trip-art {
  height: 200px;
  background: linear-gradient(135deg, #e3e9d9, #f1e4c9);
  display: grid;
  place-items: center;
}
.trip-art > .icon,
.trip-art :where(span) .icon {
  width: 65px;
  height: 65px;
  color: #7a9273;
}
.trip-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trip-card-body {
  padding: 22px;
}
.trip-card .eyebrow {
  font-size: 0.62rem;
}
dialog h3 {
  margin-top: 24px;
}
.trip-card h3 {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 500;
  margin: 10px 0;
}
.trip-card p {
  font-size: 0.82rem;
  color: var(--muted);
}
.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}
.footer {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: #8c9586;
  font-size: 0.9rem;
  padding: 20px;
}
.travel-photo {
  display: block;
  width: 100%;
  height: 350px;
  object-fit: cover;
  margin: 0;
}
.voyage-hero {
  position: relative;
  background: #dce5d5;
  border-radius: 13px;
  overflow: hidden;
  margin-bottom: 18px;
}
.voyage-hero .hero-caption {
  padding: 28px;
  background: var(--white);
}
.hero-caption h1 {
  margin-bottom: 8px;
}
.hero-caption p {
  font-size: 0.9rem;
}
.hero-caption .eyebrow {
  font-size: 0.65rem;
}
.hero-placeholder {
  height: 180px;
  display: grid;
  place-items: center;
}
.hero-placeholder .icon {
  width: 75px;
  height: 75px;
  color: #85987b;
}
.overview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.79rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.local-badge {
  display: flex;
  align-items: center;
  gap: 4px;
}
.local-badge .icon {
  width: 15px;
  height: 15px;
}
.continue-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-radius: 11px;
  background: var(--green);
  color: var(--white);
  padding: 23px;
  text-decoration: none;
  margin: 24px 0;
}
.continue-card small {
  display: block;
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  color: #c4d5bf;
  margin-bottom: 7px;
}
.continue-card strong {
  font-size: 1.05rem;
}
.progress-card {
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 11px;
  background: var(--white);
}
.progress-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.progress-card h2 {
  font-size: 0.94rem;
  margin: 0;
}
.progress-card span {
  font-size: 0.72rem;
  color: var(--muted);
}
progress {
  appearance: none;
  display: block;
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 14px;
  background: var(--soft);
}
progress::-webkit-progress-bar {
  background: var(--soft);
}
progress::-webkit-progress-value {
  background: #718766;
}
progress::-moz-progress-bar {
  background: #718766;
}
.day-list {
  border-top: 1px solid var(--line);
}
.day-list > a {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 19px 6px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.day-list > a:hover {
  background: var(--soft);
}
.day-number {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: #8c9c80;
  flex: 0 0 40px;
}
.day-list > a > span:nth-child(2) {
  flex: 1;
}
.day-list small,
.day-list strong {
  display: block;
}
.day-list small {
  font-size: 0.75rem;
}
.day-list strong {
  font-size: 0.92rem;
  font-weight: 600;
  margin: 2px 0;
}
.day-list .icon {
  width: 17px;
}
.trip-management {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 30px;
  font-size: 0.78rem;
}
.bottom-nav {
  position: fixed;
  z-index: 40;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 860px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  background: #fffefbf5;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 15px 15px 0 0;
  backdrop-filter: blur(12px);
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 51px;
  color: var(--muted);
  font-size: 0.68rem;
  border-radius: 8px;
}
.bottom-nav [aria-current="page"] {
  background: var(--soft);
  color: var(--green);
}
.block {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 11px;
  padding: 22px;
  margin: 18px 0;
  font-size: 0.93rem;
}
.block > h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
}
.block.alert {
  border-left: 3px solid #bd805a;
}
.block p {
  line-height: 1.8;
}
.block details {
  margin: 14px 0;
}
.block details summary {
  padding: 10px 0;
}
details.block {
  padding: 0;
}
details.block > summary {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.93rem;
}
.details-content {
  padding: 0 22px 22px;
}
.details-content .block {
  box-shadow: none;
}
.callout {
  background: #eaf0e2;
  border-left: 3px solid #99ad87;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  font-size: 0.93rem;
}
.items {
  padding: 0;
  list-style: none;
}
.items > li {
  padding: 13px 0;
  border-bottom: 1px solid #ecece3;
}
.items > li:last-child {
  border: 0;
  padding-bottom: 0;
}
.completion {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}
.completion input {
  margin: 4px 0 0;
  accent-color: var(--green);
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  cursor: pointer;
}
.completion:where(:has(input:checked)) > span {
  color: #6c7e65;
}
.place {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin: 10px 0 0 33px;
  padding-top: 8px;
  border-top: 1px dotted var(--line);
  font-size: 0.74rem;
  color: var(--muted);
}
.place .inline-link {
  white-space: nowrap;
  min-height: 36px;
}
.table-scroll {
  overflow: auto;
  margin: 15px 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.83rem;
}
td,
th {
  padding: 11px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--line);
  min-width: 90px;
}
th {
  background: var(--soft);
}
.phrase {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.phrase p {
  margin-top: 7px;
  margin-bottom: 7px;
}
:is(.block, dialog) .japanese {
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--green);
  word-break: normal;
}
.travel-photo {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 15px 0;
}
.day-switch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 8px 0 28px;
  font-size: 0.8rem;
}
select {
  background: var(--white);
  color: var(--green);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  max-width: 55%;
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 28px;
}
.document-list {
  display: grid;
  gap: 12px;
  margin: 25px 0;
}
.document {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 19px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  text-decoration: none;
  font-size: 0.91rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.document > span {
  flex: 1;
}
.document small {
  display: block;
  margin-top: 5px;
  font-size: 0.75rem;
}
.document:hover {
  border-color: #8d9e83;
}
.document > .icon:last-child {
  width: 17px;
}
.reservation {
  padding-top: 24px;
  border-top: 2px solid var(--line);
  margin-top: 26px;
}
.reservation > h2 {
  font-size: 1.5rem;
}
.hotel .completion {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.address {
  padding: 16px;
  background: var(--paper);
  border-radius: 10px;
}
dialog {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 17px;
  max-width: 650px;
  width: calc(100% - 28px);
  max-height: calc(100dvh - 50px);
  padding: 35px 28px;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #172c26a6;
  backdrop-filter: blur(3px);
}
dialog .close-button {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: none;
  font-size: 1.7rem;
  width: 40px;
  height: 40px;
}
.pdf-viewer {
  width: 100%;
  height: 55dvh;
  border: 1px solid var(--line);
  border-radius: 7px;
}
@media (max-width: 600px) {
  h1 {
    font-size: 2.6rem;
  }
  .topbar-inner {
    height: 68px;
    padding-inline: 20px;
  }
  .brand {
    font-size: 1.8rem;
  }
  .top-actions {
    gap: 9px;
  }
  .status {
    font-size: 0.63rem;
    max-width: 108px;
  }
  .messages,
  .back-wrapper {
    padding-inline: 20px;
  }
  main {
    padding: 18px 20px;
  }
  main.library {
    padding-top: 36px;
  }
  .library .lead {
    font-size: 0.93rem;
    margin-bottom: 30px;
  }
  .library-heading {
    gap: 10px;
  }
  .library-heading h2 {
    font-size: 1.02rem;
  }
  .library-heading .button {
    font-size: 0.76rem;
    padding: 9px 11px;
  }
  .library-heading .icon {
    width: 18px;
  }
  .empty {
    padding: 30px 15px;
  }
  .empty p {
    font-size: 0.82rem;
  }
  .empty br {
    display: none;
  }
  .trip-grid {
    grid-template-columns: 1fr;
  }
  .trip-art {
    height: 205px;
  }
  .voyage-hero .travel-photo {
    height: 230px;
  }
  .hero-caption {
    padding: 22px;
  }
  .hero-caption h1 {
    font-size: 2.4rem;
  }
  .overview-bar {
    font-size: 0.67rem;
  }
  .block {
    padding: 18px;
  }
  .details-content {
    padding: 0 18px 18px;
  }
  details.block > summary {
    padding: 17px 18px;
  }
  .block > h2 {
    font-size: 1.3rem;
  }
  .day-list > a {
    gap: 12px;
  }
  .day-number {
    flex-basis: 30px;
  }
  .day-list .icon {
    width: 14px;
  }
  .progress-card > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .bottom-nav {
    border-radius: 0;
    border-inline: 0;
    padding-inline: max(6px, env(safe-area-inset-left));
  }
  .bottom-nav a {
    font-size: 0.61rem;
  }
  .place {
    align-items: flex-start;
  }
  :is(.block, dialog) .japanese {
    font-size: 1.35rem;
  }
  dialog {
    padding: 35px 21px;
  }
  .pager .button {
    font-size: 0.75rem;
    padding-inline: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .trip-card {
    transition: none;
  }
}
.day-number {
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 38px;
}
