/* Dans les yeux : feuille de style unique.
   Les couleurs de la ville pourront surcharger ces jetons (réglage de la ville). */
:root {
  --display: "Syne", system-ui, sans-serif;
  --texte: "Newsreader", Georgia, serif;
  /* La typographie est un réglage : les pistes (app/css/typo/) ne changent que ces jetons */
  --ui: var(--display);
  --titre: var(--display);
  --titre-poids: 800;
  --titre-casse: none;
  --titre-espace: -0.03em;
  --titre-style: normal;
  --titre-echelle: 1;
  --onglets-h: 64px;
  --gouttiere: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--platre);
  color: var(--nuit);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.45;
  padding-bottom: calc(var(--onglets-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--iris); outline-offset: 2px; }
main { max-width: 640px; margin: 0 auto; outline: none; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gouttiere) 12px;
  background: color-mix(in srgb, var(--platre) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 21px; letter-spacing: -0.02em;
  text-decoration: none;
}
.logo-oeil {
  width: 30px; height: 18px; background: var(--nuit);
  clip-path: url(#oeil); position: relative;
}
.logo-oeil::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--iris);
  box-shadow: 0 0 0 2px var(--platre);
}
.entete-ville { font-size: 13px; font-weight: 600; color: var(--gris); }

/* ---------- Onglets du bas (zone du pouce) ---------- */
.onglets {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--onglets-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--barre);
}
.onglets a {
  display: flex; align-items: center; justify-content: center;
  color: #B8BDD3; text-decoration: none; font-weight: 600; font-size: 15px;
}
.onglets a[aria-current="page"] { color: #fff; }
.onglets a[aria-current="page"]::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--lilas); margin-right: 8px;
}

/* ---------- Image en œil et placeholders ---------- */
.oeil { clip-path: url(#oeil); overflow: hidden; background: var(--lilas); position: relative; }
.oeil img, .cadre img { width: 100%; height: 100%; object-fit: cover; }
.placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-weight: 800; letter-spacing: -0.03em; color: #FFFFFF;
  position: relative; overflow: hidden;
}
.placeholder span { position: relative; z-index: 1; font-size: clamp(18px, 6vw, 44px); }
.placeholder::before {
  /* la pupille */
  content: ""; position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%;
  left: 27%; top: 50%; transform: translateY(-50%);
  background: radial-gradient(circle at 38% 36%, rgba(255,255,255,.28), transparent 42%), rgba(22,33,62,.32);
}

/* ---------- Agenda ---------- */
.ouverture { padding: 18px var(--gouttiere) 6px; }
.ouverture h1 {
  font-weight: 800; font-size: calc(clamp(38px, 11vw, 60px) * var(--titre-echelle)); line-height: 0.95;
  letter-spacing: -0.035em; margin: 0 0 12px;
}
.ouverture p { margin: 0; color: var(--gris); font-family: var(--texte); font-size: 18px; }

.jours {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 18px var(--gouttiere) 6px; scrollbar-width: none;
}
.jours::-webkit-scrollbar { display: none; }
.jour {
  flex: 0 0 auto; scroll-snap-align: start;
  min-width: 54px; padding: 8px 6px 10px; border-radius: 28px;
  border: 1px solid var(--trait); background: transparent; cursor: pointer;
  display: grid; justify-items: center; gap: 0;
}
.jour small { font-size: 12px; font-weight: 600; color: var(--gris); }
.jour b { font-size: 21px; font-weight: 700; line-height: 1.1; }
.jour.vide { opacity: .4; }
.jour.aujourdhui { border-color: var(--nuit); }
.jour[aria-pressed="true"] { background: var(--nuit); color: var(--platre); border-color: var(--nuit); }
.jour[aria-pressed="true"] small { color: var(--lilas); }
.jour.tout { min-width: auto; padding-inline: 16px; align-content: center; font-weight: 600; font-size: 14px; }

/* Recherche et filtres de l'agenda, au-dessus des jours : lisible et utilisable au pouce */
.agenda-filtres { display: grid; gap: 8px; padding: 14px var(--gouttiere) 0; }
.agenda-recherche {
  width: 100%; min-height: 44px; padding: 0 16px;
  border-radius: 22px; border: 1px solid var(--trait);
  background: var(--papier); font-size: 16px;
}
.agenda-filtres-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.agenda-filtre { display: grid; gap: 4px; }
.agenda-filtre label { font-size: 13px; font-weight: 600; color: var(--gris); }
.agenda-filtre select {
  width: 100%; min-height: 44px; padding: 0 12px;
  border-radius: 22px; border: 1px solid var(--trait);
  background: var(--papier); font-size: 16px;
}
.agenda-vide { padding: 22px var(--gouttiere) 8px; display: grid; gap: 14px; justify-items: start; }
.agenda-vide p { margin: 0; font-family: var(--texte); font-size: 18px; color: var(--gris); }

.journee { padding: 22px var(--gouttiere) 4px; }
.journee h2 {
  font-size: 15px; font-weight: 700; margin: 0 0 6px; color: var(--gris);
  display: flex; align-items: baseline; gap: 10px;
}
.journee h2 .num { font-size: 32px; color: var(--nuit); letter-spacing: -0.03em; }

.carte-evt {
  display: grid; grid-template-columns: 1fr 112px; gap: 14px; align-items: center;
  padding: 14px 0; border-top: 1px solid var(--trait);
  text-decoration: none;
}
.carte-evt .oeil { width: 112px; height: 72px; }
.carte-evt .heure { font-size: 14px; font-weight: 700; color: var(--iris); }
.carte-evt h3 { font-size: 19px; line-height: 1.15; margin: 2px 0 4px; font-weight: 700; letter-spacing: -0.01em; }
.carte-evt .lieu { font-family: var(--texte); font-size: 16px; color: var(--gris); }
.badge-nouveau { font-size: 12px; font-weight: 700; color: var(--iris); background: var(--lilas); padding: 2px 8px; border-radius: 10px; margin-left: 6px; }

.une { display: block; text-decoration: none; padding: 8px var(--gouttiere) 0; }
.une .oeil { width: 100%; aspect-ratio: 16 / 10; }
.une .legende-une { padding: 6px 4px 0; }
.une .heure { font-size: 14px; font-weight: 700; color: var(--iris); }
.une h3 { font-size: 26px; line-height: 1.05; letter-spacing: -0.02em; margin: 4px 0; }
.une .lieu { font-family: var(--texte); font-size: 17px; color: var(--gris); }

.vide-msg { padding: 32px var(--gouttiere); font-family: var(--texte); font-size: 18px; color: var(--gris); }

/* ---------- Fiche événement ---------- */
.fiche-retour { display: inline-block; padding: 6px var(--gouttiere); font-weight: 600; font-size: 15px; text-decoration: none; color: var(--gris); }
.fiche-hero { padding: 6px var(--gouttiere) 0; }
.fiche-hero .oeil { width: 100%; aspect-ratio: 4 / 3; }
.fiche-tete { padding: 14px var(--gouttiere) 0; }
.fiche-tete .type { font-size: 14px; font-weight: 700; color: var(--iris); }
.fiche-tete h1 { font-size: calc(clamp(30px, 8.5vw, 44px) * var(--titre-echelle)); line-height: 1; letter-spacing: -0.03em; margin: 6px 0 10px; }
.fiche-artistes { font-family: var(--texte); font-size: 18px; margin: 0; }
.fiche-artistes a { color: var(--iris); text-decoration: none; }

.galerie {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 18px var(--gouttiere) 4px; scrollbar-width: none;
}
.galerie::-webkit-scrollbar { display: none; }
.galerie figure { flex: 0 0 auto; margin: 0; scroll-snap-align: start; }
.galerie .cadre { height: 220px; border-radius: 3px; overflow: hidden; background: var(--lilas); }
.galerie .cadre img { width: auto; height: 100%; }
.galerie figcaption { font-size: 12px; color: var(--gris); padding-top: 4px; }

.infos {
  margin: 18px var(--gouttiere) 0; padding: 16px 18px;
  background: var(--papier); border-radius: 18px;
  display: grid; gap: 12px;
}
.infos div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; font-size: 15px; }
.infos dt { color: var(--gris); font-weight: 600; }
.infos dd { margin: 0; font-weight: 500; }
.infos a { color: var(--iris); }

