/* Cyril Tourisme : interface immersive, sombre par défaut, avec une option claire.
   Les cinq pastels (mauve, rose, vert, jaune, bleu) servent d'accents sur les deux thèmes. */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 500; font-display: swap; src: url("../vendor/fonts/bricolage-500-normal.d35327b1699c.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-display: swap; src: url("../vendor/fonts/bricolage-600-normal.72280bf66ee0.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url("../vendor/fonts/bricolage-700-normal.48e4b00b03b4.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url("../vendor/fonts/bricolage-800-normal.5beb2f653e74.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-style: normal; font-display: swap; src: url("../vendor/fonts/figtree-400-normal.7bfd10a3def3.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-style: italic; font-display: swap; src: url("../vendor/fonts/figtree-400-italic.5b322d9b8f64.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-style: normal; font-display: swap; src: url("../vendor/fonts/figtree-500-normal.94e34f97c4c6.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-style: normal; font-display: swap; src: url("../vendor/fonts/figtree-600-normal.4376f5953b85.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-style: normal; font-display: swap; src: url("../vendor/fonts/figtree-700-normal.70aaa6879de5.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-style: italic; font-display: swap; src: url("../vendor/fonts/figtree-700-italic.b8646b2bef01.woff2") format("woff2"); }

:root {
  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1rem, 0.4rem + 2.6vw, 3.5rem);
  --radius-s: 12px;
  --radius-m: 18px;
  --radius-l: 28px;
  --nav-height: 76px;

  --cta-bg: #f9d26a;
  --cta-bg-hover: #ffdf8a;
  --on-accent: #14151c;
  --chip-active: #8ec5ff;
}

:root,
[data-bs-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0c11;
  --bg-rgb: 11 12 17;
  --surface: #14151c;
  --surface-2: #1c1e27;
  --surface-3: #272934;
  --line: rgb(255 255 255 / 9%);
  --line-strong: rgb(255 255 255 / 20%);
  --text: #f5f5f7;
  --muted: #a9abb8;
  --glass: rgb(16 17 23 / 74%);
  --field: #1c1e27;
  --invert-bg: #ffffff;
  --invert-text: #0b0c11;
  --shadow: 0 24px 60px -24px rgb(0 0 0 / 80%);
  --poster-shadow: 0 18px 40px -18px rgb(0 0 0 / 85%);

  --mauve: #cbb6f6; --mauve-soft: rgb(203 182 246 / 14%);
  --rose: #f6b3ca;  --rose-soft: rgb(246 179 202 / 14%);
  --vert: #93e2b4;  --vert-soft: rgb(147 226 180 / 13%);
  --jaune: #f9d26a; --jaune-soft: rgb(249 210 106 / 13%);
  --bleu: #8ec5ff;  --bleu-soft: rgb(142 197 255 / 14%);
}

[data-bs-theme="light"] {
  color-scheme: light;
  --bg: #f7f7f9;
  --bg-rgb: 247 247 249;
  --surface: #ffffff;
  --surface-2: #f0f0f4;
  --surface-3: #e4e4ea;
  --line: rgb(18 19 26 / 10%);
  --line-strong: rgb(18 19 26 / 22%);
  --text: #12131a;
  --muted: #555866;
  --glass: rgb(255 255 255 / 80%);
  --field: #f6f6f9;
  --invert-bg: #12131a;
  --invert-text: #ffffff;
  --shadow: 0 24px 50px -28px rgb(30 30 60 / 35%);
  --poster-shadow: 0 16px 34px -18px rgb(30 30 60 / 45%);

  --mauve: #6a48ad; --mauve-soft: rgb(203 182 246 / 32%);
  --rose: #ad3570;  --rose-soft: rgb(246 179 202 / 34%);
  --vert: #1c7650;  --vert-soft: rgb(147 226 180 / 34%);
  --jaune: #806000; --jaune-soft: rgb(249 210 106 / 36%);
  --bleu: #1d64aa;  --bleu-soft: rgb(142 197 255 / 34%);
}

.tint-mauve { --tint: var(--mauve); --tint-soft: var(--mauve-soft); }
.tint-rose  { --tint: var(--rose);  --tint-soft: var(--rose-soft); }
.tint-vert  { --tint: var(--vert);  --tint-soft: var(--vert-soft); }
.tint-jaune { --tint: var(--jaune); --tint-soft: var(--jaune-soft); }
.tint-bleu  { --tint: var(--bleu);  --tint-soft: var(--bleu-soft); }

/* ---------- Base ---------- */

html { scroll-padding-top: calc(var(--nav-height) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  display: flex; flex-direction: column; min-height: 100vh; overflow-x: clip;
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background-color .25s ease, color .25s ease;
}
main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); text-wrap: balance; overflow-wrap: break-word; }
h1 { font-weight: 800; font-size: clamp(2.5rem, 1.5rem + 4vw, 5rem); line-height: 1.02; letter-spacing: -.03em; }
h2 { font-weight: 700; font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.75rem); line-height: 1.08; letter-spacing: -.025em; }
h3 { font-weight: 700; font-size: clamp(1.1875rem, 1.1rem + .35vw, 1.375rem); line-height: 1.2; letter-spacing: -.012em; }
h4 { font-weight: 600; font-size: 1.0625rem; }

:focus-visible { outline: 2px solid var(--chip-active); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 2000; padding: .6rem 1.1rem; background: var(--invert-bg); color: var(--invert-text); border-radius: 999px; font-weight: 600; }
.skip-link:focus { top: .75rem; color: var(--invert-text); }

.wrap { width: min(100% - 2 * var(--gutter), 1500px); margin-inline: auto; }
.section { padding-block: clamp(2.5rem, 1.75rem + 3vw, 5rem); }
.page-top { padding-top: calc(var(--nav-height) + clamp(2rem, 1rem + 4vw, 4.5rem)); }
.muted { color: var(--muted); }

.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--tint, var(--jaune)); }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 1rem; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.eyebrow .dot { background: var(--tint, var(--cta-bg)); }

