/* ==========================================================================
   Venise & Vérone 2027 — feuille de style
   Palette : nuit de la lagune, eau turquoise, rouge vénitien, or de Saint-Marc
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-600.woff2") format("woff2");
  font-weight: 500 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-600-italic.woff2") format("woff2");
  font-weight: 500 700; font-style: italic; font-display: swap;
}

:root {
  --ink: #16212e;
  --ink-2: #334155;
  --muted: #5c6878;
  --line: #e7e0d4;
  --line-2: #efe9df;
  --paper: #f8f4ec;
  --card: #ffffff;

  --night: #0c2238;
  --night-2: #16395c;
  --lagoon: #0e7169;
  --lagoon-2: #14a394;
  --lagoon-soft: #e2f3f0;
  --rosso: #9c2b27;
  --rosso-soft: #f8e8e6;
  --gold: #b3862a;
  --gold-2: #d9ad52;
  --gold-soft: #f7eed9;

  --ok: #166534;  --ok-soft: #e7f4ea;
  --warn: #9a4a07; --warn-soft: #fcefdd;
  --danger: #a3261f; --danger-soft: #fbe9e7;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(12, 34, 56, .06);
  --shadow: 0 1px 2px rgba(12, 34, 56, .05), 0 10px 30px rgba(12, 34, 56, .08);
  --shadow-lg: 0 20px 50px rgba(12, 34, 56, .18);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 64px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
body.nav-open, body.lb-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lagoon); text-underline-offset: 3px; }
a:hover { color: var(--night-2); }
h1, h2, h3, .h1, .h2, .h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; color: var(--night); margin: 0 0 .5em; letter-spacing: .005em; }
h1, .h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
h2, .h2 { font-size: clamp(1.65rem, 3.2vw, 2.25rem); }
h3, .h3 { font-size: 1.45rem; }
h4 { font-size: 1rem; margin: 0 0 .35em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
code { background: var(--line-2); padding: .1em .35em; border-radius: 6px; font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--night); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; }

.wrap { width: min(1160px, 100%); margin-inline: auto; padding-inline: 20px; }
.page { padding-block: 28px 64px; }
.page > .wrap > :first-child { margin-top: 0; }
.page--narrow .card--center { max-width: 520px; margin: 32px auto; }
.section { padding-block: 28px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 .6em; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(248, 244, 236, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s, border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(12, 34, 56, .06); }
.header-row { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--night); min-width: 0; }
.brand-mark {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--night); color: var(--gold-2);
  font-family: var(--serif); font-size: 1.6rem; font-weight: 700; line-height: 1;
  box-shadow: inset 0 0 0 2px rgba(217, 173, 82, .55);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-title { font-weight: 700; font-size: .98rem; }
.brand-sub { font-family: var(--serif); font-size: 1.05rem; color: var(--gold); font-weight: 600; white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .93rem;
  transition: background .15s, color .15s;
}
.site-nav a:hover { background: rgba(12, 34, 56, .06); color: var(--night); }
.site-nav a.is-active { background: var(--night); color: #fff; }
.nav-icon-label { display: none; }
.nav-toggle { display: none; }

@media (max-width: 1040px) {
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    content: ""; display: block; width: 20px; height: 2px; background: var(--night); border-radius: 2px; position: relative;
    transition: transform .2s, background .2s;
  }
  .nav-toggle-bar::before { position: absolute; top: -6px; }
  .nav-toggle-bar::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px 20px 22px; background: var(--paper);
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(12, 34, 56, .14);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .18s, transform .18s, visibility .18s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a { padding: 12px 14px; border-radius: 12px; font-size: 1rem; }
  .nav-icon-label { display: inline; }
}
@media (max-width: 420px) {
  .brand-title { font-size: .9rem; }
  .brand-sub { font-size: .98rem; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 12px;
  font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--night);
  transition: transform .08s, box-shadow .15s, background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: #cfc5b3; box-shadow: var(--shadow-sm); color: var(--night); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--night); border-color: var(--night); color: #fff; }
.btn-primary:hover { background: var(--night-2); border-color: var(--night-2); color: #fff; }
.btn-lagoon { background: var(--lagoon); border-color: var(--lagoon); color: #fff; }
.btn-lagoon:hover { background: #0b5f58; border-color: #0b5f58; color: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: transparent; color: #1c1406; }
.btn-gold:hover { color: #1c1406; filter: brightness(1.05); }
.btn-ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; border-color: #fff; }
.btn-danger { color: var(--danger); border-color: #efc4bf; }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); border-color: #e3a19a; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .88rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Cartes, alertes, badges ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(18px, 3vw, 30px); margin-block: 0 22px;
}
.card--flat { box-shadow: none; }
.card--center { text-align: center; }
.card--center .form-stack { text-align: left; }
.card-icon {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.4rem;
  background: var(--gold-soft); color: var(--gold);
}
.page-intro { max-width: 760px; margin-bottom: 26px; }
.page-intro p { color: var(--muted); font-size: 1.05rem; }

.notice, .alert { padding: 12px 16px; border-radius: 12px; border: 1px solid; margin: 0 0 18px; font-size: .95rem; }
.notice { background: var(--lagoon-soft); border-color: #b7e0d9; color: #0a4f49; }
.alert--danger { background: var(--danger-soft); border-color: #f0c3bd; color: var(--danger); }
.alert--warn { background: var(--warn-soft); border-color: #f2d3a8; color: var(--warn); }
.alert--ok { background: var(--ok-soft); border-color: #bfe0c8; color: var(--ok); }
.alert--info { background: #eef3f9; border-color: #d3deeb; color: var(--night-2); }

.badge {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  border: 1px solid transparent; background: var(--line-2); color: var(--ink-2);
}
.badge--ok { background: var(--ok-soft); color: var(--ok); border-color: #c7e5cf; }
.badge--warn { background: var(--warn-soft); color: var(--warn); border-color: #f1d6b0; }
.badge--danger { background: var(--danger-soft); color: var(--danger); border-color: #f0c9c4; }
.badge--gold { background: var(--gold-soft); color: #7d5a14; border-color: #ecd9ae; }
.badge--night { background: var(--night); color: #fff; }

/* ---------- Formulaires ---------- */
.form-stack { display: grid; gap: 14px; }
.form-grid-2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.field .hint { font-weight: 400; color: var(--muted); font-size: .84rem; }
.input, input[type=text], input[type=password], input[type=number], input[type=email], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #d8cfbf; border-radius: 11px;
  font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 90px; }
