/* obs.plongee.bio — feuille de style unique, mobile d'abord.
   Direction : « ardoise de plongée ». Thème clair sur fond sable (même famille que les autres
   projets plongee.bio), encre abyssale,
   lagon pour l'action, jaune zoanthe pour « vu aussi » et les moments de joie.
   Titres : Bricolage Grotesque. Texte : Atkinson Hyperlegible (lisible au soleil). */

:root {
  /* sable : mêmes fonds que les autres projets plongee.bio */
  --bg: #faf9f5;
  --bg-2: #f1ede3;
  --surface: #ffffff;
  --surface-2: #f7f4ec;
  --ink: #0b2a3c;
  --ink-2: #6f6657;
  --ink-3: #9a907f;
  --line: #e3ddcd;
  --lagoon: #0a7480;
  --lagoon-strong: #075a63;
  --lagoon-soft: #dcefe9;
  --on-lagoon: #ffffff;
  --zoanthe: #f4b400;
  --zoanthe-soft: #fff1c4;
  --on-zoanthe: #2f2200;
  --anthias: #d33a6f;
  --on-anthias: #ffffff;
  --ok: #1d7d47;
  --warn: #8f5300;
  --warn-soft: #ffeccb;
  --danger: #b3261e;
  --abyss: #082331;
  --abyss-2: #0d3a4c;
  --fac-atl: #1f5f9e;
  /* En-tête de séjour : « eau peu profonde » en clair, « colonne d'eau » en sombre */
  --hero-bg: linear-gradient(180deg, #ebe5d6 0%, #f3efe5 55%, var(--bg) 100%);
  --hero-glow: rgba(255, 255, 255, .7);
  --hero-ink: var(--ink); --hero-ink-2: var(--ink-2);
  --hero-tint: rgba(60, 50, 30, .05); --hero-ring: rgba(60, 50, 30, .16); --hero-halo: rgba(255, 255, 255, .85);
  --hero-n-bg: var(--ink); --hero-n-fg: #ffffff;
  --on-abyss: #eaf6f5;
  --on-abyss-2: #a9cbd0;
  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 26px;
  --shadow: 0 1px 2px rgba(60, 50, 30, .06), 0 10px 28px -14px rgba(60, 50, 30, .26);
  --shadow-lift: 0 2px 4px rgba(60, 50, 30, .08), 0 18px 40px -16px rgba(60, 50, 30, .34);
  --font-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tabbar-h: 52px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --gutter: 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #061520; --bg-2: #0a1e2a; --surface: #0d2431; --surface-2: #10293a;
    --ink: #e4f1f0; --ink-2: #a5bec6; --ink-3: #6f8a96; --line: #1d3b4a;
    --lagoon: #3cc4c6; --lagoon-strong: #79dcdd; --lagoon-soft: #0f3a42; --on-lagoon: #03252b;
    --zoanthe: #ffc93c; --zoanthe-soft: #3a3011; --on-zoanthe: #2a1e00;
    --anthias: #ff79a5; --on-anthias: #3a0016; --ok: #5fd08f; --warn: #ffb85e; --warn-soft: #3b2a10; --danger: #ff8a80;
    --abyss: #03111a; --abyss-2: #0b3343; --fac-atl: #8cbdf0;
    --hero-bg: linear-gradient(180deg, var(--abyss-2) 0%, var(--abyss) 78%); --hero-glow: rgba(120, 220, 220, .18);
    --hero-ink: var(--on-abyss); --hero-ink-2: var(--on-abyss-2);
    --hero-tint: rgba(255, 255, 255, .06); --hero-ring: rgba(255, 255, 255, .16); --hero-halo: rgba(255, 255, 255, .08);
    --hero-n-bg: var(--on-abyss); --hero-n-fg: var(--abyss);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .6);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #061520; --bg-2: #0a1e2a; --surface: #0d2431; --surface-2: #10293a;
  --ink: #e4f1f0; --ink-2: #a5bec6; --ink-3: #6f8a96; --line: #1d3b4a;
  --lagoon: #3cc4c6; --lagoon-strong: #79dcdd; --lagoon-soft: #0f3a42; --on-lagoon: #03252b;
  --zoanthe: #ffc93c; --zoanthe-soft: #3a3011; --on-zoanthe: #2a1e00;
  --anthias: #ff79a5; --on-anthias: #3a0016; --ok: #5fd08f; --warn: #ffb85e; --warn-soft: #3b2a10; --danger: #ff8a80;
  --abyss: #03111a; --abyss-2: #0b3343; --fac-atl: #8cbdf0;
    --hero-bg: linear-gradient(180deg, var(--abyss-2) 0%, var(--abyss) 78%); --hero-glow: rgba(120, 220, 220, .18);
    --hero-ink: var(--on-abyss); --hero-ink-2: var(--on-abyss-2);
    --hero-tint: rgba(255, 255, 255, .06); --hero-ring: rgba(255, 255, 255, .16); --hero-halo: rgba(255, 255, 255, .08);
    --hero-n-bg: var(--on-abyss); --hero-n-fg: var(--abyss);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .6);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px -16px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.5 var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b));
}
body.no-tabbar { padding-bottom: var(--safe-b); }
img { max-width: 100%; display: block; }
a { color: var(--lagoon); text-underline-offset: .18em; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 6.4vw, 2.6rem); font-weight: 750; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 .8em; }
em.sci, .sci { font-style: italic; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 2px; border-radius: 6px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--bg);
  padding: 10px 14px; border-radius: 10px; z-index: 300; }
.skip-link:focus { top: 8px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
[hidden] { display: none !important; }

/* ── Boutons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.25rem; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  background: var(--lagoon); color: var(--on-lagoon);
  transition: transform .15s var(--ease), background .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--lagoon-strong); }
.btn:active { transform: scale(.97); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: var(--surface); }
.btn--soft { background: var(--lagoon-soft); color: var(--lagoon-strong); }
.btn--soft:hover { background: var(--lagoon-soft); filter: brightness(.97); }
.btn--danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--danger:hover { background: var(--danger); color: #fff; }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 1rem; font-size: .9375rem; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ink);
  display: inline-grid; place-items: center; cursor: pointer; text-decoration: none; position: relative;
}
.icon-btn:hover { background: var(--bg-2); }
.icon-btn svg { width: 24px; height: 24px; }

/* ── En-tête ──────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-2) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  padding-top: var(--safe-t);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; gap: .5rem; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand small { font-weight: 600; color: var(--ink-2); font-size: .85rem; letter-spacing: 0; }
.topnav { display: none; margin-left: 1.5rem; gap: .25rem; }
.topnav a { padding: .55rem .9rem; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 700; }
.topnav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.topbar__end { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.topbar__bell { display: inline-grid; }   /* téléphone aussi : la cloche est à gauche du compte */
/* Bascule clair / sombre : la lune en clair, le soleil en sombre */
.theme-toggle .tt-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .tt-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .tt-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .tt-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .tt-sun { display: block; }
}
.badge-dot {
  position: absolute; top: 4px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--anthias); color: var(--on-anthias); font-size: .72rem; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--bg);
}

/* ── Barre d'onglets (mobile) ─────────────────────────────────────────── */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding-bottom: max(calc(var(--safe-b) - 12px), 4px);   /* moins de vide au-dessus de la barre de geste */
}
.tabbar ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.tabbar a {
  height: var(--tabbar-h); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; text-decoration: none; color: var(--ink-2); font-size: .72rem; font-weight: 700; position: relative;
  -webkit-tap-highlight-color: transparent;
}
.tabbar svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--lagoon); }
.tabbar a[aria-current="page"]::before {
  content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--lagoon);
}
.tabbar .badge-dot { top: 6px; right: calc(50% - 22px); }

/* Bouton flottant « Ajouter une espèce » */
.fab {
  position: fixed; z-index: 55; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px);
  min-height: 56px; padding: 0 1.4rem 0 1.1rem; border-radius: 999px;
  display: inline-flex; align-items: center; gap: .55rem; text-decoration: none;
  background: var(--lagoon); color: var(--on-lagoon); font-weight: 700; font-size: 1.0625rem;
  box-shadow: var(--shadow-lift); white-space: nowrap;
  transition: transform .2s var(--ease);
}
.fab:active { transform: translateX(-50%) scale(.96); }
.fab svg { width: 26px; height: 26px; }
@media (max-width: 399px) { .fab .fab__more { display: none; } }
/* Téléphone : en bas à droite, hors des photos ; se replie en rond « + » quand on fait défiler vers le bas */
@media (max-width: 899px) {
  .fab { left: auto; right: 16px; transform: none; transition: padding .25s var(--ease), gap .25s var(--ease), transform .2s var(--ease); }
  .fab:active { transform: scale(.96); }
  .fab .fab__more { display: none; }
  .fab__label { display: inline-block; max-width: 7em; overflow: hidden; transition: max-width .25s var(--ease), opacity .2s; }
  .fab--mini { padding: 0 15px; gap: 0; }
  .fab--mini .fab__label { max-width: 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .fab, .fab__label { transition: none; } }

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .topnav { display: flex; }
  .topbar__bell { display: inline-grid; }
  .fab { bottom: 28px; left: auto; right: 32px; transform: none; }
  .fab:active { transform: scale(.96); }
}

/* ── Avatars ──────────────────────────────────────────────────────────── */
.avatar {
  --size: 32px;
  width: var(--size); height: var(--size); border-radius: 50%; flex: none;
  display: inline-grid; place-items: center; color: #fff; font-weight: 700;
  font-size: calc(var(--size) * .4); background: var(--c, var(--lagoon)); letter-spacing: .02em;
  box-shadow: 0 0 0 2px var(--surface);
}
.avatars { display: inline-flex; align-items: center; }
.avatars .avatar + .avatar { margin-left: -8px; }
.avatar--more { background: var(--bg-2); color: var(--ink); }

/* ── Pages génériques ─────────────────────────────────────────────────── */
.page { padding-top: 18px; padding-bottom: 40px; }
.page-head { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 20px; margin: 6px 0 22px; }
.page-head p { margin: 6px 0 0; color: var(--ink-2); max-width: 60ch; }
.page-head .btn { margin-left: auto; }
.section-title { display: flex; align-items: baseline; gap: .6rem; margin: 30px 0 14px; }
.section-title .count { color: var(--ink-2); font-weight: 600; font-family: var(--font-body); font-size: .95rem; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius);
  background: var(--lagoon-soft); color: var(--ink); margin: 0 0 16px;
}
.notice--warn { background: var(--warn-soft); }
.notice p { margin: 0; }
.notice .btn { flex: none; }