/* ---------- Boutons, pastilles ---------- */

.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .7rem 1.5rem; border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.cta:active { transform: scale(.98); }
.cta-primary { background: var(--cta-bg); color: var(--on-accent); }
.cta-primary:hover, .cta-primary:focus-visible { background: var(--cta-bg-hover); color: var(--on-accent); transform: translateY(-1px); }
.cta-ghost { background: var(--glass); color: var(--text); border-color: var(--line-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.cta-ghost:hover, .cta-ghost:focus-visible { background: var(--surface-3); color: var(--text); border-color: var(--line-strong); }
.cta-large { min-height: 3.5rem; padding: .85rem 1.9rem; font-size: 1.0625rem; }
.cta i { font-size: 1.05em; }

.icon-btn {
  display: inline-grid; place-items: center; flex: none; width: 3rem; height: 3rem; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: var(--glass); color: var(--text); font-size: 1.15rem; text-decoration: none; cursor: pointer;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background-color .18s ease, transform .18s ease, opacity .18s ease;
}
.icon-btn:hover, .icon-btn:focus-visible { background: var(--surface-3); color: var(--text); }
.icon-btn:disabled { opacity: .35; cursor: default; }

.chip {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 2.5rem; padding: .4rem 1.05rem;
  border: 1px solid var(--line-strong); border-radius: 999px; background: transparent;
  color: var(--text); font-weight: 600; font-size: .9375rem; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.chip:hover { background: var(--surface-2); color: var(--text); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--chip-active); border-color: var(--chip-active); color: var(--on-accent); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
@media (max-width: 767.98px) {
  .list-toolbar .chips { flex: 1 1 100%; flex-wrap: nowrap; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .list-toolbar .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; white-space: nowrap; }
}

.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap; }
.link-arrow i { transition: transform .2s ease; }
.link-arrow:hover { color: var(--text); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Menu ---------- */

.site-header { position: fixed; inset: 0 0 auto; z-index: 1030; padding-block: .85rem; pointer-events: none; border-bottom: 1px solid transparent; transition: background-color .25s ease, border-color .25s ease, padding .25s ease; }
.site-header.is-scrolled { padding-block: .5rem; background: rgb(var(--bg-rgb) / 86%); border-bottom-color: var(--line); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); }
.site-nav { display: flex; align-items: center; gap: .6rem; }
.site-nav > *, .site-menu > * { pointer-events: auto; }

.glass-pill { background: var(--glass); border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); }

.brand { display: inline-flex; align-items: center; gap: .6rem; height: 3rem; padding: 0 1.1rem 0 .4rem; font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -.015em; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand img { display: block; width: 2.2rem; height: 2.2rem; }

.nav-toggle { margin-left: auto; }
.site-menu { position: absolute; top: calc(100% + .5rem); left: 0; right: 0; }
.site-menu-inner { display: grid; gap: .75rem; padding: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow); }
.nav-links { display: grid; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.nav-links a { display: block; padding: .7rem 1.1rem; border-radius: 999px; font-weight: 600; color: var(--muted); text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { background: var(--invert-bg); color: var(--invert-text); }

.search { position: relative; display: flex; align-items: center; min-width: 0; height: 3rem; padding: 0 .6rem 0 1.1rem; gap: .6rem; color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: .9375rem; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search:focus-within { border-color: var(--chip-active); }
.search kbd { flex: none; padding: .2rem .5rem; border-radius: 8px; background: var(--surface-3); color: var(--muted); font-family: var(--font-body); font-size: .75rem; font-weight: 600; box-shadow: none; }
@media (hover: none), (max-width: 1199.98px) { .search kbd { display: none; } }

@media (max-width: 991.98px) {
  .site-nav { position: relative; }
  .search { background: var(--surface-2); }
  .search kbd { display: none; }
}
@media (min-width: 992px) {
  .nav-toggle { display: none; }
  .site-menu { position: static; flex: 1; min-width: 0; display: block !important; height: auto !important; visibility: visible; }
  .site-menu-inner { display: flex; align-items: center; gap: .6rem; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; pointer-events: none; }
  .site-menu-inner > * { pointer-events: auto; }
  .nav-links { display: flex; gap: .1rem; height: 3rem; padding: .3rem; background: var(--glass); border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); }
  .nav-links a { display: flex; align-items: center; height: 100%; padding: 0 1rem; font-size: .9375rem; color: var(--text); white-space: nowrap; }
  .nav-links a:hover { background: var(--line); }
  .search { flex: 1; max-width: 460px; margin-inline: auto; }
  .theme-toggle { margin-left: 0; }
}
@media (max-width: 991.98px) {
  .theme-toggle { margin-left: auto; }
  .nav-toggle { margin-left: 0; order: 3; }
}

/* ---------- Photos : arrondis, léger zoom au survol, plein écran au clic ---------- */

.photo { display: block; position: relative; overflow: hidden; border-radius: var(--radius-m); background: var(--surface-2); cursor: zoom-in; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.photo:hover img { transform: scale(1.03); }
.photo-empty { display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-size: 2.25rem; }

/* ---------- Grand visuel immersif (accueil, pages, détail d'un voyage) ---------- */

.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-bg { position: absolute; inset: 0 0 auto; height: clamp(320px, 56svh, 560px); z-index: -2; overflow: hidden; background: var(--surface); }
.hero-bg .carousel-item { height: 100%; }
.hero-photo { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.carousel-item.active .hero-photo img { animation: hero-drift 14s ease-out both; }
@keyframes hero-drift { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero-scrim {
  position: absolute; inset: 0 0 auto; height: calc(clamp(320px, 56svh, 560px) + 1px); z-index: -1; pointer-events: none;
  background:
    linear-gradient(0deg, rgb(var(--bg-rgb)) 0%, rgb(var(--bg-rgb) / 72%) 22%, rgb(var(--bg-rgb) / 0%) 58%),
    linear-gradient(180deg, rgb(var(--bg-rgb) / 58%) 0%, rgb(var(--bg-rgb) / 0%) 24%);
}
.hero-inner { position: relative; display: grid; gap: 1.5rem; padding-top: clamp(13rem, 42svh, 24rem); padding-bottom: clamp(1.5rem, 1rem + 2vw, 3rem); pointer-events: none; }
.hero-inner > * { pointer-events: auto; }
.hero-copy { display: grid; justify-items: start; }
.hero-copy h1 { margin: 0 0 1rem; max-width: 15ch; }
.hero-text { max-width: 36rem; margin-bottom: 1.25rem; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.5; }
.hero-text p:last-child { margin-bottom: 0; }
.hero-subtitle { max-width: 36rem; margin: 0 0 1.25rem; font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.4; }

.hero-stats { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; margin: 0 0 1.5rem; padding: 0; list-style: none; font-size: .9375rem; color: var(--text); }
.hero-stats li { display: inline-flex; align-items: center; gap: .9rem; }
.hero-stats li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.hero-stats strong { font-weight: 700; }
@media (max-width: 479.98px) { .hero-stats li:nth-child(3) { display: none; } }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }

.hero-aside { display: grid; gap: .75rem; justify-items: stretch; }
.hero-controls { display: inline-flex; align-items: center; gap: .6rem; justify-self: start; padding: .3rem .35rem .3rem .8rem; }
.hero .carousel-indicators { position: static; margin: 0; padding: 0; gap: .35rem; }
.hero .carousel-indicators [data-bs-target] { box-sizing: border-box; flex: none; width: 8px; height: 8px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--line-strong); opacity: 1; transition: width .25s ease, background-color .25s ease; }
.hero .carousel-indicators .active { width: 22px; border-radius: 999px; background: var(--text); }
.hero-toggle { width: 2.2rem; height: 2.2rem; border: 0; background: transparent; font-size: 1rem; backdrop-filter: none; -webkit-backdrop-filter: none; }

.glass-card { display: flex; align-items: center; gap: 1rem; padding: 1rem; color: var(--text); text-decoration: none; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius-m); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%); transition: border-color .2s ease, transform .2s ease; }
.glass-card:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-2px); }
.glass-card img { flex: none; width: 4.25rem; height: 5.5rem; border-radius: 10px; object-fit: cover; }
.glass-card-label { display: block; margin-bottom: .35rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.glass-card-title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; line-height: 1.2; letter-spacing: -.01em; }
.glass-card-text { display: block; margin-top: .25rem; font-size: .875rem; line-height: 1.35; color: var(--muted); }

