/* Présentation technique provisoire, sans intégration de la charte graphique. */
html {
  font-family: system-ui, sans-serif;
  font-size: 100%;
  line-height: 1.6;
  color: #202020;
  background: #fff;
}

body {
  margin: 0;
  padding: 1rem;
}

main {
  max-width: 44rem;
  margin-inline: auto;
  overflow-wrap: anywhere;
}

h1 {
  line-height: 1.2;
}

dt {
  font-weight: bold;
}

dd {
  margin: 0 0 1rem;
}

button, input, a, summary { font: inherit; }
button, input, nav a, summary { box-sizing: border-box; min-height: 3rem; }
button, nav a { padding: .5rem .85rem; }
button, summary { cursor: pointer; }
button:disabled, input:disabled { cursor: wait; }
input:not([type="checkbox"]) { width: 100%; min-width: 0; padding: .5rem; }
:focus-visible { outline: 3px solid #222; outline-offset: 3px; }
nav, .actions { display: flex; flex-wrap: wrap; gap: .75rem; }
nav a { display: inline-flex; align-items: center; }
[aria-current="page"] { font-weight: bold; text-decoration-thickness: .2em; }
section, .technical { margin-block: 1.5rem; border-top: 1px solid #aaa; padding-top: 1rem; }
.task-form { display: grid; gap: .85rem; }
.task-form label { display: grid; gap: .25rem; }
.secondary, .task-dates { color: #505050; }
.task-list { padding: 0; list-style: none; }
.task-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: .5rem;
  align-items: start;
  padding-block: .75rem;
  border-bottom: 1px solid #ccc;
}
.task-row input[type="checkbox"] { width: 3rem; height: 3rem; margin: 0; }
.task-title, .task-dates { margin: .35rem 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.task-menu { position: relative; }
.task-menu summary { list-style: none; width: 3rem; text-align: center; padding: .5rem; }
.task-menu summary::-webkit-details-marker { display: none; }
.menu-actions {
  position: absolute;
  right: 0;
  z-index: 1;
  display: grid;
  gap: .5rem;
  padding: .5rem;
  background: white;
  border: 1px solid #555;
}
dialog {
  box-sizing: border-box;
  width: min(34rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: 1.25rem;
  overflow: auto;
  border: 1px solid #555;
}
dialog::backdrop { background: rgb(0 0 0 / .35); }
[role="alert"] { font-weight: bold; }
[hidden] { display: none !important; }

/* Structure du lot 4, volontairement sans reproduction de la charte finale. */
.workspace { display: grid; gap: 1.5rem; }
.task-panel, #calendar { min-width: 0; }
.calendar-navigation { display: flex; align-items: center; gap: .25rem; }
#calendar-month { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.calendar-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.calendar-table th, .calendar-table td { padding: 0; font-weight: normal; font-size: .875rem; }
.calendar-table abbr { text-decoration: none; }
.calendar-table button {
  display: block;
  width: 100%;
  min-width: 0;
  padding: .1rem 0;
  position: relative;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font-size: .875rem;
}
.calendar-table .adjacent { color: #606060; }
.calendar-table [aria-current="date"] { outline: 2px dotted #222; outline-offset: -4px; }
.calendar-table [aria-pressed="true"], #calendar-month[aria-pressed="true"], .quick-filters [aria-pressed="true"] {
  font-weight: bold;
  text-decoration: underline;
  text-decoration-thickness: .15em;
}
.calendar-table :focus-visible { outline: 3px solid #222; outline-offset: -3px; }
.day-indicator { display: block; height: .65rem; line-height: .65rem; }
.quick-filters { margin-top: 1rem; }
#selected-period { font-weight: bold; }
@media (max-width: 63.999rem) {
  #calendar.is-collapsed #calendar-body { display: none; }
}
@media (min-width: 64rem) {
  main { max-width: 80rem; }
  .workspace { grid-template-columns: minmax(22rem, 2fr) minmax(0, 3fr); }
  .small-screen { display: none; }
}