/* ── Formulaires ──────────────────────────────────────────────────────── */
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label, .field .label { font-weight: 700; }
.field .hint { color: var(--ink-2); font-size: .875rem; }
.field .err { color: var(--danger); font-size: .9rem; font-weight: 700; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--lagoon); box-shadow: 0 0 0 4px var(--lagoon-soft); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 420px) { .segmented--3 { grid-template-columns: 1fr 1fr; } .segmented--3 label:last-of-type { grid-column: 1 / -1; min-height: 48px; } }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  min-height: 56px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface);
  display: flex; align-items: center; justify-content: center; text-align: center; gap: .5em; padding: 8px 10px;
  cursor: pointer; font-weight: 700; color: var(--ink-2); line-height: 1.2;
}
.segmented input:checked + label { border-color: var(--lagoon); color: var(--ink); background: var(--lagoon-soft); }
.segmented input:focus-visible + label { outline: 3px solid var(--lagoon); outline-offset: 2px; }
.switch { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.switch:last-of-type { border-bottom: 1px solid var(--line); }
.switch input { appearance: none; -webkit-appearance: none; flex: none; width: 52px; height: 32px; border-radius: 16px;
  background: var(--line); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s var(--ease); }
.switch input:checked { background: var(--lagoon); }
.switch input:checked::after { transform: translateX(20px); }
.switch strong { display: block; }
.switch span span { color: var(--ink-2); font-size: .9rem; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.form-card { max-width: 620px; }

/* ── Liste des séjours ───────────────────────────────────────────────── */
.greet { margin: 10px 0 4px; }
.greet p { color: var(--ink-2); margin: 8px 0 0; }
.trips { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .trips { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .trips { grid-template-columns: repeat(3, 1fr); } }
.trip-card { display: block; overflow: hidden; }
.trip-card__body { display: block; text-decoration: none; color: inherit; transition: background .15s; }
.trip-card__body:hover { background: var(--bg-2); }
.trip-card__body:hover .trip-card__t { text-decoration: underline; text-underline-offset: 3px; }
.trip-card__empty { text-decoration: none; }
.trip-card__mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; aspect-ratio: 16 / 9; background: var(--abyss); }
.trip-card__mosaic .ph-reveal:first-child { grid-row: span 2; }
.trip-card__mosaic.n1 .ph-reveal:first-child { grid-column: span 2; }
.trip-card__mosaic.n2 .ph-reveal:nth-child(2) { grid-row: span 2; }
/* Séjour sans espèce : le poisson du logo et un point d'interrogation, sur un fond doux aux couleurs du thème */
.trip-card__empty {
  aspect-ratio: 16 / 9; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 16px;
  color: var(--ink-2); font-weight: 700; font-size: .95rem;
  background: radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--lagoon) 12%, var(--surface)), var(--bg-2));
}
.trip-card__fish { width: 104px; height: auto; overflow: visible; }
@media (max-width: 599px) { .trip-card__fish { width: 84px; } }
.trip-card__fish .f1 { fill: color-mix(in srgb, var(--lagoon) 80%, var(--surface)); }
.trip-card__fish .f2 { fill: color-mix(in srgb, var(--lagoon) 50%, var(--surface)); }
.trip-card__fish .f3 { fill: var(--surface); }
.trip-card__fish .q { font: 800 16px var(--font-display); fill: #e0a100; }
.trip-card__body { padding: 14px 16px 16px; }
.trip-card__body h3 { font-size: 1.2rem; }
.trip-card__meta { color: var(--ink-2); font-size: .9rem; margin-top: 4px; }
.trip-card__stats { display: flex; gap: 14px; margin-top: 10px; font-size: .9rem; color: var(--ink-2); }
.trip-card__stats b { color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; }
.new-trip {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 200px;
  border: 2px dashed var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink-2);
  font-weight: 700; padding: 20px; text-align: center;
}
.new-trip:hover { border-color: var(--lagoon); color: var(--lagoon); }
.new-trip svg { width: 36px; height: 36px; }
/* Aucun séjour : tuile plate aux couleurs du thème, avec l'icône du site */
.empty { text-align: center; padding: 32px 20px 30px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.empty h2 { font-size: 1.6rem; }
.empty p { color: var(--ink-2); max-width: 40ch; margin: 10px auto 20px; }
.empty__art { display: block; width: 88px; height: 88px; margin: 0 auto 16px; }
.life-teaser { display: flex; align-items: center; gap: 14px; padding: 16px; margin-top: 24px; text-decoration: none; color: inherit; }
.life-teaser b { font-family: var(--font-display); font-size: 1.8rem; color: var(--lagoon); line-height: 1; }

/* ── Séjour : en-tête « colonne d'eau » ──────────────────────────────── */
.trip-hero {
  background: var(--hero-bg);
  color: var(--hero-ink); padding: 26px 0 22px; position: relative; overflow: hidden;
}
.trip-hero::after { /* surface de l'eau : une ligne de lumière douce */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 120px; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 0%, var(--hero-glow), transparent 70%);
}
.trip-hero > .wrap { position: relative; z-index: 1; }
/* Titre + crayon discret (créateur) ; plus de rangée d'icônes vide au-dessus */
.trip-title { display: flex; align-items: flex-start; gap: 4px; }
.trip-hero h1 { color: var(--hero-ink); font-size: clamp(1.9rem, 7.5vw, 3rem); max-width: 18ch; overflow-wrap: anywhere; margin: 0; }
.trip-title__edit { flex: none; color: var(--hero-ink-2); margin-top: calc((clamp(1.9rem, 7.5vw, 3rem) * 1.12 - 44px) / 2); }
.trip-title__edit svg { width: 20px; height: 20px; }
.trip-title__edit:hover { color: var(--hero-ink); background: var(--hero-tint); }
.trip-hero__meta { color: var(--hero-ink-2); margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .95rem; }
.trip-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.trip-hero__meta svg { width: 16px; height: 16px; opacity: .8; }
.tally { display: flex; align-items: flex-end; gap: 14px; margin: 22px 0 6px; }
.tally__n {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 22vw, 6.5rem); line-height: .82;
  letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: var(--hero-ink);
}
.tally__n.bump { animation: bump .6s var(--ease); }
@keyframes bump { 0% { transform: translateY(0); } 30% { transform: translateY(-10px) scale(1.06); color: var(--zoanthe); } 100% { transform: none; } }
.tally__label { padding-bottom: 8px; color: var(--hero-ink-2); font-size: 1.05rem; line-height: 1.25; }
.tally__label b { color: var(--hero-ink); display: block; font-size: 1.15rem; }
/* Résumé du séjour : téléphone = 35 / partager / à valider ; grand écran = 35 … à valider, puis partager */
.trip-sum { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "tally" "actions" "pending"; }
.trip-sum .tally { grid-area: tally; }
.trip-sum .trip-actions { grid-area: actions; }
.trip-pending { grid-area: pending; margin-top: 8px; justify-content: space-between; background: var(--zoanthe); color: var(--on-zoanthe); }
.trip-pending:hover { filter: brightness(1.05); }
.trip-pending svg { flex: none; }
.tally__l { display: block; }
@media (min-width: 700px) {
  .trip-sum { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tally pending" "actions actions"; align-items: end; }
  .trip-pending { margin: 0 0 14px; }
  .tally__l { display: inline; }
  .tally__groups::before { content: " · "; }
}
.trip-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.trip-actions .btn--ghost { color: var(--hero-ink); box-shadow: inset 0 0 0 1.5px var(--hero-ring); }
.trip-actions .btn--ghost:hover { background: var(--hero-tint); }
.trip-actions .btn--zoanthe { background: var(--zoanthe); color: var(--on-zoanthe); }

/* Filtres de la galerie */
.filters {
  position: sticky; top: calc(60px + var(--safe-t)); z-index: 40; background: var(--bg);
  padding: 10px 0; margin: 0 0 4px; border-bottom: 1px solid var(--line);
}
.chips { position: relative; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px var(--gutter); margin: 0 calc(-1 * var(--gutter)); }
.filters__row { display: flex; align-items: flex-start; gap: 8px; }
.filters__row .chips { flex: 1; min-width: 0; margin-right: 0; padding-right: 0; }
.more-f { position: relative; flex: none; padding-top: 2px; }
.chip--more { gap: 4px; }
.chip--more svg { width: 16px; height: 16px; transition: transform .15s; }
.chip--more[aria-expanded="true"] svg { transform: rotate(180deg); }
.chip--more.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.more-f__menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 45; min-width: 220px; max-width: calc(100vw - 2 * var(--gutter));
  display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lift);
}
.more-f__menu[hidden] { display: none; }
.filters.menu-open { z-index: 65; } /* le menu ouvert passe devant le bouton « Ajouter » et la barre du bas */
.more-f__menu .chip { justify-content: space-between; }
/* Mobile : défilement horizontal signalé par une fine barre et un fondu sur le bord qui cache des puces */
.chips, .sgs { scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding-bottom: 8px; }
.chips::-webkit-scrollbar, .sgs::-webkit-scrollbar { display: block; height: 4px; }
.chips::-webkit-scrollbar-thumb, .sgs::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }
.chips.fade-r, .sgs.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.chips.fade-l, .sgs.fade-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px); mask-image: linear-gradient(90deg, transparent, #000 48px); }
.chips.fade-l.fade-r, .sgs.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
.chip {
  flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font-weight: 700; font-size: .9rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .c { color: var(--ink-2); font-weight: 600; }
.chip[aria-pressed="true"] .c { color: inherit; opacity: .75; }
.chip img { width: 22px; height: auto; }
.filter-empty { text-align: center; padding: 30px 10px; color: var(--ink-2); }

/* Sections de la galerie */
.g-section { scroll-margin-top: 130px; }
.g-head { display: flex; align-items: center; gap: 12px; margin: 28px 0 6px; }
.g-head__icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.45rem;
  background: color-mix(in srgb, var(--gc) 18%, var(--surface)); flex: none; }
.g-head__icon img { width: 80%; }
.g-head h2 { font-size: 1.5rem; }
.g-head .count { color: var(--ink-2); font-weight: 700; font-size: .95rem; padding: 2px 9px; border-radius: 999px; background: var(--bg-2, var(--surface)); }
.sg-title { font-family: var(--font-body); font-weight: 700; font-size: .95rem; color: var(--ink-2); margin: 16px 0 10px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.tile { position: relative; min-width: 0; }
.tile__link { display: block; text-decoration: none; color: inherit; border-radius: var(--radius); }
/* « Vu aussi » directement depuis la galerie */
.tile__seen {
  /* zone tactile 44 px (accessibilité), pastille visible de 30 px */
  position: absolute; top: 2px; right: 2px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center; cursor: pointer; color: #fff; background: transparent;
  transition: transform .15s var(--ease); -webkit-tap-highlight-color: transparent;
}
.tile__seen::before {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  background: rgba(8, 35, 49, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .35); transition: background .2s;
}
.tile__seen svg { position: relative; width: 18px; height: 18px; }
.tile__seen:hover::before { background: rgba(8, 35, 49, .8); }
.tile__seen:active { transform: scale(.92); }
.tile__seen[aria-pressed="true"] { color: var(--on-zoanthe); }
.tile__seen[aria-pressed="true"]::before { background: var(--zoanthe); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .8); }
.tile__seen.pop svg { animation: wiggle .7s var(--ease); }
.tile__seen .bubble { bottom: 60%; }
.tile__seen[disabled] { opacity: .6; }
.tile__seen.is-mine { cursor: help; }
/* Info-bulle quasi immédiate (le title natif attend ~1 s) : survol souris ou focus clavier */
.tile__seen::after {
  content: attr(data-tip); position: absolute; top: calc(100% - 2px); right: 4px; z-index: 3;
  padding: 5px 9px; border-radius: 8px; white-space: nowrap; pointer-events: none;
  font: 600 .8rem/1.2 var(--font-body); color: #fff; background: rgba(8, 35, 49, .94);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  opacity: 0; transform: translateY(-3px); transition: opacity .12s, transform .12s; transition-delay: 0s;
}
@media (hover: hover) {
  .tile__seen:hover::after { opacity: 1; transform: none; transition-delay: 60ms; }
}
.tile__seen:focus-visible::after { opacity: 1; transform: none; }
.tile__ph { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.tile__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.tile__link:hover .tile__ph img { transform: scale(1.04); }
.tile__ph .avatar { --size: 28px; box-shadow: 0 0 0 2px rgba(0,0,0,.25); }
.tile__badge {
  position: absolute; left: 8px; top: 8px; padding: 4px 9px; border-radius: 999px; font-size: .75rem; font-weight: 800;
  background: rgba(8, 35, 49, .78); color: #fff; backdrop-filter: blur(4px);
}
.tile__badge--pending { background: var(--zoanthe); color: var(--on-zoanthe); }
.tile__badge + .tile__badge { top: 38px; }
.tile__sg { margin-top: 8px; font-size: .78rem; font-weight: 700; color: var(--lagoon-strong); line-height: 1.2; overflow-wrap: anywhere; }
.tile__sg + .tile__name { margin-top: 2px; }
.tile__name { margin-top: 8px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.tile__sci { color: var(--ink-2); font-size: .875rem; font-style: italic; line-height: 1.25; overflow-wrap: anywhere; }
.tile__comments { color: var(--ink-2); font-size: .8rem; display: inline-flex; gap: 4px; align-items: center; margin-top: 2px; }
.tile__comments svg { width: 14px; height: 14px; }
.tile.flash .tile__ph { animation: flash 1.6s var(--ease); }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px var(--zoanthe); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Séjour vide */
.trip-empty { text-align: center; padding: 32px 12px 20px; }
.trip-empty h2 { font-size: 1.5rem; }
.trip-empty p { color: var(--ink-2); max-width: 42ch; margin: 10px auto 18px; }
.starter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 640px; margin: 18px auto 0; }
@media (min-width: 640px) { .starter { grid-template-columns: repeat(4, 1fr); } }
.starter-ident { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 700;
  color: var(--lagoon-strong); text-decoration: underline; text-underline-offset: 3px; }
.starter-ident svg { width: 22px; height: 22px; }
.starter a { display: grid; gap: 6px; justify-items: center; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .875rem;
  padding: 14px 6px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.starter span.e { font-size: 1.8rem; line-height: 1; }
.starter img { height: 30px; width: auto; }

/* Partage */
.share-sheet { display: grid; gap: 10px; }
.share-row { display: flex; gap: 8px; }
.share-row .input { font-size: .9rem; }

/* ── Ajout d'espèces ─────────────────────────────────────────────────── */
/* Le titre reste collé en haut ; la recherche, le groupe et la côte défilent avec la page
   (on les retrouve en remontant tout en haut) : rien ne vient masquer la liste pendant la lecture */
.add-top {
  position: sticky; top: 0; z-index: 41; background: var(--bg); padding: calc(var(--safe-t) + 8px) 0 8px;
  box-shadow: 0 1px 0 var(--line);
}
.add-search { position: relative; background: var(--bg); padding: 10px 0 10px; border-bottom: 1px solid var(--line); }
/* En-tête du site sur la page d'ajout : il défile sur téléphone (seule la recherche reste collée),
   il reste collé sur grand écran, la recherche se colle juste en dessous */
.add-page .topbar { position: relative; }
@media (min-width: 900px) {
  .add-page .topbar { position: sticky; }
  .add-page .add-top { top: calc(60px + var(--safe-t)); padding-top: 8px; }
}
.add-top__row { display: flex; align-items: center; gap: 6px; }
.add-top__title { flex: 1; min-width: 0; }
.add-top__title > b { display: block; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.add-top__title span { color: var(--ink-2); font-size: .875rem; }
.counter-pill {
  display: inline-flex; align-items: baseline; gap: 5px; padding: 6px 14px; border-radius: 999px; background: var(--abyss);
  color: var(--on-abyss); font-weight: 700; font-size: .875rem; white-space: nowrap;
}
.counter-pill b { font-family: var(--font-display); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.counter-pill.bump b { animation: bump .6s var(--ease); display: inline-block; }
.search { position: relative; }
.search svg.mag { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--ink-2); pointer-events: none; }
input[type=search]::-webkit-search-cancel-button, input[type=search]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.search .input { padding-left: 46px; padding-right: 46px; min-height: 54px; border-radius: 16px; font-size: 1.0625rem; }
.search .clear { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); }
.add-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 10px; }
.add-filters .scope { margin-top: 0; }
.filt-row { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.zone { display: flex; align-items: center; gap: 6px; }
.zone .zs { display: none; }
.zone > svg { width: 18px; height: 18px; color: var(--ink-2); flex: none; }
.zone .chip { min-height: 36px; }
@media (max-width: 599px) {
  .filt-row { margin-left: 0; width: 100%; }
  .zone .zl { display: none; } .zone .zs { display: inline; }        /* Méd., Atl. : tout tient sur une ligne */
  .filt-row .chip--seen { margin-left: auto; }
}
.res__facs { display: inline-flex; gap: 4px; }
.res__fac-s { display: none; }
@media (max-width: 599px) { .res__fac-l { display: none; } .res__fac-s { display: inline; } }
.res__fac {
  display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px;
  color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line);
}
.res__fac--atl { color: var(--fac-atl); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fac-atl) 40%, transparent); }
.res__fac--med { color: var(--lagoon-strong); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lagoon-strong) 40%, transparent); }
.link-btn { font: inherit; font-weight: 700; color: var(--lagoon-strong); background: none; border: 0; padding: 6px 2px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.scope { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.scope .chip { min-height: 36px; }
.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 16px 0; }
@media (min-width: 640px) { .groups { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .groups { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.gtile {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 104px; padding: 12px 6px;
  border-radius: var(--radius); border: 0; background: var(--surface); box-shadow: var(--shadow); cursor: pointer; color: var(--ink);
  font-weight: 700; font-size: .875rem; line-height: 1.15; text-align: center; transition: transform .15s var(--ease);
}
.gtile:active { transform: scale(.96); }
.gtile .e { font-size: 2rem; line-height: 1; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  background: color-mix(in srgb, var(--gc) 16%, var(--surface)); }
.gtile .e img { width: 82%; height: 82%; object-fit: contain; }   /* chaque dessin garde ses proportions */
.gtile .n { position: absolute; top: 8px; right: 8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--ink); color: var(--bg); font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
.sgs { display: block; padding: 10px var(--gutter) 8px; margin: 0 calc(-1 * var(--gutter)); overflow-x: auto; }
.sgs__in { display: flex; flex-wrap: wrap; gap: 8px; width: max-content; }
.results { list-style: none; margin: 0; padding: 6px 0 8px; }
.finder-body { padding-bottom: 120px; }   /* la marge du bas (barre d'onglets, clavier) passe sous « Voir plus » */
.species-page .finder-body { padding-bottom: 8px; }   /* page « Espèces » : la phrase de fin suit directement */
.results li + li { border-top: 1px solid var(--line); }
/* Ligne de résultat : photos | nom (toucher = ajouter) + liens de fiches */
.res-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ph main" "ph links";
  grid-template-rows: auto 1fr; column-gap: 12px; align-items: start; padding: 10px 0;
}
/* nom et ＋ alignés en haut, sur le haut des photos */
.res-item .res { grid-area: main; padding: 0 2px; min-height: 0; align-items: flex-start; }
.res-item .res .res__act { margin-top: 2px; }
.res-ph { grid-area: ph; display: flex; gap: 8px; }
/* Crédit posé sur chaque photo (bas, dégradé) : on sait qui a pris quelle photo */
.res-ph__f { position: relative; }
.res-ph__cap {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: baseline; gap: 4px;
  padding: 18px 7px 5px; border-radius: 0 0 14px 14px; pointer-events: none;
  background: linear-gradient(transparent, rgba(4, 16, 24, .78)); color: #fff; font-size: .68rem; line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.res-ph__who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-ph__lic { display: none; flex: none; opacity: .85; white-space: nowrap; }
.res-ph__cap a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); text-underline-offset: 2px; pointer-events: auto; }
.res-ph__cap a:hover { text-decoration-color: #fff; }
/* au survol de la photo, le nom complet s'affiche */
.res-ph__f:hover .res-ph__cap { flex-wrap: wrap; }
.res-ph__f:hover .res-ph__who, .res-ph__f:focus-within .res-ph__who { white-space: normal; }
.res-ph__f:hover .res-ph__lic, .res-ph__f:focus-within .res-ph__lic { display: inline; }
.res-ph__f:focus-within .res-ph__cap { flex-wrap: wrap; }
.res-ph__open {
  position: relative; display: block; padding: 0; border: 0; background: var(--bg-2); border-radius: 14px; overflow: hidden;
  width: 96px; height: 96px; cursor: zoom-in; -webkit-tap-highlight-color: transparent;
}
.res-ph__open img { width: 100%; height: 100%; object-fit: cover; }
.res-ph__open.res__noph { display: grid; place-items: center; font-size: 1.8rem; cursor: default; }
.res-ph__n {
  position: absolute; right: 4px; bottom: 4px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px 2px 4px;
  border-radius: 999px; background: rgba(8, 35, 49, .78); color: #fff; font-size: .72rem; font-weight: 700; pointer-events: none;
}
.res-ph__n svg { width: 13px; height: 13px; }
.res-ph__f { display: none; margin: 0; width: 132px; }
.res-ph__img { display: block; padding: 0; border: 0; width: 132px; height: 132px; border-radius: 14px; overflow: hidden; background: var(--bg-2); cursor: zoom-in; }
.res-ph__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s var(--ease); }
.res-ph__img:hover img { transform: scale(1.05); }
.res-more__ph figcaption { font-size: .72rem; color: var(--ink-2); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-more__ph figcaption a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.res-more__ph figcaption a:hover { color: var(--lagoon-strong); text-decoration-color: currentColor; }
/* Type à droite du nom ; dessous, les fiches : icône grise + nom, couleur au survol */
.res-item .res__t { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.res__t .res__tag { margin: 0; }
.res-meta { grid-area: links; display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; margin-top: 6px; }
.res-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; text-decoration: none;
  color: var(--ink-2); font-weight: 700; font-size: .8rem; transition: color .15s;
}
.res-link .ico {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .6rem; flex: none;
  background: var(--bg-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); transition: background .15s, color .15s;
}
.res-link .ico--wiki { font-size: .78rem !important; }
.res-link .ico svg { width: 12px; height: 12px; }
.res-link:hover .ico--fiche, .res-link:focus-visible .ico--fiche { background: var(--lagoon); }
.res-link:hover, .res-link:focus-visible { color: var(--ink); }
.res-link:hover .ico, .res-link:focus-visible .ico { color: #fff; box-shadow: none; }
.res-link:hover .ico--doris, .res-link:focus-visible .ico--doris { background: #1f5f9e; }
.res-link:hover .ico--inat, .res-link:focus-visible .ico--inat { background: #4a7400; }
.res-link:hover .ico--wiki, .res-link:focus-visible .ico--wiki { background: #3a3a3a; }
.res-link:hover .ico--bioobs, .res-link:focus-visible .ico--bioobs { background: #9c4f0b; }
.res-link__l { display: none; }
@media (max-width: 599px) {
  /* téléphone : les fiches sur toute la largeur, sous la photo et le nom */
  .res-item { grid-template-areas: "ph main" "links links"; }
  .res-meta { gap: 0 11px; margin-top: 8px; }
}
@media (max-width: 379px) { .res-meta { gap: 0 6px; } .res-link { gap: 3px; } }
@media (min-width: 600px) { .res-link__l { display: inline; } .res-link__s { display: none; } }
@media (min-width: 900px) {
  /* grand écran : les 3 photos côte à côte, chacune s'ouvre en grand ; pas de panneau */
  .res-ph__open { display: none; }
  .res-ph__f { display: block; }
  .res-item { padding: 14px 0; }
}
.res-more { grid-column: 1 / -1; padding: 2px 0 16px; animation: fadeIn .18s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } }
.res-more__ph {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.res-more__ph figure { margin: 0; scroll-snap-align: center; min-width: 0; }
.res-more__img { display: block; width: 100%; padding: 0; border: 0; background: var(--bg-2); border-radius: 14px; overflow: hidden; cursor: zoom-in; }
.res-more__img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 600px) { .res-more__ph { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 300px)); margin: 0; padding: 0; overflow: visible; } }
.res {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 2px; border: 0; background: none;
  text-align: left; cursor: pointer; color: var(--ink); min-height: 76px; -webkit-tap-highlight-color: transparent;
}
.res__ph { width: 60px; height: 60px; border-radius: 14px; overflow: hidden; flex: none; background: var(--bg-2); }
.res__ph img { width: 100%; height: 100%; object-fit: cover; }
.res__txt { flex: 1; min-width: 0; }
.res__t { font-weight: 700; display: block; line-height: 1.25; overflow-wrap: anywhere; }
.res__s { color: var(--ink-2); font-size: .875rem; display: block; line-height: 1.3; overflow-wrap: anywhere; }
.res__s i { font-style: italic; }
.res-item .res__s { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; }
/* Fréquence en France : étiquette texte ; neutre pour « Commun », de plus en plus chaude vers « Très rare » */
.rar { display: inline-flex; align-items: center; gap: .3em; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; line-height: 1.5; cursor: help; }
.rar--1 { background: none; color: var(--ink-2); padding-left: 0; padding-right: 0; font-weight: 600; }
.rar--1.rar--big { padding-left: 2px; }
.rar--2 { background: var(--lagoon-soft); color: var(--lagoon-strong); }
.rar--3 { background: var(--zoanthe-soft); color: var(--warn); }
.rar--4 { background: var(--zoanthe); color: var(--on-zoanthe); }
.rar--big { font-size: .85rem; padding: 4px 12px; }
.res__tag { display: inline-block; margin-top: 3px; font-size: .75rem; font-weight: 700; color: var(--ink-2); background: var(--bg-2);
  padding: 2px 8px; border-radius: 999px; }
.res__tag--genus { background: var(--lagoon-soft); color: var(--lagoon-strong); }
.res__act {
  flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lagoon-soft); color: var(--lagoon-strong); transition: transform .2s var(--ease), background .2s;
}
.res__act svg { width: 24px; height: 24px; }
.res:hover .res__act { background: var(--lagoon); color: var(--on-lagoon); }
.res.is-in .res__act { background: var(--ok); color: #fff; }
.res__state small { font-weight: 400; color: var(--ink-2); font-size: inherit; }
@media (hover: hover) { .res.is-in[data-removable]:hover .res__act { background: var(--danger); } }
.res.is-in .res__act.seen-ask { background: var(--zoanthe-soft); color: var(--on-zoanthe); box-shadow: inset 0 0 0 2px var(--zoanthe); }
.res.just-added .res__act { animation: pop .5s var(--ease); }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.res.busy { opacity: .6; pointer-events: none; }
.res__state { display: block; font-size: .8rem; font-weight: 700; color: var(--ok); margin-top: 2px; }
.res__state--pending { color: var(--warn); }
.res__state--seen { color: var(--warn); }
.more-btn { margin: 4px auto 0; display: flex; }
.no-result { text-align: center; padding: 34px 14px; color: var(--ink-2); }
.no-result b { color: var(--ink); display: block; font-size: 1.1rem; margin-bottom: 6px; }
.widened { list-style: none; padding: 12px 14px; margin: 8px 0 4px; border-radius: 14px; background: var(--lagoon-soft); font-size: .9rem; }
.widened + li { border-top: 0 !important; }
.list-head { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; }
.list-head h2 { font-size: 1.15rem; }
.list-head .btn { margin-left: auto; }

/* ── Fiche observation ───────────────────────────────────────────────── */
.obs-nav { display: flex; align-items: center; gap: 4px; padding: 8px 0; }
.obs-nav .pos { color: var(--ink-2); font-size: .9rem; font-weight: 700; margin-left: auto; margin-right: 4px; }
.obs-nav .back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); text-decoration: none; font-weight: 700;
  min-height: 44px; padding-right: 8px; min-width: 0; }
.obs-nav .back span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.obs-nav .back svg { width: 24px; height: 24px; flex: none; }
.obs-layout { display: grid; gap: 18px; }
@media (min-width: 900px) { .obs-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: start; }
  .obs-media { position: sticky; top: 76px; } }
.carousel { position: relative; margin: 0 calc(-1 * var(--gutter)); }
@media (min-width: 600px) { .carousel { margin: 0; } }
.carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; }
.carousel__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-2); cursor: zoom-in; border: 0; padding: 0; display: block; }
@media (min-width: 600px) { .carousel__img { border-radius: var(--radius-l); } }
.carousel__img img { width: 100%; height: 100%; object-fit: cover; }
.carousel__cap { padding: 8px var(--gutter) 0; color: var(--ink-2); font-size: .8rem; line-height: 1.35; }
@media (min-width: 600px) { .carousel__cap { padding: 8px 4px 0; } }
.carousel__cap a { color: inherit; }
/* Miniatures sous la grande photo (remplacent les points) */
.thumbs { display: flex; gap: 8px; padding: 10px var(--gutter) 0; }
@media (min-width: 600px) { .thumbs { padding: 10px 0 0; } }
.thumbs button { width: 72px; height: 72px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--bg-2);
  opacity: .62; box-shadow: 0 0 0 0 var(--lagoon); transition: opacity .15s, box-shadow .15s; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button:hover { opacity: .9; }
