/* ==========================================================================
   Komori — feuille de style principale
   Palette : océan profond, lagon, sable, lave, ylang-ylang
   ========================================================================== */

:root {
  --ocean: #0b4f5c;
  --ocean-deep: #07343d;
  --lagoon: #18a3a0;
  --lagoon-soft: #d7f0ee;
  --sand: #f7f1e6;
  --sand-deep: #ece2cf;
  --lava: #1c1a19;
  --ylang: #e8b43a;
  --ylang-deep: #b9861a;
  --coral: #d9644a;
  --ink: #1f2a2e;
  --muted: #5b6a6f;
  --line: #dfe5e4;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(7, 52, 61, .12);
  --shadow-sm: 0 4px 14px rgba(7, 52, 61, .08);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
  --header-h: 72px;
  /* Hauteur réellement occupée par l'en-tête : 0 quand il s'efface au défilement (mobile) */
  --header-offset: var(--header-h);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--ocean); text-underline-offset: 3px; }
a:hover { color: var(--lagoon); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; color: var(--ocean-deep); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ylang); color: var(--lava); padding: .6rem 1rem; z-index: 1000; }
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--ylang); outline-offset: 2px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.container.narrow { max-width: 780px; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-sand { background: var(--sand); }
.section-ocean { background: linear-gradient(160deg, var(--ocean-deep), var(--ocean)); color: #e6f3f2; }
.section-ocean h2, .section-ocean h3 { color: var(--white); }
.section-ocean a:not(.btn) { color: #bfe9e6; }
.kicker, .card-kicker {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600;
  color: var(--lagoon); margin: 0 0 .6rem; display: flex; align-items: center; gap: .4rem;
}
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.55; }
.note { color: var(--muted); font-size: .92rem; margin-top: 1.2rem; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ------------------------------------------------------------------ Boutons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: transform .2s, background .2s, color .2s;
  font-size: 1rem; cursor: pointer; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-ylang { background: var(--ylang); color: var(--lava); }
.btn-ylang:hover { background: #f2c55a; color: var(--lava); }
.btn-ocean { background: var(--ocean); color: var(--white); }
.btn-ocean:hover { background: var(--lagoon); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.8); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.15); color: var(--white); }
.btn-outline { border-color: var(--ocean); color: var(--ocean); }
.btn-small { padding: .55rem 1.1rem; font-size: .9rem; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ------------------------------------------------------------------ En-tête */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ocean-deep); }
.brand-mark { width: 40px; height: 40px; color: var(--ocean); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: .01em; }
.brand-text small { font-size: .72rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.brand-light { color: var(--white); }
.brand-light .brand-mark { color: var(--white); }
.brand-light small { color: #a9cfcc; }

.main-nav { display: flex; align-items: center; gap: .9rem; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block; padding: .6rem .65rem; text-decoration: none; color: var(--ink); font-weight: 500; border-radius: 8px; font-size: .97rem;
  white-space: nowrap;
}
.nav-cta, .brand-text small { white-space: nowrap; }
@media (max-width: 1320px) { .main-nav > ul > li > a { padding: .6rem .5rem; } .main-nav { gap: .7rem; } }
.main-nav > ul > li:nth-last-child(-n+2) .sub { left: auto; right: 0; }
.main-nav > ul > li > a:hover, .main-nav > ul > li.is-active > a { color: var(--ocean); background: var(--lagoon-soft); }
.main-nav .sub {
  list-style: none; margin: 0; padding: .5rem; position: absolute; top: 100%; left: 0; min-width: 270px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
}
.main-nav .has-sub:hover .sub, .main-nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub a { display: block; padding: .55rem .75rem; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .95rem; }
.main-nav .sub a small { display: block; color: var(--muted); font-size: .78rem; }
.main-nav .sub a:hover { background: var(--sand); color: var(--ocean); }
/* Sous 1180 px, le menu horizontal laisse la place au menu tiroir */
@media (max-width: 1180px) { .main-nav { display: none; } }

/* Bouton « Menu » (ouvre le tiroir, sur toutes les tailles d'écran) */
.header-inner { justify-content: flex-start; }
.main-nav { margin-left: auto; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: .55rem; flex: none; height: 44px; padding: 0 .9rem 0 .75rem;
  border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ocean-deep);
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
}
.menu-toggle:hover { border-color: var(--lagoon); color: var(--ocean); }
.menu-icon { display: inline-flex; flex-direction: column; gap: 4px; width: 20px; }
.menu-icon span { display: block; height: 2px; background: currentColor; border-radius: 2px; }
/* Quand le menu horizontal est affiché, le bouton du tiroir se réduit à son icône */
@media (min-width: 1181px) {
  .menu-toggle { padding: 0 .7rem; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 380px) { .brand-text small { display: none; } }

/* ------------------------------------------------------------------ Menu tiroir */
.drawer {
  position: fixed; inset: 0 auto 0 0; margin: 0; padding: 0; border: 0; overflow: hidden;
  width: min(390px, calc(100vw - 40px)); max-width: none; height: 100%; max-height: none;
  background: var(--white); color: var(--ink); box-shadow: var(--shadow);
}
.drawer[open] { display: flex; flex-direction: column; animation: drawer-in .22s ease-out; }
.drawer::backdrop { background: rgba(7, 30, 36, .55); }
@keyframes drawer-in { from { transform: translateX(-100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .drawer[open] { animation: none; } }
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 16px; border-bottom: 1px solid var(--line); }
.drawer-head .brand-mark { width: 34px; height: 34px; }
.drawer-close {
  flex: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--white);
  font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ocean-deep);
}
.drawer-close:hover { border-color: var(--lagoon); }
.drawer-search { position: relative; padding: .8rem 16px; border-bottom: 1px solid var(--line); }
.drawer-search .icon { position: absolute; left: 28px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.drawer-search input {
  width: 100%; padding: .65rem .8rem .65rem 2.4rem; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 1rem; background: var(--sand); color: var(--ink);
}
.drawer-search input:focus { outline: 2px solid var(--lagoon); outline-offset: 1px; background: var(--white); }
.drawer-nav { flex: 1; overflow-y: auto; padding: .5rem 8px 1.5rem; overscroll-behavior: contain; }
.drawer-tree, .drawer-sub { list-style: none; margin: 0; padding: 0; }
.drawer-sub { margin: 0 0 .3rem .9rem; padding-left: .5rem; border-left: 2px solid var(--lagoon-soft); }
.drawer-row { display: flex; align-items: center; gap: .2rem; }
.drawer-row a, .drawer-label {
  flex: 1; min-width: 0; display: block; padding: .5rem .6rem; border-radius: 8px; text-decoration: none;
  color: var(--ink); font-size: .96rem; line-height: 1.35;
}
.drawer-item.is-root > .drawer-row a, .drawer-item.is-root > .drawer-row .drawer-label { font-weight: 600; color: var(--ocean-deep); font-size: 1.02rem; }
.drawer-row a:hover { background: var(--sand); color: var(--ocean); }
.drawer-row a[aria-current="page"] { background: var(--lagoon-soft); color: var(--ocean); font-weight: 600; }
.drawer-row small { color: var(--muted); font-size: .76rem; font-weight: 400; }
.drawer-toggle {
  flex: none; width: 40px; height: 40px; border: 0; border-radius: 8px; background: none; cursor: pointer;
  position: relative; color: var(--ocean);
}
.drawer-toggle::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translate(-50%, -70%) rotate(45deg); transition: transform .15s;
}
.drawer-toggle[aria-expanded="true"]::before { transform: translate(-50%, -25%) rotate(-135deg); }
.drawer-toggle:hover { background: var(--sand); }
.drawer-empty { padding: 1rem .6rem; color: var(--muted); }
.drawer-foot { padding: .9rem 16px; border-top: 1px solid var(--line); }
.drawer-foot .btn { display: flex; width: 100%; justify-content: center; }
.drawer mark { background: #fbe9b7; color: inherit; border-radius: 3px; padding: 0 1px; }

/* ------------------------------------------------------------------ Hero */
.hero { position: relative; min-height: clamp(420px, 62vh, 640px); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--ocean-deep); }
.hero-xl { min-height: clamp(520px, 88vh, 860px); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,52,61,.25) 0%, rgba(7,52,61,.15) 35%, rgba(7,30,36,.82) 100%); }
.hero-content { position: relative; padding: 6rem 0 4rem; max-width: var(--container); }
.hero-content h1 { color: var(--white); max-width: 16ch; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero-content .lead { max-width: 60ch; color: #eef7f6; }
.hero .kicker { color: var(--ylang); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
/* Bouton discret pour voir la photo du bandeau en grand (légende et crédits dans la visionneuse) */
.hero-zoom {
  position: absolute; right: 16px; bottom: 14px; z-index: 2; width: 40px; height: 40px; display: inline-flex;
  align-items: center; justify-content: center; border-radius: 50%; color: var(--white); cursor: zoom-in;
  background: rgba(7, 30, 36, .45); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(4px);
  opacity: .8; transition: opacity .2s, background .2s, transform .2s;
}
.hero-zoom:hover, .hero-zoom:focus-visible { opacity: 1; color: var(--white); background: rgba(7, 30, 36, .72); transform: scale(1.06); }
.hero-zoom .icon { width: 18px; height: 18px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0 0 1.2rem; font-size: .9rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: .3rem; opacity: .6; }
.hero .breadcrumbs a { color: #d7f0ee; }
.hero .breadcrumbs span { color: var(--white); }
.page-head { background: var(--sand); padding: 3.5rem 0 2.5rem; }
.page-404 { padding: 7rem 0; text-align: left; }

/* ------------------------------------------------------------------ Bandeau chiffres */
.stats-band { background: var(--ocean-deep); color: var(--white); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 2rem 0; }
.stat { display: flex; flex-direction: column; border-left: 3px solid var(--ylang); padding-left: 1rem; }
.stat strong { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); }
.stat span { color: #a9cfcc; font-size: .95rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------------------------------------------ En-têtes de section */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head h2 { margin-bottom: .2rem; }
.section-head p { margin: 0; color: var(--muted); max-width: 60ch; }
.section-ocean .section-head p { color: #bfe0dd; }

/* ------------------------------------------------------------------ Cartes îles */
.island-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 1100px) { .island-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .island-grid { grid-template-columns: 1fr; } }
.island-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; border-radius: var(--radius-lg); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); border-top: 5px solid var(--accent); transition: transform .25s, box-shadow .25s; }
.island-card a:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.island-card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-deep); }
.island-card img { width: 100%; height: 100%; object-fit: cover; }
.island-card-body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.island-card-body p { color: var(--muted); font-size: .97rem; }
.island-card-body .card-kicker { color: var(--accent); }
.island-card-body .link-arrow { margin-top: auto; color: var(--ocean); }

