/* 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: "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-size: clamp(26px, 3vw, 42px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.035em;
  color: white;
  margin-bottom: 22px;
  max-width: 600px;
}
.arena-hero .hero-copy > p:not(.hero-lead) {
  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-panel {
  right: 20px;
  bottom: calc(var(--safe-bottom) + 20px);
  max-width: calc(100vw - 40px);
  max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 30px);
  overflow-y: auto;
  background: #111a2bed;
}
.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) {
  :root {
    --safe-top: max(50px, env(safe-area-inset-top, 0px));
    --safe-bottom: max(20px, env(safe-area-inset-bottom, 0px));
    --page-gutter: 20px;
  }
  /* 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: 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;
  }
  .hud-panel {
    right: 16px;
    bottom: calc(var(--safe-bottom) + 16px);
    width: calc(100vw - 32px);
    max-width: 380px;
  }
  .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: 16px;
  }
  .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;
  }
}
