:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #223b36;
  background: #f4f6f2;
  font-size: 15px;
  line-height: 1.55;
  --green: #185b48;
  --muted: #687b74;
  --border: #dfe6df;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 14px;
  background: white;
  color: inherit;
  font-weight: 600;
}
button:hover {
  background: #e8f0e9;
}
button:focus-visible,
a:focus-visible,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #c8a649;
  outline-offset: 2px;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover {
  background: #114333;
}
.secondary {
  background: #f4f7f3;
}
.text-button {
  border: 0;
  background: transparent;
  color: #687b74;
}
.full {
  width: 100%;
  margin-top: 10px;
}
.brand {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1.8px;
  text-decoration: none;
  color: var(--green);
}
.brand span {
  font-size: 12px;
  color: #b79a44;
  margin-left: 3px;
}
aside {
  position: fixed;
  width: 248px;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.class-label {
  font-size: 12px;
  color: var(--muted);
  padding: 10px 5px 22px;
}
nav {
  display: grid;
  gap: 3px;
}
.nav-item {
  text-align: left;
  background: transparent;
  border: 0;
  font-size: 13px;
  padding: 11px 12px;
  font-weight: 500;
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav-item span {
  font-size: 19px;
  width: 20px;
  text-align: center;
  color: #6c8479;
}
.nav-item.active {
  background: #eaf2e9;
  color: #1e5d46;
  font-weight: 700;
}
.sidebar-foot {
  margin-top: auto;
  padding-top: 26px;
  color: var(--muted);
  font-size: 11px;
}
.workspace {
  margin-left: 248px;
}
header {
  height: 76px;
  padding: 0 38px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffffd9;
  font-size: 13px;
}
main {
  padding: 35px 38px;
  max-width: 1600px;
  margin: auto;
}
h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -1.1px;
  margin: 0 0 16px;
}
h2 {
  font-size: 18px;
  margin: 0 0 18px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 15px;
  margin: 4px 0 7px;
}
p {
  margin: 8px 0 16px;
}
.muted,
small {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #738274;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 10px 0 28px;
}
.intro h1 {
  margin-top: 12px;
}
.intro p {
  color: var(--muted);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 22px 0 28px;
}
.metrics > div {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
}
.metrics strong {
  display: block;
  font-size: 29px;
  line-height: 1.2;
  color: var(--green);
}
.metrics span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: start;
}
.equal {
  grid-template-columns: 1fr 1fr;
}
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 22px;
  min-width: 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}