.island-rows { display: grid; gap: 3rem; }
.island-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; }
.island-row:nth-child(even) .island-row-media { order: 2; }
.island-row-media { display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.island-row-media img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform .5s; }
.island-row-media:hover img { transform: scale(1.04); }
.island-row-body .card-kicker { color: var(--accent); }
.island-row-body h2 a { text-decoration: none; color: inherit; }
.tagline { font-family: var(--font-display); font-style: italic; color: var(--accent); font-size: 1.2rem; margin-top: -.4rem; }
@media (max-width: 860px) { .island-row { grid-template-columns: 1fr; gap: 1.2rem; } .island-row:nth-child(even) .island-row-media { order: 0; } }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1rem; }
.chips li { display: inline-flex; align-items: center; gap: .35rem; background: var(--sand); border-radius: 999px; padding: .3rem .8rem; font-size: .88rem; }
.place-links { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-bottom: 1.3rem; font-size: .95rem; }

.island-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 760px) { .island-mini-grid { grid-template-columns: 1fr; } }
.island-mini { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: var(--white) !important; text-decoration: none; }
.island-mini { aspect-ratio: 16 / 10; }
.island-mini img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.island-mini:hover img { transform: scale(1.05); }
.island-mini > span:not(.tile-media) { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem 1rem; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.island-mini strong { display: block; font-family: var(--font-display); font-size: 1.4rem; }

/* ------------------------------------------------------------------ Expériences */
.exp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .exp-grid { grid-template-columns: repeat(2, 1fr); } }
.exp-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; text-decoration: none; background: var(--ocean); }
.tile-media { position: absolute; inset: 0; display: block; }
.exp-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.exp-tile:hover img { transform: scale(1.06); }
.exp-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(7,30,36,.85)); }
.exp-tile-label { position: absolute; z-index: 1; left: 1rem; right: 1rem; bottom: 1rem; color: var(--white); font-weight: 600; display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; }
.exp-tile-label .icon { color: var(--ylang); }

