/* Mon agenda musical - Prototype. Styles isolés de la feuille générale Musiclic. */
/* Titre H1 de la page : structure native Musiclic (.now_page2), sans duplication dans l'agenda. */
.now_page2.am-agenda-page-heading {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* L'illustration initiale reste discrète dans l'en-tête officiel du site. */
.now_page2.am-agenda-page-heading::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(31%, 360px);
  background: linear-gradient(90deg, rgba(247,248,250,1), rgba(247,248,250,.5) 45%, rgba(247,248,250,.1)), url("../images/banniere-agenda-musical.webp") center / cover no-repeat;
  opacity: .34;
  pointer-events: none;
}
.now_page2.am-agenda-page-heading .now_page2_resize {
  position: relative;
  z-index: 1;
}
@media (max-width: 720px) {
  .now_page2.am-agenda-page-heading::before { display: none; }
}


#am-app {
  --am-blue: #2466b6;
  --am-ink: #142d53;
  --am-text: #26364d;
  --am-muted: #64748b;
  --am-line: #e4eaf2;
  --am-surface: #f6f9fe;
  --am-instrument: #219565;
  --am-solfege: #2677cd;
  --am-cours: #8452c6;
  --am-detente: #d68026;
  box-sizing: border-box;
  font: 16px/1.50 "Segoe UI", Arial, sans-serif;
  color: var(--am-text);
  width: 100%;
  max-width: 1380px;
  margin: 12px auto 24px;
  background: #fff;
  border: 1px solid var(--am-line);
  border-radius: 17px;
  overflow: hidden;
  text-align: left;
}
#am-app *, #am-app *::before, #am-app *::after { box-sizing: border-box; }
#am-app button, #am-app input, #am-app select { font: inherit; }
#am-app button { cursor: pointer; }
#am-app button:disabled { opacity: .5; cursor: not-allowed; }
#am-app button:focus-visible, #am-app input:focus-visible, #am-app select:focus-visible {
  outline: 3px solid #90b9f1; outline-offset: 2px;
}
#am-app h2, #am-app h3, #am-app h4, #am-app p { margin-top: 0; }
#am-app h2, #am-app h3, #am-app h4 { font-family: inherit; color: var(--am-ink); text-transform: none; letter-spacing: normal; }
#am-app [hidden] { display: none !important; }
#am-app .am-layout { display: grid; grid-template-columns: 198px minmax(0,1fr); }
#am-app .am-sidebar { padding: 16px 12px 20px; background: #f8fafe; border-right: 1px solid var(--am-line); min-width: 0; }
#am-app .am-side-nav { display: grid; gap: 4px; }
#am-app .am-nav-link {
  text-align: left; width: 100%; border: 0; border-radius: 8px; background: transparent;
  color: #243753; font-size: 15px; font-weight: 600; min-height: 46px; padding: 10px 10px;
  display: flex; align-items: center; gap: 11px; line-height: 1.3;
}
#am-app .am-nav-link > span { display: inline-flex; align-items: center; justify-content: center; font-size: 22px; width: 22px; flex: 0 0 22px; color: #486389; font-family: Arial, sans-serif; }
#am-app .am-nav-link:hover { background: #eaf1fb; }
#am-app .am-nav-link.is-active { background: #dfeafa; color: #1455aa; }
#am-app .am-nav-link.is-active > span { color: var(--am-blue); }
#am-app .am-side-divider { margin: 16px 12px; border-top: 1px solid #dce5f0; }
#am-app .am-workspace { min-width: 0; padding: 16px 20px 22px; }
#am-app .am-mobile-nav { display: none; }
#am-app .am-dashboard-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; align-items: start; }
#am-app .am-dashboard-side { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; min-width: 0; }
#am-app .am-panel { min-width: 0; padding: 16px 18px; background: #fff; border: 1px solid var(--am-line); border-radius: 11px; }
#am-app .am-compact-panel { padding: 15px 17px; }
#am-app .am-panel-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--am-line); padding-bottom: 10px; margin-bottom: 4px; }
#am-app .am-simple-titlebar { border-bottom: 0; margin-bottom: 6px; padding-bottom: 0; }

/* Tableau de bord : mêmes en-têtes sobres que les rubriques internes.
   Les trois sections occupent toute la largeur, sans icônes décoratives. */
#am-app .am-dashboard-heading {
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}
#am-app .am-dashboard-heading h3 {
  margin: 0 0 3px;
  font-size: 23px;
  line-height: 1.3;
  font-weight: 750;
}
#am-app .am-dashboard-heading p {
  margin: 0;
  font-size: 14.5px;
  color: var(--am-muted);
}
#am-app .am-dashboard-heading .am-week-title { min-width: 0; flex: 1 1 auto; }
#am-app .am-dashboard-heading .am-week-controls { flex: 0 0 auto; }
#am-app .am-dashboard-side .am-dashboard-heading { margin-bottom: 11px; }
#am-app .am-dashboard-heading .am-inline-link { margin-left: auto; }

