:root {
  --primary: #282923;
  --secondary: #ffcc00;
  --background: #f8f7f3;
  --text: #282923;
  --green: #285b3d;
  --orange: #805100;
  --red: #a02b35;
  --gray: #525866;
  --line: #deded5;
  --muted: #61635b;
  --surface: #fff;
  --radius: 8px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--background);
  font-size: 16px;
  line-height: 1.65;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 19px;
  border: 1px solid var(--primary);
  border-radius: 5px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
}
button:hover,
.button:hover {
  filter: brightness(1.25);
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
button[aria-pressed="true"] {
  background: var(--secondary);
  color: var(--text);
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #8b8d82;
  border-radius: 5px;
  background: #fff;
  padding: 11px 13px;
  color: var(--text);
  min-height: 46px;
}
textarea {
  resize: vertical;
}
label {
  display: block;
  font-size: 0.94rem;
  font-weight: 600;
  margin-bottom: 16px;
}
label input,
label select,
label textarea {
  margin-top: 6px;
}
fieldset {
  border: 1px solid var(--line);
  margin: 0 0 18px;
  border-radius: 5px;
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
}
.check input {
  width: 20px;
  min-height: 20px;
  margin: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
p + p {
  margin-top: 15px;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(2.4rem, 4.5vw, 4.3rem);
  line-height: 1.12;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.15rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
ul {
  padding-left: 22px;
}
li + li {
  margin-top: 8px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #805100;
  outline-offset: 4px;
}
main:focus {
  outline: 0;
}
.skip {
  position: absolute;
  top: -100px;
  left: 15px;
  z-index: 100;
  background: var(--primary);
  color: white;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.site-header {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 20px max(32px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--background);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: Georgia, serif;
  font-size: 1.45rem;
  text-decoration: none;
  white-space: nowrap;
}
.site-header nav {
  display: flex;
  gap: 27px;
}
.site-header nav a {
  font-size: 0.94rem;
  text-decoration: none;
  padding: 8px 0;
  color: var(--muted);
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
}
.header-guide {
  background: transparent;
  color: var(--text);
}
main {
  max-width: 1240px;
  margin: auto;
  padding: 0 32px 80px;
  min-height: 60vh;
}
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 295px;
  gap: 60px;
  padding: 66px 0 48px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  color: var(--muted);
  line-height: 1.5;
}
.hero-copy > .eyebrow {
  margin-bottom: 22px;
}
.hero-copy h1 {
  font-size: clamp(2.5rem, 4.5vw, 4.15rem);
}
h1 em {
  font-weight: 400;
  color: #656b53;
}
.lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 660px;
  margin-top: 22px;
}
.hero-copy .lede {
  max-width: 580px;
}
.search-form {
  margin: 30px 0 0;
}
.search-form label {
  font-size: 0.83rem;
  margin-bottom: 9px;
}
.search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #8b8d82;
  border-radius: 6px;
  padding: 6px;
  gap: 8px;
}
.search-box > span {
  font-size: 2rem;
  line-height: 1;
  padding-left: 10px;
}
.search-box input {
  border: 0;
  min-width: 0;
  margin: 0;
  padding-left: 5px;
}
.search-box button {
  flex-shrink: 0;
}
.popular {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 15px;
  margin-top: 14px;
  font-size: 0.78rem;
}
.popular > span {
  color: var(--muted);
}
.popular a {
  color: #54584c;
}
.guide-teaser {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f0f0e8;
  text-align: center;
  padding: 15px 25px 23px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}
.mascot {
  object-fit: contain;
  mix-blend-mode: multiply;
  width: 150px;
  height: 150px;
}
.guide-teaser h2 {
  font-size: 1.55rem;
  margin: 12px 0;
}
.guide-teaser p:not(.eyebrow) {
  font-size: 0.88rem;
}
.guide-teaser .button {
  margin: 20px 0 12px;
  background: transparent;
  color: var(--text);
}
.small {
  font-size: 0.83rem;
  color: var(--muted);
}
.profiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}
.profile {
  padding: 24px 20px;
  text-align: center;
  font-size: 1rem;
  text-decoration: none;
  border-right: 1px solid var(--line);
}
.profile:last-child {
  border: 0;
}
.profile:hover {
  background: #efeee7;
}
.section {
  padding-top: 65px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 25px;
}
.section-heading h2 {
  margin: 7px 0 0;
}
.section-heading > p,
.section-heading > a {
  font-size: 0.85rem;
  color: var(--muted);
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.module-card {
  display: flex;
  flex-direction: column;
  min-height: 180px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  background: #fff;
}
.module-card:hover {
  background: #f0f0e8;
}
.module-number {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--muted);
}
.module-card h3 {
  font-size: 1.03rem;
  margin: 21px 0 18px;
  font-weight: 600;
}
.module-card > span:last-child {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.fiche-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 25px;
  min-width: 0;
}
.card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-direction: column;
  margin-bottom: 18px;
}
.card-top .eyebrow {
  font-size: 0.68rem;
}
.badge {
  display: inline-block;
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  white-space: normal;
}
.vert {
  background: #eaf2e9;
  color: var(--green);
}
.orange {
  background: #faf0d8;
  color: var(--orange);
}
.rouge {
  background: #fcebed;
  color: var(--red);
}
.gris {
  background: #edf0f3;
  color: var(--gray);
}
.fiche-card h3 {
  font-size: 1.16rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.fiche-card h3 a {
  text-decoration: none;
}
.fiche-card h3 a:hover {
  text-decoration: underline;
}
.fiche-card > p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 25px;
}
.card-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--muted);
}
.text-link {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text);
}
.reading-key {
  border-top: 1px solid var(--line);
  margin-top: 65px;
  padding-top: 35px;
}
.reading-key h2 {
  font-size: 1.6rem;
}
.reading-key p {
  color: var(--muted);
  font-size: 0.94rem;
}
.status-key {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
footer {
  border-top: 1px solid var(--line);
  max-width: 1240px;
  margin: auto;
  padding: 36px 32px 48px;
  display: flex;
  justify-content: space-between;
  gap: 50px;
}
footer > div:first-child {
  max-width: 640px;
}
footer p {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 15px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  gap: 8px;
  min-width: 210px;
}
.footer-links span {
  color: var(--muted);
}
.page-intro {
  padding: 55px 0 36px;
}
.page-intro h1 {
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  margin-top: 15px;
}
.page-intro + .search-form {
  margin-top: 0;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 15px;
  margin: 23px 0;
}
.filters label {
  flex: 1;
  min-width: 170px;
  margin: 0;
}
.filters button {
  background: transparent;
  color: var(--text);
}
#result-count,
#source-count {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 22px 0;
}
.notice {
  background: #f7f0de;
  border-left: 3px solid #aa7e2f;
  padding: 17px 20px;
  margin: 22px 0;
  font-size: 0.94rem;
}
.notice h3 {
  margin-bottom: 10px;
}
.detail {
  max-width: 850px;
  margin: auto;
  padding-top: 32px;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 32px;
}
.detail-header h1 {
  font-size: clamp(2.2rem, 4vw, 3.35rem);
  margin: 15px 0 25px;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 15px 0;
}
.toolbar button {
  font-size: 0.85rem;
}
.detail-header .toolbar button {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.mode-control {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  border-block: 1px solid var(--line);
  padding: 16px 0;
  margin: 28px 0;
}
.mode-control span {
  margin-right: auto;
  font-size: 0.85rem;
  color: var(--muted);
}
.mode-control button {
  font-size: 0.8rem;
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.mode-control button[aria-pressed="true"] {
  background: var(--primary);
  color: white;
}
.quick-answer {
  background: #f0f0e7;
  padding: 28px;
  border-radius: 7px;
}
.quick-answer > p:last-child {
  font-size: 1.18rem;
  margin-top: 12px;
}
.detail-section {
  margin: 32px 0;
}
.detail-section h2 {
  font-size: 1.65rem;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
}
.two-columns .detail-section {
  margin: 12px 0;
}
.action-box {
  border: 1px solid var(--line);
  padding: 25px;
  border-radius: 8px;
}
.source-item {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.source-item h3 {
  font-size: 1.05rem;
  margin: 8px 0;
}
.source-item ul {
  font-size: 0.93rem;
}
.source-related {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}
.keywords {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 25px 0;
}
.keywords a {
  padding: 4px 10px;
  background: #eeeee7;
  font-size: 0.8rem;
  border-radius: 4px;
  text-decoration: none;
}
.quick-mode .deep-content {
  display: none;
}
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.case-card {
  border: 1px solid #eaeaea;
  border-radius: 8px;
  background: white;
  padding: 30px;
  text-decoration: none;
}
.case-card:hover {
  background: #f0f0e8;
}
.case-card h2 {
  font-size: 1.85rem;
  margin: 20px 0 15px;
}
.case-card p {
  color: var(--muted);
  margin-bottom: 30px;
}
.guide-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}
.guide-panel,
.quiz-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 35px;
  flex: 1;
  min-width: 0;
}
.guide-panel h2,
.quiz-panel h2 {
  margin: 18px 0 28px;
}
.guide-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.guide-choices button {
  background: var(--background);
  color: var(--text);
  border-color: var(--line);
  justify-content: space-between;
  text-align: left;
  padding: 18px;
}
.guide-panel .cards {
  grid-template-columns: 1fr 1fr;
}
.guide-panel h2:focus,
.quiz-panel h2:focus {
  outline: none;
}
.quiz-panel {
  max-width: 850px;
}
.quiz-panel .detail {
  padding: 0;
}
.quiz-panel .detail-header,
.quiz-panel .mode-control {
  display: none;
}
.prose {
  max-width: 780px;
}
.prose h2 {
  margin: 36px 0 18px;
}
.prose p {
  color: var(--muted);
}
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.admin-nav button {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
  font-size: 0.88rem;
}
.admin-nav button[aria-current="page"] {
  background: var(--primary);
  color: white;
}
#admin-message {
  white-space: pre-wrap;
  color: var(--red);
  margin: 22px 0;
}
#admin-content section {
  margin: 25px 0;
}
#admin-content h2 {
  margin-top: 20px;
}
#admin-content form {
  max-width: 800px;
}
#admin-content .toolbar {
  align-items: stretch;
}
#admin-content .toolbar button {
  font-size: 0.8rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.stats > div {
  padding: 20px;
  border-right: 1px solid var(--line);
}
.stats > div:last-child {
  border: 0;
}
.stats strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
}
.stats span {
  font-size: 0.78rem;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin: 24px 0;
  text-align: left;
  font-size: 0.9rem;
}
td,
th {
  padding: 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
td button {
  font-size: 0.8rem;
}
details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 32px;
}
.text-button {
  padding: 5px 0;
  background: transparent;
  color: var(--text);
  border: 0;
  text-align: left;
  justify-content: flex-start;
  text-decoration: underline;
}
.pending-list article {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.pending-list article p {
  margin: 10px 0;
}
.empty {
  grid-column: 1/-1;
  padding: 35px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.empty .button {
  margin-top: 22px;
}
#notification:not(:empty) {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 14px 22px;
  border-radius: 6px;
  max-width: calc(100vw - 30px);
  width: max-content;
  font-size: 0.88rem;
  z-index: 50;
}
#notification button {
  margin-left: 10px;
  background: white;
  color: var(--primary);
}
@media (min-width: 1600px) {
  .home-hero {
    padding-top: 80px;
  }
}
@media (max-width: 1050px) {
  .site-header {
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 30px;
  }
  .site-header nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
  .home-hero {
    gap: 30px;
    grid-template-columns: minmax(0, 1fr) 240px;
  }
  .guide-teaser {
    padding: 15px;
  }
  .module-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .search-box button {
    padding: 10px;
  }
  .search-box > span {
    display: none;
  }
  .profile {
    font-size: 0.9rem;
  }
  .hero-copy h1 {
    font-size: 3rem;
  }
}
@media (max-width: 700px) {
  main {
    padding: 0 20px 50px;
  }
  .site-header {
    padding: 16px 20px;
  }
  .brand {
    font-size: 1.25rem;
  }
  .header-guide {
    font-size: 0.8rem;
    padding: 8px 12px;
  }
  .site-header nav {
    gap: 12px;
    overflow-x: auto;
  }
  .site-header nav a {
    white-space: nowrap;
    font-size: 0.8rem;
  }
  .home-hero {
    display: block;
    padding: 38px 0 28px;
  }
  .hero-copy h1 {
    font-size: clamp(2.3rem, 8.5vw, 3.3rem);
  }
  .hero-copy > .eyebrow {
    font-size: 0.66rem;
    margin-bottom: 18px;
  }
  .lede {
    font-size: 1rem;
  }
  .search-box {
    flex-wrap: wrap;
    padding: 7px;
  }
  .search-box input {
    width: 100%;
    font-size: 1rem;
    padding: 10px;
  }
  .search-box button {
    width: 100%;
  }
  .popular {
    gap: 8px 12px;
  }
  .guide-teaser {
    margin-top: 30px;
    padding: 20px;
    flex-direction: row;
    text-align: left;
    gap: 16px;
  }
  .guide-teaser .mascot {
    width: 85px;
    height: 110px;
    flex-shrink: 0;
  }
  .guide-teaser h2 {
    font-size: 1.35rem;
  }
  .guide-teaser .eyebrow {
    font-size: 0.65rem;
  }
  .guide-teaser .button {
    margin: 14px 0 8px;
  }
  .profiles {
    grid-template-columns: 1fr;
  }
  .profile {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    padding: 17px 8px;
  }
  .module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .module-card {
    padding: 18px;
    min-height: 155px;
  }
  .module-card h3 {
    font-size: 0.97rem;
  }
  .section {
    padding-top: 42px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .section-heading h2 {
    font-size: 1.9rem;
  }
  .cards,
  .case-grid,
  .two-columns {
    grid-template-columns: 1fr;
  }
  .fiche-card {
    padding: 22px;
  }
  .reading-key {
    margin-top: 42px;
  }
  .page-intro {
    padding-top: 35px;
  }
  .filters {
    gap: 12px;
  }
  .filters label {
    min-width: 100%;
  }
  footer {
    padding: 30px 20px;
    flex-direction: column;
    gap: 25px;
  }
  .detail-header h1 {
    font-size: 2.2rem;
  }
  .detail {
    padding-top: 22px;
  }
  .quick-answer {
    padding: 23px;
  }
  .quick-answer > p:last-child {
    font-size: 1.08rem;
  }
  .mode-control {
    gap: 7px;
  }
  .mode-control span {
    width: 100%;
  }
  .two-columns {
    gap: 10px;
  }
  .guide-layout {
    display: block;
  }
  .guide-layout > .mascot {
    display: none;
  }
  .guide-panel,
  .quiz-panel {
    padding: 22px;
  }
  .guide-choices,
  .guide-panel .cards {
    grid-template-columns: 1fr;
  }
  .guide-panel h2 {
    font-size: 1.7rem;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats > div {
    border-bottom: 1px solid var(--line);
  }
  .stats span {
    font-size: 0.8rem;
  }
  .admin-nav {
    gap: 8px;
  }
  .admin-nav button {
    font-size: 0.8rem;
    padding: 9px 13px;
  }
  .case-card {
    padding: 24px;
  }
  .status-key .badge {
    font-size: 0.8rem;
  }
  #notification:not(:empty) {
    bottom: 10px;
    max-height: 35vh;
    overflow: auto;
  }
}
@media (prefers-reduced-motion: no-preference) {
  a,
  button {
    transition:
      background-color 0.15s,
      color 0.15s;
  }
  button:active {
    transform: translateY(1px);
  }
}
@media print {
  .site-header,
  .mode-control,
  footer,
  .toolbar,
  .keywords,
  #notification,
  .skip {
    display: none !important;
  }
  body,
  main {
    background: white;
    color: black;
  }
  main {
    max-width: none;
    padding: 0;
  }
  .deep-content {
    display: block !important;
  }
  .detail {
    max-width: none;
  }
  .quick-answer,
  .action-box {
    background: none;
    border: 1px solid #777;
  }
  .source-item a:after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    overflow-wrap: anywhere;
  }
  .detail-section {
    break-inside: avoid;
  }
  h1 {
    font-size: 24pt;
  }
}

