/* Sunrise Harbor — Colophon
   Token sheet + component classes. Replaces the old resources/css/app.css palette.
   Tokens are from the Classical design system; only add here, never hard-code a hex in a Blade view. */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600&family=Lora:wght@400;600&display=swap');
@import url('./colophon-layout.css');

:root {
  /* --- ground & ink --- */
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201f1d;
  --color-divider: color-mix(in srgb, #201f1d 16%, transparent);
  --color-ink: #1e1c1b;            /* the one deep near-black: header, footer */

  /* --- neutral ramp --- */
  --color-neutral-100: #f8f4f4;
  --color-neutral-200: #eae7e7;
  --color-neutral-300: #d7d3d3;
  --color-neutral-400: #bab6b6;
  --color-neutral-500: #9b9797;
  --color-neutral-600: #7d7979;
  --color-neutral-700: #605d5d;
  --color-neutral-800: #444141;
  --color-neutral-900: #2d2b2b;

  /* --- the single accent (gold). No second accent exists. --- */
  --color-accent: #b68235;
  --color-accent-100: #fff3e4;
  --color-accent-200: #ffe3bf;
  --color-accent-300: #facb8d;
  --color-accent-400: #e1ad66;
  --color-accent-500: #c28d41;
  --color-accent-600: #a06f24;
  --color-accent-700: #7d5411;      /* accent at body-text size */
  --color-accent-800: #5a3b0a;
  --color-accent-900: #3a270d;

  /* --- the only sanctioned exception: the live status light --- */
  --color-online: #4f7a3a;
  --color-online-on-ink: #7fb763;

  /* --- Discover hues sampled from harbor.jpg --- */
  --hue-sea: #2f6d8c;        --hue-sea-wash: #e7f0f4;
  --hue-leaf: #55703c;       --hue-leaf-wash: #ebefe2;
  --hue-roof: #a75c33;       --hue-roof-wash: #f6e9df;
  --hue-gold-wash: #f6ecdb;

  --font-heading: "Cormorant Garamond", system-ui, sans-serif;
  --font-body: "Lora", system-ui, sans-serif;
  --font-heading-weight: 600;

  --space-1: 4.6px;  --space-2: 9.2px;  --space-3: 13.8px;
  --space-4: 18.4px; --space-6: 27.6px; --space-8: 36.8px;

  --radius-sm: 2px; --radius-md: 4px; --radius-lg: 7px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2d2b2b 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2d2b2b 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2d2b2b 22%, transparent);

  --page-max: 1180px;
  --page-pad: 40px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-neutral-300);   /* the desk the page sheet sits on */
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); margin: 0; }
h1 { font-weight: 400; }                  /* display sizes take the lighter cut */
a { color: var(--color-accent-700); text-decoration: none; }
a:hover { color: var(--color-accent-600); text-decoration: underline; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: var(--color-accent-200); }
img { display: block; max-width: 100%; -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }

/* ---------- page shell ---------- */
.sh-page {
  max-width: var(--page-max);
  margin: 0 auto;
  background: var(--color-bg);
  border-left: 1px solid var(--color-divider);
  border-right: 1px solid var(--color-divider);
  box-shadow: var(--shadow-md);
}
.sh-section { padding: 36px var(--page-pad); }
.sh-rule { border-top: 1px solid var(--color-divider); }

/* section heading + its short gold rule */
.sh-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.sh-head h2, .sh-section > h2 { font-size: 25px; }
.sh-head-note { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-neutral-700); }
.sh-tick { width: 34px; height: 2px; background: var(--color-accent); margin: 10px 0 4px; }
.sh-kicker { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--color-accent-700); margin: 0; }