.thumbs button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 3px var(--lagoon); }
.carousel__stage { position: relative; }
.carousel__ui { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 4 / 3; pointer-events: none; }
@media (min-width: 600px) { .carousel__ui { width: 100%; } }
.carousel__ui > * { pointer-events: auto; }
.carousel__count { position: absolute; top: 10px; right: calc(var(--gutter) + 0px); z-index: 2; padding: 3px 9px; border-radius: 999px; right: 10px !important;
  background: rgba(8, 35, 49, .72); color: #fff; font-size: .78rem; font-weight: 700; pointer-events: none; }
@media (min-width: 600px) { .carousel__count { right: 12px; } }
.carousel__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0;
  display: none; place-items: center; cursor: pointer; background: rgba(255, 255, 255, .92); color: #082331; box-shadow: var(--shadow); transition: opacity .15s; }
.carousel__nav svg { width: 22px; height: 22px; }
.carousel__nav--prev { left: 12px; } .carousel__nav--next { right: 12px; }
.carousel__nav[disabled] { opacity: 0 !important; pointer-events: none; }
@media (hover: hover) and (min-width: 600px) {
  .carousel__nav { display: grid; opacity: 0; }
  .carousel:hover .carousel__nav, .carousel__nav:focus-visible { opacity: 1; }
}
.obs-title h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); overflow-wrap: anywhere; }
.obs-title .sci { font-size: 1.1rem; color: var(--ink-2); margin-top: 4px; overflow-wrap: anywhere; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 10px; color: var(--ink-2); font-weight: 700; font-size: .9rem; }
.crumb .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .8125rem; font-weight: 700; background: var(--bg-2); color: var(--ink); }
.seen-box { padding: 18px; margin-top: 18px; }
.seen-btn {
  width: 100%; min-height: 60px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 800; font-size: 1.0625rem;
  display: flex; align-items: center; justify-content: center; gap: 10px; position: relative; overflow: visible;
  background: var(--zoanthe); color: var(--on-zoanthe); transition: transform .15s var(--ease), background .2s, box-shadow .2s;
}
.seen-btn:active { transform: scale(.97); }
.seen-btn[aria-pressed="true"] { background: var(--zoanthe-soft); box-shadow: inset 0 0 0 2px var(--zoanthe); color: var(--ink); }
.seen-btn .mask { width: 30px; height: 30px; flex: none; }
.seen-btn--mine { background: var(--zoanthe-soft); box-shadow: inset 0 0 0 2px var(--zoanthe); color: var(--ink); cursor: default; }
.seen-btn.pop .mask { animation: wiggle .7s var(--ease); }
@keyframes wiggle { 0% { transform: rotate(0); } 25% { transform: rotate(-14deg) scale(1.15); } 50% { transform: rotate(10deg) scale(1.15); } 100% { transform: rotate(0); } }
.bubble { position: absolute; bottom: 50%; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--zoanthe);
  pointer-events: none; animation: rise 1.1s ease-out forwards; }
