/* Lacuna : complements a la charte du compagnon (styles.css, copiee telle quelle).
   Une seule figure propre : la lacune, dessinee en pointille, comme un emplacement laisse vide. */

.marque .sceau.lacuna { background: linear-gradient(135deg, var(--mauve), var(--indigo)); }

/* ------------------------------------------------ conversation */

.atelier { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.fil-dialogue { display: flex; flex-direction: column; gap: 12px; min-height: 320px; max-height: calc(100vh - 330px); overflow-y: auto; padding: 4px 6px 12px 2px; scroll-behavior: smooth; }
.bulle { max-width: 76ch; padding: 12px 15px; border-radius: 14px; background: #fff; border: 1px solid var(--trait); box-shadow: var(--ombre); }
.bulle.moi { align-self: flex-end; background: var(--indigo-clair); border-color: #ddd8fc; }
.bulle.maieute { border-left: 4px solid var(--mauve); background: linear-gradient(140deg, var(--mauve-clair), #fff 55%); }
.bulle.tour { border-left: 4px solid var(--indigo); background: linear-gradient(140deg, var(--indigo-clair), #fff 55%); }
.bulle .qui { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; font-size: 13px; }
.bulle .qui b { font-size: 13.5px; }
.bulle .qui time { color: var(--gris-clair); font-size: 12px; }
.bulle .texte { white-space: pre-wrap; overflow-wrap: anywhere; }
.bulle .concepts { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.bulle .concepts span { font-size: 11.5px; color: var(--gris); background: #f6f5fd; border: 1px solid var(--trait); border-radius: 7px; padding: 1px 7px; }
.bulle .questions { margin: 10px 0 0; padding: 0; list-style: none; }
.bulle .questions li { padding: 7px 10px; border-radius: 9px; margin-top: 6px; background: #fff; border: 1px solid var(--trait); font-size: 14px; }
.bulle .questions li.pour-moi { border-color: var(--mauve); box-shadow: 0 0 0 3px var(--mauve-clair); }
.bulle .questions li b { display: block; font-size: 12px; color: var(--mauve); }
.bulle .actions { margin-top: 8px; display: flex; gap: 12px; }
.ligne-systeme { align-self: center; font-size: 12.5px; color: var(--gris); font-style: italic; text-align: center; max-width: 70ch; }
.appel-ref { background: none; border: 0; padding: 0 2px; color: var(--indigo); text-decoration: underline dotted; cursor: pointer; font: inherit; }

.composeur { margin-top: 12px; border: 1px solid var(--trait-fort); border-radius: 14px; background: #fff; box-shadow: var(--ombre); padding: 10px; }
.composeur textarea { border: 0; box-shadow: none; min-height: 74px; padding: 6px 8px; background: transparent; }
.composeur textarea:focus { box-shadow: none; }
.composeur .rangee { justify-content: space-between; }
.reglage-voix { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--gris); margin-top: 8px; }
.reglage-voix label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }

.micro { position: relative; }
.micro.enregistre { background: var(--alerte); border-color: var(--alerte); color: #fff; box-shadow: 0 0 0 0 rgba(225, 29, 111, .45); animation: pouls 1.4s infinite; }
.micro .duree { font: 600 12px var(--mono); }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 rgba(225, 29, 111, .45); } 70% { box-shadow: 0 0 0 12px rgba(225, 29, 111, 0); } 100% { box-shadow: 0 0 0 0 rgba(225, 29, 111, 0); } }

.etat-maieute { font-size: 13px; color: var(--mauve); min-height: 20px; margin-top: 8px; }
.etat-maieute.actif::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mauve); margin-right: 8px; animation: pouls-doux 1.2s ease-in-out infinite; }
@keyframes pouls-doux { 50% { opacity: .25; } }

.cote { position: sticky; top: 18px; }
.cote .carte { padding: 16px; }
.cote h3 { margin: 0 0 8px; font-size: 14px; }
.presence { display: flex; flex-wrap: wrap; gap: 6px; }
.presence span { font-size: 12.5px; padding: 2px 9px; border-radius: 999px; background: #f3f2fb; border: 1px solid var(--trait); color: var(--gris); }
.presence span.en-ligne { background: var(--vert-clair); border-color: #ccefeb; color: #0f766e; }
.mini-liste { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.mini-liste li { padding: 6px 0; border-bottom: 1px solid var(--trait); }
.mini-liste li:last-child { border-bottom: 0; }

/* ------------------------------------------------ lacunes : l'emplacement vide */

.lacune { border: 2px dashed #cfc8f5; background: repeating-linear-gradient(135deg, #fff 0 14px, #fbfaff 14px 28px); box-shadow: none; }
.lacune.statut-retenue { border-style: solid; border-color: var(--mauve); background: #fff; box-shadow: var(--ombre); }
.lacune.statut-a_creuser { border-color: var(--indigo); }
.lacune.statut-ecartee { opacity: .55; }
.lacune-type { font-size: 12.5px; color: var(--mauve); font-weight: 600; margin: 0 0 4px; }
.lacune-enonce { font: 600 16px/1.45 var(--serif); margin: 0 0 8px; }
.lacune .meta { font-size: 13px; color: var(--gris); }
.avis { display: inline-flex; gap: 6px; }
.avis button.choisi { border-color: var(--mauve); color: var(--mauve); background: var(--mauve-clair); }
.typologie { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 6px 0 20px; }
.typologie div { font-size: 13px; color: var(--gris); padding: 10px 12px; border: 1px dashed var(--trait-fort); border-radius: 10px; }
.typologie b { display: block; color: var(--encre); font-size: 13.5px; }

/* ------------------------------------------------ references */

.filtres { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 14px; }
.filtres button.actif { background: var(--encre); color: #fff; border-color: var(--encre); }
.ref-ligne .titre-ref { font-weight: 600; }
.ref-ligne .actions-ref { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; align-items: center; }
.ref-ligne .actions-ref input[type=text] { width: auto; flex: 1; min-width: 180px; padding: 6px 10px; }
.ref-ligne details { margin-top: 6px; font-size: 13.5px; color: var(--gris); }
.puce-terme { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; border: 1px solid var(--trait-fort); background: #fff; font-size: 13px; }
.puce-terme button { border: 0; background: none; cursor: pointer; color: var(--gris); font-size: 14px; line-height: 1; padding: 0 4px; }

.partage { max-width: 860px; margin: 30px auto; }
.cercle-carte h3 { margin: 0 0 4px; }
.cercle-carte a { text-decoration: none; color: inherit; }
.cercle-carte .meta { font-size: 13px; color: var(--gris); }

@media (max-width: 1100px) {
  .atelier { grid-template-columns: 1fr; }
  .cote { position: static; }
  .fil-dialogue { max-height: none; }
}