#am-app .am-panel h3 { margin: 0; font-size: 20px; font-weight: 750; line-height: 1.25; }
#am-app .am-panel .am-simple-titlebar h3 { font-size: 17px; }
#am-app .am-title-icon { display: inline-block; font-size: 21px; vertical-align: -1px; color: var(--am-blue); margin-right: 4px; }
#am-app .am-title-icon.am-violet { color: var(--am-cours); }
#am-app .am-muted { color: var(--am-muted); font-size: 14px; margin: 4px 0 0; }
#am-app .am-week-controls { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
#am-app .am-icon-button { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; padding: 0; color: #335783; background: #fff; border: 1px solid #d9e3ef; border-radius: 8px; height: 37px; min-width: 37px; font-size: 24px; line-height: 1; }
#am-app .am-icon-button:hover, #am-app .am-text-button:hover { background: #eff5fc; }
#am-app .am-text-button { color: #2b5b94; background: #fff; border: 1px solid #d9e3ef; border-radius: 8px; padding: 6px 9px; min-height: 37px; font-size: 13.5px; font-weight: 650; }
#am-app .am-week-list { width: 100%; }
#am-app .am-day-group { display: grid; grid-template-columns: 73px minmax(0,1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid #eaf0f5; }
#am-app .am-day-label { color: #2d456b; background: #f1f5fb; border-radius: 7px; align-self: start; text-align: center; padding: 7px 3px; font-size: 14px; font-weight: 700; }
#am-app .am-day-group.am-day-today .am-day-label { background: #e0edfd; color: #1456a5; }
#am-app .am-day-items { display: grid; gap: 8px; min-width: 0; }
#am-app .am-session-row { display: grid; grid-template-columns: 25px minmax(0,1fr) auto 26px 29px; column-gap: 7px; align-items: center; min-height: 30px; }
#am-app .am-session-icon { align-self: start; text-align: center; color: #3c78b1; font-size: 17px; padding-top: 2px; }
#am-app .am-session-title { min-width: 0; color: #25364c; font-weight: 610; line-height: 1.33; font-size: 14.5px; word-break: break-word; }
#am-app .am-session-row.is-done .am-session-title { color: #55697c; }
#am-app .am-session-meta { display: block; font-size: 13.5px; font-weight: 400; color: #75869a; margin-top: 2px; }
#am-app .am-session-duration { color: #50627d; white-space: nowrap; font-size: 13.5px; }
#am-app .am-session-check { width: 22px; height: 22px; accent-color: #26976a; justify-self: center; cursor: pointer; }
#am-app .am-session-row { position: relative; }
#am-app .am-row-options { justify-self: center; align-self: center; position: relative; z-index: 3; }
#am-app .am-row-options summary { display: flex; align-items: center; justify-content: center; list-style: none; min-height: 28px; min-width: 25px; font-size: 21px; line-height: 1; color: #66809f; border-radius: 5px; cursor: pointer; }
#am-app .am-row-options summary::-webkit-details-marker { display: none; }
#am-app .am-row-options summary:hover { background: #edf4fc; }
#am-app .am-row-options[open] { z-index: 20; }
#am-app .am-options-menu { position: absolute; z-index: 30; top: 29px; right: 0; width: 175px; display: grid; padding: 5px; background: #fff; border: 1px solid #ccd9e8; border-radius: 7px; box-shadow: 0 8px 20px rgba(28,58,91,.13); }
#am-app .am-options-menu button { padding: 9px; border: 0; border-radius: 4px; background: transparent; color: #2f5d94; text-align: left; font-size: 14px; }
#am-app .am-options-menu button:hover { background: #edf4fc; }
#am-app .am-row-secondary { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 9px; align-items: center; justify-content: flex-start; margin-top: 3px; }
#am-app .am-mini-action { background: transparent; border: 0; padding: 3px 2px; min-height: 28px; color: #3c6fa7; font-size: 13.5px; font-weight: 650; }
#am-app .am-mini-action:hover { text-decoration: underline; }
#am-app .am-duration-adjust { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #5b728f; }
#am-app .am-duration-adjust button { border: 1px solid #d3e2ef; background: #f8fbfe; border-radius: 5px; min-width: 32px; min-height: 30px; color: #235b98; font-weight: 800; padding: 2px; }
#am-app .am-no-session { color: #8a98a9; font-size: 14.5px; padding: 6px 0; }
#am-app .am-week-actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: space-between; padding-top: 16px; }
#am-app .am-button { text-decoration: none !important; border-radius: 8px; border: 1px solid transparent; min-height: 42px; padding: 8px 11px; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 7px; line-height: 1.25; }
#am-app .am-button-light { background: #f3f7fd; border-color: #d9e6f5; color: #215eaa; }
#am-app .am-button-outline { background: #fff; border-color: #b6c9e2; color: #245a9d; }
#am-app .am-button-primary { background: #2369be; border-color: #2369be; color: #fff; }
#am-app .am-button-primary:hover { background: #1355a6; }
#am-app .am-button-outline:hover, #am-app .am-button-light:hover { background: #eaf2fc; }
#am-app .am-inline-link { border: 0; padding: 2px 0; background: transparent; color: #2766ae; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
#am-app .am-inline-link:hover { text-decoration: underline; }
#am-app .am-goals-preview { display: grid; gap: 2px; }
#am-app .am-goal-preview { display: grid; grid-template-columns: 50px minmax(0,1fr); gap: 11px; padding: 8px 0; border-bottom: 1px solid #edf1f5; }
#am-app .am-goal-preview:last-child { border-bottom: none; }
#am-app .am-goal-datebox { background: #f4e9fb; color: #7b43b6; border-radius: 7px; padding: 5px 2px; text-align: center; font-size: 14px; line-height: 1.2; }
#am-app .am-goal-datebox strong { display: block; font-size: 17px; }
#am-app .am-goal-title { display: block; color: var(--am-ink); font-size: 14.5px; font-weight: 700; line-height: 1.3; }
#am-app .am-goal-info { color: #718199; font-size: 13px; margin-top: 3px; }
#am-app .am-stats-keyline { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 11px 0; }
#am-app .am-stats-keyline strong { font-size: 27px; font-weight: 800; color: #15704f; }
#am-app .am-stats-keyline span { color: #556a83; font-size: 14px; }
#am-app .am-meter { display: flex; width: 100%; height: 8px; gap: 2px; background: #e8edf4; border-radius: 999px; overflow: hidden; }
#am-app .am-meter span { height: 100%; display: block; }
#am-app .am-smallprint { font-size: 13px; color: #8995a6; margin: 8px 0 0; }
#am-app .am-advice { border-left: 3px solid #e4ab52; background: #fff9f0; border-radius: 4px 8px 8px 4px; padding: 13px 15px; font-size: 14px; }
#am-app .am-advice-heading { font-size: 15px; color: #76562c; font-weight: 750; margin-bottom: 6px; }
#am-app .am-advice-heading span { color: #b97824; font-size: 17px; }
#am-app .am-advice p { color: #5e554b; margin: 0; line-height: 1.55; }
#am-app .am-screen { min-height: 320px; }
#am-app .am-page-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 2px 0 17px; }
#am-app .am-page-heading h3 { margin: 0 0 3px; font-size: 23px; }
#am-app .am-page-heading p { margin: 0; color: var(--am-muted); font-size: 14.5px; }
#am-app .am-full-panel { padding: 16px 21px; }
#am-app .am-week-list-full .am-day-group { grid-template-columns: 86px minmax(0,1fr); padding: 12px 0; }
#am-app .am-week-list-full .am-session-row { grid-template-columns: 30px minmax(0,1fr) auto 28px 30px; }
#am-app .am-week-list-full .am-session-title { font-size: 16px; }
#am-app .am-bottom-note { font-size: 14px; color: #718199; margin: 15px 0; line-height: 1.55; }
#am-app .am-goal-list { display: grid; gap: 11px; }
#am-app .am-goal-card { border: 1px solid var(--am-line); border-left: 3px solid #9b72cf; border-radius: 7px; padding: 14px 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 13px; }
#am-app .am-goal-card h4 { font-size: 16px; margin: 0 0 3px; }
#am-app .am-goal-card p { margin: 3px 0; color: var(--am-muted); font-size: 14px; }
#am-app .am-goal-card-actions { display: flex; flex-wrap: wrap; gap: 7px; }
#am-app .am-empty-state { padding: 22px 12px; color: #64748b; text-align: center; }
#am-app .am-activity-total { display: flex; gap: 9px; flex-wrap: wrap; align-items: baseline; margin-bottom: 17px; }
#am-app .am-activity-total > span:first-child { font-size: 36px; color: #14664c; font-weight: 800; }
#am-app .am-activity-total-label { font-size: 16px; color: #687d95; }
#am-app .am-activity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; align-items: start; }
#am-app .am-activity-grid h3 { margin: 0 0 17px; font-size: 17px; }
#am-app .am-breakdown { display: grid; gap: 15px; }
#am-app .am-breakdown-row { display: grid; gap: 5px; }
#am-app .am-breakdown-label { display: flex; justify-content: space-between; gap: 10px; color: #4c627b; font-size: 14px; }
#am-app .am-breakdown-label b { color: var(--am-ink); }
#am-app .am-breakdown-track { height: 8px; background: #ecf1f7; border-radius: 8px; overflow: hidden; }
#am-app .am-breakdown-fill { height: 100%; border-radius: 8px; }
#am-app .am-month-bars { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 11px; align-items: end; height: 190px; }
#am-app .am-month-col { display: grid; gap: 6px; align-items: end; text-align: center; height: 100%; grid-template-rows: 20px 1fr 18px; color: var(--am-muted); font-size: 13px; }
#am-app .am-month-col strong { font-weight: 650; color: var(--am-ink); font-size: 13px; }
#am-app .am-month-track { height: 100%; display: flex; align-items: end; justify-content: center; }
#am-app .am-month-fill { width: min(100%,48px); min-height: 2px; background: linear-gradient(180deg,#5294d7,#2763b5); border-radius: 5px 5px 0 0; }
#am-app .am-form-section { margin: 0 0 14px; }
#am-app .am-form-section h3 { font-size: 17px; margin: 0 0 13px; }
#am-app .am-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
#am-app label { display: grid; gap: 5px; min-width: 0; color: #3d536f; font-size: 14px; font-weight: 700; }
#am-app input[type=text], #am-app input[type=date], #am-app input[type=time], #am-app select { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #cbd9e7; border-radius: 6px; color: #263b57; padding: 8px 10px; font-size: 16px; background: #fff; }
#am-app input[type=time], #am-app input[type=date] { padding-right: 5px; }
#am-app .am-form-action { align-self: end; }
#am-app .am-block-form { display: grid; grid-template-columns: minmax(110px,1fr) minmax(90px,120px) minmax(90px,120px) auto; gap: 10px; align-items: end; }
#am-app .am-blocked-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
#am-app .am-blocked-tag { display: inline-flex; align-items: center; gap: 8px; background: #f0f4fa; border-radius: 5px; font-size: 14px; color: #38506e; padding: 4px 6px 4px 10px; }
#am-app .am-blocked-tag button { border: 0; background: transparent; color: #506d91; font-size: 19px; min-width: 26px; min-height: 25px; }
#am-app .am-advice-list { display: grid; gap: 14px; }
#am-app .am-advice-entry { border-bottom: 1px solid var(--am-line); padding: 6px 3px 14px; }
#am-app .am-advice-entry h4 { font-size: 17px; margin: 0 0 5px; }
#am-app .am-advice-entry p { font-size: 15px; color: #54667f; margin: 0; line-height: 1.6; }
#am-app .am-prototype-disclaimer { font-size: 13px; line-height: 1.6; color: #7b8a9d; border-top: 1px solid #e8edf5; padding-top: 13px; margin-top: 20px; }
#am-app .am-prototype-controls { display: flex; justify-content: flex-end; padding-top: 3px; }
#am-app .am-feedback { padding: 9px 12px; margin: 0 0 12px; border-radius: 6px; background: #e8f5eb; color: #215d3b; font-size: 14px; }
#am-app .am-feedback.is-warning { background: #fff4df; color: #73521d; }
#am-app .am-dialog { width: min(95%, 540px); border: 1px solid #dce6f2; background: #fff; border-radius: 12px; padding: 0; color: var(--am-text); box-shadow: 0 14px 60px rgba(22,40,69,.15); }
#am-app .am-dialog::backdrop { background: rgba(17,34,60,.42); }
#am-app .am-dialog-inner { padding: 22px; display: grid; gap: 13px; }
#am-app .am-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 9px; }
#am-app .am-dialog-head h3 { font-size: 20px; margin: 0; }
#am-app .am-close-dialog { background: #f0f4fa; border: 0; border-radius: 6px; width: 32px; height: 32px; font-size: 24px; color: #4e6580; }
#am-app .am-dialog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
#am-app .am-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 5px; }
#am-app .am-form-warning { background: #fff6e5; color: #7a592e; padding: 9px 11px; font-size: 14px; border-left: 3px solid #d29c44; margin: 0; }
@media (max-width: 1080px) {
  #am-app .am-layout { grid-template-columns: 170px minmax(0,1fr); }
  #am-app .am-sidebar { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 720px) {
  #am-app { margin: 8px auto 22px; border-radius: 9px; }
  #am-app .am-layout { display: block; }
  #am-app .am-sidebar { display: none; }
  #am-app .am-workspace { padding: 13px 12px 18px; }
  #am-app .am-mobile-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; padding: 7px 0 12px; margin-bottom: 2px; }
  #am-app .am-mobile-link { border: 0; flex: 0 0 auto; background: transparent; color: #59718e; font-size: 14px; padding: 8px 11px; border-bottom: 2px solid transparent; white-space: nowrap; }
  #am-app .am-mobile-link.is-active { border-bottom-color: #2166b9; color: #1859aa; font-weight: 750; }
  #am-app .am-activity-grid { grid-template-columns: 1fr; }
  #am-app .am-panel { padding: 13px 11px; }
  #am-app .am-panel h3 { font-size: 17px; }
  #am-app .am-dashboard-heading h3 { font-size: 21px; }
  #am-app .am-week-controls { gap: 4px; }
  #am-app .am-today { display: none; }
  #am-app .am-week-actions { gap: 8px; }
  #am-app .am-button { font-size: 13.5px; }
  #am-app .am-day-group { grid-template-columns: 62px minmax(0,1fr); gap: 7px; }
  #am-app .am-day-label { font-size: 13px; }
  #am-app .am-session-row, #am-app .am-week-list-full .am-session-row { grid-template-columns: 23px minmax(0,1fr) 27px 27px; gap: 5px; }
  #am-app .am-session-icon { font-size: 16px; }
  #am-app .am-session-duration { grid-column: 2; grid-row: 2; }
  #am-app .am-session-check { grid-column: 3; grid-row: 1 / 3; }
  #am-app .am-row-options { grid-column: 4; grid-row: 1 / 3; }
  #am-app .am-row-secondary { grid-column: 2 / -1; }
  #am-app .am-week-list-full .am-day-group { grid-template-columns: 67px minmax(0,1fr); }
  #am-app .am-week-list-full .am-session-title { font-size: 14.5px; }
  #am-app .am-block-form { grid-template-columns: repeat(3,minmax(0,1fr)); }
  #am-app .am-block-form .am-form-action { grid-column: 1/-1; }
  #am-app .am-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  #am-app .am-dashboard-heading { align-items: flex-start; }
  #am-app .am-dashboard-heading .am-week-controls { flex-wrap: nowrap; }
  #am-app .am-week-actions .am-button { flex: 1 1 100%; }
  #am-app .am-dialog-grid { grid-template-columns: 1fr; }
  #am-app .am-block-form { grid-template-columns: 1fr 1fr; }
  #am-app .am-block-form label:first-child { grid-column: 1/-1; }
  #am-app .am-dialog-inner { padding: 15px; }
  #am-app .am-goal-card { flex-direction: column; }
}
/* Conteneurs Musiclic plus étroits : adapter aussi en fonction de la largeur réelle de l'outil. */
@supports (container-type: inline-size) {
  #am-app { container-type: inline-size; }
  @container (max-width: 780px) {
    #am-app .am-activity-grid { grid-template-columns: 1fr; }
  }
}


