/* ========================= */
/* BASE GLOBALE — MOBILE FIRST */
/* ========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --dark-blue: #1a1b35;
  --dark-blue-glass: rgba(26, 27, 53, 0.58);
  --main-blue: #28469a;
  --gold: #f0b51f;
  --cream: #f7f6f2;
  --dashboard-blue: #23397d;
}

html,
body {
  width: 100%;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
  background: #23397d;
}

/* Fondo full screen real para páginas públicas */
body:not(.dashboard-page)::before {
  content: "";
  position: fixed;
  top: -120px;
  left: 0;
  right: 0;
  bottom: -160px;
  z-index: 0;
  pointer-events: none;

  background-image: url("assets/background.svg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Dashboard no usa el fondo artístico */
body.dashboard-page {
  background: var(--cream);
}

body.dashboard-page::before {
  display: none;
}

/* ========================= */
/* ÉCRAN PRINCIPAL */
/* ========================= */

.app-screen {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  background: transparent;
}

body:not(.dashboard-page) .app-screen {
  padding-top: 245px;
  padding-bottom: calc(110px + env(safe-area-inset-bottom));
}

/* Centrar verticalmente la card en el home */
body:not(.dashboard-page) .home-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 160px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
}

/* En PC se ve como app móvil centrada */
@media (min-width: 431px) {
  body:not(.dashboard-page) {
    background: #f5f3ef;
  }

  body:not(.dashboard-page)::before {
    display: none;
  }

  body:not(.dashboard-page) .app-screen {
    width: 430px;
    max-width: 430px;
    background-image: url("assets/background.svg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }
}

/* ========================= */
/* HEADER LOGO PUBLIC */
/* ========================= */

.top-header {
  position: absolute;
  top: 80px;
  left: 0;
  z-index: 5;
  width: 100%;
  height: 65px;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.main-logo {
  width: 118px;
  height: auto;
  display: block;
}

/* ========================= */
/* CARTE PRINCIPALE */
/* ========================= */

.welcome-card {
  position: relative;
  z-index: 3;
  width: calc(100% - 42px);
  max-width: 390px;
  margin: 0 auto 32px;
  padding: 30px 28px 42px;
  background: rgba(26, 27, 53, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(17px);
  border: 1.4px solid rgba(255, 255, 255, 0.9);
  border-radius: 27px;
  color: white;
  text-align: center;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.18),
    0 18px 45px rgba(0, 0, 0, 0.28);
}

.edition {
  font-size: 12px;
  letter-spacing: 1.3px;
  margin-bottom: 14px;
}

.welcome-card h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 0.95;
  font-weight: 500;
  margin-bottom: 22px;
}

.separator {
  width: 52px;
  height: 1px;
  background: white;
  margin: 0 auto 22px;
}

.description {
  font-size: 13.5px;
  line-height: 1.45;
  max-width: 290px;
  margin: 0 auto 30px;
}

/* ========================= */
/* FORMULAIRE VISITEUR */
/* ========================= */

.visitor-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.visitor-form label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.7px;
  margin-bottom: 22px;
}

.visitor-form input {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: white;
  color: #141414;
  text-align: center;
  font-size: 16px;
  outline: none;
  padding: 0 22px;
}

.visitor-form input::placeholder {
  color: #222;
  opacity: 1;
}

/* ========================= */
/* BOUTON + LOGO 13 PUBLIC */
/* ========================= */

.action-zone {
  position: relative;
  width: 160px;
  height: clamp(105px, 24vw, 135px);
  margin: 22px auto 0;

  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.arrow-btn {
  width: 76px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: var(--main-blue);
  color: white;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  text-indent: 2px;

  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.arrow-btn:hover {
  transform: scale(1.03);
}

.badge-13 {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) rotate(-15deg);

  width: clamp(54px, 14vw, 76px);
  height: auto;
  max-width: none;
  max-height: none;

  object-fit: contain;
  z-index: 10;
  pointer-events: none;
}

/* ========================= */
/* LIENS PUBLICS */
/* ========================= */

.expositor-link {
  position: relative;
  z-index: 12;
  margin-top: 12px;
  font-size: 10.5px;
}

.expositor-link a {
  color: var(--gold);
  text-decoration: underline;
}

/* ========================= */
/* PAGE CHOIX EXPOSANT */
/* ========================= */

.expositor-choice-card {
  position: relative;
  padding: 30px 28px 42px;
}

.expositor-choice-card h1 {
  font-size: 36px;
  line-height: 0.95;
}

.choice-buttons {
  width: 100%;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.choice-btn {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.choice-btn-white {
  background: white;
  color: var(--dark-blue);
}

.choice-btn-blue {
  background: var(--main-blue);
  color: white;
}

.expositor-choice-page .expositor-link {
  position: relative;
  z-index: 3;
  margin-top: 26px;
}

/* ========================= */
/* LOGIN / REGISTER EXPOSANT */
/* ========================= */

.auth-screen .welcome-card,
.login-page .welcome-card,
.register-page .welcome-card,
.expositor-choice-page .welcome-card {
  margin-top: 0;
}

.auth-card {
  padding: 24px 28px 32px;
}

.auth-card h1 {
  font-size: 36px;
  margin-bottom: 18px;
}

.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 18px;
}

.form-group {
  width: 100%;
  margin-bottom: 18px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 9px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.form-group input {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: white;
  color: #141414;
  font-size: 16px;
  outline: none;
  padding: 0 22px;
}

.form-group input::placeholder {
  color: #6b6b6b;
  opacity: 1;
}

.auth-form .action-zone {
  margin-top: 8px;
}

.login-page .expositor-link {
  margin-top: 18px;
}

/* Inscription : version compacte pour tenir sur iPhone */
.register-page .app-screen {
  padding-top: 200px;
}

.register-card {
  padding: 18px 24px 24px;
}

.register-card .edition {
  margin-bottom: 8px;
}

.register-card h1 {
  font-size: 32px;
  margin-bottom: 12px;
}

.register-card .separator {
  margin-bottom: 14px;
}

.register-card .auth-form {
  margin-top: 8px;
}

.register-page .form-group {
  margin-bottom: 9px;
}

.register-page .form-group label {
  margin-bottom: 5px;
}

.register-page .form-group input {
  height: 41px;
}

.register-page .auth-form .action-zone {
  margin-top: 5px;
  height: 54px;
}

.register-page .expositor-link {
  margin-top: 8px;
}

/* ========================= */
/* DASHBOARD EXPOSANT */
/* ========================= */

body.dashboard-page {
  background: var(--cream);
  background-image: none;
}

.dashboard-page .expositor-app-screen {
  background: var(--cream);
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  border: none;
  border-radius: 0;
  overflow: hidden;
  padding-bottom: 84px;
  background-image: none;
}

.dashboard-page .expositor-header {
  position: relative;
  height: 112px;
  background: var(--cream);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 28px 18px;
}

.dashboard-page .header-logo-link {
  display: flex;
  align-items: flex-end;
}

.dashboard-page .panel-logo {
  width: 112px;
  height: auto;
  display: block;
  transform: translateY(35px);
}

.dashboard-page .menu-btn {
  width: 34px;
  height: 30px;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  cursor: pointer;
  padding: 3px;
  margin-bottom: 1px;
}

.dashboard-page .menu-btn span {
  display: block;
  width: 36px;
  height: 3px;
  border-radius: 999px;
  background: #171932;
}

.dashboard-page .expositor-dashboard {
  background: var(--dashboard-blue);
  color: white;
  height: calc(100dvh - 196px);
  padding: 26px 28px 38px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dashboard-page .expositor-dashboard::-webkit-scrollbar {
  display: none;
}

/* ========================= */
/* PROFIL EXPOSANT */
/* ========================= */

.dashboard-page .dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.dashboard-page .avatar-upload {
  width: 106px;
  height: 106px;
  border-radius: 50%;
  background: #d8d7dd;
  color: #111;
  border: 1.2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.dashboard-page .avatar-placeholder {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-page .avatar-placeholder svg {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: #171932;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-page .avatar-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.dashboard-page .expo-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.dashboard-page .expo-name-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 9px;
}

.dashboard-page .expo-name-row h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 700;
  text-align: right;
  color: white;
  max-width: 210px;
  overflow-wrap: break-word;
}

.dashboard-page .edit-icon {
  border: none;
  background: transparent;
  color: white;
  font-size: 15px;
  cursor: pointer;
  padding: 0;
  transform: translateY(-1px);
}

.dashboard-page .expo-category {
  width: 170px;
  height: 26px;
  background: var(--cream);
  border-radius: 999px;
  padding: 0 12px;
  display: flex;
  align-items: center;
}

.dashboard-page .expo-category select {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--dashboard-blue);
  font-size: 11px;
  font-weight: 800;
  outline: none;
  cursor: pointer;
}

.dashboard-page .glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.24),
    0 8px 24px rgba(0, 0, 0, 0.16);
}

.dashboard-page .description-header {
  margin: 50px 0 12px;
}

.dashboard-page .description-header h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  color: white;
}

.dashboard-page .expo-description-card {
  position: relative;
  width: 100%;
  min-height: 92px;
  height: auto;
  padding: 17px 38px 17px 18px;
  margin: 0 0 24px;
  overflow: visible;
}

.dashboard-page .expo-description-card p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.32;
  letter-spacing: 0.2px;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dashboard-page .card-edit-btn {
  position: absolute;
  top: 10px;
  right: 13px;
  border: none;
  background: transparent;
  color: white;
  font-size: 15px;
  cursor: pointer;
}

/* ========================= */
/* EDIT PANELS */
/* ========================= */

.dashboard-page .edit-panel {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 16px;
}

.dashboard-page .edit-panel.hidden {
  display: none;
}

.dashboard-page .edit-panel input,
.dashboard-page .edit-panel textarea {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 12px;
  outline: none;
  font-size: 13px;
  resize: vertical;
  overflow-wrap: break-word;
}

.dashboard-page .edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.dashboard-page .mini-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.dashboard-page .mini-btn.cancel {
  background: white;
  color: #171932;
}

.dashboard-page .mini-btn.save {
  background: #171932;
  color: white;
}

/* ========================= */
/* GALERIE PROFIL */
/* ========================= */

.dashboard-page .gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 14px;
}

.dashboard-page .gallery-header h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
}

.dashboard-page .add-image-btn {
  background: var(--cream);
  color: var(--dashboard-blue);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.dashboard-page .expo-gallery-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-bottom: 42px;
}

.dashboard-page .gallery-img-card {
  position: relative;
  height: 118px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-page .gallery-img-card:nth-child(n + 3) {
  grid-column: 1 / -1;
  height: 138px;
}

.dashboard-page .gallery-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-page .remove-img-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  border: none;
  background: rgba(0, 0, 0, 0.72);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

/* ========================= */
/* FOOTER NAV */
/* ========================= */

.dashboard-page .bottom-nav {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 84px;
  background: var(--cream);
  border-top: none;
  box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 20;
}

.dashboard-page .nav-item,
.dashboard-page .nav-plus {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-page .nav-item {
  width: 66px;
  height: 66px;
}

.dashboard-page .nav-icon {
  width: 40px;
  height: 40px;
  stroke: #111;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-3.7px);
}

.dashboard-page .nav-home-icon {
  width: 40px;
  height: 40px;
  color: #111;
  stroke-width: 2;
  opacity: 1;
  /* ESTA ES LA SOLUCIÓN */
  /* Ajusta el número (-2px, -4px, etc.) hasta que quede alineada a ojo con el personaje */
  transform: translateY(-1px);
}

.dashboard-page .nav-item.active .nav-icon {
  stroke: var(--dashboard-blue);
}

.dashboard-page .nav-item.active .nav-home-icon {
  color: var(--dashboard-blue);
}

.dashboard-page .nav-plus {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid #000;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.24),
    0 8px 24px rgba(0, 0, 0, 0.16);
  color: #111;
  margin-top: -46px;
}

.dashboard-page .nav-plus span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 80px;
  font-weight: 300;
  line-height: 1;
}

.dashboard-page .nav-plus.active {
  color: var(--dashboard-blue);
}

/* ========================= */
/* PAGE + / AJOUTER ŒUVRES */
/* ========================= */

.artworks-page .artworks-title {
  margin-bottom: 22px;
}

.artworks-page .artworks-title h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.artworks-page .artworks-title p {
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.9;
  max-width: 300px;
}

.artworks-page .artwork-form {
  padding: 16px;
  margin-bottom: 24px;
}

.artworks-page .artwork-image-upload {
  width: 100%;
  min-height: 170px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px dashed rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 10px;
}

.artworks-page .artwork-image-upload img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  display: none;
  border-radius: 10px;
}

.artworks-page .artwork-image-upload span {
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.artworks-page .artwork-field {
  margin-bottom: 14px;
}

.artworks-page .artwork-field label {
  display: block;
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.artworks-page .artwork-field input,
.artworks-page .artwork-field textarea {
  width: 100%;
  border: none;
  border-radius: 14px;
  background: white;
  color: #171932;
  font-size: 13px;
  outline: none;
  padding: 12px 14px;
}

.artworks-page .artwork-field textarea {
  resize: vertical;
  min-height: 92px;
}

.artworks-page .artwork-double-field {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.artworks-page .artwork-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.artworks-page .artworks-list-header {
  margin: 8px 0 14px;
}

.artworks-page .artworks-list-header h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  color: white;
}

.artworks-page .artworks-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 42px;
}

.artworks-page .artwork-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  position: relative;
  align-items: start;
}

.artworks-page .artwork-card img {
  width: 92px;
  height: auto;
  max-height: 130px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
}

.artworks-page .artwork-card-content {
  min-width: 0;
  padding-right: 24px;
}

.artworks-page .artwork-card-content h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.1;
  margin-bottom: 5px;
  color: white;
  overflow-wrap: anywhere;
}

