/* Pages Avis / Galerie et fenêtres plein cadre de la vitrine, dans le langage de l’accueil :
   titre Arial Black italique en dégradé, photo assombrie à gauche, micro-libellés espacés,
   filets fins, flèches cerclées. Téléphone : zones réservées --safe-top / --safe-bottom (ui.css). */
.hero-eyebrow,
.micro-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.display-number,
.sheet-title {
  font-family: "Arial Black", Arial, sans-serif;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.045em;
  line-height: 1;
  color: #f7f7ff;
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .display-number,
  .sheet-title {
    background: linear-gradient(105deg, #fff 4%, var(--accent) 48%, #fff 96%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
@media (forced-colors: active) {
  .display-number,
  .sheet-title {
    background: none;
    color: CanvasText;
  }
}

/* ——— Bandeau des pages intérieures : photo et titre seuls, plus compact que l’accueil ——— */
.page-hero {
  min-height: min(440px, 62dvh);
  justify-content: flex-end;
}
.page-hero .hero-copy {
  padding: 0 0 40px;
}
.arena-hero.page-hero h1 {
  margin: 0;
  font-size: clamp(40px, 4.6vw, 68px);
}
/* Sous-titre des bandeaux : petites capitales espacées, trait violet. */
.arena-hero .hero-copy > p.page-subtitle {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 0;
  max-width: none;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c6cbdc;
}
.page-subtitle::before {
  content: "";
  flex: none;
  width: 32px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px #989bfb;
}
.page-subtitle:empty {
  display: none;
}
.list-actions {
  display: flex;
  align-items: center;
  gap: 8px 26px;
  flex-wrap: wrap;
}
.list-actions .link-arrow {
  justify-self: auto;
}

/* ——— Contenu ——— */
.community-content {
  padding: 60px var(--showcase-gutter) 70px;
  scroll-margin-top: calc(var(--safe-top) + 20px);
}
.list-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.list-head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* Avis : tableau de score */
.rating-board {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 60px;
}
.rating-score {
  display: flex;
  align-items: flex-end;
  gap: 22px;
}
.rating-score .display-number {
  font-size: clamp(64px, 6vw, 96px);
  padding-right: 0.08em;
}
.rating-score > div {
  padding-bottom: 16px;
  display: grid;
  gap: 8px;
}
.rating-score .stars,
.review-item .stars {
  color: var(--yellow);
  letter-spacing: 4px;
  font-size: 20px;
}
.micro {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.micro.accent {
  color: var(--accent);
}
.rating-bars {
  display: grid;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.rating-bars > div {
  display: grid;
  grid-template-columns: 34px 1fr 28px;
  gap: 12px;
  align-items: center;
}
.rating-bars .bar {
  height: 2px;
  background: var(--line);
}
.rating-bars .bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  box-shadow: 0 0 8px #989bfb88;
}
.rating-mine {
  display: grid;
  gap: 12px;
  padding-left: 26px;
  border-left: 1px solid var(--line);
}
.mine-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.link-arrow {
  justify-self: start;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #e2e4ef;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}
.link-arrow:hover {
  color: var(--accent);
}
.community .badge {
  --badge-tone: #c3c6ff;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--badge-tone) 60%, transparent);
  border-radius: 3px;
  color: var(--badge-tone);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
}
.community .badge.approved {
  --badge-tone: var(--green);
}
.community .badge.pending {
  --badge-tone: var(--yellow);
}
.community .badge.rejected {
  --badge-tone: var(--red);
}
.review-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  column-gap: 50px;
}
.review-item {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.review-item blockquote {
  margin: 0;
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-author strong {
  display: block;
  font-size: 14px;
}
.review-author small {
  color: var(--muted);
  font-size: 12px;
}

/* Galerie : mur de photos */
.photo-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 14px;
}
.wall-tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--panel);
}
.wall-tile.big {
  grid-column: span 2;
  grid-row: span 2;
}
.wall-tile.tall {
  grid-row: span 2;
}
.wall-tile.wide {
  grid-column: span 2;
}
.wall-tile .photo-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.wall-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.wall-tile .photo-open:hover img,
.wall-tile .photo-open:focus-visible img {
  transform: scale(1.04);
}
.wall-tile figcaption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 4px;
  padding: 42px 18px 16px;
  background: linear-gradient(0deg, #0a0e1bee, transparent);
  pointer-events: none;
}
.wall-tile figcaption strong {
  font-size: 15px;
}
.wall-tile.big figcaption strong {
  font-size: 19px;
}
.wall-tile figcaption small {
  color: #c6cbdc;
  font-size: 12px;
}
.photo-wall.mine {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-auto-rows: 240px;
}
.photo-wall.mine figcaption {
  pointer-events: auto;
}

/* Pagination en micro-libellés */
.micro-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 34px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.micro-pager button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.micro-pager button:hover:not(:disabled) {
  color: #fff;
}
.micro-pager button:disabled {
  opacity: 0.3;
  cursor: default;
}
.micro-pager strong {
  color: #fff;
}
.community .site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}
.community .site-footer {
  align-items: center;
}
.community .site-footer a {
  order: 2;
  margin-left: auto;
}
.community .site-footer small {
  width: auto;
}
.community .site-footer small {
  font-size: 10px;
  letter-spacing: 0.13em;
}

/* ——— Fenêtre unique de la vitrine : photo + panneau, hauteur selon le contenu ——— */
body.sheet-open {
  overflow: hidden;
}
dialog.card-sheet {
  box-sizing: border-box;
  inset: var(--safe-top) 0 var(--safe-bottom);
  width: min(var(--card-width), calc(100vw - 28px));
  height: fit-content;
  max-width: none;
  max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 28px);
  margin: auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, var(--art-share)) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #10141e;
  color: var(--text);
  box-shadow: 0 30px 100px #000c;
  overflow: hidden;
  --card-width: 880px;
  --art-share: 1fr;
}
dialog.card-sheet.size-lg {
  --card-width: 1180px;
  --art-share: 0.75fr;
}
dialog.card-sheet::backdrop {
  background: #050608c4;
  backdrop-filter: blur(6px);
}
.sheet-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 460px;
}
.sheet-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #0a0e1bb3 0%, transparent 28%),
    linear-gradient(0deg, #0a0e1bf2 8%, #0a0e1b66 62%, #0a0e1b30);
}
.sheet-art .arena-backdrop {
  z-index: -2;
}
.sheet-art-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 28px 32px 32px;
}
/* Le PNG est carré (500 × 500) avec le logo en bande centrale : on recadre sur cette bande. */
.sheet-logo {
  align-self: flex-start;
  width: 150px;
  height: 50px;
  object-fit: cover;
}
.sheet-art-bottom {
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.sheet-title {
  margin: 0;
  width: fit-content;
  max-width: 100%;
  padding-right: 0.1em;
  font-size: clamp(36px, 4vw, 52px);
  text-transform: uppercase;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.sheet-art-text {
  color: #ccd1df;
  font-size: 14px;
  line-height: 1.5;
}
.sheet-facts:empty {
  padding-top: 0;
}
.sheet-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding-top: 14px;
  border-top: 1px solid #ffffff26;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c6cbdc;
}
.sheet-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 0;
  max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 30px);
  padding: 30px 36px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-left: 1px solid var(--line);
  scrollbar-width: thin;
}
.sheet-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.sheet-panel-head .micro-label {
  color: #8a92a6;
}
.sheet-close {
  flex: none;
  width: 44px;
  height: 44px;
  margin: -10px -10px -10px auto;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #c6cbdc;
  cursor: pointer;
  transition:
    color 0.2s,
    transform 0.2s;
}
.sheet-close:hover {
  color: #fff;
  transform: rotate(90deg);
}
.sheet-close svg {
  stroke-width: 1.4;
}
.sheet-content {
  display: grid;
  gap: 18px;
}
.sheet-content > p {
  margin: 0;
}
.sheet .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.sheet .field > span,
.sheet legend {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c0c4d6;
}
.sheet .field input,
.sheet .field textarea {
  font-size: 16px;
  padding-inline: 0;
}
.auth-sheet .field:has(input[name="character_id"]),
.auth-sheet .field:has(input[name="password"]) {
  grid-column: 1 / -1;
}
.sheet-footer {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}
.sheet-footer small {
  color: #8a92a6;
  font-size: 12px;
}
.sheet-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.sheet-total strong {
  font-family: "Arial Black", Arial, sans-serif;
  font-style: italic;
  font-size: 30px;
  letter-spacing: 0.03em;
  color: #fff;
}
/* Bouton d’envoi : pilule à contour violet, flèche dans un rond plein. */
.sheet-submit {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 8px 0 24px;
  border: 1px solid var(--accent);
  border-radius: 40px;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 0 18px #989bfb44;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.sheet-submit:hover:not(:disabled) {
  box-shadow: 0 0 26px #989bfb88;
}
.sheet-submit span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #111529;
  transition: transform 0.2s;
}
.sheet-submit:hover span {
  transform: translateX(3px);
}
.sheet-tabs {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.sheet-tabs button,
.micro-tab {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: #8a92a6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.sheet-tabs button[aria-selected="true"],
.micro-tab[aria-pressed="true"] {
  color: #fff;
  border-bottom-color: var(--accent);
}
.sheet-tabs button:hover,
.micro-tab:hover {
  color: #fff;
}
/* Contenus existants rendus dans la fenêtre (fiche activité, profil, avis, photo). */
.sheet .activity-popup > .eyebrow,
.sheet .profile-summary {
  display: none;
}
.sheet .lightbox-image {
  display: none;
}
.sheet .rating-picker {
  border: 0;
  padding: 0;
  margin: 0;
}
.sheet .text-btn {
  justify-self: start;
}
.sheet .form-actions {
  justify-content: stretch;
}
/* Fiche « Plus d’infos » : albums en onglets soulignés, réservation en pilule. */
.sheet .album-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
  border-bottom: 1px solid var(--line);
}
.sheet .album-tabs .filter-tab {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  color: #8a92a6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sheet .album-tabs .filter-tab.active {
  color: #fff;
  border-bottom-color: var(--accent);
}
.sheet .album-tabs {
  margin: 0;
}
.sheet .album-tabs .filter-tab {
  min-height: 38px;
}
.sheet #album-description:empty {
  display: none;
}
.sheet .slideshow-stage {
  height: clamp(220px, 34vh, 330px);
  border-radius: 8px;
  background: #0a0d15;
}
.sheet .slideshow-stage > img {
  object-fit: cover;
}
/* Flèches : un simple chevron sur la photo, sans rond ni contour. */
.slideshow-stage > button {
  display: grid;
  place-items: center;
  top: 0;
  bottom: 0;
  width: 56px;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  filter: drop-shadow(0 1px 4px #000c);
  opacity: 0.8;
  cursor: pointer;
}
.slideshow-stage > button:hover:not(:disabled) {
  opacity: 1;
  background: transparent;
}
.slideshow-stage > button:disabled {
  display: none;
}
.slide-prev {
  left: 0;
}
.slide-next {
  right: 0;
}
.sheet .slide-caption {
  padding: 8px 0 0;
}
.sheet .slide-caption p,
.sheet .slide-caption span {
  font-size: 12px;
  color: #a1a9bb;
}
.sheet .slide-thumbs {
  padding: 4px 0 2px;
  max-height: none;
}
.sheet .slide-thumbs button {
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: none;
  opacity: 0.55;
}
.sheet .slide-thumbs button.active {
  border-color: var(--accent);
  opacity: 1;
}
.sheet .slide-thumbs img {
  width: 64px;
  height: 42px;
}
.sheet .activity-popup .activity-intro {
  margin: 14px 0 12px;
  line-height: 1.7;
}
/* Rubriques en colonnes à filets fins plutôt qu’en encadrés. */
.sheet .activity-facts {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px 22px;
}
.sheet .activity-facts section {
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
}
.sheet .activity-facts h3 {
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.sheet .activity-facts p {
  font-size: 13px;
  line-height: 1.6;
}
.sheet .activity-popup-footer {
  margin-top: 16px;
}
.size-lg .sheet-panel {
  position: relative;
  gap: 14px;
  padding-top: 22px;
}
/* Grande fenêtre : pas de ligne d’en-tête, la croix flotte en haut à droite. */
.size-lg .sheet-panel-head {
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 2;
}
.size-lg .sheet-panel-head .micro-label {
  display: none;
}
.size-lg .album-tabs {
  padding-right: 48px;
}
dialog.card-sheet:focus {
  outline: none;
}
.sheet .activity-intro {
  font-size: 15px;
  line-height: 1.7;
  color: #ccd1df;
}
.sheet .activity-popup-footer {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.sheet .activity-popup-footer strong {
  font-family: "Arial Black", Arial, sans-serif;
  font-style: italic;
  font-size: 24px;
  letter-spacing: 0.03em;
}
.sheet .activity-popup-footer .btn.primary {
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--accent);
  border-radius: 40px;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 0 18px #989bfb44;
}
.sheet .activity-popup-footer .btn.primary:hover {
  box-shadow: 0 0 26px #989bfb88;
}

/* ——— Cartes d’activité ——— */
.micro-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 30px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.xp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 18px;
}
.xp-card {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.xp-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #0a0e1bf7 30%, #0a0e1b99 62%, #0a0e1b26);
}
.xp-card:hover,
.xp-card:focus-within {
  border-color: #989bfb88;
  box-shadow: 0 0 24px #989bfb33;
}
.xp-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.xp-card:hover .xp-image {
  transform: scale(1.05);
}
.xp-copy {
  margin-top: auto;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 26px;
}
.xp-title {
  margin: 0;
  width: fit-content;
  max-width: 100%;
  padding-right: 0.1em;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(28px, 2.6vw, 36px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  color: #f7f7ff;
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .xp-title {
    background: linear-gradient(105deg, #fff 4%, var(--accent) 48%, #fff 96%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.xp-copy p {
  margin: 0;
  color: #ccd1df;
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.xp-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding-top: 12px;
  border-top: 1px solid #ffffff26;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c6cbdc;
}
.xp-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.xp-book {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.circle-arrow {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px #989bfb66;
  transition: transform 0.2s;
}
.xp-book:hover {
  color: var(--accent);
}
.xp-book:hover .circle-arrow {
  transform: translateX(3px);
}
.showcase-home #activities .section-head .hero-agenda {
  align-self: flex-end;
}

/* ——— Tablette ——— */
@media (max-width: 1000px) {
  .rating-board {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .rating-mine {
    grid-column: 1 / -1;
    padding: 20px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .photo-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 200px;
  }
  dialog.card-sheet.size-lg {
    --art-share: 0.8fr;
  }
}

/* ——— Téléphone portrait (414 × 904, zone sûre 414 × 834) ——— */
@media (max-width: 600px) {
  .page-hero {
    min-height: 300px;
  }
  .page-hero .hero-copy {
    padding: 0 0 28px;
  }
  .arena-hero.page-hero h1 {
    font-size: clamp(32px, 10vw, 44px);
  }
  .arena-hero .hero-copy > p.page-subtitle {
    font-size: 10px;
    gap: 10px;
    white-space: normal;
  }
  .page-subtitle::before {
    width: 20px;
  }
  .community-content {
    padding: 40px 22px 50px;
  }
  .rating-board {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    margin-bottom: 40px;
  }
  .rating-score .display-number {
    font-size: 64px;
  }
  .review-item blockquote {
    font-size: 18px;
  }
  .photo-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 150px;
    gap: 8px;
  }
  .wall-tile figcaption {
    padding: 30px 10px 10px;
  }
  .wall-tile figcaption small {
    display: none;
  }
  .wall-tile figcaption strong,
  .wall-tile.big figcaption strong {
    font-size: 13px;
  }
  .list-head h2 {
    font-size: 22px;
  }
  .micro-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: -22px;
    padding-inline: 22px;
  }
  .micro-tab {
    flex: none;
  }
  .xp-card {
    min-height: 440px;
  }
  .xp-copy {
    padding: 20px;
  }

  /* Croix toujours visible, sur le bandeau photo, sous la zone réservée du haut. */
  .sheet-close {
    position: fixed;
    top: calc(var(--safe-top) + 8px);
    right: 10px;
    z-index: 6;
    margin: 0;
    color: #fff;
    filter: drop-shadow(0 1px 4px #000c);
  }
  .size-lg .album-tabs {
    padding-right: 0;
  }
  /* Fenêtre plein cadre dans la zone sûre : photo en bandeau, envoi toujours visible. */
  dialog.card-sheet {
    width: 100vw;
    height: calc(100dvh - var(--safe-top) - var(--safe-bottom));
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .sheet-art {
    min-height: 0;
  }
  .sheet-art-copy {
    position: relative;
    inset: auto;
    min-height: 214px;
    padding: 14px 22px 16px;
  }
  .sheet-logo {
    width: 114px;
    height: 38px;
  }
  .sheet-title {
    font-size: clamp(30px, 10vw, 42px);
  }
  .sheet-art-text {
    display: none;
  }
  .sheet-facts {
    font-size: 9px;
    padding-top: 10px;
  }
  .sheet-panel {
    max-height: none;
    padding: 16px 22px 0;
    gap: 16px;
    border-left: 0;
  }
  .sheet .form-grid {
    gap: 18px 16px;
  }
  .sheet-footer {
    position: sticky;
    bottom: 0;
    margin-inline: -22px;
    padding: 12px 22px 14px;
    background: #10141e;
    box-shadow: 0 -12px 24px #10141e;
  }
}

/* ——— Téléphone paysage (904 × 414) : côte à côte, panneau défilant ——— */
@media (max-width: 1000px) and (max-height: 500px) and (orientation: landscape) {
  .page-hero {
    min-height: 0;
  }
  .rating-board {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .photo-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 150px;
  }
  .xp-card {
    min-height: 380px;
  }
  dialog.card-sheet,
  dialog.card-sheet.size-lg {
    width: 100vw;
    height: calc(100dvh - var(--safe-top) - var(--safe-bottom));
    max-height: none;
    margin: 0;
    border-radius: 0;
    --art-share: 0.62fr;
  }
  .sheet-art {
    min-height: 0;
  }
  .sheet-art-copy {
    padding: 14px 18px;
  }
  .sheet-logo {
    width: 96px;
    height: 32px;
  }
  .sheet-title {
    font-size: clamp(26px, 4.5vw, 38px);
  }
  .sheet-art-text {
    display: none;
  }
  .sheet-panel {
    max-height: none;
    padding: 12px 22px 0;
    gap: 12px;
  }
  .sheet .form-grid {
    gap: 12px 18px;
  }
  .sheet-footer {
    position: sticky;
    bottom: 0;
    padding: 8px 0 10px;
    background: #10141e;
  }
  .sheet-footer small {
    display: none;
  }
  .sheet-submit {
    min-height: 46px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wall-tile img,
  .xp-image,
  .sheet-submit span,
  .circle-arrow {
    transition: none;
  }
}

/* ——— Agenda : affiches à venir et planning de la semaine ——— */
.posters-section {
  padding-bottom: 0;
}
.poster-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 240px);
  gap: 18px;
  margin-top: 22px;
  padding-bottom: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.poster {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
}
.poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    transform 0.3s;
}
.poster:hover img,
.poster:focus-visible img {
  border-color: #989bfb88;
  box-shadow: 0 0 24px #989bfb44;
  transform: translateY(-3px);
}
.poster-date {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.poster strong {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.week-head {
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.week-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.week-nav button:not(.micro-tab) {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #c6cbdc;
  cursor: pointer;
}
.week-nav button:not(.micro-tab):hover {
  color: #fff;
}
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.week-day {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 260px;
  padding: 16px 10px 20px;
  border-right: 1px solid var(--line);
}
.week-day:last-child {
  border-right: 0;
}
.week-day header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.week-day header span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.week-day header strong {
  font-family: "Arial Black", Arial, sans-serif;
  font-style: italic;
  font-size: 26px;
  color: #fff;
}
.week-day.today header span,
.week-day.today header strong {
  color: var(--accent);
}
.week-day.today {
  background: linear-gradient(180deg, #989bfb14, transparent 60%);
}
.week-event {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 10px 10px 12px;
  border: 0;
  border-left: 2px solid var(--accent);
  border-radius: 0 6px 6px 0;
  background: #161b27;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}
.week-event:hover,
.week-event:focus-visible {
  background: #1f2636;
}
.week-event time {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
.week-event strong {
  font-size: 13px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
.week-event small {
  color: var(--muted);
  font-size: 11px;
}
.week-empty {
  margin: 0;
  color: #4a5269;
}
.event-description {
  white-space: pre-wrap;
  color: #ccd1df;
  line-height: 1.7;
}
.event-sheet.has-poster .sheet-art .arena-backdrop {
  object-position: center top;
}
@media (max-width: 1000px) {
  .week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .week-day {
    min-height: 0;
    border-bottom: 1px solid var(--line);
  }
  .week-day:nth-child(2n) {
    border-right: 0;
  }
}
@media (max-width: 600px) {
  .week-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .week-day {
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 14px;
    padding: 14px 0;
    border-right: 0;
  }
  .week-day header {
    grid-row: span 6;
    flex-direction: column;
    gap: 0;
  }
  .week-day.today {
    background: none;
  }
  .poster-row {
    grid-auto-columns: 62%;
  }
}
.link-arrow.danger {
  color: var(--red);
}
.link-arrow.danger:hover {
  color: #ffb3bd;
}

/* ——— Stand de tir ——— */
.range-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 50px;
  align-items: start;
}
.range-about {
  display: grid;
  gap: 22px;
}
.range-about > p {
  margin: 0;
  color: #ccd1df;
  font-size: 16px;
  line-height: 1.7;
}
.range-lanes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.range-lanes li {
  padding: 6px 12px;
  border: 1px solid #989bfb55;
  border-radius: 3px;
  color: #c3c6ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.range-facts {
  display: grid;
  margin: 0;
}
.range-facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.range-facts div:last-child {
  border-bottom: 1px solid var(--line);
}
.range-facts dt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.range-facts dd {
  margin: 0;
  font-weight: 600;
}
.range-book {
  justify-self: start;
  min-width: 280px;
}
.range-plan {
  margin: 0;
  display: grid;
  gap: 10px;
}
.range-plan img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.range-plan figcaption {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.weapon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: 16px;
  margin-top: 22px;
}
.weapon-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 200px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0d15;
}
/* Photos d’armes en bandeau large : affichées entières, au-dessus du texte. */
.weapon-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  padding: 10px 18px 70px;
  object-fit: contain;
  object-position: center top;
}
.weapon-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #0a0e1bf2 18%, transparent 55%);
}
.weapon-card > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 20px 22px;
  width: 100%;
}
.weapon-card strong {
  font-family: "Arial Black", Arial, sans-serif;
  font-style: italic;
  font-size: 22px;
  color: #fff;
}
.weapon-card strong small {
  font-family: Inter, system-ui, sans-serif;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
.period-tabs {
  display: flex;
  gap: 22px;
}
.lane-tabs {
  margin-top: 6px;
}
.ranking {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ranking li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) repeat(3, 110px) 110px;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.ranking.compact li {
  grid-template-columns: minmax(0, 1fr) repeat(2, 110px) 110px;
}
.ranking .rank {
  font-family: "Arial Black", Arial, sans-serif;
  font-style: italic;
  font-size: 26px;
  color: #59617a;
}
.ranking li.podium .rank {
  background: linear-gradient(105deg, #fff 4%, var(--accent) 48%, #fff 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 34px;
}
.ranking .shooter {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.ranking .shooter strong {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.ranking .shooter small,
.ranking .stat-cell small {
  color: var(--muted);
  font-size: 11px;
}
.ranking .stat-cell {
  display: grid;
  gap: 2px;
  font-weight: 600;
}
.ranking .stat-cell small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ranking .points {
  text-align: right;
  font-family: "Arial Black", Arial, sans-serif;
  font-style: italic;
  font-size: 24px;
  color: #fff;
}
.ranking .points small {
  margin-left: 4px;
  font-family: Inter, system-ui, sans-serif;
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}
.my-best {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin: 22px 0 6px;
}
.my-best > div {
  display: grid;
  gap: 4px;
}
.my-best strong {
  font-family: "Arial Black", Arial, sans-serif;
  font-style: italic;
  font-size: 30px;
}
.my-best small {
  color: var(--muted);
  font-size: 12px;
}
.range-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.range-photos img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.range-team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.range-team article {
  display: grid;
  justify-items: start;
  gap: 6px;
}
.range-team img,
.range-team .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}
.range-team small {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
/* Réservation au stand : lignes arme + boîtes. */
.weapon-lines {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}
.weapon-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px 36px;
  gap: 12px;
  align-items: end;
}
.line-remove {
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: #c6cbdc;
  cursor: pointer;
}
.line-remove:disabled {
  opacity: 0.25;
  cursor: default;
}
@media (max-width: 1000px) {
  .range-intro {
    grid-template-columns: minmax(0, 1fr);
  }
  .ranking li {
    grid-template-columns: 48px minmax(0, 1fr) 90px 90px;
  }
  .ranking li .stat-cell:nth-of-type(n + 4),
  .ranking li .stat-cell:last-of-type {
    display: none;
  }
}
@media (max-width: 600px) {
  .range-photos {
    grid-template-columns: minmax(0, 1fr);
  }
  .range-photos img {
    height: 200px;
  }
  .ranking li,
  .ranking.compact li {
    grid-template-columns: 40px minmax(0, 1fr) 80px;
  }
  .ranking.compact li {
    grid-template-columns: minmax(0, 1fr) 80px;
  }
  .ranking .stat-cell {
    display: none;
  }
  .ranking .rank {
    font-size: 20px;
  }
  .ranking li.podium .rank {
    font-size: 24px;
  }
  .range-book {
    justify-self: stretch;
    min-width: 0;
  }
  .period-tabs {
    gap: 16px;
  }
}

/* ——— Maze Airlines ——— */
.flight-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: end;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #989bfb14, transparent 60%), #0b0e17;
}
.flight-swap {
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--accent);
  cursor: pointer;
}
.flight-swap:hover {
  color: #fff;
}
.flight-price {
  display: grid;
  gap: 4px;
  min-width: 150px;
}
.flight-price strong {
  font-family: "Arial Black", Arial, sans-serif;
  font-style: italic;
  font-size: 20px;
  white-space: nowrap;
}
.flight-search .sheet-submit {
  min-width: 220px;
}
.route-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  margin-top: 22px;
}
.route-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0e17;
  overflow: hidden;
}
.route-group header {
  display: grid;
  gap: 2px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}
.route-code {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.route-group h3 {
  margin: 0;
  font-family: "Arial Black", Arial, sans-serif;
  font-style: italic;
  font-size: 20px;
  text-transform: uppercase;
}
.route-group ul {
  margin: 0;
  padding: 6px 0;
  list-style: none;
}
.route-group button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 20px;
  border: 0;
  background: none;
  color: #e7e9f2;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.route-group button:hover {
  background: #989bfb14;
}
.route-to {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.route-to svg {
  color: var(--accent);
}
.route-to small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
}
.route-group strong {
  white-space: nowrap;
}
.fleet-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.fleet-grid .weapon-card img {
  padding: 0;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 1000px) {
  .flight-search {
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  }
  .flight-price {
    grid-column: 1 / 3;
  }
  .fleet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .flight-search {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
  }
  .flight-swap {
    justify-self: center;
    transform: rotate(90deg);
    height: 28px;
  }
  .flight-price {
    grid-column: auto;
  }
  .flight-search .sheet-submit {
    min-width: 0;
  }
  .fleet-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ——— Contacts ——— */
.open-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 18px 0 22px;
}
.contacts-page .contact-grid {
  margin-top: 0;
}

/* ——— Connexion du dashboard : la fiche de la vitrine posée sur la photo ——— */
.login-page {
  position: relative;
  isolation: isolate;
  min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom));
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  padding: 40px 20px;
  overflow: hidden;
}
.login-page > .arena-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}
.login-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 35%, #989bfb2e, transparent 62%),
    linear-gradient(180deg, #0d1018b3, #0d1018 92%);
}
.login-stage {
  width: min(880px, 100%);
}
.login-page dialog.card-sheet {
  position: relative;
  inset: auto;
  width: 100%;
  max-height: none;
  margin: 0;
}
.login-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.login-back:hover {
  color: var(--accent);
}
@media (max-width: 600px), (max-width: 1000px) and (max-height: 500px) {
  .login-page {
    display: block;
    padding: 0;
  }
  .login-page dialog.card-sheet {
    height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 44px);
  }
  .login-back {
    display: flex;
    justify-content: center;
    height: 44px;
  }
}