/* V1.6 - Tableau de bord uniquement : sections sans cadres imbriqués.
   Séparations horizontales discrètes entre Ma semaine, Mes prochaines
   échéances et Mon activité. Les autres rubriques restent inchangées. */
#am-app .am-screen[data-screen="dashboard"] .am-dashboard-grid,
#am-app .am-screen[data-screen="dashboard"] .am-dashboard-side {
  gap: 0;
}
#am-app .am-screen[data-screen="dashboard"] .am-dashboard-grid > .am-week-panel,
#am-app .am-screen[data-screen="dashboard"] .am-dashboard-side > .am-panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 4px 0 22px;
}
#am-app .am-screen[data-screen="dashboard"] .am-dashboard-side > .am-panel {
  border-top: 1px solid var(--am-line);
  padding-top: 22px;
}
#am-app .am-screen[data-screen="dashboard"] .am-dashboard-side > .am-stats-preview {
  padding-bottom: 7px;
}
#am-app .am-screen[data-screen="dashboard"] .am-dashboard-side > .am-advice {
  margin-top: 16px;
}


/* V1.7 - Profil musical : multi-instruments, recherche, saisie facultative. */
#am-app .am-profile-instruments {
  padding: 4px 0 23px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--am-line);
}
#am-app .am-profile-instruments > h3 { font-size: 20px; margin: 0 0 5px; }
#am-app .am-profile-instruments > .am-muted { font-size: 15px; margin: 0 0 16px; }
#am-app .am-selected-instruments { display: grid; gap: 0; }
#am-app .am-selected-instrument {
  display: grid;
  grid-template-columns: minmax(145px, 1.3fr) minmax(145px, 1fr) auto;
  gap: 14px; align-items: center;
  padding: 11px 2px;
  border-bottom: 1px solid var(--am-line);
}
#am-app .am-selected-instrument:first-child { border-top: 1px solid var(--am-line); }
#am-app .am-instrument-identity { display: flex; flex-wrap: wrap; align-items: center; column-gap: 15px; row-gap: 4px; min-width: 0; }
#am-app .am-instrument-identity strong { color: var(--am-ink); font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
#am-app label.am-instrument-primary { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; color: #526984; }
#am-app .am-instrument-primary input { width: 17px; height: 17px; margin: 0; accent-color: var(--am-blue); }
#am-app label.am-instrument-level { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
#am-app .am-instrument-level select { flex: 1 1 auto; min-width: 0; }
#am-app .am-instrument-remove { padding: 8px 6px; border: 0; background: transparent; color: #355e94; font-size: 14px; text-decoration: underline; }
#am-app .am-instrument-remove:hover { color: #143d77; }
#am-app .am-no-instruments { padding: 12px 0 18px; }
#am-app .am-instrument-picker { padding-top: 19px; }
#am-app .am-instrument-picker h4 { font-size: 18px; margin: 0 0 5px; }
#am-app .am-instrument-picker .am-muted { margin: 0 0 12px; }
#am-app .am-instrument-favorites, #am-app .am-instrument-results-grid { display: flex; flex-wrap: wrap; gap: 9px; }
#am-app .am-instrument-choice {
  background: #f7faff; color: #244a78; border: 1px solid #d9e5f3;
  border-radius: 7px; padding: 8px 12px;
  font-size: 15px; line-height: 1.35; min-height: 43px;
  transition: background-color .12s ease;
}
#am-app .am-instrument-choice:not(:disabled):hover { background: #e6f1ff; border-color: #aeccea; }
#am-app .am-instrument-choice.is-selected { background: #e8f4ec; border-color: #badbc5; color: #22623e; opacity: 1; }
#am-app .am-instrument-search-label { display: block; margin: 22px 0 8px; font-size: 15px; }
#am-app input[type=search].am-instrument-search { font-size: 16px; width: min(100%, 540px); min-height: 46px; border: 1px solid #cbd9e7; border-radius: 7px; padding: 9px 12px; background: #fff; color: #263b57; }
#am-app .am-picker-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px 25px; margin: 12px 0 0; }
#am-app .am-instrument-results { margin-top: 15px; padding: 4px 0 0; }
#am-app .am-instrument-family { padding: 9px 0 16px; border-top: 1px solid var(--am-line); }
#am-app .am-instrument-family h5 { font-size: 15px; margin: 0 0 11px; color: #566c88; font-weight: 700; }
#am-app .am-profile-instruments .am-bottom-note { margin: 16px 0 0; }
@media (max-width: 880px) {
  #am-app .am-selected-instrument { grid-template-columns: minmax(0,1fr) minmax(145px,1fr); }
  #am-app .am-selected-instrument .am-instrument-remove { grid-column: 2; justify-self: end; padding: 1px 5px 3px; }
}
@media (max-width: 720px) {
  #am-app .am-selected-instrument { grid-template-columns: minmax(0,1fr); gap: 8px; }
  #am-app .am-selected-instrument .am-instrument-remove { grid-column: auto; justify-self: start; min-height: 40px; }
  #am-app .am-instrument-choice { font-size: 15px; }
  #am-app label.am-instrument-level { max-width: 410px; }
  #am-app .am-picker-actions { gap: 10px 16px; }
}