.artworks-page .artwork-card-content .artist {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 6px;
}

.artworks-page .artwork-meta {
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 7px;
}

.artworks-page .artwork-card-content p {
  font-size: 11px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.9);
  overflow-wrap: anywhere;
}

.artworks-page .remove-artwork-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.72);
  color: white;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.artworks-page .empty-artworks {
  font-size: 12px;
  opacity: 0.85;
  padding: 14px;
}

/* ========================= */
/* ACCUEIL EXPOSANT / VUE VISITEUR */
/* ========================= */

.home-dashboard-page .home-place-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.home-dashboard-page .home-place-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.home-dashboard-page .home-place-header span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 14px;
  background: var(--cream);
  color: var(--dashboard-blue);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.home-dashboard-page .home-badge-13 {
  width: 54px;
  height: 54px;
  object-fit: contain;
  transform: rotate(-12deg);
}

.home-dashboard-page .home-description {
  padding: 16px 18px;
  margin-bottom: 18px;
}

.home-dashboard-page .home-description p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.35;
  color: white;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.home-dashboard-page .home-place-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 30px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.home-dashboard-page .home-place-slider::-webkit-scrollbar {
  display: none;
}

.home-dashboard-page .home-place-photo {
  flex: 0 0 auto;
  height: 120px;
  max-width: 230px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.home-dashboard-page .home-place-photo img {
  height: 100%;
  width: auto;
  max-width: 230px;
  object-fit: cover;
  display: block;
}

.home-dashboard-page .home-artworks-title {
  margin-bottom: 22px;
}

.home-dashboard-page .home-artworks-title h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 700;
  color: white;
}

.home-dashboard-page .home-artworks-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-bottom: 52px;
}

.home-dashboard-page .home-artwork-card {
  position: relative;
  display: grid;
  grid-template-columns: 142px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  min-height: auto;
  cursor: pointer;
}

.home-dashboard-page .home-artwork-card::before {
  content: "";
  position: absolute;
  left: 72px;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 0;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.24),
    0 8px 24px rgba(0, 0, 0, 0.16);
}

.home-dashboard-page .home-artwork-image {
  position: relative;
  z-index: 2;
  width: 142px;
  border-radius: 10px;
  overflow: visible;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-dashboard-page .home-artwork-image img {
  width: auto;
  max-width: 142px;
  height: auto;
  max-height: 215px;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

.home-dashboard-page .home-artwork-info {
  position: relative;
  z-index: 2;
  padding: 28px 34px 28px 4px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.home-dashboard-page .home-artwork-info .artist {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
}

.home-dashboard-page .home-artwork-info h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}

.home-dashboard-page .home-artwork-info p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
  overflow-wrap: anywhere;
}

.home-dashboard-page .home-artwork-open {
  position: absolute;
  right: 15px;
  bottom: 20px;
  z-index: 4;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 25px;
  line-height: 1;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    0 6px 16px rgba(0, 0, 0, 0.18);
}

.home-dashboard-page .empty-home-message {
  padding: 14px;
  font-size: 12px;
  color: white;
}

/* ========================= */
/* POPUP DÉTAIL ŒUVRE */
/* ========================= */

.home-dashboard-page .artwork-modal {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 132px 18px 100px;
}

.home-dashboard-page .artwork-modal.hidden {
  display: none;
}

.home-dashboard-page .artwork-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 45, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.home-dashboard-page .artwork-modal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 370px;
  padding: 20px 18px 22px;
  border-radius: 14px;
  color: white;
}