/* ---------- top bar (dark ink, gold underline) ---------- */
.sh-nav {
  display: flex; align-items: center; gap: 26px;
  padding: 14px var(--page-pad);
  background: var(--color-ink);
  border-bottom: 1px solid var(--color-accent-700);
}
.sh-brand {
  position: relative; z-index: 2; flex: 0 0 165px; height: 36px;
}
.sh-brand img {
  position: absolute; left: 0; top: 70%; width: 155px; height: auto; max-width: none;
  transform: translateY(-50%);
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 45%));
}
.sh-nav-links { display: flex; gap: 20px; flex: 1; margin-left: 10px; flex-wrap: nowrap; white-space: nowrap; }
.sh-nav-links a, .sh-nav-aside a { font-size: 13px; color: var(--color-neutral-200); }
.sh-nav-links a {
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: border-color .16s ease, color .16s ease;
}
.sh-nav-links a:hover, .sh-nav-links a[aria-current="page"] {
  border-bottom-color: var(--color-accent-400);
  color: #fff; text-decoration: none;
}
.sh-nav-aside { display: flex; align-items: center; gap: 14px; }
.sh-nav-form { margin: 0; }
.sh-nav-action {
  appearance: none; border: 0; padding: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 13px; color: var(--color-neutral-200);
}
.sh-nav-action:hover { color: #fff; text-decoration: underline; }

/* Barre du haut — Discord en icône, utilitaires regroupés, filet doré au survol. */
/* liens texte de droite (Connexion, Compte, Se déconnecter) : même filet doré que la navigation */
.sh-nav-aside > a:not(.sh-btn):not(.sh-nav-icon), .sh-nav-action {
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: border-color .16s ease, color .16s ease;
}
.sh-nav-aside > a:not(.sh-btn):not(.sh-nav-icon):hover, .sh-nav-aside > a:not(.sh-btn):not(.sh-nav-icon)[aria-current="page"], .sh-nav-action:hover {
  border-bottom-color: var(--color-accent-400); color: #fff; text-decoration: none;
}

/* ---------- Discord : icône au lieu du libellé ---------- */
.sh-nav-utils { display: inline-flex; align-items: center; gap: 4px; }
.sh-nav-utils::before { content: ""; width: 1px; height: 18px; margin-right: 10px; background: color-mix(in srgb, var(--color-bg) 22%, transparent); }   /* le séparateur voyage avec les icônes */
@media (max-width: 1000px) { .sh-nav-utils::before { display: none; } }

.sh-nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: none; color: var(--color-neutral-300); transition: color .16s ease, background-color .16s ease; }
.sh-nav-icon svg { width: 18px; height: 18px; fill: currentColor; }
.sh-nav-aside a.sh-nav-icon:hover { color: var(--color-accent-300); background: none; text-decoration: none; }
.sh-nav-aside a.sh-nav-icon:active { color: var(--color-accent-400); background: none; }

/* ---------- sélecteur de langue : petit drapeau, menu papier ----------
   <details>/<summary> natif : fonctionne sans JavaScript. Le petit script
   (layouts/app) ne fait que le refermer au clic extérieur et sur Échap.
   Les drapeaux sont teintés par la palette (--hue-sea, --hue-roof, --color-bg). */