/* Variante plus basse : en-tête des pages intérieures */
.hero-page .hero-inner { padding-top: clamp(11rem, 30svh, 18rem); }
.hero-page .hero-bg { height: clamp(280px, 46svh, 460px); }
.hero-page .hero-scrim { height: calc(clamp(280px, 46svh, 460px) + 1px); }
.hero-plain .hero-inner { padding-top: calc(var(--nav-height) + clamp(2rem, 1.5rem + 3vw, 4rem)); }
.hero-plain { background: radial-gradient(70% 120% at 12% 0%, var(--tint-soft), transparent 70%); }
.page-intro { max-width: 40rem; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.5; }
.page-intro p:last-child { margin-bottom: 0; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1rem; min-height: 2.5rem; padding: .35rem 1rem .35rem .8rem; font-size: .9375rem; font-weight: 600; color: var(--text); text-decoration: none; }
.back-link:hover { color: var(--text); background: var(--surface-3); }

@media (min-width: 992px) {
  .hero { min-height: min(100svh, 920px); }
  .hero-bg, .hero-scrim { inset: 0; height: auto; }
  .hero-scrim {
    bottom: -1px;
    background:
      linear-gradient(90deg, rgb(var(--bg-rgb) / 90%) 0%, rgb(var(--bg-rgb) / 62%) 32%, rgb(var(--bg-rgb) / 0%) 64%),
      linear-gradient(0deg, rgb(var(--bg-rgb)) 0%, rgb(var(--bg-rgb) / 55%) 14%, rgb(var(--bg-rgb) / 0%) 40%),
      linear-gradient(180deg, rgb(var(--bg-rgb) / 55%) 0%, rgb(var(--bg-rgb) / 0%) 20%);
  }
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); align-items: end; gap: 2rem; padding-top: calc(var(--nav-height) + 2rem); }
  .hero-aside { justify-items: end; }
  .hero-aside .glass-card { width: 100%; }
  .hero-controls { justify-self: end; }
  .hero-page { min-height: min(76svh, 680px); }
  .hero-page .hero-bg, .hero-page .hero-scrim { height: auto; }
  .hero-page .hero-inner { padding-top: calc(var(--nav-height) + 2rem); }
  .hero-page.hero-plain { min-height: 0; }
}