.article { padding: 20px var(--gouttiere) 8px; font-family: var(--texte); font-size: 19px; line-height: 1.6; max-width: 34em; }
.article .chapeau { font-size: 21px; line-height: 1.45; font-style: italic; margin-top: 0; }
.signature { padding: 8px var(--gouttiere) 28px; font-size: 14px; color: var(--gris); display: flex; align-items: center; gap: 8px; }
.signature .pastille { width: 26px; height: 26px; border-radius: 50%; background: var(--nuit); color: var(--platre); display: grid; place-items: center; font-size: 12px; font-weight: 700; }

/* ---------- Carte ---------- */
.vue-carte { position: fixed; inset: 0; top: 0; z-index: 1; }
#carte { position: absolute; inset: 0; bottom: calc(var(--onglets-h) + env(safe-area-inset-bottom)); }
.carte-titre {
  position: absolute; z-index: 600; top: 64px; left: var(--gouttiere); right: var(--gouttiere);
  background: var(--papier); border-radius: 18px; padding: 10px 16px; font-size: 14px; font-weight: 600;
  box-shadow: 0 6px 20px rgba(22,33,62,.12);
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
}
.carte-titre .legende-pts { display: flex; gap: 12px; color: var(--gris); font-weight: 500; font-size: 13px; }
.pt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.pt-evt { background: var(--iris); box-shadow: 0 0 0 3px var(--lilas); }
.pt-lieu { background: var(--nuit); }
.marqueur { border-radius: 50%; }
.marqueur-lieu { width: 9px; height: 9px; border-radius: 50%; background: var(--nuit); opacity: .6; box-shadow: 0 0 0 2px var(--papier); }
.marqueur-evt { width: 34px; height: 22px; background: var(--iris); clip-path: url(#oeil); position: relative; filter: drop-shadow(0 0 0 var(--papier)); }
.marqueur-evt span { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--papier); }
.leaflet-popup-content-wrapper { border-radius: 16px; font-family: var(--ui); }
.leaflet-popup-content { margin: 14px 16px; font-size: 14px; line-height: 1.4; }
.pop h4 { margin: 0 0 2px; font-size: 16px; }
.pop p { margin: 2px 0; color: var(--gris); }
.pop a { color: var(--iris); font-weight: 600; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 26px;
  border: 1.5px solid var(--nuit); background: transparent;
  font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none;
}
.btn-plein { background: var(--nuit); color: var(--platre); }
.btn-iris { background: var(--iris); border-color: var(--iris); color: var(--sur-accent); }
.btn-large { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }
.btn-lien { border: 0; background: none; padding: 0; min-height: 0; font-weight: 600; color: var(--iris); text-decoration: underline; cursor: pointer; font-size: 15px; }

/* ---------- Espace Julia ---------- */
.espace { padding: 12px var(--gouttiere) 24px; }
.espace h1 { font-size: calc(clamp(34px, 10vw, 52px) * var(--titre-echelle)); line-height: .95; letter-spacing: -0.035em; margin: 8px 0 10px; }
.espace .intro { font-family: var(--texte); font-size: 18px; color: var(--gris); margin: 0 0 22px; }
.grand-bouton {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  width: 100%; padding: 22px 22px; border-radius: 28px; border: 0;
  background: var(--iris); color: var(--sur-accent); text-decoration: none; cursor: pointer;
  text-align: left;
}
.grand-bouton b { font-size: 26px; letter-spacing: -0.02em; display: block; }
.grand-bouton small { font-family: var(--texte); font-size: 16px; opacity: .85; }
.grand-bouton .oeil { width: 64px; height: 40px; background: var(--sur-accent); }
.grand-bouton .oeil::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px; border-radius: 50%; background: var(--nuit); }
.constat { margin: 22px 0 0; padding: 16px 18px; border-radius: 18px; background: var(--papier); font-family: var(--texte); font-size: 17px; }
.constat b { font-family: var(--ui); }
.liste-pubs { margin-top: 26px; }
.liste-pubs h2 { font-size: 18px; margin: 0 0 4px; }