.home-dashboard-page .artwork-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.home-dashboard-page .artwork-modal-top {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.home-dashboard-page .artwork-modal-image {
  width: 118px;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-dashboard-page .artwork-modal-image img {
  width: auto;
  max-width: 118px;
  height: auto;
  max-height: 185px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.home-dashboard-page .artwork-modal-info h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 14px;
}

.home-dashboard-page .artwork-modal-info p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.home-dashboard-page .reserve-btn {
  margin-top: 8px;
  min-width: 92px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--dashboard-blue);
  font-size: 11px;
  font-weight: 700;
  cursor: not-allowed;
  opacity: 0.75;
}

.home-dashboard-page .artwork-modal-description {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.45;
  color: white;
}

.home-dashboard-page .modal-artist {
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.home-dashboard-page #modalArtworkDescription {
  overflow-wrap: anywhere;
}

/* ========================= */
/* RESPONSIVE TÉLÉPHONE */
/* ========================= */

@media (max-width: 430px) {
  body:not(.dashboard-page) .app-screen {
    width: 100%;
    max-width: none;
    padding-top: 245px;
    padding-bottom: calc(110px + env(safe-area-inset-bottom));
  }

  .top-header {
    top: 82px;
    height: 65px;
  }

  .main-logo {
    width: 118px;
  }

  .welcome-card {
    width: calc(100% - 36px);
    padding: 30px 24px 40px;
  }

  .choice-badge-13 {
    right: 28px;
    bottom: 22px;
    width: 50px;
    height: 50px;
  }

  .expositor-choice-card {
    padding: 30px 24px 82px;
  }

  .register-page .app-screen {
    padding-top: 210px;
  }

  .register-card {
    padding: 20px 24px 28px;
  }

  .register-card h1 {
    font-size: 30px;
    margin-bottom: 10px;
  }

  .register-card .separator {
    margin-bottom: 12px;
  }

  .register-page .form-group {
    margin-bottom: 8px;
  }

  .register-page .form-group input {
    height: 40px;
  }

  .register-page .auth-form .action-zone {
    height: 50px;
    margin-top: 4px;
  }

  .register-page .expositor-link {
    margin-top: 8px;
  }
}

/* Téléphones petits ou écrans courts */
@media (max-width: 380px), (max-height: 760px) {
  body:not(.dashboard-page) .app-screen {
    padding-top: 185px;
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }

  .top-header {
    top: 56px;
    height: 56px;
  }

  .main-logo {
    width: 106px;
  }

  .welcome-card {
    width: calc(100% - 32px);
    padding: 24px 22px 34px;
  }

  .welcome-card h1 {
    font-size: 30px;
  }

  .description {
    font-size: 12.5px;
    margin-bottom: 24px;
  }

  .visitor-form input,
  .form-group input {
    height: 44px;
  }

  .form-group {
    margin-bottom: 13px;
  }

  .action-zone {
    margin-top: 16px;
    height: 62px;
    width: 150px;
  }

  .arrow-btn {
    width: 72px;
    height: 40px;
  }

  .badge-13 {
    width: 52px;
    height: 52px;
  }

  .register-page .app-screen {
    padding-top: 170px;
  }

  .register-card {
    padding: 18px 22px 26px;
  }

  .register-card .edition {
    margin-bottom: 6px;
  }

  .register-card h1 {
    font-size: 28px;
    margin-bottom: 8px;
  }

  .register-card .separator {
    margin-bottom: 10px;
  }

  .register-page .form-group {
    margin-bottom: 7px;
  }

  .register-page .form-group label {
    margin-bottom: 4px;
  }

  .register-page .form-group input {
    height: 38px;
  }

  .register-page .auth-form .action-zone {
    height: 48px;
    margin-top: 3px;
  }

  .register-page .expositor-link {
    margin-top: 6px;
  }

  .dashboard-page .expositor-header {
    height: 100px;
    padding: 0 24px 17px;
  }

  .dashboard-page .panel-logo {
    width: 100px;
  }

  .dashboard-page .menu-btn {
    width: 42px;
    height: 34px;
  }

  .dashboard-page .menu-btn span {
    width: 35px;
    height: 4px;
  }

  .dashboard-page .expositor-dashboard {
    height: calc(100dvh - 184px);
    padding: 24px 24px 36px;
  }

  .dashboard-page .avatar-upload {
    width: 80px;
    height: 80px;
  }

  .dashboard-page .dashboard-top {
    gap: 16px;
  }

  .dashboard-page .expo-name-row h1 {
    font-size: 21px;
    max-width: 180px;
  }

  .dashboard-page .expo-category {
    width: 150px;
  }

  .dashboard-page .gallery-img-card {
    height: 112px;
  }

  .dashboard-page .gallery-img-card:nth-child(n + 3) {
    height: 132px;
  }

  .dashboard-page .nav-plus {
    width: 78px;
    height: 78px;
  }

  .dashboard-page .nav-plus span {
    font-size: 64px;
  }

  .dashboard-page .nav-icon {
    width: 38px;
    height: 38px;
  }
}

/* ========================= */
/* RESPONSIVE PC */
/* ========================= */

@media (min-width: 431px) {
  body:not(.dashboard-page) {
    background: #f5f3ef;
    align-items: flex-start;
  }

  body:not(.dashboard-page) .app-screen {
    width: 430px;
    max-width: 430px;
    background-image: url("assets/background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
}

/* ===================================================== */
/* FINAL PUBLIC PAGES — LOGO 13 CENTRÉ SOUS LA FLÈCHE */
/* ===================================================== */

/* Même structure pour accueil visiteur, login et inscription */
.action-zone,
.auth-form .action-zone,
.login-page .auth-form .action-zone,
.register-page .auth-form .action-zone {
  position: relative !important;
  width: 160px !important;
  height: clamp(112px, 24vw, 126px) !important;
  margin: 18px auto 0 !important;

  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
}

/* Flèche toujours centrée en haut */
.arrow-btn {
  position: relative !important;
  z-index: 12 !important;

  width: 76px !important;
  height: 42px !important;
  border: none !important;
  border-radius: 999px !important;
  background: var(--main-blue) !important;
  color: white !important;

  font-size: 34px !important;
  font-weight: 900 !important;
  line-height: 1 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 0 3px 0 !important;
  cursor: pointer !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25) !important;
}

/* Logo 13 toujours sous la flèche, centré */
.badge-13 {
  position: absolute !important;
  left: 50% !important;
  top: 54px !important;
  right: auto !important;
  bottom: auto !important;

  transform: translateX(-50%) rotate(-15deg) !important;

  width: clamp(56px, 14vw, 68px) !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;

  object-fit: contain !important;
  z-index: 10 !important;
  pointer-events: none !important;
}

/* Lien toujours sous le logo */
.expositor-link,
.login-page .expositor-link,
.register-page .expositor-link {
  position: relative !important;
  z-index: 12 !important;
  margin-top: 2px !important;
  font-size: 10.5px !important;
}

/* Page choix exposant : pas de flèche, donc logo centré en bas du texte */
.choice-badge-13 {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  bottom: 18px !important;

  transform: translateX(-50%) rotate(-15deg) !important;

  width: clamp(56px, 14vw, 68px) !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;

  object-fit: contain !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

.expositor-choice-card {
  padding-bottom: 96px !important;
}

/* Inscription : compacte mais sans écraser le logo 13 */
.register-page .app-screen {
  padding-top: 198px !important;
}

.register-card {
  padding: 16px 24px 24px !important;
}

.register-card .edition {
  margin-bottom: 6px !important;
}

.register-card h1 {
  font-size: 29px !important;
  margin-bottom: 8px !important;
}

.register-card .separator {
  margin-bottom: 10px !important;
}

.register-card .auth-form {
  margin-top: 6px !important;
}

.register-page .form-group {
  margin-bottom: 7px !important;
}

.register-page .form-group label {
  margin-bottom: 4px !important;
}

.register-page .form-group input {
  height: 38px !important;
}

.register-page .expositor-link {
  margin-top: 2px !important;
}

/* Mobile standard */
@media (max-width: 430px) {
  .action-zone,
  .auth-form .action-zone,
  .login-page .auth-form .action-zone,
  .register-page .auth-form .action-zone {
    height: 112px !important;
    margin-top: 14px !important;
  }

  .badge-13 {
    top: 52px !important;
    width: 58px !important;
  }

  .register-page .app-screen {
    padding-top: 190px !important;
  }

  .register-card {
    padding: 15px 22px 22px !important;
  }

  .register-card h1 {
    font-size: 28px !important;
  }

  .register-page .form-group input {
    height: 37px !important;
  }
}

/* Mobile petit / écran court */
@media (max-width: 380px), (max-height: 760px) {
  .action-zone,
  .auth-form .action-zone,
  .login-page .auth-form .action-zone,
  .register-page .auth-form .action-zone {
    height: 104px !important;
    margin-top: 12px !important;
  }

  .badge-13 {
    top: 48px !important;
    width: 56px !important;
  }

  .register-page .app-screen {
    padding-top: 162px !important;
  }

  .register-card {
    padding: 14px 20px 20px !important;
  }

  .register-card .edition {
    margin-bottom: 5px !important;
  }

  .register-card h1 {
    font-size: 27px !important;
    margin-bottom: 7px !important;
  }

  .register-card .separator {
    margin-bottom: 8px !important;
  }

  .register-page .form-group {
    margin-bottom: 6px !important;
  }

  .register-page .form-group input {
    height: 36px !important;
  }
}
/* ===================================================== */
/* ESPACIADO FINAL — CHOIX EXPOSANT */
/* ===================================================== */

.expositor-choice-card {
  padding-bottom: 118px !important;
}

.expositor-choice-page .expositor-link {
  margin-top: 18px !important;
}

.choice-badge-13 {
  bottom: 24px !important;
  width: clamp(56px, 14vw, 68px) !important;
}

/* ===================================================== */
/* FIX FLECHA CENTRADA + CARD MÁS TRANSPARENTE EN CELU */
/* ===================================================== */

/* Botón azul limpio */
.arrow-btn {
  position: relative !important;
  width: 76px !important;
  height: 42px !important;
  padding: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  font-size: 0 !important; /* oculta la flecha escrita en el HTML */
  line-height: 1 !important;
}

/* Flecha dibujada por CSS, centrada visualmente */
.arrow-btn::before {
  content: "➔";
  position: absolute;
  left: 50%;
  top: 50%;

  transform: translate(-50%, -53%);
  color: white;

  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

/* Card más clara y pareja entre PC / iPhone */
.welcome-card {
  background: rgba(26, 27, 53, 0.28) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

/* En celular un poquito más clara todavía */
@media (max-width: 430px) {
  .welcome-card {
    background: rgba(26, 27, 53, 0.24) !important;
    backdrop-filter: blur(7px) !important;
    -webkit-backdrop-filter: blur(7px) !important;
  }
}

/* ===================================================== */
/* BADGE 13 EN HAUT — À CÔTÉ DU TEXTE D'ÉDITION */
/* ===================================================== */

.edition-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 14px;
}

.edition-row {
  position: relative;
  width: 100%;
  min-height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 20px;
}

.edition-row .edition {
  width: 100%;
  margin: 0 !important;
  text-align: center;
}

.edition-row .edition-badge-13 {
  position: absolute !important;

  right: 5px !important;
  left: auto !important;
  top: 50% !important;

  width: 75px;
  height: auto;

  transform: translateY(-50%) rotate(-12deg) !important;
}

.edition-row .edition {
  margin: 0 !important;
}

.edition-badge-13 {
  position: static !important;
  display: block;
  width: 60px;
  height: auto;
  object-fit: contain;
  transform: rotate(-12deg);
  flex-shrink: 0;
  pointer-events: none;
}

.edition-row .edition {
  order: 1;
}

.edition-row .edition-badge-13 {
  order: 2;
}

/* Le badge n'étant plus sous la flèche, la zone du bouton redevient compacte */
.action-zone,
.auth-form .action-zone,
.login-page .auth-form .action-zone,
.register-page .auth-form .action-zone {
  width: 160px !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 18px auto 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Espacement du lien sous le bouton */
.expositor-link,
.login-page .expositor-link,
.register-page .expositor-link {
  margin-top: 18px !important;
}

/* La page de choix n'a plus besoin d'un grand espace en bas */
.expositor-choice-card {
  padding-bottom: 42px !important;
}

.expositor-choice-page .expositor-link {
  margin-top: 26px !important;
}

/* Ajustements mobiles */
@media (max-width: 430px) {
  .edition-row {
    gap: 8px;
    margin-bottom: 13px;
  }

  .edition-badge-13 {
    width: 39px;
  }

  .action-zone,
  .auth-form .action-zone,
  .login-page .auth-form .action-zone,
  .register-page .auth-form .action-zone {
    height: 42px !important;
    min-height: 42px !important;
    margin-top: 14px !important;
  }
}

@media (max-width: 380px), (max-height: 760px) {
  .edition-row {
    margin-bottom: 10px;
  }

  .edition-badge-13 {
    width: 35px;
  }

  .action-zone,
  .auth-form .action-zone,
  .login-page .auth-form .action-zone,
  .register-page .auth-form .action-zone {
    height: 40px !important;
    min-height: 40px !important;
    margin-top: 12px !important;
  }
}

/* ============================================================ */
/* ============  RESPONSIVE OVERHAUL — PC / TABLET  =========== */
/* ============================================================ */

/* ---------- PUBLIC PAGES (home / login / register / choice) ---------- */
@media (min-width: 768px) {
  /* Background image fills entire viewport */
  body:not(.dashboard-page) {
    background: #23397d !important;
    align-items: stretch !important;
    justify-content: center !important;
  }

  body:not(.dashboard-page)::before {
    content: "" !important;
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 0 !important;
    background-image: url("assets/background.png") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    pointer-events: none !important;
  }

  /* The "screen" fills full width — no more 430px frame on PC */
  body:not(.dashboard-page) .app-screen {
    width: 100% !important;
    max-width: 100% !important;
    background-image: none !important;
    background: transparent !important;
    padding-top: 230px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  /* Black logo strip edge-to-edge */
  .top-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 88px !important;
    background: #000 !important;
    z-index: 50 !important;
  }

  .main-logo {
    width: 150px !important;
  }

  /* Card stays mobile-like, just bigger */
  .welcome-card {
    width: calc(100% - 64px) !important;
    max-width: 520px !important;
    padding: 38px 40px 50px !important;
    border-radius: 32px !important;
  }

  .welcome-card h1,
  .auth-card h1,
  .expositor-choice-card h1 {
    font-size: 42px !important;
  }

  .description {
    font-size: 15px !important;
    max-width: 360px !important;
  }

  .welcome-card .edition {
    font-size: 13px !important;
  }

  .visitor-form input,
  .form-group input {
    height: 52px !important;
    font-size: 15px !important;
  }

  .expositor-link {
    font-size: 12px !important;
  }
}

/* Desktop large: a touch more breathing room */
@media (min-width: 1280px) {
  body:not(.dashboard-page) .app-screen {
    padding-top: 250px !important;
  }
  .welcome-card {
    max-width: 580px !important;
    padding: 44px 48px 56px !important;
  }
  .welcome-card h1,
  .auth-card h1,
  .expositor-choice-card h1 {
    font-size: 48px !important;
  }
  .main-logo {
    width: 170px !important;
  }
  .top-header {
    height: 96px !important;
  }
}

/* Register card on PC: keep compact but readable */
@media (min-width: 768px) {
  .register-page .app-screen {
    padding-top: 200px !important;
  }
  .register-card {
    max-width: 540px !important;
    padding: 30px 40px 36px !important;
  }
  .register-card h1 {
    font-size: 38px !important;
  }
  .register-page .form-group input {
    height: 46px !important;
  }
}

/* ---------- DASHBOARD / PROFIL / ARTWORKS — horizontal layout on PC ---------- */
@media (min-width: 900px) {
  body.dashboard-page {
    background: var(--cream) !important;
  }

  .dashboard-page .expositor-app-screen {
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    min-height: 100vh !important;
    border-radius: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 110px;
    grid-template-rows: 130px 1fr;
    grid-template-areas:
      "header header"
      "main   nav";
    padding-bottom: 0 !important;
    overflow: hidden !important;
  }

  .dashboard-page .expositor-header {
    grid-area: header;
    height: 130px !important;
    padding: 0 48px 22px !important;
  }

  .dashboard-page .panel-logo {
    width: 140px !important;
    transform: translateY(40px) !important;
  }

  .dashboard-page .expositor-dashboard {
    grid-area: main;
    height: auto !important;
    max-height: calc(100vh - 130px) !important;
    padding: 36px 56px 48px !important;
    border-top-left-radius: 28px;
    border-bottom-left-radius: 28px;
  }

  /* Side nav on the right, vertical */
  .dashboard-page .bottom-nav {
    grid-area: nav;
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    width: 110px !important;
    height: auto !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 28px;
    padding: 28px 0 !important;
    box-shadow: -1px 0 8px rgba(0, 0, 0, 0.08) !important;
    border-top: none !important;
  }

  .dashboard-page .nav-item {
    width: 64px !important;
    height: 64px !important;
  }

  .dashboard-page .nav-plus {
    margin-top: 0 !important;
    width: 72px !important;
    height: 72px !important;
  }

  .dashboard-page .nav-plus span {
    font-size: 68px !important;
  }

  .dashboard-page .nav-icon,
  .dashboard-page .nav-home-icon {
    transform: none !important;
  }

  /* PROFIL — give it a more horizontal feel */
  .dashboard-page .dashboard-top {
    gap: 32px !important;
  }

  .dashboard-page .avatar-upload {
    width: 140px !important;
    height: 140px !important;
  }

  .dashboard-page .expo-name-row h1 {
    font-size: 30px !important;
    max-width: none !important;
  }

  .dashboard-page .description-header h2,
  .dashboard-page .gallery-header h2 {
    font-size: 24px !important;
  }

  .dashboard-page .expo-description-card p {
    font-size: 14px !important;
  }

  .dashboard-page .expo-gallery-preview {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 18px !important;
  }

  .dashboard-page .gallery-img-card,
  .dashboard-page .gallery-img-card:nth-child(n + 3) {
    grid-column: auto !important;
    height: 180px !important;
  }

  /* ARTWORKS */
  .artworks-page .artworks-title h1 {
    font-size: 36px !important;
  }
  .artworks-page .artworks-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px !important;
  }

  /* HOME DASHBOARD (vue visiteur) */
  .home-dashboard-page .home-place-header h1 {
    font-size: 32px !important;
  }
  .home-dashboard-page .home-artworks-title h2 {
    font-size: 30px !important;
  }
  .home-dashboard-page .home-artworks-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px !important;
  }
  .home-dashboard-page .home-place-photo {
    height: 180px !important;
    max-width: 320px !important;
  }
  .home-dashboard-page .home-place-photo img {
    max-width: 320px !important;
  }
}

/* Extra wide desktop */
@media (min-width: 1400px) {
  .dashboard-page .expositor-app-screen {
    grid-template-columns: 1fr 130px;
  }
  .dashboard-page .expositor-dashboard {
    padding: 44px 80px 56px !important;
  }
  .home-dashboard-page .home-artworks-list {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .artworks-page .artworks-list {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ============================================================ */
/* ====================  VISITOR PAGES  ======================= */
/* ============================================================ */

/* Visitor nav looks exactly like the expositor bottom-nav */
.dashboard-page.visitor-page .bottom-nav.visitor-nav {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 84px;
  background: var(--cream);
  border-top: none;
  box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 20;
  gap: 0;
}

.dashboard-page.visitor-page .visitor-nav .nav-item,
.dashboard-page.visitor-page .visitor-nav .nav-scanner {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-page.visitor-page .visitor-nav .nav-item {
  width: 66px;
  height: 66px;
}

.dashboard-page.visitor-page .visitor-nav .nav-icon {
  width: 40px;
  height: 40px;
  stroke: #111;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-page.visitor-page .visitor-nav .nav-item.active .nav-icon {
  stroke: var(--dashboard-blue);
}

/* Scanner middle button — same style as expositor nav-plus */
.dashboard-page.visitor-page .visitor-nav .nav-scanner {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid #000;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.24),
    0 8px 24px rgba(0, 0, 0, 0.16);
  color: #111;
  margin-top: -46px;
}

.dashboard-page.visitor-page .visitor-nav .nav-scanner .nav-icon {
  width: 40px;
  height: 40px;
  stroke: #111;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-page.visitor-page .visitor-nav .nav-scanner.active .nav-icon {
  stroke: var(--dashboard-blue);
}

/* Map placeholder */
.map-page .map-placeholder {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  gap: 12px;
}

.map-page .map-placeholder h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
}

.map-page .map-placeholder p {
  font-size: 13px;
  opacity: 0.85;
}

/* Menu panel for visitor pages */
.menu-panel {
  position: absolute;
  top: 112px;
  right: 0;
  z-index: 30;
  width: 220px;
  background: var(--cream);
  border-radius: 14px 0 14px 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-panel.hidden {
  display: none;
}

.menu-panel a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: #171932;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.menu-panel a:hover {
  background: rgba(35, 57, 125, 0.08);
}

/* PC vertical nav adjustments for visitor */
@media (min-width: 900px) {
  .dashboard-page.visitor-page .visitor-nav {
    gap: 28px;
    flex-direction: column;
    justify-content: center;
  }

  .dashboard-page.visitor-page .visitor-nav .nav-scanner {
    margin-top: 0;
    width: 72px;
    height: 72px;
  }

  .dashboard-page.visitor-page .visitor-nav .nav-item {
    width: 64px;
    height: 64px;
  }

  .map-page .map-placeholder h1 {
    font-size: 36px;
  }
}

/* ============================================================ */
/* VISITEUR — Carte, Passeport, Scanner, Galerie, Partenaires   */
/* ============================================================ */

/* Carte */
.visitor-map-section {
  position: relative;
  padding: 0 !important;
}
.visitor-map {
  width: 100%;
  height: 100%;
  min-height: calc(100dvh - 196px);
}
.map-search-wrap {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 500;
}
.map-search-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  color: #171932;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.map-search-toggle svg {
  width: 18px;
  height: 18px;
  stroke: #171932;
  fill: none;
  stroke-width: 2;
}
.map-search-panel {
  margin-top: 8px;
  background: var(--cream);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  padding: 10px;
  max-height: 50dvh;
  overflow: auto;
}
.map-search-panel input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d6d3cc;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}
.map-search-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.map-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #171932;
}
.map-search-item:hover {
  background: rgba(35, 57, 125, 0.08);
}
.map-search-item .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.map-search-item.is-visited .dot {
  background: #2bb673;
}
.map-search-item.is-pending .dot {
  background: #28469a;
}
.map-search-item.is-visited .lbl {
  color: #2bb673;
  font-weight: 700;
}
.map-search-empty {
  padding: 10px;
  font-size: 13px;
  color: #555;
}
.map-search-num {
  font-weight: 700;
  margin-right: 4px;
  opacity: 0.75;
}
.map-search-item.is-visited .map-search-num {
  opacity: 1;
}

.afg-marker {
  width: 26px;
  height: 26px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.afg-marker-blue {
  background: #28469a;
}
.afg-marker-green {
  background: #2bb673;
}
.afg-marker-artist {
  background: #2bb673;
}
.afg-marker-artisan {
  background: #b8860b;
}
.afg-marker-designer {
  background: #ec4899;
}

.map-profile-filter {
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--dashboard-blue);
  font-weight: 600;
  padding: 6px 4px;
  outline: none;
  cursor: pointer;
  max-width: 130px;
}

/* Carte : chips de filtre à deux niveaux */
.map-filter-chips,
.map-subfilter-chips {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.map-filter-chips::-webkit-scrollbar,
.map-subfilter-chips::-webkit-scrollbar {
  display: none;
}
.map-subfilter-chips.hidden {
  display: none;
}
.map-chip {
  flex: 0 0 auto;
  border: none;
  cursor: pointer;
  padding: 7px 14px;
  border-radius: 999px;
  background: #ffffff;
  color: #171932;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
  white-space: nowrap;
}
.map-chip.is-active {
  background: var(--dashboard-blue, #171932);
  color: #fff;
}
.map-chip.is-sub {
  padding: 5px 11px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.92);
}
.map-chip.is-sub.is-active {
  background: var(--dashboard-blue, #171932);
  color: #fff;
}

/* Sites d’exposition (visiteur) */
.sites-filter-bar {
  display: flex;
  justify-content: center;
  margin: 8px 0 16px;
}
.sites-filter-bar select {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 14px;
  color: var(--dashboard-blue);
  font-weight: 600;
}
.sites-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 0 14px 100px;
}
@media (min-width: 700px) {
  .sites-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1100px) {
  .sites-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.site-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.site-card .site-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #eef;
}
.site-card .site-card-body {
  padding: 12px 14px 14px;
}
.site-card .site-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--dashboard-blue);
  margin-bottom: 4px;
}
.site-card .site-card-type {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
  color: #fff;
}
.site-card .site-card-type.type-exhibitor {
  background: #28469a;
}
.site-card .site-card-type.type-artist {
  background: #2bb673;
}
.site-card .site-card-type.type-art_craftsperson {
  background: #b8860b;
}
.site-card .site-card-type.type-designer {
  background: #ec4899;
}
.site-card .site-card-addr {
  font-size: 12px;
  color: #555;
}
.afg-popup {
  font-family: inherit;
  min-width: 160px;
}
.afg-popup-cat {
  font-size: 11px;
  opacity: 0.7;
  margin: 2px 0;
}
.afg-popup-addr {
  font-size: 12px;
  margin-bottom: 6px;
}
.afg-popup-link {
  display: inline-block;
  background: var(--dashboard-blue);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}
.afg-popup-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.afg-popup-go {
  display: inline-block;
  background: #1e6cff;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.afg-popup-go:hover { filter: brightness(1.08); }
.afg-route-dest {
  width: 16px; height: 16px; border-radius: 50%;
  background: #1e6cff; border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.afg-route-panel {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 700;
  background: #fff;
  color: #111;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 6px 22px rgba(0,0,0,.22);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
  max-width: calc(100% - 24px);
  font-family: inherit;
}
.afg-route-name { font-weight: 700; font-size: 13px; }
.afg-route-meta { font-size: 12px; opacity: .8; }
.afg-route-cancel {
  margin-top: 6px;
  background: #f1f3f8;
  color: #111;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.afg-route-cancel:hover { background: #e6e9f2; }
@media (max-width: 640px) {
  .afg-route-panel { top: 8px; padding: 8px 12px; min-width: 180px; font-size: 12px; }
}
.locate-me-btn {
  position: absolute;
  bottom: 96px;
  right: 14px;
  z-index: 500;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--cream);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}
.locate-me-btn svg {
  width: 22px;
  height: 22px;
  stroke: #171932;
  fill: none;
  stroke-width: 2;
}

/* Passeport */
.passport-content {
  color: #fff;
}
.passport-head {
  text-align: center;
  margin-bottom: 18px;
}
.passport-edition-badge {
  width: 56px;
  height: auto;
  margin: 0 auto 8px;
  display: block;
}
.passport-head h1 {
  font-family: Georgia, serif;
  font-size: 26px;
  margin-bottom: 4px;
}
.passport-visitor-name {
  opacity: 0.85;
  font-size: 14px;
}
.passport-stats {
  padding: 18px;
  text-align: center;
  margin-bottom: 18px;
}
.passport-stat-row {
  font-size: 26px;
  font-weight: 700;
}
.passport-stat-row #passportVisitedCount {
  color: #f0b51f;
  font-size: 38px;
}
.passport-stat-label {
  font-size: 14px;
  opacity: 0.85;
  display: block;
  margin-top: 4px;
}
.passport-percent {
  font-size: 28px;
  font-weight: 700;
  margin: 8px 0;
  color: #9ad7ff;
}
.passport-progress {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
  margin: 8px 0 12px;
}
.passport-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #9ad7ff, #61c0ff);
  border-radius: 999px;
  transition: width 0.8s ease;
}
.passport-points {
  font-size: 18px;
  font-weight: 700;
  color: #f0b51f;
  margin-top: 4px;
}
.passport-badges-title {
  font-size: 18px;
  margin: 10px 0;
}
.passport-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.badge-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  transition: transform 0.3s;
}
.badge-card.is-locked {
  opacity: 0.35;
  filter: grayscale(1);
}
.badge-card.is-unlocked {
  animation: badgePop 0.5s ease;
  background: rgba(240, 181, 31, 0.18);
}
@keyframes badgePop {
  0% {
    transform: scale(0.6);
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
.badge-icon {
  font-size: 28px;
  color: #f0b51f;
}
.badge-name {
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}
.badge-need {
  font-size: 11px;
  opacity: 0.75;
}
.passport-reset-btn {
  display: block;
  margin: 24px auto 0;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}

/* Scanner */
.scanner-content {
  color: #fff;
}
.scanner-title {
  font-family: Georgia, serif;
  font-size: 24px;
  text-align: center;
  margin-bottom: 6px;
}
.scanner-help {
  text-align: center;
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 14px;
}
.qr-reader {
  width: 100%;
  max-width: 360px;
  margin: 0 auto 14px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  min-height: 0;
}
.qr-reader:empty {
  min-height: 0;
  padding: 0;
}
.scanner-start-btn,
.scanner-stop-btn {
  display: block;
  margin: 0 auto 14px;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--gold);
  color: #171932;
  font-weight: 700;
  font-size: 14px;
}
.scanner-stop-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.scanner-manual {
  padding: 14px;
  margin-top: 8px;
}
.scanner-manual label {
  display: block;
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 6px;
}
.scanner-manual-row {
  display: flex;
  gap: 8px;
}
.scanner-manual-row input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
}
.scanner-manual-row button {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: var(--dashboard-blue);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.scanner-result {
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
}
.scanner-result.is-ok {
  background: rgba(43, 182, 115, 0.2);
  color: #b6f5d3;
}
.scanner-result.is-warn {
  background: rgba(240, 181, 31, 0.2);
  color: #ffe7a3;
}
.scanner-result.is-error {
  background: rgba(233, 69, 96, 0.2);
  color: #ffc6cf;
}

/* Trivia */
.trivia-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
}
.trivia-modal.hidden {
  display: none;
}
.trivia-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.trivia-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 22px;
  border-radius: 22px 22px 0 0;
  color: #fff;
  background: var(--dashboard-blue);
  animation: triviaSlide 0.35s ease;
}
@keyframes triviaSlide {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
.trivia-card h2 {
  font-family: Georgia, serif;
  font-size: 20px;
  margin-bottom: 8px;
  text-align: center;
}
.trivia-card p {
  font-size: 14px;
  margin: 10px 0 14px;
  text-align: center;
}
.trivia-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.trivia-answer {
  padding: 14px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}
.trivia-answer:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.trivia-feedback {
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 14px;
}
.trivia-gallery-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: var(--gold);
  color: #171932;
  font-weight: 700;
  cursor: pointer;
}
.trivia-close-btn {
  display: block;
  margin: 10px auto 0;
  background: transparent;
  color: #fff;
  border: none;
  opacity: 0.7;
  cursor: pointer;
  font-size: 13px;
}