/* ---------- En-têtes de sections, rangées ---------- */

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 2rem; margin-bottom: clamp(1.25rem, 1rem + 1vw, 2rem); }
.section-head h2 { margin: 0; }
.section-head-text { max-width: 46rem; }
.section-head-text .rich { margin-top: .5rem; color: var(--muted); }
.section-head-text .rich p:last-child { margin-bottom: 0; }
.section-head-actions { display: flex; align-items: center; gap: .5rem; }
.section-head-actions .icon-btn { width: 2.5rem; height: 2.5rem; font-size: 1rem; }

.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(165px, 42vw, 300px); gap: clamp(.75rem, .5rem + 1vw, 1.5rem);
  margin-inline: calc(var(--gutter) * -1); padding: .5rem var(--gutter) 1.25rem; overflow-x: auto;
  scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 992px) { .rail { grid-auto-columns: clamp(220px, 19vw, 300px); } }

/* ---------- Affiches de voyages ---------- */

.poster { display: flex; flex-direction: column; min-width: 0; }
.poster-media { position: relative; }
.poster-photo { aspect-ratio: 2 / 3; border-radius: var(--radius-m); box-shadow: var(--poster-shadow); transition: transform .25s ease, box-shadow .25s ease; }
.poster:hover .poster-photo { transform: translateY(-4px); }
.poster-badge { position: absolute; top: .7rem; left: .7rem; display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; background: var(--chip-active); color: var(--on-accent); font-size: .8125rem; font-weight: 700; pointer-events: none; }
.poster-cta { position: absolute; inset: auto .7rem .7rem; display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.6rem; padding: .4rem .9rem; border-radius: 999px; background: var(--cta-bg); color: var(--on-accent); font-weight: 600; font-size: .9375rem; text-decoration: none; opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease, background-color .2s ease; }
.poster:hover .poster-cta, .poster-cta:focus-visible { opacity: 1; transform: translateY(0); }
.poster-cta:hover { background: var(--cta-bg-hover); color: var(--on-accent); }
@media (hover: none) { .poster-cta { display: none; } }
.poster h3 { margin: .9rem 0 .25rem; font-family: var(--font-body); font-weight: 700; font-size: 1.0625rem; letter-spacing: -.005em; }
.poster h3 a { color: var(--text); text-decoration: none; }
.poster h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.poster-meta { display: flex; gap: .5rem; margin: 0; font-size: .875rem; line-height: 1.35; color: var(--muted); }
.poster-meta .dot { margin-top: .36em; width: 7px; height: 7px; background: var(--tint, var(--vert)); }