.sh-langsel { position: relative; }
.sh-langsel summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
  padding: 4px; border-radius: var(--radius-sm); color: var(--color-neutral-300);
  transition: color .16s ease;
}
.sh-langsel summary::-webkit-details-marker { display: none; }
.sh-langsel summary:hover, .sh-langsel[open] summary { color: var(--color-accent-300); }
.sh-langsel summary:focus-visible, .sh-langsel-menu a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.sh-flag { display: block; flex: none; width: 18px; height: 12px; border-radius: 1px; box-shadow: 0 0 0 1px rgba(0,0,0,.18); }
.sh-langsel summary .sh-flag { opacity: .92; box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-bg) 22%, transparent); transition: opacity .16s ease; }
.sh-langsel summary:hover .sh-flag, .sh-langsel[open] summary .sh-flag { opacity: 1; }
.sh-langsel-chev { opacity: .55; transition: transform .2s ease, opacity .16s ease; }
.sh-langsel summary:hover .sh-langsel-chev, .sh-langsel[open] .sh-langsel-chev { opacity: .9; }
.sh-langsel[open] .sh-langsel-chev { transform: rotate(180deg); }
.sh-langsel-menu {
  position: absolute; right: -6px; top: calc(100% + 10px); z-index: 20;
  min-width: 150px; margin: 0; padding: 5px; list-style: none;
  background: var(--color-bg); border: 1px solid var(--color-divider);
  border-top: 2px solid var(--color-accent); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); animation: sh-langsel-in .16s ease;
}
@keyframes sh-langsel-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.sh-langsel-menu li + li { border-top: 1px solid var(--color-divider); }
.sh-langsel-menu a {
  display: flex; align-items: center; gap: 10px; padding: 6px 10px;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 15px;
  color: var(--color-text); text-decoration: none; border-radius: var(--radius-sm);
}
.sh-langsel-menu a:hover { background: var(--color-accent-100); text-decoration: none; }
.sh-langsel-menu a:active { background: var(--color-accent-200); }
.sh-langsel-menu a[aria-current] { color: var(--color-accent-700); }
.sh-langsel-menu a[aria-current]::after { content: ""; margin-left: auto; width: 5px; height: 5px; transform: rotate(45deg); background: var(--color-accent); }
.sh-langsel-menu .sh-flag { width: 20px; height: 13px; }
@media (prefers-reduced-motion: reduce) { .sh-langsel-menu { animation: none; } }

/* ---------- buttons: outlined, never filled ---------- */
.sh-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 14px;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 14px;
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
  background: transparent; color: var(--color-text); cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease;
}
.sh-btn:hover { text-decoration: none; background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.sh-btn-primary { border-color: var(--color-accent); color: var(--color-accent-700); }
.sh-btn-primary:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.sh-btn-primary:active { background: color-mix(in srgb, var(--color-accent) 22%, transparent); }
.sh-btn-block { display: flex; width: 100%; justify-content: center; }
.sh-nav .sh-btn { color: var(--color-accent-300); border-color: var(--color-accent-400); min-height: 32px; font-size: 13px; }
.sh-nav .sh-btn:hover { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }

/* ---------- hero: the harbour plate with paper panels resting on it ---------- */
.sh-hero { position: relative; }
.sh-hero > img { width: 100%; height: 430px; object-fit: cover; filter: sepia(.16) saturate(.9) contrast(1.03); }
.sh-hero-veil {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--color-ink) 6%, transparent) 0%,
    color-mix(in srgb, var(--color-ink) 2%, transparent) 40%,
    color-mix(in srgb, var(--color-bg) 14%, transparent) 100%);
}
.sh-paper {                            /* any panel that sits on the plate */
  background: var(--color-neutral-100);
  border: 1px solid var(--color-divider);
}
.sh-hero-card {
  position: absolute; left: var(--page-pad); bottom: -1px; width: 560px;
  border-bottom: 0; padding: 30px 34px 32px;
}
.sh-hero-card h1 { font-size: 38px; line-height: 1.02; letter-spacing: -.01em; margin: 0; }
.sh-hero-card h1 em { font-style: normal; color: var(--color-accent-700); }
.sh-hero-card p { font-size: 14.5px; color: var(--color-neutral-800); text-align: justify; text-wrap: pretty; margin: 16px 0 0; }
.sh-hero-actions { display: flex; gap: 12px; margin-top: 22px; }
.sh-plate-caption {
  position: absolute; right: var(--page-pad); top: 22px; margin: 0;
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-neutral-800);
  background: color-mix(in srgb, var(--color-neutral-100) 86%, transparent);
  border: 1px solid var(--color-divider); padding: 5px 10px;
}