@keyframes rise { 0% { transform: translateY(0) scale(.6); opacity: 1; } 100% { transform: translateY(-90px) scale(1.2); opacity: 0; } }
.seers { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.seers p { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.35; }
.seers p b { color: var(--ink); }
.links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.links a {
  min-height: 52px; border-radius: 14px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; text-decoration: none;
  background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--line);
}
.links a:hover { box-shadow: inset 0 0 0 1.5px var(--lagoon); }
.links a small { display: block; font-weight: 400; color: var(--ink-2); font-size: .78rem; line-height: 1.2; }
.links .ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: #fff; flex: none; }
.ico--doris { background: #1f5f9e; }
.ico--inat { background: #4a7400; }
.ico--wiki { background: #3a3a3a; font-family: Georgia, serif; font-size: 1rem !important; }
.ico--bioobs { background: #9c4f0b; }
.owner-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
/* ── Tes rencontres : séjours où l'on a vu l'espèce, du plus récent au plus ancien ── */
.enc-box { margin-top: 18px; }
.enc-box h2 { font-size: 1.1rem; margin: 0 0 6px; display: flex; align-items: baseline; gap: 8px; }
.enc-box h2 .muted { font-family: var(--font-body); font-size: .9rem; font-weight: 600; }
.enc-box--main { padding: 16px 18px; }
.enc-list { list-style: none; margin: 0; padding: 0; position: relative; }
.enc-list::before { content: ""; position: absolute; left: 7px; top: 22px; bottom: 22px; width: 2px; background: var(--line); }
.enc-list li:only-child::before { display: none; }
.enc__row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0; color: inherit; text-decoration: none; position: relative; }
a.enc__row:hover .enc__txt b, a.enc__row:focus-visible .enc__txt b { text-decoration: underline; }
.enc__dot { width: 16px; height: 16px; border-radius: 50%; flex: none; background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink-3, var(--line)); position: relative; z-index: 1; }
.enc--seen .enc__dot { background: var(--lagoon); box-shadow: 0 0 0 3px var(--surface); }
.enc__txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.enc__txt b { overflow-wrap: anywhere; }
.enc__txt small { color: var(--ink-2); font-size: .84rem; line-height: 1.3; }
.enc__go { width: 20px; height: 20px; flex: none; color: var(--ink-2); }
.enc__here { flex: none; font-size: .75rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--lagoon-soft, var(--bg-2)); color: var(--lagoon-strong, var(--lagoon)); }
.enc-empty { color: var(--ink-2); margin: 4px 0 0; }
.taxon-page .links { margin-top: 18px; }
.added-by { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: .9rem; margin-top: 18px; }
.seen-box .added-by { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.refine { margin-top: 22px; }
.refine-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.refine-list .res { background: var(--surface); border-radius: 14px; padding: 8px 10px; min-height: 68px; box-shadow: inset 0 0 0 1.5px var(--line); }
.comments { margin-top: 28px; scroll-margin-top: 80px; }
.comment { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.comment .avatar { --size: 36px; }
.comment__head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.comment__head b { font-size: .95rem; }
.comment__head time { color: var(--ink-2); font-size: .8rem; }
.comment__body { margin: 3px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment__del { margin-left: auto; color: var(--ink-2); background: none; border: 0; cursor: pointer; font-size: .8rem; min-height: 32px; text-decoration: underline; }
.composer { display: grid; gap: 8px; margin-top: 12px; }
.composer .textarea { min-height: 76px; }
.composer .btn { justify-self: end; }
.comment.new { animation: slidein .4s var(--ease); }
@keyframes slidein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Liste de vie ────────────────────────────────────────────────────── */
.life-hero__lead { color: var(--hero-ink-2); margin: 8px 0 0; max-width: 60ch; font-size: .98rem; line-height: 1.45; }
.tile__meta { color: var(--ink-2); font-size: .8rem; font-weight: 700; margin-top: 3px; }
.fac { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.fac span { font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.fac .atl { background: #dbe9fb; color: #17406f; }
.fac .med { background: #d7f1ec; color: #0d5a4f; }
:root[data-theme="dark"] .fac .atl { background: #17324f; color: #b9d6ff; }
:root[data-theme="dark"] .fac .med { background: #0f3b37; color: #a6eadf; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fac .atl { background: #17324f; color: #b9d6ff; }
  :root:not([data-theme="light"]) .fac .med { background: #0f3b37; color: #a6eadf; }
}
/* ── Notifications ───────────────────────────────────────────────────── */
.notes { list-style: none; padding: 0; margin: 0; }
.note { display: flex; gap: 12px; align-items: center; padding: 12px 10px; border-radius: 14px; text-decoration: none; color: inherit; min-height: 72px; }
.note:hover { background: var(--surface); }
.note.unread { background: var(--lagoon-soft); }
.note__ph { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; background: var(--bg-2); }
.note__txt { flex: 1; min-width: 0; line-height: 1.35; overflow-wrap: anywhere; }
.note__txt time { display: block; color: var(--ink-2); font-size: .8rem; margin-top: 2px; }
.note .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--anthias); flex: none; }

/* ── Validation ──────────────────────────────────────────────────────── */
.vlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.vitem { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 12px; align-items: center; }
.vitem img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; }
.vitem .acts { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 640px) { .vitem { grid-template-columns: 76px 1fr auto; } .vitem .acts { grid-column: auto; display: flex; } }
.vitem.done { opacity: .5; }

/* ── Connexion ───────────────────────────────────────────────────────── */
.auth { max-width: 460px; margin: 0 auto; padding: 28px 0 40px; }
.auth h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
.auth .lead { color: var(--ink-2); margin: 10px 0 24px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: .875rem; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn--google { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--google:hover { background: var(--surface-2); }
.btn--google svg { width: 20px; height: 20px; }
.demo { margin-top: 28px; padding: 16px; border-radius: var(--radius); border: 1.5px dashed var(--line); }
.demo h2 { font-size: 1rem; font-family: var(--font-body); }
.demo p { color: var(--ink-2); font-size: .875rem; margin: 4px 0 12px; }
.demo-list { display: grid; gap: 8px; }
.demo-list form { margin: 0; }
.demo-list button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 12px; min-height: 56px; border-radius: 14px;
  border: 0; background: var(--surface); box-shadow: var(--shadow); cursor: pointer; text-align: left; }
.demo-list button:hover { box-shadow: var(--shadow-lift); }
.demo-list small { display: block; color: var(--ink-2); }
.mail-art { width: 96px; height: 96px; margin-bottom: 8px; }

/* ── Boîte d'envoi (dev) ─────────────────────────────────────────────── */
.mails { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mail { padding: 14px 16px; }
.mail header { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.mail header b { font-size: 1rem; }
.mail header span { color: var(--ink-2); font-size: .85rem; }
.mail pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: .9rem; margin: 10px 0 0; color: var(--ink-2); }
.mail a.btn { margin-top: 10px; }

/* ── Toasts ──────────────────────────────────────────────────────────── */
.toasts { position: fixed; left: 0; right: 0; z-index: 400; display: grid; justify-items: center; gap: 8px; pointer-events: none;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 84px); padding: 0 var(--gutter); }
body.no-tabbar .toasts { bottom: calc(var(--safe-b) + 18px); }
@media (min-width: 900px) { .toasts { bottom: 28px; } }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 520px; width: 100%;
  background: var(--abyss); color: var(--on-abyss); padding: 10px 10px 10px 16px; border-radius: 18px; box-shadow: var(--shadow-lift);
  animation: toast-in .35s var(--ease);
}
.toast.out { animation: toast-out .25s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }
.toast__ph { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; }
/* Licence « pas de modification » (ND) : la photo s'affiche en entier, jamais recadrée */
img.nd { object-fit: contain !important; background: var(--bg-2); }
.toast__txt { flex: 1; min-width: 0; line-height: 1.3; font-size: .95rem; }
.toast__txt b { display: block; }
.toast__txt span { color: var(--on-abyss-2); font-size: .85rem; }
.toast button { flex: none; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 0; background: rgba(255,255,255,.1); color: var(--on-abyss); font-weight: 700; cursor: pointer; }
.toast--first { background: linear-gradient(120deg, #6b3fa0, #0a7480); }

/* ── Divers ──────────────────────────────────────────────────────────── */
.error-page { text-align: center; padding: 60px 0; }
.error-page .code { font-family: var(--font-display); font-size: 5rem; font-weight: 800; color: var(--lagoon); line-height: 1; }
.footer { color: var(--ink-2); font-size: .8rem; padding: 26px 0 30px; text-align: center; }
.footer a { color: inherit; }
.theme-switch { display: grid; grid-template-columns: repeat(3, 1fr); }
.sheet-backdrop { position: fixed; inset: 0; background: rgba(3, 17, 26, .55); z-index: 200; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 210; background: var(--surface); border-radius: 24px 24px 0 0;
  padding: 10px var(--gutter) calc(var(--safe-b) + 20px); box-shadow: var(--shadow-lift); animation: sheet-in .3s var(--ease);
  max-width: 560px; margin: 0 auto;
}
@media (min-width: 600px) { .sheet { bottom: auto; top: 50%; transform: translateY(-50%); border-radius: 24px; padding-bottom: 22px; animation: fade .2s ease; } }
@keyframes sheet-in { from { transform: translateY(100%); } }
.sheet__grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.sheet h2 { margin-bottom: 6px; }
.sheet p { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ── Visionneuse (reprise de BioGuesser) ─────────────────────────────── */
body.zoom-open { overflow: hidden; }
.zoom-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(2, 10, 16, .95); display: flex; align-items: center; justify-content: center;
  animation: fade .18s ease; user-select: none; -webkit-user-select: none; }
.zoom-overlay.hidden { display: none; }
.zoom-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: grab; touch-action: none; }
.zoom-img { max-width: 100vw; max-height: 100vh; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; will-change: transform; }
.zoom-close { position: absolute; top: calc(var(--safe-t) + 12px); right: 12px; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); background: rgba(8, 25, 35, .75); color: #fff; font-size: 1.2rem; cursor: pointer; display: grid; place-items: center; }
.zoom-controls { position: absolute; bottom: calc(var(--safe-b) + 20px); left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: .5rem;
  background: rgba(8, 25, 35, .75); border: 1px solid rgba(255,255,255,.14); border-radius: 30px; padding: .35rem; backdrop-filter: blur(6px); }
.zoom-controls button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: #fff; font-size: 1.3rem; cursor: pointer; }
.zoom-hint { position: absolute; top: calc(var(--safe-t) + 18px); left: 50%; transform: translateX(-50%); z-index: 2; background: rgba(8, 25, 35, .75);
  color: rgba(234, 246, 245, .92); font-size: .78rem; padding: .45rem .9rem; border-radius: 20px; pointer-events: none; transition: opacity .5s;
  max-width: calc(100vw - 140px); text-align: center; }
.zoom-hint--gone { opacity: 0; }

/* ── Espèce sans photo libre ─────────────────────────────────────────── */
.ph-empty { width: 100%; height: 100%; aspect-ratio: 1; display: grid; place-items: center; align-content: center; gap: 8px; padding: 10px;
  text-align: center; color: var(--ink-2); font-size: .8rem; font-weight: 700; line-height: 1.2;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--gc) 10%, var(--surface)) 0 10px, color-mix(in srgb, var(--gc) 16%, var(--surface)) 10px 20px); }
.ph-empty__icon { font-size: 2.2rem; line-height: 1; }
.ph-empty__icon img { width: 56px; }
.ph-empty--big { aspect-ratio: 4 / 3; font-size: 1rem; }
@media (min-width: 600px) { .ph-empty--big { border-radius: var(--radius-l); } }
.ph-empty--sm { width: 52px; height: 52px; padding: 0; border-radius: 12px; flex: none; }
.ph-empty--sm .ph-empty__txt { display: none; }
.ph-empty--sm .ph-empty__icon { font-size: 1.4rem; }
.res__noph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 1.6rem; }

/* Grand écran : toutes les puces visibles, sur plusieurs lignes si besoin */
@media (min-width: 900px) {
  .chips, .sgs { flex-wrap: wrap; overflow: visible; padding-bottom: 2px; -webkit-mask-image: none !important; mask-image: none !important; }
  .sgs__in { width: auto; }
  .chips .chip, .sgs .chip { min-height: 36px; padding: 0 12px; }
}

/* ── Assistant d'identification (page d'ajout) ─────────────────────────── */
.ident-cta { display: flex; align-items: center; gap: 14px; width: 100%; margin: 6px 0 16px; padding: 14px 16px;
  border: 1.5px dashed color-mix(in srgb, var(--lagoon-strong) 45%, var(--line)); border-radius: var(--radius);
  background: color-mix(in srgb, var(--lagoon-strong) 6%, var(--surface)); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.ident-cta:hover { border-style: solid; }
.ident-cta--inline { margin: 4px 0 6px; padding: 10px 14px; }
.ident-cta--inline .ident-cta__ico { width: 36px; height: 36px; border-radius: 12px; }
.ident-cta--inline .ident-cta__ico svg { width: 22px; height: 22px; }
.ident-cta__ico { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--lagoon-strong) 16%, var(--surface)); color: var(--lagoon-strong); }
.ident-cta__ico svg { width: 26px; height: 26px; }
.ident-cta__txt { display: grid; gap: 2px; min-width: 0; }
.ident-cta__txt small { color: var(--ink-2); font-size: .88rem; line-height: 1.35; }
.ident-cta__go { flex: none; width: 20px; height: 20px; margin-left: auto; color: var(--ink-2); }

.ident { padding: 14px 0 6px; }
.ident__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ident__head h2 { font-size: 1.25rem; }
.ident__given { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.ident__given:empty { display: none; }
.ans-chip { min-height: 32px; padding: 0 8px 0 12px; font-size: .85rem; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--bg-2); color: var(--ink); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.ans-chip svg { width: 14px; height: 14px; color: var(--ink-2); }
.ans-chip:hover { border-color: var(--ink-2); }
.ident__q { margin-top: 12px; padding: 16px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.ident__qt { font-family: var(--font-display, inherit); font-size: 1.15rem; font-weight: 800; margin: 0 0 12px; }
.ident__step { color: var(--ink-2); font-size: .82rem; font-weight: 700; margin-bottom: 4px; }
.ident__opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ident__opts--yn { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 480px; }
.ident-opt { min-height: 48px; padding: 8px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface);
  color: var(--ink); font: inherit; font-weight: 700; font-size: .93rem; line-height: 1.25; text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 10px; }
.ident__opts--yn .ident-opt { justify-content: center; text-align: center; }
.ident-opt:hover { border-color: var(--ink-2); }
.ident-opt--dk { border-style: dashed; color: var(--ink-2); background: transparent; }
.ident-opt[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ident-opt[aria-pressed="true"] .ident-opt__t small { color: inherit; opacity: .8; }
.ident__multi { margin: -6px 0 10px; color: var(--ink-2); font-size: .86rem; font-weight: 600; }
.ident__ok { margin-top: 12px; width: 100%; }
.ident__ok:disabled { opacity: .45; cursor: default; transform: none; }
@media (min-width: 560px) { .ident__ok { width: auto; } }
.ident-opt__t { display: grid; gap: 2px; }
.ident-opt__t small { font-weight: 600; font-size: .8rem; color: var(--ink-2); line-height: 1.3; }
.ident__grp { margin: 14px 0 6px; font-size: .82rem; font-weight: 800; color: var(--ink-2); }
.ident__grp:first-child { margin-top: 0; }
.ident__opts--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ident__opts--compact .ident-opt { min-height: 44px; padding: 6px 8px; font-size: .84rem; justify-content: center; text-align: center; border-radius: 12px; }
.ident__opts--dk { margin-top: 10px; }
@media (min-width: 560px) { .ident__opts--compact { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); } }
.ident-opt:active { transform: scale(.98); }
.ident-opt.is-busy { opacity: .6; }
.swatch { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .18); }
.ident__more { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 8px; font-size: .92rem; }
.ident__done { margin: 0; color: var(--ink-2); line-height: 1.45; }
.ident__done b { color: var(--ink); }
.ident__rt { margin: 18px 0 0; font-weight: 800; font-size: 1rem; }
.ident__rt small { display: block; font-weight: 600; color: var(--ink-2); font-size: .86rem; margin-top: 2px; }
@media (min-width: 1000px) {
  #add.is-ident .wrap:has(> #ident-view) { display: grid; grid-template-columns: minmax(320px, 380px) 1fr; column-gap: 32px; align-items: start; }
  #add.is-ident #ident-view { grid-column: 1; grid-row: 1 / span 3; position: sticky; top: 150px; }
  #add.is-ident .ident__rt, #add.is-ident #results { grid-column: 2; }
  #add.is-ident .ident__opts { grid-template-columns: 1fr 1fr; }
  #add.is-ident .ident__opts--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #add.is-ident .ident__opts--yn { grid-template-columns: 1fr 1fr 1fr; }
}

/* ── Onglets « Mes séjours » / « Partagés avec moi » ─────────────────────── */
.tabs { display: flex; gap: 4px; margin: 8px 0 18px; border-bottom: 1px solid var(--line); }
.tabs__t { position: relative; border: 0; background: none; padding: 12px 6px 14px; margin-right: 18px; cursor: pointer;
  font: inherit; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--ink-2); white-space: nowrap; }
.tabs__t .count { font-family: var(--font-body); font-size: .85rem; font-weight: 700; color: var(--ink-2); margin-left: 2px; }
.tabs__t[aria-selected="true"] { color: var(--ink); }
.tabs__t[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  border-radius: 3px 3px 0 0; background: var(--lagoon); }
.tabs__t:hover { color: var(--ink); }
.tabs__empty { color: var(--ink-2); max-width: 46ch; margin: 10px 0 24px; }
@media (max-width: 439px) { .tabs__t { font-size: 1.08rem; margin-right: 10px; } }

/* ── Crédits des photos (bas de page) ─────────────────────────────────── */
.credits { margin: 28px 0 8px; color: var(--ink-2); font-size: .82rem; }
.credits summary { cursor: pointer; font-weight: 700; width: fit-content; padding: 6px 0; }
.credits summary:hover { color: var(--ink); }
.credits ul { list-style: none; margin: 6px 0 0; padding: 0; columns: 2 280px; column-gap: 28px; }
.credits li { break-inside: avoid; padding: 3px 0; line-height: 1.4; }
.credits a { color: inherit; }
/* Photo sans légende : un toucher affiche nom et crédit */
.ph-reveal { position: relative; width: 100%; height: 100%; overflow: hidden; }
.ph-reveal__btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
.ph-reveal__btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-reveal__cap { position: absolute; inset: auto 0 0 0; padding: 22px 8px 7px; text-align: left; color: #fff;
  font-size: .78rem; line-height: 1.2; background: linear-gradient(transparent, rgb(0 0 0 / .72));
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.ph-reveal__cap b { display: block; font-weight: 700; }
.ph-reveal__cap small { display: block; font-weight: 600; font-size: .7rem; margin-top: 2px; }
.ph-reveal__cap a { color: #fff; text-decoration: underline; text-underline-offset: 2px; padding: 4px 0; }
.ph-reveal.is-open .ph-reveal__cap { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .ph-reveal:hover .ph-reveal__cap { opacity: 1; visibility: visible; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ph-reveal__cap { transition: none; } }

.species-top h1 { font-size: 1.35rem; }
.species-top .add-top__title span { display: block; }
.species-cta { margin: 20px 0 28px; color: var(--ink-2); text-align: center; }
.species-cta a { font-weight: 700; color: var(--lagoon-strong); }
.res--static { cursor: default; }
/* Fenêtre « Ajouter à mes séjours » : feuille en bas sur téléphone, boîte centrée sur grand écran */
.sheet { border: 0; padding: 0; border-radius: var(--radius-l) var(--radius-l) 0 0; width: 100%; max-width: 520px;
  margin: auto auto 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lift); }
.sheet::backdrop { background: rgb(4 20 28 / .45); }
.sheet__in { padding: 20px 18px calc(18px + var(--safe-b)); }
.sheet h2 { font-size: 1.2rem; }
.sheet__sub { margin: 4px 0 12px; color: var(--ink-2); font-weight: 700; }
.tp-list { list-style: none; margin: 0; padding: 0; max-height: 50vh; overflow: auto; }
.tp-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; border-top: 1px solid var(--line); cursor: pointer; }
.tp-row input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--lagoon-strong); flex: none; }
.tp-row span { display: grid; gap: 2px; }
.tp-row small { color: var(--ink-2); }
.tp-row .tp-note { color: var(--lagoon-strong); font-weight: 700; }
.tp-row.is-locked { cursor: default; opacity: .75; }
.tp-empty { color: var(--ink-2); }
.sheet__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
@media (min-width: 640px) { .sheet { border-radius: var(--radius-l); margin: auto; } }

/* ── À propos et formulaire « Me contacter » ─────────────────────────── */
.about-head h1 { font-size: clamp(2.2rem, 8vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 18px 0 0; }
.about-head p { color: var(--ink-2); margin: 10px 0 0; }
.about-grid { display: grid; gap: 32px; margin-top: 30px; align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; } }
.about-prose h2 { font-size: 1.5rem; margin: 32px 0 10px; }
.about-prose h2:first-child { margin-top: 0; }
.about-prose p { color: var(--ink-2); line-height: 1.55; max-width: 62ch; margin: 0 0 12px; }
.about-prose a { color: var(--lagoon-strong); }
.auteur { display: flex; align-items: center; gap: 20px; margin: 4px 0 20px; }
.auteur__photo { width: 140px; height: 140px; flex: none; border-radius: 50%; object-fit: cover; border: 4px solid var(--surface);
  box-shadow: 0 0 0 2px var(--lagoon), 0 14px 26px -16px rgba(6, 21, 32, .5); }
.auteur__ligne { margin: 0 !important; font-size: 1.05rem; }
.auteur__ligne b { color: var(--ink); }
@media (max-width: 520px) { .auteur { flex-direction: column; align-items: flex-start; } .auteur__photo { width: 120px; height: 120px; } }
.about-quote { margin: 0; padding-left: 20px; border-left: 1px solid var(--line); }
.about-quote p { font-size: 1.1rem; }
.contact { padding: 22px; }
.contact h2 { font-size: 1.4rem; margin: 0; }
.contact__hint { color: var(--ink-2); font-size: .92rem; margin: 6px 0 20px; }
.contact .field { margin-bottom: 14px; }
.contact__err { color: var(--danger); font-size: .88rem; font-weight: 600; min-height: 1.2em; }
.contact__err:empty { min-height: 0; }
.contact__cnt { justify-self: end; color: var(--ink-2); font-size: .82rem; }
.contact__trap { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.contact__status { margin: 12px 0 0; font-weight: 700; }
.contact__status:empty { display: none; }
.contact__status.ok { color: var(--lagoon-strong); }
.contact__status.ko { color: var(--danger); }
.contact__status a { color: inherit; }
.site-foot { margin-top: 56px; padding: 20px 0 22px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .88rem; }
.site-foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; }
.site-foot__in p { margin: 0; }
.site-foot a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink); font-weight: 700; text-underline-offset: 3px; }
.code-form { margin-top: 4px; }
.code-input { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .18em; text-align: center; font-variant-numeric: tabular-nums; }