/* V1.8 - Profil : les contraintes horaires ne sont plus dans une carte encadree.
   Seul le separateur horizontal apres Mes instruments structure la lecture. */
#am-app .am-screen[data-screen="profil"] .am-profile-unavailability {
  margin: 0 0 16px;
  padding: 0 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#am-app .am-screen[data-screen="profil"] .am-profile-unavailability h3 {
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 11px;
}
#am-app .am-screen[data-screen="profil"] .am-profile-unavailability > .am-muted {
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 15px;
}

/* V1.9 - Mon agenda : semaine détaillée + mois compact, sans nouvelle carte encadrée. */
#am-app .am-screen[data-screen="agenda"] .am-agenda-view-switch {
  display: inline-flex; align-items: center; gap: 3px; margin: 0 0 16px;
  padding: 3px; background: #f2f6fb; border-radius: 8px;
}
#am-app .am-view-button {
  border: 1px solid transparent; border-radius: 6px; background: transparent;
  min-height: 40px; min-width: 93px; padding: 6px 14px;
  color: #3e5a7b; font-size: 15px; font-weight: 650;
}
#am-app .am-view-button.is-active { color: #1558a2; background: #fff; border-color: #d5e2f1; }
#am-app .am-view-button:hover:not(.is-active) { background: #e6eef9; }
#am-app .am-screen[data-screen="agenda"] .am-agenda-panel {
  border: 0; border-radius: 0; padding: 0; box-shadow: none; background: transparent;
}
#am-app .am-screen[data-screen="agenda"] .am-agenda-titlebar {
  padding: 0 0 16px; margin: 0 0 7px; align-items: center; border-bottom: 1px solid var(--am-line);
}
#am-app .am-screen[data-screen="agenda"] .am-agenda-titlebar h3 { font-size: 22px; }
#am-app .am-screen[data-screen="agenda"] .am-agenda-titlebar .am-muted { font-size: 15px; margin: 4px 0 0; }
#am-app .am-month-instruction { color: #64748b; font-size: 15px; margin: 10px 0 18px; }
#am-app .am-month-calendar { width: 100%; min-width: 0; }
#am-app .am-month-weekdays, #am-app .am-month-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
#am-app .am-month-weekdays { text-align: center; color: #506580; font-size: 14px; font-weight: 700; padding-bottom: 8px; }
#am-app .am-month-weekdays > span { min-width: 0; }
#am-app .am-month-grid { border-top: 1px solid var(--am-line); border-left: 1px solid var(--am-line); }
#am-app .am-month-day {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
  min-width: 0; min-height: 67px; border: 0; border-right: 1px solid var(--am-line);
  border-bottom: 1px solid var(--am-line); border-radius: 0;
  background: #fff; color: #243b59; padding: 9px 9px 7px; text-align: left;
}
#am-app .am-month-day:hover { background: #eff6ff; }
#am-app .am-month-day.is-other-month { background: #f9fbfd; color: #9aaabd; }
#am-app .am-month-day.is-today .am-month-number { font-weight: 850; color: #1c61ad; }
#am-app .am-month-day.is-selected { background: #e8f2ff; outline: 2px solid #3c83cc; outline-offset: -2px; }
#am-app .am-month-day:focus-visible { position: relative; z-index: 2; }
#am-app .am-month-day-top { display: flex; justify-content: space-between; align-items: start; gap: 2px; min-width: 0; }
#am-app .am-month-number { font-size: 16px; line-height: 1.3; }
#am-app .am-month-count { font-size: 12px; font-weight: 800; color: #49668b; background: #f0f5fb; border-radius: 5px; padding: 0 5px; }
#am-app .am-month-dots { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; min-height: 8px; }
#am-app .am-month-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
#am-app .am-month-dot.is-done { outline: 1px solid rgba(0,0,0,.18); outline-offset: 1px; }
#am-app .am-month-selection { border-top: 1px solid var(--am-line); margin-top: 25px; padding-top: 20px; }
#am-app .am-month-selection-heading { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
#am-app .am-month-selection-heading h4 { font-size: 19px; font-weight: 750; margin: 0; }
#am-app .am-month-selection .am-day-group { border-top: 1px solid #edf1f6; }
#am-app .am-month-selection .am-day-group .am-day-label { align-self: start; }
#am-app .am-dialog .am-dialog-grid > label { min-width: 0; }
#am-app #am-session-repeat-note { color: #546c89; font-size: 14px; margin: 0; }
@media (max-width: 720px) {
  #am-app .am-month-day { min-height: 55px; padding: 6px 4px; gap: 6px; }
  #am-app .am-month-number { font-size: 14px; }
  #am-app .am-month-weekdays { font-size: 12.5px; }
  #am-app .am-month-count { font-size: 10px; padding: 0 4px; }
  #am-app .am-month-dots { gap: 3px; }
  #am-app .am-month-dot { width: 6px; height: 6px; }
  #am-app .am-agenda-titlebar .am-week-controls { flex-wrap: nowrap; }
  #am-app .am-month-selection-heading h4 { font-size: 17px; }
}
@media (max-width: 420px) {
  #am-app .am-month-instruction { font-size: 14px; }
  #am-app .am-screen[data-screen="agenda"] .am-agenda-titlebar h3 { font-size: 19px; }
  #am-app .am-screen[data-screen="agenda"] .am-agenda-titlebar .am-muted { font-size: 14px; }
  #am-app .am-month-day { min-height: 57px; padding: 7px 5px; }
  #am-app .am-month-number { font-size: 16px; }
  /* Le compteur n'apparaît que pour 4 séances ou plus, même sur mobile. */
  #am-app .am-month-day .am-month-count { display: inline-block; font-size: 10px; padding: 0 3px; }
  #am-app .am-month-day-top { gap: 0; }
  #am-app .am-week-controls .am-text-button { font-size: 12px; min-height: 37px; padding: 5px 6px; }
}