/* ---------- Mode vernissage ---------- */
.etape { padding: 18px var(--gouttiere); border-top: 1px solid var(--trait); }
.etape:first-of-type { border-top: 0; }
.etape h2 { font-size: 20px; margin: 0 0 4px; display: flex; gap: 10px; align-items: baseline; letter-spacing: -0.01em; }
.etape h2 .n {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center;
  font-size: 14px; background: var(--lilas); color: var(--iris);
}
.etape.faite h2 .n { background: var(--iris); color: var(--sur-accent); }
.etape.verrou { opacity: .45; pointer-events: none; }
.etape p.aide { margin: 0 0 12px; font-family: var(--texte); color: var(--gris); font-size: 16px; }
.vignettes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.vignettes .cadre { aspect-ratio: 1; border-radius: 3px; overflow: hidden; background: var(--lilas); }
.lieu-trouve { padding: 14px 16px; border-radius: 18px; background: var(--papier); margin-top: 12px; }
.lieu-trouve b { font-size: 19px; display: block; }
.lieu-trouve span { font-family: var(--texte); color: var(--gris); }
.autres-lieux { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.puce {
  border: 1px solid var(--trait); border-radius: 18px; padding: 8px 14px; background: transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; min-height: 40px;
}
.puce[aria-pressed="true"] { background: var(--nuit); color: var(--platre); border-color: var(--nuit); }
.champ { display: grid; gap: 6px; margin-top: 12px; }
.champ label { font-size: 14px; font-weight: 600; color: var(--gris); }
.champ input, .champ textarea {
  width: 100%; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--trait);
  background: var(--papier); font-size: 17px;
}
.champ textarea { font-family: var(--texte); font-size: 17px; line-height: 1.5; resize: vertical; }
.ligne-dictee { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.ecoute { color: var(--iris); font-weight: 600; font-size: 14px; }
.reflexion { font-family: var(--texte); font-size: 17px; color: var(--gris); padding: 12px 0; }
.reflexion li { margin: 4px 0; }
.reflexion li.ok::marker { color: var(--iris); }

.bascule { display: grid; grid-template-columns: 1fr 1fr; background: var(--papier); border-radius: 24px; padding: 4px; margin: 6px 0 14px; }
.bascule button { border: 0; background: none; border-radius: 20px; min-height: 42px; font-weight: 700; cursor: pointer; }
.bascule button[aria-selected="true"] { background: var(--nuit); color: var(--platre); }

/* Le gabarit du post Instagram (4:5) */
.post {
  width: 100%; aspect-ratio: 4 / 5; background: var(--platre); border-radius: 4px;
  position: relative; overflow: hidden; container-type: inline-size;
  box-shadow: 0 10px 30px rgba(22,33,62,.14);
}
.post .post-logo { position: absolute; top: 5cqw; left: 6cqw; font-weight: 800; font-size: 5cqw; letter-spacing: -0.02em; display: flex; align-items: center; gap: 2cqw; }
.post .post-logo i { width: 7cqw; height: 4.2cqw; background: var(--nuit); clip-path: url(#oeil); display: block; position: relative; }
.post .post-quand { position: absolute; top: 5.4cqw; right: 6cqw; font-weight: 700; font-size: 3.6cqw; color: var(--iris); }
.post .oeil { position: absolute; left: 4cqw; right: 4cqw; top: 17cqw; height: 66cqw; }
.post .post-texte { position: absolute; left: 6cqw; right: 6cqw; bottom: 6cqw; }
.post .post-texte b { display: block; font-size: 7.4cqw; line-height: 1; letter-spacing: -0.03em; }
.post .post-texte span { display: block; font-family: var(--texte); font-size: 4.2cqw; color: var(--gris); margin-top: 2cqw; }
.legende-ig { white-space: pre-wrap; }
.actions { display: grid; gap: 10px; margin-top: 14px; }
.note-demo { font-size: 13px; color: var(--gris); margin-top: 10px; font-family: var(--texte); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--onglets-h) + 16px + env(safe-area-inset-bottom)); z-index: 1000;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--nuit); color: var(--platre); padding: 12px 18px; border-radius: 22px; font-weight: 600; font-size: 15px;
  transition: opacity .2s, transform .2s; max-width: calc(100% - 40px);
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (min-width: 700px) {
  .carte-evt { grid-template-columns: 1fr 160px; }
  .carte-evt .oeil { width: 160px; height: 100px; }
}

/* Fond de carte OpenStreetMap passé en gris bleuté, pour que les points de la marque ressortent */
.leaflet-tile-pane { filter: grayscale(1) sepia(.12) hue-rotate(190deg) contrast(.92) brightness(1.04); }
.leaflet-container { background: var(--platre); font-family: var(--ui); }
.galerie .cadre .placeholder { width: 165px; }
.jour { text-decoration: none; }
.jour:not([aria-pressed="true"]) { color: inherit; }

/* Les titres : une seule règle, pilotée par les jetons de la piste typographique */
.logo, .ouverture h1, .journee h2 .num, .carte-evt h3, .une h3, .fiche-tete h1, .espace h1,
.grand-bouton b, .post .post-logo, .post .post-texte b, .placeholder span {
  font-family: var(--titre); font-weight: var(--titre-poids); text-transform: var(--titre-casse);
  letter-spacing: var(--titre-espace); font-style: var(--titre-style);
}

/* Choix du gabarit : une rangée de vignettes, un geste */
.gabarits { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.gabarits::-webkit-scrollbar { display: none; }
.gabarit {
  flex: 0 0 auto; width: 92px; padding: 0; border: 0; background: none; cursor: pointer; scroll-snap-align: start;
  display: grid; gap: 6px; font-size: 12px; font-weight: 600; text-align: left; line-height: 1.2;
}
.gabarit .vignette { display: block; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--lilas); outline: 2px solid transparent; outline-offset: 2px; }
.gabarit .vignette img { width: 100%; height: 100%; object-fit: cover; }
.gabarit[aria-checked="true"] .vignette { outline-color: var(--iris); }
.gabarit[aria-checked="true"] { color: var(--iris); }
.gabarit:disabled { opacity: .5; cursor: default; }
.gabarit small { display: block; font-weight: 500; color: var(--gris); }
.apercu-post img, #apercu-post canvas { width: 100%; aspect-ratio: 4 / 5; border-radius: 4px; box-shadow: 0 10px 30px rgba(22,33,62,.14); background: var(--papier); }
#apercu-post canvas { display: block; height: auto; }

/* Bouton clair / sombre / auto */
.entete-droite { display: flex; align-items: center; gap: 4px; flex-direction: row-reverse; }
.theme { border: 0; background: none; padding: 0; width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; color: var(--nuit); border-radius: 50%; }
.theme:hover { color: var(--iris); }

/* ---------- Maquettes de la version 2 ---------- */
.maquette { padding: 12px var(--gouttiere) 28px; }
.maquette h1 { font-family: var(--titre); font-weight: var(--titre-poids); text-transform: var(--titre-casse); font-size: calc(40px * var(--titre-echelle)); line-height: .95; margin: 18px 0 10px; }
.maquette-etiquette { font-size: 12px; font-weight: 600; color: var(--gris); margin: 0; }
.maquette-texte { font-size: 18px; line-height: 1.5; margin: 0 0 8px; }
.points-progression { display: flex; gap: 6px; list-style: none; padding: 0; margin: 10px 0 0; }
.points-progression li { width: 22px; height: 4px; border-radius: 2px; background: var(--trait); }
.points-progression li.fait { background: var(--iris); }
.maquette-nav { display: flex; justify-content: space-between; margin-top: 28px; font-size: 14px; }
.maquette-nav a { color: var(--gris); }
.badge-grand { width: 132px; height: 132px; border-radius: 50%; background: var(--iris); display: grid; place-items: center; margin: 22px 0 0; box-shadow: 0 0 0 8px var(--lilas); }
.badge-grand .oeil { width: 84px; height: 50px; background: var(--sur-accent); }
.badge-grand .oeil::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px; border-radius: 50%; background: var(--iris); }