/* Partager : confirmation sur place après la copie */
.share-btn.is-done { background: var(--hero-tint); }
.share-btn__l { white-space: nowrap; }
.site-foot__links { display: flex; flex-wrap: wrap; gap: 0 22px; }

/* Compte : mes données */
.data-box { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.data-box h2 { margin: 0 0 8px; }
.data-box p { margin: 0 0 12px; color: var(--ink-2); }
.danger { margin-top: 18px; }
.danger summary { cursor: pointer; font-weight: 700; color: var(--danger); min-height: 44px; display: flex; align-items: center; }
.danger__body { padding: 4px 0 6px; }
.danger__body ul { margin: 0 0 14px; padding-left: 1.2em; color: var(--ink-2); }
.legal__body { max-width: 68ch; margin-top: 30px; }
.legal__list { margin: 0 0 12px; display: grid; gap: 4px 24px; }
.legal__list dt { font-weight: 700; color: var(--ink); margin-top: 8px; }
.legal__list dd { margin: 0; color: var(--ink-2); line-height: 1.55; }
@media (min-width: 700px) { .legal__list { grid-template-columns: 13em minmax(0, 1fr); } .legal__list dt { margin-top: 0; } }
.auth__legal { margin: 20px 0 0; text-align: center; }

/* Séjour d'exemple : même carte que les vrais séjours, avec l'étiquette « Exemple » après le titre */
.trip-card__t { font-size: 1.2rem; margin: 0; }
.trip-card__tag { display: inline-block; vertical-align: .2em; margin-left: 6px; font-family: var(--font-body); font-size: .72rem; font-weight: 800;
  padding: 2px 9px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.trip-card--in-door { margin-top: 16px; box-shadow: none; border: 1px solid var(--line); }

/* ── Accueil : deux chemins côte à côte, puis le séjour d'exemple ─────────── */
.home__in { max-width: 1040px; padding-top: 24px; padding-bottom: 8px; }
/* Une seule ligne, du téléphone (≈ 320 px) au grand écran */
.home__title { font-size: clamp(1.25rem, 6.6vw, 4rem); font-weight: 800; line-height: 1; letter-spacing: -.03em;
  text-align: center; margin: 8px auto 24px; white-space: nowrap; }
/* Tuiles plates : fond blanc, trait fin, pas d'ombre */
.paths, .home-ex { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.paths { display: grid; overflow: hidden; }
.path { display: grid; justify-items: start; align-content: start; gap: 6px; padding: 18px;
  color: inherit; text-decoration: none; transition: background .18s; }
.path:hover { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.path:focus-visible { outline: 3px solid var(--lagoon); outline-offset: -3px; }
.path--species { --accent: var(--lagoon); }
.path--trip { --accent: #e0a100; }
/* Icône et titre sur la même ligne, centrés l'un sur l'autre */
.path__head { display: flex; align-items: center; gap: 12px; }
.path__ico { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 15%, var(--surface)); color: color-mix(in srgb, var(--accent) 70%, var(--ink)); }
.path__ico svg { width: 20px; height: 20px; }
.path__t { font-size: 1.25rem; }
.path__p { margin: 0; color: var(--ink-2); line-height: 1.45; max-width: 36ch; }
.path__go { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 800; color: var(--lagoon-strong); }
.path__go svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.path:hover .path__go svg { transform: translateX(4px); }
/* « ou » : un trait fin qui s'estompe aux deux bouts, le mot au milieu */
.paths__sep { position: relative; height: 1px; margin: 0 18px;
  background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent); }
.paths__sep span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 1px 10px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: .75rem; font-weight: 800; }
.home-ex { margin-top: 14px; padding: 16px; }
.home-ex__head h2 { font-size: 1.15rem; margin-bottom: 12px; }
.home-ex__head p { margin: 2px 0 12px; color: var(--ink-2); font-size: .92rem; }
.home-ex .trip-card { box-shadow: none; border: 1px solid var(--line); }
.trip-card__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 800; color: var(--lagoon-strong); }
.trip-card__go svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.trip-card__body:hover .trip-card__go svg { transform: translateX(4px); }
@media (min-width: 760px) {
  .paths { grid-template-columns: 1fr 1px 1fr; }
  .path { padding: 28px 30px; gap: 8px; }
  .path__t { font-size: 1.4rem; }
  .paths__sep { width: 1px; height: auto; margin: 24px 0;
    background: linear-gradient(180deg, transparent, var(--line) 15%, var(--line) 85%, transparent); }
  .home-ex { padding: 22px 26px 26px; }
  .trip-card--wide { display: grid; grid-template-columns: 1.15fr 1fr; }
  .trip-card--wide .trip-card__mosaic { aspect-ratio: auto; min-height: 240px; }
  .trip-card--wide .trip-card__body { display: flex; flex-direction: column; justify-content: center; padding: 22px 24px; }
}
@media (prefers-reduced-motion: reduce) { .path, .path__go svg, .trip-card__go svg { transition: none; } .path:hover .path__go svg { transform: none; } }

/* Bienvenue : pseudo proposé + « Autre idée » */
.pseudo-row { display: flex; gap: 8px; align-items: stretch; }
.pseudo-row .input { flex: 1; min-width: 0; }
.pseudo-row__dice { flex: none; white-space: nowrap; }
.demo-new { margin: 10px 0 14px; }
.pseudo-row__dice { display: inline-flex; align-items: center; gap: 6px; }
.pseudo-row__dice svg { width: 20px; height: 20px; }
.about-quote .about-quote__end { margin-top: 1.4em; }   /* une ligne vide avant la conclusion */
/* Accueil connecté : « Mes séjours » et « Créer un séjour » côte à côte dans la tuile carnet */
.path__links { display: grid; justify-items: start; }
.path__links .path__go { text-decoration: none; min-height: 40px; }
.path__links .path__go:hover { text-decoration: underline; text-underline-offset: 3px; }
div.path:hover { background: none; }
.path__links .path__go:hover svg { transform: translateX(4px); }
.path__links .path__go:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 2px; border-radius: 6px; }
/* Très petits téléphones (≈ 320 px) : l'en-tête tient sans déborder */
@media (max-width: 359px) {
  .topbar__end { gap: 2px; }
  .topbar__end .btn--sm { padding-inline: 10px; white-space: nowrap; font-size: .86rem; }
  .brand { gap: .35rem; }
  .brand small { font-size: .72rem; }
}