.poster-grid { --poster-min: 230px; display: grid; gap: clamp(1.25rem, .75rem + 1.5vw, 2.25rem) clamp(.75rem, .5rem + 1vw, 1.5rem); grid-template-columns: repeat(auto-fill, minmax(min(var(--poster-min), 44%), 1fr)); }
.poster-grid[data-size="s"] { --poster-min: 170px; }
.poster-grid[data-size="l"] { --poster-min: 320px; }
.poster-grid[data-size="s"] .poster h3 { font-size: 1rem; }
@media (max-width: 575.98px) {
  .poster-grid, .poster-grid[data-size] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.list-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: clamp(1.25rem, 1rem + 1vw, 2rem); }
.size-control { display: inline-flex; padding: .25rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.size-control button { width: 2.5rem; height: 2.2rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 700; font-size: .875rem; cursor: pointer; }
.size-control button:hover { color: var(--text); }
.size-control button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
@media (max-width: 575.98px) { .size-control { display: none; } }

.empty { padding: clamp(2rem, 1rem + 4vw, 4rem) 1.5rem; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); }
.empty h2 { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.875rem); margin-bottom: .5rem; }
.empty p { max-width: 34rem; margin: 0 auto 1.25rem; color: var(--muted); }

/* ---------- Accueil : présentation et services ---------- */

.intro-grid { display: grid; gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; }
.intro-grid h2 { margin-bottom: 1rem; }
.intro-text { max-width: 38rem; font-size: 1.125rem; }
.intro-text p:last-child { margin-bottom: 0; }
.intro-photos { display: grid; gap: .75rem; grid-template-columns: 1fr; }
.intro-photos .photo { aspect-ratio: 16 / 10; }
.intro-photos-2 { grid-template-columns: 1fr 1fr; }
.intro-photos-2 .photo { aspect-ratio: 4 / 5; }
.intro-photos-2 .photo:nth-child(2) { margin-top: clamp(1rem, 3vw, 2.5rem); }
.intro-photos-3, .intro-photos-4 { grid-template-columns: 1fr 1fr; }
.intro-photos-3 .photo { aspect-ratio: 4 / 3; }
.intro-photos-3 .photo:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.intro-photos-4 .photo { aspect-ratio: 4 / 3; }
@media (min-width: 992px) { .intro-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }

.tile-grid { display: grid; gap: clamp(.75rem, .5rem + 1vw, 1.25rem); grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.tile { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(260px, 26vw, 360px); padding: 1.25rem; overflow: hidden; border-radius: var(--radius-m); background: var(--surface-2); }
.tile .photo { position: absolute; inset: 0; z-index: -2; border-radius: 0; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(0deg, rgb(8 9 13 / 92%) 0%, rgb(8 9 13 / 62%) 34%, rgb(8 9 13 / 0%) 68%); }
.tile h3 { margin: 0 0 .3rem; color: #fff; }
.tile h3 a { color: inherit; text-decoration: none; }
.tile h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tile p { margin: 0; font-size: .9375rem; line-height: 1.35; color: rgb(255 255 255 / 82%); }
.tile .dot { margin-bottom: .6rem; }
.tile h3, .tile p, .tile .dot { position: relative; }
.tile { --tint-on-photo: var(--cta-bg); }
.tile.tint-mauve .dot { background: #cbb6f6; }
.tile.tint-rose .dot { background: #f6b3ca; }
.tile.tint-vert .dot { background: #93e2b4; }
.tile.tint-jaune .dot { background: #f9d26a; }
.tile.tint-bleu .dot { background: #8ec5ff; }

/* ---------- Galerie d'un voyage ---------- */

.gallery { display: grid; gap: .6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery .photo { aspect-ratio: 4 / 3; border-radius: var(--radius-s); }
.gallery .photo:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.gallery-2 .photo:first-child { grid-column: auto; aspect-ratio: 4 / 3; }
.gallery-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(8 9 13 / 58%); color: #fff; font-weight: 700; font-size: 1.0625rem; }
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
  .gallery .photo { aspect-ratio: auto; height: clamp(150px, 15vw, 230px); border-radius: var(--radius-m); }
  .gallery .photo:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; height: 100%; }
  .gallery-1 .photo:first-child { grid-column: 1 / -1; grid-row: auto; height: clamp(240px, 32vw, 460px); }
  .gallery-2 .photo, .gallery-2 .photo:first-child { grid-column: span 2; grid-row: auto; height: clamp(200px, 24vw, 340px); }
  .gallery-3 .photo:not(:first-child) { grid-column: span 2; }
  .gallery-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-4 .photo:first-child { grid-column: 1 / span 2; grid-row: span 3; }
}

.article-grid { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: start; }
@media (min-width: 992px) { .article-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); } }
.side-card { display: grid; gap: 1rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); }
@media (min-width: 992px) { .side-card { position: sticky; top: calc(var(--nav-height) + 1rem); } }
.side-card h2 { margin: 0; font-size: 1.5rem; }
.side-card p { margin: 0; color: var(--muted); }
.side-card .cta { width: 100%; }
.side-card-actions { display: grid; gap: .5rem; }

/* ---------- Texte mis en forme dans l'éditeur ---------- */

.rich { overflow-wrap: break-word; }
.rich p { margin-bottom: 1rem; }
.rich h2 { margin: 2.25rem 0 .75rem; font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem); }
.rich h3 { margin: 1.5rem 0 .4rem; color: var(--tint, var(--bleu)); }
.rich h4 { margin: 1.25rem 0 .4rem; }
.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich ul, .rich ol { margin-bottom: 1rem; padding-left: 1.3rem; }
.rich li { margin-bottom: .35rem; }
.rich li::marker { color: var(--tint, var(--jaune)); }
.rich a { color: var(--tint, var(--bleu)); text-underline-offset: 3px; }
.rich blockquote { margin: 1.25rem 0; padding: .75rem 1.25rem; background: var(--surface); border-left: 3px solid var(--tint, var(--mauve)); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.rich [style*="background-color"] { color: #14151c; padding: .05em .3em; border-radius: 5px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.rich-long { max-width: 46rem; font-size: 1.0938rem; }

/* ---------- Services ---------- */

.service-list { display: grid; gap: clamp(1rem, .75rem + 1.5vw, 2rem); }
.service-card { display: grid; gap: clamp(1.25rem, 1rem + 2vw, 3rem); align-items: center; padding: clamp(.75rem, .5rem + 1.25vw, 1.5rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); scroll-margin-top: calc(var(--nav-height) + 1rem); }
.service-body { padding: .25rem clamp(.5rem, .25rem + 1vw, 1.25rem) .75rem; }
.service-body h2 { margin: 0 0 .4rem; }
.service-subtitle { margin: 0 0 1.1rem; font-size: 1.125rem; line-height: 1.4; color: var(--tint); font-weight: 500; }
.service-photos { display: grid; gap: .5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-photos .photo { aspect-ratio: 4 / 3; border-radius: var(--radius-s); }
.service-photos .photo:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; border-radius: var(--radius-m); }
.service-photos:has(> .photo:nth-child(2):last-child) .photo:last-child { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.service-photos:has(> .photo:nth-child(3):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-prices { display: grid; gap: .4rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.service-prices li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .1rem 1rem; padding: .65rem .9rem; background: var(--tint-soft); border-radius: var(--radius-s); font-size: .9375rem; }
.service-prices strong { color: var(--tint); font-weight: 700; }
.service-prices a { color: var(--text); text-decoration: none; }
@media (min-width: 992px) {
  .service-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card:nth-child(even) .service-media { order: 2; }
}

/* ---------- Tarifs ---------- */

.price-grid { display: grid; gap: clamp(.75rem, .5rem + 1vw, 1.25rem); grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.price-card { display: flex; flex-direction: column; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); transition: border-color .2s ease, transform .2s ease; }
.price-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.price-label { display: flex; align-items: center; gap: .5rem; margin: 0 0 1.25rem; font-size: .875rem; font-weight: 600; color: var(--muted); }
.price-card .dot { background: var(--tint); }
.price-card h2 { margin: 0 0 .35rem; font-size: 1.375rem; letter-spacing: -.015em; }
.price-amount { margin: 0 0 1rem; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.875rem, 1.6rem + 1vw, 2.5rem); line-height: 1.08; letter-spacing: -.03em; color: var(--tint); }
.price-card .rich { flex: 1; color: var(--muted); }
.price-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1.5rem; }
.price-actions .cta { min-height: 2.75rem; padding: .5rem 1.2rem; font-size: .9375rem; }
.price-service-link { font-size: .9375rem; font-weight: 600; color: var(--text); text-underline-offset: 3px; }
.price-service-link:hover { color: var(--tint); }

/* ---------- Contact ---------- */

.contact-grid { display: grid; gap: clamp(1rem, .75rem + 1.5vw, 2rem); align-items: start; }
@media (min-width: 992px) { .contact-grid { grid-template-columns: minmax(300px, 5fr) minmax(0, 7fr); } }
.panel { padding: clamp(1.25rem, 1rem + 1.25vw, 2.25rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); }
.panel h2 { margin: 0 0 1.25rem; font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
.panel h3 { margin: 1.75rem 0 .9rem; font-size: 1.0625rem; font-family: var(--font-body); }
.contact-owner { margin: 0 0 1.25rem; font-weight: 700; font-size: 1.125rem; line-height: 1.35; }
.contact-owner span { display: block; font-weight: 400; font-size: 1rem; color: var(--muted); }
.contact-list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: .85rem; align-items: flex-start; overflow-wrap: anywhere; }
.contact-list i { display: inline-grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--tint-soft); color: var(--tint); font-size: 1.05rem; }
.contact-list span, .contact-list a { padding-top: .45rem; }
.contact-list a { color: var(--text); text-underline-offset: 3px; }

.contact-form .form-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) {
  .contact-form .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-form .field-wide { grid-column: 1 / -1; }
}
.form-label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .9375rem; }
.form-control {
  width: 100%; min-height: 3rem; padding: .7rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  background: var(--field); color: var(--text); font-size: 1rem;
}
.form-control::placeholder { color: var(--muted); opacity: 1; }
.form-control:focus { background: var(--field); color: var(--text); border-color: var(--chip-active); box-shadow: 0 0 0 3px rgb(142 197 255 / 25%); outline: 0; }
.form-control[aria-invalid="true"] { border-color: var(--rose); }
.field-error { margin-top: .35rem; color: var(--rose); font-weight: 500; font-size: .9375rem; }
.form-alert { display: flex; gap: .6rem; align-items: baseline; margin-bottom: 1.25rem; padding: .8rem 1rem; background: var(--rose-soft); border-radius: var(--radius-s); font-weight: 500; }
.form-alert i { color: var(--rose); }
.form-actions { margin-top: 1.5rem; }
.form-note { margin: 1rem 0 0; font-size: .875rem; line-height: 1.45; color: var(--muted); }
.form-note a { color: var(--text); text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.social-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.social-links a { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; padding: .35rem 1rem .35rem .4rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); font-weight: 600; font-size: .9375rem; text-decoration: none; transition: background-color .18s ease; }
.social-links a:hover { background: var(--surface-2); color: var(--text); }
.social-icon { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--tint-soft); color: var(--tint); font-size: .95rem; }