/* V1.9.2 - Formulaire "Ajouter / modifier une activité" : typographie plus légère.
   Ces règles ciblent exclusivement cette fenêtre ; le reste de l'agenda est inchangé. */
#am-app #am-session-dialog .am-dialog-head h3 {
  font-size: 20px;
  font-weight: 600;
}
#am-app #am-session-dialog label {
  font-size: 14.5px;
  font-weight: 400;
}
#am-app #am-session-dialog input[type="text"],
#am-app #am-session-dialog input[type="date"],
#am-app #am-session-dialog input[type="time"],
#am-app #am-session-dialog select {
  font-size: 15.5px;
  font-weight: 400;
}
#am-app #am-session-dialog input::placeholder {
  font-weight: 400;
}
#am-app #am-session-dialog .am-button {
  font-weight: 600;
}
@media (max-width: 720px) {
  /* Sur smartphone, 16px évite le zoom automatique et maintient la lisibilité. */
  #am-app #am-session-dialog input[type="text"],
  #am-app #am-session-dialog input[type="date"],
  #am-app #am-session-dialog input[type="time"],
  #am-app #am-session-dialog select { font-size: 16px; }
}


/* V1.10 : Mes objectifs. Liste sans cadres et étapes consultables à la demande. */
#am-app [data-screen="objectifs"] .am-goal-list { display: block; }
#am-app [data-screen="objectifs"] .am-goal-entry {
  border: 0; border-bottom: 1px solid var(--am-line); border-radius: 0;
  padding: 17px 0 18px; background: transparent;
}
#am-app [data-screen="objectifs"] .am-goal-entry:first-child { padding-top: 5px; }
#am-app [data-screen="objectifs"] .am-goal-entry-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
}
#am-app [data-screen="objectifs"] .am-goal-entry-main { flex: 1 1 260px; min-width: 0; }
#am-app [data-screen="objectifs"] .am-goal-entry h4 {
  font-size: 18px; line-height: 1.35; font-weight: 650; margin: 0 0 6px;
}
#am-app [data-screen="objectifs"] .am-goal-entry p {
  color: #64748b; font-size: 15px; line-height: 1.5; margin: 0 0 4px;
}
#am-app [data-screen="objectifs"] .am-goal-entry .am-goal-consolidation { color: #6d5a84; }
#am-app [data-screen="objectifs"] .am-goal-entry-actions {
  display: flex; flex-wrap: wrap; gap: 7px 13px; align-items: center;
}
#am-app [data-screen="objectifs"] .am-goal-entry-actions .am-button {
  min-height: 38px; padding: 7px 11px; font-size: 14px; font-weight: 500;
}
#am-app [data-screen="objectifs"] .am-goal-action-link,
#am-app [data-screen="objectifs"] .am-goal-step-actions button {
  font-size: 14px; font-weight: 500; border: 0; background: transparent;
  color: #225eaa; padding: 7px 3px; min-height: 36px;
}
#am-app [data-screen="objectifs"] .am-goal-steps { margin-top: 9px; }
#am-app [data-screen="objectifs"] .am-goal-steps > summary {
  display: inline-block; cursor: pointer; list-style: none; font-size: 14.5px;
  color: #2764aa; padding: 6px 2px 6px 0; font-weight: 500;
}
#am-app [data-screen="objectifs"] .am-goal-steps > summary::before { content: '▸'; display: inline-block; width: 17px; }
#am-app [data-screen="objectifs"] .am-goal-steps[open] > summary::before { content: '▾'; }
#am-app [data-screen="objectifs"] .am-goal-steps > summary::-webkit-details-marker { display: none; }
#am-app [data-screen="objectifs"] .am-goal-steps-inner { padding: 6px 0 0 18px; }
#am-app [data-screen="objectifs"] .am-goal-steps-inner .am-muted { font-size: 14px; margin: 0 0 9px; }
#am-app [data-screen="objectifs"] .am-goal-step {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  border-bottom: 1px solid #edf1f6; padding: 7px 0;
}
#am-app [data-screen="objectifs"] .am-goal-step-check {
  display: flex; flex: 1 1 auto; gap: 10px; align-items: flex-start;
  font-size: 15px; font-weight: 400; line-height: 1.45; color: var(--am-text); min-width: 0;
}
#am-app [data-screen="objectifs"] .am-goal-step-check input {
  width: 18px; height: 18px; margin: 3px 0 0; flex: 0 0 18px; accent-color: #25956d;
}
#am-app [data-screen="objectifs"] .am-goal-step-check small { display: block; font-size: 13px; color: #718199; }
#am-app [data-screen="objectifs"] .am-goal-step.is-done .am-goal-step-check span { color: #697b8b; text-decoration: line-through; text-decoration-color: #b7c2cf; }
#am-app [data-screen="objectifs"] .am-goal-step-actions { display: flex; flex-wrap: wrap; flex: 0 0 auto; gap: 7px; }
#am-app [data-screen="objectifs"] .am-goal-add-stage {
  border: 1px solid #d6e3f3; background: #f5f8fd; color: #205fae; border-radius: 6px;
  min-height: 38px; padding: 7px 12px; font-size: 14px; font-weight: 500; margin-top: 12px;
}
#am-app [data-screen="objectifs"] .am-goal-subheading {
  color: #566d89; font-size: 17px; font-weight: 600; margin: 27px 0 4px;
}
#am-app [data-screen="objectifs"] .am-goal-entry.is-complete h4 { color: #5e708a; }
#am-app #am-goal-dialog .am-dialog-head h3,
#am-app #am-stage-dialog .am-dialog-head h3 { font-size: 20px; font-weight: 600; }
#am-app #am-goal-dialog label,
#am-app #am-stage-dialog label { font-weight: 400; font-size: 14.5px; }
#am-app #am-goal-dialog input,
#am-app #am-goal-dialog select,
#am-app #am-stage-dialog input { font-size: 16px; font-weight: 400; }
#am-app #am-goal-dialog .am-button,
#am-app #am-stage-dialog .am-button { font-weight: 550; }
#am-app .am-goal-form-help { font-size: 14px; color: #718199; line-height: 1.5; margin: 0; }
@media (max-width: 550px) {
  #am-app [data-screen="objectifs"] .am-goal-entry-top { gap: 6px; }
  #am-app [data-screen="objectifs"] .am-goal-entry-main { flex-basis: 100%; }
  #am-app [data-screen="objectifs"] .am-goal-entry-actions { width: 100%; }
  #am-app [data-screen="objectifs"] .am-goal-step { align-items: flex-start; flex-wrap: wrap; }
  #am-app [data-screen="objectifs"] .am-goal-step-actions { margin-left: 28px; }
  #am-app [data-screen="objectifs"] .am-goal-entry h4 { font-size: 17px; }
}