/* live status panel — status + inflation only */
.sh-status {
  position: absolute; right: var(--page-pad); bottom: -1px; width: 268px;
  border-bottom: 0; padding: 16px 20px 18px;
}
.sh-status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sh-status-row + .sh-status-row { border-top: 1px solid var(--color-divider); margin-top: 11px; padding-top: 11px; }
.sh-status-label { font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--color-neutral-700); }
.sh-status-value { font-family: var(--font-heading); font-size: 17px; font-weight: 600; line-height: 1; display: inline-flex; align-items: center; gap: 7px; }
.sh-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-neutral-500); }
.sh-status[data-status-state="online"] .sh-dot { background: var(--color-online); }
.sh-status[data-status-state="maintenance"] .sh-dot { background: var(--color-accent); }
.sh-figure { font-feature-settings: 'tnum'; color: var(--color-accent-700); }
.sh-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Découvrir : quatre panneaux qui s'étirent et se colorent au survol ----------
   Au repos : quatre images égales, légèrement désaturées, plaque titre compacte en bas à gauche.
   Au survol (ou focus clavier si le panneau est un lien) : le panneau passe à flex-grow 3,
   l'image zoome de 12 % sur son point d'intérêt (--focus), retrouve ses couleurs,
   la plaque s'élargit et révèle la phrase, des particules blanches montent.
   La hauteur de la bande ne change JAMAIS : la phrase vit dans la plaque, sur l'image. */
