/* Le livret se lit dans le menu et sur le plateau. Seul son contenu défile. */
#aide {
  --f-c: "Source Serif 4", Georgia, serif;
  --f-t: "Poppins", system-ui, sans-serif;
  --papier: #fff9ec;
  --ligne: #ddcfb1;
  --brique: #8e3429;
  width: min(700px, calc(100% - 20px));
  max-width: none;
  max-height: min(90dvh, 850px);
  padding: 0;
  overflow: hidden;
  color: #172b38;
  background: var(--papier) !important;
  border: 2px solid #263748;
  border-radius: 16px;
  box-shadow: 0 14px 55px #0c182869;
  text-align: left;
}
#aide[open] { display: flex; flex-direction: column; }
#aide .aideEntete, #aide .aideLecture { width: 100%; margin: 0; }
#aide .aideEntete {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 22px; background: #1c3340; color: #fffaf0; border-bottom: 3px solid #e6b85c;
}
#aide h2, #aide h3 {
  display: block; padding: 0; margin: 0; border: 0; color: inherit; background: none;
  box-shadow: none; text-align: left; font: 700 21px/1.16 var(--f-c); letter-spacing: normal;
}
#aide h2 { font-size: 29px; }
#aide h3 { justify-self: start; }
#aide h2::before, #aide h2::after, #aide h3::before, #aide h3::after { display: none; }
#aide .aideEtiquette {
  display: block; color: var(--brique); font: 700 11px/1.4 var(--f-t);
  letter-spacing: .09em; text-transform: uppercase; margin-bottom: 3px;
}
#aide .aideEntete .aideEtiquette { color: #f9d188; }
#aide #fermerAide {
  flex: none; min-height: 44px; border: 1px solid #8da1a3; border-radius: 8px;
  padding: 6px 12px; background: transparent; color: inherit; cursor: pointer; font-size: 13px;
}
#fermerAide span { margin-left: 5px; font-size: 19px; vertical-align: middle; }
#aide :focus-visible { outline: 3px solid #d99523; outline-offset: -3px; }
#aide .aideLecture {
  padding: 16px 22px 20px; overflow-y: auto; overscroll-behavior: contain;
  min-height: 0; font: 15px/1.4 system-ui, sans-serif;
}
#aide p { margin: 0; font: inherit; text-align: left; }
#aide .aideRecrutement { font-size: 14px; margin: 0 0 10px; }
#aide .aideBut { border: 1px solid var(--ligne); border-radius: 10px; background: #f6edd8; padding: 12px 15px 0; }
#aide .aideBut h3 { font-size: 25px; margin-bottom: 5px; }
.aideSanctuaire { display: grid; grid-template-columns: 1fr 188px; align-items: center; gap: 16px; }
#aide figure { margin: 0; }
.aideDalles { display: flex; align-items: center; justify-content: space-between; position: relative; isolation: isolate; background: #f6edd8; }
.aideDalles::before { content: ""; position: absolute; z-index: -1; left: 12%; right: 12%; top: 70%; border-top: 3px dashed #ab792a; }
.aideDalles svg { transform: translateY(5px); }
.aideDalle { position: relative; width: 60px; height: 62px; display: grid; place-items: center; }
.aideDalle::before { content: ""; position: absolute; bottom: 0; width: 94%; height: 45%; border-radius: 45%; background: #ffe6a1; border: 2px solid #a96332; box-shadow: inset 0 0 0 3px #fff5cc; }
.aideDalle img { position: relative; width: 51px; height: 53px; object-fit: contain; mix-blend-mode: multiply; }
.aideExemple figcaption { margin-top: 5px; text-align: center; color: #664621; font-weight: 650; font-size: 12px; }
#aide .aideAutreBut { border-top: 1px solid var(--ligne); margin-top: 10px; padding: 7px 0; font-size: 13px; }
#aide .aideTour, #aide .aideSort { margin: 15px 0 0; }
#aide .aideEtapes, #aide .aideTrajet { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 8px 0 0; gap: 12px; }
.aideEtapes { counter-reset: etape; }
.aideEtapes li { counter-increment: etape; border-top: 1px solid var(--ligne); padding-top: 7px; }
.aideEtapes li::before {
  content: counter(etape); display: inline-grid; place-items: center; height: 20px; width: 20px;
  background: var(--brique); color: white; border-radius: 50%; margin: 0 3px 3px 0; font: 700 12px/1 var(--f-t);
}
#aide .aideEtapes b { font-size: 14px; }
#aide .aideEtapes p, #aide .aideSort p { font-size: 14px; }
#aide .aideTrajet { gap: 0; background: #eaf0ea; border-radius: 9px; padding: 6px 3px 9px; }
.aideTrajet li { position: relative; text-align: center; padding-inline: 5px; }
.aideTrajet li + li::before { content: "→"; position: absolute; left: -.45em; top: 8px; font-size: 18px; color: #456351; }
.aideTrajet svg { width: 49px; height: 34px; margin: 0 auto 2px; display: block; color: #273f42; }
.aideTrajet span { display: block; font-size: 13px; line-height: 1.3; }
#aide .aideSort p { margin-top: 5px; }
.aideFiches { margin-top: 14px; border-block-end: 1px solid var(--ligne); }
#aide .aideFiches details { border: 0; border-top: 1px solid var(--ligne); margin: 0; padding: 0; background: none; }
#aide .aideFiches summary { display: list-item; min-height: 44px; padding: 12px 4px; cursor: pointer; font: 650 15px/1.35 system-ui, sans-serif; color: #293c40; }
.aideFiches summary::marker { color: var(--brique); }
.aideFiches details > div { padding: 0 4px 12px; }
#aide .aideFiches p + p { margin-top: 7px; }
#aide .aidePiege { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.aidePerimetre { width: 67px; height: 67px; flex: none; display: grid; grid-template: repeat(3,1fr) / repeat(3,1fr); gap: 2px; }
.aidePerimetre > * { display: grid; place-items: center; background: #efe3cb; border-radius: 3px; }
.aidePerimetre i::before { content: ""; width: 5px; height: 5px; background: var(--brique); border-radius: 50%; }
.aidePerimetre b { background: #834135; color: white; }
.aideFiches kbd { padding: 0 3px; border: 1px solid var(--ligne); border-radius: 3px; }
@media (max-width: 550px) {
  #aide { max-height: calc(100dvh - 16px); }
  #aide .aideEntete { padding: 9px 13px; }
  #aide h2 { font-size: 24px; }
  #aide .aideLecture { padding: 12px 13px 16px; }
  .aideSanctuaire { grid-template-columns: 1fr; gap: 6px; }
  #aide .aideExemple { width: 180px; justify-self: center; }
  #aide .aideEtapes { grid-template-columns: 1fr; gap: 5px; }
  .aideEtapes li { position: relative; padding: 4px 0 0 29px; border: 0; }
  .aideEtapes li::before { position: absolute; left: 0; top: 4px; }
  #aide .aideTour, #aide .aideSort { margin-top: 12px; }
}
#aide .aideLienVideo {
  display: inline-flex; min-height: 44px; align-items: center; gap: 7px;
  padding-inline: 9px; color: #1c514a; font-weight: 700; text-underline-offset: 3px;
}
