/* Identité Maze Event et mise en page des espaces publics et de gestion. */
:root {
  --bg: #0d1018;
  --panel: #161b27;
  --panel-2: #1d2332;
  --line: #2a3244;
  --text: #f1f2f8;
  --muted: #a1a9bb;
  --safe-top: 0px;
  --safe-bottom: 0px;
  --page-gutter: clamp(20px, 3vw, 48px);
  font-size: 15px;
}
html {
  min-height: 100%;
  scroll-padding-top: calc(var(--safe-top) + 100px);
}
body {
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding-block: var(--safe-top) var(--safe-bottom);
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset-inline: 0;
  pointer-events: none;
  background: var(--bg);
  z-index: 90;
}
body::before {
  top: 0;
  height: var(--safe-top);
}
body::after {
  bottom: 0;
  height: var(--safe-bottom);
}
body.drawer-open {
  overflow: hidden;
}
img {
  max-width: 100%;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
.btn {
  touch-action: manipulation;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
a,
p,
h1,
h2,
h3,
td,
dd,
strong {
  overflow-wrap: anywhere;
}
input,
select,
textarea {
  min-height: 46px;
  border-color: #394257;
  background: #101520;
  font-size: 14px;
}
.field > span {
  font-size: 12px;
  line-height: 1.5;
}
.field input,
.field select,
.field textarea {
  font-size: 14px;
}
input[type="checkbox"],
input[type="radio"] {
  min-height: 20px;
  min-width: 20px;
}
input[type="file"] {
  max-width: 100%;
  padding: 10px;
}
input[type="file"]::file-selector-button {
  border: 0;
  background: #30394e;
  color: var(--text);
  border-radius: 4px;
  margin-right: 10px;
  padding: 9px 12px;
  cursor: pointer;
}
.btn {
  min-height: 44px;
  border-radius: 6px;
  padding: 11px 17px;
  font-size: 13px;
  letter-spacing: 0.005em;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.btn.primary {
  color: #111529;
}
.btn.secondary {
  background: #ffffff04;
  border-color: #46516a;
}
.btn:hover {
  filter: none;
  border-color: var(--accent);
  background: #989bfb1c;
}
.btn.primary:hover {
  background: #b4b6ff;
}
.btn.small {
  min-height: 38px;
  font-size: 12px;
  padding: 8px 12px;
}
button.icon-btn {
  width: 42px;
  height: 42px;
  border-color: #364057;
  border-radius: 6px;
}
.text-btn {
  min-height: 42px;
  font-size: 13px;
}
.skip-link {
  position: fixed;
  top: calc(var(--safe-top) + 8px);
  left: 16px;
  transform: translateY(-200px);
  background: var(--accent);
  color: #111529;
  padding: 14px 20px;
  z-index: 110;
  border-radius: 5px;
}
.skip-link:focus {
  transform: none;
}
.brand img {
  object-fit: contain;
}
.arena-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
/* Accueil public */
.showcase {
  --showcase-gutter: max(28px, calc((100% - 1340px) / 2));
}
.showcase .btn {
  border-radius: 2px;
  padding: 10px 16px;
  font-weight: 500;
  letter-spacing: 0;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.showcase .btn.primary {
  background: #b3b1f5;
  border-color: #b3b1f5;
  color: #17152b;
}
.showcase .btn.primary:hover {
  background: #cccaff;
  border-color: #cccaff;
}
.showcase .btn.secondary {
  border-color: #ffffff26;
  background: transparent;
  color: #d8dbe7;
}
.showcase .btn.secondary:hover {
  border-color: #ffffff59;
  background: #ffffff08;
  color: #fff;
}
.showcase .btn.small {
  padding: 9px 16px;
}
.site-nav {
  position: sticky;
  top: var(--safe-top);
  display: flex;
  height: 96px;
  max-width: none;
  padding-inline: var(--showcase-gutter);
  background: var(--bg);
  border: 0;
  z-index: 35;
  gap: clamp(24px, 3vw, 48px);
}
.showcase-home .site-nav {
  position: absolute;
  inset-inline: 0;
  background: transparent;
}
.showcase-home .site-nav.menu-open {
  background: #0d1018;
}
.site-nav .brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.site-nav .brand img {
  width: 62px;
  height: 62px;
}
.site-nav nav {
  margin-right: auto;
  gap: clamp(20px, 2.3vw, 36px);
  font-size: 13px;
  align-items: center;
  white-space: nowrap;
}
.site-nav nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 10px;
  color: #eeedf5;
  transition: color 0.2s;
}
.site-nav nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 5px;
  height: 1px;
  background: #b3b1f5;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}
.site-nav nav a:hover,
.site-nav nav a:focus-visible,
.site-nav nav a[aria-current="page"] {
  color: #fff;
}
.site-nav nav a:hover::after,
.site-nav nav a:focus-visible::after,
.site-nav nav a[aria-current="page"]::after {
  transform: scaleX(1);
}
.site-nav nav a[aria-current="page"] {
  box-shadow: none;
}
#site-account {
  margin-left: auto;
  min-width: 0;
  gap: 16px;
}
.site-nav #site-account .btn {
  min-height: 44px;
  padding: 8px 0;
  font-size: 13px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #eeedf5;
}
.site-nav #site-account .btn.secondary {
  max-width: 260px;
  display: inline-flex;
  gap: 10px;
}
.site-nav #profile > .profile-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-nav #profile .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff12;
  border: 1px solid #ffffff30;
  color: #eeedf5;
  font-size: 10px;
}
.site-nav #site-account .btn.primary {
  gap: 12px;
}
.site-nav #site-account .btn:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: none;
}
.site-menu.icon-btn {
  position: relative;
  border-radius: 0;
  border: 0;
  width: 44px;
  height: 44px;
}
.site-menu span {
  position: absolute;
  width: 17px;
  height: 1px;
  background: currentColor;
  transition: transform 0.2s;
}
.site-menu span:first-child {
  transform: translateY(-3px);
}
.site-menu span:last-child {
  transform: translateY(3px);
}
.menu-open .site-menu span:first-child {
  transform: rotate(45deg);
}
.menu-open .site-menu span:last-child {
  transform: rotate(-45deg);
}
.arena-hero {
  isolation: isolate;
  position: relative;
  max-width: none;
  min-height: min(886px, 100dvh);
  display: flex;
  flex-direction: column;
  padding: 128px var(--showcase-gutter) 30px;
  overflow: hidden;
  gap: 0;
}
.arena-hero .arena-backdrop {
  z-index: -2;
  object-position: center 55%;
}
.arena-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0a0e1bd9 0%, #0a0e1b85 42%, #0a0e1b18 80%),
    linear-gradient(180deg, #080b14b3, transparent 180px),
    linear-gradient(0deg, #0d1018 0%, transparent 28%, #0d101824 85%);
  z-index: -1;
}
.arena-hero .hero-copy {
  padding: 60px 0 35px;
}
.arena-hero h1 {
  width: fit-content;
  margin: 0 0 26px;
  padding: 0.08em 0.12em 0.12em 0;
  font-family: "Archivo", "Arial Black", Arial, sans-serif;
  font-size: clamp(64px, 7.5vw, 112px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.045em;
  line-height: 1.05;
  white-space: nowrap;
  color: #f7f7ff;
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .arena-hero h1 {
    background: linear-gradient(105deg, #fff 4%, var(--accent) 48%, #fff 96%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
@media (forced-colors: active) {
  .arena-hero h1 {
    background: none;
    color: CanvasText;
  }
}
.arena-hero .hero-copy > .hero-lead {
  font-family: "Archivo", "Arial Black", Arial, sans-serif;
  font-size: clamp(28px, 3.1vw, 46px);
  font-style: italic;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: white;
  margin-bottom: 22px;
  max-width: 640px;
}
.arena-hero .hero-lead .accent {
  color: var(--accent);
}
/* Trait lumineux sous le titre. */
.arena-hero h1 {
  position: relative;
  margin-bottom: 34px;
}
.arena-hero h1::after {
  content: "";
  position: absolute;
  left: 0.06em;
  bottom: -10px;
  width: 62%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), #989bfb00);
  box-shadow: 0 0 16px #989bfbaa;
}
.arena-hero .hero-copy > p:not(.hero-lead) {
  font-family: "Archivo", Inter, system-ui, sans-serif;
  color: #ccd1df;
  font-size: 15px;
  line-height: 1.7;
  max-width: 490px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.showcase .hero-actions .btn {
  min-height: 48px;
  padding: 8px 0;
  gap: 14px;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.showcase .hero-actions .btn:hover {
  color: var(--accent);
  box-shadow: none;
}
.hero-actions .btn svg {
  width: 30px;
  height: 30px;
  padding: 6px;
  border: 1px solid #ffffff45;
  border-radius: 50%;
}
.hero-actions svg,
#site-account svg {
  transition: transform 0.2s;
}
.hero-actions a:hover svg,
#site-account a:hover svg {
  transform: translateX(3px);
}
.hero-agenda {
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 16px;
  padding-block: 12px;
  color: #e2e4ef;
  transition: color 0.2s;
}
.hero-agenda:hover {
  color: var(--accent);
}
.arena-hero .hero-foot {
  margin-top: auto;
  border-top: 1px solid #ffffff30;
  width: 100%;
  padding-top: 22px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  color: #c6cbdc;
  font-size: 10px;
  letter-spacing: 0.13em;
}
.hero-foot a {
  display: inline-flex;
  align-items: center;
  gap: 24px;
}
.hero-foot a span {
  font-size: 18px;
}
.experience-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 3vw, 60px);
  padding: 25px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #b0b8cd;
  background: #111622;
  flex-wrap: wrap;
}
.experience-strip i {
  width: 4px;
  height: 4px;
  background: var(--accent);
  transform: rotate(45deg);
}
.site-section {
  max-width: 1396px;
  padding: 80px 28px;
}
.section-head {
  margin-bottom: 36px;
}
.section-head h2,
.about h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.045em;
}
.section-head p,
.about p {
  font-size: 14px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
}
.filter-tabs {
  gap: 8px;
  margin-bottom: 30px;
}
.filter-tab {
  min-height: 42px;
  font-size: 12px;
  border-radius: 4px;
}
.filter-tab.active {
  color: #d6d7ff;
  border-color: var(--accent);
}
.public-grid {
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.activity-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-color: var(--line);
  border-radius: 8px;
  min-width: 0;
}
.activity-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.activity-copy p {
  font-size: 13px;
  line-height: 1.7;
}
.activity-copy h3 {
  font-size: 21px;
  font-weight: 650;
}
.activity-bottom {
  margin-top: auto;
}
.activity-meta {
  flex-wrap: wrap;
  font-size: 11px;
  gap: 10px 16px;
}
.public-grid .activity-card {
  background: #141a26;
  border-radius: 8px;
}
.public-grid .activity-image {
  flex-shrink: 0;
}
.public-grid .activity-image img {
  height: 100%;
  display: block;
  transition: transform 0.3s;
}
.public-grid .activity-image {
  overflow: hidden;
}
.public-grid .activity-card:hover .activity-image img {
  transform: scale(1.025);
}
.public-grid .activity-copy {
  padding: 24px;
}
.public-grid .activity-copy h3 {
  font-size: 25px;
}
.public-grid .activity-bottom {
  align-items: flex-start;
  flex-direction: column;
}
.public-grid .activity-card-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.activity-card-actions .btn {
  min-height: 44px;
}
.agenda-section {
  background: #141a26;
}
.public-event {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
}
.public-event p {
  font-size: 13px;
}
.about {
  gap: 70px;
}
.about .btn {
  margin-top: 10px;
}
.site-footer {
  padding: 35px max(28px, calc((100vw - 1340px) / 2));
  background: #0a0e16;
}
.site-footer img {
  object-fit: contain;
}
.site-footer p {
  font-size: 13px;
}
.site-footer small {
  color: #9ba4ba;
}
/* Navigation et titres de l’espace de gestion */
.sidebar {
  width: 248px;
  background: #111621;
  padding: 24px 16px 20px;
  border-right-color: #273044;
}
.sidebar .brand img {
  height: 74px;
  width: 142px;
  margin-left: 15px;
}
.workspace-label {
  border: 0;
  border-block: 1px solid var(--line);
  border-radius: 0;
  margin: 16px 0 24px;
  padding: 16px 12px;
  font-size: 12px;
}
.nav-label {
  color: #a0a9bf;
  letter-spacing: 0.14em;
  font-size: 9px;
  margin-top: 12px;
}
.sidebar .nav-group {
  gap: 3px;
  margin-bottom: 22px;
}
.nav-link {
  font-size: 12px;
  padding: 12px;
  min-height: 44px;
  color: #b1b9cc;
  gap: 11px;
  border-radius: 5px;
  position: relative;
}
.nav-link.active {
  background: #989bfb14;
  color: #d7d8ff;
  border-color: #989bfb24;
}
.nav-link.active::before {
  left: -17px;
}
.sidebar-note {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 10px;
  line-height: 1.7;
  margin-bottom: 0;
}
.sidebar-note .dot {
  background: var(--accent);
}
.sidebar-user {
  border-top: 1px solid var(--line);
  padding: 18px 8px 0;
}
.sidebar-user > span:not(.avatar) {
  min-width: 0;
  flex: 1;
}
.sidebar-user strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-user small {
  font-size: 11px;
}
.main-shell {
  margin-left: 248px;
  min-width: 0;
}
.topbar {
  height: 76px;
  padding-inline: var(--page-gutter);
  background: #0d1018;
  border-bottom-color: #273044;
}
.breadcrumb {
  font-size: 12px;
}
.topbar-actions .today {
  font-size: 12px;
}
.content {
  padding: 36px var(--page-gutter) 56px;
  max-width: 1640px;
  min-width: 0;
}
.page-heading {
  position: relative;
  align-items: flex-end;
  padding-bottom: 28px;
  margin-bottom: 28px;
  gap: 25px;
  border-bottom: 1px solid var(--line);
}
.page-heading-copy {
  min-width: 0;
  flex: 1;
}
.page-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #c1c8db;
  font-size: 11px;
  margin-bottom: 20px;
}
.heading-emblem {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: #989bfb10;
  border: 1px solid #989bfb30;
  color: var(--accent);
  border-radius: 5px;
}
.heading-rule {
  background: #39435a;
  width: 26px;
  height: 1px;
}
.heading-brand {
  color: #8792ab;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.14em;
}
.page-heading h1 {
  font-size: clamp(34px, 3.8vw, 50px);
  letter-spacing: -0.045em;
  margin-bottom: 10px;
  line-height: 1.08;
  font-weight: 650;
}
.page-heading p {
  font-size: 13px;
  max-width: 660px;
  line-height: 1.7;
  color: #a5afc5;
}
.page-heading-action {
  padding-bottom: 3px;
  flex-shrink: 0;
}
.page-heading-action .btn {
  min-height: 44px;
}
.workspace-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 324px;
  padding: 25px 32px 32px;
  margin-bottom: 25px;
  border: 1px solid #3a4661;
  border-radius: 8px;
}
.workspace-hero .arena-backdrop {
  z-index: -2;
  object-position: 65% 56%;
}
.workspace-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0e1424ed, #0e1424b0 46%, #0e14241a),
    linear-gradient(0deg, #0d1326ad, transparent);
  z-index: -1;
}
.workspace-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 23px;
  border-bottom: 1px solid #ffffff2a;
  margin-bottom: 28px;
}
.workspace-hero-top > span:first-child {
  font-weight: 800;
  letter-spacing: -0.035em;
  font-size: 25px;
}
.workspace-hero-top > span:last-child {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: #c4cadd;
}
.workspace-hero h1 {
  font-size: clamp(34px, 4vw, 49px);
  font-weight: 650;
  margin-bottom: 12px;
}
.workspace-hero p {
  color: #c2cadb;
  font-size: 13px;
  line-height: 1.8;
  max-width: 450px;
  margin-bottom: 24px;
}
.workspace-hero-calendar {
  position: absolute;
  bottom: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  background: #101726c9;
  border: 1px solid #ffffff35;
  padding: 14px 18px;
  border-radius: 5px;
}
.stat {
  padding: 22px;
  border-radius: 7px;
  background: #151c29;
  border-color: #2a344b;
}
.stat-top {
  font-size: 12px;
  line-height: 1.5;
  align-items: flex-start;
}
.stat strong {
  font-size: clamp(26px, 2.5vw, 37px);
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.stat small {
  font-size: 11px;
  line-height: 1.6;
  color: #a0abc1;
}
.overview-grid {
  gap: 22px;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 1fr);
}
.panel {
  border-radius: 7px;
  background: #151c29;
  border-color: #2b354c;
  min-width: 0;
}
.panel-head {
  padding: 22px;
}
.panel-head h2 {
  font-size: 17px;
  letter-spacing: -0.025em;
}
.panel-head p {
  font-size: 12px;
}
.quick-action strong {
  font-size: 13px;
}
.quick-action small {
  font-size: 11px;
  line-height: 1.6;
}
.quick-icon {
  border-radius: 5px;
}
.table-wrap {
  max-width: 100%;
  overscroll-behavior-inline: contain;
}
th {
  color: #abb6cc;
  font-size: 10px;
  letter-spacing: 0.06em;
}
td {
  font-size: 13px;
}
td small {
  font-size: 11px;
}
.table-wrap th:first-child,
.table-wrap td:first-child {
  padding-left: 22px;
}
.toolbar {
  gap: 14px;
  align-items: center;
}
.search-box {
  max-width: 410px;
}
.search-box input {
  min-height: 46px;
  font-size: 13px;
}
.search-box svg {
  top: 15px;
}
.toolbar > .field {
  min-width: 150px;
}
.toolbar select {
  max-width: 100%;
  min-height: 46px;
  font-size: 13px;
}
.badge {
  font-size: 11px;
  min-height: 26px;
  border-radius: 4px;
}
.receipt-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.receipt-details > div {
  background: #111722;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 16px;
}
.receipt-details dt {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.receipt-details dd {
  margin: 0;
  font-size: 16px;
}
.nav-scrim,
.drawer-close {
  display: none !important;
}
/* Fenêtres, formulaires et photos */
.modal {
  inset: var(--safe-top) 0 var(--safe-bottom);
  margin: auto;
  max-height: calc(100vh - var(--safe-top) - var(--safe-bottom) - 28px);
  max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 28px);
  background: #171e2c;
  border-color: #465371;
  border-radius: 10px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.modal-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #171e2cf5;
  backdrop-filter: blur(16px);
  gap: 16px;
  align-items: flex-start;
}
.modal-head h2 {
  font-size: 25px;
  letter-spacing: -0.035em;
}
.modal-head .icon-btn {
  flex-shrink: 0;
}
.modal-body {
  min-width: 0;
}
.modal-body > p {
  font-size: 14px;
}
.form-grid {
  gap: 18px;
}
.form-actions {
  flex-wrap: wrap;
}
.form-actions .form-error:empty {
  display: none;
}
.form-error {
  flex-basis: 100%;
}
.check-field {
  font-size: 13px;
  line-height: 1.6;
  min-height: 44px;
}
.notice {
  color: #e3d3ad;
  font-size: 12px;
}
.profile-summary {
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}
.activity-facts section {
  background: #111925;
  border-color: #35425d;
  border-radius: 6px;
}
.activity-facts p {
  font-size: 13px;
  color: #c4ccdf;
}
.detail-edit-block {
  background: #111925;
  border-color: #35415a;
}
.photo-buttons .icon-btn {
  width: 38px;
  height: 38px;
}
.photo-buttons .btn {
  font-size: 11px;
  min-height: 38px;
}
.editor-photo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.slide-thumbs button {
  min-width: 60px;
  min-height: 44px;
}
.album-tabs .filter-tab,
.album-tabs .btn {
  min-height: 44px;
}
.slide-caption {
  align-items: center;
}
#toasts {
  bottom: calc(var(--safe-bottom) + 18px);
  right: 18px;
  max-width: min(430px, calc(100vw - 36px));
}
.toast {
  background: #202a3a;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.community-page > .eyebrow {
  margin-bottom: 24px;
}
.community-page .section-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 30px;
}
.community-page h1 {
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 600;
  letter-spacing: -0.045em;
}
.review-card {
  background: #151c29;
}
.review-card p {
  font-size: 14px;
}
.review-author small {
  font-size: 11px;
}
.gallery-card .activity-copy p,
.moderation-card .activity-copy p {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  min-height: 0;
}
.my-gallery .activity-copy {
  padding-inline: 0;
}
.rating-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
  padding: 12px;
}
.rating-picker label {
  min-width: 0;
  min-height: 70px;
  padding: 10px 2px;
  border-radius: 5px;
}
.rating-picker span {
  font-size: 10px;
  white-space: nowrap;
}
.rating-picker small {
  font-size: 11px;
}
.hud-body::before,
.hud-body::after {
  background: transparent;
}
.quote-page {
  min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom));
}
.quote-page td {
  overflow-wrap: anywhere;
}
/* Tablette et navigation compacte */
@media (max-width: 1200px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .public-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-nav {
    gap: 16px;
  }
  .site-nav nav {
    gap: 14px;
    font-size: 12px;
  }
  .site-nav .btn {
    font-size: 12px;
    padding-inline: 12px;
  }
  .workspace-hero-calendar {
    position: static;
    display: inline-flex;
    margin-top: 20px;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    transform: translateX(-100%);
    visibility: hidden;
    width: min(310px, calc(100vw - 48px));
    inset-block: var(--safe-top) var(--safe-bottom);
    z-index: 70;
    transition:
      transform 0.2s ease,
      visibility 0.2s;
    padding-top: 18px;
  }
  .sidebar.open {
    transform: none;
    visibility: visible;
    box-shadow: 16px 0 60px #0007;
  }
  .main-shell {
    margin-left: 0;
  }
  .mobile-menu {
    display: inline-flex !important;
  }
  .drawer-close {
    display: inline-flex !important;
    position: absolute;
    right: 16px;
    top: 22px;
  }
  .sidebar .brand img {
    width: 130px;
  }
  .nav-scrim:not([hidden]) {
    display: block !important;
    position: fixed;
    inset: var(--safe-top) 0 var(--safe-bottom);
    border: 0;
    border-radius: 0;
    background: #050912b3;
    z-index: 60;
  }
  .topbar {
    position: sticky;
    top: var(--safe-top);
    z-index: 30;
    height: 70px;
    gap: 15px;
    background: #0d1018f5;
    backdrop-filter: blur(16px);
  }
  .breadcrumb {
    margin-right: auto;
  }
  .breadcrumb > span,
  .breadcrumb > svg {
    display: none;
  }
  .topbar-actions .today {
    display: none;
  }
  .site-nav {
    display: grid;
    grid-template-columns: 1fr auto;
    height: auto;
    min-height: 72px;
    gap: 0 16px;
    padding: 4px var(--showcase-gutter);
  }
  .site-menu {
    display: inline-flex !important;
    grid-column: 2;
    grid-row: 1;
  }
  .site-nav nav,
  #site-account {
    display: none;
  }
  .site-nav.menu-open nav {
    position: static;
    display: grid;
    grid-column: 1/-1;
    grid-row: 2;
    gap: 0;
    padding: 12px 0;
    background: transparent;
    border-block: 1px solid #ffffff12;
    max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 174px);
    overflow-y: auto;
    margin-right: 0;
  }
  .site-nav nav a {
    font-size: 15px;
    min-height: 46px;
    padding: 12px 8px;
  }
  .site-nav nav a::after {
    inset-inline: 8px;
    width: 24px;
  }
  .site-nav.menu-open #site-account {
    display: flex;
    grid-column: 1/-1;
    grid-row: 3;
    margin: 0;
    padding: 14px 0;
    flex-wrap: wrap;
  }
  .site-nav .btn.secondary {
    display: inline-flex;
  }
  .site-nav #site-account .btn {
    flex: 1;
    min-height: 44px;
    font-size: 13px;
  }
  .site-nav #site-account .btn.secondary {
    max-width: none;
  }
  .arena-hero {
    min-height: 670px;
    padding-inline: var(--showcase-gutter);
  }
  .arena-hero .hero-copy {
    padding-top: 70px;
  }
  .arena-hero h1 {
    font-size: clamp(52px, 7.5vw, 76px);
  }
}
/* Téléphone AVA : 414 × 904, et 904 × 414 après rotation. */
@media (max-width: 600px), (max-width: 1000px) and (max-height: 500px) {
  /* Vrai téléphone : marges de l’appareil (encoche, barre d’accueil) ; téléphone en jeu
     (.in-phone, posé par frame.js) : barre d’état et barre d’accueil fixes de l’appli. */
  :root {
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --page-gutter: 20px;
  }
  :root.in-phone {
    --safe-top: max(50px, env(safe-area-inset-top, 0px));
    --safe-bottom: max(20px, env(safe-area-inset-bottom, 0px));
  }
  /* Le téléphone en jeu remet le padding du body à zéro : les zones réservées restent prioritaires. */
  body {
    padding-block: var(--safe-top) var(--safe-bottom) !important;
  }
  html,
  body {
    scrollbar-width: none;
  }
  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    display: none;
  }
  input,
  select,
  textarea,
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
  .sidebar {
    padding-bottom: 20px;
  }
  .sidebar-note {
    display: none;
  }
  .sidebar .nav-group {
    margin-bottom: 14px;
  }
  .sidebar-user {
    min-height: 70px;
  }
  .sidebar-user strong {
    font-size: 13px;
  }
  .nav-link {
    font-size: 13px;
  }
  .btn.small,
  button.icon-btn {
    min-height: 44px;
  }
  button.icon-btn {
    width: 44px;
    height: 44px;
  }
  .photo-buttons .icon-btn {
    width: 44px;
    height: 44px;
  }
  .photo-buttons .btn {
    min-height: 44px;
  }
  .topbar {
    height: 66px;
    padding-inline: 20px;
  }
  .content {
    padding: 26px 20px 36px;
  }
  .page-heading {
    align-items: stretch;
    flex-direction: column;
    padding-bottom: 24px;
    margin-bottom: 24px;
    gap: 18px;
  }
  .page-kicker {
    margin-bottom: 18px;
  }
  .page-heading h1 {
    font-size: 37px;
  }
  .page-heading p {
    font-size: 14px;
  }
  .page-heading-action {
    width: 100%;
    padding: 0;
  }
  .page-heading-action .btn {
    width: 100%;
    font-size: 13px;
    padding: 13px;
  }
  .page-heading .btn svg {
    display: block;
  }
  .toolbar {
    flex-wrap: wrap;
    align-items: stretch;
  }
  .search-box {
    max-width: none;
    flex: 1 0 100%;
  }
  .toolbar > select,
  .toolbar > .field {
    flex: 1;
    width: 100%;
    min-width: 0;
  }
  .toolbar select {
    width: 100%;
    font-size: 16px;
  }
  .toolbar > .btn {
    flex-shrink: 0;
  }
  .workspace-hero {
    padding: 20px;
    min-height: 370px;
  }
  .workspace-hero .arena-backdrop {
    object-position: 58% center;
  }
  .workspace-hero-top {
    margin-bottom: 32px;
  }
  .workspace-hero-top > span:first-child {
    font-size: 23px;
  }
  .workspace-hero h1 {
    font-size: 38px;
  }
  .workspace-hero p {
    font-size: 13px;
  }
  .workspace-hero-calendar {
    font-size: 12px;
    padding: 12px 14px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat-top {
    font-size: 11px;
    gap: 6px;
  }
  .stat strong {
    font-size: 26px;
  }
  .stat small {
    font-size: 10px;
  }
  .panel-head {
    padding: 18px;
    flex-wrap: wrap;
  }
  .panel-head h2 {
    font-size: 17px;
  }
  .panel-body {
    padding: 18px;
  }
  .activity-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .activity-card .activity-image img {
    height: 210px;
  }
  .activity-card-actions {
    flex: 1;
  }
  .calendar-tools {
    width: 100%;
    justify-content: space-between;
  }
  .calendar-day {
    min-height: 85px;
    padding: 4px;
  }
  .calendar-weekday {
    padding: 10px 2px;
  }
  .day-event {
    min-height: 44px;
    font-size: 10px;
    white-space: normal;
    padding: 4px 2px;
    border-radius: 3px;
    line-height: 1.4;
  }
  .day-number {
    margin-bottom: 7px;
  }
  .live-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .map-canvas {
    height: 280px;
  }
  .map-legend {
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .form-actions {
    gap: 12px;
  }
  .form-actions > .btn {
    flex: 1;
    white-space: normal;
  }
  .modal,
  .modal.wide {
    width: calc(100vw - 24px);
    max-width: none;
    max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 20px);
  }
  .modal-head,
  .modal-body {
    padding: 18px;
  }
  .modal-head h2 {
    font-size: 23px;
  }
  .modal-head .eyebrow {
    margin-bottom: 6px;
  }
  .activity-facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .activity-popup-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .slideshow-stage {
    height: 220px;
  }
  .slideshow-stage > button {
    min-height: 44px;
    width: 44px;
  }
  .editor-photo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .editor-photo-grid > article > img {
    height: 170px;
  }
  .detail-edit-block {
    padding: 12px;
  }
  .quote-line {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 9px;
    border: 1px solid var(--line);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 14px;
  }
  .quote-line input:first-child {
    grid-column: 1;
  }
  .quote-line input:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }
  .quote-line input:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
  }
  .quote-line button {
    grid-column: 2;
    grid-row: 1;
  }
  .receipt-details {
    grid-template-columns: minmax(0, 1fr);
  }
  .lightbox-image {
    max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 200px);
  }
  .showcase {
    --showcase-gutter: 22px;
  }
  .site-nav {
    min-height: 72px;
  }
  .arena-hero {
    min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom));
    padding: 96px var(--showcase-gutter) 24px;
  }
  .arena-hero .arena-backdrop {
    object-position: 57% center;
  }
  .arena-hero::after {
    background: linear-gradient(90deg, #0a0e1be6, #0a0e1b50),
      linear-gradient(180deg, #080b14b3, transparent 140px),
      linear-gradient(0deg, #0d1018, transparent 30%);
  }
  .arena-hero .hero-copy {
    padding: 65px 0 35px;
  }
  .arena-hero h1 {
    font-size: clamp(28px, 8.8vw, 52px);
    margin-bottom: 25px;
  }
  .arena-hero .hero-copy > .hero-lead {
    font-size: clamp(24px, 7.4vw, 31px);
    line-height: 1.15;
    margin-bottom: 20px;
  }
  .arena-hero .hero-copy > p:not(.hero-lead) {
    font-size: 14px;
    line-height: 1.8;
  }
  .hero-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
  .hero-actions .btn {
    max-width: 100%;
    width: auto;
    font-size: 13px;
  }
  .hero-agenda {
    min-height: 44px;
    justify-content: flex-start;
    font-size: 13px;
  }
  .arena-hero .hero-foot {
    font-size: 8px;
    gap: 12px;
    padding-top: 20px;
  }
  .hero-foot > span {
    max-width: 200px;
    line-height: 1.7;
  }
  .hero-foot a {
    gap: 9px;
  }
  .experience-strip {
    justify-content: flex-start;
    gap: 16px;
    font-size: 8px;
    padding: 22px;
    line-height: 1.8;
  }
  .experience-strip i {
    display: none;
  }
  .site-section {
    padding: 48px 22px;
  }
  .section-head h2,
  .about h2 {
    font-size: 36px;
  }
  .section-head p {
    margin-top: 16px;
  }
  .section-head {
    margin-bottom: 25px;
  }
  .filter-tabs {
    gap: 7px;
  }
  .filter-tab {
    min-height: 44px;
    font-size: 12px;
    padding-inline: 13px;
  }
  .public-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .public-grid .activity-copy {
    padding: 22px;
  }
  .public-grid .activity-image,
  .public-grid .activity-card .activity-image img {
    height: 220px;
  }
  .public-grid .activity-copy h3 {
    font-size: 26px;
  }
  .public-event {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }
  .event-date {
    width: 54px;
    padding-right: 15px;
  }
  .public-event .btn {
    grid-column: 2;
    margin-left: 0;
    justify-self: start;
  }
  .public-event h3 {
    font-size: 20px;
  }
  .about {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .site-footer {
    padding: 28px 22px;
  }
  .site-footer a {
    margin-left: 0;
  }
  .community-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .community-page h1 {
    font-size: 38px;
  }
  .community-page .section-head > .btn {
    width: 100%;
  }
  .rating-picker {
    gap: 4px;
    padding: 9px;
  }
  .rating-picker span {
    font-size: 9px;
  }
  .rating-summary {
    gap: 16px;
  }
  .quote-page {
    padding: 24px 18px;
    margin: 0;
  }
  .quote-page .quote-header {
    flex-wrap: wrap;
    gap: 20px;
  }
  .quote-page img {
    width: 120px;
  }
  .quote-page th,
  .quote-page td {
    padding: 10px 5px;
    font-size: 11px;
  }
}
/* Les tableaux de gestion deviennent des fiches lisibles sur téléphone. */
@media (max-width: 600px) {
  .responsive-table,
  .responsive-table tbody {
    display: block;
    white-space: normal;
  }
  .responsive-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
  }
  .responsive-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
    padding: 20px;
    border-bottom: 1px solid var(--line);
  }
  .responsive-table tr:last-child {
    border: 0;
  }
  .responsive-table td,
  .table-wrap .responsive-table td:first-child {
    display: block;
    border: 0;
    padding: 0;
    font-size: 13px;
    min-width: 0;
  }
  .responsive-table td:first-child {
    grid-column: 1/-1;
  }
  .responsive-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    letter-spacing: 0.02em;
    color: var(--muted);
    margin-bottom: 8px;
  }
  .responsive-table td[data-label="Actions"] {
    align-self: end;
  }
}
@media (min-width: 601px) and (max-width: 760px) {
  .public-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .arena-hero .hero-copy {
    padding-top: 55px;
  }
}
@media (max-width: 1000px) and (max-height: 500px) and (orientation: landscape) {
  .site-nav {
    position: relative;
    top: auto;
    min-height: 60px;
  }
  .site-nav .brand img {
    width: 54px;
    height: 54px;
  }
  .topbar {
    position: relative;
    top: auto;
    height: 60px;
  }
  .arena-hero {
    min-height: 400px;
  }
  .arena-hero .hero-copy {
    padding: 25px 0;
  }
  .arena-hero h1 {
    font-size: clamp(40px, 7.5vw, 67px);
    margin-bottom: 24px;
  }
  .arena-hero .hero-copy > .hero-lead {
    font-size: 28px;
  }
  .hero-actions {
    flex-direction: row;
    align-items: center;
    width: auto;
  }
  .hero-actions .btn {
    width: auto;
  }
  .hero-agenda {
    justify-content: flex-start;
  }
  .page-heading {
    flex-direction: row;
    align-items: flex-end;
  }
  .page-heading-action {
    width: auto;
  }
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .public-grid,
  .activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .modal-head {
    padding: 14px 18px;
  }
  .modal-head h2 {
    font-size: 21px;
  }
  .modal-head .eyebrow {
    display: none;
  }
  .modal-body {
    padding: 18px;
  }
  .slideshow-stage {
    height: 180px;
  }
  .sidebar-note {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  :root {
    --safe-top: 0px;
    --safe-bottom: 0px;
  }
  body {
    padding: 0;
    min-height: 0;
  }
  body::before,
  body::after {
    display: none;
  }
  .quote-page {
    min-height: 0;
  }
}

.sidebar {
  scrollbar-width: thin;
  scrollbar-color: #414e67 transparent;
}
@media (max-width: 1000px) {
  .sidebar {
    scrollbar-width: none;
  }
  .sidebar::-webkit-scrollbar {
    display: none;
  }
}

/* Réservations en attente (staff) : cartes en tête de la page, la plus ancienne
   d’abord. Trait lumineux qui passe, point qui pulse, entrée l’une après l’autre,
   sortie en glissant à la prise en charge. */
.pending-queue {
  margin: 0 0 18px;
}
.pending-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.pending-head h2 {
  margin: 0;
  font:
    900 italic 18px "Archivo",
    "Arial Black",
    sans-serif;
  text-transform: uppercase;
}
.pending-oldest {
  margin-left: auto;
}
.pending-pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 10px var(--yellow);
}
.pending-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  animation: pending-ping 1.8s ease-out infinite;
}
@keyframes pending-ping {
  to {
    opacity: 0;
    transform: scale(3);
  }
}
.pending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
}
.pending-card {
  --i: 0;
  position: relative;
  overflow: hidden;
  padding: 14px 16px;
  border: 1px solid #989bfb44;
  border-radius: 14px;
  background: linear-gradient(160deg, #23243a, var(--panel) 60%);
  box-shadow:
    0 0 0 1px #989bfb1f,
    0 10px 30px #0006,
    0 0 26px #989bfb1f;
  animation: pending-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i) * 70ms);
  transition:
    transform 0.32s ease,
    opacity 0.32s ease,
    border-color 0.2s;
}
.pending-card:hover {
  border-color: #989bfb88;
}
/* Trait lumineux qui balaie le haut de la carte. */
.pending-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: pending-sweep 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.4s);
}
@keyframes pending-sweep {
  to {
    left: 100%;
  }
}
@keyframes pending-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}
.pending-card.is-leaving {
  opacity: 0;
  transform: translateX(30px) scale(0.96);
}
.pending-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}
.pending-wait {
  color: var(--yellow);
  font-weight: 700;
}
.pending-wait.is-late {
  color: var(--red);
}
.pending-card h3 {
  margin: 6px 0 2px;
  font:
    900 italic 17px "Archivo",
    "Arial Black",
    sans-serif;
  text-transform: uppercase;
}
.pending-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.pending-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}
.pending-foot strong {
  color: var(--accent);
  font:
    900 italic 18px "Archivo",
    "Arial Black",
    sans-serif;
}
.pending-foot span {
  display: flex;
  gap: 6px;
}
.pending-more {
  margin-top: 10px;
}
@media (prefers-reduced-motion: reduce) {
  .pending-card,
  .pending-card::before,
  .pending-pulse::after {
    animation: none;
  }
}