.sh-acc { display: flex; gap: 6px; margin-top: 20px; }
.sh-acc-panel { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; cursor: default; transition: flex-grow .6s cubic-bezier(.4,0,.2,1); }
.sh-acc-panel:has(.sh-acc-link) { cursor: pointer; }
.sh-acc:is(:hover, :focus-within) .sh-acc-panel { flex-grow: .7; }
.sh-acc .sh-acc-panel:is(:hover, :focus-within) { flex-grow: 3; }
.sh-acc-media { position: relative; display: block; height: 200px; overflow: hidden; border-radius: var(--radius-md); }
.sh-acc-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: var(--focus, 50% 30%); transform-origin: var(--focus, 50% 30%);
  filter: grayscale(.25) sepia(.12) contrast(1.01);
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .6s ease;
}
.sh-acc-panel:is(:hover, :focus-within) img { transform: scale(1.12); filter: sepia(.12) saturate(.95) contrast(1.03); }
.sh-acc-veil { position: absolute; inset: 0; pointer-events: none; background: color-mix(in srgb, var(--color-bg) 6%, transparent); transition: opacity .6s ease; }
.sh-acc-panel:is(:hover, :focus-within) .sh-acc-veil { opacity: 0; }
.sh-acc-media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-ink) 12%, transparent); }
.sh-acc-label {
  position: absolute; z-index: 2; left: 10px; bottom: 10px; max-width: calc(100% - 20px); box-sizing: border-box;
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 9px; align-items: center;
  padding: 6px 12px; background: color-mix(in srgb, var(--color-bg) 90%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-bg) 60%, var(--color-divider)); border-radius: var(--radius-md);
  transition: opacity .25s ease;
}
.sh-acc-ico { color: var(--color-accent-700); }
.sh-acc-title { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 16px; line-height: 1.15; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s ease; }
.sh-acc-panel:is(:hover, :focus-within) .sh-acc-title { color: var(--color-accent-700); }
.sh-acc:is(:hover, :focus-within) .sh-acc-panel:not(:hover, :focus-within) .sh-acc-label { opacity: 0; }  /* les panneaux resserrés n'affichent pas de titre tronqué */
.sh-acc-desc {
  grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; width: 0; min-width: 100%; opacity: 0;
  font-size: 12.5px; line-height: 1.45; color: var(--color-neutral-800);
  transition: grid-template-rows .35s ease, opacity .3s ease, margin .35s ease;
}
.sh-acc-desc > span { min-height: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sh-acc-panel:is(:hover, :focus-within) .sh-acc-desc { grid-template-rows: 1fr; width: 340px; min-width: 0; max-width: 100%; opacity: 1; margin-top: 4px; transition-delay: .15s; }
.sh-acc-link { position: absolute; inset: 0; z-index: 3; border-radius: var(--radius-md); }   /* lien étiré, seulement si une url est configurée */
.sh-acc-link:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.sh-acc-motes { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s ease; }
.sh-acc-panel:is(:hover, :focus-within) .sh-acc-motes { opacity: 1; }
.sh-acc-motes i {
  position: absolute; bottom: -6px; width: var(--s); height: var(--s); border-radius: 50%;
  background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, .8); opacity: 0;
  animation: sh-mote var(--d) linear var(--dl) infinite; animation-play-state: paused;
}
.sh-acc-panel:is(:hover, :focus-within) .sh-acc-motes i { animation-play-state: running; }
@keyframes sh-mote {
  0%   { transform: translate(0, 0); opacity: 0; }
  15%  { opacity: var(--o); }
  85%  { opacity: var(--o); }
  100% { transform: translate(var(--dx), -200px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sh-acc-motes { display: none; }
  .sh-acc-panel, .sh-acc-media img { transition: none; }
}
@media (max-width: 760px) {
  .sh-acc { flex-direction: column; }
  .sh-acc-panel { flex: none; }
  .sh-acc-media { height: 150px; }
  .sh-acc-media img { filter: sepia(.12) saturate(.95) contrast(1.03); }
  .sh-acc:is(:hover, :focus-within) .sh-acc-panel:not(:hover, :focus-within) .sh-acc-label { opacity: 1; }
  .sh-acc-desc { grid-template-rows: 1fr; width: auto; opacity: 1; margin-top: 4px; }
  .sh-acc-desc > span { white-space: normal; }
}

/* ---------- news + events, two columns ---------- */
.sh-columns { display: grid; grid-template-columns: minmax(0, 1fr) 320px; padding: 26px var(--page-pad) 34px; }
.sh-columns > main { padding-right: 36px; }
.sh-columns > aside { border-left: 1px solid var(--color-divider); padding-left: 32px; }

/* the whole row is the link; the list rule lives on the wrapper so the
   hover tint can be rounded without cutting the rule */
.sh-row { padding: 3px 0; }
.sh-news .sh-row { border-bottom: 1px solid var(--color-divider); }
.sh-events .sh-row { border-top: 1px solid var(--color-divider); }
.sh-row > a {
  display: block; margin: 0 -15px; padding: 17px 14px;
  border: 1px solid transparent; border-radius: var(--radius-md);
  color: var(--color-text);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.sh-news .sh-row > a { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; align-items: start; }
.sh-events .sh-row > a { margin: 0 -11px; padding: 8px 10px; }
.sh-row > a:hover {
  text-decoration: none;
  background-color: color-mix(in srgb, var(--color-accent-100) 58%, transparent);
  border-color: var(--color-accent-200);
  color: var(--color-accent-700);
}
.sh-row > a:active { background-color: color-mix(in srgb, var(--color-accent-200) 55%, transparent); }
.sh-vignette {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--color-divider);
  background: #fff; object-fit: cover; margin-top: 3px;
}
.sh-news-content { min-width: 0; }
.sh-row h3 { font-size: 22px; margin: 10px 0 6px; color: inherit; }
.sh-row-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.sh-cat { font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--color-accent-700); }
.sh-date { font-size: 11px; color: var(--color-neutral-600); font-feature-settings: 'tnum'; }
.sh-excerpt { font-size: 13.5px; color: var(--color-neutral-800); text-align: justify; text-wrap: pretty; margin: 0 0 8px; }
.sh-more {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: inherit;
  border-bottom: 1px solid var(--color-accent-300); padding-bottom: 1px;
}
.sh-events .sh-row > a { display: flex; flex-direction: column; gap: 3px; }
.sh-ev-date { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-accent-700); font-feature-settings: 'tnum'; }
.sh-ev-title { font-size: 13.5px; color: inherit; }
.sh-events-head { align-items: center; }
.sh-event-filter { position: relative; }
.sh-event-filter-trigger {
  display: flex; align-items: center; gap: 8px; max-width: 170px; padding: 5px 8px;
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
  background: var(--color-neutral-100); color: var(--color-neutral-700);
  font: inherit; font-size: 10px; cursor: pointer;
}
.sh-event-filter-caret { color: var(--color-accent-700); }
.sh-event-filter-menu {
  position: absolute; z-index: 20; top: calc(100% + 4px); right: 0;
  min-width: 150px; padding: 4px;
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
  background: var(--color-neutral-100); box-shadow: 0 8px 22px rgb(50 39 28 / 16%);
}
.sh-event-filter-menu[hidden] { display: none; }
.sh-event-filter-option {
  display: block; width: 100%; padding: 7px 8px; border: 0; border-radius: 3px;
  background: transparent; color: var(--color-neutral-700); text-align: left;
  font: inherit; font-size: 10px; cursor: pointer;
}
.sh-event-filter-option:hover,
.sh-event-filter-option:focus-visible,
.sh-event-filter-option.is-active { background: var(--color-accent-100); color: var(--color-accent-900); }
.sh-event-filter-trigger:focus-visible,
.sh-event-filter-option:focus-visible {
  outline: 2px solid var(--color-accent-500); outline-offset: 2px;
}
.sh-events-cta { margin-top: 16px; }
.sh-empty-state { padding: 18px 0; border-bottom: 1px solid var(--color-divider); }
.sh-empty-state h3 { font-size: 18px; }
.sh-empty-state p { margin: 7px 0 0; color: var(--color-neutral-700); }