/* Confetti */
.confetti-piece {
  position: fixed;
  top: 30%;
  width: 8px;
  height: 12px;
  z-index: 1100;
  border-radius: 2px;
  animation: confettiFall 1.4s ease-out forwards;
  pointer-events: none;
}
@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0);
    opacity: 1;
  }
  100% {
    transform: translateY(60vh) rotate(540deg);
    opacity: 0;
  }
}

/* Galerie visiteur */
.gallery-avatar img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: none;
  border: 2px solid #fff;
}
.gallery-empty {
  color: #fff;
  text-align: center;
  padding: 24px;
}
.gallery-empty a {
  color: var(--gold);
}

/* About */
.about-content {
  color: #fff;
}
.about-content h1 {
  font-family: Georgia, serif;
  font-size: 26px;
  margin-bottom: 16px;
  text-align: left;
  padding: 0 4px;
}
.about-block {
  padding: 16px;
  margin-bottom: 14px;
}
.about-block h2 {
  font-family: Georgia, serif;
  font-size: 18px;
  margin: 14px 0 8px;
}
.about-block h2:first-child {
  margin-top: 0;
}
.about-block p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
}
.about-placeholder {
  opacity: 0.6;
  font-style: italic;
  font-size: 12px;
}
.about-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 8px;
}
.about-photo {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}
@media (min-width: 640px) {
  .about-gallery {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .about-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Partners */
.partners-content {
  color: #fff;
}
.partners-content h1 {
  font-family: Georgia, serif;
  font-size: 26px;
  margin-bottom: 16px;
  text-align: left;
  padding: 0 4px;
}
.partners-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .partners-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .partners-list {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1280px) {
  .partners-list {
    grid-template-columns: repeat(5, 1fr);
  }
}
.partner-card {
  padding: 12px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s;
}
.partner-card:hover {
  transform: translateY(-2px);
}
.partner-card img {
  width: 100%;
  height: 72px;
  object-fit: contain;
  background: #fff;
  padding: 6px;
  border-radius: 8px;
}
.partner-card .partner-name {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.9;
}
.partner-card .partner-fallback {
  font-size: 13px;
  font-weight: 700;
}
.partners-empty {
  text-align: center;
  color: #fff;
  padding: 24px;
  opacity: 0.7;
}

/* Leaflet popup style override */
.leaflet-popup-content {
  margin: 10px 12px;
}
.leaflet-container {
  font-family: inherit;
}

/* ============================================================ */
/* VISITEUR — Corrections layout (map / passport / scanner)     */
/* ============================================================ */

/* ---- Z-index hiérarchique ---- */
.dashboard-page.visitor-page .leaflet-pane,
.dashboard-page.visitor-page .leaflet-top,
.dashboard-page.visitor-page .leaflet-bottom {
  z-index: 400;
}
.dashboard-page.visitor-page .leaflet-popup {
  z-index: 700;
}

.menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 3500;
}
.menu-overlay.hidden {
  display: none;
}

.dashboard-page.visitor-page .menu-panel,
.dashboard-page .menu-panel {
  z-index: 4000;
}
.dashboard-page .expositor-header {
  z-index: 30;
}
.dashboard-page.visitor-page .menu-btn {
  position: relative;
  z-index: 4100;
}

/* ---- Carte : recherche unique ---- */
.visitor-map-section {
  position: relative;
  padding: 0 !important;
  overflow: hidden;
}
.map-search-wrap {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 1200;
}
.map-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #171932;
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.map-search-icon {
  width: 18px;
  height: 18px;
  stroke: #171932;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}
.map-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: #171932;
  min-width: 0;
}
.map-search-input::placeholder {
  color: #8a8a8a;
  font-weight: 500;
}
.map-search-list {
  list-style: none;
  padding: 6px;
  margin: 8px 0 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  max-height: 50dvh;
  overflow-y: auto;
}
.map-search-list.hidden {
  display: none;
}

/* ---- Carte : contrôles bas droite ---- */
.map-controls {
  position: absolute;
  right: 12px;
  bottom: 100px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.map-ctrl-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: #171932;
  border: none;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-ctrl-btn svg {
  width: 20px;
  height: 20px;
  stroke: #171932;
  fill: none;
  stroke-width: 2;
}
.locate-me-btn {
  position: static;
}

/* Cache zoom Leaflet par défaut (par sécurité) */
.leaflet-control-zoom {
  display: none !important;
}

/* ---- Passeport : nouvelle composition ---- */
.passport-content {
  color: #fff;
  padding-bottom: 110px !important;
}
.passport-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 32px;
}
.passport-top-text {
  flex: 1;
  text-align: left;
}
.passport-kicker {
  font-size: 11px;
  letter-spacing: 3px;
  opacity: 0.7;
  display: block;
  margin-bottom: 6px;
}
.passport-visitor-name {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  opacity: 1;
}
.passport-edition-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  object-fit: contain;
  flex-shrink: 0;
}
.passport-progress-block {
  margin-bottom: 32px;
}
.passport-progress-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}
.passport-progress-count {
  font-size: 14px;
  font-weight: 700;
}
.passport-progress-pct {
  font-size: 13px;
  font-weight: 700;
  color: #9ad7ff;
}
.passport-content .passport-progress {
  height: 10px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  overflow: hidden;
  margin: 0;
}
.passport-content .passport-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #9ad7ff, #61c0ff);
  border-radius: 999px;
}
.passport-points-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 28px;
}
.passport-points-label {
  font-size: 14px;
  font-weight: 600;
}
.passport-points-chip {
  background: rgba(240, 181, 31, 0.85);
  color: #171932;
  font-weight: 700;
  font-size: 14px;
  padding: 4px 14px;
  border-radius: 999px;
  min-width: 40px;
  text-align: center;
}
.passport-badges-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 16px;
}
.passport-content .badge-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 6px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.passport-content .passport-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.passport-content .badge-card .badge-icon-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
  margin: 0 auto 6px;
}
.passport-content .badge-card[data-badge="amateur"] .badge-icon-img {
  width: 64px;
  height: 64px;
}
.passport-content .badge-card .badge-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
  color: #fff;
}
.passport-content .badge-card .badge-need {
  font-size: 9px;
  opacity: 0.75;
  color: #fff;
}
.passport-content .badge-card.is-locked {
  opacity: 0.45;
}
.passport-content .badge-card.is-unlocked {
  background: rgba(255, 255, 255, 0.18);
}