/* Connexion depuis « Séjours » ou « Créer un séjour » : dire pourquoi on est là */
.auth__why { margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; background: var(--lagoon-soft); color: var(--ink); line-height: 1.45; }
.auth__why b { display: block; }
.auth__example { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 800; color: var(--lagoon-strong); text-decoration: none; min-height: 44px; }
.auth__example svg { width: 18px; height: 18px; }
.auth__example:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Téléphone : pendant la frappe (clavier ouvert), la barre du bas s'efface pour laisser la place aux résultats */
@media (pointer: coarse) { body.kb-open .tabbar { display: none; } body.kb-open .fab { display: none; } }

/* Filtre « Déjà vues » : puce avec le masque ; sur les tuiles de groupe, le nombre d'espèces vues */
.chip--seen { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; flex: none; }
.chip--seen svg { width: 20px; height: 20px; flex: none; }
.chip--seen[aria-pressed="true"] svg { color: var(--zoanthe, #f4b400); }
.gtile__seen { display: block; margin-top: -4px; font-size: .78rem; font-weight: 700; color: var(--lagoon-strong); }
.gtile.is-dim { opacity: .45; }
.gtile.is-dim .gtile__seen { color: var(--ink-2); }
.seen-note .link-btn { display: inline; margin-left: 4px; }
@media (max-width: 359px) {   /* très petits téléphones : la ligne côte + masque tient sans déborder */
  .filt-row { gap: 6px; } .zone { gap: 4px; }
  .zone .chip, .filt-row .chip--seen { padding-inline: 10px; }
}

/* Toucher : pas de rectangle bleu d'Android (hérité par tout le site) ; les puces s'enfoncent légèrement */
html { -webkit-tap-highlight-color: transparent; }
.chip { transition: transform .12s var(--ease), background-color .15s, color .15s; }
.chip:active { transform: scale(.95); }
@media (prefers-reduced-motion: reduce) { .chip:active { transform: none; } }

/* ── Les photographes ────────────────────────────────────────────────── */
.phot__thanks { font-size: 1.12rem; color: var(--ink); max-width: 60ch; line-height: 1.5; }
.phot__how { max-width: 60ch; }
.phot__cards { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .phot__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .phot__cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.phot-card { display: flex; flex-direction: column; height: 100%; border-radius: 18px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .15s var(--ease), box-shadow .15s; }
.phot-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.phot-card:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 3px; }
.phot-card__ph { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.phot-card__ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phot-card__ph img.nd { object-fit: contain; }
.phot-card__rank { position: absolute; left: 10px; top: 10px; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 999px;
  display: grid; place-items: center; background: var(--surface); color: var(--ink); font: 800 1rem var(--font-display);
  box-shadow: 0 2px 8px rgb(0 0 0 / .18); font-variant-numeric: tabular-nums; }
.phot__cards li:nth-child(-n+3) .phot-card__rank { background: #f4b400; color: #2b2100; }
.phot-card__body { display: grid; gap: 2px; padding: 12px 14px 14px; }
.phot-card__name { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; overflow-wrap: anywhere; }
.phot-card__sp { font-size: .82rem; color: var(--ink-2); }
.phot-card__go { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-weight: 800; font-size: .88rem; color: var(--lagoon-strong); }
.phot-card__go svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.phot-card:hover .phot-card__go svg { transform: translateX(3px); }
.phot__all { margin-top: 40px; }
.phot__all-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.phot__all-head h2 { font-size: 1.4rem; }
.phot__search { flex: 1 1 260px; max-width: 360px; margin: 0; }
.phot__list { list-style: none; padding: 0; margin: 18px 0 0; columns: 1; column-gap: 28px; }
@media (min-width: 560px) { .phot__list { columns: 2; } }
@media (min-width: 900px) { .phot__list { columns: 3; } }
.phot__list li { break-inside: avoid; display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.phot__list li[hidden] { display: none; }
.phot__r { flex: none; min-width: 3.2ch; text-align: right; color: var(--ink-2); font-size: .82rem; font-variant-numeric: tabular-nums; }
.phot__list a { color: var(--ink); text-decoration: none; font-weight: 700; overflow-wrap: anywhere; }
.phot__list a:hover { color: var(--lagoon-strong); text-decoration: underline; text-underline-offset: 3px; }
.phot__none { color: var(--ink-2); margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .phot-card, .phot-card__go svg { transition: none; } .phot-card:hover { transform: none; } }


/* Liens « À propos des licences », « Des questions ? Me contacter » */
.phot__more, .lic__foot { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 14px; }
.phot__more a, .lic__foot a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 800;
  color: var(--lagoon-strong); text-decoration: none; }
.phot__more a:hover, .lic__foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.phot__more svg, .lic__foot svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.phot__more a:hover svg, .lic__foot a:hover svg { transform: translateX(3px); }
.lic__foot { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ── Les licences ─────────────────────────────────────────────────────── */
.lic { max-width: 880px; }
.lic__lead { font-size: 1.12rem; color: var(--ink); max-width: 62ch; line-height: 1.5; }
.lic__sec { margin-top: 36px; }
.lic__sec h2 { font-size: 1.35rem; margin-bottom: 12px; }
.lic__sec > p { color: var(--ink-2); line-height: 1.6; max-width: 66ch; margin: 0; }
.lic__principle { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; }
.lic__rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 700px) { .lic__rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lic__rules li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 16px; }
.lic__rules b { display: block; }
.lic__rules p { margin: 3px 0 0; color: var(--ink-2); font-size: .94rem; line-height: 1.45; }
.lic__tag { flex: none; min-width: 48px; height: 32px; padding: 0 8px; border-radius: 10px; display: grid; place-items: center;
  font: 800 .9rem var(--font-display); letter-spacing: .02em; background: var(--ink); color: var(--bg); }
.lic__tag--zero { background: var(--lagoon-soft); color: var(--lagoon-strong); }
.lic__bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 2px; background: var(--line); }
.lic__bar span { background: var(--c); min-width: 3px; }
.lic__mix { list-style: none; padding: 0; margin: 14px 0 8px; display: grid; gap: 0; }
.lic__mix li { display: grid; grid-template-columns: 14px auto 1fr auto; align-items: baseline; gap: 4px 12px; padding: 9px 0;
  border-bottom: 1px solid var(--line); }
.lic__dot { width: 12px; height: 12px; border-radius: 4px; background: var(--c); align-self: center; }
.lic__mix a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.lic__mix a:hover { color: var(--lagoon-strong); text-decoration: underline; text-underline-offset: 3px; }
.lic__name { color: var(--ink-2); font-size: .9rem; min-width: 0; }
.lic__pct { font-variant-numeric: tabular-nums; font-weight: 700; }
@media (max-width: 599px) {
  .lic__mix li { grid-template-columns: 14px 1fr auto; }
  .lic__name { grid-column: 2 / -1; grid-row: 2; }
}
.lic__checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lic__checks li { position: relative; padding-left: 32px; color: var(--ink-2); line-height: 1.5; max-width: 66ch; }
.lic__checks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--lagoon-soft) no-repeat center / 14px
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%230a7480' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.lic__steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: s; }
.lic__steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; counter-increment: s; }
.lic__steps li::before { content: counter(s); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid;
  place-items: center; background: var(--ink); color: var(--bg); font: 800 1rem var(--font-display); }
.lic__steps p { margin: 2px 0 0; color: var(--ink-2); line-height: 1.45; max-width: 62ch; }
.lic__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.lic__links a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--ink); font-weight: 700;
  text-decoration: none; }
