/* Application du kit : reprend les jetons de /style.css */
.top-agence { font-weight: 700; color: var(--ink-soft); font-size: 0.95rem; text-align: right; }
.app { max-width: 46rem; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.app-large { max-width: 60rem; }
.app h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; letter-spacing: -0.015em; margin-bottom: 1rem; }
.app h2 { font-size: 1.35rem; margin: 0 0 0.75rem; }
.etat { color: var(--ink-soft); padding: 3rem 0; }
.muet { color: var(--ink-soft); }
.petit { font-size: 0.85rem; margin-top: 0.75rem; }
.btn { border: 0; cursor: pointer; font-family: inherit; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--paper); }
.lien-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 0.9rem; color: var(--ink); text-decoration: underline; cursor: pointer; }

/* Étapes du dossier : vraie séquence, donc numérotée */
.etapes { list-style: none; counter-reset: e; padding: 0; margin: 1.5rem 0 2.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.etapes li { counter-increment: e; background: var(--paper); border: 1px solid var(--rule); padding: 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.2rem; }
.etapes li::before { content: counter(e); font-weight: 800; font-size: 1.25rem; }
.etapes li span { font-size: 0.85rem; color: var(--ink-soft); }
.etapes li.fait { border-color: var(--ink); box-shadow: inset 0 3px 0 var(--ink); }
.etapes li.fait::before { content: counter(e) " ✓"; }
.etapes li.bloque { opacity: 0.55; }

.bloc { background: var(--paper); border: 1px solid var(--rule); padding: 1.6rem; margin-bottom: 1.25rem; }
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 1rem; }
.doc-lien { display: block; border: 1px solid var(--rule); padding: 0.9rem 1rem; text-decoration: none; font-weight: 500; }
.doc-lien b { display: block; font-size: 0.8rem; color: var(--stamp); }
.doc-lien:hover { border-color: var(--ink); }

/* Formulaires */
.questionnaire fieldset, .quiz fieldset { border: 0; border-top: 1px solid var(--rule); padding: 1.25rem 0 0.5rem; margin: 0; }
.questionnaire legend, .quiz legend { font-weight: 800; font-size: 1.05rem; padding: 0 0 0.5rem; }
.aide { color: var(--ink-soft); font-size: 0.92rem; }
.questionnaire label, .ajout label { display: block; font-weight: 500; margin-bottom: 0.9rem; }
.questionnaire small, .ajout small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; }
.questionnaire input:not([type=checkbox]), .questionnaire select, .ajout input, .ajout select {
  display: block; width: 100%; margin-top: 0.3rem; padding: 0.65rem 0.75rem;
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule); border-radius: 4px;
}
.questionnaire input:focus, .questionnaire select:focus, .ajout input:focus, .ajout select:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
label.oui { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; }
label.oui input { margin-top: 0.35rem; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--ink); }
.ajout { display: grid; grid-template-columns: 2fr 1.3fr auto; gap: 0.75rem; align-items: end; margin: 1rem 0 1.25rem; }
.ajout label { margin: 0; }

.equipe { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.equipe th { text-align: left; border-bottom: 2px solid var(--ink); padding: 0.4rem 0.5rem 0.4rem 0; }
.equipe td { border-bottom: 1px solid var(--rule); padding: 0.6rem 0.5rem 0.6rem 0; vertical-align: top; }
.equipe tr.parti td { color: var(--ink-soft); }

/* Formation */
.progression { font-weight: 700; color: var(--ink-soft); margin-bottom: 0.4rem; font-size: 0.9rem; }
.barre { height: 6px; background: var(--rule); margin-bottom: 2rem; }
.barre span { display: block; height: 100%; background: var(--ink); }
.module { background: var(--paper); border: 1px solid var(--rule); padding: 1.75rem; line-height: 1.7; }
.module h1 { font-size: 1.6rem; }
.module h2 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.module ul { padding-left: 1.2rem; }
.module li { margin-bottom: 0.4rem; }
.module .cas { border-left: 3px solid var(--stamp); padding: 0.2rem 0 0.2rem 1rem; margin: 1.25rem 0; }
.module .source { font-size: 0.85rem; color: var(--ink-soft); margin-top: 1.5rem; }
.nav-module { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.quiz label { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.45rem 0; cursor: pointer; }
.quiz input { margin-top: 0.4rem; accent-color: var(--ink); }
.quiz .btn { margin-top: 1.5rem; }
.qnum { color: var(--stamp); }
.corrections { padding-left: 1.2rem; }
.corrections li { margin-bottom: 1rem; padding-left: 0.4rem; }
.corrections li.ko { border-left: 3px solid var(--stamp); padding-left: 0.75rem; }
.explication { display: block; color: var(--ink-soft); font-size: 0.92rem; margin-top: 0.25rem; }

@media (max-width: 760px) {
  .etapes { grid-template-columns: 1fr 1fr; }
  .docs { grid-template-columns: 1fr; }
  .ajout { grid-template-columns: 1fr; }
  .equipe thead { display: none; }
  .equipe tr { display: block; border-bottom: 1px solid var(--rule); padding: 0.5rem 0; }
  .equipe td { display: block; border: 0; padding: 0.15rem 0; }
}

.bandeau-demo { background: #FFF4D6; border: 1px solid #E8C766; border-radius: 4px; padding: 0.75rem 1rem; margin: 0 0 1.5rem; }
