:root {
  --ink: #1a2a31;
  --muted: #55666d;
  --paper: #f4f6f3;
  --white: #ffffff;
  --seine: #2c5565;
  --seine-d: #1f3f4c;
  --parc: #5f8a62;
  --parc-l: #dce9d8;
  --ochre: #b9873f;
  --line: #d3dad5;
  --board: #16262d;
  --danger: #a3372b;
  --r: 12px;
  --serif: "Young Serif", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: var(--seine); }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .6em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
p { margin: 0 0 1em; max-width: 62ch; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }

/* Barre du haut */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1.2rem; padding: .7rem clamp(1rem, 4vw, 2.5rem); background: rgba(244, 246, 243, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.nav { display: flex; gap: 1.3rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover { color: var(--seine); }
.langs { display: flex; gap: .25rem; }
.langs button { font: 600 .82rem var(--sans); padding: .35rem .55rem; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--seine); color: #fff; }
.langs button:hover { border-color: var(--seine); }
@media (max-width: 720px) { .nav { display: none; } }

/* Hero */
.hero { min-height: min(86vh, 760px); display: flex; align-items: flex-end; padding: clamp(1.2rem, 5vw, 4rem); color: #fff;
  background:
    linear-gradient(180deg, rgba(14, 28, 34, .15) 0%, rgba(14, 28, 34, .78) 100%),
    var(--hero, none) center / cover no-repeat,
    linear-gradient(135deg, #2c5565 0%, #4f7a5c 100%); }
.hero-inner { max-width: 760px; }
.hero-kicker { margin: 0 0 1rem; font-weight: 600; opacity: .9; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.8rem); margin-bottom: .45em; animation: rise .8s ease-out both; }
.hero-lead { font-size: 1.2rem; max-width: 52ch; }
.hero-rating { font-weight: 600; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Boutons */
.btn { display: inline-block; font: 600 1rem var(--sans); padding: .85rem 1.4rem; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; text-align: center; }
.btn-primary { background: var(--seine); color: #fff; }
.btn-primary:hover { background: var(--seine-d); }
.btn-primary:disabled { background: #9aaab0; cursor: not-allowed; }
.hero .btn-primary { background: #fff; color: var(--seine-d); }
.hero .btn-primary:hover { background: var(--parc-l); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .8); }
.btn-ghost:hover { background: rgba(255, 255, 255, .15); }
.btn-block { display: block; width: 100%; }

/* Tableau des trajets */
.board-wrap { padding: 0 clamp(1rem, 4vw, 2.5rem); margin-top: -2.2rem; position: relative; z-index: 2; }
.board { max-width: 760px; margin: 0 auto; background: var(--board); color: #eef3ef; border-radius: var(--r); padding: 1.4rem 1.6rem 1.2rem; box-shadow: 0 14px 40px rgba(14, 28, 34, .28); }
.board h2 { font: 600 1rem var(--sans); color: #b9c8c4; margin: 0 0 .8rem; }
.board-rows { list-style: none; margin: 0; padding: 0; }
.board-rows li { display: grid; grid-template-columns: 5rem 1fr auto; align-items: center; gap: 1rem; padding: .75rem 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.badge { justify-self: start; font-weight: 700; font-size: .95rem; padding: .2rem .65rem; border-radius: 6px; color: #fff; }
.badge-l { background: #7a5a8c; }
.badge-t { background: #3d7f93; }
.badge-u { background: #8a6f3a; }
.dest { font-size: 1.15rem; font-weight: 500; }
.time { font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; color: #f2c46d; }
.time small { font-size: .9rem; font-weight: 500; color: #b9c8c4; }
.board-note { margin: .8rem 0 0; font-size: .95rem; color: #b9c8c4; }

/* Sections */
.section { padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem) 0; }
.wrap { max-width: 1080px; margin: 0 auto; }
.wrap.narrow { max-width: 680px; }
.wrap.two { display: grid; gap: clamp(1.5rem, 5vw, 4rem); grid-template-columns: 1fr 1.2fr; align-items: start; }
@media (max-width: 860px) { .wrap.two { grid-template-columns: 1fr; } }
.lead { font-size: 1.12rem; color: var(--muted); }
.note { color: var(--muted); border-left: 3px solid var(--ochre); padding-left: .9rem; }

.features { margin: 0; }
.features div { padding: 1rem 0; border-top: 1px solid var(--line); }
.features div:last-child { border-bottom: 1px solid var(--line); }
.features dt { font-weight: 700; margin-bottom: .2rem; }
.features dd { margin: 0; color: var(--muted); }

/* Galerie */
.gallery { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.gallery img:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 560px) { .gallery img:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; } }

/* Réservation */
.price-line { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-weight: 600; margin-bottom: 1.4rem; }
.price-line span:empty { display: none; }
.booking { display: grid; gap: 1.5rem; grid-template-columns: 1.5fr 1fr; align-items: start; }
@media (max-width: 960px) { .booking { grid-template-columns: 1fr; } }
.cal-panel, .summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem; }
.cal-panel { position: relative; }
.cal-nav { display: flex; justify-content: space-between; position: absolute; left: 1rem; right: 1rem; top: 1.1rem; pointer-events: none; }
.icon-btn { pointer-events: auto; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); }
.icon-btn:hover { border-color: var(--seine); color: var(--seine); }
.months { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .months { grid-template-columns: 1fr; } .month:nth-child(2) { display: none; } }
.month h3 { font: 600 1.05rem var(--sans); text-align: center; text-transform: capitalize; margin: .35rem 0 1rem; }
.grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.wd { text-align: center; font-size: .78rem; color: var(--muted); padding-bottom: .3rem; text-transform: capitalize; }
.day { aspect-ratio: 1; border: 0; border-radius: 8px; background: transparent; font: 500 .98rem var(--sans); color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.day:hover:not(.off) { background: var(--parc-l); }
.day.off { color: #a7b2b6; text-decoration: line-through; cursor: not-allowed; }
.day.past { text-decoration: none; opacity: .45; }
.day.dep-ok { cursor: pointer; }
.day.in-range { background: var(--parc-l); border-radius: 0; }
.day.sel { background: var(--seine); color: #fff; text-decoration: none; }
.day.sel.start { border-radius: 8px 0 0 8px; }
.day.sel.end { border-radius: 0 8px 8px 0; }
.day.sel.start.end { border-radius: 8px; }
.blank { visibility: hidden; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 1rem 0 0; padding: 0; font-size: .9rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: .4rem; }
.sw { width: .9rem; height: .9rem; border-radius: 4px; display: inline-block; border: 1px solid var(--line); }
.sw-free { background: var(--white); }
.sw-busy { background: repeating-linear-gradient(45deg, #dfe5e2, #dfe5e2 3px, #fff 3px, #fff 6px); }
.sw-you { background: var(--seine); border-color: var(--seine); }

.summary { display: grid; gap: .9rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.fields > div { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; }
.flabel { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; }
.fields strong { font-size: 1.02rem; }
.guests select { width: 100%; margin-top: .25rem; font: 500 1rem var(--sans); padding: .65rem .7rem; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.hint { margin: 0; color: var(--muted); font-size: .96rem; }
#quote { border-top: 1px solid var(--line); padding-top: .8rem; }
.qrow { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; font-variant-numeric: tabular-nums; }
.qrow.total { font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .6rem; }
.error { margin: 0; color: var(--danger); font-weight: 600; }
.secure { margin: 0; font-size: .85rem; color: var(--muted); }
.notice { border-radius: var(--r); padding: 1rem 1.2rem; margin-bottom: 1.2rem; background: #fff; border: 1px solid var(--line); max-width: 62ch; }
.notice.ok { background: var(--parc-l); border-color: var(--parc); }

/* Avis */
.scores { list-style: none; margin: 0; padding: 0; }
.scores li { display: grid; grid-template-columns: 1fr 7rem 2.2rem; align-items: center; gap: .8rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.scores i { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--parc) calc(var(--v) / 5 * 100%), var(--line) 0); }
.scores b { text-align: right; font-variant-numeric: tabular-nums; }

.contact { text-align: center; }
.contact h2, .contact p { margin-left: auto; margin-right: auto; }
.foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: clamp(3rem, 8vw, 6rem); padding: 1.6rem clamp(1rem, 4vw, 2.5rem); border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.foot a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1 { animation: none; }
}
