/* Le carnet partage les couleurs des notes et la typographie de la leçon. */
.edition-picker, .edition-speeds { display: inline-flex; align-self: flex-start; flex-wrap: wrap; gap: 3px; padding: 3px; border: 1px solid #a8bab1; border-radius: 14px; background: #f8f7ef; }
.edition-picker a, .edition-picker span, .edition-speeds button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 6px 16px; border: 0; border-radius: 10px; color: #294b40; background: transparent; font: 700 1rem var(--sans); text-decoration: none; }
.edition-picker [aria-current], .edition-speeds [aria-pressed="true"] { color: white; background: #245447; }
.edition-picker a:hover, .edition-speeds button:hover:not([aria-pressed="true"]) { background: #e2ebdf; }
.long-lesson { min-height: 100dvh; padding: clamp(18px,4vw,52px) max(16px,calc((100% - 1024px)/2)); color: #213c38; background: #f5f3e9; }
.long-lesson header, .long-lesson footer { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.long-lesson a { color: #294b40; text-underline-offset: .22em; }
.long-lesson h1 { margin: 30px 0 6px; font: 560 clamp(2.2rem,5vw,4.3rem)/1.08 var(--serif); letter-spacing: -.04em; }
.long-lesson .edition-work { margin: 0 0 18px; color: #50655d; }
.long-lesson audio { display: block; width: 100%; margin: .5rem 0 1rem; }
.long-lesson h2 { margin: 1.4rem 0 .55rem; font: 600 1.25rem var(--sans); }
.long-lesson footer a { display: inline-flex; align-items: center; min-height: 44px; }
.tutorial-piano .keys { height: clamp(100px, 18vh, 175px); margin: .6rem 0 1rem; }
.tutorial-piano .edition-speeds { align-items: center; }
.tutorial-piano .white .face { font-size: clamp(.65rem, 2.5vw, 1rem); }
.notebook {
  --book-ink: #213c38;
  --book-muted: #566a62;
  --book-line: #d7d9ca;
  --book-paper: #fffdf6;
  background: #f4f2e8;
  color: var(--book-ink);
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom);
}
.book-head-inner, .book-main, .book-foot { width: min(1100px, calc(100% - 64px)); margin-inline: auto; }
.book-header { border-bottom: 1px solid var(--book-line); background: var(--book-paper); }
.book-head-inner, .book-nav, .book-brand, .hero-actions, .book-foot { display: flex; align-items: center; }
.book-head-inner { justify-content: space-between; gap: 1rem; min-height: 76px; }
.book-brand, .book-nav button, .leave-session { background: none; border: 0; color: inherit; }
.book-brand { gap: 11px; padding: 0; font: italic 560 1.65rem var(--serif); letter-spacing: -.055em; }
.book-brand i {
  width: 34px; height: 34px; border: 5px solid #25473f; border-radius: 8px;
  background: linear-gradient(90deg, transparent 22%, #25473f 22% 38%, transparent 38% 60%, #25473f 60% 76%, transparent 76%) top/100% 63% no-repeat,
    repeating-linear-gradient(90deg, #fff9de 0 28%, #25473f 28% 34%);
}
.book-nav { gap: 8px; }
.book-nav button { border-radius: 9px; padding: 10px 16px; min-height: 44px; font-size: .95rem; font-weight: 800; }
.book-nav button:is(:hover,[aria-current]) { background: #e6ecdf; color: #24463c; }
.book-main { padding-block: clamp(20px,3vw,40px) 22px; }
.daily-hero {
  display: grid; grid-template-columns: minmax(0,1.45fr) minmax(228px,.9fr); align-items: center;
  gap: clamp(20px,4vw,64px); padding: clamp(26px,4.5vw,62px);
  position: relative; isolation: isolate; overflow: hidden; border-radius: 26px;
  color: #fcf6dc; background: radial-gradient(ellipse at 96% 0%,#43665a,transparent 60%), #173f3b;
}
.daily-hero::before {
  content: ""; position: absolute; inset: -14% -20% -65% 31%; z-index: -1; pointer-events: none;
  background: repeating-radial-gradient(ellipse at 68% 72%, transparent 0 27px, #d6e1b420 28px, transparent 30px 42px);
  transform: rotate(-19deg); mask-image: linear-gradient(90deg,transparent,#000 58%);
}
.book-date { color: #e7d39e; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; margin: 0 0 18px; }
.daily-hero h1, .library h1, .notebook .juke h1 { font: 560 clamp(2.6rem,5vw,4.55rem)/1.04 var(--serif); letter-spacing: -.055em; margin: 0; }
.hero-detail { margin: 20px 0 3px; font-size: .84rem; color: #cbdad0; }
.hero-piece { margin: 0; font: 560 clamp(1.2rem,2.1vw,1.6rem)/1.2 var(--serif); }
.hero-actions { flex-wrap: wrap; gap: 10px 16px; margin-top: 25px; }
.hero-actions > span { color: #dae4d8; font-size: .9rem; }
.hero-play { display: inline-flex; align-items: center; gap: 12px; color: #203d32; border: 0; border-radius: 30px; padding: 14px 21px; background: #f3d48c; min-height: 48px; font: 800 .98rem var(--sans); }
.hero-play:hover { background: #ffe1a4; }
.hero-play i { font-size: .8rem; font-style: normal; }
.leave-session { text-decoration: underline; min-height: 44px; }
.mini-instrument { justify-self: center; width: min(100%, 302px); transform: rotate(3deg); }
.mini-sheet {
  position: relative; margin: 0 10px -7px; padding: 13px 13px 9px; color: #42463a;
  border-radius: 4px 9px 2px 2px; background: linear-gradient(101deg,#f7efce,#fff8de 66%,#eee2be);
  box-shadow: 3px -3px #bfba9f,6px -5px #e2d5ae,0 10px 22px #091e1a4f;
}
.mini-caption { font: italic 560 1.05rem var(--serif); text-align: center; }
.mini-sheet svg { width: 100%; display: block; fill: currentColor; }
.mini-sheet path { stroke: currentColor; stroke-width: 1.8; fill: none; }
.mini-sheet .staff-lines { color: #a69e82; }
.mini-sheet .staff-lines path { stroke-width: 1; }
.mini-sheet .sounding { color: #af4a30; fill: currentColor; }
.mini-keys {
  position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
  background: #213631; border: 8px solid #383e32; border-top: 11px solid #815f43;
  border-radius: 6px 6px 11px 11px; box-shadow: 0 5px #5e513d, 4px 15px 18px #081e1b60;
}
.mini-white { height: clamp(75px,8vw,97px); display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 3px; padding: 0 0 7px; background: linear-gradient(#dfdccc,#fffdf0 55%); border: 0; border-bottom: 5px solid #c7c1a8; border-radius: 1px 1px 5px 5px; color: #424d40; font-weight: 800; }
.mini-white i { width: 7px; height: 7px; border-radius: 50%; background: var(--tone); }
.mini-white.sounding { background: #ffebad; border-bottom-width: 2px; }
.mini-black { position: absolute; top: 0; width: 12%; height: 55%; transform: translateX(-50%); border: 1px solid #1b2925; border-bottom: 5px solid #17221e; border-radius: 0 0 4px 4px; background: linear-gradient(100deg,#263c36,#425247 80%,#283b34); }
.mini-black.sounding { background: #755834; }
.book-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; margin-block: 20px; }
.book-panel, .library, .notebook .juke { min-width: 0; padding: clamp(21px,3vw,34px); background: var(--book-paper); border: 1px solid var(--book-line); border-radius: 20px; }
.book-panel h2, .ear-link b { margin: 0 0 16px; font: 560 clamp(1.5rem,2.3vw,2rem)/1.1 var(--serif); letter-spacing: -.035em; }
.book-panel .plan { margin: 0; }
.book-panel .plan li { border-radius: 0; gap: 13px; padding: 10px 0; }
.book-panel .plan-num { background: #e8eee3; color: #3b5948; box-shadow: none; font-family: var(--sans); font-weight: 800; }
.book-panel .plan li[aria-current] .plan-num { background: var(--book-ink); color: white; }
.book-panel .today-lede { margin: 13px 0 0; font-size: .9rem; }
.book-panel .teacher-note { margin: 12px 0 0; }
.book-panel .week { gap: 5px; }
.book-panel .week li { background: #f3f3e8; box-shadow: none; padding-block: 10px; }
.book-panel .week .is-today { background: #f5e7bc; box-shadow: inset 0 0 0 1.5px #ae8b45; }
.book-panel .d-letter { font-size: .7rem; letter-spacing: .01em; }
.book-panel .d-mark { height: 23px; font: 560 1.12rem var(--serif); }
.book-panel .started .d-mark { border-bottom: 2px solid #ae8b45; }
.book-panel .done { background: #e1ebda; }
.book-panel .week-sum { margin-top: 10px; }
.book-panel .focus-edit { margin-top: 18px; padding-top: 14px; }
.book-panel summary, .parent-notes summary { cursor: pointer; padding-block: 5px; font-weight: 800; }
.focus-edit select, .focus-edit textarea { max-width: 100%; }
.ear-link { display: flex; align-items: center; gap: 16px; width: 100%; padding: 20px clamp(18px,3vw,34px); border: 1px solid #c6d8ce; border-radius: 18px; background: #e3ede3; color: var(--book-ink); text-align: left; }
.ear-link:hover { background: #dae7dc; }
.ear-link i { display: grid; place-items: center; flex: none; width: 45px; height: 45px; background: #c8dccc; border-radius: 50%; font: 1.5rem Georgia,serif; }
.ear-link b { display: block; margin: 0 0 5px; font-size: 1.4rem; }
.ear-link small { font-size: .9rem; }
.ear-link strong { margin-left: auto; font-size: 1.4rem; }
.parent-notes { margin: 18px 4px 0; font-size: .88rem; color: var(--book-muted); }
.book-foot { justify-content: space-between; gap: 16px; padding: 17px 0 23px; border-top: 1px solid var(--book-line); font-size: .77rem; color: var(--book-muted); }
.book-foot b { flex: none; font: italic 560 1.05rem var(--serif); }
.library-tools, .library-row { display: flex; align-items: center; gap: 10px; }
.library-tools { margin-top: 24px; flex-wrap: wrap; }
.library-search { display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid #a5b2a6; border-radius: 10px; background: #fff; }
.library-search span { font: 1.8rem Georgia,serif; }
.library-search input { width: min(300px,48vw); background: none; color: var(--book-ink); border: 0; min-height: 44px; font-size: 1rem; }
.fav-filter, .star-toggle { min-height: 44px; border: 1px solid var(--book-line); border-radius: 10px; color: var(--book-ink); background: #f7f7ed; font-weight: 800; }
.fav-filter { padding-inline: 14px; }
.fav-filter[aria-pressed=true], .star-toggle[aria-pressed=true] { background: #fae6ad; color: #624811; }
.catalog-count { margin-block: 16px; color: var(--book-muted); font-size: .88rem; }
.library .path-group { width: 100%; margin-bottom: 14px; }
.library .path-group summary { border-color: var(--book-line); align-items: center; }
.library .path-group h2, .library .path-group summary::after, .library .path-later summary { color: var(--book-ink); }
.library .path-count, .library .path-note { color: var(--book-muted); }
.library .path-item { background: #f3f3e9; box-shadow: none; color: var(--book-ink); border-radius: 12px; }
.library .path-item.next { box-shadow: inset 3px 0 #af8845; }
.library .path-item:hover { background: #e7edde; }
.library .path-item.soon { opacity: .8; }
.library .path-badge { background: #e2e8d8; color: var(--book-ink); }
.library .path-tag { color: #625130; }
.star-toggle { flex: none; width: 44px; font-size: 1.35rem; }
.notebook .juke { width: 100%; margin: 0; box-shadow: none; }
.notebook .juke h1 { margin-bottom: 14px; }
.notebook .juke-list { max-height: min(52vh,480px); }
.notebook :focus-visible { outline: 3px solid #91651d; outline-offset: 2px; }
@media (max-width: 700px) {
  .book-head-inner, .book-main, .book-foot { width: calc(100% - 28px); }
  .book-head-inner { flex-direction: column; align-items: stretch; gap: 6px; padding: 12px 0 7px; }
  .book-brand { align-self: center; font-size: 1.4rem; }
  .book-brand i { width: 28px; height: 28px; }
  .book-nav { justify-content: center; gap: 2px; }
  .book-nav button { padding-inline: 10px; font-size: .87rem; }
  .book-main { padding-top: 15px; }
  .daily-hero { grid-template-columns: minmax(0,1fr); gap: 22px; padding: 24px; border-radius: 19px; }
  .book-date { margin-bottom: 10px; }
  .hero-detail { margin-top: 12px; }
  .hero-actions { margin-top: 17px; }
  .mini-instrument { width: min(100%,245px); }
  .mini-sheet { padding: 6px 20px; }
  .mini-sheet svg { height: 54px; }
  .mini-white { height: 72px; }
  .book-grid { grid-template-columns: minmax(0,1fr); gap: 12px; margin-block: 12px; }
  .book-foot { align-items: start; flex-direction: column; gap: 5px; }
  .library .path-group summary { flex-wrap: wrap; }
  .library .path-item { flex-wrap: wrap; gap: 7px; }
  .library .path-tag { margin-left: auto; }
  .library-row { gap: 4px; }
}
.passage-choice { display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: .4rem 0; }
.passage-choice select { min-height: 44px; font: inherit; border: 1px solid #a8bab1; border-radius: 8px; padding: .4rem; }
.edition-details { margin-top: .8rem; color: #345446; font-size: .9rem; }
.edition-details summary { cursor: pointer; }
.edition-details a { color: inherit; text-underline-offset: .2em; }