.lic__links a:hover { color: var(--lagoon-strong); text-decoration: underline; text-underline-offset: 3px; }
.lic__links svg { width: 16px; height: 16px; color: var(--lagoon-strong); }
@media (prefers-reduced-motion: reduce) { .phot__more svg, .lic__foot svg { transition: none; } }

/* En-tête : « Se connecter » toujours sur une ligne ; sans compte, « .plongee.bio » s'efface plus tôt pour lui laisser la place */
.topbar__end .btn--sm { white-space: nowrap; }

/* Partage contrôlé : demandes pour rejoindre (créateur), demande envoyée, lien du séjour */
.join-req { margin-top: 16px; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.join-req h2 { font-size: 1.1rem; margin-bottom: 8px; }
.join-req ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.join-req li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0; }
.join-req li b { flex: 1; min-width: 8ch; }
.trip-req-sent { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  font-weight: 700; font-size: .9rem; background: var(--lagoon-soft); color: var(--lagoon-strong); }
.link-box { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; justify-items: start; }
.link-box h2 { font-size: 1.15rem; }
.link-box__url { margin: 0; max-width: 100%; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); font-size: .88rem;
  overflow-wrap: anywhere; color: var(--ink-2); }
.link-box .small { margin: 0; }

/* Filtres d'un séjour / de Mes observations : deux lignes de puces ; « Filtres » à part, séparé d'un trait */
.chips__in { display: flex; flex-wrap: wrap; gap: 8px; width: max-content; flex: none; }
@media (max-width: 899px) {
  .filters__row { align-items: center; }
  .filters__row .more-f { padding: 0 0 0 10px; border-left: 1px solid var(--line); align-self: stretch; display: flex; align-items: center; }
  .filters__row .chip--more { padding: 0 12px; }
}
@media (min-width: 900px) { .chips__in { width: auto; flex: 1 1 auto; min-width: 0; } }

/* ── Séjour : barre collée (titre + « Filtres ») et panneau de filtres ───── */
/* Barre du séjour : invisible en haut de page ; glisse sous l'en-tête une fois le nombre d'espèces défilé */
.tbar { position: fixed; left: 0; right: 0; top: calc(60px + var(--safe-t)); z-index: 40; display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 6px max(var(--gutter), calc((100vw - var(--maxw, 1180px)) / 2)); background: var(--bg);
  border-bottom: 1px solid var(--line); transform: translateY(-110%); visibility: hidden; transition: transform .2s var(--ease), visibility .2s; }