/* Notifications : cloche (compteur), panneau des dernières, historique. */
.notif {
  position: relative;
}
.notif-bell {
  position: relative;
}
.notif-bell.is-ringing svg {
  animation: notif-ring 0.9s ease;
  transform-origin: 50% 10%;
}
@keyframes notif-ring {
  15%,
  45%,
  75% {
    transform: rotate(14deg);
  }
  30%,
  60% {
    transform: rotate(-12deg);
  }
}
.notif-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border: 2px solid var(--bg);
  border-radius: 999px;
  background: var(--accent);
  color: #0b0d18;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 15px;
  text-align: center;
  animation: notif-pop 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.notif-count[hidden] {
  display: none;
}
@keyframes notif-pop {
  from {
    transform: scale(0.4);
  }
}
.notif-panel {
  position: absolute;
  z-index: 60;
  top: calc(100% + 10px);
  right: 0;
  width: min(380px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid #989bfb44;
  border-radius: 14px;
  background: linear-gradient(180deg, #20213a, var(--panel) 40%);
  box-shadow:
    0 18px 50px #000a,
    0 0 30px #989bfb1a;
  animation: notif-open 0.18s ease-out;
  text-align: left;
}
.notif-panel[hidden] {
  display: none;
}
@keyframes notif-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
.notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.notif-head strong {
  font:
    900 italic 15px "Archivo",
    "Arial Black",
    sans-serif;
  text-transform: uppercase;
}
.notif-head .text-btn {
  min-height: 0;
  font-size: 12px;
}
.notif-list {
  max-height: min(420px, 60vh);
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}
.notif-history {
  max-height: none;
}
.notif-item {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.15s;
}
.notif-item:hover {
  background: #989bfb10;
}
.notif-item:last-child {
  border-bottom: 0;
}
.notif-item div {
  min-width: 0;
  flex: 1;
}
.notif-item strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}
.notif-item p {
  margin: 2px 0 4px;
  color: #c6c8db;
  font-size: 12.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.notif-item small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.notif-mark {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: transparent;
}
.notif-item.is-unread {
  background: #989bfb0d;
}
.notif-item.is-unread .notif-mark {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.notif-call {
  margin-top: 8px;
}
.notif-empty {
  padding: 22px 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.notif-foot {
  display: block;
  width: 100%;
  padding: 11px;
  border: 0;
  border-top: 1px solid var(--line);
  background: #ffffff05;
  color: var(--accent);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.notif-foot:hover {
  background: #989bfb14;
}

/* Page d’envoi (staff) : choix des destinataires en cartes, aperçu. */
.broadcast-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 16px;
  align-items: start;
}
.broadcast-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.broadcast-audience {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.broadcast-audience legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.audience-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  cursor: pointer;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.audience-card input {
  position: absolute;
  opacity: 0;
}
.audience-card:has(input:checked) {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent) inset,
    0 0 18px #989bfb26;
}
.audience-card:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.audience-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #989bfb1f;
  color: var(--accent);
}
.audience-card strong {
  display: block;
  font-size: 13px;
}
.audience-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.audience-count {
  margin-left: auto;
  color: var(--accent);
  font-size: 11px;
  white-space: nowrap;
}
.broadcast-preview {
  position: sticky;
  top: 90px;
  padding: 16px;
}
.broadcast-preview .notif-list {
  margin-top: 10px;
  border: 1px solid #989bfb44;
  border-radius: 12px;
}
#broadcast-target[hidden] {
  display: none;
}
@media (max-width: 900px) {
  .broadcast-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .broadcast-preview {
    position: static;
  }
}
@media (prefers-reduced-motion: reduce) {
  .notif-bell.is-ringing svg,
  .notif-count,
  .notif-panel {
    animation: none;
  }
}
/* Le panneau de la cloche passe au-dessus de l’en-tête des pages. Sur tablette et
   téléphone (≤ 1000 px), la barre reste collante sous la barre d’état (--safe-top) :
   la passer en « relative » la décalerait sur le titre (encoche de l’iPhone). */
.topbar {
  z-index: 40;
}
@media (min-width: 1001px) {
  .topbar {
    position: relative;
  }
}

/* Vitrine sur téléphone et petits écrans (style D3) : barre d’onglets en bas, panneau
   « Menu » par le bas (compte + autres pages en tuiles). Au-dessus de la barre
   d’accueil du téléphone (--safe-bottom), sous la barre d’état remplie (body::before). */
.tabbar,
.tab-sheet-wrap {
  display: none;
}
@media (max-width: 1000px) {
  body.has-tabbar {
    padding-bottom: calc(var(--safe-bottom) + 74px) !important;
  }
  body.has-tabbar .site-menu {
    display: none !important;
  }
  body.has-tabbar .site-nav {
    grid-template-columns: 1fr;
    min-height: 60px;
  }
  .tabbar {
    position: fixed;
    z-index: 85;
    inset-inline: 0;
    bottom: var(--safe-bottom);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    height: 66px;
    padding: 0 6px 4px;
    border-top: 1px solid #989bfb44;
    background: linear-gradient(#12141ef2, #0b0c13);
    backdrop-filter: blur(12px);
  }
  .tab {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 4px;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: #8f91ad;
    font: inherit;
    font-size: 10.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .tab-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 30px;
    border-radius: 10px;
    transition:
      background 0.2s,
      color 0.2s;
  }
  .tab.is-on {
    color: #fff;
  }
  .tab.is-on .tab-icon {
    background: #989bfb26;
    color: var(--accent);
  }
  /* Trait lumineux au-dessus de l’onglet actif. */
  .tab.is-on::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 26%;
    right: 26%;
    height: 2px;
    border-radius: 0 0 2px 2px;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
  }
  .tab-menu.is-open .tab-icon {
    background: var(--accent);
    color: #0b0d18;
  }
  .tab-count {
    position: absolute;
    top: -4px;
    left: calc(50% + 4px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 2px #0b0c13;
    color: #0b0d18;
    font-size: 9.5px;
    font-style: normal;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
  }
  .tab-count[hidden] {
    display: none;
  }
  .tab:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -4px;
    border-radius: 12px;
  }
  .tab-sheet-wrap {
    position: fixed;
    z-index: 80;
    inset: 0 0 calc(var(--safe-bottom) + 66px);
    display: block;
  }
  .tab-sheet-wrap[hidden] {
    display: none;
  }
  .tab-scrim {
    position: absolute;
    inset: 0;
    background: #05060cb0;
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.25s;
  }
  .tab-sheet {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    max-height: calc(100% - var(--safe-top) - 20px);
    overflow-y: auto;
    padding: 10px 16px 16px;
    border: 1px solid #989bfb44;
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    background: #141624;
    box-shadow: 0 -20px 40px #000a;
    transform: translateY(100%);
    transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .tab-sheet-wrap.is-open .tab-scrim {
    opacity: 1;
  }
  .tab-sheet-wrap.is-open .tab-sheet {
    transform: none;
  }
  .tab-grab {
    display: block;
    width: 42px;
    height: 5px;
    margin: 0 auto 12px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: #ffffff33;
    cursor: pointer;
  }
  .tab-me {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, #989bfb33, #ffffff08);
    color: var(--text);
    text-decoration: none;
  }
  .tab-me > span:nth-child(2) {
    flex: 1;
    line-height: 1.25;
  }
  .tab-me strong {
    display: block;
    font-size: 14px;
  }
  .tab-me small {
    color: #b8badd;
    font-size: 11px;
  }
  .tab-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: -4px 0 12px;
    padding: 10px 12px;
    border: 1px solid #f48b9a44;
    border-radius: 12px;
    background: transparent;
    color: #f8a8b4;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
  }
  .tab-avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    background: #23254a;
    font-size: 12px;
    font-weight: 800;
  }
  .tab-auth {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
  }
  .tab-auth .btn {
    flex: 1;
    min-height: 44px;
  }
  .tab-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .tab-tile {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 6px;
    min-height: 78px;
    padding: 8px 4px;
    border: 1px solid #ffffff10;
    border-radius: 14px;
    background: #1c1f30;
    color: var(--text);
    font-size: 11.5px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
  }
  .tab-tile span {
    color: var(--accent);
  }
  .tab-tile.is-on {
    border-color: var(--accent);
    background: linear-gradient(150deg, #989bfb40, #1c1f30);
  }
  .tab-tile:active {
    transform: scale(0.97);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tab-sheet,
  .tab-scrim {
    transition: none;
  }
}

/* Téléphone : la cloche des notifications en haut à droite (compte connecté), le reste
   du compte passe dans le panneau « Menu » de la barre d’onglets. */
@media (max-width: 1000px) {
  body.has-tabbar .site-nav {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  body.has-tabbar #site-account {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding: 0;
  }
  body.has-tabbar #site-account > :not(#site-bell) {
    display: none !important;
  }
  body.has-tabbar #site-bell .notif-panel {
    position: fixed;
    top: calc(var(--safe-top) + 64px);
    right: 12px;
    left: 12px;
    width: auto;
  }
}
/* Accueil sur téléphone : textes plus aérés, boutons plus bas. */
@media (max-width: 600px) {
  .site-hero:not(.page-hero).arena-hero h1 {
    margin-bottom: 44px;
  }
  .site-hero:not(.page-hero).arena-hero .hero-copy > .hero-lead {
    margin-bottom: 34px;
  }
  .site-hero:not(.page-hero).arena-hero .hero-copy > p:not(.hero-lead) {
    margin-bottom: 0;
  }
  .site-hero:not(.page-hero) .hero-actions {
    margin-top: 96px;
    gap: 26px;
  }
}
.tab-avatar .avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.tab-avatar:has(img) {
  overflow: hidden;
  padding: 0;
}

/* Menu : pastille du nombre de réservations en attente. */
/* Pastilles du menu (setNavCounts) : à droite du lien, côte à côte. */
.nav-link .nav-counts {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link .nav-counts[hidden] {
  display: none;
}
/* En entretien : pastille en contour ; réponse à lire : point rouge. */
.nav-link .nav-count.is-interview {
  background: transparent;
  box-shadow: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  line-height: 18px;
}
.nav-link .nav-count.is-alert {
  min-width: 10px;
  width: 10px;
  height: 10px;
  padding: 0;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}
.nav-link .nav-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px #989bfb66;
  color: #0b0d18;
  font-size: 11px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}
.nav-link .nav-count[hidden] {
  display: none;
}

/* Réservations en cours : prises en charge, renforts, en tête jusqu’à la clôture. */
.pending-pulse.is-live {
  background: var(--green, #52d6a0);
  box-shadow: 0 0 10px var(--green, #52d6a0);
}
.pending-pulse.is-live::after {
  border-color: var(--green, #52d6a0);
}
.active-card {
  border-color: #52d6a044;
  box-shadow:
    0 0 0 1px #52d6a01a,
    0 10px 30px #0006;
}
.active-card::before {
  background: linear-gradient(90deg, transparent, #52d6a0, transparent);
}
.active-card.is-mine {
  border-color: #989bfb99;
  box-shadow:
    0 0 0 1px #989bfb33,
    0 10px 30px #0006,
    0 0 26px #989bfb2a;
}
.active-when {
  color: var(--muted);
}
.crew {
  display: flex;
  align-items: center;
  margin-top: 10px;
}
.crew-member {
  display: inline-flex;
  margin-left: -6px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--panel);
}
.crew-member:first-child {
  margin-left: 0;
}
.crew-member.lead {
  box-shadow:
    0 0 0 2px var(--panel),
    0 0 0 3px var(--accent);
}
.crew-member .avatar {
  width: 26px;
  height: 26px;
  font-size: 10px;
}
.crew small {
  margin-left: 10px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
}
.pending-foot > span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Mot de passe oublié : choix du canal (mail ou SMS). */
.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.auth-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.auth-switch button[aria-checked="true"] {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent);
}
