/* Féema scène — l'identité « Néon de scène » (variables dans tokens.css),
   posée sur un outil de travail : rail sombre à gauche, pages claires, beaucoup d'air. */

:root {
  /* Une couleur par type de lieu, reprise sur la liste, la fiche et la carte. */
  --type-salle: #C4188F;
  --type-theatre: #FF7A4D;
  --type-festival: #E8A013;
  --type-mairie: #6B4FA0;
  --type-institution: #8E6CC9;
  --type-production: #2A8C9E;
  --type-association: #0C7A54;
  --type-media: #8C7FA3;
  --type-autre: #BFB3C9;
  --largeur-rail: 244px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 15px/1.5 var(--font-texte); }
a { color: var(--action); }
h1, h2 { font-family: var(--font-titres); font-weight: 800; letter-spacing: -0.01em; margin: 0 0 12px; }
h1 { font-size: 30px; line-height: 1.15; }
h2 { font-size: 17px; }
.doux { color: var(--encre-douce); }
.petit { font-size: 13px; }
.centre { text-align: center; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Le cadre : rail sombre + page ---------- */
.cadre { display: grid; grid-template-columns: var(--largeur-rail) 1fr; min-height: 100vh; }
.rail {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px;
  padding: 28px 18px 20px; background: var(--nuit); color: #F4E9F7;
  background-image: radial-gradient(120% 60% at 0% 0%, rgba(255,95,208,.18), transparent 60%);
}
.rail__marque { font-family: var(--font-affiche); font-size: 26px; color: #fff; text-decoration: none; line-height: 1; margin: 0; }
.rail__marque span { color: var(--action-neon); }
.rail__sous { margin: 6px 0 26px; font-size: 13px; color: #BFA9CF; }
.rail__menu { display: flex; flex-direction: column; gap: 2px; }
.rail__menu a {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: var(--rayon-petit);
  color: #E9DDF0; text-decoration: none; font-weight: 600;
}
.rail__menu a:hover { background: var(--nuit-clair); color: #fff; }
.rail__menu a.actif { background: var(--nuit-clair); color: #fff; box-shadow: inset 3px 0 0 var(--action-neon); }
.rail__nombre { background: var(--action-neon); color: var(--nuit); border-radius: var(--rayon-pill); padding: 0 8px; font-size: 12px; font-weight: 800; }
.rail__ajouter { margin-top: 18px; }
.rail__quitter { margin-top: auto; }
.rail__quitter .lien { color: #BFA9CF; }

.page { padding: 32px 40px 64px; min-width: 0; max-width: 1400px; }

/* ---------- Boutons, liens, messages ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px;
  border: 0; border-radius: var(--rayon-pill); background: var(--action); color: #fff; font: 700 14px var(--font-texte);
  text-decoration: none; cursor: pointer; box-shadow: var(--ombre-bouton); transition: transform .12s, background .12s;
}
.bouton:hover { background: var(--action-fonce); transform: translateY(-1px); }
.bouton--doux { background: var(--action-pale); color: var(--action-fonce); box-shadow: none; }
.bouton--doux:hover { background: #F8D2EE; }
.bouton--neon { background: var(--action-neon); color: var(--nuit); box-shadow: 0 4px 18px rgba(255,95,208,.35); }
.bouton--neon:hover { background: #fff; color: var(--nuit); }
.bouton--clair { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; border: 1px solid rgba(255,255,255,.25); }
.bouton--clair:hover { background: rgba(255,255,255,.22); }
.bouton--clair.est-favori span { color: var(--ambre); }
.bouton--danger { background: #fff; color: var(--erreur); border: 1px solid var(--erreur); box-shadow: none; }
.bouton--danger:hover { background: var(--erreur-pale); }
.lien { background: none; border: 0; padding: 0; color: var(--action); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lien--danger { color: var(--erreur-texte); }
.flash { padding: 10px 14px; border-radius: var(--rayon-petit); margin: 0 0 18px; font-weight: 600; }
.flash--succes { background: var(--succes-pale); color: var(--succes); }
.flash--erreur { background: var(--erreur-pale); color: var(--erreur-texte); border-left: 3px solid var(--erreur); }
.flash--attention { background: var(--attention-pale); color: var(--attention-texte); font-weight: 500; margin: 8px 0; }
.carte { background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre-douce); padding: 22px 24px; margin-bottom: 20px; }
.retour { display: inline-block; margin-bottom: 14px; color: var(--encre-douce); text-decoration: none; font-weight: 600; }
.retour:hover { color: var(--action); }

/* ---------- En-tête de la liste et filtres ---------- */
.entete-liste { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; margin-bottom: 18px; }
.entete-liste h1 { margin: 0; }
.compte { margin: 2px 0 0; color: var(--encre-douce); }
.compte strong { color: var(--encre); font-family: var(--font-titres); font-variant-numeric: tabular-nums; }
.recherche input {
  width: 100%; padding: 13px 18px 13px 44px; border: var(--bordure-fine); border-radius: var(--rayon-pill); background: var(--carte);
  font: 500 15px var(--font-texte); color: var(--encre); box-shadow: var(--ombre-douce);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23675379' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 16px center;
}
.recherche input:focus { outline: 0; border-color: var(--action); box-shadow: 0 0 0 4px var(--action-pale); }
.bascule { display: inline-flex; background: var(--carte); border-radius: var(--rayon-pill); padding: 4px; box-shadow: var(--ombre-douce); }
.bascule a { padding: 8px 18px; border-radius: var(--rayon-pill); text-decoration: none; color: var(--encre-douce); font-weight: 700; }
.bascule a.actif { background: var(--nuit); color: #fff; }

.public { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.public__choix {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 16px; border-radius: var(--rayon-pill); cursor: pointer;
  background: var(--carte); border: 1px solid var(--bordure); font-weight: 700;
}
.public__choix input { position: absolute; opacity: 0; pointer-events: none; }
.public__choix small { font-weight: 500; color: var(--encre-douce); }
.public__choix.actif { background: var(--action-pale); border-color: var(--action); color: var(--action-fonce); }
.public__choix:focus-within { box-shadow: 0 0 0 3px var(--action-pale); }

.barre-filtres { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; padding: 16px 18px; background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre-douce); margin-bottom: 22px; }
.choix { display: flex; flex-direction: column; gap: 4px; }
.choix span { font-size: 12px; font-weight: 700; color: var(--encre-douce); text-transform: uppercase; letter-spacing: .04em; }
.choix select, .grille-form input, .grille-form select, .grille-form textarea, .suivi select, .suivi input, .note textarea, .note select, .porte input {
  padding: 9px 12px; border: var(--bordure-fine); border-radius: var(--rayon-petit); background: #fff; font: 500 14px var(--font-texte); color: var(--encre);
}
.choix select { max-width: 230px; padding-right: 28px; }
.choix select:focus, .grille-form :is(input, select, textarea):focus, .suivi :is(select, input):focus, .note :is(textarea, select):focus { outline: 0; border-color: var(--action); box-shadow: 0 0 0 3px var(--action-pale); }
.choix--tri { margin-left: auto; }
.coche { display: inline-flex; align-items: center; gap: 6px; padding: 9px 4px; font-weight: 600; cursor: pointer; }
.coche input { accent-color: var(--action); width: 16px; height: 16px; }
.effacer { padding: 9px 4px; }

/* ---------- Les lignes de la liste ---------- */
.lignes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ligne {
  display: grid; grid-template-columns: 14px minmax(220px, 2.2fr) minmax(160px, 1.6fr) minmax(160px, 1.4fr) 140px; gap: 18px; align-items: center;
  padding: 14px 20px; background: var(--carte); border-radius: var(--rayon-petit); text-decoration: none; color: inherit;
  box-shadow: 0 1px 3px rgba(36,20,54,.05); transition: box-shadow .15s, transform .15s;
}
.ligne:hover { box-shadow: var(--ombre-survol); transform: translateY(-1px); }
.ligne__nom strong { font-weight: 700; }
.ligne__nom small, .ligne__qui small { display: block; color: var(--encre-douce); font-size: 13px; }
.ligne__qui { font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.ligne__infos { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.ligne__etat { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.etoile { color: var(--ambre); }
.gouts { font-size: 13px; color: var(--encre-douce); }

.point { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--type-autre); flex: none; }
.point--salle { background: var(--type-salle); } .point--theatre { background: var(--type-theatre); }
.point--festival { background: var(--type-festival); } .point--mairie { background: var(--type-mairie); }
.point--institution { background: var(--type-institution); } .point--production { background: var(--type-production); }
.point--association { background: var(--type-association); } .point--media { background: var(--type-media); }

.pastille { display: inline-block; padding: 2px 10px; border-radius: var(--rayon-pill); background: var(--surface-alt); border: 1px solid var(--bordure); font-size: 12px; font-weight: 700; color: var(--encre-douce); white-space: nowrap; }

/* La part d'humour : quatre barres qui montent. */
.humour { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.humour i { width: 4px; border-radius: 2px; background: #EAD9E6; }
.humour i:nth-child(1) { height: 5px; } .humour i:nth-child(2) { height: 8px; } .humour i:nth-child(3) { height: 11px; } .humour i:nth-child(4) { height: 14px; }
.humour--1 i:nth-child(-n+1), .humour--2 i:nth-child(-n+2), .humour--3 i:nth-child(-n+3), .humour--4 i:nth-child(-n+4) { background: var(--action); }

.etape { display: inline-block; padding: 3px 11px; border-radius: var(--rayon-pill); font-size: 12px; font-weight: 700; background: #F1EAF3; color: var(--encre-douce); white-space: nowrap; }
.etape--contacte { background: #EDE7FA; color: #5B3FA0; }
.etape--interesse, .etape--discussion { background: var(--action-pale); color: var(--action-fonce); }
.etape--date_proposee { background: var(--attention-pale); color: var(--attention-texte); }
.etape--confirme { background: var(--succes-pale); color: var(--succes); }
.etape--plus_tard { background: #EEF3F7; color: #3F5A70; }
.etape--refus { background: #F3EFF1; color: #8F7F88; text-decoration: line-through; }

.vide { padding: 48px; }
.vide__titre { font-family: var(--font-titres); font-weight: 800; font-size: 20px; margin: 0 0 6px; }

/* ---------- La carte ---------- */
.carte-france { background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre-douce); overflow: hidden; }
#carte { height: calc(100vh - 330px); min-height: 460px; }
.legende { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 18px; font-size: 13px; font-weight: 600; align-items: center; }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.bulle { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--encre); font-family: var(--font-texte); }
.bulle span { color: var(--encre-douce); }
.bulle em { color: var(--action); font-style: normal; font-weight: 700; margin-top: 4px; }
.leaflet-popup-content-wrapper { border-radius: var(--rayon-petit); box-shadow: var(--ombre-survol); }

/* ---------- La fiche d'un lieu ---------- */
.fiche-tete {
  position: relative; display: flex; justify-content: space-between; gap: 24px; align-items: flex-end;
  padding: 30px 32px; margin-bottom: 22px; border-radius: var(--rayon); background: var(--nuit); color: #fff; overflow: hidden;
  --teinte: var(--type-autre);
}
.fiche-tete::before { content: ''; position: absolute; inset: 0; background: radial-gradient(90% 120% at 100% 0%, var(--teinte), transparent 62%); opacity: .55; pointer-events: none; }
.fiche-tete > * { position: relative; }
.fiche-tete--salle { --teinte: var(--type-salle); } .fiche-tete--theatre { --teinte: var(--type-theatre); }
.fiche-tete--festival { --teinte: var(--type-festival); } .fiche-tete--mairie { --teinte: var(--type-mairie); }
.fiche-tete--institution { --teinte: var(--type-institution); } .fiche-tete--production { --teinte: var(--type-production); }
.fiche-tete--association { --teinte: var(--type-association); } .fiche-tete--media { --teinte: var(--type-media); }
.fiche-tete__type { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 800; color: var(--action-neon); }
.fiche-tete h1 { font-family: var(--font-affiche); font-weight: 400; font-size: 36px; margin: 0 0 6px; }
.fiche-tete__ou { margin: 0 0 14px; color: #DCCBE6; }
.fiche-tete__pastilles { display: flex; flex-wrap: wrap; gap: 8px; }
.fiche-tete__pastilles > span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--rayon-pill); background: rgba(255,255,255,.12); font-size: 13px; font-weight: 600; }
.fiche-tete .humour i { background: rgba(255,255,255,.25); }
.fiche-tete .humour--1 i:nth-child(-n+1), .fiche-tete .humour--2 i:nth-child(-n+2), .fiche-tete .humour--3 i:nth-child(-n+3), .fiche-tete .humour--4 i:nth-child(-n+4) { background: var(--action-neon); }
.fiche-tete__actions { display: flex; gap: 8px; flex: none; }

.fiche { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }

.personnes { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.personne { padding: 14px 16px; border-radius: var(--rayon-petit); background: var(--surface-alt); border: 1px solid #F3E3EC; }
.personne--stop { opacity: .7; }
.personne__tete { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.personne__tete strong { display: block; font-size: 16px; }
.categorie { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 3px 9px; border-radius: var(--rayon-pill); background: #EFE6F2; color: var(--encre-douce); white-space: nowrap; }
.categorie--programmateur { background: var(--action-pale); color: var(--action-fonce); }
.categorie--journaliste { background: #EEF0F7; color: #4D5A85; }
.personne__moyens { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
.moyen { display: inline-flex; gap: 8px; align-items: baseline; font-weight: 600; }
.moyen a { text-decoration: none; }
.personne__origine { margin: 8px 0 0; font-size: 12px; color: var(--encre-douce); }
.personne__modifier { margin-top: 6px; }
.personne__modifier summary, .ajout summary { list-style: none; cursor: pointer; display: inline-block; }
.personne__modifier summary::-webkit-details-marker, .ajout summary::-webkit-details-marker { display: none; }
.personne__modifier[open] .grille-form, .ajout[open] .grille-form { margin-top: 12px; }

.grille-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.grille-form label, .suivi label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; color: var(--encre-douce); }
.grille-form .large { grid-column: 1 / -1; }
.grille-form__bas { grid-column: 1 / -1; }

.infos { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; margin: 0; }
.infos dt { font-size: 13px; font-weight: 700; color: var(--encre-douce); }
.infos dd { margin: 0; }
.texte-long { white-space: pre-line; }

.suivi { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; padding-bottom: 18px; border-bottom: 1px dashed var(--bordure); margin-bottom: 18px; }
.note { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.note textarea { resize: vertical; }
.note .bouton { align-self: flex-start; }
.note__sortes { display: flex; gap: 6px; }
.note__sortes input { position: absolute; opacity: 0; }
.note__sortes span { display: inline-block; padding: 5px 12px; border-radius: var(--rayon-pill); border: 1px solid var(--bordure); font-size: 13px; font-weight: 700; cursor: pointer; color: var(--encre-douce); }
.note__sortes input:checked + span { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.note__sortes input:focus-visible + span { box-shadow: 0 0 0 3px var(--action-pale); }

.fil { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid #F0E2EC; display: flex; flex-direction: column; gap: 14px; }
.fil__point { position: relative; display: flex; flex-direction: column; gap: 2px; }
.fil__point::before { content: ''; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--bordure); }
.fil__point--appel::before, .fil__point--mail::before { border-color: var(--action); }
.fil__point--reponse::before { border-color: var(--succes); background: var(--succes); }
.fil__point--etape::before { border-color: var(--ambre); }
.fil__quand { font-size: 12px; font-weight: 700; color: var(--encre-douce); }
.fil__texte { white-space: pre-line; }
.fil__point--import .fil__texte { color: var(--encre-douce); font-size: 13px; }

.voisins { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.voisins a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--rayon-petit); text-decoration: none; color: var(--encre); }
.voisins a:hover { background: var(--surface-alt); }
.voisins small { display: block; color: var(--encre-douce); font-size: 12px; }

/* ---------- Formulaire d'un lieu ---------- */
.formulaire { max-width: 820px; }
.formulaire fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.formulaire legend { font-family: var(--font-titres); font-weight: 800; font-size: 17px; margin-bottom: 12px; }
.formulaire__bas { display: flex; justify-content: flex-end; gap: 18px; align-items: center; }

/* ---------- Fenêtre de confirmation et porte ---------- */
.confirmation { border: 0; border-radius: var(--rayon); padding: 26px; max-width: 440px; box-shadow: var(--ombre-survol); color: var(--encre); }
.confirmation::backdrop { background: rgba(30,16,48,.45); }
.confirmation p { margin: 0 0 20px; font-size: 16px; }
.confirmation__boutons { display: flex; justify-content: flex-end; gap: 10px; }

.porte { min-height: 100vh; display: grid; place-items: center; background: var(--nuit); background-image: radial-gradient(80% 60% at 50% 0%, rgba(255,95,208,.25), transparent 60%); }
.porte__carte { background: var(--carte); padding: 36px; border-radius: var(--rayon); width: min(380px, calc(100% - 32px)); display: flex; flex-direction: column; gap: 18px; }
.porte__carte .rail__marque { color: var(--nuit); text-align: center; font-size: 30px; }
.porte__carte .rail__marque span { color: var(--action); }
.porte label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }

/* ---------- Écrans plus étroits ---------- */
@media (max-width: 1100px) {
  .ligne { grid-template-columns: 14px 1fr 1fr 120px; }
  .ligne__qui { display: none; }
  .fiche { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .cadre { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 14px 16px; gap: 8px; }
  .rail__sous, .rail__quitter { display: none; }
  .rail__menu { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .rail__ajouter { margin: 0 0 0 auto; }
  .page { padding: 20px 16px 48px; }
  .entete-liste { grid-template-columns: 1fr; gap: 12px; }
  .ligne { grid-template-columns: 12px 1fr; gap: 10px 12px; }
  .ligne__infos, .ligne__etat { grid-column: 2; align-items: flex-start; }
  .fiche-tete { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .grille-form, .suivi, .infos { grid-template-columns: 1fr; }
  .choix--tri { margin-left: 0; }
}

/* La carte dessinée : pas de fond de carte extérieur, les départements suffisent. */
#carte.leaflet-container { background: #FFF9F7; font-family: var(--font-texte); }
.info-dep { border: 0; border-radius: var(--rayon-petit); box-shadow: var(--ombre-survol); padding: 6px 10px; font-size: 13px; color: var(--encre); }
.legende__aide { margin-left: auto; }
.bascule { justify-self: start; }

/* ---------- Spectacles, réponses, classement ---------- */
.rail__titre { margin: 22px 12px 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #9C86AE; }
.rail__menu--spectacles a { font-weight: 500; font-size: 14px; line-height: 1.3; }
.rail__menu--spectacles a span { display: flex; gap: 8px; align-items: baseline; }
.rail__menu--spectacles .point { width: 9px; height: 9px; flex: none; transform: translateY(-1px); }
.rail__discret { color: #9C86AE !important; font-size: 13px !important; }

.cibler { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: -8px 0 20px; padding: 12px 18px; border-radius: var(--rayon); background: var(--action-pale); color: var(--action-fonce); font-weight: 600; }
.cibler select { padding: 8px 12px; border: 1px solid #F0C4E4; border-radius: var(--rayon-petit); background: #fff; font: 600 14px var(--font-texte); color: var(--encre); }
.cibler .bouton--doux { background: var(--action); color: #fff; }

.etape .point { width: 8px; height: 8px; margin-right: 5px; }
.ligne__etat { gap: 4px; }
.ecarte { font-size: 12px; font-weight: 700; color: var(--erreur-texte); background: var(--erreur-pale); padding: 3px 10px; border-radius: var(--rayon-pill); white-space: nowrap; }
.fiche-tete__ecarte { margin-left: 8px; padding: 2px 10px; border-radius: var(--rayon-pill); background: rgba(255,255,255,.15); color: #fff; letter-spacing: .04em; }

.suivi-spectacle__tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.suivi-spectacle__tete h2 { margin: 0; display: flex; gap: 8px; align-items: baseline; }
.suivi-spectacle .suivi { border: 0; padding: 0; margin: 0; }

.motifs { display: flex; flex-wrap: wrap; gap: 8px; }
.motif input { position: absolute; opacity: 0; }
.motif span { display: inline-block; padding: 6px 12px; border-radius: var(--rayon-pill); border: 1px solid var(--bordure); font-size: 13px; font-weight: 600; cursor: pointer; color: var(--encre-douce); background: #fff; }
.motif input:checked + span { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.motif input:focus-visible + span { box-shadow: 0 0 0 3px var(--action-pale); }
.motifs__bas { width: 100%; margin-top: 6px; }
.classement { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--bordure); }
.classement__titre { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--encre-douce); }
.classement__choix { display: flex; gap: 8px; flex-wrap: wrap; }
.bouton--sobre { background: #F3EFF1; color: var(--erreur-texte); }
.note__liens { display: flex; gap: 8px; flex-wrap: wrap; }
.note__liens select { flex: 1; min-width: 160px; }
.fil__spectacle { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--encre); }
.fil__spectacle .point { width: 8px; height: 8px; }

/* ---------- Le point d'un spectacle ---------- */
.spectacle-tete { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 22px; }
.spectacle-tete h1 { font-family: var(--font-affiche); font-weight: 400; font-size: 34px; margin: 0 0 6px; }
.spectacle-tete .pitch { max-width: 720px; color: var(--encre-douce); margin: 0; white-space: pre-line; }
.chemin { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 12px; }
.chemin a { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--rayon); background: var(--carte); box-shadow: var(--ombre-douce); text-decoration: none; color: var(--encre); position: relative; transition: transform .15s, box-shadow .15s; }
.chemin a:hover { transform: translateY(-2px); box-shadow: var(--ombre-survol); }
.chemin strong { font-family: var(--font-titres); font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.chemin span { font-size: 13px; font-weight: 700; color: var(--encre-douce); }
.chemin a::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--bordure); }
.chemin .c-contacte::after { background: #8E6CC9; } .chemin .c-interesse::after, .chemin .c-discussion::after { background: var(--action); }
.chemin .c-date_proposee::after { background: var(--attention); } .chemin .c-confirme::after { background: var(--succes); }
.chemin-bis { display: flex; gap: 18px; margin: 0 0 24px; font-weight: 600; }
.point-grille { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tableau { width: 100%; border-collapse: collapse; font-size: 14px; }
.tableau th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--encre-douce); padding: 6px 8px; border-bottom: var(--bordure-fine); }
.tableau td { padding: 9px 8px; border-bottom: 1px solid #F5EAF0; font-variant-numeric: tabular-nums; }
.tableau td:not(:first-child), .tableau th:not(:first-child) { text-align: right; }
.liste-simple { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.liste-simple a { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 9px 10px; border-radius: var(--rayon-petit); text-decoration: none; color: var(--encre); }
.liste-simple a:hover { background: var(--surface-alt); }
.liste-simple small { display: block; color: var(--encre-douce); font-size: 12px; }
.en-retard { color: var(--erreur-texte); font-weight: 700; }
.vide-point { padding: 28px; text-align: center; }
@media (max-width: 1100px) { .chemin { grid-template-columns: repeat(3, 1fr); } .point-grille { grid-template-columns: 1fr; } }
.coche--form { flex-direction: row !important; align-self: end; color: var(--encre) !important; }
.proposition { border-left: 4px solid var(--action-neon); }
.proposition__qui { margin: 0 0 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--action); }
.proposition__texte { white-space: pre-line; font-size: 16px; margin: 0 0 16px; max-width: 760px; }
.proposition__boutons { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ---------- Cocher des lieux ---------- */
.selection__tete { display: flex; align-items: center; margin: 0 0 6px 4px; }
.lignes--cochables li { display: grid; grid-template-columns: 34px 1fr; align-items: center; }
.ligne__case { display: flex; align-items: center; justify-content: center; height: 100%; cursor: pointer; }
.ligne__case input, .selection__tete input { width: 18px; height: 18px; accent-color: var(--action); cursor: pointer; }
.ligne__case input:disabled { opacity: .3; cursor: not-allowed; }
.lignes--cochables li:has(input:checked) .ligne { box-shadow: 0 0 0 2px var(--action), var(--ombre-douce); }
.barre-selection {
  position: sticky; bottom: 18px; z-index: 500; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin-top: 16px; padding: 14px 20px; border-radius: var(--rayon); background: var(--nuit); color: #fff; box-shadow: var(--ombre-nuit);
}
.barre-selection[hidden] { display: none; }
.barre-selection select { padding: 8px 12px; border-radius: var(--rayon-petit); border: 0; font: 600 14px var(--font-texte); max-width: 320px; }
.lien--clair { color: #DCCBE6; }

/* ---------- Un mail préparé ---------- */
.envoi { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.envoi__boutons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.envoi__envoyer .bouton[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.destinataires { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; max-height: 70vh; overflow: auto; }
.destinataires__lieu { display: block; font-weight: 700; text-decoration: none; color: var(--encre); margin-bottom: 4px; }
.destinataires__lieu small { font-weight: 500; color: var(--encre-douce); }
.destinataire { display: flex; gap: 10px; align-items: flex-start; padding: 6px 8px; border-radius: var(--rayon-petit); cursor: pointer; }
.destinataire:hover { background: var(--surface-alt); }
.destinataire input { margin-top: 3px; accent-color: var(--action); width: 16px; height: 16px; }
.destinataire small { display: block; color: var(--encre-douce); font-size: 12px; }
.destinataire--stop { opacity: .5; cursor: not-allowed; }
.envoi__supprimer { margin-top: 8px; }
.ligne--mail { grid-template-columns: 1fr 160px 140px; }
@media (max-width: 1100px) { .envoi { grid-template-columns: 1fr; } }
.rail__sauvegarde { margin-top: auto; padding: 8px 12px; text-decoration: none; font-size: 13px; }
.rail__sauvegarde + .rail__quitter { margin-top: 4px; }
.verser { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
