/* Espace d'entraînement du club. Les pages historiques conservent leurs propres styles. */
.club-workspace {
  --coach-ink: #173743;
  --coach-secondary: #45635f;
  --coach-line: #d8e5e1;
  --coach-turquoise: #087e79;
  min-width: 0;
  color: var(--coach-ink);
  font-size: 15px;
  line-height: 1.45;
}
.club-workspace :is(h1,h2,h3,h4,p) { overflow-wrap: anywhere; }
.club-workspace :is(button,summary,select,input,textarea):focus-visible {
  outline: 3px solid #087e79;
  outline-offset: 3px;
}
.club-workspace :is(.club-head-actions,.club-mode-switch,.club-panel-inner,.club-section-foot,.club-menu-items,.club-person-foot)>button,
.club-workspace :is(.club-head-tag,.club-session-date,.club-watch,.club-person-tools>summary,.club-properties>summary,.club-add-person>summary) {
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
}
.club-workspace svg { flex: 0 0 auto; }
.club-workspace summary { cursor:pointer; }
.club-workspace summary::-webkit-details-marker { display:none; }
.club-workspace :is(.club-panel-heading,.club-line-menu>summary,.club-add-person>summary,.club-athlete-card>summary,.club-shared-preview>summary) {list-style:none;}
.club-session-head,.club-head-identity,.club-head-tags,.club-session-tools,.club-head-actions,.club-mode-switch { display:flex;align-items:center; flex-wrap:wrap; }
.club-session-head { gap:10px 18px;justify-content:space-between; }
.club-head-identity { gap:8px 18px; min-width:0; }
.club-workspace .club-session-head h1 {
  display:flex;align-items:center;gap:10px;margin:0;color:#082a3b;
  font-size:clamp(25px,2.15vw,32px);line-height:1.18;letter-spacing:-.035em;
}
.club-session-head h1 svg { color:#0c6170; }
.club-session-date { border-left:1px solid #cfdbd7;padding-left:18px;color:#203f4b; font-size:clamp(15px,1.28vw,19px); }
.club-session-date svg { color:#43636b; }
.club-head-tags,.club-head-actions { gap:8px; }
.club-head-tag { background:#ecf5f3;border:1px solid #dae8e4;color:#245953;font-weight:650;padding:5px 9px;border-radius:8px;font-size:12px; }
.club-head-tag:first-child { background:#e8f1f6;border-color:#d5e5ec;color:#285567; }
.club-session-tools { gap:8px 12px;margin:12px 0 8px; }
.club-mode-switch { border:1px solid var(--coach-line);background:#eaf2ef;border-radius:9px;padding:2px; }
.club-workspace .club-mode-switch button { background:transparent;border:0;border-radius:6px;min-height:36px;padding:6px 11px;color:#496561;font-size:13px;font-weight:650; }
.club-workspace .club-mode-switch button[aria-pressed=true] { background:white;color:#104954;box-shadow:0 1px 3px #103b4b24; }
.club-head-actions {margin-left:auto;}
.club-workspace .club-head-actions button,.club-workspace .club-panel-inner>button,.club-workspace .club-section-foot>button,.club-workspace .club-person-foot>button {
  border-radius:8px;font-size:13px;font-weight:650;min-height:38px;padding:7px 12px;
  background:white;border:1px solid #a8c3bc;color:#214944;
}
.club-workspace .club-head-actions .primary {background:#08746d;border-color:#08746d;color:white; box-shadow:0 2px 5px #103b4b12;}
.club-workspace #club-changes {font-size:12px;color:var(--coach-secondary);}
.club-properties { color:#3c605c;margin:0 0 12px; }
.club-properties>summary {font-size:13px;font-weight:650;min-height:34px; }
.club-properties[open],.club-add-body,.club-section-settings,.club-person-tools[open] {
  background:white;border:1px solid var(--coach-line);border-radius:10px;padding:12px;
}
.club-properties[open]>summary {margin-bottom:8px;}
.club-properties .club-fields {grid-template-columns:2fr 1fr .85fr .85fr;margin-bottom:8px;}
.club-workspace .club-description { color:var(--coach-secondary);margin-bottom:14px;white-space:pre-wrap; }
.club-design-panel {
  border:1px solid #cddfda; border-radius:16px; margin:12px 0 15px;
  box-shadow:0 3px 12px #14384106; padding:14px 16px; min-width:0;
}
#club-common {background:linear-gradient(115deg,#e0f1ec,#eef7f4); color:#153e43;}
#club-individual {background:linear-gradient(120deg,#f7f2ec,#f8f6f3 80%);border-color:#e5dfd8;}
.club-panel-heading { display:flex; align-items:center; gap:12px; min-height:44px;position:relative;}
.club-panel-icon {display:grid;place-items:center;width:38px;height:38px;border:1px solid #c1ded5;border-radius:11px;background:#e7f6ef;color:#12695f;flex:none;}
#club-individual .club-panel-icon {background:#f2f4ee;border-color:#d4e0d7;color:#1a524f;}
.club-heading-stack {display:block;min-width:0;flex:1;}
.club-workspace .club-heading-stack :is(h2,strong) {display:block;font-size:clamp(19px,1.55vw,22px);letter-spacing:-.027em;line-height:1.16;font-weight:720;margin:0;color:#133847;}
.club-heading-stack small {display:block;font-size:13px;color:#45615b;margin-top:3px;}
.club-collapse {display:grid;place-items:center;margin-left:auto;color:#45655f;}
details[open]>.club-panel-heading>.club-collapse svg,details[open].club-athlete-card>summary>.club-collapse svg,.club-shared-preview[open]>summary>svg:last-child {transform:rotate(180deg);}
.club-panel-inner {padding-top:10px;}
.club-workspace .club-empty-inline {margin:.65rem .1rem;color:#45635f;font-size:14px;}
.club-workspace [data-common-group]>h3 {margin:.5rem 0 .25rem;color:#146354;font-size:12px;font-weight:700;}
.club-workspace #club-common .club-exercise-section {background:#ffffffda;border:1px solid #c8ddd6;border-left:3px solid #53b4a0;border-radius:11px;padding:8px 11px;margin:8px 0 10px;}
.club-add-person {margin-left:auto;position:relative;flex:0 0 auto;}
.club-workspace .club-add-person>summary {
  background:#fff;border:1px solid #a2bcb5;border-radius:8px;font-size:13px;font-weight:650;
  min-height:38px;padding:6px 10px; color:#1e544c;
}
.club-add-body {
  position:absolute;right:0;top:calc(100% + 6px);width:min(350px,80vw);z-index:9;
  box-shadow:0 12px 35px #153e4226; max-height:65dvh;overflow-y:auto;
}
.club-add-body form+form {border-top:1px solid var(--coach-line);padding-top:10px;}
.club-add-body .club-actions {margin-top:0;}
.club-add-body .club-actions label {flex:1 1 100%;}
.club-add-body :is(p,h3) {margin:8px 0;}
#club-people {display:grid;gap:12px;margin-top:12px;}
.club-body .club-athlete-card,
.club-body .club-athlete-card:nth-child(n):not([open]) {
  padding:0;margin:0;background:#fff;border:1px solid #d6e0dd;border-left:4px solid #198985;
  border-radius:13px;box-shadow:0 2px 8px #12313d08;overflow:visible;
}
.club-body .club-athlete-card:nth-child(3n+2) {border-left-color:#6d9dad;}
.club-body .club-athlete-card:nth-child(3n) {border-left-color:#669478;}
.club-body .club-athlete-card>summary {
  display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:7px 10px;
  padding:11px 13px; color:#113b49;font-weight:600; min-height:52px;
}
.club-body .club-athlete-card>summary::before {content:none;}
.club-body .club-athlete-card>summary strong {font-size:clamp(20px,1.65vw,23px);letter-spacing:-.025em;line-height:1.15;overflow-wrap:anywhere;}
.club-monogram {
  display:grid;place-items:center;width:34px;height:34px;background:#086c70;
  color:#fff;border-radius:50%;font-size:12px;font-weight:700;letter-spacing:.02em;
}
.club-watch {border:1px solid #d8e1df;background:#f1f4f3;border-radius:7px;padding:3px 8px;color:#45635d;font-size:12px;font-weight:650;}
.club-watch.has-watch {background:#dff1e5;border-color:#c6e3ce;color:#235740;}
.club-metrics {display:flex;flex-wrap:wrap;gap:5px 14px;grid-column:1/-1;font-size:12.5px;color:#45615e;font-weight:480;}
.club-metrics>span {display:inline-flex;align-items:baseline;gap:5px;min-width:0;}
.club-metrics svg {align-self:flex-start; margin-top:2px;color:#43706a;}
.club-metrics [data-forecast] {overflow-wrap:anywhere;}
.club-athlete-body {border-top:1px solid #e5eae7;padding:0 12px 10px;}
.club-workspace .club-delivery {font-size:12px; color:#315e58;margin:8px 0;}
.club-delivery:empty {display:none;}
.club-workspace .club-shared-preview {
  background:#e4f0f4;border:1px solid #d4e4e8;border-radius:7px;padding:0 9px;margin:8px 0;
}
.club-shared-preview>summary {display:flex;gap:7px;align-items:center;min-height:38px;color:#214d59;font-size:12px;}
.club-shared-preview>summary span {overflow-wrap:anywhere;}
.club-shared-preview>summary svg:last-child {margin-left:auto;}
.club-workspace .club-exercise-section {margin:8px 0;padding:0;border:0;min-width:0;}
.club-exercise-section>h4 {color:#235b54;font-size:15px;}
.club-workspace .club-section-tools {margin:0;color:#45605c;}
.club-section-tools>summary,.club-person-tools>summary {min-height:32px;align-content:center;font-size:12px;font-weight:600;}
.club-section-tools[open] {flex:1 0 100%;}
.club-section-settings {margin:5px 0;}
.club-workspace .club-exercise {border:1px solid #d8e5df;border-left:3px solid #65b7a7;background:#fdfefd;position:relative;margin:7px 0;padding:7px 10px 7px;border-radius:9px;}
.club-workspace .club-exercise:nth-of-type(2n) {border-left-color:#8aaa95;}
.club-workspace .club-exercise .mr-line {padding:0;}
.club-workspace .club-exercise.is-editable .mr-sequence,.club-workspace .club-exercise.is-editable .mr-line>strong {padding-right:39px;}
.club-workspace .club-line-menu {position:absolute;right:6px;top:7px;z-index:2;max-width:100%;}
.club-workspace .club-line-menu[open] {z-index:7;}
.club-line-menu>summary {
  display:grid;place-items:center;border:1px solid #cfddda;border-radius:7px;
  width:34px;height:34px;background:#fff;color:#234b46;
}
.club-menu-items {
  position:absolute;right:0;top:calc(100% + 4px);width:min(230px,74vw);z-index:10;
  display:grid;gap:3px;padding:6px;background:#fff;border:1px solid #bdd2ca;border-radius:10px;
  box-shadow:0 9px 26px #17374325;
}
.club-workspace .club-menu-items>button {justify-content:flex-start;min-height:36px;border:0;text-align:left;background:transparent;font-size:14px;border-radius:6px;padding:5px 8px;}
.club-menu-items label {padding:5px 8px;font-size:12px;}
.club-workspace .club-menu-items .club-danger {color:#8d3827;}
.club-section-foot,.club-person-foot {display:flex;align-items:center;gap:7px 12px;flex-wrap:wrap;}
.club-person-foot {border-top:1px solid #e5ece8;padding-top:8px;}
.club-workspace .club-person-tools {margin:0;}
.club-workspace .club-person-tools[open] {flex:1 1 100%;}
@media (hover:hover) {
  .club-workspace button:not(:disabled):not(.mr-chip):not(.mr-insert):hover,.club-workspace .club-add-person>summary:hover,.club-workspace .club-line-menu>summary:hover {background:#e4f2ed;color:#153f3d;}
  .club-workspace .club-head-actions .primary:hover {background:#075f59;color:#fff;}
}
@media (max-width:900px) {
  .club-properties .club-fields {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:620px) {
  .club-session-head,.club-head-identity {align-items:flex-start;gap:5px 10px;}
  .club-head-identity {flex-direction:column;}
  .club-session-date {border:0;padding:0;text-align:left;justify-content:flex-start;}
  .club-head-tags {gap:6px;width:100%;margin-top:3px;}
  .club-session-tools {margin:10px 0 5px;gap:7px;}
  .club-head-actions {margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;}
  .club-workspace .club-mode-switch button,.club-workspace .club-head-actions button,.club-workspace .club-section-foot>button,
  .club-workspace .club-person-foot>button,.club-workspace .club-add-person>summary,.club-workspace .club-menu-items>button {min-height:44px;}
  .club-workspace .club-head-actions button {font-size:13px;padding:5px 8px;gap:5px;}
  .club-workspace #club-changes {margin-left:auto;font-size:12px;max-width:11em;}
  .club-design-panel {padding:10px 8px;border-radius:13px;margin:9px 0 12px;}
  .club-panel-heading {gap:7px;flex-wrap:wrap;}
  .club-panel-icon {width:33px;height:33px;border-radius:9px;}
  .club-heading-stack {flex:1 1 165px;}
  .club-heading-stack small {font-size:12px;}
  .club-workspace .club-add-person {display:block;flex-basis:100%;position:static;margin-left:0;}
  .club-workspace .club-add-person>summary {width:max-content;margin:2px 0 0 40px;}
  .club-add-body {position:static;width:auto;max-height:none;box-shadow:none;margin-top:8px;}
  #club-people {gap:9px;margin-top:8px;}
  .club-body .club-athlete-card>summary {gap:6px;padding:9px 8px;}
  .club-monogram {height:29px;width:29px;}
  .club-watch {font-size:11.5px;gap:3px;padding:3px 5px;}
  .club-metrics {gap:4px 9px;}
  .club-athlete-body {padding:0 6px 8px;}
  .club-workspace .club-exercise,.club-workspace #club-common .club-exercise-section {padding:6px;}
  .club-workspace .club-exercise.is-editable .mr-line {width:calc(100% - 40px);}
  .club-workspace .club-exercise.is-editable .mr-sequence {padding-right:0;}
  .club-workspace .club-line-menu {right:2px;top:3px;}
  .club-workspace .club-line-menu>summary {width:42px;height:44px;}
  .club-properties .club-fields {grid-template-columns:minmax(0,1fr);}
  .club-workspace .club-section-foot,.club-workspace .club-person-foot {gap:4px 10px;}
}
@media (prefers-reduced-motion:reduce) {
  .club-workspace * {scroll-behavior:auto!important;transition:none!important;}
}
.club-exercise-forecast>summary {display:inline-flex;gap:5px;align-items:center;color:#3f625b;font-weight:600;font-size:12px;min-height:30px;list-style:none;}
.club-exercise-forecast[open]>span {display:block;color:#45615e;font-size:13px;padding-bottom:5px;}
@media(max-width:620px){.club-workspace .club-exercise-forecast>summary,.club-workspace .club-section-tools>summary,.club-workspace .club-person-tools>summary,.club-workspace .club-properties>summary {min-height:44px;}}
@media(min-width:901px){
  #club-common {position:relative;padding:10px 14px;}
  #club-common[open]>.club-panel-heading {padding-right:185px;}
  #club-common>.club-panel-heading>.club-collapse {position:absolute;right:0;}
  #club-common .club-panel-inner {padding-top:4px;}
  #club-common .club-panel-inner>button[data-op=section] {position:absolute;right:44px;top:15px;min-height:32px;padding:5px 10px;}
  #club-common .club-panel-inner>.club-empty-inline {margin:3px 0;}
  #club-common [data-common-group]>h3 {font-size:11.5px;margin:5px 0 2px;font-weight:650;}
  .club-workspace #club-common .club-exercise-section {margin:3px 0;padding:4px 8px;}
  #club-common .club-exercise-section:not(:has(.club-section-tools[open])) {display:grid;grid-template-columns:minmax(98px,15%) minmax(0,1fr) auto;align-items:center;gap:2px 8px;}
  #club-common .club-exercise-section:not(:has(.club-section-tools[open]))>:is(.club-section-tools,h4) {grid-column:1;grid-row:1;margin:0;}
  #club-common .club-exercise {grid-column:2;margin:2px 0;padding:2px 4px;border:0;background:transparent;}
  #club-common .club-exercise-section>.club-section-foot {grid-column:3;grid-row:1;justify-self:end;}
  #club-common .club-exercise-section>.club-section-foot>button {min-height:33px;padding:5px 8px;}
  .club-workspace #club-common .mr-meta {margin:3px 0;}
  .club-workspace #club-common .club-line-menu {right:1px;top:3px;}
}