.tbar.is-stuck { transform: none; visibility: visible; }
.tbar__t { flex: 1; min-width: 0; font: 800 1.05rem var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbar__btn { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700;
  font-size: .95rem; cursor: pointer; transition: transform .12s var(--ease); }
.tbar__btn:active { transform: scale(.96); }
.tbar__btn svg { width: 20px; height: 20px; }
.tbar__btn.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tbar__n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; font-size: .78rem;
  background: #f4b400; color: #2b2100; }
.tf-active { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 2px 0 12px; color: var(--ink-2); font-size: .92rem; }
.tf-active[hidden] { display: none; }
.tf-active b { color: var(--ink); }
.tf-sheet .sheet__in { max-height: min(80vh, 640px); overflow: auto; }
.tf-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.tf-h { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin: 16px 0 8px; }
.tf-h small { text-transform: none; letter-spacing: 0; font-weight: 600; margin-left: 6px; }
.tf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tf-actions { position: sticky; bottom: calc(-18px - var(--safe-b)); background: var(--surface); padding: 12px 0 2px; margin-top: 18px;
  border-top: 1px solid var(--line); justify-content: space-between; }
.tf-actions .btn:disabled { opacity: .5; }
@media (prefers-reduced-motion: reduce) { .tbar__t { transition: none; } }

/* « Filtres » à droite du nombre d'espèces : tout tient sur une ligne, le nombre se réduit sur petit écran */
.tally { align-items: flex-end; }
.tally__label { flex: 1; min-width: 0; }
.tally__side { align-self: center; margin-left: auto; display: grid; gap: 8px; flex: none; }
.tally__side .tbar__btn { justify-content: flex-start; width: 100%; }
.tally__side .tbar__btn svg { width: 20px; height: 20px; flex: none; }
.trip-actions:not(:has(*)) { display: none; }
@media (max-width: 599px) {
  .tally { gap: 10px; }
  .tally__n { font-size: clamp(2.6rem, 15vw, 4.4rem); }
  .tally__label { font-size: .92rem; } .tally__label b { font-size: 1rem; }
  .tally__side .tbar__btn { padding: 0 12px; min-height: 38px; font-size: .9rem; }
}
@media (max-width: 359px) {   /* très petit téléphone : icônes seules, pour tenir sur la ligne du nombre */
  .tally__side .share-btn__l, .tally__side .tally__bl { display: none; }
  .tally__side .tbar__btn { padding: 0 10px; justify-content: center; gap: 4px; }
}
.tf-chips .chip.is-zero { opacity: .45; }

/* Accueil : son dernier séjour et le dernier partagé, côte à côte sur grand écran */
.home-recent { display: grid; gap: 18px; }
@media (min-width: 760px) { .home-recent--two { grid-template-columns: 1fr 1fr; } }
.home-recent__k { margin: 0 0 8px; font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.home-recent__k b { color: var(--lagoon-strong); }
.home-recent__item { display: flex; flex-direction: column; }
.home-recent__item > .trip-card { flex: 1; display: flex; flex-direction: column; }
.home-recent__item > .trip-card .trip-card__body { flex: 1; }

/* Téléphone : bouton « Ajouter » un peu plus compact */
@media (max-width: 899px) {
  .fab { min-height: 50px; padding: 0 1.15rem 0 .9rem; font-size: 1rem; gap: .45rem; }
  .fab svg { width: 22px; height: 22px; }
  .fab--mini { padding: 0 14px; }
  .fab { bottom: calc(var(--tabbar-h) + var(--safe-b) + 2px); box-shadow: none; }   /* presque collé à la barre d'onglets */
}

/* En-tête du séjour : nombre, texte et boutons centrés sur une même ligne ; moins d'espace perdu */
.trip-hero { padding-bottom: 14px; }
.trip-sum .tally { align-items: center; margin: 14px 0 4px; }
.trip-sum .tally__label { padding-bottom: 0; }
.trip-sum .tally__side { align-self: center; }
#gallery > .g-section:first-child .g-head { margin-top: 14px; }
@media (max-width: 599px) { .trip-sum .tally__side { gap: 6px; } }

/* Accueil : tuile « Les photographes » */
.home-phot { --accent: var(--lagoon); display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; color: var(--ink); text-decoration: none;
  transition: background .18s; }
.home-phot:hover { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.home-phot:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 2px; }
.home-phot .path__ico { margin: 0; }
.home-phot__t { flex: 1; font: 800 1.15rem var(--font-display); }
.home-phot__go { width: 20px; height: 20px; color: var(--lagoon-strong); transition: transform .2s var(--ease); }
.home-phot:hover .home-phot__go { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .home-phot, .home-phot__go { transition: none; } }

/* Crédit : petite icône photo vers l'observation d'origine, avant le nom de l'auteur */
.cred-src { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 4px; vertical-align: -4px; flex: none; }
.cred-src svg { width: 15px; height: 15px; }
.res-ph__cap .cred-src { text-decoration: none; }

.ph-reveal__cap .cred-src { color: #fff; vertical-align: -3px; }
.site-foot p .site-foot__lic { display: inline; min-height: 0; font-weight: 400; color: inherit; }

/* Recherche, téléphone et tablette : crédit de la vignette sous le nom, calé sur le bas de la photo */
.res-cred { display: none; }
@media (max-width: 899px) {
  .res-item { grid-template-areas: "ph main" "ph cred" "links links"; grid-template-rows: auto 1fr auto; }
  .res-cred { grid-area: cred; align-self: end; display: flex; align-items: center; gap: 0; min-width: 0; margin: 4px 0 0;
    font-size: .74rem; color: var(--ink-2); line-height: 1.3; }
  .res-cred .cred-src { color: var(--ink-2); }
  .res-cred__who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .res-cred__lic { flex: none; white-space: nowrap; }
  .res-cred a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
  .res-cred a:hover { color: var(--lagoon-strong); text-decoration-color: currentColor; }
}

/* ── Ligne d'espèce allégée (téléphone, tablette) ─────────────────────────
   nom / nom scientifique / type / mer / crédit calé sur le bas de la photo ; à droite « + » puis « › » (fiche) */
.res__lite, .res-go, .res-more__links { display: none; }
@media (max-width: 899px) {
  .res-item { position: relative; padding-right: 0; }
  .res-item .res { padding-right: 52px; }
  .res-item .res .res__act { position: absolute; right: 0; top: 10px; margin: 0; width: 44px; height: 44px; }
  .res-item .res .res__act svg { width: 22px; height: 22px; }
  .res-go { display: grid; place-items: center; position: absolute; right: 0; top: 62px; width: 44px; height: 44px; border-radius: 50%;
    color: var(--ink-2); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); text-decoration: none;
    transition: color .15s, box-shadow .15s; }
  .res-go svg { width: 20px; height: 20px; }
  .res-go:hover, .res-go:focus-visible { color: var(--lagoon-strong); box-shadow: inset 0 0 0 1.5px var(--lagoon); }
  .res-item--noact .res-go { top: 10px; }
  .res-cred { padding-right: 52px; }
  /* texte : étiquettes, rareté et rangée de liens masquées ; type et mer en texte simple */
  .res-item .res__t { display: block; font-size: 1.02rem; line-height: 1.25; }
  .res-item .res__t .res__tag, .res-item .res__t .res__facs, .res-item .res__rar { display: none; }
  .res-item .res__s { display: block; font-size: .86rem; line-height: 1.3; margin-top: 1px; }
  .res-item .res__s--nofr { display: none; }
  .res__lite { display: block; margin-top: 3px; font-size: .8rem; line-height: 1.35; color: var(--ink-2); }
  .res__type { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .res__sea { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
  .res__sea-i { display: inline-flex; align-items: center; gap: 5px; }
  .res__sea-i::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
  .res__sea-i--med { --c: #2a7fd4; } .res__sea-i--atl { --c: #2f9a6a; }
  .res__sea-s { display: none; }
  .res__sea-sep { color: var(--line); }
  .res-item > .res-meta { display: none; }
  .res-more__links { display: flex; flex-wrap: wrap; gap: 0 14px; margin-top: 10px; }
  .res-more__links .res-link span:last-child { display: inline; }
}
@media (max-width: 379px) { .res__sea-l { display: none; } .res__sea-s { display: inline; } }
@media (max-width: 899px) { .res-item--noact .res-cred { padding-right: 0; } }   /* « › » seul en haut : le crédit prend toute la largeur */

/* ── Page d'ajout : masque à la place du « + » ─────────────────────────────
   gris = pas encore vu par moi ; jaune = vu (ajouté ou « vu aussi ») ; horloge = en attente de validation */
.res--mask .res__act { position: relative; background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.res--mask .res__act svg { width: 26px; height: 26px; }
.res--mask:hover .res__act { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.res--mask.is-in .res__act { background: var(--surface); color: var(--ink-2); }
.res--mask.is-seen .res__act, .res--mask.is-seen:hover .res__act { background: #f4b400; color: #2b2100; box-shadow: none; }
@media (hover: hover) { .res--mask.is-seen[data-removable]:hover .res__act { background: #f4b400; filter: brightness(.95); } }
.mask-wait { position: absolute; right: -3px; bottom: -3px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--warn, #e07b00); color: #fff; box-shadow: 0 0 0 2px var(--bg); }
.mask-wait svg { width: 13px !important; height: 13px !important; }
/* En-tête : le nombre d'espèces en sous-titre */
.add-count { display: block; color: var(--ink-2); font-size: .875rem; }
.add-count b { color: var(--ink); }
.add-count.bump b { display: inline-block; animation: bump .6s var(--ease); }
.add-count b { display: inline; font: inherit; font-weight: 700; }

/* La ligne n'est plus un bouton : le masque (ou le « + ») ajoute, le reste ouvre les photos */
.res__act { border: 0; padding: 0; cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent; }
.res__act:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 2px; }
.res--free:hover .res__act { background: var(--lagoon-soft); color: var(--lagoon-strong); }
.res__act:hover { background: var(--lagoon); color: var(--on-lagoon); }
.res--mask .res__act:hover { background: var(--surface); color: var(--ink); }
.res--mask.is-seen .res__act:hover { background: #f4b400; color: #2b2100; }
@media (max-width: 899px) { .res-item .res { cursor: pointer; } }

/* Fiche : le crumb garde l'icône du groupe sur la même ligne que son nom */
.crumb > span { display: inline-flex; align-items: center; gap: 6px; }
.crumb img { display: block; width: 28px; height: 20px; object-fit: contain; flex: none; }
/* Tes rencontres : le masque remplace le point (jaune = vu par toi, gris = vu par d'autres) */
.enc-list::before { left: 15px; }
.enc__dot { width: 32px; height: 32px; display: grid; place-items: center; background: var(--surface); color: var(--ink-2);
  box-shadow: inset 0 0 0 1.5px var(--line), 0 0 0 3px var(--surface); }
.enc__dot svg { width: 22px; height: 22px; }
.enc--seen .enc__dot { background: #f4b400; color: #2b2100; box-shadow: 0 0 0 3px var(--surface); }

/* « Tu l'as vu ? » : comme le masque — contour et masque gris tant qu'on ne l'a pas vu, jaune plein une fois vu */
.seen-btn { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.seen-btn .mask { color: var(--ink-2); }
@media (hover: hover) { .seen-btn:hover { box-shadow: inset 0 0 0 2px var(--zoanthe); } }
.seen-btn[aria-pressed="true"], .seen-btn--mine { background: var(--zoanthe); color: var(--on-zoanthe); box-shadow: none; }
.seen-btn[aria-pressed="true"] .mask, .seen-btn--mine .mask { color: var(--on-zoanthe); }

/* Séjours partagés, sans compte : tuiles des liens reçus, avec une croix pour oublier */
.guest-trips h1 { font-size: 1.6rem; margin: 18px 0 2px; }
.guest-trips > .muted { margin: 0 0 16px; }
.guest-trips__item { position: relative; display: flex; flex-direction: column; }
.guest-trips__item > .trip-card { flex: 1; }
.guest-trips__forget { position: absolute; top: 8px; right: 8px; z-index: 3; margin: 0; }
.guest-trips__forget button { width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(8, 35, 49, .62); color: #fff; -webkit-tap-highlight-color: transparent; }
.guest-trips__forget button:hover, .guest-trips__forget button:focus-visible { background: rgba(8, 35, 49, .85); }
.guest-trips__forget svg { width: 18px; height: 18px; }
.guest-trips__cta { margin-top: 20px; padding: 18px; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; }
.guest-trips__cta p { margin: 0; flex: 1 1 260px; }
/* Un seul séjour récent : tuile large, comme le séjour d'exemple */
@media (min-width: 900px) {
  .home-recent__item > .trip-card--wide { display: grid; grid-template-columns: 1.15fr 1fr; }
  .home-recent__item > .trip-card--wide .trip-card__body { justify-content: center; }
}
/* Page d'ajout : le nom du séjour ramène au séjour, comme la flèche */
.add-top__link { color: inherit; text-decoration: none; display: block; -webkit-tap-highlight-color: transparent; }
.add-top__link b { display: block; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (hover: hover) { .add-top__link:hover b { text-decoration: underline; text-underline-offset: 3px; } }
.add-top__link:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 2px; border-radius: 6px; }
/* Fiche espèce : le nom du séjour (lien retour) se souligne au survol, comme sur la page d'ajout */
@media (hover: hover) { .obs-nav .back:hover span { text-decoration: underline; text-underline-offset: 3px; } }
/* Listes d'espèces : le nom mène à la fiche (le reste de la ligne garde son rôle) */
.res__tl { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .res__tl:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--lagoon-strong); } }
.res__tl:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 2px; border-radius: 4px; }
/* Téléphone : le nom n'est pas un lien (toucher la ligne ouvre les photos ; la fiche passe par « › ») */
@media (max-width: 899px) { .res__tl { pointer-events: none; } }
/* Page d'ajout : le masque qui devient jaune frétille et lâche des bulles, comme sur les vignettes */
.res--mask .res__act { overflow: visible; }
.res--mask .res__act.pop svg { animation: wiggle .7s var(--ease); }
.res--mask .res__act .bubble { bottom: 60%; }
/* En-tête du séjour : le nombre aligné sur le haut du bouton « Partager » */
.trip-sum .tally { align-items: flex-start; }
.trip-sum .tally__side { align-self: flex-start; }
/* Séjour d'exemple : l'explication, puis « Créer mon séjour » dessous */
.notice.example-note { display: block; }
.example-note p { margin: 0 0 12px; }