/* ---------- Éclaireurs et modération ---------- */
.eclaireurs { padding: 4px var(--gouttiere) 28px; }
.eclaireurs h2 { font-family: var(--titre); text-transform: var(--titre-casse); font-weight: var(--titre-poids); font-size: 26px; margin: 22px 0 6px; }
.avis { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--trait); }
.avis-photo { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--lilas); }
.avis-photo img { width: 100%; height: 100%; object-fit: cover; }
.avis-auteur { margin: 0; font-weight: 600; font-size: 15px; }
.avis-texte { margin: 4px 0 0; font-size: 16px; line-height: 1.45; }
.visite-ok { font-size: 12px; font-weight: 600; color: var(--iris); margin-left: 6px; }
.carte-moderation { display: grid; gap: 2px; margin-top: 16px; padding: 14px 18px; border-radius: 18px; border: 1.5px solid var(--nuit); text-decoration: none; }
.carte-moderation b { font-size: 18px; }
.carte-moderation span { color: var(--gris); font-size: 15px; }
.moderation { padding-bottom: 12px; }
.moderation.masquee .avis { opacity: .45; }
.pretri { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--iris); }
.boutons-moderation { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Espace de l'Éclaireur ---------- */
.eclaireur .sous-titre { font-family: var(--titre); text-transform: var(--titre-casse); font-weight: var(--titre-poids); font-size: 28px; margin: 28px 0 6px; }
.jauge { height: 8px; border-radius: 4px; background: var(--trait); overflow: hidden; margin: 8px 0 4px; }
.jauge span { display: block; height: 100%; background: var(--iris); }
.parcours { list-style: none; padding: 0; margin: 10px 0 0; counter-reset: etape; }
.parcours li a { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; padding: 8px 0; text-decoration: none; border-top: 1px solid var(--trait); }
.parcours .oeil { width: 84px; height: 52px; }
.parcours b { display: block; font-size: 16px; line-height: 1.2; }
.parcours small { color: var(--gris); font-size: 14px; }
.parcours li.fait small { color: var(--iris); font-weight: 600; }
.parcours li:not(.fait) .oeil { opacity: .55; }
.defis { display: grid; gap: 10px; }
.defi { padding: 14px 16px; border-radius: 16px; background: var(--papier); display: grid; gap: 2px; }
.defi span { color: var(--gris); font-size: 15px; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px 10px; }
.badge { display: grid; justify-items: center; text-align: center; gap: 4px; font-size: 13px; }
.badge small { color: var(--gris); font-size: 12px; line-height: 1.3; }
.pastille-badge { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--trait); }
.pastille-badge .oeil { width: 38px; height: 23px; background: var(--platre); }
.badge.gagne .pastille-badge { background: var(--iris); box-shadow: 0 0 0 4px var(--lilas); }
.badge.gagne .pastille-badge .oeil { background: var(--sur-accent); }
.badge:not(.gagne) { opacity: .6; }
.points { font-size: 17px; margin: 0; }
.points b { font-family: var(--titre); font-size: 40px; font-weight: var(--titre-poids); }
.classement { padding: 0; list-style-position: inside; margin: 8px 0 0; }
.classement li { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 12px; }
.classement li.moi { background: var(--lilas); font-weight: 600; }

.mode-demo { font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 10px; background: var(--lilas); color: var(--nuit); text-decoration: none; white-space: nowrap; }
.logo { white-space: nowrap; }
.mode-demo ~ .entete-ville { display: none; }

/* ---------- La mascotte de l'inscription ---------- */
.maquette { min-height: calc(100vh - 140px); display: flex; flex-direction: column; }
.piste-mascotte { margin-top: auto; padding-top: 32px; position: relative; height: 120px; border-bottom: 1px solid var(--trait); }
.mascotte { position: absolute; bottom: 0; left: calc(var(--x, 0) * (100% - 40px)); color: var(--nuit); display: block; line-height: 0;
  transition: left var(--duree, 900ms) linear; }
