/* The one stylesheet of id. (D14). Sizes in rem so that 200 % zoom reflows; visible focus;
   contrast of at least 4.5:1 for text. */
:root {
  --encre: #14181f;
  --fond: #ffffff;
  --doux: #f2f4f8;
  --bord: #6b7280;
  --marque: #1b3a6b;
  --lien: #1a4fa0;
  --danger: #a4161a;
  --succes: #1d6b35;
  --focus: #b45309;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--encre);
  background: var(--fond);
}

a { color: var(--lien); }

:focus-visible {
  outline: 0.1875rem solid var(--focus);
  outline-offset: 0.125rem;
}

h1:focus, h2:focus, h3:focus, h4:focus { outline: none; }
h1:focus-visible, h2:focus-visible, h3:focus-visible, h4:focus-visible { outline: 0.1875rem solid var(--focus); }

.evitement {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  padding: 0.5rem 1rem;
  background: var(--fond);
  border: 0.125rem solid var(--marque);
}
.evitement:focus { top: 0.5rem; }

.bandeau {
  background: var(--marque);
  color: #fff;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.bandeau .marque { margin: 0; font-weight: 700; font-size: 1.125rem; }
.bandeau nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; }
.bandeau nav[hidden] { display: none; }
.bandeau ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0; padding: 0; }
.bandeau a { color: #fff; }
.bandeau :focus-visible { outline-color: #fcd34d; }

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}

[hidden] { display: none !important; }

section { margin-top: 2rem; }
.vue > section:first-of-type, .vue > h1 + section { margin-top: 1rem; }

h1 { font-size: 1.75rem; line-height: 1.25; }
h2 { font-size: 1.375rem; border-bottom: 0.0625rem solid var(--bord); padding-bottom: 0.25rem; }
h3 { font-size: 1.125rem; margin-top: 1.5rem; }
h4 { font-size: 1rem; }

.champ { display: flex; flex-direction: column; gap: 0.25rem; margin: 0.75rem 0; }
.etiquette, label { font-weight: 600; }
.aide { font-weight: 400; color: #374151; }

input[type="email"], input[type="password"], input[type="text"] {
  font: inherit;
  padding: 0.5rem 0.625rem;
  border: 0.125rem solid var(--bord);
  border-radius: 0.25rem;
  max-width: 100%;
  width: 28rem;
}

.case { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.75rem 0; }
.case input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; flex: none; }
.case label { font-weight: 400; }

button {
  font: inherit;
  font-weight: 600;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  border: 0.125rem solid var(--marque);
  background: var(--marque);
  color: #fff;
  cursor: pointer;
}
button.secondaire { background: var(--fond); color: var(--marque); }
button.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
button:disabled { opacity: 0.6; cursor: progress; }

.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }

.erreur { color: var(--danger); font-weight: 600; margin: 0.5rem 0; }
.annonce { color: var(--succes); font-weight: 600; min-height: 1.5rem; margin: 0.5rem 0; }
.note { color: #374151; }

.encadre {
  background: var(--doux);
  border-left: 0.3125rem solid var(--marque);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
}
.encadre h2, .encadre h3, .encadre h4 { margin-top: 0.25rem; border: 0; }

.liste { list-style: none; padding: 0; }
.liste li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 0.0625rem solid #d1d5db;
}

.details { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; }
.details dt { font-weight: 600; }
.details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 30rem) { .details { grid-template-columns: 1fr; } }

.alertes { padding-left: 1.25rem; color: var(--danger); }
.alertes li { margin: 0.5rem 0; }
.alertes li strong { display: block; }
.chronologie { padding-left: 1.25rem; }
.chronologie li { margin: 0.25rem 0; }

.secret { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; overflow-wrap: anywhere; background: var(--fond); padding: 0.25rem; }

.mots, .codes {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 1.0625rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.25rem 1.5rem;
  padding-left: 2.5rem;
}

.pied { text-align: center; color: #374151; padding: 1rem; border-top: 0.0625rem solid #d1d5db; }

@media (forced-colors: active) {
  button { border: 0.125rem solid ButtonText; }
  .encadre { border-left-color: CanvasText; }
}
