@font-face {
  font-family: "IBM Plex Sans";
  src: url("identite/ibm-plex-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}
:root {
  color: #1f2d3a;
  background-color: #f8f9f7;
  background-image: linear-gradient(#1f2d3a09 1px, transparent 1px),
                    linear-gradient(90deg, #1f2d3a09 1px, transparent 1px);
  background-size: 24px 24px;
}
body { background: none; }
header { border-top: 4px solid #249bd7; border-image: none; background: #fff; }
.bar { padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.brand img { display: block; object-fit: contain; }
.brand > span { border-left: 1px solid #bbc7cd; padding-left: .65rem; line-height: 1.2; }
.brand small { display: block; color: #495b67; font-size: .7rem; }
.bar nav { justify-content: flex-end; }
h1,h2,h3,.brand { font-family: "IBM Plex Sans", system-ui, sans-serif; }
.eyebrow,.poster-number,.house-marker > span:first-child,.slide-count {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
.hero,.card { background: #fff; }
.hero { border-left-color: var(--accent,#249bd7); }
.card { border-top-color: var(--accent,#249bd7); }
.sequence-hero { padding: 0; overflow: hidden; }
.sequence-caption { padding: clamp(1rem,3vw,2.15rem); }
.sequence-caption p:last-child { margin-bottom: 0; }
.sequence-image {
  display: block;
  width: 100%;
  height: clamp(150px,24vw,310px);
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid #d5dfe3;
}
.atelier-controls {
  display: flex; flex-wrap: wrap; align-items: end; gap: .8rem;
  margin: 1rem 0;
}
.atelier-controls label { font-weight: 650; }
.atelier-controls [type=search] { display: block; margin-top: .25rem; min-width: min(80vw,22rem); }
.atelier-controls input,.practice-form input {
  padding: .48rem .55rem;
  border: 1px solid #778c99;
  border-radius: 5px;
  background: white;
  color: inherit;
  font: inherit;
}
.progress-check { padding: .55rem .7rem; background: white; border: 1px solid #bac9d0; border-radius: 6px; }
.glossary-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,265px),1fr)); }
.glossary-card img { width: 100%; max-height: 175px; object-fit: contain; }
.glossary-card [hidden],.glossary-card[hidden],.card[hidden] { display: none; }
.glossary-card summary { cursor: pointer; }
.glossary-card > a { display: inline-block; margin-block-start: .5rem; }
.word-heading { display: flex; align-items: center; gap: .5rem; }
.word-heading h3 { flex: 1; margin: 0; }
.pronounce {
  display: inline-grid; place-items: center;
  flex: 0 0 auto; width: 44px; height: 44px;
  border: 1px solid #a9bac5; border-radius: 6px; background: #f4f8fa; cursor: pointer;
}
.pronounce:disabled { opacity: .55; cursor: default; }
.practice-form { display: flex; flex-wrap: wrap; gap: .55rem; align-items: end; margin: .6rem 0 1rem; }
.practice-form input { display: block; max-width: 10rem; margin-top: .2rem; }
.practice-form [role=status],.label-exercise [role=status] { font-weight: 650; }
.label-map { position: relative; max-width: 760px; }
.label-map img { display: block; width: 100%; height: auto; border-radius: 8px; }
.label-target {
  position: absolute; left: var(--position-x); top: var(--position-y);
  transform: translate(-50%,-50%); min-height: 44px; min-width: 44px;
}
.label-exercise [aria-pressed=true] { background: #1f2d3a; color: white; }
.label-exercise button:disabled { opacity: .95; }
.poster-mobile-tools { display: none; }
:fullscreen .teaching { font-size: clamp(1.18rem,2vw,1.72rem); }
:fullscreen .teaching img { max-height: 59vh; object-fit: contain; }
@media (max-width: 780px) {
  .bar { align-items: flex-start; flex-direction: column; gap: .4rem; }
  .bar nav { justify-content: flex-start; row-gap: .35rem; }
}
@media (max-width: 1040px) {
  .poster-mobile-tools { display: block; margin: 0 0 .7rem; }
  .poster-list-only .house-figure,.poster-list-only .poster-locate { display: none; }
}

/* Espace enseignant */
.espace-banner { max-width: none; margin: 0; padding: .45rem 20px; background: #1f2d3a; color: #ffdf6b; font-weight: 600; font-size: .9rem; text-align: center; }
.espace-link { border: 1px solid #1f2d3a; border-radius: .4rem; padding-inline: .6rem; white-space: nowrap; }
