/* Écrans du noyau : connexion, accueil, droits. */
.connexion { padding-top: 14vh; }
.connexion img { width: 72px; height: 72px; border-radius: 16px; display: block; margin-bottom: 1rem; }
.connexion h1 { margin: 0; font: 800 2rem/1.1 var(--titre); color: var(--vert-profond); }
.connexion .sous { margin: .25rem 0 2rem; color: var(--encre-douce); }
.connexion label { display: grid; gap: .25rem; font-weight: 700; margin-bottom: 1rem; }

.tuiles { display: grid; gap: .75rem; margin-top: .5rem; }
.tuile {
  display: grid; gap: .25rem; padding: 1.1rem 1.15rem; min-height: 88px; align-content: center;
  background: var(--papier); border: 1px solid var(--trait); border-left: 6px solid var(--vert-profond);
  border-radius: 12px; color: var(--encre); text-decoration: none;
}
.tuile strong { font: 700 1.25rem/1.2 var(--titre); color: var(--vert-profond); }
.tuile span { color: var(--encre-douce); font-size: .9375rem; }
.tuile:active { background: #e6efe6; }
.tuile:nth-child(even) { border-left-color: var(--jaune); }
.tuile.systeme { border-left-color: var(--encre-douce); }
.tuile.systeme strong { color: var(--encre); }

#recherche { width: 100%; min-height: 48px; padding: .5rem .85rem; margin: 0 0 .75rem; background: var(--papier); border: 1px solid var(--trait); border-radius: 10px; }
.utilisateur { background: var(--papier); border: 1px solid var(--trait); border-radius: 10px; padding: .25rem 1rem .5rem; }
.utilisateur .identite { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; padding: .7rem 0 .35rem; }
.utilisateur .identite strong { font: 700 1.125rem/1.25 var(--titre); }
.utilisateur .identite span { color: var(--encre-douce); font-size: .9375rem; }
.badge { font-style: normal; font-weight: 700; font-size: .8125rem; color: var(--vert-profond); background: #e3f1e3; padding: .1rem .55rem; border-radius: 999px; }
.groupe-service { margin: .5rem 0 .1rem; padding-top: .5rem; border-top: 2px solid var(--trait); font: 700 .9375rem var(--titre); color: var(--vert-profond); }
.droit { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 52px; padding: .35rem 0; border-top: 1px solid var(--trait); }
.groupe-service + .droit { border-top: 0; }
.droit span { display: grid; }
.droit b { font-weight: 700; }
.droit small { color: var(--encre-douce); font-size: .8125rem; line-height: 1.3; }
.droit input[role="switch"] {
  appearance: none; flex: none; width: 52px; height: 32px; margin: 0; border-radius: 999px; cursor: pointer;
  background: #c9cac6; position: relative; transition: background .15s;
}
.droit input[role="switch"]::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .15s;
}
.droit input[role="switch"]:checked { background: var(--feuille); }
.droit input[role="switch"]:checked::after { transform: translateX(20px); }
.droit input[role="switch"]:disabled { opacity: .55; cursor: progress; }
@media (prefers-reduced-motion: reduce) { .droit input[role="switch"], .droit input[role="switch"]::after { transition: none; } }

@media (min-width: 720px) {
  .connexion { padding-top: 12vh; max-width: 26rem; }
  .tuiles { grid-template-columns: 1fr 1fr; }
}