/* V1.11 - Mon activité : sections en pleine largeur et séparateur discret.
   Ce réglage ne concerne pas le tableau de bord et ne modifie aucun calcul. */
#am-app .am-screen[data-screen="activite"] .am-activity-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
#am-app .am-screen[data-screen="activite"] .am-activity-grid > .am-panel {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 13px 0 25px;
}
#am-app .am-screen[data-screen="activite"] .am-activity-grid > .am-panel + .am-panel {
  border-top: 1px solid var(--am-line);
  padding-top: 26px;
  margin-top: 7px;
}
#am-app .am-screen[data-screen="activite"] .am-activity-grid h3 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 22px;
}
#am-app .am-screen[data-screen="activite"] .am-breakdown {
  gap: 18px;
}
#am-app .am-screen[data-screen="activite"] .am-breakdown-label {
  font-size: 16px;
  line-height: 1.5;
}
#am-app .am-screen[data-screen="activite"] .am-breakdown-label b {
  font-weight: 600;
  white-space: nowrap;
}
#am-app .am-screen[data-screen="activite"] .am-breakdown-track {
  height: 10px;
}
#am-app .am-screen[data-screen="activite"] .am-month-bars {
  height: 255px;
  gap: clamp(8px, 2vw, 25px);
  margin: 7px 0 10px;
}
#am-app .am-screen[data-screen="activite"] .am-month-col {
  grid-template-rows: 27px 1fr 25px;
  font-size: 15px;
  gap: 6px;
}
#am-app .am-screen[data-screen="activite"] .am-month-col strong {
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}
#am-app .am-screen[data-screen="activite"] .am-month-fill {
  width: min(78%, 94px);
}
@media (max-width: 420px) {
  #am-app .am-screen[data-screen="activite"] .am-activity-grid h3 { font-size: 19px; }
  #am-app .am-screen[data-screen="activite"] .am-month-bars { height: 215px; gap: 5px; }
  #am-app .am-screen[data-screen="activite"] .am-month-col { font-size: 13.5px; }
  #am-app .am-screen[data-screen="activite"] .am-month-col strong { font-size: 12.5px; }
}


