/* Gestion d'une exposition par son créateur (src/expos/gestion.js) : cartes de mon-espace.html et fenêtre ⚙️ de
   expo.html. Les règles génériques (boutons, champs) sont limitées à .gestion. */
.gestion { --gx-champ: var(--champ, var(--bg-2, #1f1913)); }
.gestion h3 { font: 600 1.4rem var(--serif); margin: 0; }
.gestion button, .gestion .bouton { font: inherit; font-size: 0.92rem; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-block; }
.gestion .plein { background: var(--accent); color: var(--sur-accent, #1a120a); border-color: var(--accent); }
.gestion .danger { border-color: #b4574a; color: #e08a7a; }
.gestion button:disabled { opacity: 0.45; cursor: default; }
.gestion form label { display: grid; gap: 4px; margin: 0 0 14px; font-size: 0.92rem; color: var(--ink-soft); }
.gestion input:not([type]), .gestion input[type=text], .gestion input[type=email], .gestion textarea, .gestion select { font: inherit; font-size: 1rem; color: var(--ink); background: var(--gx-champ); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; }
.gestion textarea { resize: vertical; }
.gestion fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.gestion legend { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 8px; }
.gestion .note { font-size: 0.85rem; color: var(--muted); }
.gestion a { color: var(--accent); }
.gestion a.bouton.plein { color: var(--sur-accent, #1a120a); }
#mes-expos { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 44px; }
/* séparateur bien visible entre deux expositions : un filet doré, avec un losange au milieu */
#mes-expos > li + li { position: relative; }
#mes-expos > li + li::before { content: ''; position: absolute; left: 8%; right: 8%; top: -23px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
#mes-expos > li + li::after { content: ''; position: absolute; left: 50%; top: -29px; width: 10px; height: 10px; background: var(--accent); transform: translateX(-50%) rotate(45deg); }
.expo { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
/* thème de l'exposition : fond, texte et boutons de la carte à ses couleurs (variables posées par carteExpo) */
.expo.themee { background: var(--carte); color: var(--ink); }
.expo.themee h3 { color: var(--ink); }
.expo.themee button, .expo.themee a.bouton { color: var(--ink); border-color: var(--line); background: var(--champ); }
.expo.themee a.bouton.plein, .expo.themee button.plein { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }
.expo.themee button.danger { color: #e0807a; border-color: rgba(224, 128, 122, 0.55); }
/* l'image de l'exposition en tête de carte (couverture.js) */
.e-image { display: block; margin: -16px -18px 14px; height: 180px; overflow: hidden; border-radius: 11px 11px 0 0; background: rgba(0, 0, 0, 0.25); }
.e-image[hidden] { display: none; }
.e-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.e-image:hover img { transform: scale(1.03); }
.e-lien { font-size: 0.88rem; color: var(--accent); overflow-wrap: anywhere; }
.e-etat { font-size: 0.85rem; color: var(--muted); margin: 6px 0 0; }
.e-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.e-form { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.e-avert { margin: 4px 0 8px; font-size: 0.85rem; color: #e0a64a; }
.note { font-size: 0.85rem; color: var(--muted); }
.e-options, .e-themes { margin: 0 0 12px; }
.e-options label { display: flex; gap: 8px; align-items: center; margin: 0 0 4px; font-size: 0.92rem; color: var(--ink); }
.e-themes { display: flex; flex-wrap: wrap; gap: 8px; }
.e-themes legend { width: 100%; }
.e-theme { position: relative; display: grid; justify-items: center; gap: 4px; margin: 0; font-size: 0.75rem; color: var(--muted); cursor: pointer; }
.e-theme input { position: absolute; opacity: 0; pointer-events: none; }
.e-pastille { width: 64px; height: 40px; border-radius: 8px; border: 2px solid; display: flex; align-items: center; justify-content: space-around; }
.e-pastille i { width: 16px; height: 16px; border-radius: 50%; }
.e-pastille b { font: 600 1rem var(--serif); }
.e-theme:has(input:checked) { color: var(--ink); }
.e-theme:has(input:checked) .e-pastille { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.e-panneau { margin-top: 10px; }
.e-livre { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.e-livre li { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.e-livre li.attente { border-style: dashed; }
.e-livre li.refuse { opacity: 0.55; }
.e-livre blockquote { margin: 4px 0 0; font: italic 1.05rem/1.5 var(--serif); white-space: pre-line; overflow-wrap: anywhere; }
.e-aimees { margin: 10px 0 0; padding-left: 1.4em; }
.e-aimees li { margin: 4px 0; }
.e-aimees span { color: #e08a7a; }
.e-brochures { margin: 0 0 12px; }
.e-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; align-items: center; }
.e-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.85rem; background: transparent; color: var(--ink); }
.e-chip.fixe { padding-right: 12px; border-color: var(--accent); color: var(--accent); }
.e-chip button { padding: 0 6px; border: 0; font-size: 0.8rem; color: var(--muted); }
button.e-chip { padding: 4px 12px; cursor: pointer; }
.e-ajout { display: flex; gap: 8px; margin: 0 0 6px; }
.e-ajout input { flex: 1; min-width: 0; }
.e-resultats { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.e-resultats:empty { display: none; }
.ev-form .ev-ligne { display: flex; flex-wrap: wrap; gap: 0 12px; }
.ev-form .ev-ligne label { flex: 1 1 140px; }
.ev-form select, .ev-form input[type=datetime-local], .ev-form input[type=number] { font: inherit; font-size: 1rem; color: var(--ink); background: var(--champ, var(--bg-2, #1f1913)); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; color-scheme: var(--schema, dark); }
.ev-form .ev-case { display: flex; gap: 8px; align-items: flex-start; color: var(--ink); }
.ev-liste h4 { margin: 4px 0 0; font: 600 1.25rem var(--serif); }
.ev-liste .ev-desc { margin: 4px 0; white-space: pre-line; color: var(--ink-soft); font-size: 0.92rem; }
.ev-liste li.annule h4 { text-decoration: line-through; }
.ev-liste li.passe { opacity: 0.6; }
.ev-liste .note { margin: 4px 0; }
.e-publication { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 12px 0 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; }
.e-publication .note { flex: 1 1 260px; margin: 0; }
.e-publication .e-avalider { color: #e08a7a; }
.e-publication .e-avalider a { color: inherit; }
.e-publication .e-voir { font-size: 0.85rem; color: var(--accent); }
.e-aides { margin: 0 0 12px; }
.e-aides ul, #aider ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.e-aides li, #aider li { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.e-aides li.attente, #aider li.attente { border-style: dashed; }
.e-aides .e-actions, #aider .e-actions { margin-top: 6px; }

/* Alerte « Envoyer l'invitation » (gestion.js) */
.gx-voile { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0.6); }
/* clic à côté d'une fenêtre qui ne se ferme pas : le voile s'assombrit un instant et la fenêtre fait un petit pouls */
.gx-voile.gx-bloque { animation: gx-voile-bloque 0.35s ease-out; }
.gx-voile.gx-bloque > .gx-alerte { animation: gx-pouls 0.35s ease-out; }
@keyframes gx-voile-bloque { 0% { background: rgba(0, 0, 0, 0.6); } 30% { background: rgba(0, 0, 0, 0.78); } 100% { background: rgba(0, 0, 0, 0.6); } }
@keyframes gx-pouls { 0% { transform: scale(1); } 30% { transform: scale(1.012); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .gx-voile.gx-bloque, .gx-voile.gx-bloque > .gx-alerte { animation: none; } }
.gx-alerte { width: min(420px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--carte, #17120d); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 18px; color: var(--ink); }
.gx-alerte-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.gx-alerte .gx-croix { width: 36px; height: 36px; padding: 0; border-radius: 50%; }
.gx-envois { display: grid; gap: 8px; margin-top: 12px; }
.gx-envois .bouton, .gx-envois button { text-align: center; padding: 11px 16px; }

/* Exposition temporaire : grille des accroches attribuées, puces de couleur */
.gestion .e-grille { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.gestion .e-grille button { min-width: 34px; padding: 4px 6px; border-radius: 6px; border: 2px solid var(--line, #444); font-size: 0.85rem; }
.gestion .e-grille button.choisi { background: var(--accent, #c49a4a); color: var(--sur-accent, #1a120a); border-color: var(--accent, #c49a4a); }
.gestion .e-puces { display: flex; flex-wrap: wrap; gap: 3px; margin: 0 0 6px; font-size: 0.82rem; color: var(--muted, #999); }
.gestion .e-puce { min-width: 24px; padding: 1px 6px; border-radius: 999px; color: #fff; text-align: center; font-size: 0.78rem; }
.gestion .e-periode { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gestion .e-editeur { margin: 4px 0 10px; }

/* plan des accroches (vue du dessus) */
.gestion .e-invite { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.gestion .e-invite input[type=email] { width: 100%; box-sizing: border-box; }
.gestion .e-plan { width: 100%; max-height: 420px; display: block; background: #0d0b08; border-radius: 10px; }
.gestion .e-plan .e-acc { cursor: pointer; outline: none; }
.gestion .e-plan .e-acc.bloque { cursor: not-allowed; }
.gestion .e-plan .e-acc:hover line:not(.e-attache), .gestion .e-plan .e-acc:focus-visible line:not(.e-attache) { stroke-width: 0.9; }
.gestion .e-plan text { pointer-events: none; font-family: inherit; }

/* Carte d'une exposition : réglages en boutons, chacun ouvre une fenêtre (fenetre() de gestion.js) */
/* Outils : une grille de tuiles régulières sous un titre, au lieu d'une pluie de boutons de largeurs différentes */
.e-outils { display: grid; gap: 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.e-groupe h4 { margin: 0 0 8px; font: 600 0.74rem var(--sans, inherit); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.e-tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px; }
.e-outils button, .e-outils a.bouton { font-size: 0.88rem; padding: 10px 12px; border-radius: 10px; text-align: left; line-height: 1.25; }
/* vignettes : icône, nom, compteur */
.e-outils .e-tuile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 86px; padding: 12px; text-decoration: none; box-sizing: border-box; }
.e-tuile .t-ico { font-size: 1.5rem; line-height: 1.1; }
.e-tuile .t-nom { font-weight: 600; }
.e-tuile .t-n { font-size: 0.8rem; color: var(--muted); font-weight: 400; min-height: 1em; }
.e-tuile.plein .t-n { color: var(--accent, inherit); font-weight: 700; }
.e-outils .e-tuile.inactive { opacity: 0.5; filter: grayscale(1); border-style: dashed; }
.e-outils .e-tuile.inactive:hover { opacity: 0.8; }
/* actions principales : « Supprimer », destructif, écarté à droite */
.expo > .e-actions button.danger { margin-left: auto; }
.e-reglages { margin-top: 12px; padding-top: 0; border-top: 0; }
.e-temp-periode { margin: 10px 0 0; }
.e-temp-periode .note:empty { display: none; }
.gx-fenetre { width: min(640px, 100%); }
.gx-fenetre .gx-alerte-tete { position: sticky; top: -16px; margin: -16px -18px 10px; padding: 14px 18px 10px; background: var(--carte, #17120d); border-bottom: 1px solid var(--line); z-index: 1; }
.gx-fenetre .e-form { margin: 0; border: 0; padding: 0; }
.gx-fenetre .e-temp > :first-child, .gx-fenetre fieldset > :first-child { margin-top: 0; }
body.gx-ouverte { overflow: hidden; }
.gestion input[type=date], .gestion input[type=datetime-local] { font: inherit; font-size: 0.95rem; color: var(--ink); background: var(--gx-champ); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; color-scheme: dark; }
.gestion form label.ev-case { display: flex; gap: 8px; align-items: flex-start; color: var(--ink); }
.gestion .e-periode { align-items: flex-end; }
.gestion .e-periode label { display: flex; align-items: center; gap: 6px; margin: 0; }
.e-ajout input[type=checkbox] { flex: none; }

/* Cartes illustrées des choix de l'exposition (CHOIX_EXPO de gestion.js) */
.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.cartes label, .gestion form .cartes label { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; display: grid; gap: 4px; align-content: start; }
.cartes label:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.cartes label.desactive { opacity: 0.45; cursor: not-allowed; }
/* intérieur ou plein air (installerLieu de gestion.js) : cartes, textes et rubriques du lieu non choisi masqués */
.cartes label[hidden], .cartes [data-lieu][hidden], fieldset.e-supports[hidden], fieldset.e-type[hidden] { display: none !important; }
.e-lieu .cartes svg { width: 100%; max-width: 160px; height: auto; }
.cartes input { position: absolute; opacity: 0; pointer-events: none; }
.cartes strong { font: 600 1.5rem var(--serif); color: var(--ink); }
.cartes span { font-size: 0.82rem; color: var(--muted); }
.cartes svg { width: 100%; height: 64px; margin-bottom: 4px; }
/* Aperçu vu du dessus des choix (apercuPlan de gestion.js) */
.e-apercu { margin: -6px 0 18px; }
.e-apercu .e-plan { width: 100%; max-height: 240px; display: block; background: #0d0b08; border-radius: 10px; }
.e-apercu .e-acc { pointer-events: none; }
.e-apercu figcaption { margin-top: 6px; }

/* En-tête de la carte d'une exposition : titre et badge d'état en haut à droite */
.e-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px 12px; }
.e-tete h3 { min-width: 0; overflow-wrap: anywhere; }
.e-badge { flex: none; margin-top: 4px; font-size: 0.78rem; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.e-badge.ok { color: #8fc49a; border-color: #4f7a58; }
.e-badge.attente { color: var(--accent); border-color: var(--accent); }
.e-badge.ko { color: #e08a7a; border-color: #b4574a; }

/* champ « Ville » d'une exposition (src/expos/ville.js) : suggestions de vraies villes sous le champ */
.ville-champ { display: grid; gap: 4px; }
.ville-boite { position: relative; display: block; }
.ville-boite input { width: 100%; box-sizing: border-box; }
.ville-liste { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60; margin: 0; padding: 4px; list-style: none; max-height: 260px; overflow: auto;
  background: var(--carte, #17120d); border: 1px solid var(--accent, #c49a4a); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
.ville-liste[hidden] { display: none; }
.ville-liste li { display: grid; gap: 1px; padding: 7px 10px; border-radius: 7px; cursor: pointer; }
.ville-liste li b { font-weight: 500; color: var(--ink, #efe6d6); }
.ville-liste li span { font-size: 0.78rem; color: var(--muted, #9a8a6a); }
.ville-liste li:hover, .ville-liste li.actif { background: rgba(196, 154, 74, 0.18); }
.ville-note { font-size: 0.78rem; color: var(--muted, #9a8a6a); }
.ville-note.erreur { color: #e08a7a; }
/* Photos des visiteurs d'une exposition, retirées par le créateur (photosVisiteurs de gestion.js) */
.e-photos { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.e-photos li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: start; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.e-photos li.attente { border-color: #b4574a; }
.e-photos li.refuse { opacity: 0.6; }
.e-photos img { width: 110px; height: 110px; object-fit: cover; border-radius: 6px; }
.e-photos .e-etat { margin: 0 0 4px; font-size: 0.82rem; }
.e-photos .e-signal { margin: 0 0 4px; font-size: 0.82rem; color: #e08a7a; }

/* Aménagements tout prêts (amenagements.js) : photo de la salle en haut de la carte, nom et quelques mots dessous */
.e-amenagements .cartes { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.e-amenagements .cartes label, .gestion form .e-amenagements .cartes label { padding: 0 0 10px; overflow: hidden; gap: 2px; }
.e-amenagements .cartes img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; margin-bottom: 6px; background: #2a241c; }
.e-amenagements .cartes strong { font-size: 0.98rem; line-height: 1.2; padding: 0 10px; }
.e-amenagements .cartes span { font-size: 0.78rem; line-height: 1.3; padding: 0 10px; }
.e-amenagements .cartes label.garder, .gestion form .e-amenagements .cartes label.garder { padding: 12px 10px; align-content: center; text-align: center; }
.e-amenagements .cartes label.garder strong, .e-amenagements .cartes label.garder span { padding: 0; }
.e-amenagements > .note { margin: 0 0 10px; }

/* Rôles des aides à l'aménagement (src/expos/roles.js) : vignettes illustrées, plusieurs à la fois */
.e-ajout-aide { display: block; }
.e-ajout-ligne { display: flex; gap: 8px; margin-top: 8px; }
.e-ajout-ligne input { flex: 1; min-width: 0; }
.e-roles-titre { margin: 4px 0 6px; font-size: 0.85rem; color: var(--muted); }
.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.roles.occupe { opacity: 0.7; pointer-events: none; }
.roles.secoue { animation: roles-secoue 0.35s; }
@keyframes roles-secoue { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.roles button.role { position: relative; display: grid; justify-items: center; align-content: start; gap: 2px; margin: 0; padding: 10px 8px 9px;
  border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); font: inherit; text-align: center; cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s; }
.roles button.role:hover { border-color: var(--accent); }
.roles button.role[aria-pressed="true"] { border-color: var(--accent); color: var(--ink); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.roles button.role .role-dessin { display: block; width: 64px; height: 48px; color: var(--muted); }
.roles button.role[aria-pressed="true"] .role-dessin { color: var(--accent); }
.roles button.role svg { display: block; width: 100%; height: 100%; }
.roles button.role b { font-size: 0.88rem; font-weight: 600; overflow-wrap: anywhere; hyphens: auto; }
.roles button.role small { font-size: 0.74rem; line-height: 1.3; color: var(--muted); }
.role-coche { position: absolute; top: 6px; right: 7px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: 0.7rem; background: var(--accent); color: var(--sur-accent, #1a120a); opacity: 0; transform: scale(0.6); transition: 0.15s; }
.roles button.role[aria-pressed="true"] .role-coche { opacity: 1; transform: none; }
.roles.compact { margin: 6px 0 0; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.roles.compact button.role { grid-template-columns: auto 1fr; justify-items: start; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; }
.roles.compact button.role .role-dessin { width: 36px; height: 27px; }
.roles.compact button.role b { font-size: 0.8rem; }
.roles.compact .role-coche { top: 50%; right: 6px; margin-top: -8px; width: 16px; height: 16px; }
@media (max-width: 520px) {
  .roles:not(.compact) small { display: none; }
  .roles.compact { grid-template-columns: 1fr; }
}
.roles-pastilles { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle; }
.role-pastille { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 3px; border: 1px solid var(--accent); border-radius: 999px; font-size: 0.78rem; color: var(--ink); }
.role-pastille .role-dessin { width: 26px; height: 20px; color: var(--accent); }
.role-pastille svg { display: block; width: 100%; height: 100%; }
.e-roles-fait { color: var(--accent); }
.e-roles-note { font-size: 0.8rem; }

/* Exposition privée (src/expos/prive.js, fenêtre « 🔒 Accès privé ») */
.e-prive-choix { display: flex; gap: 8px; align-items: center; margin: 0 0 4px; font-weight: 600; color: var(--ink); }
.e-prive .e-lien { display: block; word-break: break-all; margin: 0 0 6px; }
/* choix de la police du titre d'une exposition (polices.js : Mon espace et Paramètres du mode Aménager) */
.e-police { margin: 0 0 12px; }
.choix-polices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.choix-polices button { display: grid; gap: 2px; justify-items: center; min-width: 0; padding: 8px 6px; border-radius: 10px; border: 2px solid transparent; background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink-soft); font: inherit; font-size: 0.72rem; cursor: pointer; }
.choix-polices button b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.35rem; line-height: 1.4; color: var(--ink); font-family: var(--serif, Georgia, serif); font-weight: 400; }
.choix-polices button[aria-pressed=true] { border-color: var(--accent); color: var(--ink); }

/* Parcours en étapes des formulaires d'exposition (src/expos/etapes.js) : Informations → Disposition → Thème → Type d'accroche
   → Fonctionnalités → Accrocher. Seuls les blocs de l'étape en cours (data-etape) sont montrés. */
.hors-etape { display: none !important; }
.e-etapes { position: sticky; top: 0; z-index: 2; margin: 0 0 14px; padding: 8px 0; background: var(--carte, #17120d); }
.gx-fenetre .e-etapes { top: 36px; z-index: 1; }
.e-etapes { background: var(--carte, #17120d); }
.e-etapes button { background: var(--carte, #17120d); }
.e-etapes.compacte .ee-nom { display: none; }
.e-etapes.compacte { padding: 4px 0; }
.e-etapes.compacte button { padding: 3px 4px; }
.e-etapes ol { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.e-etapes li { flex: 1 1 0; min-width: 0; }
.e-etapes button { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 0.74rem; line-height: 1.2; text-align: center; }
.e-etapes .ee-ico { font-size: 1.15rem; line-height: 1; }
.e-etapes .ee-nom { overflow-wrap: anywhere; }
.e-etapes li.fait button { color: var(--ink); border-color: #4f7a58; }
.e-etapes li.fait .ee-ico::after { content: ' ✓'; color: #8fc49a; font: 700 0.8rem var(--sans, inherit); }
.e-etapes li.courante button { color: var(--ink); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; background: linear-gradient(rgba(196, 154, 74, 0.1), rgba(196, 154, 74, 0.1)), var(--carte, #17120d); }
@media (max-width: 560px) { .e-etapes .ee-nom { display: none; } .e-etapes li.courante .ee-nom { display: block; } .e-etapes li.courante { flex-grow: 3; } }
.e-etapes-erreur { margin: 0 0 10px; }
.e-nav { display: flex; justify-content: space-between; gap: 10px; margin: 18px 0 0; }
.e-nav button[hidden] { display: none; }
.e-nav .plein { margin-left: auto; }
.e-final h3 { margin: 4px 0 8px; font: 600 1.3rem var(--serif); }
.e-recap { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 6px; }
.e-recap li { padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 0.92rem; }
.e-recap .rc-ico { margin-right: 8px; }
.e-fonctions label { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; color: var(--ink); }
.e-fonctions input[type=checkbox] { flex: none; margin-top: 3px; }
.e-actions[data-etape] button[hidden] { display: none; }
.e-type-autre[hidden] { display: none !important; }

/* étape « Fonctionnalités » : case à gauche, nom et description à côté */
.e-fonctions label, .gestion form .e-fonctions label, #creation .e-fonctions label { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.e-fonctions label:has(input:checked) { border-color: var(--accent); }
.e-fonctions input[type=checkbox] { flex: none; width: 18px; height: 18px; margin: 2px 0 0; padding: 0; }
.e-fonctions .fo-texte { display: grid; gap: 3px; min-width: 0; }
.e-fonctions .fo-texte strong { font: 600 0.98rem var(--sans, inherit); color: var(--ink); }
.e-fonctions .fo-texte small { font-size: 0.82rem; line-height: 1.45; color: var(--muted); }
.e-seule .e-final { display: none; }
.e-seule .e-nbsalles .note { display: none; }
/* « Supprimer » : vignette rouge */
.e-outils .e-tuile.danger { border-color: #b4574a; color: #e08a7a; }
.e-outils .e-tuile.danger:hover { background: rgba(180, 87, 74, 0.14); }
/* vignettes repliées par défaut : bouton « ⋯ » / « ▲ » à la fin de la rangée d'actions, et « ▲ » en bas de la zone ouverte */
.e-outils[hidden] { display: none; }
.expo > .e-actions button.e-bascule, .gestion button.e-bascule { margin-left: auto; min-width: 46px; padding: 6px 14px; font-size: 1.15rem; line-height: 1; letter-spacing: 0.1em; }
.e-outils .e-replier { justify-self: center; min-width: 46px; padding: 4px 14px; font-size: 0.95rem; text-align: center; border-radius: 999px; }
/* compteurs de l'exposition, toujours visibles : visiteurs uniques, J'aime, livre d'or, commentaires */
.e-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 14px; }
.e-stat { display: grid; grid-template-columns: auto 1fr; grid-template-areas: 'ico n' 'ico nom'; column-gap: 10px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; }
.e-stat .s-ico { grid-area: ico; font-size: 1.4rem; line-height: 1; }
.e-stat .s-n { grid-area: n; font: 600 1.35rem var(--serif); color: var(--ink); line-height: 1.1; }
.e-stat .s-nom { grid-area: nom; font-size: 0.78rem; color: var(--muted); line-height: 1.2; }
.e-stat.cliquable { cursor: pointer; }
.e-stat.avec-detail { grid-template-areas: 'ico n' 'ico nom' 'det det' 'tot tot'; }
.e-stat .s-total { grid-area: tot; margin-top: 6px; font-size: 0.78rem; color: var(--muted); }
.e-stat.seul-detail { grid-template-areas: 'ico nom' 'det det'; grid-template-columns: auto 1fr; }
.e-stat.seul-detail .s-n { display: none; }
.e-stat.seul-detail .s-nom { font-size: 0.95rem; color: var(--ink); font-weight: 600; }
.e-stat.seul-detail .s-detail { margin-top: 6px; padding-top: 6px; flex-direction: column; gap: 6px; }
.e-stat.seul-detail .s-d-bloc { flex-direction: row; align-items: baseline; gap: 6px; }
.e-stat.seul-detail .s-d-bloc + .s-d-bloc { border-top: 1px dashed var(--line); padding-top: 6px; }
.e-stat .s-d-bloc.inactive { opacity: 0.5; }
.e-stat.seul-detail .s-d-bloc small { font-size: 0.78rem; }
.e-stat .s-detail { grid-area: det; display: flex; gap: 14px; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); }
.e-stat .s-d-bloc { display: flex; flex-direction: column; line-height: 1.15; }
.e-stat .s-d { font: 600 1.05rem var(--serif); color: var(--ink); }
.e-stat .s-d-bloc small { font-size: 0.72rem; color: var(--muted); }
.e-stat.cliquable:hover, .e-stat.cliquable:focus-visible { border-color: var(--accent); }
.cv-resume { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 10px 0; }
.cv-chiffre { display: flex; align-items: baseline; gap: 6px; }
.cv-chiffre strong { font: 600 1.4rem var(--serif); }
.cv-pastille { width: 12px; height: 12px; border-radius: 50%; align-self: center; }
.cv-zone { overflow-x: auto; color: var(--ink); }
.cv-svg { width: 100%; min-width: 420px; height: auto; display: block; }
.e-stat.inactive { opacity: 0.5; border-style: dashed; }

/* salle libre : dimensions de la salle */
.gestion .e-libre .e-libre-champs { display: flex; flex-wrap: wrap; gap: 14px; margin: 6px 0; }
.gestion .e-libre .e-libre-champs label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; }
.gestion .e-libre .e-libre-champs input { width: 8.5rem; }
.gestion .e-libre .e-libre-nb { font-weight: 600; }
.gestion .e-poignee { fill: #e8c35a; stroke: #1a120a; stroke-width: 0.1; opacity: 0.95; }
.gestion .e-poignee:hover { fill: #fff0b0; }
.gestion .e-libre .e-libre-boutons { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.gestion .e-libre .e-libre-boutons button { padding: 6px 10px; }
.gestion .e-libre .e-libre-boutons button:disabled { opacity: 0.4; }
.gestion .e-plan .e-salle-sel { stroke: #e8c35a; stroke-width: 0.3; }
.gestion .e-plan .e-salle { cursor: pointer; }
.gestion .e-plan .e-bloc { cursor: pointer; }
.gestion .e-plan .e-bloc.e-salle-sel { stroke: #e8c35a; stroke-width: 0.3; }
.gestion .e-poignee-sel { fill: #ffffff; stroke: #e8c35a; stroke-width: 0.3; }
.gestion .e-fleche { fill: #e8c35a; stroke: #1a120a; stroke-width: 0.08; opacity: 0.95; }
.gestion .e-fleche:hover { fill: #fff0b0; }
.gestion .e-action circle { stroke: #e8c35a; stroke-width: 0.12; opacity: 0.95; }
.gestion .e-action text { fill: #fff0b0; }
.gestion .e-action:hover circle { stroke-width: 0.25; fill-opacity: 1; filter: brightness(1.25); }