.section-head h2,
.section-head h1 {
  margin: 0;
}
.session {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: white;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
main > .session {
  padding: 22px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.session > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.time {
  font-weight: 700;
  color: var(--green);
  min-width: 53px;
}
.time small {
  display: block;
  font-weight: 400;
}
.session p {
  font-size: 13px;
  color: var(--muted);
}
.session .actions {
  flex-direction: column;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.badge {
  display: inline-block;
  background: #edf3ea;
  color: #4a684b;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 11px;
}
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #496057;
  min-width: 0;
}
input,
select,
textarea {
  padding: 10px;
  border: 1px solid #cfdacf;
  border-radius: 7px;
  background: white;
  color: #203c32;
  width: 100%;
  min-width: 0;
}
textarea {
  resize: vertical;
}
.wide {
  grid-column: 1/-1;
}
.check {
  flex-direction: row;
  align-items: center;
  margin: 8px 0;
}
.check input {
  width: auto;
}
.line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding: 15px 0;
}
.line p {
  margin: 3px 0;
  font-size: 12px;
  color: var(--muted);
}
.line select {
  max-width: 180px;
}
.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 13px;
}
.empty span {
  font-size: 35px;
  color: #9caf99;
}
.toolbar {
  margin: 20px 0;
}
.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.group-grid > div {
  padding: 18px;
  background: #f4f7f1;
  border-radius: 9px;
}
.date-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.select-wide {
  margin: 20px 0;
}
.result,
.message,
.conflict {
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.result .badge {
  float: right;
}
.result p {
  font-size: 13px;
}
.pre {
  white-space: pre-wrap;
}
fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
}
progress {
  display: block;
  width: 100%;
  margin-top: 15px;
  accent-color: var(--green);
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th,
td {
  border-bottom: 1px solid var(--border);
  padding: 12px;
  vertical-align: top;
}
.truncate {
  max-width: 320px;
  overflow-wrap: anywhere;
}
.connection {
  color: #55805c;
  font-size: 12px;
}
footer {
  padding: 20px 38px;
  color: var(--muted);
  font-size: 11px;
}
.warning {
  padding: 12px;
  background: #fff2cb;
  border-radius: 8px;
  margin-bottom: 18px;
}
.mobile-menu {
  display: none;
}
#notice {
  position: fixed;
  bottom: 22px;
  right: 22px;
  max-width: 440px;
  z-index: 20;
  background: #203f34;
  color: white;
  padding: 16px 24px;
  border-radius: 10px;
  box-shadow: 0 5px 20px #0002;
}
.welcome {
  max-width: 680px;
  padding-top: 55px;
}
.welcome > .brand {
  margin-bottom: 30px;
}
.welcome > h1 {
  font-size: 43px;
  margin-top: 18px;
}
.welcome > p {
  color: var(--muted);
  margin: 22px 0 30px;
}
.welcome .panel {
  margin-top: 26px;
}
@media (max-width: 1100px) {
  aside {
    width: 216px;
  }
  .workspace {
    margin-left: 216px;
  }
  main {
    padding: 26px 22px;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .metrics {
    gap: 10px;
  }
  .metrics > div {
    padding: 15px;
  }
  .session .actions {
    flex-direction: row;
  }
  header {
    padding: 0 22px;
  }
}
@media (max-width: 700px) {
  aside {
    transform: translateX(-100%);
    z-index: 10;
    box-shadow: 4px 0 30px #0002;
  }
  .menu-open aside {
    transform: translateX(0);
  }
  .workspace {
    margin-left: 0;
  }
  .mobile-menu {
    display: block;
  }
  .menu-open .mobile-menu {
    position: fixed;
    left: 222px;
    top: 15px;
    z-index: 11;
  }
  header {
    padding: 0 16px;
    height: 66px;
  }
  header > span {
    display: none;
  }
  .connection {
    font-size: 10px;
  }
  main {
    padding: 24px 16px;
  }
  h1 {
    font-size: 27px;
  }
  .intro {
    align-items: start;
    flex-direction: column;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .form {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 18px;
  }
  .session {
    gap: 10px;
    flex-wrap: wrap;
  }
  .session > .actions {
    width: 100%;
    justify-content: flex-end;
  }
  .section-head {
    flex-wrap: wrap;
  }
  .welcome > h1 {
    font-size: 35px;
  }
  .welcome {
    padding-top: 30px;
  }
  .line {
    flex-wrap: wrap;
  }
  footer {
    padding: 18px;
  }
  .result .badge {
    float: none;
    margin-left: 8px;
  }
  #notice {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}
@media print {
  aside,
  header,
  footer,
  button,
  .date-strip,
  #notice {
    display: none !important;
  }
  .workspace {
    margin: 0;
  }
  main {
    padding: 0;
  }
  .panel {
    break-inside: avoid;
  }
  .columns {
    display: block;
  }
  body {
    background: white;
  }
}
.planning-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 15px;
  margin: 20px 0;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0 28px;
}
.calendar-day {
  background: white;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px;
  min-width: 0;
  min-height: 130px;
}
.calendar-day .section-head {
  display: block;
  font-size: 12px;
}
.calendar-day .badge {
  margin-top: 7px;
}
.calendar-session {
  margin-top: 10px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}
.calendar-session button {
  font-size: 12px;
  text-align: left;
  padding: 0;
  overflow-wrap: anywhere;
}
.calendar-session small {
  display: block;
  font-size: 10px;
}
.closed-day {
  background: #f6eddd;
}
.calendar-closure {
  font-size: 12px;
  color: #795c23;
}
.calendar-alert {
  font-size: 11px;
  display: block;
  color: #9b472e;
}
@media (max-width: 1200px) {
  .calendar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .calendar-grid {
    grid-template-columns: 1fr 1fr;
  }
  .planning-toolbar {
    align-items: start;
    flex-direction: column;
  }
}
.agenda-filters {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.filter-chip {
  display: flex;
  align-items: center;
  flex-direction: row;
  background: #f3f6f1;
  padding: 7px 10px;
  border-radius: 18px;
  font-weight: 500;
}
.filter-chip input {
  width: auto;
  accent-color: var(--green);
}
.agenda-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.agenda-day {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  min-width: 0;
}
.agenda-day h2 {
  font-size: 12px;
}
.agenda-day .section-head {
  flex-wrap: wrap;
}
.agenda-item {
  border-left: 3px solid #76a181;
  background: #f5f8f2;
  border-radius: 5px;
  padding: 9px;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.agenda-item .eyebrow {
  font-size: 8px;
  letter-spacing: 0.6px;
}
.agenda-item-title {
  display: block;
  background: none;
  border: 0;
  text-align: left;
  padding: 5px 0;
  font-size: 12px;
  font-weight: 700;
  width: 100%;
  overflow-wrap: anywhere;
}
.agenda-item small {
  display: block;
  font-size: 10px;
  margin-bottom: 6px;
}
.category-parent {
  border-color: #9484c0;
  background: #f5f2fa;
}
.category-meeting,
.category-training {
  border-color: #6292a8;
  background: #eff6f8;
}
.category-vacation,
.category-holiday,
.category-closure {
  border-color: #b99a52;
  background: #faf4e6;
}
.category-outing {
  border-color: #b67956;
}
.agenda-day > p {
  font-size: 12px;
}
.agenda-day .section-head button {
  padding: 1px 8px;
}
.agenda-day .badge {
  font-size: 9px;
}
.agenda-day:only-child {
  min-height: 300px;
}
.agenda-grid.agenda-day {
  display: block;
}
@media (max-width: 1250px) {
  .agenda-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .agenda-grid {
    grid-template-columns: 1fr;
  }
  .agenda-filters {
    gap: 6px;
  }
  .filter-chip {
    font-size: 11px;
  }
}
.planning-toolbar input[aria-label="Date de l’agenda"] {
  width: 175px;
  flex: 0 1 175px;
}
.planning-toolbar > .actions {
  flex-wrap: nowrap;
}
.agenda-item .eyebrow {
  letter-spacing: 0.2px;
  font-size: 9px;
}
.agenda-item-title {
  font-size: 13px;
}
.agenda-filters .actions {
  flex-wrap: wrap;
}
.agenda-day .section-head {
  gap: 5px;
}
@media (max-width: 650px) {
  .planning-toolbar > .actions {
    flex-wrap: wrap;
  }
  .planning-toolbar input[aria-label="Date de l’agenda"] {
    width: 170px;
  }
}
.planning-toolbar {
  flex-wrap: wrap;
  align-items: center;
}
.planning-toolbar > .actions {
  max-width: 100%;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  max-width: 460px;
  width: calc(100% - 32px);
  color: inherit;
}
dialog::backdrop {
  background: #14382b80;
}
.reference-list {
  max-height: 520px;
  overflow: auto;
  margin-top: 18px;
  padding-right: 8px;
}
.hash {
  overflow-wrap: anywhere;
}
.category-school {
  border-color: #947abb;
  background: #f4f0f8;
}

/* Wayfinding is shared by every tool; keep help compact until requested. */
.nav-group {
  display: grid;
  gap: 2px;
  margin: 0 0 10px;
}
.nav-group h2 {
  margin: 10px 10px 4px;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #61776e;
}
.nav-group .nav-item {
  padding: 8px 10px;
  width: 100%;
}
.tool-help {
  background: #edf3ec;
  border: 1px solid #d9e4d7;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 22px;
}
.tool-help summary {
  cursor: pointer;
  font-weight: 650;
}
.tool-help summary span {
  font-weight: 400;
  color: #52685e;
}
.tool-help p {
  max-width: 80ch;
}
.learning-flow {
  list-style: none;
  counter-reset: stage;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
  gap: 8px;
  margin: 0 0 24px;
}
.learning-flow li {
  counter-increment: stage;
  padding: 12px;
  border-radius: 10px;
  background: #eaf1e8;
  font-size: 13px;
}
.learning-flow li::before {
  content: counter(stage) ". ";
  font-weight: 750;
  color: #185b48;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.guide-step {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.guide-step button {
  margin-top: auto;
}
.guide-step .badge {
  margin-bottom: 12px;
}
.step-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #185b48;
  color: #fff;
  font-weight: 750;
  margin-bottom: 12px;
}
.guide-grid + .panel {
  margin-top: 20px;
}
.glossary dt {
  font-weight: 750;
  margin-top: 15px;
}
.glossary dd {
  margin: 4px 0 0;
  color: #52685e;
}
.lesson-card .actions {
  margin-top: 16px;
}
.lesson-card h2 {
  margin: 6px 0;
}
@media (max-width: 700px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .learning-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tool-help summary span {
    display: block;
    margin-top: 4px;
  }
}
@media print {
  .tool-help,
  .learning-flow {
    display: none;
  }
}
/* Header actions may wrap without clipping on phones and tablets. */
header {
  min-height: 76px;
  height: auto;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 10px;
}
header .actions {
  justify-content: flex-end;
}
@media (max-width: 700px) {
  header {
    min-height: 66px;
    height: auto;
    padding: 10px 16px;
  }
  header .actions {
    flex: 1;
    gap: 6px;
  }
  header .connection {
    flex-basis: 100%;
    text-align: right;
  }
  header .mobile-menu {
    flex-shrink: 0;
  }
}