.passport-reset-link {
  display: block;
  text-align: center;
  margin: 32px auto 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  text-decoration: underline;
}

/* ---- Scanner : nouveau layout ---- */
.scanner-content {
  color: #fff;
  padding-bottom: 110px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100dvh - 200px);
}
.scanner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.scanner-kicker {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
}
.scanner-edition-badge {
  width: 56px;
  height: 56px;
  background: transparent;
  padding: 0;
  object-fit: contain;
  border-radius: 0;
}
.scanner-content .scanner-help {
  text-align: center;
  font-size: 13px;
  opacity: 0.9;
  margin: 0 auto 24px;
  max-width: 280px;
  line-height: 1.4;
}
.scanner-frame {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto 18px;
  background: #fff;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.scanner-frame .qr-reader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  max-width: none;
  border-radius: 0;
  background: transparent;
  min-height: 0;
}
.scanner-frame .qr-reader video,
.scanner-frame .qr-reader > div {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}
.scanner-frame-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 90px;
  transform: translate(-50%, -50%);
  stroke: #c9c9c9;
  fill: none;
  stroke-width: 1.6;
  pointer-events: none;
}
.scanner-frame:has(video) .scanner-frame-icon {
  display: none;
}
.scanner-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid var(--dashboard-blue);
  pointer-events: none;
}
.scanner-corner.tl {
  top: 14px;
  left: 14px;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 10px;
}
.scanner-corner.tr {
  top: 14px;
  right: 14px;
  border-left: none;
  border-bottom: none;
  border-top-right-radius: 10px;
}
.scanner-corner.bl {
  bottom: 14px;
  left: 14px;
  border-right: none;
  border-top: none;
  border-bottom-left-radius: 10px;
}
.scanner-corner.br {
  bottom: 14px;
  right: 14px;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: 10px;
}