/* V1.12 - Conseils et ressources : deux sections simples, sans cadres ni JS. */
#am-app .am-screen[data-screen="conseils"] .am-conseils-section { padding: 5px 0 24px; }
#am-app .am-screen[data-screen="conseils"] .am-conseils-section + .am-conseils-section {
  border-top: 1px solid var(--am-line);
  padding-top: 25px;
}
#am-app .am-screen[data-screen="conseils"] .am-conseils-section > h4 {
  font-size: 20px; font-weight: 650; line-height: 1.35; color: var(--am-ink); margin: 0 0 13px;
}
#am-app .am-screen[data-screen="conseils"] .am-advice-list { gap: 0; }
#am-app .am-screen[data-screen="conseils"] .am-advice-entry { padding: 12px 0 14px; }
#am-app .am-screen[data-screen="conseils"] .am-advice-entry:first-child { padding-top: 2px; }
#am-app .am-screen[data-screen="conseils"] .am-advice-entry:last-child { border-bottom: 0; }
#am-app .am-screen[data-screen="conseils"] .am-advice-entry h5 {
  font-size: 17px; line-height: 1.4; font-weight: 600; color: var(--am-ink); margin: 0 0 5px;
}
#am-app .am-screen[data-screen="conseils"] .am-advice-entry p,
#am-app .am-screen[data-screen="conseils"] .am-resource-list p,
#am-app .am-screen[data-screen="conseils"] .am-conseils-intro {
  font-size: 15.5px; line-height: 1.6; color: #54667f; margin: 0;
}
#am-app .am-screen[data-screen="conseils"] .am-conseils-intro { margin-bottom: 9px; }
#am-app .am-screen[data-screen="conseils"] .am-resource-list { list-style: none; padding: 0; margin: 0; }
#am-app .am-screen[data-screen="conseils"] .am-resource-list li {
  padding: 13px 0; border-bottom: 1px solid var(--am-line);
}
#am-app .am-screen[data-screen="conseils"] .am-resource-list li:last-child { border-bottom: 0; }
#am-app .am-screen[data-screen="conseils"] .am-resource-list a {
  display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 5px;
  font-size: 16px; font-weight: 600; line-height: 1.45;
  color: #225da4; text-decoration: underline; text-underline-offset: 3px;
}
#am-app .am-screen[data-screen="conseils"] .am-resource-list a:hover { color: #143f74; }
#am-app .am-screen[data-screen="conseils"] .am-resource-list a:focus-visible { outline: 2px solid #2169c1; outline-offset: 3px; }
#am-app .am-screen[data-screen="conseils"] .am-resource-list a span { font-size: 15px; text-decoration: none; }
#am-app .am-screen[data-screen="conseils"] .am-resource-list p { margin-top: 3px; }
#am-app .am-screen[data-screen="conseils"] .am-conseils-footer {
  color: #71819a; font-size: 13.5px; line-height: 1.6; margin: 15px 0 0;
}