.quiz-panel .deep-content {
  display: block !important;
}
.card-top .eyebrow,
.hero-copy > .eyebrow,
.guide-teaser .eyebrow {
  font-size: max(0.75rem, 12px);
}
/* Original supplied storyboard: eight unmodified poses, framed with CSS. */
.story-mascot {
  display: block;
  width: 150px;
  aspect-ratio: 181/315;
  flex-shrink: 0;
}
.mascot-frame {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background-size: 848.619% 325.079%;
  background-position: 1.3284% 12.835%;
  background-repeat: no-repeat;
  animation: mascot-breathe 4s ease-in-out infinite;
  transform-origin: 50% 95%;
}
[data-pose="wave"] .mascot-frame {
  background-position-x: 15.055%;
  animation: mascot-wave 3s ease-in-out infinite;
}
[data-pose="think"] .mascot-frame {
  background-position-x: 28.93%;
  animation: mascot-think 5s ease-in-out infinite;
}
[data-pose="search"] .mascot-frame {
  background-position-x: 42.8%;
  animation: mascot-search 4s ease-in-out infinite;
}
[data-pose="idea"] .mascot-frame {
  background-position-x: 56.68%;
  animation: mascot-breathe 2.6s ease-in-out infinite;
}
[data-pose="read"] .mascot-frame {
  background-position-x: 70.55%;
  animation: mascot-think 6s ease-in-out infinite;
}
[data-pose="success"] .mascot-frame {
  background-position-x: 84.43%;
  animation: mascot-jump 2.8s ease-in-out infinite;
}
[data-pose="heart"] .mascot-frame {
  background-position-x: 98.3%;
  animation: mascot-heart 3s ease-in-out infinite;
}
.mascot-companion {
  max-width: 1180px;
  margin: 30px auto;
  padding: 20px 32px;
  border-top: 1px solid var(--line, #deded8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.mascot-companion > div {
  display: flex;
  align-items: center;
  gap: 24px;
}
.mascot-companion .story-mascot {
  width: 70px;
}
.mascot-companion p {
  font-size: 1.15rem;
}
.mascot-companion button {
  font-size: 0.78rem;
}
.mascot-presentation {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 32px;
  margin: 20px 0 40px;
  border-block: 1px solid var(--line, #deded8);
}
.mascot-presentation > div:last-child {
  max-width: 640px;
}
.mascot-presentation [data-story-text] {
  min-height: 3.5em;
}
.mascot-presentation .story-mascot {
  width: 120px;
}
.mascot-paused .mascot-frame {
  animation-play-state: paused;
}
@keyframes mascot-breathe {
  50% {
    transform: translateY(-3px) scale(1.015);
  }
}
@keyframes mascot-wave {
  15%,
  45% {
    transform: rotate(3deg);
  }
  30%,
  60% {
    transform: rotate(-2deg);
  }
}
@keyframes mascot-think {
  50% {
    transform: rotate(-2deg);
  }
}
@keyframes mascot-search {
  30% {
    transform: translateX(-3px) rotate(-2deg);
  }
  70% {
    transform: translateX(3px) rotate(2deg);
  }
}
@keyframes mascot-jump {
  20% {
    transform: translateY(-9px) rotate(3deg);
  }
  40% {
    transform: translateY(0);
  }
}
@keyframes mascot-heart {
  50% {
    transform: scale(1.035);
  }
}
@media (max-width: 600px) {
  .mascot-presentation {
    gap: 18px;
    padding: 24px 0;
  }
  .mascot-presentation .story-mascot {
    width: 88px;
  }
  .mascot-companion {
    padding: 20px;
    flex-wrap: wrap;
  }
  .guide-teaser .story-mascot {
    width: 105px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mascot-frame {
    animation: none !important;
  }
}
@media print {
  .mascot-companion,
  .mascot-presentation,
  .story-mascot {
    display: none !important;
  }
}
.page-guide {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  padding-top: 18px;
}
.page-guide .story-mascot {
  width: 65px;
}
.page-guide p {
  margin: 0;
}
@media (max-width: 600px) {
  .page-guide {
    justify-content: flex-start;
  }
  .page-guide .story-mascot {
    width: 52px;
  }
}
@media print {
  .page-guide {
    display: none;
  }
}
.toolbox-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  border-block: 1px solid #deded8;
  padding: 20px 0;
}
.toolbox-callout {
  padding: 28px 0;
}
#project-form,
#suggestion-form {
  max-width: 760px;
  display: grid;
  gap: 18px;
}
#project-form > label,
#suggestion-form > label {
  display: grid;
  gap: 8px;
}
.check-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
}
.check-row input {
  width: auto;
  flex: none;
  margin-top: 4px;
}
#project-form fieldset {
  border: 1px solid #deded8;
  padding: 20px;
}
.tool-definition {
  border-bottom: 1px solid #deded8;
  padding: 18px 0;
}
.tool-definition summary {
  cursor: pointer;
  font-size: 1.1rem;
}
.illustrated-story {
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid #deded8;
}
.illustrated-story .story-mascot {
  width: 90px;
}
.mascot-setting {
  font-size: 0.8rem;
}
.mascot-discreet .page-guide,
.mascot-discreet .mascot-companion > div,
.mascot-discreet .guide-teaser > .story-mascot {
  display: none;
}
.mascot-discreet .mascot-frame {
  animation: none;
}
@media (max-width: 600px) {
  .illustrated-story {
    gap: 16px;
  }
  .illustrated-story .story-mascot {
    width: 65px;
  }
}
@media print {
  body.print-project header,
  body.print-project footer,
  body.print-project .page-guide,
  body.print-project .mascot-companion,
  body.print-project main > *:not(#projet),
  body.print-project #projet button,
  body.print-project #project-status {
    display: none !important;
  }
  body.print-project textarea {
    height: 180px;
  }
}
.learning-section {
  margin: 36px 0;
  border-top: 1px solid #deded8;
  padding-top: 30px;
}
.learning-focus {
  font-size: 1.15rem;
}
.learning-principle {
  margin: 28px 0;
  max-width: 78ch;
}
.learning-principle h3 {
  font-size: 1.2rem;
}
.learning-example {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #f1efe5;
  padding: 24px;
  margin: 30px 0;
  border-radius: 12px;
}
.learning-example .story-mascot {
  width: 92px;
}
.learning-example h3 {
  margin-top: 8px;
}
.document-guide > div {
  padding: 18px 0;
  border-bottom: 1px solid #deded8;
}
.document-guide dt {
  font-weight: 650;
  text-transform: capitalize;
}
.document-guide dd {
  margin: 8px 0 0;
}
.learning-next {
  border-left: 3px solid #d6ac29;
  padding: 2px 0 2px 22px;
  margin: 30px 0;
}
.reading-sources li {
  padding: 12px 0;
}
.reading-sources p {
  margin: 8px 0;
}
.learning-review {
  border-top: 1px solid #deded8;
  padding-top: 18px;
}
.learning-scenarios article {
  padding: 12px 0;
}
.learning-scenarios h4 {
  font-size: 1.1rem;
  margin: 8px 0;
}
@media (max-width: 600px) {
  .learning-example {
    gap: 14px;
    padding: 18px;
  }
  .learning-example .story-mascot {
    width: 58px;
  }
}