.scanner-content .scanner-start-btn,
.scanner-content .scanner-stop-btn {
  display: block;
  margin: 0 auto 14px;
  padding: 12px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--gold);
  color: #171932;
  font-weight: 700;
  font-size: 14px;
}
.scanner-content .scanner-stop-btn {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.scanner-content .scanner-manual {
  max-width: 320px;
  margin: 14px auto 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.scanner-content .scanner-manual-row {
  display: flex;
  gap: 8px;
}
.scanner-content .scanner-manual-row input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13px;
  text-align: center;
}
.scanner-content .scanner-manual-row input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.scanner-content .scanner-manual-row button {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: #fff;
  color: var(--dashboard-blue);
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
}
.manual-matches {
  list-style: none;
  margin: 8px 0 0;
  padding: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: #171932;
  border-radius: 12px;
  max-height: 200px;
  overflow-y: auto;
}
.manual-matches.hidden {
  display: none;
}
.manual-matches li {
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.manual-matches li:hover {
  background: rgba(35, 57, 125, 0.1);
}

/* ---- Nav inférieur : QR central toujours visible ---- */
.dashboard-page.visitor-page .visitor-dashboard {
  padding-bottom: calc(38px + env(safe-area-inset-bottom, 0px)) !important;
}
.dashboard-page.visitor-page .bottom-nav.visitor-nav {
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overflow: visible;
  z-index: 1000;
}
.dashboard-page.visitor-page .visitor-nav .nav-scanner {
  z-index: 1010;
}

/* Utilitaire global */
.hidden {
  display: none !important;
}

/* ============================================================ */
/* CORRECTIONS GLOBALES — Juin 2026                              */
/* ============================================================ */

/* Empêcher le zoom auto iOS sur focus input (font-size >= 16px) */
input,
select,
textarea,
button {
  font-size: 16px;
}
.dashboard-page .expo-category select {
  font-size: 12px;
}

/* INDEX — pas de scroll, titre sur une ligne, logo 13 décollé */
.home-screen {
  overflow: hidden;
}
body:not(.dashboard-page) .home-screen {
  padding-top: 170px;
  padding-bottom: 24px;
}
.home-screen .top-header {
  top: 56px;
}
.home-screen .welcome-card {
  padding: 22px 24px 26px;
}
.home-screen .welcome-card h1 {
  font-size: 26px;
  white-space: nowrap;
  margin-bottom: 14px;
}
.home-screen .description {
  font-size: 13px;
  margin-bottom: 18px;
}
.home-screen .visitor-form label {
  margin-bottom: 8px;
}
.home-screen .action-zone {
  height: 78px;
  margin-top: 14px;
}
.home-screen .separator {
  margin-bottom: 14px;
}

/* edition-row : logo 13 plus éloigné du texte */
.edition-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 12px;
}
.edition-row .edition {
  margin-bottom: 0;
}
.edition-badge-13 {
  width: 38px;
  height: 38px;
  object-fit: contain;
  margin-left: 4px;
}

/* CARTE — monochrome doux : fond blanc, rues visibles en gris foncé */
.dashboard-page.visitor-page .leaflet-tile-pane {
  filter: grayscale(1) contrast(1.35) brightness(1.08);
}
/* Contrôles : plus proches du footer */
.map-controls {
  bottom: 96px !important;
}
.map-ctrl-btn {
  width: 44px;
  height: 44px;
  background: #000 !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}
.map-ctrl-btn svg {
  stroke: #fff !important;
}

/* Séparation header / map / footer sur mobile & tablette (carte visiteur) */
@media (max-width: 1199px) {
  .dashboard-page.visitor-page.map-page .expositor-header {
    border-bottom: 1px solid var(--dashboard-blue, #23397d);
  }
  .dashboard-page.visitor-page.map-page .bottom-nav {
    border-top: 1px solid var(--dashboard-blue, #23397d);
  }
}

/* Barre de progression passeport un peu plus épaisse */
.passport-content .passport-progress {
  height: 12px !important;
}

/* Marqueur "ma position" persistant */
.afg-me-marker {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1e6cff;
  border: 3px solid #fff;
  box-shadow:
    0 0 0 4px rgba(30, 108, 255, 0.25),
    0 2px 6px rgba(0, 0, 0, 0.3);
}

/* SCANNER — bouton central parfaitement centré */
.dashboard-page.visitor-page .visitor-nav .nav-scanner {
  margin-top: -38px;
}
.dashboard-page.visitor-page .visitor-nav .nav-scanner .nav-icon {
  transform: none;
  display: block;
  margin: 0;
}

/* PASSEPORT — logo 13 SANS fond blanc */
.passport-edition-badge {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  width: 64px !important;
  height: 64px !important;
  object-fit: contain;
}

/* SCANNER — supprimer le jaune, palette bleue */
.scanner-content .scanner-start-btn {
  background: #fff !important;
  color: var(--dashboard-blue) !important;
}
.trivia-gallery-btn {
  background: #fff !important;
  color: var(--dashboard-blue) !important;
}
.passport-points-chip {
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--dashboard-blue) !important;
}

/* BURGER MENU — style maquette (pills bleues empilées) */
.menu-panel {
  background: transparent !important;
  box-shadow: none !important;
  padding: 10px 14px !important;
  border-radius: 0 !important;
  gap: 10px !important;
  width: 240px !important;
  top: 100px !important;
}
.menu-panel a {
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid var(--dashboard-blue);
  color: var(--dashboard-blue) !important;
  border-radius: 999px !important;
  padding: 12px 18px !important;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}
.menu-panel a:hover {
  background: var(--dashboard-blue) !important;
  color: #fff !important;
}

/* QR MODAL EXPOSANT */
.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-modal.hidden {
  display: none;
}
.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
.qr-modal-card {
  position: relative;
  background: #fff;
  border-radius: 22px;
  padding: 26px 22px;
  max-width: 340px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.qr-modal-card h2 {
  font-family: Georgia, serif;
  color: var(--dashboard-blue);
  margin-bottom: 8px;
  font-size: 20px;
}
.qr-modal-card p {
  font-size: 12px;
  color: #555;
  margin-bottom: 14px;
  word-break: break-all;
}
.qr-modal-card img {
  width: 240px;
  height: 240px;
  display: block;
  margin: 0 auto 16px;
}
.qr-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}
.qr-modal-actions .qr-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--dashboard-blue);
  color: #fff;
  border: none;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(35, 57, 125, 0.25);
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}
.qr-modal-actions .qr-icon-btn:hover {
  transform: translateY(-1px);
  background: #1a2b6b;
}
.qr-modal-actions .qr-icon-btn svg {
  display: block;
}
.qr-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #888;
}

/* Trivia popup au-dessus de TOUT */
.trivia-modal {
  z-index: 6000 !important;
  align-items: center !important;
}
.trivia-card {
  border-radius: 22px !important;
  max-width: 360px;
  margin: 0 16px;
}
.trivia-feedback-correction {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.9;
}

/* iOS Safari : éviter le zoom auto au focus des champs (font-size >= 16px) */
input,
textarea,
select {
  font-size: 16px;
}
@media (max-width: 768px) {
  input,
  textarea,
  select,
  .scanner-input,
  .search-input,
  .form-input {
    font-size: 16px !important;
  }
}

/* ============================================================
   RESPONSIVE FIXES — Gallery overflow, map blue line, tablet/desktop
   ============================================================ */

/* Base: no horizontal scroll, predictable box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
img,
video {
  max-width: 100%;
  height: auto;
}

/* Gallery (fiche d'un lieu) — empêcher le débordement et la superposition */
.gallery-page .expositor-dashboard,
.gallery-page .gallery-content {
  overflow-x: hidden;
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
}
.gallery-page .home-place-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: nowrap;
}
.gallery-page .home-place-header > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}
.gallery-page .home-place-header h1 {
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  line-height: 1.15;
}
.gallery-page .gallery-avatar-img {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  transform: none;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: #fff;
}
.gallery-page .home-description,
.gallery-page .home-description p,
.place-description,
.gallery-description {
  width: 100%;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.gallery-page .home-place-slider {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.gallery-page .home-place-photo img,
.gallery-page .home-artworks-list img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* PLACE PHOTOS — horizontal carousel on all breakpoints */
.home-place-slider,
.place-photos {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.home-place-slider::-webkit-scrollbar,
.place-photos::-webkit-scrollbar {
  display: none;
}
.home-place-photo,
.place-photo-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 72%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
}
.home-place-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}
@media (min-width: 768px) and (max-width: 1199px) {
  .home-place-photo,
  .place-photo-item {
    width: 45%;
  }
}
@media (min-width: 1200px) {
  .home-place-photo,
  .place-photo-item {
    width: 32%;
  }
}

/* Desktop/tablet header nav for visitor gallery — hidden on mobile */
.desktop-nav {
  display: none;
}
@media (min-width: 768px) {
  .gallery-page .desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    margin-right: 18px;
  }
  .gallery-page .desktop-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0.9;
  }
  .gallery-page .desktop-nav a:hover {
    opacity: 1;
    text-decoration: underline;
  }
}

/* (supprimé : les bordures de séparation sont gérées par le media-query max-width:1199px ci-dessus) */

/* Tablette (iPad) — conteneur centré */
@media (min-width: 768px) and (max-width: 1199px) {
  body {
    background: #0b1838;
  }
  .app-screen,
  .expositor-app-screen {
    max-width: 820px !important;
    margin: 0 auto !important;
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.35);
  }
  .bottom-nav,
  .bottom-nav.visitor-nav {
    max-width: 820px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
    display: flex !important;
  }
  /* Keep visitor bottom-nav visible on tablet across all visitor pages */
  .dashboard-page.visitor-page .bottom-nav.visitor-nav {
    display: flex !important;
  }
  /* Ensure content isn't hidden by the bottom nav on tablet */
  .visitor-page .expositor-dashboard,
  .visitor-page .gallery-content,
  .gallery-page .expositor-dashboard,
  .gallery-page .gallery-content {
    padding-bottom: calc(105px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .menu-panel {
    right: max(14px, calc(50% - 410px + 14px)) !important;
  }
  .dashboard-page.visitor-page.map-page #map,
  .dashboard-page.visitor-page.map-page .leaflet-container {
    height: calc(100vh - 180px) !important;
  }
  .gallery-page .home-artworks-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

/* Desktop — conteneur centré, mise en page lisible */
@media (min-width: 1200px) {
  body {
    background: #0b1838;
  }
  .app-screen,
  .expositor-app-screen {
    max-width: 1400px !important;
    margin: 0 auto !important;
    min-height: 100vh;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.45);
  }
  /* Desktop: no bottom nav, no inline header links — burger only */
  .dashboard-page.visitor-page .bottom-nav,
  .dashboard-page.visitor-page .bottom-nav.visitor-nav {
    display: none !important;
  }
  .visitor-page .desktop-nav,
  .gallery-page .desktop-nav {
    display: none !important;
  }
  .visitor-page .expositor-dashboard,
  .visitor-page .gallery-content,
  .gallery-page .expositor-dashboard,
  .gallery-page .gallery-content {
    padding-bottom: 48px !important;
  }
  .menu-panel {
    right: max(20px, calc(50% - 700px + 20px)) !important;
    z-index: 9000;
  }
  .dashboard-page.visitor-page.map-page #map,
  .dashboard-page.visitor-page.map-page .leaflet-container {
    height: 100% !important;
    min-height: 600px;
  }
  .gallery-page .home-artworks-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  /* Keep carousel behavior on desktop too */
  .gallery-page .home-place-slider,
  .home-dashboard-page .home-place-slider {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
  }

  /* Desktop map layout — two columns */
  .visitor-map-section.has-desktop-layout {
    padding: 24px !important;
    background: #23397d;
  }
  .desktop-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
    gap: 28px;
    max-width: 1400px;
    min-height: 680px;
    margin: 0 auto;
  }
  .desktop-map-panel,
  .desktop-place-list {
    min-width: 0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
  }
  .desktop-map-panel {
    min-height: 680px;
  }
  .desktop-place-list {
    background: #fff;
    color: #23397d;
    max-height: 680px;
    overflow-y: auto;
    padding: 8px 0;
  }
  .desktop-place-list .dpl-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(35, 57, 125, 0.08);
    cursor: pointer;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    transition: background 0.15s;
  }
  .desktop-place-list .dpl-item:hover,
  .desktop-place-list .dpl-item.is-active {
    background: rgba(35, 57, 125, 0.07);
  }
  .desktop-place-list .dpl-item .dpl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2a6df4;
    flex-shrink: 0;
  }
  .desktop-place-list .dpl-item.is-visited .dpl-dot {
    background: #21b06b;
  }
  .desktop-place-list .dpl-item .dpl-text {
    min-width: 0;
  }
  .desktop-place-list .dpl-item .dpl-name {
    font-weight: 700;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .desktop-place-list .dpl-item .dpl-addr {
    font-size: 12px;
    opacity: 0.7;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ============================================================ */
/* ================= ARTWORK CARDS (v2) ======================= */
/* Shared card layout for visitor gallery + expositor home.     */
/* Overrides legacy horizontal .home-artwork-card layout.       */
/* ============================================================ */

.home-dashboard-page .home-artworks-list {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding-bottom: 60px;
}

.home-dashboard-page .home-artwork-card.artwork-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 82%;
  max-width: 360px;
  padding: 14px 14px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  grid-template-columns: none;
  gap: 0;
  align-items: stretch;
  min-height: auto;
}

.home-dashboard-page .home-artwork-card.artwork-card::before {
  content: none;
}

.home-dashboard-page .artwork-card .artwork-card__image-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: none;
}

.home-dashboard-page .artwork-card .artwork-card__image {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.home-dashboard-page .artwork-card .artwork-card__footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px 4px;
}