.input:focus, input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lagoon); box-shadow: 0 0 0 3px rgba(20, 163, 148, .2); }
input[type=file] { width: 100%; padding: 12px; border: 1px dashed #cdbfa6; border-radius: 11px; background: #fffdf8; cursor: pointer; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--lagoon); }
.pass-wrap { position: relative; display: block; }
.pass-wrap .input { padding-right: 48px; }
.toggle-pass {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer;
}
.toggle-pass:hover { background: var(--line-2); }

/* ---------- Accueil : bandeau ---------- */
.page--home { padding-top: 0; }
.hero { position: relative; isolation: isolate; color: #fff; min-height: min(78vh, 720px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 34, 56, .25) 0%, rgba(12, 34, 56, .35) 40%, rgba(8, 22, 38, .88) 100%); }
.hero-inner { padding-block: 120px 112px; }
.hero .eyebrow { color: var(--gold-2); }
.hero-title { color: #fff; font-size: clamp(3rem, 9vw, 6.2rem); margin: 0 0 .1em; line-height: .95; text-shadow: 0 4px 30px rgba(0, 0, 0, .35); }
.hero-title .amp { font-style: italic; color: var(--gold-2); font-weight: 600; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: rgba(255, 255, 255, .92); margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-note { color: rgba(255, 255, 255, .85); margin: 12px 0 0; }

.countdown { display: flex; gap: 10px; flex-wrap: wrap; }
.countdown > div {
  min-width: 84px; padding: 12px 14px 10px; border-radius: 14px; text-align: center;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.countdown span { display: block; font-family: var(--serif); font-size: 2.4rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown small { display: block; margin-top: 4px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
@media (max-width: 480px) {
  .countdown > div { min-width: 0; flex: 1; padding: 10px 6px 8px; }
  .countdown span { font-size: 1.9rem; }
}

.today-card {
  display: block; max-width: 620px; padding: 18px 20px; border-radius: 16px; text-decoration: none; color: #fff;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.today-card:hover { color: #fff; background: rgba(255, 255, 255, .18); }
.today-card strong { font-family: var(--serif); font-size: 1.7rem; display: block; line-height: 1.1; margin: 4px 0; }

/* Accès rapides */
.quick-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: -64px; position: relative; }
@media (max-width: 900px) { .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .quick-grid { grid-template-columns: 1fr; } }
.quick {
  display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s;
}
.quick:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.quick-icon { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.15rem; }
.quick h3 { font-family: var(--sans); font-size: 1.02rem; margin: 2px 0 2px; color: var(--night); }
.quick p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.ic-night { background: #e6ecf3; color: var(--night-2); }
.ic-lagoon { background: var(--lagoon-soft); color: var(--lagoon); }
.ic-gold { background: var(--gold-soft); color: var(--gold); }
.ic-rosso { background: var(--rosso-soft); color: var(--rosso); }

.facts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.fact { padding: 20px; border-radius: var(--radius); background: var(--night); color: #dbe5ef; }
.fact strong { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1.05; color: var(--gold-2); margin-bottom: 4px; }
.fact span { font-size: .93rem; }

.day-strip { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.day-strip a {
  display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 16px; border-radius: 14px; text-decoration: none;
  background: #fff; border: 1px solid var(--line); color: var(--ink); transition: border-color .15s, transform .15s;
}
.day-strip a:hover { border-color: var(--gold-2); transform: translateY(-2px); color: var(--ink); }
.day-strip li.is-today a { border-color: var(--lagoon); box-shadow: 0 0 0 2px rgba(14, 113, 105, .25); }
.ds-num { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: var(--gold); line-height: 1; }
.ds-date { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.ds-title { font-weight: 700; color: var(--night); line-height: 1.3; }

.split { display: grid; gap: 28px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ---------- Programme ---------- */
.day-nav {
  position: sticky; top: var(--header-h); z-index: 20;
  margin: 0 -20px 20px; padding: 10px 20px;
  background: rgba(248, 244, 236, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.pill-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pill-row::-webkit-scrollbar { display: none; }
.pill {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.pill:hover { border-color: #cfc4b0; color: var(--night); }
.pill.is-active { background: var(--night); border-color: var(--night); color: #fff; }
.pill .count { font-size: .76rem; opacity: .75; }

.day-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 26px; }
.day-head { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 22px clamp(18px, 3vw, 30px); background: var(--night); color: #fff; }
.day-num { width: 70px; height: 70px; border-radius: 18px; display: grid; place-items: center; text-align: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(217, 173, 82, .5); }
.day-num small { display: block; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: -4px; }
.day-num b { font-family: var(--serif); font-size: 2.3rem; line-height: 1; color: #fff; }
.day-date { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; }
.day-title { color: #fff; margin: 2px 0 0; font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.day-body { padding: 22px clamp(18px, 3vw, 30px) 26px; }
.day-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); font-size: .87rem; color: var(--ink-2); }
.chip i { color: var(--gold); }
.chip b { color: var(--night); }
.chip--meal-ok { background: var(--ok-soft); border-color: #cae6d2; }
.chip--meal-ok i { color: var(--ok); }
.chip--meal-no { background: var(--warn-soft); border-color: #f1d8b5; }
.chip--meal-no i { color: var(--warn); }

.timeline { display: grid; gap: 4px; margin: 0 0 8px; }
.tl-block { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-top: 1px dashed var(--line); }
.tl-block:first-child { border-top: 0; }
.tl-label { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--lagoon); line-height: 1.2; }
.tl-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tl-items li { position: relative; padding-left: 20px; }
.tl-items li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); }
.tl-items .badge { margin-left: 6px; vertical-align: 1px; }
@media (max-width: 640px) {
  .tl-block { grid-template-columns: 1fr; gap: 4px; }
  .day-head { gap: 14px; }
  .day-num { width: 58px; height: 58px; }
  .day-num b { font-size: 1.9rem; }
}
.day-extra { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 14px 0 4px; }
.info-box { padding: 14px 16px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-size: .92rem; }
.info-box h4 { display: flex; align-items: center; gap: 8px; color: var(--night); }
.info-box ul { margin: 0; padding-left: 1.1em; }
.info-box li + li { margin-top: 3px; }
.day-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ---------- Galeries ---------- */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin-top: 18px; }
.gallery a { position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--line-2); aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery a:hover img { transform: scale(1.05); }
.gallery--lg { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.photo-cap { position: absolute; inset: auto 0 0 0; padding: 22px 10px 8px; font-size: .8rem; line-height: 1.3; color: #fff; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .65)); }

/* ---------- Visionneuse ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6, 14, 24, .94); display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb-figure img { max-width: min(92vw, 1600px); max-height: calc(100vh - 150px); width: auto; height: auto; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb-figure figcaption { color: #e8edf3; text-align: center; font-size: .95rem; display: grid; gap: 6px; max-width: 900px; }
.lb-meta { display: flex; gap: 16px; justify-content: center; align-items: center; color: #9fb0c2; font-size: .85rem; }
.lb-meta a { color: var(--gold-2); text-decoration: none; font-weight: 600; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.15rem; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next { display: none; }
@media (max-width: 640px) {
  .lightbox { padding: 60px 8px 20px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-figure img { max-height: calc(100vh - 190px); }
}

/* ---------- Carte ---------- */
.map-layout { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
.map-box { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #dfe8ea; }
#map { height: min(72vh, 680px); min-height: 420px; }
.map-list { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); max-height: min(72vh, 680px); overflow-y: auto; }
.map-list h3 { font-family: var(--sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0; padding: 14px 16px 6px; position: sticky; top: 0; background: #fff; }
.map-list button { display: flex; gap: 10px; width: 100%; text-align: left; padding: 10px 16px; border: 0; border-top: 1px solid var(--line-2); background: #fff; cursor: pointer; font: inherit; color: var(--ink); }
.map-list button:hover { background: var(--paper); }
.map-list button[hidden] { display: none; }
.map-list .dot { flex: none; margin-top: 3px; }
.map-list strong { display: block; font-size: .95rem; line-height: 1.3; }
.map-list span.where { font-size: .82rem; color: var(--muted); }
.dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: #fff; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.map-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: .88rem; color: var(--muted); }
.legend-line { display: inline-block; width: 28px; height: 0; border-top: 3px solid var(--night-2); vertical-align: middle; margin-right: 6px; }
.legend-line--boat { border-top: 3px dashed var(--lagoon-2); }
.leaflet-popup-content { font-family: var(--sans); font-size: .9rem; line-height: 1.45; }
.leaflet-popup-content h4 { margin: 0 0 2px; font-size: 1rem; color: var(--night); }
@media (max-width: 900px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-list { max-height: none; }
  #map { height: 60vh; min-height: 360px; }
}

/* ---------- Infos pratiques ---------- */
.info-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.info-card h2 { display: flex; align-items: center; gap: 12px; font-size: 1.7rem; }
.info-card h2 .quick-icon { width: 42px; height: 42px; font-size: 1.05rem; }
.info-card ul { margin: 0; padding-left: 1.15em; }
.info-card li + li { margin-top: 6px; }
.meal-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.meal-table th, .meal-table td { padding: 9px 8px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.meal-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.checklist label:hover { background: var(--paper); }
.checklist input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--lagoon); }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }
.checklist .group { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); font-weight: 700; padding: 12px 10px 4px; }
.progress { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lagoon-2), var(--lagoon)); transition: width .3s; }

/* ---------- Documents ---------- */
.doc-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.doc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.doc-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.doc-card .doc-body { padding: 18px 20px 20px; display: grid; gap: 6px; }
.doc-card h3 { margin: 0; font-size: 1.5rem; }
.doc-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.doc-card .doc-go { margin-top: 8px; font-weight: 700; color: var(--lagoon); font-size: .92rem; }

/* ---------- Découvrir ---------- */
.prose { max-width: 760px; }
.prose p { text-align: left; }
.topic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 28px; align-items: start; padding-block: 30px; border-top: 1px solid var(--line); }
.topic:first-of-type { border-top: 0; }
.topic figure { margin: 0; }
.topic figure img { border-radius: 14px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.topic figcaption { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.topic--reverse > figure { order: -1; }
@media (max-width: 820px) {
  .topic { grid-template-columns: 1fr; }
  .topic--reverse > figure { order: 0; }
}
.chrono { list-style: none; padding: 0; margin: 0; position: relative; }
.chrono::before { content: ""; position: absolute; left: 76px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.chrono li { display: grid; grid-template-columns: 64px 1fr; gap: 28px; padding: 8px 0; position: relative; }
.chrono li::before { content: ""; position: absolute; left: 71px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 3px var(--paper); }
.chrono b { font-family: var(--serif); font-size: 1.35rem; color: var(--rosso); text-align: right; line-height: 1.3; }
.key-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.key-list li { padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.key-list li strong { color: var(--night); }

/* ---------- Photos ---------- */
.photos-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.day-section { margin-top: 28px; }
.day-section h2 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 1.8rem; }
.day-section h2 small { font-family: var(--sans); font-size: .9rem; color: var(--muted); font-weight: 500; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty i { font-size: 2.2rem; color: var(--gold-2); margin-bottom: 10px; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th, .table td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); text-align: left; white-space: nowrap; }
.table th { background: var(--paper); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.table td.wrap-cell { white-space: normal; }
.table tr:last-child td { border-bottom: 0; }
.table tr.is-me td { background: var(--lagoon-soft); }
.table a { font-weight: 600; }
.rank { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--gold); }

/* ---------- Quiz ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: .93rem; color: var(--ink-2); background: #fff; border: 1px solid var(--line); }
.tab:hover { color: var(--night); border-color: #cfc4b0; }
.tab.is-active { background: var(--night); border-color: var(--night); color: #fff; }
.quiz-list { display: grid; gap: 14px; }
.quiz-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.quiz-row h2, .quiz-row h3 { font-family: var(--sans); font-size: 1.1rem; margin: 0 0 4px; color: var(--night); }
.quiz-row .meta { color: var(--muted); font-size: .9rem; }
.q-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 0 0 16px; box-shadow: var(--shadow-sm); }
.q-card.is-answered { border-color: #bfe0d9; }
.q-num { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.q-img { max-width: min(100%, 620px); border-radius: 12px; margin: 10px 0; }
.choices { display: grid; gap: 10px; margin-top: 12px; }
.choice { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.choice:hover { border-color: #cdbfa6; }
.choice input { margin-top: 12px; width: 18px; height: 18px; accent-color: var(--lagoon); flex: none; }
.choice:has(input:checked) { border-color: var(--lagoon); background: var(--lagoon-soft); }
.choice-body { flex: 1; min-width: 0; }
.choice-body img { max-width: 220px; border-radius: 10px; margin-top: 6px; }
.kframe { width: 100%; border: 0; display: block; min-height: 30px; }
.choice .kframe, .answer-line .kframe { pointer-events: none; }
.answer-line .kframe { background: transparent; }
.quiz-progress { position: sticky; top: var(--header-h); z-index: 15; display: flex; align-items: center; gap: 12px; padding: 10px 0; margin-bottom: 12px; background: var(--paper); }
.quiz-progress .progress { flex: 1; }
.answer-line { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; padding: 8px 12px; border-radius: 10px; font-size: .93rem; }
.answer-line.ok { background: var(--ok-soft); color: var(--ok); }
.answer-line.no { background: var(--danger-soft); color: var(--danger); }
.answer-line.none { background: var(--line-2); color: var(--muted); }
.answer-line.good { background: #eef3f9; color: var(--night-2); }

.stat-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 22px; }
.stat { padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: 2.2rem; line-height: 1.05; color: var(--night); }
.stat span { font-size: .85rem; color: var(--muted); }
.stat--gold { background: var(--gold-soft); border-color: #ecd9ae; }
.stat--lagoon { background: var(--lagoon-soft); border-color: #bfe3dc; }
.bar { height: 10px; border-radius: 99px; background: var(--line-2); overflow: hidden; min-width: 80px; }
.bar > span { display: block; height: 100%; border-radius: 99px; }
.bar .high { background: var(--ok); }
.bar .mid { background: var(--gold-2); }
.bar .low { background: #d0584f; }
.profile { display: flex; gap: 18px; align-items: center; padding: 22px; border-radius: 18px; background: var(--night); color: #fff; margin-bottom: 20px; }
.avatar { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 1.9rem; font-weight: 700; background: rgba(255, 255, 255, .1); border: 1px solid rgba(217, 173, 82, .6); color: var(--gold-2); flex: none; }
.profile h1 { color: #fff; font-size: 2rem; margin: 0; }
.profile .muted { color: #b8c6d4; }

/* ---------- Administration ---------- */
.admin-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.admin-photo { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.admin-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.admin-photo .pick { position: absolute; top: 8px; left: 8px; background: rgba(255, 255, 255, .92); border-radius: 8px; padding: 4px 6px; display: flex; }
.admin-photo .pick input { width: 20px; height: 20px; accent-color: var(--danger); }
.admin-photo .cap { border: 0; border-top: 1px solid var(--line-2); border-radius: 0; font-size: .88rem; padding: 9px 10px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 12px 0; }
.dropzone { border: 2px dashed #cdbfa6; border-radius: 16px; background: #fffdf8; padding: 26px; text-align: center; transition: border-color .15s, background .15s; }
.dropzone.is-over { border-color: var(--lagoon); background: var(--lagoon-soft); }
.dropzone i { font-size: 2rem; color: var(--gold); }
.upload-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: .9rem; }
.upload-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; border-radius: 8px; background: var(--paper); }
.upload-list .ok { color: var(--ok); font-weight: 600; }
.upload-list .err { color: var(--danger); font-weight: 600; }
.quiz-admin-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.quiz-admin-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.quiz-admin-card h3 { font-family: var(--sans); font-size: 1.08rem; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.quiz-admin-card .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.quiz-admin-card form { margin: 0; }
.quiz-admin-card .actions .btn { width: 100%; }
.q-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.q-item.dragging { opacity: .45; }
.q-item.is-incomplete { border-color: #efc3bd; background: #fffafa; }
.q-handle { cursor: grab; color: var(--muted); padding: 6px 4px; }
.q-body { flex: 1; min-width: 0; }
.q-list { display: grid; gap: 10px; }
.q-edit { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.q-edit.is-open { display: block; }
.prop { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0; background: #fff; }
.prop legend { font-weight: 700; padding: 0 6px; color: var(--ink-2); }
.prop.is-correct { border-color: #9bd3ab; background: var(--ok-soft); }
pre.import-sample { background: var(--night); color: #e5edf5; padding: 14px 16px; border-radius: 12px; overflow-x: auto; font-size: .88rem; line-height: 1.5; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--night); color: #b9c7d5; padding-block: 28px; font-size: .92rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.footer-id { display: grid; gap: 2px; }
.footer-id strong { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--gold-2); text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* ---------- Impression ---------- */
@media print {
  .site-header, .site-footer, .day-nav, .day-links, .gallery, .btn, .lightbox, .no-print { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .page { padding: 0; }
  .day-card, .card { box-shadow: none; break-inside: avoid; border-color: #ccc; }
  .day-head { background: #fff; color: #000; border-bottom: 2px solid #000; }
  .day-title, .day-num b { color: #000; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