.exp-list { display: grid; gap: 2.2rem; }
.exp-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: center; }
.exp-row-media { display: block; border-radius: var(--radius-lg); overflow: hidden; }
.exp-row-media img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.exp-row-body h2 a { text-decoration: none; color: inherit; }
@media (max-width: 760px) { .exp-row { grid-template-columns: 1fr; gap: 1rem; } }

/* ------------------------------------------------------------------ Split */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; background: var(--white); }
.split-media { position: relative; min-height: 320px; overflow: hidden; background: var(--sand-deep); }
.split-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-body { padding: clamp(2rem, 6vw, 5rem); display: flex; flex-direction: column; justify-content: center; max-width: 680px; }
.split-body .btn { align-self: flex-start; }
.split-reverse .split-media { order: 2; }
.split-compact { min-height: 380px; }
.split-compact + .split-compact { border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .split-media { min-height: 260px; }
}

/* ------------------------------------------------------------------ Figures */
.figure { margin: 1.6rem 0; }
.figure img, .figure video { width: 100%; border-radius: var(--radius); background: var(--sand-deep); }
.figure figcaption { font-size: .88rem; color: var(--muted); margin-top: .5rem; }
.credit { font-size: .78rem; opacity: .85; }
.figure-inline img { aspect-ratio: 16 / 9; object-fit: cover; }
.figure-wide img { aspect-ratio: 16 / 8; object-fit: cover; }
.figure-fill { margin: 0; height: 100%; position: absolute; inset: 0; display: flex; flex-direction: column; }
.figure-fill .zoom { flex: 1; display: block; min-height: 0; }
.figure-fill img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.figure-fill figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 2rem 1rem .7rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.figure-fill.figure-video video { height: 100%; object-fit: cover; border-radius: 0; }
.zoom { display: block; cursor: zoom-in; }

/* Image indisponible : remplacée par un aplat dégradé et la légende */
.img-missing {
  background: linear-gradient(135deg, var(--ocean), var(--lagoon)) !important;
  position: relative;
}
.hero-media.img-missing, .tile-media.img-missing { position: absolute; }
.hero-media.img-missing::after { content: none; }
img.is-broken { visibility: hidden; }
.img-missing::after {
  content: attr(data-missing); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 1rem; text-align: center; color: rgba(255,255,255,.9); font-size: .9rem; font-style: italic;
}

/* ------------------------------------------------------------------ Prose et mises en page */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; align-items: start; }
@media (max-width: 960px) { .with-aside { grid-template-columns: minmax(0, 1fr); } }
/* Colonne latérale : elle suit la lecture ; si elle est plus haute que l'écran, elle défile à part */
.aside-stack {
  display: grid; gap: 1.2rem; align-content: start; position: sticky; top: calc(var(--header-offset) + 1rem);
  max-height: calc(100vh - var(--header-offset) - 2rem); overflow-y: auto; scrollbar-width: thin;
  transition: top .25s ease;
}
/* Variante : la colonne défile avec la page et seul son dernier bloc (sommaire, liste) reste visible */
.aside-stack.aside-flow { position: static; max-height: none; overflow: visible; align-self: stretch; }
.aside-sticky, .aside-stack .aside-sticky {
  position: sticky; top: calc(var(--header-offset) + 1rem); max-height: calc(100vh - var(--header-offset) - 2rem);
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; transition: top .25s ease;
}
@media (max-width: 960px) {
  .aside-stack, .aside-sticky, .aside-stack .aside-sticky { position: static; max-height: none; overflow: visible; }
}
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.narrow-left { max-width: 72ch; margin-top: 2rem; }
.notice { background: #fff6e0; border-left: 4px solid var(--ylang); padding: 1rem 1.2rem; border-radius: 8px; margin: 1.4rem 0; font-size: .97rem; color: var(--ink); }
.updated { color: var(--muted); font-size: .88rem; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2.5rem; }

.factbox { background: var(--sand); border-radius: var(--radius-lg); padding: 1.5rem; }
.factbox h2 { font-size: 1.3rem; }
.factbox dl { margin: 0; display: grid; gap: .8rem; }
.factbox dl div { border-bottom: 1px solid var(--sand-deep); padding-bottom: .7rem; }
.factbox dl div:last-child { border: 0; padding: 0; }
.factbox dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.factbox dd { margin: 0; font-weight: 600; color: var(--ocean-deep); }
.tips { background: var(--lagoon-soft); border-radius: var(--radius-lg); padding: 1.5rem; }
.tips h2 { font-size: 1.25rem; }
.tips ul { padding-left: 1.1rem; margin: 0 0 1rem; }
.tips li { margin-bottom: .5rem; }

.side-nav { background: var(--sand); border-radius: var(--radius-lg); padding: 1.3rem; position: sticky; top: calc(var(--header-offset) + 1rem); }
.aside-stack .side-nav:not(.aside-sticky) { position: static; }
.side-nav h2 { font-size: 1.15rem; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: flex; align-items: center; gap: .55rem; padding: .55rem .6rem; border-radius: 8px; text-decoration: none; color: var(--ink); }
.side-nav a:hover, .side-nav .is-active a { background: var(--white); color: var(--ocean); }
.side-nav .is-active a { font-weight: 600; }
.dot { width: .7rem; height: .7rem; border-radius: 50%; display: inline-block; flex: none; }

/* ------------------------------------------------------------------ Cartes génériques */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; }
.card { height: 100%; }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.card-link:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: inherit; }
.card-media { overflow: hidden; background: var(--sand-deep); }
.card-media img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; transition: transform .5s; }
.card-link:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: .95rem; margin-bottom: .6rem; }
.card-body .card-meta { margin-top: auto; color: var(--ocean); font-weight: 600; font-size: .9rem; }