.home-dashboard-page .artwork-card .artwork-card__artist {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.home-dashboard-page .artwork-card .artwork-card__open {
  position: static;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
}

/* Tablet — 2 per row */
@media (min-width: 768px) and (max-width: 1199px) {
  .home-dashboard-page .home-artworks-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    justify-items: center;
  }
  .home-dashboard-page .home-artwork-card.artwork-card {
    width: 100%;
    max-width: 340px;
  }
  .gallery-page .home-artworks-list {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Desktop — 3 per row */
@media (min-width: 1200px) {
  .home-dashboard-page .home-artworks-list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    justify-items: center;
  }
  .home-dashboard-page .home-artwork-card.artwork-card {
    width: 100%;
    max-width: 320px;
  }
  .gallery-page .home-artworks-list {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Bigger, visible Réserver button in the artwork modal */
.home-dashboard-page .reserve-btn,
.home-dashboard-page .artwork-modal__reserve {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 42px;
  margin-top: 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  background: #ffffff;
  color: #23397d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  opacity: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

/* ===================================================== */
/* HERO HOME — nouvelle composition (titre / logo 13 / édition) */
/* ===================================================== */
.home-screen .welcome-card .hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.home-screen .welcome-card .hero-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 0.95;
  font-weight: 500;
  margin: 0;
  text-align: center;
  white-space: nowrap;
}
.home-screen .welcome-card .hero-badge-13 {
  width: 96px;
  height: auto;
  display: block;
  transform: rotate(-12deg);
  margin: 6px 0 4px;
  pointer-events: none;
}
.home-screen .welcome-card .hero-edition {
  font-size: 12px;
  letter-spacing: 1.3px;
  margin: 0;
  text-align: center;
}
@media (max-width: 380px), (max-height: 760px) {
  .home-screen .welcome-card .hero-title {
    font-size: 30px;
  }
  .home-screen .welcome-card .hero-badge-13 {
    width: 78px;
  }
  .home-screen .welcome-card .hero-stack {
    gap: 10px;
    margin-bottom: 14px;
  }
}

/* Logo Go for Art — légèrement plus grand (header et bande noire d'accueil) */
.main-logo {
  width: 120px;
}
.home-screen .main-logo {
  width: 122px;
}

/* ===== Visitor profile page (Mode OFF) ===== */
.visitor-profile-section {
  padding: 8px 16px 120px;
}

.visitor-profile-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 4px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 14px;
}
.visitor-profile-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.visitor-profile-text .passport-kicker {
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}
.visitor-profile-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  outline: none;
  overflow-wrap: anywhere;
  line-height: 1.2;
}
.visitor-profile-bio {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  resize: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
}
.visitor-profile-bio::placeholder {
  color: rgba(255, 255, 255, 0.55);
}
.visitor-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  color: #23397d;
  font-size: 30px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}
@media (max-width: 360px) {
  .visitor-profile-avatar {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
  .visitor-profile-name {
    font-size: 19px;
  }
}

.visitor-profile-save {
  display: block;
  margin: 0 0 20px;
  background: #fff;
  color: #23397d;
  border: none;
  border-radius: 999px;
  padding: 9px 22px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}
.visitor-profile-subtitle {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin: 6px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.visitor-submissions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.visitor-submissions-empty {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 20px;
  font-size: 14px;
}
.vsub-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px;
}
.vsub-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
}
.vsub-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.vsub-body {
  flex: 1;
  min-width: 0;
  color: #fff;
}
.vsub-body h3 {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.vsub-addr {
  margin: 0 0 4px;
  font-size: 12px;
  opacity: 0.7;
  overflow-wrap: anywhere;
}
.vsub-status {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f5b342;
  color: #1a1a1a;
  font-weight: 600;
}

/* ===== Submission modal (Proposer un lieu) ===== */
.vsub-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 17, 48, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.vsub-form {
  background: #fff;
  color: #1a1a1a;
  width: 100%;
  max-width: 520px;
  border-radius: 18px 18px 0 0;
  padding: 16px 16px 24px;
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: system-ui, sans-serif;
  box-sizing: border-box;
}
.vsub-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.vsub-head h3 {
  margin: 0;
  flex: 1;
  font-size: 17px;
  min-width: 0;
}
.vsub-head [data-close] {
  border: none;
  background: #eee;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}
.vsub-form label {
  display: block;
  font-size: 12px;
  opacity: 0.7;
  margin: 6px 0 3px;
}
.vsub-form input,
.vsub-form textarea,
.vsub-form select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  margin: 0;
}
.vsub-form textarea {
  resize: vertical;
  min-height: 56px;
}
.vsub-form input[type="file"] {
  padding: 6px;
  font-size: 13px;
  border: 1px dashed #ccc;
}
.location-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.location-fields input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.vsub-geo-btn {
  display: inline-block;
  margin: 0 0 10px;
  padding: 7px 12px;
  border: 1px solid #23397d;
  background: #fff;
  color: #23397d;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.vsub-msg {
  font-size: 13px;
  margin: 6px 0;
}
.vsub-submit {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: none;
  border-radius: 999px;
  background: #23397d;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  margin-top: 6px;
}
@media (max-width: 480px) {
  .vsub-form {
    width: calc(100vw - 16px);
    margin: 0 8px;
    padding: 14px 14px 20px;
    border-radius: 16px 16px 0 0;
  }
  .vsub-form textarea {
    min-height: 48px;
  }
  .vsub-form label {
    margin: 5px 0 3px;
  }
}

/* Facade / space photo inputs — hint text + previews */
.vsub-form .vsub-hint {
  font-size: 12px;
  color: #666;
  margin: 0 0 6px;
  line-height: 1.35;
}
.vsub-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 4px;
}
.vsub-prev-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  background: #eee;
  flex-shrink: 0;
}
.vsub-previews--single .vsub-prev-item {
  width: 120px;
  height: 120px;
}
.vsub-prev-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vsub-prev-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 15px;
  line-height: 20px;
  cursor: pointer;
  padding: 0;
}

/* Visitor place — facade hero + espace gallery */
.visitor-facade {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #eee;
}
.visitor-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.visitor-space-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.visitor-space-item {
  flex: 0 0 78%;
  max-width: 320px;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  border: none;
  background: #eee;
  cursor: pointer;
  scroll-snap-align: start;
}
.visitor-space-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) {
  .visitor-space-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }
  .visitor-space-item {
    flex: initial;
    max-width: none;
  }
}
@media (min-width: 1200px) {
  .visitor-space-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Lightbox */
.visitor-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}
.visitor-lightbox--open {
  display: flex;
}
.visitor-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.visitor-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* ============================================================
   GUIDE ARTISTIQUE (Marathon) — marqueurs numérotés + liste
============================================================ */
.afg-num-wrap {
  background: transparent !important;
  border: none !important;
}
.afg-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
  position: relative;
}
.afg-num::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid currentColor;
}
.afg-num-blue {
  background: #23397d;
}
.afg-num-blue::after {
  color: #23397d;
}
.afg-num-green {
  background: #2bb673;
}
.afg-num-green::after {
  color: #2bb673;
}
.afg-num-artist {
  background: #e98a3a;
}
.afg-num-artist::after {
  color: #e98a3a;
}
.afg-num-artisan {
  background: #8b5cf6;
}
.afg-num-artisan::after {
  color: #8b5cf6;
}
.afg-num-designer {
  background: #ec4899;
}
.afg-num-designer::after {
  color: #ec4899;
}

/* Page Guide touristique */
.visitor-guide-section {
  padding: 12px 14px 110px;
}
.guide-header {
  text-align: center;
  margin-bottom: 10px;
}
.guide-title {
  color: #23397d;
  margin: 6px 0 2px;
  font-size: 22px;
  font-weight: 700;
}
.guide-subtitle {
  color: #5b6280;
  margin: 0 0 10px;
  font-size: 14px;
}
.guide-search {
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #d4d8e6;
  background: #fff;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(20, 30, 80, 0.06);
}
.guide-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.guide-map {
  width: 100%;
  height: 280px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(20, 30, 80, 0.1);
}
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.guide-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(20, 30, 80, 0.06);
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease;
  border: 2px solid transparent;
}
.guide-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(20, 30, 80, 0.12);
}
.guide-item.is-active {
  border-color: #23397d;
  box-shadow: 0 4px 14px rgba(35, 57, 125, 0.2);
}
.guide-item.is-visited .guide-num {
  background: #2bb673;
}
.guide-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #23397d;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.guide-body {
  min-width: 0;
}
.guide-name {
  margin: 0;
  font-size: 15px;
  color: #1c2240;
  font-weight: 600;
}
.guide-addr {
  margin: 2px 0 0;
  font-size: 13px;
  color: #6b7290;
}
.guide-empty {
  text-align: center;
  color: #888;
  padding: 24px;
}

@media (min-width: 900px) {
  .guide-layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .guide-map {
    flex: 1 1 55%;
    height: 540px;
    position: sticky;
    top: 12px;
  }
  .guide-list {
    flex: 1 1 45%;
    max-height: 540px;
    overflow-y: auto;
    padding-right: 6px;
  }
}

/* ===== Visitor entry — mode-based visibility ===== */
.visitor-entry-annuaire,
.visitor-entry-marathon {
  display: none;
}
body.app-mode-annuaire .visitor-entry-annuaire {
  display: block;
}
body.app-mode-marathon .visitor-entry-marathon {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

/* ===== Mode-based content visibility (home hero) ===== */
.mode-marathon-only,
.mode-annuaire-only {
  display: none;
}
body.app-mode-marathon .mode-marathon-only {
  display: block;
}
body.app-mode-annuaire .mode-annuaire-only {
  display: block;
}
body.app-mode-marathon .hero-stack.mode-marathon-only,
body.app-mode-annuaire .hero-stack.mode-annuaire-only {
  display: flex;
  flex-direction: column;
  align-items: center;
}
body.app-mode-marathon span.mode-marathon-only,
body.app-mode-annuaire span.mode-annuaire-only {
  display: inline;
}

/* QR actions inside artwork modal (exposant dashboard) */
.artwork-qr-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.artwork-qr-actions .qr-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #23397d;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.15s,
    background 0.15s;
}
.artwork-qr-actions .qr-icon-btn:hover {
  transform: translateY(-1px);
  background: #1a2b6b;
}
.artwork-qr-actions .qr-icon-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}
.artwork-qr-actions .qr-icon-btn.is-copied {
  background: #21b06b;
}
.qr-modal-actions #qrModalCopy {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

/* ============ Guide touristique — Formulaire visiteur ============ */
.guide-request-section {
  padding: 20px 16px 120px;
}
.guide-request-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 22px;
  backdrop-filter: blur(14px);
  color: #fff;
}
.guide-request-title {
  margin: 0 0 8px;
  font-size: 26px;
  text-align: center;
}
.guide-request-intro {
  margin: 0 0 14px;
  text-align: center;
  opacity: 0.92;
  line-height: 1.4;
}
.guide-request-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: center;
  font-size: 13px;
  opacity: 0.92;
  margin-bottom: 14px;
}
.guide-request-contact a {
  color: #fff;
  text-decoration: underline;
}
.guide-request-form {
  display: grid;
  gap: 12px;
}
.guide-request-form .grf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.guide-request-form label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  gap: 6px;
}
.guide-request-form input,
.guide-request-form textarea {
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.92);
  color: #23397d;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}
.guide-request-form textarea {
  resize: vertical;
  min-height: 110px;
}
.guide-request-form .grf-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.guide-request-form .grf-btn-primary {
  flex: 1 1 auto;
  min-width: 160px;
  padding: 12px 20px;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #23397d;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.guide-request-form .grf-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.guide-request-form .grf-btn-ghost {
  padding: 12px 20px;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-weight: 600;
  cursor: pointer;
}
.grf-msg {
  margin: 4px 0 0;
  text-align: center;
  font-size: 14px;
  min-height: 18px;
}
.grf-msg-ok {
  color: #b8f7c8;
}
.grf-msg-err {
  color: #ffc9c9;
}
@media (max-width: 520px) {
  .guide-request-form .grf-row {
    grid-template-columns: 1fr;
  }
}