.mascotte svg { overflow: visible; }
.m-jambe { transform-box: view-box; transform-origin: 24px 25px; }
.mascotte.marche .m-g { animation: pas .32s steps(2, jump-none) infinite alternate; }
.mascotte.marche .m-d { animation: pas .32s steps(2, jump-none) infinite alternate-reverse; }
.mascotte.marche .m-corps { animation: rebond .32s steps(2, jump-none) infinite alternate; }
@keyframes pas { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
@keyframes rebond { from { transform: translateY(0); } to { transform: translateY(-2px); } }
.mascotte.saut { animation: saut .7s ease-out 1; }
@keyframes saut { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-18px); } }
@media (prefers-reduced-motion: reduce) { .mascotte { transition: none; } .mascotte * , .mascotte { animation: none !important; } }

/* Arrivée, RGPD, conditions */
.maquette.arrivee h1 { font-size: calc(54px * var(--titre-echelle)); margin-top: 8px; }
.maquette.arrivee .maquette-texte { font-size: 19px; }
.arrivee-oeil { margin: 28px 0 8px; }
.arrivee-oeil .oeil { display: block; width: 120px; height: 72px; background: var(--nuit); }
.arrivee-oeil .oeil::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px; border-radius: 50%; background: var(--iris); box-shadow: 0 0 0 5px var(--platre); }
.rgpd { margin: 12px 0 0; font-size: 14px; color: var(--gris); }
.rgpd summary { display: inline-block; cursor: pointer; font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 2px 8px; border: 1px solid var(--trait); border-radius: 10px; list-style: none; }
.rgpd summary::-webkit-details-marker { display: none; }
.rgpd p { margin: 8px 0 0; line-height: 1.45; }
.liens-legaux { padding: 0; list-style: none; margin: 8px 0 14px; display: grid; gap: 6px; }
.liens-legaux a { color: var(--iris); font-weight: 600; }
.case { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 16px; line-height: 1.4; }
.case input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--iris); }
.btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.texte-legal h2 { font-size: 18px; margin: 20px 0 4px; }
.texte-legal p { line-height: 1.55; }
.brouillon { padding: 10px 14px; border-left: 3px solid var(--iris); background: var(--papier); font-weight: 600; }

.pt-oeil { display: inline-block; width: 20px; height: 12px; background: var(--iris); clip-path: url(#oeil); margin-right: 5px; vertical-align: -1px; }
/* Le carton du lieu : il s'ouvre au-dessus du lieu, la flèche pointe le lieu */
.carton { position: absolute; z-index: 700; display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 12px; border-radius: 16px;
  background: var(--papier); color: var(--nuit); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.carton::after { content: ""; position: absolute; bottom: -9px; left: calc(var(--fleche) - 9px); width: 18px; height: 18px; background: var(--papier); transform: rotate(45deg); border-radius: 0 0 3px 0; }
.carton-photo { width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--lilas); }
.carton-photo img { width: 100%; height: 100%; object-fit: cover; }
.carton-texte { display: grid; gap: 3px; align-content: start; font-size: 14px; line-height: 1.3; }
.carton-texte b { font-size: 17px; }
.carton-texte span { color: var(--gris); }
.carton-texte a { color: var(--iris); font-weight: 600; margin-top: 2px; }
.carton-calme { font-style: italic; }
@media (prefers-reduced-motion: no-preference) { .carton { animation: carton .18s ease-out; } }
@keyframes carton { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Fiche artiste et favoris ---------- */
.artiste-tete { display: grid; gap: 6px; }
.artiste-oeil { width: 100%; aspect-ratio: 16 / 9; margin-bottom: 8px; }
.favori { justify-self: start; margin-top: 8px; min-height: 44px; }
.sous-titre-fiche { font-family: var(--titre); text-transform: var(--titre-casse); font-weight: var(--titre-poids); font-size: 26px; padding: 0 var(--gouttiere); margin: 24px 0 0; }
.artiste-expos { padding: 4px var(--gouttiere) 28px; }
.artiste-expos .carte-evt { grid-template-columns: 1fr; }
.favoris { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.favori-artiste { display: grid; justify-items: center; gap: 6px; width: 84px; text-decoration: none; text-align: center; font-size: 13px; }
.favori-artiste .oeil { width: 80px; height: 50px; }

/* ---------- Relecture du directeur artistique (2026-11-17) ---------- */
/* Zones tactiles d'au moins 44 × 44 px partout */
.theme { width: 44px; height: 44px; margin-right: -8px; }
.btn-lien { display: inline-flex; align-items: center; min-height: 44px; }
.fiche-retour { display: inline-flex; align-items: center; min-height: 44px; }
.fiche-artistes a { display: inline-flex; align-items: center; min-height: 44px; }
/* Les titres se coupent en lignes équilibrées (pas de mot seul sur la dernière ligne) */
h1, h2, h3 { text-wrap: balance; }
/* Onglets : jamais sur deux lignes */
.onglets a { white-space: nowrap; font-size: 15px; }
/* Sur grand écran, l'en-tête et les onglets suivent la colonne du contenu */
@media (min-width: 700px) {
  .entete { padding-left: max(var(--gouttiere), calc((100vw - 640px) / 2 + var(--gouttiere))); padding-right: max(var(--gouttiere), calc((100vw - 640px) / 2 + var(--gouttiere))); }
  .onglets { padding-left: max(0px, calc((100vw - 640px) / 2)); padding-right: max(0px, calc((100vw - 640px) / 2)); }
}
.logo { min-height: 44px; }

/* Lecture d'affiche */
.affiche-bloc { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--trait); display: grid; gap: 6px; }
.affiche-bloc .aide { margin: 4px 0 0; }
.lu-affiche { margin: 8px 0 0; padding: 12px 14px; background: var(--papier); border-radius: 14px; display: grid; gap: 6px; }
.lu-affiche div { display: grid; grid-template-columns: 92px 1fr; gap: 8px; font-size: 15px; }
.lu-affiche dt { color: var(--gris); font-weight: 600; }
.lu-affiche dd { margin: 0; font-weight: 600; }

/* « Ça ferme bientôt » : un repère au trait, à la couleur de l'accent, sans fond qui crie */
.badge-fin { display: inline-block; margin-left: 8px; padding: 1px 8px; border: 1.5px solid var(--iris); border-radius: 10px; font-size: 12px; font-weight: 600; color: var(--iris); vertical-align: 1px; white-space: nowrap; }
.carton-texte .badge-fin { margin: 4px 0 0; justify-self: start; }
.bientot { margin: 18px var(--gouttiere) 0; padding: 12px 16px; border-radius: 16px; background: var(--papier); }
.bientot h2 { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--gris); }
.bientot a { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; min-height: 44px; align-items: center; text-decoration: none; border-top: 1px solid var(--trait); }
.bientot a:first-of-type { border-top: 0; }
.bientot b { font-size: 16px; }
.bientot span { color: var(--iris); font-weight: 600; font-size: 14px; white-space: nowrap; }

/* Crédits et accords des artistes */
.credits { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--papier); display: grid; gap: 12px; }
.credits h3 { margin: 0; font-size: 16px; }
.credit { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: start; }
.credit-vignette { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--lilas); }
.credit-vignette img { width: 100%; height: 100%; object-fit: cover; }
.credit-champs { display: grid; gap: 6px; }
.credit-texte { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--trait); background: var(--platre); font-size: 15px; min-height: 44px; }
.credit .case { font-size: 14px; color: var(--gris); }
.credits-etat { margin: 0; font-size: 14px; font-weight: 600; color: var(--iris); }
.credits-etat.ok { color: var(--gris); }