/* V1.12.1 - Ressources : alignement à gauche, y compris sous les styles généraux Musiclic. */
#am-app .am-screen[data-screen="conseils"] .am-resource-list,
#am-app .am-screen[data-screen="conseils"] .am-resource-list li,
#am-app .am-screen[data-screen="conseils"] .am-resource-list p {
  text-align: left !important;
}
#am-app .am-screen[data-screen="conseils"] .am-resource-list a {
  justify-content: flex-start;
  text-align: left !important;
}

/* V1.13 - Indication discrète du profil relié a la base Access. */
#am-app .am-server-note { margin: 8px 0 20px; padding: 9px 0 11px; border-bottom: 1px solid #e3eaf3; color: #586f8f; font-size: 14px; line-height: 1.5; }
#am-app .am-server-note.is-error { color: #a13d27; }
#am-app .am-profile-instruments button:disabled, #am-app .am-profile-unavailability button:disabled { cursor: wait; opacity: .55; }


/* V1.13.5 - Fleches des calendriers : centrage optique et geometrique.
   Les anciens caracteres typographiques restent dans le HTML (et les boutons
   conservent leurs aria-label), mais ne sont plus dessines par une police.
   Des chevrons SVG aux contours centres les remplacent. */
#am-app button.am-icon-button[data-week-move] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  min-width: 37px;
  height: 37px;
  padding: 0;
  font-size: 0 !important;
  line-height: 0;
}
#am-app button.am-icon-button[data-week-move]::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
}
#am-app button.am-icon-button[data-week-move="-1"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 6 L9 12 L15 18' fill='none' stroke='%23335783' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
#am-app button.am-icon-button[data-week-move="1"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6 L15 12 L9 18' fill='none' stroke='%23335783' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* V1.15 - Exercices Musiclic programmables : présentation discrète, sans cadre. */
#am-app .am-session-exercise-link {
  display: block;
  width: fit-content;
  color: #2466a9;
  font-size: 13.5px;
  font-weight: 400;
  text-decoration: none;
  margin-top: 3px;
}
#am-app .am-session-exercise-link:hover,
#am-app .am-session-exercise-link:focus-visible,
#am-app .am-exercise-preview:hover { text-decoration: underline; }
#am-app #am-session-dialog .am-exercise-help {
  font-size: 14px;
  font-weight: 400;
  color: #5e7084;
  line-height: 1.45;
  margin: -5px 0 0;
}
#am-app #am-session-dialog .am-exercise-preview {
  font-size: 14px;
  font-weight: 400;
  color: #2466a9;
  width: fit-content;
  text-decoration: none;
  margin: -7px 0 0;
}
#am-app #am-session-dialog [hidden] { display: none !important; }
@media (max-width: 720px) {
  #am-app .am-session-exercise-link { font-size: 14px; }
}

/* V1.20.1 - Centrage geometrique du bouton Fermer dans toutes les fenetres.
   Meme technique que les fleches de navigation V1.13.5 : SVG centre.
   Le caractere x reste dans le HTML pour ne pas toucher aux formulaires. */
#am-app button.am-close-dialog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 0 !important;
  line-height: 0;
}
#am-app button.am-close-dialog::before {
  content: "";
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7 L17 17 M17 7 L7 17' fill='none' stroke='%234e6580' stroke-width='2.1' stroke-linecap='round'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}
#am-app button.am-close-dialog:hover { background-color: #e6eef8; }