/* ---------- footer: colophon page ---------- */
.sh-footer {
  position: relative; overflow: hidden;
  background: var(--color-ink); color: var(--color-neutral-200);
  padding: 38px var(--page-pad) 22px;
}
.sh-footer > * { position: relative; }
.sh-tagline { font-family: var(--font-heading); font-size: 22px; font-weight: 400; color: var(--color-bg); max-width: 34ch; margin: 0 0 26px; }
.sh-footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.sh-footer h4 { font-family: var(--font-body); font-size: 9.5px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--color-accent-300); margin: 0 0 10px; }
.sh-footer-cols a { display: block; font-size: 13px; padding: 3px 0; color: var(--color-neutral-300); }
.sh-footer-cols a:hover { color: var(--color-accent-300); text-decoration: none; }
.sh-legal {
  margin: 24px 0 0; padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--color-bg) 14%, transparent);
  font-size: 10.5px; color: color-mix(in srgb, var(--color-bg) 62%, transparent);
}

/* ---------- narrow screens ---------- */
@media (max-width: 1000px) {
  :root { --page-pad: 22px; }
  .sh-nav { flex-wrap: wrap; gap: 14px; }
  .sh-nav-aside { margin-left: auto; flex-wrap: wrap; }
  .sh-nav-links { order: 3; flex-basis: 100%; margin-left: 0; padding-left: 165px; overflow-x: auto; }
  .sh-hero > img { height: 300px; }
  .sh-hero-veil { bottom: auto; height: 300px; }
  .sh-hero-card, .sh-status { position: static; width: auto; border: 0; border-top: 1px solid var(--color-divider); }
  .sh-plate-caption { display: none; }
  .sh-columns { grid-template-columns: minmax(0, 1fr); }
  .sh-columns > main { padding-right: 0; }
  .sh-columns > aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--color-divider); margin-top: 28px; padding-top: 20px; }
  .sh-footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  :root { --page-pad: 16px; }
  .sh-nav { gap: 10px; }
  .sh-brand { flex-basis: 135px; height: 29px; }
  .sh-brand img { width: 130px; }
  .sh-nav-links { padding-left: 0; }
  .sh-nav-aside { flex-basis: 100%; margin-left: 0; gap: 11px; }
  .sh-hero-card { padding: 24px 20px 26px; }
  .sh-hero-card h1 { font-size: 39px; }
  .sh-footer-cols { grid-template-columns: 1fr; }
}

/* ---------- menu du compte (connecté) ----------
   Remplace « Mes personnages », « Staff », « Compte » et « Se déconnecter » dans la barre.
   Même mécanique que le sélecteur de langue : <details> natif, refermé par langsel.js. */