/* La signature, en bas : petite et douce, comme l'étiquette d'un pot fait maison */
.pied-site { display: flex; align-items: center; justify-content: center; gap: 8px; max-width: 640px; margin: 8px auto 0; padding: 18px var(--gouttiere) 22px;
  font-size: 13px; color: var(--gris); border-top: 1px solid var(--trait); }
.pied-oeil { width: 18px; height: 11px; background: var(--gris); clip-path: url(#oeil); position: relative; flex: 0 0 auto; }
.pied-oeil::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: var(--jaune); }
@media (min-width: 1000px) { .pied-bureau { margin-left: 220px; max-width: none; } }

/* Les formulaires réels (inscription, connexion) dans l'appli publique */
.b-formulaire { display: grid; gap: 14px; }
.b-formulaire .champ { margin: 0; }
.b-erreur { color: #A33A2E; font-weight: 600; margin: 4px 0 0; min-height: 1em; }
:root[data-theme="sombre"] .b-erreur { color: #F08A7C; }

/* ---------- La navigation du bas : une icône et un mot (4 entrées, pas de menu caché) ---------- */
.onglets a { flex-direction: column; gap: 3px; font-size: 12px; letter-spacing: .01em; }
.onglets a svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.onglets a[aria-current="page"]::before { display: none; }
.onglets a[aria-current="page"] svg { stroke: var(--jaune); }
.onglets a[aria-current="page"] span { color: #fff; }

/* ---------- L'annuaire : une galerie de portraits ---------- */
.annuaire { padding: 14px var(--gouttiere) 28px; }
.annuaire h1 { font-size: calc(clamp(30px, 8.5vw, 44px) * var(--titre-echelle)); line-height: 1; margin: 6px 0 6px; }
.annuaire-onglets { display: flex; gap: 6px; margin: 14px 0 10px; border-bottom: 1px solid var(--trait); }
.annuaire-onglets a { padding: 10px 12px; text-decoration: none; font-weight: 700; color: var(--gris); border-bottom: 2.5px solid transparent; margin-bottom: -1px; min-height: 44px; display: flex; align-items: center; }
.annuaire-onglets a[aria-selected="true"] { color: var(--nuit); border-bottom-color: var(--iris); }
:root[data-theme="sombre"] .annuaire-onglets a[aria-selected="true"] { color: #fff; }
.annuaire-outils { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.annuaire-outils input { flex: 1; min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--trait); background: var(--papier); font-size: 16px; color: inherit; }
.portraits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
@media (min-width: 560px) { .portraits { grid-template-columns: repeat(3, 1fr); } }
.portrait { display: grid; gap: 4px; justify-items: center; text-align: center; text-decoration: none; color: inherit; }
.portrait-image { width: 100%; aspect-ratio: 1.45; display: block; transition: transform .25s ease; }
.portrait-image img, .portrait-image .placeholder { width: 100%; height: 100%; object-fit: cover; }
.portrait:hover .portrait-image { transform: scale(1.03); }
.portrait b { font-size: 15px; line-height: 1.2; margin-top: 4px; }
.portrait small { color: var(--gris); font-size: 13px; line-height: 1.25; }
.portrait-etoile { color: var(--jaune); }
.pastille-en-cours, .pastille-bientot { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.pastille-en-cours { background: var(--vert); color: #fff; }
.pastille-bientot { border: 1.5px solid var(--iris); color: var(--iris); }
@media (prefers-reduced-motion: reduce) { .portrait-image { transition: none; } }

/* ---------- Les fiches d'artistes et de lieux ---------- */
.profil { display: grid; grid-template-columns: 1fr auto; gap: 12px 14px; padding: 14px var(--gouttiere) 0; align-items: end; }
.profil-image { grid-column: 1 / -1; width: 100%; aspect-ratio: 1.6; }
.profil-image img, .profil-image .placeholder { width: 100%; height: 100%; object-fit: cover; }
.profil-titre .type { font-size: 14px; font-weight: 700; color: var(--iris); margin: 0; }
.profil-titre h1 { font-size: calc(clamp(30px, 8.5vw, 44px) * var(--titre-echelle)); line-height: 1; margin: 6px 0 6px; letter-spacing: -0.02em; }
.profil-liens { margin: 0; display: flex; gap: 14px; flex-wrap: wrap; font-weight: 600; }
.profil-texte { padding: 0 var(--gouttiere); font-size: 17px; line-height: 1.55; max-width: 62ch; }
.profil-infos { padding: 0 var(--gouttiere); }
.profil-expos { padding: 0 var(--gouttiere); }
.groupe-expos { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); margin: 14px 0 6px; }
.puces-lieux { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--gouttiere) 24px; }
.etoile { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--trait); background: var(--papier); display: grid; place-items: center; cursor: pointer; }
.etoile svg { width: 24px; height: 24px; fill: none; stroke: var(--nuit); stroke-width: 1.6; stroke-linejoin: round; }
:root[data-theme="sombre"] .etoile svg { stroke: #fff; }
.etoile[aria-pressed="true"] { border-color: var(--jaune); background: color-mix(in srgb, var(--jaune) 18%, transparent); }
.etoile[aria-pressed="true"] svg { fill: var(--jaune); stroke: var(--jaune); }

/* ---------- Le jeu : déblocage, succès, espace, sous une expo ---------- */
.deblocage { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 20px; background: rgba(14, 28, 43, .55); }
.deblocage-boite { width: min(420px, 100%); background: var(--platre); border-radius: 22px; padding: 28px 22px 20px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.deblocage-boite h2 { font-family: var(--titre); text-transform: var(--titre-casse); font-size: 34px; margin: 4px 0 6px; }
.deblocage-sur { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--iris); font-weight: 700; margin: 10px 0 0; }
.deblocage-gain { font-weight: 700; }
.deblocage-actions { display: grid; gap: 8px; margin-top: 14px; }
.deblocage-oeil { display: block; width: 120px; height: 72px; margin: 0 auto; background: var(--jaune); clip-path: url(#oeil); position: relative; animation: ouvrir .7s ease-out both; }
.deblocage-oeil span, .succes-oeil span { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--nuit); }
@keyframes ouvrir { from { transform: scaleY(.05); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .deblocage-oeil { animation: none; } }
.succes-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.succes { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: start; padding: 12px; border-radius: 16px; border: 1px solid var(--trait); }
.succes p { margin: 2px 0 6px; color: var(--gris); }
.succes small { color: var(--gris); }
.succes-oeil { display: block; width: 54px; height: 32px; background: var(--trait); clip-path: url(#oeil); position: relative; margin-top: 4px; }
.succes.gagne .succes-oeil { background: var(--jaune); }
.succes.gagne .succes-gain { color: var(--vert); font-weight: 700; }
.succes:not(.gagne) .succes-oeil span { opacity: .35; }
.succes-approche .succes { border: 1.5px solid var(--iris); }
.succes-collectif { font-size: 11px; font-weight: 700; color: var(--iris); }
.label-team { font-weight: 700; color: var(--iris); }
.premier-pas { padding: 14px; border-radius: 16px; border: 1.5px dashed var(--iris); margin: 10px 0; }
.premier-pas p { margin: 4px 0 0; }
.fil { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fil small { color: var(--gris); }
.espace-liens { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.zone-danger summary { cursor: pointer; color: #A33A2E; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
:root[data-theme="sombre"] .zone-danger summary { color: #F08A7C; }
.social { padding: 0 var(--gouttiere) 28px; }
.social-visite { padding: 14px; border-radius: 16px; background: var(--papier); display: grid; gap: 8px; }
.social-visite p { margin: 0; }
.visite-ok { color: var(--vert); font-weight: 700; }
.sortie, .avis { padding: 10px 0; border-top: 1px solid var(--trait); }
.avis img { width: 100%; max-height: 320px; object-fit: cover; border-radius: 10px; margin-bottom: 6px; }
.avis p { margin: 0 0 4px; }
.avis small, .sortie small { color: var(--gris); }
.sortie-nouvelle summary { cursor: pointer; font-weight: 700; color: var(--iris); min-height: 44px; display: flex; align-items: center; }
.btn-partager { margin-top: 6px; }
.gabarit.verrouille { opacity: .55; }
.gabarit.verrouille small { display: block; }

/* Le bandeau du mode aperçu : discret, mais impossible à confondre avec la vraie appli */
.bandeau-apercu { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 4000; padding: 3px 12px; border-radius: 0 0 10px 10px;
  background: var(--jaune); color: var(--sur-jaune, #1a1a1a); font-size: 11px; font-weight: 700; letter-spacing: .02em; pointer-events: none; white-space: nowrap; }

/* Près de moi, sur la carte */
.pres-de-moi { position: absolute; right: 12px; top: 108px; z-index: 600; min-height: 44px; background: var(--platre); box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.pres-liste { position: absolute; left: 12px; right: 12px; bottom: calc(var(--onglets-h) + 14px); z-index: 650; display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px;
  background: var(--platre); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.pres-liste a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; text-decoration: none; border-top: 1px solid var(--trait); min-height: 44px; align-items: center; }
.pres-liste small { color: var(--gris); white-space: nowrap; }
.credit-hero { font-size: 12px; color: var(--gris); text-align: center; margin: 4px var(--gouttiere) 0; }
.btn-signaler { color: var(--gris); font-size: 13px; margin-left: 8px; }
.pied-site { flex-wrap: wrap; }
.pied-liens { flex-basis: 100%; text-align: center; font-size: 12px; }
.pied-liens a { color: inherit; }
/* Les avis réels sous une expo : du texte qui respire (le style en grille de la démo ne s'applique pas ici) */
.social .avis { display: block; }
.social .avis small { display: inline; }
.social .avis .btn-lien { display: inline-block; margin-left: 8px; min-height: 32px; }
.choix-photo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choix-photo .btn { justify-content: center; text-align: center; }
.lignes-lues { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lignes-lues .puce { text-align: left; }
.pres-liste p a { display: inline; min-height: 0; padding: 0; border: 0; }
/* Les marqueurs suivent le zoom (variable --echelle posée par la carte) */
.marqueur-evt, .marqueur-lieu { transform: scale(var(--echelle, 1)); transform-origin: center; transition: transform .15s ease-out; }
@media (prefers-reduced-motion: reduce) { .marqueur-evt, .marqueur-lieu { transition: none; } }
.pres-liste[hidden] { display: none; }
.avis-photo { margin: 0 0 8px; } .avis-photo figcaption { font-size: 12px; color: var(--gris); margin-top: 4px; }
.a-completer { background: #F4E6C6; color: #6B4E12; padding: 0 4px; border-radius: 4px; }
/* Le bouton « œil » des mots de passe : 44 px au doigt, dans le champ, à droite */
.mdp-boite { position: relative; display: block; }
.mdp-boite input { width: 100%; padding-right: 52px; box-sizing: border-box; }
.mdp-oeil { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; background: transparent; color: inherit; border-radius: 10px; cursor: pointer; }
.mdp-oeil:focus-visible { outline: 3px solid var(--jaune, #E6BF6E); outline-offset: -3px; }

/* ---------- Le tri des nouvelles expos : une carte à la fois ---------- */
.tri { max-width: 520px; margin: 0 auto; padding: 12px var(--gouttiere) 24px; }
.tri-entete { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 4px 0 16px; }
.tri-entete h1 { font-family: var(--titre); font-weight: var(--titre-poids); text-transform: var(--titre-casse);
  font-size: clamp(30px, 8vw, 44px); line-height: .95; letter-spacing: var(--titre-espace); margin: 2px 0 0; }
.tri-sur { margin: 0; color: var(--iris); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.tri-compteur { margin: 0; font-weight: 800; font-size: 16px; color: var(--gris); white-space: nowrap; }
.tri-scene { position: relative; min-height: 320px; }
.tri-carte { position: relative; display: grid; align-content: start; gap: 6px; min-height: 320px; padding: 54px 22px 18px;
  border-radius: 22px; border: 1.5px solid var(--trait); background: var(--papier); overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 46, 74, .10); touch-action: pan-y; user-select: none; -webkit-user-select: none;
  cursor: grab; transition: transform .2s ease-in, opacity .2s ease-in; }
.tri-carte::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: var(--tri-fond, transparent); opacity: calc(var(--tri-force, 0) * .2); }
.tri-carte[data-direction="ecarte"] { --tri-fond: #A33A2E; }
.tri-carte[data-direction="garde"] { --tri-fond: var(--vert); }
.tri-pointeau { position: absolute; top: 14px; z-index: 2; margin: 0; padding: 4px 10px; border: 2px solid currentColor; border-radius: 8px;
  font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: 0; transition: opacity .1s; }
.tri-pointeau.ecarte { left: 14px; color: #A33A2E; transform: rotate(-7deg); }
.tri-pointeau.garde { right: 14px; color: var(--vert); transform: rotate(7deg); }
:root[data-theme="sombre"] .tri-pointeau.ecarte { color: #F08A7C; }
.tri-carte[data-direction="ecarte"] .tri-pointeau.ecarte,
.tri-carte[data-direction="garde"] .tri-pointeau.garde { opacity: 1; }
.tri-titre { font-size: clamp(26px, 7vw, 38px); line-height: 1.02; letter-spacing: -0.03em; margin: 2px 0 0; }
.tri-lieu { margin: 0; font-family: var(--texte); font-size: 20px; color: var(--nuit); }
.tri-dates, .tri-vern { margin: 0; font-size: 15px; color: var(--gris); }
.tri-vern { font-weight: 600; color: var(--iris); }
.tri-manque { color: #9A5B00; font-weight: 600; }
:root[data-theme="sombre"] .tri-manque { color: #F2B75B; }
.tri-photo { width: 100%; max-height: 220px; object-fit: cover; border-radius: 14px; margin-top: 8px; }
.tri-source { color: var(--iris); font-weight: 600; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.tri-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 8px; }
.tri-btn { width: 100%; min-height: 60px; font-size: 18px; }
.tri-ecarter { color: #A33A2E; border-color: #A33A2E; }
:root[data-theme="sombre"] .tri-ecarter { color: #F08A7C; border-color: #F08A7C; }
.tri-aide { margin: 0; color: var(--gris); font-size: 14px; }
.tri-pied { margin: 14px 0 0; }
.tri-flyer-choix { margin: 12px 0 6px; }
.tri-flyer-form { display: grid; gap: 4px; margin-top: 4px; }
.tri-flyer-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tri-flyer-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.tri-flyer-actions .btn { min-height: 52px; }
.tri-message { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(163, 58, 46, .12); color: #A33A2E; font-weight: 600; }
:root[data-theme="sombre"] .tri-message { color: #F08A7C; }
.tri-barre { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--onglets-h) + env(safe-area-inset-bottom) + 10px); z-index: 950;
  width: min(520px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 16px;
  background: var(--barre); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.tri-barre b { flex: 1; font-size: 15px; font-weight: 600; }
.tri-barre-annuler { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1.5px solid rgba(255, 255, 255, .6);
  background: transparent; color: #fff; font-weight: 800; cursor: pointer; }
.tri-liste { list-style: none; margin: 0; padding: 0; }
.tri-liste li { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--trait); }
.tri-liste b { font-size: 17px; }
.tri-liste small { color: var(--gris); font-size: 14px; }
.tri-liste .tri-source { min-height: 44px; }
.tri-liste .btn-lien { justify-self: start; }
.tri-supprime { color: var(--gris); font-size: 14px; font-style: italic; }
.tri-vide { padding: 28px 0; }
.tri-vide h1 { font-size: clamp(36px, 10vw, 56px); line-height: .95; margin: 4px 0 12px; }
.tri-bilan { font-size: 18px; color: var(--gris); margin: 0 0 18px; }
.tri-vide .btn { margin-bottom: 10px; }
.tri-retour-simple { display: inline-flex; margin-top: 4px; }
.tri-lancer { margin: 0 0 10px; justify-content: space-between; }
.tri-carte.glisse { transition: none; cursor: grabbing; }
.tri-carte.parti-ecarte { transform: translateX(-120%) rotate(-12deg); opacity: 0; }
.tri-carte.parti-garde { transform: translateX(120%) rotate(12deg); opacity: 0; }
.tri-carte.retour { transition: transform .24s ease-out, opacity .2s; }
@media (prefers-reduced-motion: reduce) {
  .tri-carte { transition: none; }
  .tri-carte.parti-ecarte, .tri-carte.parti-garde { transform: none; opacity: 0; }
}