/* ============ Carte visiteur — supprime la bande bleue sous la carte (mobile) ============ */
@media (max-width: 900px) {
  body.map-page .expositor-dashboard.visitor-map-section,
  body.visitor-page .visitor-map-section {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }
  body.visitor-page .visitor-map-section .leaflet-container,
  body.visitor-page #visitorMap {
    height: calc(100dvh - 64px - 82px - env(safe-area-inset-bottom)) !important;
    min-height: 320px;
    border-radius: 0 !important;
  }
}

/* ============================================================ */
/* CARTE VISITEUR — refonte design (mobile + desktop)           */
/* ============================================================ */

/* Barre de recherche : fond bleu, texte blanc, effet flottant */
.map-page .map-search-bar {
  background: var(--dashboard-blue, #23397d) !important;
  color: #fff !important;
  border-radius: 999px !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25) !important;
  border: none !important;
}
.map-page .map-search-icon {
  stroke: #fff !important;
}
.map-page .map-search-input {
  color: #fff !important;
  background: transparent !important;
  font-weight: 600;
}
.map-page .map-search-input::placeholder {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
}

/* Chips de filtre : blanc/noir par défaut, bleu/blanc actif, contour noir */
.map-page .map-chip {
  background: #fff !important;
  color: #000 !important;
  border: 1.5px solid #000 !important;
  box-shadow: none !important;
}
.map-page .map-chip.is-active {
  background: var(--dashboard-blue, #23397d) !important;
  color: #fff !important;
  border: 1.5px solid #000 !important;
}

/* --------- MOBILE : carte plein écran jusqu'à la nav basse --------- */
@media (max-width: 899px) {
  body.map-page .app-screen.expositor-app-screen {
    background: #fff !important;
  }
  body.map-page .expositor-dashboard.visitor-map-section {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    /* Header = 112px, bottom-nav ≈ 82px */
    height: calc(100dvh - 112px - 82px - env(safe-area-inset-bottom, 0px)) !important;
    min-height: 0 !important;
    overflow: hidden;
  }
  body.map-page #visitorMap,
  body.map-page .visitor-map,
  body.map-page .visitor-map-section .leaflet-container {
    height: 100% !important;
    min-height: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
  }
  /* Contrôles au-dessus de la nav basse (le bouton Scanner dépasse) */
  body.map-page .map-controls {
    bottom: 100px !important;
    right: 14px !important;
  }
}

/* --------- DESKTOP : zone bleue rectangulaire 75/25 --------- */
@media (min-width: 1200px) {
  /* Écran pleine largeur sur PC : pas de frange blanche à droite */
  body.map-page .app-screen.expositor-app-screen {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  body.map-page .visitor-map-section.has-desktop-layout {
    padding: 0 !important;
    margin: 0 !important;
    background: var(--dashboard-blue, #23397d) !important;
    border-radius: 0 !important;
    /* Colle sous le header (112px) et occupe tout le reste */
    height: calc(100vh - 112px) !important;
    min-height: 0 !important;
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
  }

  /* Barre de recherche : en haut de la zone bleue, pleine largeur, blanche sur PC */
  body.map-page .visitor-map-section.has-desktop-layout > .map-search-wrap {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    padding: 16px 24px 0 !important;
    z-index: 5;
  }
  body.map-page .visitor-map-section.has-desktop-layout .map-search-bar {
    background: #fff !important;
    color: #171932 !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 999px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25) !important;
  }
  body.map-page .visitor-map-section.has-desktop-layout .map-search-icon {
    stroke: #171932 !important;
  }
  body.map-page .visitor-map-section.has-desktop-layout .map-search-input {
    color: #171932 !important;
    background: transparent !important;
    font-weight: 600;
  }
  body.map-page .visitor-map-section.has-desktop-layout .map-search-input::placeholder {
    color: #6b6b6b !important;
    font-weight: 500;
  }

  /* Layout : 75% carte / 25% liste, fond bleu jusqu'au bord */
  body.map-page .desktop-map-layout {
    display: grid !important;
    grid-template-columns: 75% 25% !important;
    gap: 18px !important;
    max-width: none !important;
    width: 100% !important;
    flex: 1 1 auto;
    height: auto !important;
    min-height: 0 !important;
    padding: 18px 0 0 0 !important;
    box-sizing: border-box;
  }
  body.map-page .desktop-map-panel,
  body.map-page .desktop-place-list {
    height: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
    border-radius: 0 !important;
  }
  body.map-page .desktop-map-panel {
    position: relative;
    background: #fff;
    overflow: hidden;
  }
  body.map-page .desktop-map-panel .visitor-map,
  body.map-page .desktop-map-panel #visitorMap,
  body.map-page .desktop-map-panel .leaflet-container {
    height: 100% !important;
    min-height: 0 !important;
  }

  /* Liste : fond blanc pour distinguer du fond bleu, sans bande latérale droite */
  body.map-page .desktop-place-list {
    background: #fff;
    overflow-y: auto;
    padding: 0 0 0 18px;
    color: #171932;
  }
  body.map-page .desktop-place-list .map-search-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }
  body.map-page .desktop-place-list .map-search-item {
    background: #fff;
    border: 1px solid rgba(35, 57, 125, 0.18);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
  }
  body.map-page .desktop-place-list .map-search-item:hover {
    background: #f7f9ff;
  }
  body.map-page .desktop-place-list .map-search-empty {
    background: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    color: #171932;
  }

  /* Barre de recherche dans le panel gauche (non utilisée, maintenue au cas où) */
  body.map-page .desktop-map-panel .map-search-wrap {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 1200;
  }

  /* Contrôles carte visibles en bas droite */
  body.map-page .map-controls {
    bottom: 18px !important;
    right: 18px !important;
  }
}

/* =====================================================
   Corrections finales : sidebar, nav desktop exposant, artwork
===================================================== */

/* Aucune barre latérale blanche parasite : forcer le plein écran */
html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
}
body {
  overflow-x: hidden;
}

/* Masquer tout badge / iframe Lovable potentiel */
#lovable-badge,
.lovable-badge,
[data-lovable-badge],
iframe[title*="Lovable" i],
iframe[src*="lovable" i] {
  display: none !important;
}

/* Navigation desktop exposant (dans le header, à gauche du burger) */
.expositor-desktop-nav {
  display: none;
}
@media (min-width: 1024px) {
  .dashboard-page .expositor-header {
    gap: 18px;
  }
  .expositor-desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
    margin-right: 18px;
    margin-bottom: 4px;
  }
  .expositor-desktop-nav a {
    color: #171932;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition:
      border-color 0.15s,
      color 0.15s;
  }
  .expositor-desktop-nav a:hover {
    color: #23397d;
  }
  .expositor-desktop-nav a.is-active {
    color: #23397d;
    border-bottom-color: #23397d;
  }
}
@media (max-width: 1023px) {
  .expositor-desktop-nav {
    display: none !important;
  }
}

/* Page œuvre scannée : lien lieu d'exposition lisible, pas violet */
body.gallery-page .home-description a,
body.gallery-page #awPlaceLink {
  color: #23397d;
  font-weight: 600;
  text-decoration: underline;
}
body.gallery-page .home-description a:visited,
body.gallery-page #awPlaceLink:visited {
  color: #23397d;
}
body.gallery-page .home-description a:hover,
body.gallery-page #awPlaceLink:hover {
  color: #f0b51f;
}

/* =====================================================
   FIX FINAL — Suppression de la nav latérale droite (PC)
   La nav bottom-nav ne doit exister QUE sur mobile.
   Sur PC (≥900px), les actions sont dans le header
   (expositor-desktop-nav). Aucun rail vertical à droite.
===================================================== */
@media (min-width: 900px) {
  /* Retirer la colonne 110px réservée à l'ancienne nav droite */
  .dashboard-page .expositor-app-screen {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "header"
      "main" !important;
  }
  /* Cacher complètement la nav basse sur PC (exposant + visiteur) */
  .dashboard-page .bottom-nav,
  .dashboard-page.visitor-page .bottom-nav,
  .dashboard-page.visitor-page .bottom-nav.visitor-nav {
    display: none !important;
  }
  .dashboard-page .expositor-dashboard {
    border-top-right-radius: 28px;
    border-bottom-right-radius: 28px;
  }
}
@media (min-width: 1400px) {
  .dashboard-page .expositor-app-screen {
    grid-template-columns: 1fr !important;
  }
}

/* Carte visiteur PC : la liste blanche doit atteindre le bord droit,
   pas de bande blanche parasite derrière. */
@media (min-width: 1200px) {
  body.map-page .desktop-map-layout {
    padding-right: 0 !important;
  }
  body.map-page .desktop-place-list {
    padding-right: 18px !important;
    box-shadow: -1px 0 0 rgba(35, 57, 125, 0.15);
  }
}

/* ============================================
   Go for Art — Language selector, footer label,
   catalog modal (i18n.js companion styles)
============================================ */
.g4a-lang-selector {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(35, 57, 125, 0.15);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
  font-family: inherit;
}
.g4a-lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(15, 23, 42, 0.55);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.g4a-lang-btn:hover {
  color: #0f172a;
}
.g4a-lang-btn.is-active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
}
@media (max-width: 720px) {
  .g4a-lang-selector {
    display: none;
  }
}
.g4a-lang-inline {
  display: inline-flex;
  gap: 4px;
  padding: 10px 14px;
  margin-top: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  align-self: flex-start;
}
.g4a-lang-inline .g4a-lang-btn {
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: rgba(15, 23, 42, 0.7);
}
.g4a-lang-inline .g4a-lang-btn.is-active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

/* Footer credit: simple text, integrated into the blue page background */
.g4a-footer-label {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 16px;
  margin: 0;
  background: var(--dashboard-blue, #23397d) !important;
  color: #fff;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
@media (max-width: 720px) {
  .g4a-footer-label {
    padding: 14px 16px 90px;
  }
}

/* Public/app blue backgrounds must always remain rectangular. */
.dashboard-page .expositor-app-screen,
.dashboard-page .expositor-dashboard,
.dashboard-page .visitor-dashboard,
.dashboard-page .partners-content,
.dashboard-page .about-content,
.dashboard-page .gallery-content,
.dashboard-page .artworks-content {
  border-radius: 0 !important;
}

/* Hide body until translations applied when a non-FR language is stored */
html.g4a-hydrating body {
  visibility: hidden;
}

/* Catalog modal */
.g4a-catalog-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.g4a-catalog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}
.g4a-catalog-card {
  position: relative;
  width: min(940px, 94vw);
  height: min(88vh, 900px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px 20px 16px;
}
.g4a-catalog-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
  color: #0f172a;
}
.g4a-catalog-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(15, 23, 42, 0.06);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #0f172a;
}
.g4a-catalog-frame {
  flex: 1;
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: #f7f6f2;
}
.g4a-catalog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}
.g4a-mini {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #fff;
  color: #0f172a;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.g4a-mini:hover {
  background: rgba(15, 23, 42, 0.04);
}
.g4a-mini.g4a-primary {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}
.g4a-mini.g4a-primary:hover {
  background: #1e293b;
}
.g4a-mini.g4a-ghost {
  color: rgba(15, 23, 42, 0.7);
}
.g4a-catalog-loader {
  position: fixed;
  inset: auto 20px 20px auto;
  background: #0f172a;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 10001;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
}
@media (max-width: 640px) {
  .g4a-catalog-card {
    height: 92vh;
    padding: 16px 14px 12px;
  }
  .g4a-catalog-actions {
    justify-content: center;
  }
}

.dashboard-page .expositor-header {
  position: relative;
  height: 112px;
  background: var(--cream);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 28px 18px;
}

/* Header plus compact uniquement sur PC */
@media (min-width: 1200px) {
  .dashboard-page .expositor-header {
    height: 72px;
    padding: 0 34px 12px;
  }

  .dashboard-page .panel-logo {
    width: 100px;
    transform: translateY(24px);
  }

  .dashboard-page .menu-btn {
    transform: scale(0.9);
  }
}

.dashboard-page .header-logo-link {
  display: flex;
  align-items: flex-end;
}