.sh-acctmenu { position: relative; }
.sh-acctmenu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 2px 3px; font-size: 13px; color: var(--color-neutral-200);
  border-bottom: 1px solid transparent; transition: color .16s ease, border-color .16s ease;
}
.sh-acctmenu summary::-webkit-details-marker { display: none; }
.sh-acctmenu summary:hover, .sh-acctmenu[open] summary, .sh-acctmenu.is-current summary { color: #fff; border-bottom-color: var(--color-accent-400); }
.sh-acctmenu summary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.sh-acctmenu-ico { color: var(--color-accent-300); }
.sh-acctmenu[open] .sh-langsel-chev { transform: rotate(180deg); opacity: .9; }
.sh-acctmenu-panel {
  position: absolute; right: -8px; top: calc(100% + 12px); z-index: 20; width: 248px;
  background: var(--color-bg); border: 1px solid var(--color-divider); border-top: 2px solid var(--color-accent);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md); animation: sh-langsel-in .16s ease;
}
.sh-acctmenu-who { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 16px 11px; border-bottom: 1px solid var(--color-divider); }
.sh-acctmenu-who-name { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 19px; line-height: 1.1; color: var(--color-text); }
.sh-acctmenu-role { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-accent-700); border: 1px solid var(--color-accent); border-radius: var(--radius-sm); padding: 1px 6px; }
.sh-acctmenu-panel ul { list-style: none; margin: 0; padding: 5px; }
.sh-acctmenu-label { margin: 0; padding: 9px 16px 2px; border-top: 1px solid var(--color-divider); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--color-neutral-600); }
.sh-acctmenu-panel ul + .sh-acctmenu-label { margin-top: 0; }
.sh-acctmenu-panel a, .sh-acctmenu-out button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 11px;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 15px; line-height: 1.2;
  color: var(--color-text); text-decoration: none; border-radius: var(--radius-sm);
  background: none; border: 0; cursor: pointer; text-align: left;
}
.sh-acctmenu-panel a svg, .sh-acctmenu-out svg { color: var(--color-accent-700); flex: none; }
.sh-acctmenu-panel a span, .sh-acctmenu-out span { flex: 1; }
.sh-acctmenu-panel a em { font-style: normal; font-family: var(--font-body); font-size: 11px; color: var(--color-neutral-600); font-feature-settings: 'tnum'; }
.sh-acctmenu-panel a:hover, .sh-acctmenu-out button:hover { background: var(--color-accent-100); text-decoration: none; }
.sh-acctmenu-panel a:active, .sh-acctmenu-out button:active { background: var(--color-accent-200); }
.sh-acctmenu-panel a[aria-current] { color: var(--color-accent-700); }
.sh-acctmenu-panel a:focus-visible, .sh-acctmenu-out button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.sh-acctmenu-out { margin: 0; padding: 5px; border-top: 1px solid var(--color-divider); }
.sh-acctmenu-out button { font-size: 14px; color: var(--color-neutral-800); }
.sh-acctmenu-out svg { color: var(--color-neutral-600) !important; }
@media (prefers-reduced-motion: reduce) { .sh-acctmenu-panel { animation: none; } }