/* ------------------------------------------------------------------ Itinéraires */
.route-list { display: grid; gap: 2.5rem; }
.route { display: grid; grid-template-columns: 1fr 1.25fr; gap: 2rem; align-items: center; }
.route-media { display: block; border-radius: var(--radius-lg); overflow: hidden; }
.route-media img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.route-body h2 a { text-decoration: none; color: inherit; }
@media (max-width: 760px) { .route { grid-template-columns: 1fr; gap: 1rem; } }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: .5rem; bottom: .5rem; width: 2px; background: var(--lagoon-soft); }
.timeline-step { position: relative; padding-left: 2.6rem; margin-bottom: 2rem; }
.timeline-step::before { content: ""; position: absolute; left: 3px; top: .35rem; width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 4px solid var(--lagoon); }
.timeline-when { font-weight: 700; color: var(--lagoon); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; margin-bottom: .4rem; }
.timeline-card { display: grid; grid-template-columns: 200px 1fr; gap: 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.timeline-card:not(:has(.timeline-media)) { grid-template-columns: 1fr; }
.timeline-card h2 { font-size: 1.3rem; }
.timeline-card p { color: var(--muted); }
.timeline-media { display: block; border-radius: 10px; overflow: hidden; background: var(--sand-deep); }
.timeline-media img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 620px) { .timeline-card { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ Agenda */
.event-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.event-grid-lg { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-bottom: 2rem; }
@media (max-width: 1000px) { .event-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .event-grid { grid-template-columns: 1fr; } }
.event { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; display: flex; flex-direction: column; }
.event h2, .event h3 { font-size: 1.2rem; }
.event p { color: var(--muted); font-size: .95rem; }
.event-when { display: flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--coral) !important; font-size: .9rem; }
.tag { align-self: flex-start; margin-top: auto; background: var(--lagoon-soft); color: var(--ocean); font-size: .78rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; }

/* ------------------------------------------------------------------ Infos pratiques */
.practical-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 1000px) { .practical-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .practical-grid { grid-template-columns: 1fr; } }
.practical-tile { display: flex; flex-direction: column; gap: .35rem; padding: 1.3rem; border-radius: var(--radius); background: var(--white); text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.practical-tile:hover { border-color: var(--lagoon); transform: translateY(-3px); color: var(--ink); }
.practical-tile .icon { width: 2rem; height: 2rem; color: var(--lagoon); margin-bottom: .3rem; }
.practical-tile strong { font-size: 1.05rem; color: var(--ocean-deep); }
.practical-tile span { font-size: .9rem; color: var(--muted); }
.practical-grid-lg .practical-tile { padding: 1.7rem; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .95rem; }
.table th, .table td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--sand); color: var(--ocean-deep); font-weight: 600; }
.table tbody th { color: var(--ocean-deep); width: 40%; }
.credits-table td:first-child { width: 96px; }
.credits-table img { border-radius: 6px; object-fit: cover; width: 80px; height: 54px; }
.credits-table a { word-break: break-word; }

/* ------------------------------------------------------------------ Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.gallery-item { display: block; border-radius: 10px; overflow: hidden; background: var(--sand-deep); cursor: zoom-in; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s, opacity .3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item[hidden] { display: none; }
.gallery-mosaic { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; }
.gallery-mosaic .gallery-item:nth-child(1) { grid-row: span 2; }
.gallery-mosaic .gallery-item:nth-child(5) { grid-column: span 2; }
.gallery-mosaic img { height: 100%; aspect-ratio: auto; }
@media (max-width: 700px) {
  .gallery-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-mosaic .gallery-item:nth-child(5) { grid-column: auto; }
}
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.chip { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: .5rem 1rem; cursor: pointer; font: inherit; font-size: .92rem; color: var(--ink); }
.chip:hover { border-color: var(--lagoon); }
.chip.is-active { background: var(--ocean); border-color: var(--ocean); color: var(--white); }

.lightbox { border: 0; padding: 0; background: rgba(5, 20, 24, .95); width: 100vw; height: 100vh; max-width: none; max-height: none; color: var(--white); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(5, 20, 24, .9); }
.lightbox figure { margin: 0; max-width: min(1200px, 92vw); text-align: center; }
.lightbox img { max-height: 80vh; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { display: grid; gap: .3rem; margin-top: .8rem; font-size: .92rem; color: #cfe5e3; }
.lightbox-caption { color: #eef7f6; }
.lightbox-credit { font-size: .8rem; color: #a9cfcc; }
.lightbox-credit a { color: #d7f0ee; }
.lightbox-credit a:hover { color: var(--ylang); }
.lightbox-count { font-size: .75rem; letter-spacing: .08em; color: #8fb3b0; }
.lightbox-count:empty, .lightbox-credit:empty { display: none; }
.lightbox.is-single .lightbox-nav { display: none; }
.lightbox img { touch-action: pan-y pinch-zoom; }
.lightbox-close, .lightbox-nav { position: absolute; background: rgba(255,255,255,.12); color: var(--white); border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 1.8rem; cursor: pointer; line-height: 1; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-nav.prev { left: 16px; top: 50%; }
.lightbox-nav.next { right: 16px; top: 50%; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.25); }

/* ------------------------------------------------------------------ Vidéos */
.video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); object-fit: cover; }
.video-teaser { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: center; }
.video-teaser .btn { margin-top: .6rem; }
@media (max-width: 860px) { .video-teaser { grid-template-columns: 1fr; } }
.video-feature { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; align-items: center; margin-bottom: 3rem; }
@media (max-width: 860px) { .video-feature { grid-template-columns: 1fr; } }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
@media (max-width: 700px) { .video-grid { grid-template-columns: 1fr; } }
.figure-video { margin: 0; }

