:root {
  --ardoise: #2f4c66;
  --ardoise-actif: #3d5770;
  --ardoise-fonce: #24384a;
  --orange: #fe500b;
  --toile: #f3f4f7;
  --encre: #1c2421;
  --encre-douce: #3d4a52;
  --ligne: #d5dbe0;
  --erreur: #8c1d18;
  color-scheme: light;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--encre);
  background: var(--toile);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.4;
}

a { color: var(--ardoise-fonce); }

.aller-contenu {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: #fff;
  color: var(--encre);
  padding: 0.4rem 0.7rem;
  z-index: 8;
}

.aller-contenu:focus { transform: none; }

.icone {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.coque-tableau {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  min-height: 100vh;
}

.barre-laterale {
  background: var(--ardoise);
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 1rem 0.75rem 0.85rem;
}

.marque {
  display: block;
  padding: 0.15rem 0.45rem 0.85rem;
}

.marque img,
.logo-bas {
  display: block;
  width: 100%;
  height: auto;
}

.logo-bas { margin-top: 0.85rem; }

.nav-laterale {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-laterale a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.nav-laterale a:hover { background: rgba(255, 255, 255, 0.08); }

.nav-laterale a.actif { background: var(--ardoise-actif); }

.pied-laterale { margin-top: auto; padding-top: 1rem; }

.colonne {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  background: var(--toile);
}

.barre-haute {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 4rem;
  padding: 0 1.25rem;
  background: #fff;
  border-bottom: 1px solid #e6e8ee;
}

.page-tableau main {
  padding: 1.35rem 1.6rem 2rem;
  color: var(--encre);
}

.salut {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.salut h1 {
  margin: 0;
  color: #1a2332;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.salut p { margin: 0.2rem 0 0; color: var(--encre-douce); }

.date-jour {
  margin: 0.35rem 0 0;
  color: #8b95a1;
  font-size: 0.95rem;
  white-space: nowrap;
}

.cartes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.carte {
  border-radius: 14px;
  padding: 1rem 1rem 0.9rem;
  min-height: 8.2rem;
  display: flex;
  flex-direction: column;
}

.carte-bleu { background: #eef4ff; }
.carte-vert { background: #e7f7ee; }
.carte-orange { background: #fff3e8; }
.carte-violet { background: #eef0fb; }

.carte .icone { width: 1.7rem; height: 1.7rem; stroke-width: 1.6; }
.carte-bleu .icone { stroke: #3b6fe0; }
.carte-vert .icone { stroke: #2f9d5a; }
.carte-orange .icone { stroke: #e08a2a; }
.carte-violet .icone { stroke: #5c63d6; }

.carte-nombre {
  margin: 0.55rem 0 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: #1a2332;
}

.carte-libelle {
  margin: 0.35rem 0 0;
  color: #5c6770;
  font-size: 0.92rem;
}

.panneau {
  margin-top: 1rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(20, 32, 48, 0.06);
  padding: 1rem 1.15rem 1.1rem;
}

.panneau-entete {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.panneau h2 {
  margin: 0;
  font-size: 1.05rem;
  color: #1a2332;
}

.voir-tout {
  color: #3b6fe0;
  text-decoration: none;
  font-size: 0.92rem;
}

.defilement { overflow-x: auto; }

.activite { width: 100%; border-collapse: collapse; }

.activite th,
.activite td {
  text-align: left;
  padding: 0.7rem 0.45rem;
  border-bottom: 1px solid #eef0f3;
  font-size: 0.92rem;
}

.activite th {
  color: #8b95a1;
  font-weight: 600;
  font-size: 0.82rem;
}

.activite td { color: #24303a; }

.activite .sujet {
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repartition {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 0.4rem 0.2rem 0.2rem;
}

.anneau {
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: conic-gradient(#e6e8ee 0 100%);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.anneau-centre {
  width: 6.6rem;
  height: 6.6rem;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.anneau-centre strong {
  font-size: 1.8rem;
  color: #1a2332;
}

.anneau-centre span { color: #8b95a1; font-size: 0.85rem; }

.legende { list-style: none; margin: 0; padding: 0; min-width: 14rem; }

.legende li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.45rem 0;
  color: #24303a;
}

.pastille {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  flex: 0 0 auto;
}

.pastille-nouvelles { background: #3b82f6; }
.pastille-cours { background: #f0a03a; }
.pastille-attente { background: #aeb6bf; }
.pastille-fermees { background: #3cba6a; }

.legende b { margin-left: auto; font-weight: 600; }

.menu-initiales { position: relative; }

.menu-initiales summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.menu-initiales summary::-webkit-details-marker { display: none; }

.pastille-initiales {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.pastille-initiales.long {
  font-size: 0.72rem;
  letter-spacing: 0;
}

.menu-compte {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 6;
  min-width: 12rem;
  padding: 0.35rem;
  background: #fff;
  color: var(--encre);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(20, 32, 48, 0.18);
}

.menu-nom {
  margin: 0;
  padding: 0.4rem 0.65rem 0.3rem;
  font-weight: 700;
  border-bottom: 1px solid var(--ligne);
}

.menu-compte a,
.menu-compte button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.5rem 0.65rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--encre);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.menu-compte a:hover,
.menu-compte button:hover { background: var(--toile); }

body.page-module {
  background: var(--toile);
  color: var(--encre);
}

.barre-modules {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.85rem;
  background: #fff;
  color: var(--encre);
  border: 0;
}

.logo-module {
  grid-column: 1;
  justify-self: start;
  align-self: center;
  display: block;
  background: var(--ardoise);
  border-radius: 8px;
  padding: 0.35rem 0.55rem 0.28rem;
  line-height: 0;
}

.logo-module img {
  display: block;
  height: 2.7rem;
  width: auto;
}

.coin-droit {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
}

.modules {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  align-items: stretch;
}

.modules a {
  width: 6.6rem;
  min-height: 4.6rem;
  padding: 0.4rem 0.3rem 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.28rem;
  text-align: center;
  text-decoration: none;
  color: var(--encre);
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  font-size: 0.78rem;
  line-height: 1.15;
}

.modules a .icone {
  width: 1.55rem;
  height: 1.55rem;
}

.modules a.actif,
.modules a:hover { background: var(--toile); }

.bande-client {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.35rem;
  padding: 0.45rem 0.85rem;
  background: var(--ardoise);
}

.bande-client a {
  color: #fff;
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.25;
}

.bande-client a:hover { background: rgba(255, 255, 255, 0.08); }

.bande-client a.actif { background: var(--ardoise-actif); }

.page-module main { padding: 1rem 1.15rem 2rem; }

.barre-liste {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.barre-liste h1 { margin: 0; }

.recherche {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  align-items: flex-end;
  background: #fff;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.8rem;
}

.recherche .champ { margin: 0; }

.recherche label { font-size: 0.82rem; }

.recherche input,
.recherche select { max-width: 14rem; }

.charte-registre {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  align-items: center;
  margin: 0 0 0.7rem;
  color: var(--encre-douce);
  font-size: 0.85rem;
}

.charte-registre ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.charte-registre li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.puce {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 2px;
  display: inline-block;
}

.puce.bande-vert { background: #c2e5a6; }
.puce.bande-jaune { background: #f3eb00; }
.puce.bande-orange { background: #c97100; }
.puce.bande-rouge { background: #d90b00; }

.feuille-liste {
  background: #fff;
  border-radius: 12px;
  overflow: auto;
}

.liste-comm { width: 100%; border-collapse: collapse; }

.liste-comm th,
.liste-comm td {
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid #e6e8ee;
  vertical-align: top;
}

.liste-comm th { font-size: 0.82rem; color: #5c6770; }

.liste-comm tr.non-lue td { font-weight: 700; }

.liste-comm .col-ivac { text-align: center; width: 4.5rem; }

.liste-comm .resume { max-width: 22rem; }

.bande-vert td { background: #c2e5a6; }
.bande-jaune td { background: #f3eb00; }
.bande-orange td { background: #c97100; color: #1a1a1a; }
.bande-rouge td { background: #d90b00; color: #1a1a1a; }

.pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.etat-lu { margin: 0 0 0.8rem; font-weight: 600; }

.page-module .coquille { color: var(--encre-douce); }

.coquille { margin: 0.4rem 0 0; font-size: 1.05rem; }

.page-fiche main {
  width: min(44rem, calc(100% - 1.6rem));
  margin: 0.4rem auto 1.6rem;
  background: #fff;
  color: var(--encre);
  border-radius: 8px;
  padding: 1.15rem 1.3rem 1.45rem;
}

.page-fiche h1 { color: var(--ardoise); }

.barre-invite {
  display: flex;
  justify-content: center;
  padding: 1.6rem 1rem 0;
}

.logo-invite { width: min(16rem, 70vw); height: auto; }

body.page-connexion {
  background: var(--ardoise);
  color: #fff;
}

body.page-connexion main {
  width: min(28rem, calc(100% - 2rem));
  margin: 1.5rem auto 2rem;
}

body.page-connexion h1 { color: #fff; }

body.page-connexion .formulaire {
  background: #fff;
  color: var(--encre);
}

h1 { margin: 0 0 0.75rem; font-size: 1.45rem; color: var(--ardoise); }

a.bouton,
button.bouton,
.formulaire button[type="submit"],
.recherche button,
.actions button {
  display: inline-block;
  background: var(--ardoise);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 0.5rem 0.9rem;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.formulaire button[type="submit"]:hover,
.actions button:hover { background: var(--ardoise-fonce); }

.formulaire {
  max-width: 40rem;
  border: 1px solid var(--ligne);
  border-radius: 8px;
  padding: 1.1rem 1.2rem 1.3rem;
}

.champ { margin: 0.9rem 0; }

.champ > label,
fieldset legend {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.choix > span { font-weight: 600; }

.choix {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  align-items: center;
  margin: 0.4rem 0 0.6rem;
}

.choix label { font-weight: 450; }

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  max-width: 36rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid #c5ced6;
  border-radius: 4px;
  background: #fff;
  color: var(--encre);
  font: inherit;
}

textarea { min-height: 6rem; resize: vertical; }

label.case {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

fieldset {
  margin: 1rem 0;
  padding: 0.8rem 1rem 0.4rem;
  border: 1px solid var(--ligne);
  border-radius: 8px;
}

.aide,
.vide { color: var(--encre-douce); }

.erreur { color: var(--erreur); margin: 0.3rem 0 0; }

.erreur-resume {
  background: #fdeceb;
  border: 1px solid #e7b4b0;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  margin-bottom: 1rem;
}

.erreur-resume p { margin: 0 0 0.35rem; font-weight: 600; }

.flash {
  background: #e7f6ec;
  border: 1px solid #b7dfc4;
  border-radius: 4px;
  color: var(--encre);
  padding: 0.55rem 0.8rem;
}

.page-module .flash { background: #e7f6ec; }

.actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.origine-bloc .pour-prospect { display: none; }

.origine-bloc:has(input[name="origine"][value="prospect"]:checked) .pour-client { display: none; }

.origine-bloc:has(input[name="origine"][value="prospect"]:checked) .pour-prospect { display: inline; }

.bloc-ivac:has(input[name="intervenant_ivac"][value="0"]:checked) #champs-ivac { display: none; }

.bloc-message:not(:has(input[name="laisser_message"][value="1"]:checked)) .si-message { display: none; }

.champ .case { font-weight: 450; margin-top: 0.35rem; }

.entete-fiche {
  display: grid;
  align-items: center;
  margin-bottom: 0.85rem;
}

.entete-fiche > div { grid-area: 1 / 1; justify-self: start; }

.entete-fiche h1 { margin-bottom: 0.35rem; }

.entete-fiche > div > p { margin: 0; }

.mini-cartes {
  grid-area: 1 / 1;
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  max-width: 100%;
}

.mini-carte {
  border-radius: 14px;
  min-width: 8.6rem;
  max-width: 11.5rem;
  padding: 0.55rem 0.8rem 0.6rem;
  text-align: center;
}

.mini-carte p { margin: 0; }

.mini-nombre {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
  color: #1a2332;
}

.mini-libelle {
  margin-top: 0.15rem !important;
  font-size: 0.75rem;
  line-height: 1.25;
  color: #5c6770;
}

.onglets-fiche {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.2rem;
  margin: 1.15rem 0 0;
  border-bottom: 1px solid var(--ligne);
}

.onglets-fiche a {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
  color: var(--encre-douce);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.onglets-fiche a[aria-current="page"] {
  color: var(--ardoise);
  font-weight: 600;
  border-bottom-color: var(--orange);
}

.panneau-onglet {
  background: #fff;
  border-radius: 0 0 12px 12px;
  padding: 0.9rem 1rem 1.15rem;
  overflow-x: auto;
}

.barre-onglet {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 0.7rem;
}

.nom-dossier { margin: 0 0 0.85rem; }

form.accueil {
  max-width: none;
  border: 0;
  padding: 0.2rem 0 0;
  background: transparent;
}

form.accueil fieldset { margin: 0.9rem 0; }

.accueil:not(:has(input[name="gestes_delinquance"][value="1"]:checked)) .si-gestes,
.accueil:not(:has(input[name="suivi_psychiatrique"][value="1"]:checked)) .si-suivi,
.accueil:not(:has(input[name="symptomes_spt"][value="1"]:checked)) .si-spt,
.accueil:not(:has(input[name="consommation"][value="1"]:checked)) .si-consommation,
.accueil:not(:has(input[name="pensees_suicidaires"][value="1"]:checked)) .si-pensees,
.accueil:not(:has(input[name="tentatives_suicidaires"][value="1"]:checked)) .si-tentatives,
.accueil:not(:has(input[name="demande_ivac"][value="1"]:checked)) .si-demande-ivac,
.accueil:not(:has(input[name="accepte_ivac"][value="non"]:checked)) .si-accepte-non,
.accueil:not(:has(input[name="autre_demande"][value="1"]:checked)) .si-autre-demande,
.accueil:not(:has(input[name="rencontre_accueil"][value="1"]:checked)) .si-rencontre-oui,
.accueil:not(:has(input[name="rencontre_accueil"][value="0"]:checked)) .si-rencontre-non {
  display: none;
}

form.accueil .ligne-question {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1.25rem;
}

form.accueil .ligne-question > fieldset {
  width: auto;
  min-width: 0;
  margin: 0.45rem 0;
  border: 0;
  padding: 0;
}

form.accueil .suite-ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

form.accueil .petit-champ {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  margin: 0.45rem 0;
}

form.accueil .petit-champ > label { margin: 0; }

form.accueil .petit-champ input[type="text"] {
  width: 11rem;
  max-width: 100%;
}

form.accueil .petit-champ .erreur { flex: 1 0 100%; margin: 0; }

form.accueil fieldset.ligne-petites {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1.25rem;
}

form.accueil fieldset.ligne-petites > legend { flex-basis: 100%; }

form.accueil fieldset.ligne-petites .petit-champ { margin: 0.15rem 0; }

form.accueil fieldset.ligne-petites .petit-champ input[type="text"] { width: 9rem; }

.ligne-spt {
  display: grid;
  grid-template-columns: 14rem minmax(12rem, 28rem);
  gap: 0.35rem 0.75rem;
  align-items: center;
  margin: 0.45rem 0;
}

.ligne-spt .erreur { grid-column: 2; margin: 0; }

.ligne-spt input[type="text"] { max-width: none; }

form.fiche-client {
  max-width: none;
  background: #fff;
  border: 0;
  border-radius: 12px;
  padding: 0.95rem 1.05rem 1.15rem;
}

.programme-fiche {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--ligne);
}

.programme-fiche .etiquette,
.bande-fiche .etiquette,
.bande-fiche > .groupe > label { font-weight: 700; }

.bande-fiche .case { margin: 0; }

.programme-fiche label,
.fiche-client .choix label { font-weight: 450; }

.bande-fiche {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.3rem;
  margin-bottom: 0.8rem;
}

.bande-fiche .groupe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
}

.bande-fiche input[type="text"],
.bande-fiche select {
  width: 13rem;
  max-width: 100%;
}

.colonnes-fiche {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: 0.4rem 1.35rem;
  align-items: start;
}

.fiche-client .champ {
  display: grid;
  grid-template-columns: 8.8rem minmax(0, 1fr);
  align-items: center;
  gap: 0.12rem 0.45rem;
  margin: 0.16rem 0;
}

.fiche-client .champ > label,
.fiche-client .champ > .etiquette { margin: 0; font-size: 0.92rem; }

.fiche-client .champ input[type="text"],
.fiche-client .champ input[type="email"],
.fiche-client .champ input[type="tel"],
.fiche-client .champ input[type="date"],
.fiche-client .champ select {
  width: 100%;
  max-width: none;
  padding: 0.28rem 0.45rem;
}

.fiche-client .champ .erreur,
.fiche-client .champ .aide { grid-column: 2; margin: 0; }

.fiche-client .choix { margin: 0; }

.fiche-client fieldset {
  border: 0;
  margin: 0.25rem 0;
  padding: 0;
}

.entete-conf {
  display: grid;
  grid-template-columns: 8.8rem minmax(0, 1fr);
  column-gap: 0.45rem;
  margin: 0 0 0.1rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--encre-douce);
}

.entete-conf .piste {
  grid-column: 2;
  display: grid;
  grid-template-columns: 11rem auto;
  column-gap: 0.45rem;
  justify-content: start;
  align-items: end;
}

.fiche-client .avec-case {
  display: grid;
  grid-template-columns: 11rem auto;
  column-gap: 0.45rem;
  justify-content: start;
}

.fiche-client .avec-case input[type="checkbox"] { margin: 0; }

.avec-case,
.avec-age {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.avec-case > input,
.avec-age > input { flex: 1; min-width: 0; }

.fiche-client .avec-case > input[type="tel"],
.fiche-client .avec-case > input[type="email"] {
  width: 11rem;
  max-width: 11rem;
}

.fiche-client .avec-case:has(input[type="checkbox"]:checked) > input {
  color: #d90b00;
  font-weight: 600;
}

.fiche-client:has(input[name="admissibilite"][value="non"]:checked) .champ-pour {
  display: none;
}

.fiche-client .champ.champ-etroit input {
  width: 4.2rem;
  max-width: 4.2rem;
  justify-self: start;
}

.fiche-client .avec-case .case { margin: 0; }

.choix.civil { align-items: center; }

.choix.civil input[type="text"] { width: 6.2rem; max-width: 40%; }

.col-droite .champ { grid-template-columns: 1fr; }

.col-droite .champ .erreur,
.col-droite .champ .aide { grid-column: 1; }

.choix-pile {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

dl.fiche {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: 0.45rem 1rem;
  max-width: 44rem;
}

dl.fiche div { display: contents; }

dt { font-weight: 600; }

dd { margin: 0; }

.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .coque-tableau { grid-template-columns: 1fr; }
  .barre-laterale { min-height: 0; }
  .nav-laterale { flex-direction: row; flex-wrap: wrap; }
  .pied-laterale { margin-top: 0.6rem; }
  .logo-bas, .marque { max-width: 12rem; }
  .colonne { min-height: 0; }
  .cartes { grid-template-columns: 1fr 1fr; }
  .salut { flex-direction: column; }
  .colonnes-fiche { grid-template-columns: 1fr; }
  .entete-fiche { display: flex; flex-direction: column; align-items: stretch; }
  .entete-fiche > div { justify-self: auto; }
  .mini-cartes { grid-area: auto; justify-self: center; width: 100%; }
  .mini-carte { flex: 1 1 0; min-width: 0; max-width: none; }
  .ligne-spt { grid-template-columns: 1fr; }
  .ligne-spt .erreur { grid-column: 1; }
  .entete-conf { grid-template-columns: 8.8rem minmax(0, 1fr); }
  .barre-liste { flex-direction: column; align-items: flex-start; }
  .barre-modules {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "logo compte"
      "menu menu";
  }
  .logo-module { grid-area: logo; }
  .modules { grid-area: menu; }
  .coin-droit { grid-area: compte; }
  dl.fiche { grid-template-columns: 1fr; }
}