/* Identité de la planche fournie : crème, encre et jaune. */
.site-header .brand { flex-shrink: 0; }
.brand-logo { display: block; width: 250px; height: auto; mix-blend-mode: multiply; }
.header-guide, .search-box button, .guide-teaser .button, .toolbox-callout .button { background: var(--secondary); color: #242424; border-color: var(--secondary); }
.header-guide:hover, .search-box button:hover, .guide-teaser .button:hover, .toolbox-callout .button:hover { filter: brightness(.95); }
.site-header nav a[aria-current="page"] { text-decoration-color: var(--secondary); text-decoration-thickness: 4px; text-underline-offset: 8px; }
input[type="checkbox"] { accent-color: #805100; }
@media(max-width: 1100px) { .site-header { flex-wrap: wrap; gap: 16px; } .site-header nav { flex-wrap: wrap; gap: 18px; } }
@media(max-width: 600px) { .brand-logo { width: 220px; } }

.brand-logo { mix-blend-mode: normal; width: 280px; }
.footer-seal { display: block; margin-top: 24px; mix-blend-mode: multiply; }
.home-hero h1 em { color: var(--secondary); }
@media(max-width:600px) { .brand-logo { width: 240px; } }

.source-item .small { overflow-wrap: anywhere; }
.source-related { display: flex; flex-direction: column; gap: 8px; }