/* ---------- Messages ---------- */

.flash-stack { position: fixed; top: calc(var(--nav-height) + .25rem); right: var(--gutter); left: var(--gutter); z-index: 1040; display: grid; justify-items: end; gap: .5rem; pointer-events: none; }
.flash { display: flex; align-items: flex-start; gap: .7rem; max-width: 30rem; margin: 0; padding: .85rem 1rem; background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--radius-m); box-shadow: var(--shadow); font-weight: 500; pointer-events: auto; }
.flash > i { color: var(--vert); font-size: 1.15rem; line-height: 1.4; }
.flash-error > i { color: var(--rose); }
.flash-close { flex: none; margin-left: .25rem; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 1.15rem; line-height: 1.4; cursor: pointer; }
.flash-close:hover { color: var(--text); }

/* ---------- Prochaine escale ---------- */

.next-stop { padding-bottom: clamp(2.5rem, 1.75rem + 3vw, 5rem); }
.next-stop-panel { padding: clamp(1.25rem, 1rem + 1.5vw, 2.5rem); background: radial-gradient(90% 160% at 0% 0%, var(--tint-soft), transparent 65%), var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); }
.route { display: flex; margin: 0 0 clamp(1.25rem, 1rem + 1vw, 2rem); padding: 0; list-style: none; }
.route li { position: relative; flex: 1; text-align: center; font-size: .8125rem; font-weight: 600; }
.route li::before { content: ""; display: block; position: relative; z-index: 1; width: .85rem; height: .85rem; margin: 0 auto .4rem; border: 2px solid var(--tint); border-radius: 50%; background: var(--surface); }
.route li.is-reached::before { background: var(--tint); }
.route li + li::after { content: ""; position: absolute; top: .38rem; right: 50%; width: 100%; border-top: 2px dotted var(--line-strong); }
.route a { color: var(--muted); text-decoration: none; }
.route .is-reached a, .route a:hover { color: var(--text); }
.next-stop-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.next-stop-body h2 { margin: 0 0 .35rem; }
.next-stop-label { display: flex; align-items: center; gap: .5rem; margin: 0 0 .5rem; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.next-stop-label .dot { background: var(--tint); }
.next-stop-text { margin: 0; max-width: 40rem; color: var(--muted); }

/* ---------- Pied de page ---------- */

.site-footer { margin-top: auto; background: var(--surface); border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 2rem; padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.footer-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.015em; }
.footer-brand img { width: 2.2rem; height: 2.2rem; }
.footer-text { margin: 0 0 .35rem; color: var(--muted); }
.footer-grid a { color: var(--text); text-underline-offset: 3px; }
.footer-title { margin-bottom: .75rem; font-family: var(--font-body); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.footer-links { display: grid; gap: .3rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 2rem; padding-block: 1.1rem; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.footer-legal { color: var(--muted); text-decoration: none; }
.footer-legal:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.5fr); } }

/* ---------- Conditions générales, page introuvable ---------- */

.legal { max-width: 52rem; }
.legal h1 { font-size: clamp(2.25rem, 1.75rem + 2.4vw, 3.5rem); margin-bottom: .75rem; }
.legal-date { margin-bottom: 2rem; font-size: .9375rem; color: var(--muted); }
.not-found { display: grid; justify-items: start; gap: 1rem; min-height: 60vh; align-content: center; }
.not-found h1 { max-width: 14ch; margin: 0; }
.not-found p { max-width: 34rem; margin: 0 0 .5rem; color: var(--muted); font-size: 1.125rem; }

/* ---------- Plein écran ---------- */

.glightbox-clean .gslide-description { background: var(--surface); }
.glightbox-clean .gdesc-inner { padding: .85rem 1.1rem; }
.glightbox-clean .gslide-title { margin: 0; color: var(--text); font-family: var(--font-body); font-size: .9375rem; font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .photo:hover img { transform: none; }
}