/* ---------- page Mon compte ---------- */
.sh-acct { padding: 40px var(--page-pad) 56px; }
.sh-acct-head { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 24px; padding-bottom: 26px; border-bottom: 1px solid var(--color-divider); }
.sh-acct-head h1 { font-size: 44px; line-height: 1.02; margin: 8px 0 0; }
.sh-acct-head h1 em { font-style: italic; color: var(--color-accent-700); }
.sh-acct-head .sh-tick { margin: 14px 0 0; }
.sh-acct-sub { margin: 12px 0 0; max-width: 56ch; font-size: 14px; color: var(--color-neutral-800); }
.sh-acct-badges { display: flex; gap: 8px; }
.sh-acct-badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-neutral-800); border: 1px solid var(--color-divider); border-radius: var(--radius-sm); }
.sh-acct-badge--gold { color: var(--color-accent-700); border-color: var(--color-accent); }
.sh-acct-badge .sh-dot { background: var(--color-online); }
.sh-acct-badge--banned { color: #a12c36; border-color: #a12c36; }   /* même rouge que .sh-danger */
.sh-acct-badge--banned .sh-dot { background: #a12c36; }
.sh-acct-grid { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 0; margin-top: 8px; }
.sh-acct-main { padding-right: 40px; }
.sh-acct-side { border-left: 1px solid var(--color-divider); padding-left: 32px; }
.sh-acct-block { padding: 26px 0 8px; }
.sh-acct-block + .sh-acct-block { border-top: 1px solid var(--color-divider); }
.sh-acct-block-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sh-acct-block-head svg { color: var(--color-accent-700); }
.sh-acct-block-head h2 { font-size: 23px; }
.sh-acct-block-note { margin: 0 0 10px; font-size: 13px; color: var(--color-neutral-700); max-width: 60ch; }
.sh-kv { margin: 0; }
.sh-kv > div { display: grid; grid-template-columns: 200px minmax(0,1fr) auto; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid var(--color-divider); }
.sh-kv > div:first-child { border-top: 0; }
.sh-kv dt { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-neutral-700); }
.sh-kv dd { margin: 0; font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 18px; color: var(--color-text); font-feature-settings: 'tnum'; }
.sh-kv dd.is-empty { font-family: var(--font-body); font-weight: 400; font-size: 13px; font-style: italic; color: var(--color-neutral-600); }
.sh-kv-act { font-size: 12px; color: var(--color-accent-700); background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; border-bottom: 1px solid var(--color-accent-300); font-family: var(--font-body); }
.sh-kv-act:hover { color: var(--color-accent-600); border-bottom-color: var(--color-accent); }
.sh-kv-act:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.sh-acct-sec { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0 18px; }
.sh-acct-sec p { margin: 0; font-size: 13.5px; color: var(--color-neutral-800); max-width: 44ch; }
.sh-side-title { margin: 26px 0 4px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--color-neutral-700); font-family: var(--font-body); font-weight: 400; }
.sh-side-links { list-style: none; margin: 0 0 6px; padding: 0; }
.sh-side-links li + li { border-top: 1px solid var(--color-divider); }
.sh-side-links a { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; margin: 0 -10px; padding: 13px 10px; color: var(--color-text); border-radius: var(--radius-md); transition: background-color .16s ease; }
.sh-side-links a:hover { background: color-mix(in srgb, var(--color-accent-100) 60%, transparent); text-decoration: none; }
.sh-side-links a:active { background: color-mix(in srgb, var(--color-accent-200) 55%, transparent); }
.sh-side-links a > svg:first-child { color: var(--color-accent-700); }
.sh-side-links b { display: block; font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 17px; line-height: 1.15; }
.sh-side-links small { display: block; font-size: 12px; color: var(--color-neutral-700); margin-top: 2px; }
.sh-side-links .sh-arrow { color: var(--color-accent); transition: transform .16s ease; }
.sh-side-links a:hover .sh-arrow { transform: translateX(3px); }
@media (max-width: 1000px) {
  .sh-acct-grid { grid-template-columns: minmax(0,1fr); }
  .sh-acct-main { padding-right: 0; }
  .sh-acct-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--color-divider); margin-top: 10px; }
  .sh-acct-head { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 600px) {
  .sh-kv > div { grid-template-columns: minmax(0,1fr) auto; }
  .sh-kv dt { grid-column: 1 / -1; }
  .sh-acct-sec { flex-direction: column; align-items: flex-start; }
  .sh-acct-head h1 { font-size: 34px; }
  .sh-acctmenu-name { display: none; }
  .sh-acctmenu-panel { right: auto; left: 0; }   /* le menu est au bord gauche sur mobile : on l'ouvre vers la droite */
}