/* ------------------------------------------------------------------ Carte */
.map { height: 520px; border-radius: var(--radius-lg); overflow: hidden; background: var(--lagoon-soft); border: 1px solid var(--line); z-index: 0; }
.map-small { height: 260px; }
.map-note { font-size: .8rem; color: var(--muted); margin: -.6rem 0 0; }
.map-list { list-style: none; padding: 0; margin: 1.5rem 0 0; columns: 3 220px; gap: 1.5rem; }
.map-list li { margin-bottom: .5rem; break-inside: avoid; }
.map-list a { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 500; }
.map-list small { color: var(--muted); }
.leaflet-popup-content a { font-weight: 600; }

/* ------------------------------------------------------------------ Formulaire */
.form { display: grid; gap: 1rem; max-width: 640px; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.form input, .form select, .form textarea { font: inherit; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--lagoon); outline: none; box-shadow: 0 0 0 3px var(--lagoon-soft); }
.form .btn { justify-self: start; }

.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2rem; }
.sitemap-grid h2 { font-size: 1.3rem; }
.sitemap-grid ul { padding-left: 1.1rem; }

/* ------------------------------------------------------------------ Pied de page */
.site-footer { background: var(--lava); color: #c9d3d2; padding: 4rem 0 2rem; font-size: .95rem; }
.site-footer a { color: #e3ecea; text-decoration: none; }
.site-footer a:hover { color: var(--ylang); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { margin-top: 1rem; max-width: 38ch; }
.footer-title { font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ylang); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.5rem; font-size: .85rem; color: #93a3a1; }
.footer-bottom a { text-decoration: underline; }
.footer-bottom p { margin-bottom: .4rem; }

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

/* ==========================================================================
   Rubriques de découverte
   ========================================================================== */

/* Sommaire ancré des pages îles */
.anchor-nav { position: sticky; top: var(--header-offset); z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); transition: top .25s ease; }
.anchor-nav ul { list-style: none; margin: 0; padding: .6rem 0; display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; }
.anchor-nav ul::-webkit-scrollbar { display: none; }
.anchor-nav a { display: block; white-space: nowrap; padding: .45rem .9rem; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .93rem; color: var(--ink); background: var(--sand); }
.anchor-nav a:hover { background: var(--lagoon-soft); color: var(--ocean); }
.anchor-nav a.is-current { background: var(--ocean); color: var(--white); }
[id] { scroll-margin-top: calc(var(--header-h) + 64px); }

/* Tableau comparatif des îles */
.compare-table th[style] { border-top: 4px solid var(--accent); }
.compare-table thead a { text-decoration: none; font-family: var(--font-display); font-size: 1.1rem; }
.compare-table tbody th { width: auto; white-space: nowrap; }
.chips a { text-decoration: none; color: inherit; }
.chips a:hover { color: var(--ocean); }

/* Tuiles thématiques */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.theme-grid-lg { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .theme-grid, .theme-grid-lg { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .theme-grid, .theme-grid-lg { grid-template-columns: 1fr; } }
.theme-tile { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; text-decoration: none; background: var(--ocean); }
.theme-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.theme-tile:hover img { transform: scale(1.06); }
.theme-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,30,36,.05) 30%, rgba(7,30,36,.85)); }
.theme-tile-label { position: absolute; z-index: 1; left: 1.1rem; right: 1.1rem; bottom: 1rem; color: var(--white); font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.theme-tile-label .icon { color: var(--ylang); }
.theme-tile-label small { flex-basis: 100%; font-family: var(--font-body); font-size: .85rem; font-weight: 500; color: #d7f0ee; }

/* Frise chronologique */
.chrono { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 1rem; }
.chrono::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--sand-deep); transform: translateX(-1px); }
.chrono-item { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; position: relative; }
.chrono-item::before { content: ""; position: absolute; left: 50%; top: 1.1rem; width: 14px; height: 14px; border-radius: 50%; background: var(--ylang); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--ylang); transform: translateX(-50%); }
.chrono-date { text-align: right; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--coral); margin: .55rem 0 0; }
.chrono-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.chrono-card h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.chrono-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.chrono-item:nth-child(even) .chrono-date { order: 2; text-align: left; }
.chrono-compact { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.chrono-compact::before, .chrono-compact .chrono-item::before { display: none; }
.chrono-compact .chrono-item { grid-template-columns: 1fr; gap: .3rem; }
.chrono-compact .chrono-date, .chrono-compact .chrono-item:nth-child(even) .chrono-date { order: 0; text-align: left; margin: 0; }
@media (max-width: 760px) {
  .chrono::before { left: 7px; }
  .chrono-item { grid-template-columns: 1fr; gap: .3rem; padding-left: 1.8rem; }
  .chrono-item::before { left: 7px; }
  .chrono-date, .chrono-item:nth-child(even) .chrono-date { order: 0; text-align: left; margin: 0; }
  .chrono-compact { grid-template-columns: 1fr; }
  .chrono-compact .chrono-item { padding-left: 0; }
}
@media (min-width: 761px) and (max-width: 1000px) { .chrono-compact { grid-template-columns: repeat(2, 1fr); } }

/* Pages thématiques */
.didyouknow { background: linear-gradient(150deg, var(--ocean-deep), var(--ocean)); color: #e6f3f2; border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; }
.didyouknow .kicker { color: var(--ylang); }
.didyouknow p:last-child { margin: 0; font-size: 1.02rem; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.pager a { display: flex; flex-direction: column; gap: .2rem; text-decoration: none; padding: 1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); font-weight: 600; }
.pager a:hover { border-color: var(--lagoon); }
.pager small { color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.pager-next { text-align: right; grid-column: 2; }

/* Bandeau « Le saviez-vous ? » */
.facts-band { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: center; }
.facts-band .btn { margin: .4rem .4rem 0 0; }
.facts-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.facts-list li { background: rgba(255,255,255,.08); border-left: 3px solid var(--ylang); border-radius: 10px; padding: 1rem 1.1rem; font-size: .97rem; }
@media (max-width: 860px) { .facts-band { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .facts-list { grid-template-columns: 1fr; } }

/* Voyager */
.group-title { font-size: 1.4rem; margin: 2rem 0 1rem; padding-left: .8rem; border-left: 5px solid var(--accent); }
.group-title:first-of-type { margin-top: 0; }
.group-title a { text-decoration: none; color: inherit; }
.group-title small { font-family: var(--font-body); font-size: .9rem; color: var(--muted); font-weight: 500; }
.card-grid-tight { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }

/* Glossaire */
.search-field input { width: 100%; max-width: 480px; font: inherit; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 999px; }
.search-field input:focus { outline: none; border-color: var(--lagoon); box-shadow: 0 0 0 3px var(--lagoon-soft); }
.letters { display: flex; flex-wrap: wrap; gap: .3rem; margin: 1.2rem 0 2rem; }
.letters a { width: 2.2rem; height: 2.2rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--sand); text-decoration: none; font-weight: 600; }
.letters a:hover { background: var(--ocean); color: var(--white); }
.glossary { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.glossary-entry { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.glossary-entry[hidden] { display: none; }
.glossary dt { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ocean-deep); }
.glossary dd { margin: .3rem 0 0; color: var(--muted); }
.glossary .link-arrow { font-size: .9rem; }

/* Quiz */
.quiz { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.2rem; }
.quiz fieldset { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.2rem 1.4rem; margin: 0; }
.quiz legend { font-weight: 600; font-size: 1.08rem; padding: 0 .4rem; display: flex; gap: .6rem; align-items: center; }
.quiz-num { display: inline-flex; width: 1.9rem; height: 1.9rem; align-items: center; justify-content: center; border-radius: 50%; background: var(--ocean); color: var(--white); font-size: .9rem; flex: none; }
.quiz-choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-top: .8rem; }
@media (max-width: 560px) { .quiz-choices { grid-template-columns: 1fr; } }
.quiz-choice { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; cursor: pointer; }
.quiz-choice:hover { border-color: var(--lagoon); }
.quiz-choice.is-correct { border-color: #2f7d55; background: #e5f4ea; }
.quiz-choice.is-wrong { border-color: var(--coral); background: #fbe9e5; }
.quiz-explain { margin: .9rem 0 0; padding: .8rem 1rem; background: var(--sand); border-radius: 10px; font-size: .95rem; }
.quiz-result { background: var(--lagoon-soft); border-radius: var(--radius-lg); padding: 1.2rem 1.4rem; margin-bottom: 1rem; font-weight: 600; }
.quiz-result p { margin: 0; }

/* ---------------------------------------------------------------- Hale halele : contes et récits */
.hale-call { display: flex; flex-wrap: wrap; gap: .6rem; align-items: baseline; margin: 0 0 1.2rem; font-family: var(--font-display); font-size: 1.15rem; }
.hale-call-lg { font-size: 1.6rem; }
.hale-teller { color: var(--ocean); font-weight: 700; }
.hale-answer { color: var(--ylang-deep); font-style: italic; font-weight: 700; }
.section-night .hale-teller { color: var(--lagoon-soft); }
.section-night .hale-answer { color: var(--ylang); }
.section-night { background: linear-gradient(180deg, #0a2a33 0%, #07343d 100%); color: #e7f1f0; }
.section-night h2, .section-night .section-head p { color: var(--white); }
.section-night .link-arrow { color: var(--ylang); }
.tale-text > p:first-child::first-letter { float: left; font-family: var(--font-display); font-size: 3.4em; line-height: .85; padding: .08em .12em 0 0; color: var(--ocean); }
.tale-text p { font-size: 1.1rem; line-height: 1.8; }
.tale-moral { margin: 1.6rem 0; padding: 1rem 1.3rem; border-left: 4px solid var(--ylang); background: var(--sand); font-family: var(--font-display); font-style: italic; font-size: 1.12rem; border-radius: 0 10px 10px 0; }
.tale-about { margin: 2rem 0 1rem; padding: 1.3rem 1.5rem; background: var(--lagoon-soft); border-radius: var(--radius); }
.tale-about h2 { font-size: 1.25rem; display: flex; align-items: center; gap: .5rem; margin-top: 0; }
.tale-about p:last-child { margin-bottom: 0; }
.tale-item { height: 100%; }
.tale-group { margin-bottom: 2.6rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.tale-group:last-of-type { margin-bottom: 1rem; }
.place-aside .card-media img { aspect-ratio: 16 / 9; }

/* ---------------------------------------------------------------- Sources et bibliographie */
.sources { margin: 2.2rem 0 1rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.sources h2 { font-size: 1.25rem; }
.sources-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.sources-list li { font-size: .95rem; line-height: 1.5; }
.sources-list a { text-decoration: none; color: var(--ink); }
.sources-list a:hover { color: var(--ocean); text-decoration: underline; }
.sources-more { margin-top: .8rem; font-size: .95rem; }
.source-badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .15rem .55rem; border-radius: 999px; margin-right: .5rem; vertical-align: .1em; background: var(--lagoon-soft); color: var(--ocean); }
.source-comorien .source-badge, .source-badge.source-comorien { background: #fff1cc; color: #7a5a0e; }
.biblio-group { margin-bottom: 2.2rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.biblio-group h2 { font-size: 1.45rem; border-bottom: 2px solid var(--sand-deep); padding-bottom: .4rem; }
.biblio { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.biblio-entry { padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: calc(var(--header-h) + 1rem); }
.biblio-entry:target { border-color: var(--ylang); box-shadow: 0 0 0 3px #fff1cc; }
.biblio-ref { margin: .5rem 0 .3rem; }
.biblio-note { margin: 0 0 .3rem; color: var(--muted); font-size: .95rem; }
.biblio-cited { margin: 0; font-size: .88rem; color: var(--muted); }

/* ---------------------------------------------------------------- Quiz */
.quiz-progress { font-weight: 600; color: var(--ocean); margin: 0 0 1rem; }
.quiz-explain p { margin: .8rem 0 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1rem; }
.btn-link { background: none; border: 0; color: var(--ocean); text-decoration: underline; padding: .6rem .2rem; }
.didyouknow a { color: var(--ylang); font-weight: 600; }
.didyouknow a:hover { color: var(--white); }

/* ------------------------------------------------------------------ Pages des îles : onglets */
[hidden] { display: none !important; }
.island-tabs { background: var(--white); border-bottom: 1px solid var(--line); }
.island-tabs ul { list-style: none; margin: 0; padding: .7rem 0; display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; }
.island-tabs ul::-webkit-scrollbar { display: none; }
.island-tabs a {
  display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; padding: .5rem 1rem; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .94rem; color: var(--ocean-deep); border: 1px solid var(--line);
}
.island-tabs a:hover { border-color: var(--lagoon); color: var(--ocean); }
.island-tabs a[aria-current="page"] { background: var(--ocean); border-color: var(--ocean); color: var(--white); }
.island-tabs .icon { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ Spots & bons plans */
.filter-bar { margin: 1.6rem 0 .4rem; }
.filter-bar .filters { margin-bottom: .7rem; }
.spot-group { margin: 2rem 0 2.6rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.spot-group > h2 { display: flex; align-items: center; gap: .6rem; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.spot-group > h2 .icon { width: 28px; height: 28px; color: var(--lagoon); }
.spot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.3rem; }
.spot-grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.spot-card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--header-h) + 1rem);
}
.spot-media { position: relative; aspect-ratio: 16 / 9; background: var(--lagoon-soft); overflow: hidden; }
.spot-media img { width: 100%; height: 100%; object-fit: cover; }
.spot-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem 1.2rem; }
.spot-body h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.spot-body p { font-size: .95rem; margin-bottom: .6rem; }
.spot-body .spot-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .5rem; font-size: .8rem; }
.spot-cat { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); }
.spot-cat .icon, .spot-where .icon { width: 16px; height: 16px; flex: none; }
.spot-body .spot-where, .inst-body .spot-where { display: flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .87rem; }
.spot-body .spot-tip { background: var(--sand); border-radius: 10px; padding: .6rem .75rem; font-size: .91rem; }
.spot-body .link-arrow { margin-top: auto; font-size: .92rem; }
.badge { display: inline-block; padding: .16rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.badge-incontournable { background: var(--ocean); color: var(--white); }
.badge-meconnu { background: var(--ylang); color: var(--lava); }
.badge-officiel { background: var(--lagoon-soft); color: var(--ocean); }
.badge-coutume { background: #f6e3d8; color: #8a3a22; }
.badge-associatif { background: #ebe6f6; color: #4b3a7a; }
.muted { color: var(--muted); font-family: var(--font-body); font-size: .55em; font-weight: 500; }
.hub-islands { grid-template-columns: repeat(4, 1fr); margin: 1.5rem 0 .5rem; }
@media (max-width: 900px) { .hub-islands { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .hub-islands { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ Vie publique & institutions */
.inst-block { margin: 2rem 0 2.8rem; scroll-margin-top: calc(var(--header-h) + 64px); }
.inst-block > h2 { border-bottom: 2px solid var(--lagoon-soft); padding-bottom: .4rem; }
.inst-block .section-head h2 { border: 0; }
.inst-block-lead { color: var(--muted); }
.inst-group { margin: 1.4rem 0 1.8rem; scroll-margin-top: calc(var(--header-h) + 64px); }
.inst-group-title { display: flex; align-items: center; gap: .5rem; font-size: 1.15rem; color: var(--ocean); }
.inst-group-title .icon { width: 22px; height: 22px; color: var(--lagoon); }
.inst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.inst-card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-left: 4px solid var(--lagoon); border-radius: var(--radius); overflow: hidden; scroll-margin-top: calc(var(--header-h) + 64px);
}
.inst-card.inst-coutume { border-left-color: var(--coral); }
.inst-card.inst-associatif { border-left-color: #7a68b0; }
.inst-media { position: relative; aspect-ratio: 16 / 8; overflow: hidden; background: var(--lagoon-soft); }
.inst-media img { width: 100%; height: 100%; object-fit: cover; }
.inst-body { padding: 1rem 1.1rem 1.1rem; }
.inst-body h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.inst-body p { font-size: .95rem; margin-bottom: .55rem; }
.inst-body .inst-meta { margin-bottom: .45rem; }
.inst-teaser { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.inst-teaser a {
  display: flex; align-items: center; gap: .6rem; padding: .9rem 1rem; border-radius: var(--radius);
  background: var(--white); text-decoration: none; color: var(--ink); border: 1px solid var(--line);
}
.inst-teaser a:hover { border-color: var(--lagoon); color: var(--ocean); }
.inst-teaser .icon { width: 22px; height: 22px; color: var(--lagoon); flex: none; }
.inst-teaser span { flex: 1; font-weight: 600; }
.inst-teaser strong { background: var(--lagoon-soft); color: var(--ocean); border-radius: 999px; padding: .1rem .55rem; font-size: .85rem; }
/* Sur mobile, chaque barre de filtres défile horizontalement au lieu de s'empiler */
@media (max-width: 700px) {
  .filter-bar .filters, .inst-filter.filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 0 16px 2px; }
  .filter-bar .filters::-webkit-scrollbar { display: none; }
  .filter-bar .chip { flex: none; }
}

/* ==========================================================================
   Navigation fluide
   ========================================================================== */

/* Transition douce d'une page à l'autre (navigateurs compatibles) ; l'en-tête reste en place */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Bouton de recherche de l'en-tête */
.search-toggle {
  flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ocean-deep); cursor: pointer;
}
.search-toggle:hover { border-color: var(--lagoon); color: var(--ocean); }
.search-toggle .icon { width: 20px; height: 20px; }
@media (max-width: 1180px) { .search-toggle { margin-left: auto; } }

/* Barre de progression de lecture (pages longues) */
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--lagoon), var(--ylang)); transform-origin: 0 50%; transform: scaleX(0); }

/* Sur mobile et tablette, l'en-tête s'efface quand on descend et revient dès qu'on remonte */
@media (max-width: 960px) {
  .site-header { transition: transform .25s ease, box-shadow .2s; }
  body.header-hidden { --header-offset: 0px; }
  body.header-hidden .site-header { transform: translateY(-100%); box-shadow: none; }
}

/* Retour en haut de page */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 46px; height: 46px; border: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; background: var(--ocean); color: var(--white);
  box-shadow: var(--shadow); cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s, transform .25s, background .2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--lagoon); }
.to-top .icon { width: 22px; height: 22px; }

/* Sommaire « Sur cette page » */
.toc { font-size: .95rem; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { margin: 0; counter-increment: toc; }
.toc a {
  display: flex; gap: .55rem; padding: .42rem .6rem; border-radius: 8px; border-left: 3px solid transparent;
  text-decoration: none; color: var(--ink); line-height: 1.35;
}
.toc a::before { content: counter(toc); min-width: 1.1em; padding-top: .12em; color: var(--muted); font-size: .8rem; font-weight: 600; }
.toc a:hover { background: var(--sand); color: var(--ocean); }
.toc a.is-current { background: var(--lagoon-soft); color: var(--ocean); font-weight: 600; border-left-color: var(--lagoon); }
.toc-aside { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem .9rem; }
.toc-title {
  display: flex; align-items: center; gap: .45rem; margin: 0 0 .5rem; padding: 0 .6rem;
  color: var(--ocean-deep); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.toc-title .icon { width: 18px; height: 18px; color: var(--lagoon); }
.toc-inline { margin: 0 0 1.8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sand); }
.toc-inline summary {
  display: flex; align-items: center; gap: .5rem; padding: .85rem 1rem; cursor: pointer; list-style: none;
  font-weight: 600; color: var(--ocean-deep);
}
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline summary::after {
  content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .15s;
}
.toc-inline[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.toc-inline summary .icon { color: var(--lagoon); }
.toc-inline summary small { color: var(--muted); font-weight: 500; }
.toc-inline ol { padding: 0 .6rem .8rem; }
.prose .toc-inline + h2 { margin-top: 0; }
@media (min-width: 961px) { .toc-mobile { display: none; } }

/* Recherche du menu : résultats */
.search-status { margin: .3rem .6rem .6rem; color: var(--muted); font-size: .85rem; }
.search-status:empty { display: none; }
.search-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .1rem; }
.search-list a { display: block; padding: .6rem .7rem; border-radius: 10px; text-decoration: none; color: var(--ink); }
.search-list a:hover, .search-list a:focus-visible { background: var(--sand); color: var(--ink); }
.search-list a:focus-visible { outline-offset: -3px; }
.search-section { display: block; margin-bottom: .1rem; color: var(--lagoon); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.search-list strong { display: block; color: var(--ocean-deep); font-size: .98rem; line-height: 1.3; }
.search-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: .15rem; color: var(--muted); font-size: .84rem; line-height: 1.4;
}
.search-list mark { background: #fbe9b7; color: inherit; border-radius: 3px; padding: 0 1px; }
/* Élément visé par un résultat de recherche (bon plan, institution, mot du glossaire) */
.spot-card:target, .inst-card:target, .glossary-entry:has(dt:target) { border-color: var(--ylang); box-shadow: 0 0 0 3px #fff1cc; }

/* Apparition en fondu des images chargées à la demande */
html.js main img[loading="lazy"] { opacity: 0; transition: opacity .45s ease, transform .5s; }
html.js main img[loading="lazy"].is-loaded { opacity: 1; }

/* Mobile : galeries sur deux colonnes, cartes compactes (image à gauche) pour parcourir les listes plus vite */
@media (max-width: 560px) {
  .gallery:not(.gallery-mosaic) { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .card-grid, .card-grid-tight { grid-template-columns: 1fr; gap: .8rem; }
  .card-link { flex-direction: row; border-radius: var(--radius); }
  .card-link:hover { transform: none; }
  .card-media { position: relative; flex: 0 0 34%; max-width: 150px; min-height: 108px; }
  .card-media img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .card-body { min-width: 0; padding: .75rem .9rem .8rem; }
  .card-body h3 { font-size: 1.06rem; margin-bottom: .25rem; }
  .card-body .card-kicker { font-size: .68rem; margin-bottom: .3rem; }
  .card-body p:not(.card-kicker):not(.card-meta) {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .88rem; margin-bottom: .35rem;
  }
  .card-body .card-meta { font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
  html.js main img[loading="lazy"] { opacity: 1; }
  .site-header, .anchor-nav, .aside-stack, .aside-sticky { transition: none; }
}
