/* EADGng — charte plateforme (or & marine) */

:root {
  --ciel: #c9a227;
  --ciel-soft: #f5e6b8;
  --ciel-deep: #9a7b1a;
  --navy: #1a2d4a;
  --bg: #fffbf5;
  --bg-2: #ffffff;
  --panel: #ffffff;
  --line: #e8d9a8;
  --text: #1a2d4a;
  --muted: #5c6b7a;
  --accent: #5b7fa6;
  --accent-2: #9a7b1a;
  /** Texte sur fond couleur principale (boutons, onglets actifs…) */
  --on-ciel: #1a2d4a;
  --danger: #c94b4b;
  --ok: #2f8f5b;
  --radius: 14px;
  --font: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 12px 40px rgba(26, 45, 74, 0.08);
  --stripe: 110px;
  --brand-watermark: none;
  --brand-wm-opacity: 0.18;
  --brand-stripe-a: rgba(201, 162, 39, 0.22);
}

/* Anti-FOUC : pas de logos / noms / filigrane tant que le branding école n’est pas appliqué */
html:not([data-brand-ready]) [data-brand-logo],
html:not([data-brand-ready]) [data-brand-name],
html:not([data-brand-ready]) [data-brand-display],
html:not([data-brand-ready]) [data-brand-tagline],
html:not([data-brand-ready]) [data-brand-hero-mark] {
  visibility: hidden !important;
}
html:not([data-brand-ready]) body[data-brand-bg="watermark"]::after {
  opacity: 0 !important;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  background-color: var(--bg, #fff);
  background-image:
    repeating-linear-gradient(
      180deg,
      var(--brand-stripe-a) 0 var(--stripe),
      rgba(255, 255, 255, 0.96) var(--stripe) calc(var(--stripe) * 2)
    );
  background-repeat: repeat;
  background-size: 100% calc(var(--stripe) * 2);
  background-attachment: fixed;
  min-height: 100vh;
}

body[data-brand-bg="watermark"] {
  background-image:
    repeating-linear-gradient(
      180deg,
      var(--brand-stripe-a) 0 var(--stripe),
      rgba(255, 255, 255, 0.96) var(--stripe) calc(var(--stripe) * 2)
    );
  background-size: 100% calc(var(--stripe) * 2);
  background-repeat: repeat;
  background-color: var(--bg, #fff);
}
body[data-brand-bg="watermark"]::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: var(--brand-watermark) center 42% / min(440px, 72vw) auto no-repeat;
  opacity: var(--brand-wm-opacity);
  mix-blend-mode: multiply;
}

body[data-brand-bg="stripes"] {
  background-image:
    repeating-linear-gradient(
      180deg,
      var(--brand-stripe-a) 0 var(--stripe),
      rgba(255, 255, 255, 0.96) var(--stripe) calc(var(--stripe) * 2)
    );
  background-size: 100% calc(var(--stripe) * 2);
  background-repeat: repeat;
}
body[data-brand-bg="stripes"]::after { content: none; }

body[data-brand-bg="fairway"] {
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(47, 143, 91, 0.12) 0 28px,
      rgba(255, 255, 255, 0.95) 28px 56px
    ),
    linear-gradient(160deg, #e8f5ec 0%, #fff 45%, #f0f7e8 100%);
  background-size: auto, cover;
  background-repeat: repeat, no-repeat;
}
body[data-brand-bg="fairway"]::after { content: none; }

body[data-brand-bg="green"] {
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(47, 143, 91, 0.22), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(126, 182, 224, 0.18), transparent 40%),
    linear-gradient(180deg, #f4faf6 0%, #ffffff 55%);
  background-repeat: no-repeat;
}
body[data-brand-bg="green"]::after { content: none; }

body[data-brand-bg="bunker"] {
  background-color: #f7f1e4;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(196, 168, 120, 0.35) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(160, 130, 90, 0.25) 0 1.5px, transparent 2.5px),
    linear-gradient(180deg, #faf6ec 0%, #f3ead8 100%);
  background-size: 48px 48px, 36px 36px, cover;
  background-repeat: repeat, repeat, no-repeat;
}
body[data-brand-bg="bunker"]::after { content: none; }

body[data-brand-bg="solid"] {
  background-image: none;
  background-color: var(--bg, #fff);
}
body[data-brand-bg="solid"]::after { content: none; }

/* Filigrane legacy (défaut sans data-brand-bg) */
body:not([data-brand-bg])::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: var(--brand-watermark) center 42% / min(440px, 72vw) auto no-repeat;
  opacity: var(--brand-wm-opacity);
  mix-blend-mode: multiply;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.42) 0%, rgba(255,255,255,0.78) 52%, rgba(255,255,255,0.9) 100%);
}

#view-login,
#view-admin,
#view-parent,
#view-coach,
#view-player-child,
#view-player-adult,
#view-volunteer,
.login-wrap {
  position: relative;
  z-index: 1;
}

a { color: var(--navy); }
a:hover { color: var(--ciel-deep); }
button, input, select, textarea { font: inherit; }

.app-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 3px solid var(--ciel);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--shadow);
}

.app-header > .brand {
  flex: 0 0 auto;
}

.app-header > .nav {
  flex: 0 1 auto;
  min-width: 0;
}

.app-header > .user-chip {
  flex: 0 0 auto;
  margin-left: auto;
}

.header-search {
  position: relative;
  flex: 1 1 14rem;
  min-width: 12rem;
  max-width: 22rem;
}

/* Large : marque + onglets + recherche + compte sur une ligne.
   Étroit : onglets restent ensemble ; la recherche passe en pleine largeur dessous. */
@media (max-width: 1180px) {
  .app-header--search > .header-search {
    flex: 1 1 100%;
    order: 10;
    max-width: none;
    min-width: 0;
  }
}

.header-search input[type="search"] {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  min-height: 2.4rem;
  box-shadow: 0 1px 2px rgba(26, 58, 92, 0.04);
}

.header-search input[type="search"]:focus {
  outline: 2px solid rgba(126, 182, 224, 0.45);
  border-color: var(--ciel);
}

.header-search-results {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(26, 58, 92, 0.14);
  max-height: min(22rem, 70vh);
  overflow: auto;
  z-index: 40;
}

.header-search-results li {
  margin: 0;
}

.header-search-results button {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  color: var(--text);
  font: inherit;
}

.header-search-results button:hover,
.header-search-results button.is-active {
  background: #eaf3fb;
}

.header-search-results .hs-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.header-search-results .hs-meta {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.header-search-results button.hs-nav-hit .hs-meta {
  color: var(--ciel-deep);
}

.header-search-results .hs-empty,
.header-search-results .hs-loading {
  padding: 0.7rem 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

@keyframes search-hit-flash {
  0%, 100% { background: transparent; }
  30%, 70% { background: #eaf3fb; }
}

.search-hit-flash {
  animation: search-hit-flash 1.4s ease;
  border-radius: 10px;
}

@media (max-width: 760px) {
  .app-header--search > .user-chip {
    margin-left: 0;
  }
  .app-header--search > .nav {
    flex: 1 1 auto;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .app-header--search > .nav::-webkit-scrollbar {
    display: none;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--navy);
  text-decoration: none;
}
.brand img,
.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.brand span {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  max-width: 14rem;
}

/* Header app : logo à sa vraie taille + nom sur 2 lignes */
.app-header .brand {
  align-items: center;
  gap: 0.65rem;
  max-width: none;
}
.app-header .brand img,
.app-header .brand-logo {
  width: auto;
  height: 64px;
  max-width: 7.5rem;
}
.app-header .brand > span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  max-width: 10rem;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.15;
}
.app-header .brand [data-brand-tagline] {
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ciel-deep);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.hero-brand img {
  width: 72px;
  height: 96px;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  align-items: center;
}
.nav button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav button.active, .nav button:hover {
  color: var(--navy);
  border-color: var(--line);
  background: var(--ciel-soft);
}

.user-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.15rem;
  color: var(--muted);
  font-size: 0.9rem;
  flex-wrap: nowrap;
}
.user-chip-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: nowrap;
  min-width: 0;
}
.user-chip-identity,
.user-chip-top [id$="-user-label"] {
  white-space: nowrap;
  font-size: 0.88rem;
  max-width: min(18rem, 42vw);
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  flex-shrink: 0;
}
.user-chip-identity {
  font-weight: 600;
  color: var(--navy);
}
.user-chip-top [id$="-user-label"] {
  font-weight: 600;
  color: var(--navy);
}
.user-chip > .btn-logout {
  align-self: flex-end;
  padding: 0.15rem 0.55rem;
  font-size: 0.78rem;
  min-height: 0;
  line-height: 1.2;
}
.user-chip-help-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.user-chip-help-row .btn {
  padding: 0.15rem 0.55rem;
  font-size: 0.78rem;
  min-height: 0;
  line-height: 1.2;
}
.btn-space-switch {
  border-color: var(--ciel-deep) !important;
  color: var(--ciel-deep) !important;
  font-weight: 600;
}

.cgu-block {
  margin: 1rem 0;
}
.cgu-block-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.cgu-scroll {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  background: color-mix(in srgb, var(--ciel-soft) 55%, var(--bg));
  margin: 0.5rem 0 0.75rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text);
}
.cgu-scroll h3 {
  font-size: 0.92rem;
  margin: 0.75rem 0 0.35rem;
}
.cgu-scroll h3:first-child { margin-top: 0; }
.cgu-check {
  align-items: flex-start;
  gap: 0.55rem;
}
.cgu-article {
  font-size: 0.95rem;
  line-height: 1.5;
}
.cgu-article h3 {
  margin: 1.25rem 0 0.4rem;
}

.image-rights-card {
  width: min(520px, 100%);
  max-height: min(90vh, 720px);
  overflow-y: auto;
}
.ir-recap {
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--ciel-soft) 55%, var(--bg));
}
.badge.danger {
  background: #fde8e8;
  color: #9b1c1c;
  border-color: #f5c2c2;
}
.badge.ok-soft {
  background: #e7f8ee;
  color: #0f6b38;
}
.medical-block {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(126, 182, 224, 0.08);
}
.medical-block-inner p { font-size: 0.95rem; }
.nested-panel {
  box-shadow: none;
  border: 1px solid var(--line);
}

.app-footer {
  text-align: center;
  padding: 1rem 1.5rem 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.app-footer a { color: var(--ciel-deep); }

.layout-admin {
  max-width: 1180px;
  padding: 0;
}

.admin-zone {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  min-height: calc(100vh - 5.5rem);
  align-items: start;
}

.panel-padult-club-life {
  /* Pas de carte : la nav latérale doit coller sous le header (comme parent/coach). */
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  overflow: visible;
  max-width: none;
}

.panel-padult-club-life > .padult-club-life {
  margin: 0;
  min-height: calc(100vh - 4.75rem);
  align-items: stretch;
}

.panel-padult-club-life .admin-side-nav {
  /* Collé sous le header sticky ; pas de gap artificiel dans le panneau. */
  top: 4.75rem;
  align-self: stretch;
  min-height: calc(100vh - 4.75rem);
  margin: 0;
}

.panel-padult-club-life .admin-side-content {
  padding: 1.1rem 1.25rem 1.5rem;
}

.padult-club-pane.hidden {
  display: none;
}

/* Vie du club : plein largeur sous le header (comme layout-admin). */
#view-player-adult main.layout.is-club-life {
  padding: 0;
  max-width: none;
}

.admin-zone.hidden {
  display: none;
}

.admin-side-nav {
  position: sticky;
  top: 5.25rem;
  align-self: start;
  padding: 1.25rem 0.85rem 1.5rem 1.25rem;
  border-right: 1px solid var(--line);
  background: rgba(247, 251, 255, 0.92);
  min-height: calc(100vh - 5.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-side-title {
  margin: 0 0 0.55rem;
  padding: 0 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.admin-side-title-spaced {
  margin-top: 1.15rem;
}

.admin-side-nav button {
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}

.side-nav-count {
  flex-shrink: 0;
  min-width: 1.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  background: rgba(201, 75, 75, 0.14);
  color: var(--danger);
  border: 1px solid rgba(201, 75, 75, 0.35);
}

.side-nav-count.hidden {
  display: none !important;
}

.act-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin: 0;
}

h4.act-section-title {
  margin: 1rem 0 0.4rem;
  font-size: 0.95rem;
}

.admin-todo-list .todo-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.admin-todo-list .todo-row .side-nav-count {
  margin-top: 0.15rem;
}

.admin-todo-list .todo-row-body {
  flex: 1;
  min-width: 0;
}

.admin-alert {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 160, 23, 0.45);
  background: rgba(212, 160, 23, 0.12);
}

.admin-alert.hidden {
  display: none !important;
}

.admin-todo-list li {
  align-items: center;
}

.train-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
  display: block;
}

.train-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.train-overall {
  flex: 0 0 auto;
}

.train-ring {
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto;
}

.train-ring span {
  width: 4.1rem;
  height: 4.1rem;
  border-radius: 50%;
  background: var(--panel, #fff);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
}

.train-section h2 {
  margin: 0 0 0.75rem;
}

.train-section + .train-section {
  margin-top: 1.5rem;
}

.train-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 0.85rem;
}

.train-card {
  appearance: none;
  display: flex;
  flex-direction: column;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel, #fff);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  color: inherit;
  box-shadow: var(--shadow);
}

.train-card:hover {
  border-color: var(--ciel-deep);
}

.train-card-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f2740;
  overflow: hidden;
}

.train-thumb {
  position: absolute;
  inset: 0;
  padding: 0.35rem;
  pointer-events: none;
}

.train-thumb-play {
  position: absolute;
  inset: auto 50% 0.65rem auto;
  transform: translateX(50%);
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.train-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.75rem 0.85rem 0.9rem;
}

.train-pct-bar {
  height: 0.4rem;
  border-radius: 99px;
  background: rgba(26, 58, 92, 0.1);
  overflow: hidden;
  margin-top: 0.35rem;
}

.train-pct-bar span {
  display: block;
  height: 100%;
  background: var(--ok);
}

.train-pct-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.train-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.8fr);
  gap: 1rem;
  margin-top: 0.75rem;
}

@media (max-width: 860px) {
  .train-detail-grid {
    grid-template-columns: 1fr;
  }
}

.train-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #10253c;
  border: 1px solid var(--line);
}

.train-player-stage {
  position: absolute;
  inset: 0;
  padding: 0.55rem;
}

.train-cursor {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -4px 0 0 -4px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-15deg);
  background: #fff;
  border: 2px solid var(--navy);
  z-index: 3;
  transition: left 0.45s ease, top 0.45s ease;
  pointer-events: none;
}

.train-cursor.is-click {
  box-shadow: 0 0 0 8px rgba(126, 182, 224, 0.35);
}

.train-caption {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.55rem;
  z-index: 2;
  background: rgba(10, 24, 40, 0.82);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
}

.train-play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 0;
  background: rgba(8, 20, 34, 0.28);
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
}

.train-play-overlay.hidden {
  display: none !important;
}

.train-player-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.train-seek {
  flex: 1;
  height: 0.45rem;
  border-radius: 99px;
  background: rgba(26, 58, 92, 0.12);
  cursor: pointer;
  overflow: hidden;
}

.train-seek span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ciel-deep);
}

.train-steps {
  margin: 0;
  padding-left: 1.15rem;
}

.train-steps li {
  margin: 0.35rem 0;
}

.demo-app {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f4f8fc;
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--sans);
  font-size: 9px;
  color: var(--navy);
}

.demo-top {
  display: flex;
  gap: 0.35rem;
  padding: 0.35rem 0.45rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.demo-tab {
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  opacity: 0.55;
}

.demo-tab.is-on {
  opacity: 1;
  background: rgba(126, 182, 224, 0.25);
  font-weight: 650;
}

.demo-body {
  flex: 1;
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  min-height: 0;
}

.demo-side {
  padding: 0.4rem 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  background: #e7f1f9;
}

.demo-side span {
  height: 0.35rem;
  border-radius: 4px;
  background: rgba(26, 58, 92, 0.2);
}

.demo-main {
  padding: 0.45rem;
}

.demo-card {
  background: #fff;
  border-radius: 8px;
  padding: 0.45rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.demo-drop,
.demo-line,
.demo-select,
.demo-row,
.demo-block,
.demo-btn,
.demo-check,
.demo-swatches,
.demo-cal,
.demo-people,
.demo-grid {
  border-radius: 6px;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.demo-drop {
  flex: 1;
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
}

.demo-line {
  height: 0.55rem;
  background: rgba(26, 58, 92, 0.08);
}

.demo-select,
.demo-btn {
  padding: 0.28rem 0.4rem;
  background: rgba(126, 182, 224, 0.2);
  width: fit-content;
}

.demo-btn {
  background: var(--ciel);
  color: #fff;
  font-weight: 650;
}

.demo-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem;
  background: rgba(26, 58, 92, 0.05);
}

.demo-row b,
.demo-people i,
.demo-cal i,
.demo-grid i,
.demo-swatches i {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--ciel);
  display: inline-block;
}

.demo-block {
  flex: 1;
  background: rgba(26, 58, 92, 0.06);
}

.demo-check {
  width: 0.7rem;
  height: 0.7rem;
  border: 1px solid var(--navy);
}

.demo-swatches,
.demo-cal,
.demo-people,
.demo-grid {
  display: flex;
  gap: 0.25rem;
}

.demo-cal {
  flex-wrap: wrap;
}

.demo-cal i {
  border-radius: 3px;
  width: 18%;
  height: 0.7rem;
}

.is-hi {
  box-shadow: 0 0 0 2px var(--ciel-deep);
  background: rgba(126, 182, 224, 0.35) !important;
}

.volunteer-section-title {
  margin: 1rem 0 0.4rem;
  font-size: 0.95rem;
}

.volunteer-section-title:first-of-type {
  margin-top: 0.35rem;
}

.volunteer-paths {
  gap: 1rem;
}

.admin-side-nav button.active,
.admin-side-nav button:hover {
  color: var(--navy);
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.side-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.side-nav-toggle .side-nav-chevron {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--muted);
  transition: transform 0.15s ease;
}

.side-nav-group.is-open > .side-nav-toggle .side-nav-chevron {
  transform: rotate(180deg);
}

.side-nav-group.is-open > .side-nav-toggle {
  color: var(--navy);
  background: #fff;
  border-color: var(--line);
}

.side-nav-sub {
  display: none;
  flex-direction: column;
  gap: 0.1rem;
  margin: 0.1rem 0 0.2rem 0.4rem;
  padding-left: 0.55rem;
  border-left: 2px solid rgba(30, 64, 100, 0.12);
}

.side-nav-group.is-open > .side-nav-sub {
  display: flex;
}

.side-nav-sub[hidden] {
  display: none !important;
}

.side-nav-sub button {
  font-size: 0.88rem;
  padding: 0.45rem 0.65rem;
}

@media (max-width: 960px) {
  .side-nav-group {
    flex: 1 1 100%;
  }
  .side-nav-sub {
    flex-direction: row;
    flex-wrap: wrap;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    gap: 0.25rem;
  }
}

.admin-side-content {
  padding: 1.5rem;
  min-width: 0;
}

.admin-detail-host {
  padding: 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
}

.admin-detail-host.hidden {
  display: none;
}

.admin-zone.is-detail .admin-side-nav {
  opacity: 0.85;
}

.players-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.7rem 0.85rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, #fafcfe 0%, #f2f7fc 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.players-filters .field {
  margin-bottom: 0;
  flex: 0 0 auto;
  min-width: 0;
}

.players-filters .field--search {
  flex: 1 1 14rem;
  min-width: min(100%, 12rem);
}

.players-filters .field--actions {
  flex: 0 0 auto;
  padding-bottom: 1px;
}

.players-filters .field label {
  white-space: nowrap;
  margin-bottom: 0.3rem;
  letter-spacing: 0.03em;
}

.players-filters .field input,
.players-filters .field select {
  background: #fff;
  white-space: nowrap;
  min-height: 2.55rem;
  padding: 0.55rem 0.8rem;
  box-shadow: 0 1px 2px rgba(26, 58, 92, 0.04);
}

.players-filters .field--search input {
  width: 100%;
}

.players-filters .field select {
  width: max-content;
  min-width: 9.75rem;
  max-width: min(100%, 20rem);
  padding-right: 1.85rem;
}

.players-filters .field--actions .btn {
  min-height: 2.55rem;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .admin-zone {
    grid-template-columns: 1fr;
  }
  .admin-side-nav {
    position: static;
    min-height: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 0.85rem 1rem;
  }
  .admin-side-title {
    width: 100%;
    margin-bottom: 0.25rem;
  }
}

@media (max-width: 560px) {
  .players-filters .field,
  .players-filters .field--search,
  .players-filters .field--actions {
    flex: 1 1 100%;
  }
  .players-filters .field select {
    width: 100%;
    max-width: none;
  }
}

.panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ciel);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow);
}

h1, h2, h3 { font-family: var(--font); font-weight: 600; margin: 0 0 0.75rem; color: var(--navy); }
h1 { font-size: 1.8rem; }
h2 { font-size: 1.35rem; }
p.lead { color: var(--muted); margin-top: 0; line-height: 1.45; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.field { margin-bottom: 0.9rem; }
.field label,
.field .field-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: color-mix(in srgb, var(--ciel-soft) 55%, var(--bg));
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid rgba(126, 182, 224, 0.4);
  border-color: var(--ciel);
}

.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  cursor: pointer;
  font-weight: 600;
}
.btn-primary { background: var(--ciel); color: var(--on-ciel); }
.btn-primary:hover { background: color-mix(in srgb, var(--ciel) 86%, #fff); color: var(--on-ciel); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--ciel);
  background: #eaf3fb;
}
.btn-danger { background: var(--danger); color: white; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.row-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.5rem; }

.list { list-style: none; padding: 0; margin: 0; }
.list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.list li:last-child { border-bottom: none; }
.meta { color: var(--muted); font-size: 0.85rem; }
.meta a {
  color: var(--navy);
  text-decoration: underline;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--navy);
  background: #eaf3fb;
}
.badge.warn {
  color: var(--navy);
  border-color: var(--ciel);
  background: #fff;
}

.toast {
  margin-top: 0.9rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-size: 0.92rem;
}
.toast.ok { background: rgba(47, 143, 91, 0.12); color: var(--ok); }
.toast.err { background: rgba(201, 75, 75, 0.12); color: var(--danger); }

.storage-summary {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7fafc;
}
.storage-summary-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.storage-total {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.storage-pct {
  font-size: 1.35rem;
  font-weight: 700;
  min-width: 4.5rem;
  text-align: right;
}
.storage-pct.storage-bar-ok { color: var(--ok); }
.storage-pct.storage-bar-warn { color: #b45309; }
.storage-pct.storage-bar-crit { color: var(--danger); }
.storage-bar {
  margin-top: 0.85rem;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 45, 75, 0.08);
  overflow: hidden;
}
.storage-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s ease;
}
.storage-bar-fill.storage-bar-ok { background: var(--ok); }
.storage-bar-fill.storage-bar-warn { background: #d97706; }
.storage-bar-fill.storage-bar-crit { background: var(--danger); }
.storage-table th.num,
.storage-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.storage-offers summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ciel-deep);
}
.storage-offers ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.usage-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
@media (max-width: 640px) {
  .usage-kpis { grid-template-columns: 1fr; }
}
.usage-kpi {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7fafc;
}
.usage-kpi-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ciel-deep, #2c5d73);
}
.usage-kpi-value {
  margin: 0.2rem 0 0;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.usage-section-title {
  margin: 1.5rem 0 0.35rem;
  font-size: 1.05rem;
}
.usage-kpi-breakdown {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0.65rem 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.usage-kpi-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.92rem;
}
.usage-kpi-breakdown-row strong {
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}
.usage-kpi-breakdown .meta {
  margin: 0.15rem 0 0;
}

.hidden { display: none !important; }

/* Sélecteur de fichier FR (masque le chrome navigateur « Choose File ») */
.file-pick {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.file-pick-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.file-pick-btn {
  cursor: pointer;
  margin: 0;
  display: inline-flex;
  align-items: center;
}
.file-pick-name {
  margin: 0;
  word-break: break-all;
}

/* Éditeur de blocs documents école (sans JSON) */
.doc-blocks-editor {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 28rem;
  overflow: auto;
  padding: 0.15rem;
}
.doc-block-row {
  display: grid;
  grid-template-columns: minmax(8.5rem, 11rem) 1fr auto;
  gap: 0.5rem;
  align-items: start;
  padding: 0.65rem;
  border: 1px solid var(--line, #d5e0ea);
  border-radius: 8px;
  background: var(--panel-bg, #fff);
}
.doc-block-row select {
  width: 100%;
}
.doc-block-row textarea {
  width: 100%;
  min-height: 2.6rem;
  resize: vertical;
  field-sizing: content;
}
.doc-block-actions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.doc-block-actions .btn {
  padding: 0.2rem 0.45rem;
  font-size: 0.8rem;
  line-height: 1.2;
  min-width: 2rem;
}
.doc-blocks-empty {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--line, #d5e0ea);
  border-radius: 8px;
}
@media (max-width: 720px) {
  .doc-block-row {
    grid-template-columns: 1fr;
  }
  .doc-block-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.infos-layout-artboard {
  position: relative;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(16, 40, 60, 0.06);
}
.infos-layout-el {
  position: absolute;
  box-sizing: border-box;
}
.infos-layout-el--text {
  display: flex;
  align-items: flex-start;
}
.infos-layout-text {
  width: 100%;
}
.infos-layout-el--empty {
  background: repeating-linear-gradient(
    -45deg,
    #f0f4f8,
    #f0f4f8 6px,
    #e4ebf2 6px,
    #e4ebf2 12px
  );
}
.infos-layout-artboard.is-editable .infos-layout-el {
  cursor: move;
  outline: 1px solid transparent;
}
.infos-layout-artboard.is-editable .infos-layout-el.is-selected {
  outline: 2px solid var(--brand, #1a5f4a);
  outline-offset: 1px;
}
.infos-layout-handle {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 12px;
  height: 12px;
  background: var(--brand, #1a5f4a);
  border: 2px solid #fff;
  border-radius: 2px;
  cursor: nwse-resize;
  z-index: 5;
}
.infos-designer-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem);
  gap: 1rem;
  align-items: start;
}
.infos-designer-canvas-wrap {
  background: var(--panel-muted, #f3f6f9);
  border: 1px solid var(--line, #d5e0ea);
  border-radius: 12px;
  padding: 1rem;
  min-height: 20rem;
}
.infos-designer-canvas .infos-layout-artboard {
  max-width: 22rem;
}
.infos-designer-side {
  border: 1px solid var(--line, #d5e0ea);
  border-radius: 12px;
  padding: 0.85rem;
  background: var(--panel-bg, #fff);
}
.infos-designer-preview {
  max-width: 12rem;
}
.infos-designer-previews {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.infos-designer-preview--web {
  max-width: 100%;
}
.infos-designer-preview--web .infos-layout-artboard {
  max-width: 100%;
  border: 1px solid var(--line, #d5e0ea);
}
.infos-designer-preview--mobile {
  max-width: 11rem;
}
.infos-designer-preview .infos-layout-artboard,
.infos-designer-preview--mobile .infos-layout-artboard {
  max-width: 11rem;
  border: 1px solid var(--line, #d5e0ea);
}
.infos-card-layout {
  margin: 0.5rem 0;
}
@media (max-width: 900px) {
  .infos-designer-workspace {
    grid-template-columns: 1fr;
  }
}

.help-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.help-modal.hidden { display: none !important; }
.help-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 45, 0.45);
}
.help-modal-panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(90vh, 820px);
  display: flex;
  flex-direction: column;
  background: var(--panel-bg, #fff);
  border-radius: 14px;
  border: 1px solid var(--line, #d5e0ea);
  box-shadow: 0 18px 50px rgba(10, 30, 50, 0.2);
  overflow: hidden;
}
.help-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line, #d5e0ea);
}
.help-modal-tools {
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--line, #d5e0ea);
  display: grid;
  gap: 0.65rem;
}
.help-modal-tools input[type="search"] {
  width: 100%;
}
.help-tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.help-tab {
  border: 1px solid var(--line, #d5e0ea);
  background: transparent;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  font: inherit;
}
.help-tab.is-active {
  background: var(--brand, #1a5f4a);
  color: #fff;
  border-color: transparent;
}
.help-modal-body {
  display: grid;
  grid-template-columns: minmax(12rem, 16rem) 1fr;
  min-height: 0;
  flex: 1;
}
.help-index {
  overflow: auto;
  padding: 0.85rem 1rem;
  border-right: 1px solid var(--line, #d5e0ea);
  background: var(--panel-muted, #f5f8fb);
}
.help-detail {
  overflow: auto;
  padding: 1rem 1.15rem 1.25rem;
}
.help-cat-title {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #5a6b7a);
}
.help-cat:first-child .help-cat-title { margin-top: 0; }
.help-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.help-list li { margin: 0.15rem 0; }
.help-link {
  border: 0;
  background: transparent;
  color: var(--ciel-deep, #1a4a6e);
  font: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0.15rem 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.help-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: var(--muted, #5a6b7a);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
body.help-modal-open { overflow: hidden; }
@media (max-width: 720px) {
  .help-modal-body {
    grid-template-columns: 1fr;
  }
  .help-index {
    max-height: 36vh;
    border-right: 0;
    border-bottom: 1px solid var(--line, #d5e0ea);
  }
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.login-card { width: min(420px, 100%); }

.home-stack {
  width: min(720px, 100%);
  display: grid;
  gap: 1rem;
  justify-items: center;
}
.home-stack .login-card { width: min(420px, 100%); }

.signup-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
@media (max-width: 640px) {
  .signup-grid { grid-template-columns: 1fr; }
}

.signup-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ciel);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.signup-card:hover {
  border-color: var(--ciel-deep);
  transform: translateY(-1px);
}
.signup-card strong {
  display: block;
  font-family: var(--font);
  font-size: 1.15rem;
  color: var(--ciel-deep);
  margin-bottom: 0.35rem;
}
.signup-card span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.hero-mark {
  font-family: var(--font);
  font-size: 2rem;
  margin-bottom: 0.25rem;
  color: var(--navy);
}
.hero-mark em { font-style: normal; color: var(--ciel-deep); }

.btn-edit {
  background: var(--ciel);
  color: var(--on-ciel);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-edit:hover { background: color-mix(in srgb, var(--ciel) 86%, #fff); color: var(--on-ciel); }
.list li .btn-edit { min-width: 5.5rem; }

.detail-block { margin-top: 1.25rem; }
.divider { height: 1px; background: var(--line); margin: 1.1rem 0; }

.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: color-mix(in srgb, var(--ciel-soft) 55%, var(--bg));
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.password-wrap:focus-within {
  outline: 2px solid rgba(126, 182, 224, 0.4);
  border-color: var(--ciel);
}
.field .password-wrap input,
.password-wrap input {
  flex: 1;
  min-width: 0;
  width: auto;
  margin: 0;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0.7rem 0.4rem 0.7rem 0.85rem !important;
  border-radius: 0 !important;
  color: var(--text);
}
.field .password-wrap input:focus,
.password-wrap input:focus {
  outline: none !important;
  border: none !important;
}
.password-toggle {
  position: static;
  transform: none;
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  margin-right: 0.2rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.password-toggle:hover { color: var(--ciel-deep); }
.password-toggle .hidden { display: none !important; }

.empty { color: var(--muted); }

/* Vue semaine calendrier */
.week-cal { margin-top: 1rem; }
.week-cal-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.week-cal-grid {
  min-width: 720px;
  --week-gutter: 3.25rem;
  --week-hour-h: 3rem;
  --week-hours: 15;
}
.week-cal-grid.is-day-view {
  min-width: 280px;
}
.week-cal-head {
  display: grid;
  grid-template-columns: var(--week-gutter) repeat(var(--week-day-cols, 7), minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #f3f8fc;
  position: sticky;
  top: 0;
  z-index: 2;
}
.week-cal-corner { border-right: 1px solid var(--line); }
.week-cal-dayhead {
  padding: 0.55rem 0.35rem;
  text-align: center;
  border-right: 1px solid var(--line);
}
.week-cal-dayhead:last-child { border-right: none; }
.week-cal-dayhead.is-today {
  background: rgba(126, 182, 224, 0.22);
}
.week-cal-dow {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.week-cal-dom {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-top: 0.1rem;
}
.week-cal-body {
  display: grid;
  grid-template-columns: var(--week-gutter) minmax(0, 1fr);
  align-items: start;
}
.week-cal-gutter,
.week-cal-day {
  box-sizing: border-box;
  height: calc(var(--week-hours) * var(--week-hour-h));
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(var(--week-hour-h) - 1px),
    #e8f0f8 calc(var(--week-hour-h) - 1px),
    #e8f0f8 var(--week-hour-h)
  );
}
.week-cal-gutter {
  position: relative;
  border-right: 1px solid var(--line);
  background-color: #fafcfe;
}
.week-cal-hour {
  position: absolute;
  left: 0;
  right: 0.35rem;
  margin: 0;
  padding: 0;
  border: none;
  font-size: 0.7rem;
  line-height: 1;
  color: var(--muted);
  text-align: right;
  transform: translateY(-50%);
  pointer-events: none;
  background: transparent;
}
.week-cal-hour[data-hour-i="0"] {
  transform: translateY(0.1rem);
}
.week-cal-dayhead.is-clickable {
  cursor: pointer;
}
.week-cal-dayhead.is-clickable:hover {
  background: rgba(126, 182, 224, 0.18);
}
.week-cal-days {
  display: grid;
  grid-template-columns: repeat(var(--week-day-cols, 7), minmax(0, 1fr));
  min-height: calc(var(--week-hours) * var(--week-hour-h));
}
.week-cal-day {
  position: relative;
  border-right: 1px solid var(--line);
  background-color: #fff;
}
.week-cal-day:last-child { border-right: none; }
.week-cal-day.is-today { background-color: rgba(126, 182, 224, 0.08); }
.week-cal-day.is-createable { cursor: crosshair; }
.week-cal-day.is-createable:hover { background-color: rgba(126, 182, 224, 0.14); }
.week-cal-line { display: none; }
.week-cal-event {
  position: absolute;
  left: 3px;
  right: 3px;
  box-sizing: border-box;
  border-radius: 8px;
  padding: 0.25rem 0.35rem;
  overflow: hidden;
  font-size: 0.72rem;
  line-height: 1.2;
  box-shadow: 0 1px 4px rgba(26, 58, 92, 0.12);
  z-index: 1;
  pointer-events: auto;
}
.week-cal-event.is-clickable:hover {
  filter: brightness(1.05);
  z-index: 20 !important;
}
.week-cal-event.is-slot {
  background: var(--ciel);
  color: var(--on-ciel);
}
.week-cal-event.is-planned,
.month-cal-pill.is-planned {
  opacity: 0.72;
  box-shadow: none;
  outline: 1px dashed rgba(255, 255, 255, 0.85);
  outline-offset: -2px;
}
.cal-legend-host {
  margin: 0.65rem 0 0.35rem;
}
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
  font-size: 0.82rem;
  color: var(--ink-muted, #5a6a7a);
}
.cal-legend strong {
  color: var(--navy, #1a3a5c);
  font-weight: 600;
  margin-right: 0.15rem;
}
.cal-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.cal-legend-item i {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
  flex-shrink: 0;
}
.cal-legend-item i.cal-legend-school {
  background: #94a3b8;
  outline: 1px dashed #64748b;
  outline-offset: 1px;
}
.cal-legend-item i.cal-legend-mine {
  background: #0d9488;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.35);
}
.cal-filter-bar {
  margin: 0.35rem 0 0.55rem;
  gap: 0.35rem;
}
.cal-type-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.45rem;
  margin: 0.55rem 0 0.65rem;
}
.cal-type-filters-label {
  margin-right: 0.15rem;
}
.cal-type-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
}
.cal-type-chip:hover {
  border-color: var(--ciel-deep, #5a8fb8);
  color: var(--navy);
}
.cal-type-chip.is-active {
  background: rgba(126, 182, 224, 0.28);
  border-color: var(--ciel-deep, #5a8fb8);
  color: var(--navy);
}
.cal-item-badge.is-volunteer {
  background: #fef3c7;
  color: #92400e;
}
.cal-item-badge.is-volunteer-avail {
  background: rgba(47, 107, 79, 0.2);
  color: #14532d;
}
.cal-legend-item i.cal-legend-volunteer {
  background: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35);
}
.cal-legend-item i.cal-legend-volunteer-avail {
  background: #2f6b4f;
  box-shadow: 0 0 0 2px rgba(47, 107, 79, 0.35);
}
.week-cal-event.is-volunteer,
.month-cal-pill.is-volunteer {
  box-shadow: inset 3px 0 0 #f59e0b;
}
.week-cal-event.is-volunteer-avail,
.month-cal-pill.is-volunteer-avail {
  background: #2f6b4f !important;
  color: #fff;
  opacity: 0.9;
  border: 1px dashed rgba(255, 255, 255, 0.55);
  box-shadow: none;
}
.cal-item-badge {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.08rem 0.28rem;
  border-radius: 3px;
  margin-bottom: 0.12rem;
  line-height: 1.2;
}
.cal-item-badge.is-school {
  background: rgba(255, 255, 255, 0.28);
  color: inherit;
}
.cal-item-badge.is-mine {
  background: #ccfbf1;
  color: #0f766e;
}
.week-cal-event.is-school,
.month-cal-pill.is-school {
  opacity: 0.82;
}
.week-cal-event.is-mine,
.month-cal-pill.is-mine {
  box-shadow: 0 0 0 2px #0d9488, 0 1px 4px rgba(26, 58, 92, 0.12);
}
.week-cal-event.is-individual {
  background: #0f766e !important;
  color: #fff;
}
.family-cal-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.family-cal-item {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d5e3f0;
  border-radius: 10px;
  background: #fff;
}
.family-cal-item.is-individual {
  border-color: #99f6e4;
  background: #f0fdfa;
}
.family-cal-item.is-session {
  border-left: 4px solid var(--ciel, #7eb6e0);
}
.family-cal-next-host {
  margin: 0.85rem 0 0;
}
.family-cal-next {
  padding: 0.85rem 1rem;
  border: 1px solid #d5e3f0;
  border-left: 4px solid var(--ciel-deep, #2f6f9f);
  border-radius: 10px;
  background: #f7fbfe;
}
.family-cal-next-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.family-cal-next strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
}
.card {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line, #dde3ea);
  border-radius: 10px;
  background: #fff;
}
.family-cal-item-when {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.85rem;
  color: #5a6a7a;
}
.family-cal-item-when strong {
  color: #1a3a5c;
  text-transform: capitalize;
}
.family-cal-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: #e8f0f8;
  color: #1a3a5c;
  margin-bottom: 0.25rem;
}
.family-cal-item.is-individual .family-cal-badge {
  background: #ccfbf1;
  color: #0f766e;
}
.coach-att-list .coach-att-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.coach-att-btns {
  display: inline-flex;
  gap: 0.25rem;
}
.coach-att-btn.is-active {
  background: var(--ciel, #7eb6e0);
  color: var(--on-ciel);
  border-color: transparent;
}
.volunteer-cal-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.coach-player-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.coach-player-stat {
  min-width: 4.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: #eef5fb;
  text-align: center;
}
.coach-player-stat strong {
  display: block;
  font-size: 1.15rem;
  color: #1a3a5c;
}
.coach-player-stat span {
  font-size: 0.72rem;
  color: #5a6a7a;
}
.coach-feedback-item {
  border-left: 3px solid #0d9488;
  padding-left: 0.65rem;
}
.week-cal-event-time {
  display: block;
  opacity: 1;
  font-size: 0.65rem;
}
.week-cal-event-title {
  display: block;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.week-cal-del {
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 5;
  width: 1.25rem;
  height: 1.25rem;
  border: none;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  font-size: 0.95rem;
  pointer-events: auto;
}
.week-cal-del:hover { background: rgba(0,0,0,0.55); }
.week-cal-event.is-clickable { cursor: pointer; }
.month-cal-pill.is-clickable { cursor: pointer; }
.list li.is-clickable {
  cursor: pointer;
  transition: background 0.12s ease;
}
.list li.is-clickable:hover,
.list li.is-clickable:focus-visible {
  background: #eaf3fb;
  outline: none;
}

.cal-peek-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.cal-peek-section { margin: 0 0 1rem; }
.cal-peek-section h3 {
  margin: 0 0 0.45rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.cal-peek-staff-row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.35rem 0.75rem;
  margin: 0.2rem 0;
  font-size: 0.92rem;
}
.cal-peek-staff-label { color: var(--muted); }
.cal-peek-global {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  flex-wrap: wrap;
}
.cal-peek-rate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  background: #e8f0f8;
  color: var(--navy);
}
.cal-peek-rate.is-ok { background: #d8f0e2; color: #1b5e3b; }
.cal-peek-rate.is-warn { background: #fff0d6; color: #8a5a00; }
.cal-peek-rate.is-bad { background: #fde2e2; color: #8b1e1e; }
.cal-peek-players { margin: 0; }
.cal-peek-players li {
  display: block;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}
.cal-peek-players li:last-child { border-bottom: none; }
.cal-peek-player-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26, 58, 92, 0.45);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.modal-backdrop.hidden { display: none !important; }
.modal-card {
  width: min(720px, 100%);
  max-height: min(85vh, 900px);
  overflow: auto;
  margin: 0;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ciel);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: 0 12px 40px rgba(26, 58, 92, 0.28);
}
.cal-peek-card { max-width: 32rem; }

@media (max-width: 700px) {
  .week-cal-grid { min-width: 640px; }
}

.cal-mode {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.cal-mode button {
  border: none;
  background: transparent;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
}
.cal-mode button.active {
  background: var(--ciel);
  color: var(--on-ciel);
}
.cal-host { margin-top: 1rem; }

.comm-schema {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 1rem;
}
.comm-schema--stack {
  grid-template-columns: 1fr;
  max-width: 28rem;
}
.comm-schema-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: #f8fbfe;
}
.comm-schema-card strong {
  display: block;
  font-size: 0.88rem;
  color: var(--navy);
}
.comm-schema-card p {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}
.comm-schema-card.is-highlight {
  border-color: var(--ciel-deep);
  background: #eef6fc;
}
.comm-schema-arrow {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.1rem 0;
}
@media (max-width: 720px) {
  .comm-schema:not(.comm-schema--stack) {
    grid-template-columns: 1fr;
  }
}

.time-hm {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.time-hm select {
  flex: 1;
  min-width: 0;
}
.time-hm span {
  color: var(--muted);
  font-weight: 600;
}

.month-cal {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
  background: #fff;
}
.month-cal-head {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-width: 640px;
  background: #f3f8fc;
  border-bottom: 1px solid var(--line);
}
.month-cal-dow {
  padding: 0.55rem 0.25rem;
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-right: 1px solid var(--line);
}
.month-cal-dow:last-child { border-right: none; }
.month-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: minmax(96px, auto);
  min-width: 640px;
}
.month-cal-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  width: 100%;
  min-width: 0;
  min-height: 96px;
  padding: 0.35rem;
  border: none;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.month-cal-cell:nth-child(7n) { border-right: none; }
.month-cal-cell.is-out { background: #f7fafc; color: var(--muted); }
.month-cal-cell.is-today { background: rgba(126, 182, 224, 0.12); }
.month-cal-cell:hover { background: #eef6fc; }
.month-cal-add {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 1.35rem;
  height: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ciel-deep);
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  opacity: 0.55;
}
.month-cal-cell:hover .month-cal-add,
.month-cal-add:focus {
  opacity: 1;
  border-color: var(--ciel-deep);
  background: var(--badge-bg, #eef6fc);
}
.month-cal-num {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
  border-radius: 4px;
}
.month-cal-num:hover,
.month-cal-num:focus-visible {
  background: rgba(126, 182, 224, 0.22);
  outline: none;
}
.month-cal-cell.is-out .month-cal-num { color: var(--muted); font-weight: 500; }
.month-cal-pills {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 0;
}
.month-cal-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  border-radius: 6px;
  padding: 0.15rem 0.3rem;
  font-size: 0.68rem;
  line-height: 1.2;
  color: #fff;
}
.month-cal-pill > span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.month-cal-del {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  font-size: 0.75rem;
}
.month-cal-del:hover { background: rgba(255,255,255,0.5); }
.month-cal-pill.is-slot { background: var(--ciel); }
.month-cal-pill.is-event { background: var(--navy); }
.month-cal-more {
  font-size: 0.68rem;
  color: var(--muted);
  padding-left: 0.15rem;
}

.import-preview {
  overflow: auto;
  max-height: 320px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--ciel-soft) 55%, var(--bg));
}
.import-preview table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.import-preview th,
.import-preview td {
  padding: 0.4rem 0.55rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
.import-preview th {
  position: sticky;
  top: 0;
  background: #eaf3fb;
  color: var(--navy);
  font-weight: 600;
}
.import-preview tr.is-error td { background: rgba(201, 75, 75, 0.08); color: var(--danger); }
.import-preview tr.is-warn td { background: rgba(212, 160, 23, 0.12); }
.import-preview tr.is-ok td { color: var(--text); }
.import-preview .status-pill {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}
.import-preview tr.is-error .status-pill { border-color: var(--danger); color: var(--danger); }
.import-preview tr.is-warn .status-pill { border-color: #d4a017; color: #8a6a00; }
.import-preview tr.is-ok .status-pill { border-color: var(--ok); color: var(--ok); }

@media (max-width: 700px) {
  .month-cal-grid { grid-auto-rows: minmax(72px, auto); }
  .month-cal-pill { font-size: 0.6rem; }
}

/* Présences */
.attendance-host h3 { margin-bottom: 0.35rem; }
.att-sheet {
  margin-top: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: color-mix(in srgb, var(--ciel-soft) 55%, var(--bg));
}
.att-sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}
.att-counters { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.att-stats-block {
  margin-top: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: #fff;
}
.att-stats-group-head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.att-stats-players { margin: 0; }
.att-stats-player {
  display: block !important;
  padding: 0.65rem 0;
}
.att-stats-player + .att-stats-player { border-top: 1px solid var(--line); }
.att-stats-player-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.att-stats-player.is-warn { background: rgba(212, 160, 23, 0.06); margin: 0 -0.5rem; padding-left: 0.5rem; padding-right: 0.5rem; border-radius: 8px; }
.att-list { margin: 0; }
.att-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(5rem, 0.8fr);
  gap: 0.5rem 0.75rem;
  align-items: center;
}
.att-actions { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.att-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
}
.att-btn:hover:not(:disabled) { filter: brightness(0.97); }
.att-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.att-btn--present { background: rgba(47, 143, 91, 0.12); color: #2f8f5b; border-color: rgba(47, 143, 91, 0.4); }
.att-btn--present.active { background: #2f8f5b; color: #fff; border-color: #246f46; }

.att-btn--late { background: rgba(212, 160, 23, 0.15); color: #8a6a00; border-color: rgba(212, 160, 23, 0.5); }
.att-btn--late.active { background: #d4a017; color: #fff; border-color: #a67c00; }

.att-btn--absent { background: rgba(201, 75, 75, 0.12); color: #c94b4b; border-color: rgba(201, 75, 75, 0.4); }
.att-btn--absent.active { background: #c94b4b; color: #fff; border-color: #a33a3a; }

.att-btn--excused { background: #eaf3fb; color: var(--ciel-deep); border-color: rgba(126, 182, 224, 0.55); }
.att-btn--excused.active { background: var(--ciel-deep); color: #fff; border-color: var(--navy); }

.att-btn--competition { background: rgba(126, 182, 224, 0.2); color: var(--navy); border-color: var(--ciel); }
.att-btn--competition.active { background: var(--ciel); color: var(--on-ciel); border-color: var(--ciel-deep); }
.att-note {
  width: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  font: inherit;
  font-size: 0.8rem;
}
.badge.att-present { background: rgba(47, 143, 91, 0.12); color: var(--ok); border-color: rgba(47, 143, 91, 0.35); }
.badge.att-late { background: rgba(212, 160, 23, 0.15); color: #8a6a00; border-color: rgba(212, 160, 23, 0.45); }
.badge.att-absent { background: rgba(201, 75, 75, 0.12); color: var(--danger); border-color: rgba(201, 75, 75, 0.35); }
.badge.att-excused { background: #eaf3fb; color: var(--ciel-deep); }
.badge.att-competition { background: rgba(126, 182, 224, 0.2); color: var(--navy); border-color: var(--ciel); }
/* Taux % — couleur distincte des badges P/R/A/E/C */
.badge.att-pct {
  background: #e6f4f4;
  color: #0d5c63;
  border-color: rgba(13, 92, 99, 0.35);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.badge.att-pct--high {
  background: #d8f0e8;
  color: #1a6b4a;
  border-color: rgba(26, 107, 74, 0.4);
}
.badge.att-pct--mid {
  background: #fff3e0;
  color: #9a5b00;
  border-color: rgba(154, 91, 0, 0.4);
}
.badge.att-pct--low {
  background: #fde8e8;
  color: #a33a3a;
  border-color: rgba(163, 58, 58, 0.4);
}
.att-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: var(--muted, #6b7c8f);
  line-height: 1.45;
}
.att-legend .badge { font-size: 0.72rem; }
.coach-player-stat--pct strong { color: #0d5c63; }
.coach-player-stat--pct.att-pct--high strong { color: #1a6b4a; }
.coach-player-stat--pct.att-pct--mid strong { color: #9a5b00; }
.coach-player-stat--pct.att-pct--low strong { color: #a33a3a; }
.att-history-block .list li { padding: 0.45rem 0; }
.att-history-mini { margin: 0; }
@media (max-width: 700px) {
  .att-row {
    grid-template-columns: 1fr;
  }
}

.att-warn {
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: rgba(201, 75, 75, 0.1);
  color: var(--danger);
  border: 1px solid rgba(201, 75, 75, 0.28);
  font-size: 0.9rem;
}
.att-warn.hidden { display: none !important; }
.att-ok {
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: rgba(47, 143, 91, 0.1);
  color: var(--ok);
  border: 1px solid rgba(47, 143, 91, 0.28);
  font-size: 0.9rem;
}
.pres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}
.pres-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: color-mix(in srgb, var(--ciel-soft) 55%, var(--bg));
}
.pres-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
  flex-wrap: wrap;
}
.pres-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.pres-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.pres-table th,
.pres-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}
.pres-table th {
  background: #f0f5fa;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted, #5a6b7d);
}
.pres-table tbody tr:last-child td { border-bottom: none; }
.pres-table-nested {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0.25rem 0 0.5rem;
  background: #fafcfe;
}
.pres-table-nested th {
  background: #e8f0f7;
  font-size: 0.75rem;
}
.pres-row-detail > td {
  padding: 0.35rem 0.65rem 0.75rem;
  background: color-mix(in srgb, var(--ciel-soft) 55%, var(--bg));
  white-space: normal;
}
.pres-row-warn td:first-child,
.pres-row-alarm td:first-child {
  box-shadow: inset 3px 0 0 var(--danger, #c94b4b);
}
.pres-row-alarm {
  background: rgba(201, 75, 75, 0.06);
}
.att-warn-list .list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.att-warn-list .list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(201, 75, 75, 0.15);
}
.att-warn-list .list li:last-child { border-bottom: none; }

.check-label,
.mevt-choice {
  display: grid !important;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  column-gap: 0.5rem;
  align-items: start;
  gap: 0.5rem;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-size: 0.95rem !important;
  color: var(--text) !important;
  cursor: pointer;
  line-height: 1.35;
  max-width: 100%;
  margin: 0.35rem 0;
}
.check-label input[type="checkbox"],
.check-label input[type="radio"],
.mevt-choice input[type="checkbox"],
.mevt-choice input[type="radio"] {
  width: 1rem;
  height: 1rem;
  margin: 0.15rem 0 0;
  accent-color: var(--navy, #1a3a5c);
}
.check-label > span,
.mevt-choice > span {
  min-width: 0;
}

.dir-share-line {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
  max-width: 100%;
}


/* Droits admin — matrice domaine × actions */
.admin-caps-matrix {
  width: 100%;
  overflow-x: auto;
}
.admin-caps-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.admin-caps-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 32rem;
}
.admin-caps-table th,
.admin-caps-table td {
  border: 1px solid var(--line);
  padding: 0.45rem 0.5rem;
  text-align: center;
  vertical-align: middle;
}
.admin-caps-table thead th {
  background: #eaf3fb;
  color: var(--ciel-deep);
  font-weight: 600;
  white-space: nowrap;
}
.admin-caps-table tbody th {
  text-align: left;
  font-weight: 600;
  background: #fafbfc;
  min-width: 8.5rem;
}
.admin-caps-domain {
  display: block;
}
.admin-caps-hint {
  display: block;
  font-weight: 400;
  margin-top: 0.15rem;
}
.admin-cap-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  cursor: pointer;
  min-width: 1.75rem;
  min-height: 1.75rem;
}
.admin-caps-na {
  color: var(--muted);
  background: #f7f8f9;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Fil Infos (1A) ─────────────────────────────────────── */
.infos-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.75rem;
  max-width: 40rem;
}
.infos-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin: 0 0 0.65rem;
  border-left-width: 4px;
}
.infos-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}
.infos-fav-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.1rem 0.2rem;
  flex-shrink: 0;
}
.infos-fav-btn.is-on,
.infos-fav-btn:hover {
  color: var(--navy);
}
.infos-media {
  margin: 0.55rem 0 0.75rem;
  border-radius: 10px;
  overflow: hidden;
  background: #0f1f33;
}
.infos-media img,
.infos-media video {
  display: block;
  width: 100%;
  max-height: 22rem;
  object-fit: contain;
  background: #0f1f33;
}
#infos-posts-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
#infos-posts-list > li {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}
.subtabs,
.infos-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.subtab,
.infos-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}
.subtab.is-active,
.subtab.active,
.infos-tab.is-active,
.dm-filter-row .btn.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.infos-tab.active {
  border-color: var(--ciel-deep);
  background: #eaf3fb;
  font-weight: 700;
}

/* Couleurs distinctes par fil Infos */
.infos-tab[data-feed="school"] {
  border-color: #b7d4ee;
}
.infos-tab[data-feed="school"].is-active,
.infos-tab[data-feed="school"].active {
  background: #dceef8;
  border-color: #4a90c8;
}
.infos-tab[data-feed="technical"] {
  border-color: #e0c9a8;
}
.infos-tab[data-feed="technical"].is-active,
.infos-tab[data-feed="technical"].active {
  background: #f3e4d0;
  border-color: #c49a6c;
}
.infos-tab[data-feed="groups"] {
  border-color: #a8d4bc;
}
.infos-tab[data-feed="groups"].is-active,
.infos-tab[data-feed="groups"].active {
  background: #d5efe4;
  border-color: #2f8f5b;
}
.infos-tab[data-feed="club_junior"] {
  border-color: #c5bddf;
}
.infos-tab[data-feed="club_junior"].is-active,
.infos-tab[data-feed="club_junior"].active {
  background: #e6dff6;
  border-color: #6b5cad;
}
.infos-tab[data-feed="players"] {
  border-color: #e5b8c0;
}
.infos-tab[data-feed="players"].is-active,
.infos-tab[data-feed="players"].active {
  background: #f6dde2;
  border-color: #c96b7a;
}

.infos-tab-panels {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.infos-tab-panel {
  display: none;
  flex-direction: column;
  gap: 0.65rem;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 0.65rem;
}
.infos-tab-panel.is-active {
  display: flex;
}
.infos-tab-panel[data-feed="school"] {
  background: #dceef8;
  border-color: #b7d4ee;
}
.infos-tab-panel[data-feed="school"] .infos-card {
  background: #f2f8fc;
  border-color: #4a90c8;
}
.infos-tab-panel[data-feed="technical"] {
  background: #f3e4d0;
  border-color: #e0c9a8;
}
.infos-tab-panel[data-feed="technical"] .infos-card {
  background: #faf3ea;
  border-color: #c49a6c;
}
.infos-tab-panel[data-feed="groups"] {
  background: #d5efe4;
  border-color: #a8d4bc;
}
.infos-tab-panel[data-feed="groups"] .infos-card {
  background: #eef8f3;
  border-color: #2f8f5b;
}
.infos-tab-panel[data-feed="club_junior"] {
  background: #e6dff6;
  border-color: #c5bddf;
}
.infos-tab-panel[data-feed="club_junior"] .infos-card {
  background: #f4f0fb;
  border-color: #6b5cad;
}
.infos-tab-panel[data-feed="players"] {
  background: #f6dde2;
  border-color: #e5b8c0;
}
.infos-tab-panel[data-feed="players"] .infos-card {
  background: #fbf0f2;
  border-color: #c96b7a;
}
.infos-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.infos-section-title {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.infos-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 6px 18px rgba(26, 58, 92, 0.05);
}
.infos-card--event {
  border-left: 4px solid var(--ciel-deep);
}
.infos-card--pedagogy {
  border-left: 4px solid var(--ciel);
  background: linear-gradient(180deg, #fafcfe 0%, #fff 55%);
}
.infos-card--assignment {
  border-left: 4px solid var(--ciel-deep);
  background: linear-gradient(180deg, rgba(126, 182, 224, 0.14) 0%, #fff 60%);
}
.infos-coach-todos {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0 0 1rem;
}
.infos-coach-todos .infos-card--assignment .row-actions {
  margin-top: 0.75rem;
}
.infos-card-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ciel-deep);
  font-weight: 600;
}
.infos-card-title {
  margin: 0 0 0.4rem;
  font-family: var(--font);
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.3;
}
.infos-card-meta,
.infos-card-when {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}
.infos-card-body {
  margin-top: 0.45rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
  white-space: normal;
}
.infos-card-body.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.infos-card-more {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ciel-deep);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0 0;
  cursor: pointer;
  text-align: left;
}
.infos-card-media-wrap {
  margin-top: 0.45rem;
}
.infos-card-progress {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
}
.infos-card-progress > strong {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.ped-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.ped-progress-pct {
  font-weight: 800;
  color: var(--ciel-deep, #1a6fa8);
  font-size: 1.05rem;
}
.ped-progress-bar {
  height: 8px;
  border-radius: 6px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 0.65rem;
}
.ped-progress-bar > span {
  display: block;
  height: 100%;
  background: var(--ciel-deep, #1a6fa8);
  border-radius: 6px;
}
.ped-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.ped-steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.92rem;
  line-height: 1.35;
}
.ped-steps-list li.is-done {
  opacity: 0.75;
  text-decoration: line-through;
}
.ped-step-check {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid var(--line);
  border-radius: 4px;
  margin-top: 0.1rem;
}
.ped-steps-list li.is-done .ped-step-check {
  border-color: #2f8f5b;
  background: #2f8f5b;
}
.ped-steps-editor {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}
.ped-step-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.ped-step-row input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}
.ped-step-row .ped-step-title {
  flex: 1;
  font-size: 0.92rem;
}
.ped-step-row .ped-step-remove {
  border: 0;
  background: transparent;
  color: #c94b4b;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.15rem 0.25rem;
}
.ped-step-add {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.ped-step-add input {
  flex: 1;
}
.nested-panel {
  background: color-mix(in srgb, var(--ciel-soft) 55%, var(--bg));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.field textarea {
  width: 100%;
  background: color-mix(in srgb, var(--ciel-soft) 55%, var(--bg));
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  resize: vertical;
  min-height: 5rem;
  font: inherit;
}
.field textarea:focus {
  outline: 2px solid rgba(126, 182, 224, 0.4);
  border-color: var(--ciel);
}

.infos-card-photo,
.infos-card-media {
  margin: 0.55rem 0 0.35rem;
  border-radius: 10px;
  overflow: hidden;
  background: #eaf3fb;
  border: 1px solid var(--line);
}
.infos-card-photo img,
.infos-card-media img,
.infos-card-media video {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  background: #0f2438;
}
.infos-card-media video {
  object-fit: contain;
  max-height: 360px;
}
.infos-card--post {
  border-left: 4px solid var(--ok);
}


.infos-audience-checks {
  max-height: 12rem;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.infos-audience-item {
  display: grid !important;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  column-gap: 0.5rem;
  align-items: start;
  margin: 0 !important;
  padding: 0.28rem 0.15rem;
  line-height: 1.35;
  cursor: pointer;
}
.infos-audience-item input[type="checkbox"],
.infos-audience-item input[type="radio"] {
  width: 1rem;
  height: 1rem;
  margin: 0.15rem 0 0;
  accent-color: var(--navy, #1a3a5c);
}
.infos-audience-item > span {
  min-width: 0;
}
.infos-audience-item.hidden { display: none !important; }

/* Options hors liste (RSVP, Staff…) — alias de .check-label */


.infos-audience-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.55rem 0.7rem;
  margin: 0.35rem 0 0.45rem;
  padding: 0.65rem 0.75rem;
  background: linear-gradient(180deg, #fafcfe 0%, #f2f7fc 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.infos-audience-filters .field {
  margin-bottom: 0;
  flex: 0 0 auto;
  min-width: 0;
}
.infos-audience-filters .field--search {
  flex: 1 1 10rem;
  min-width: min(100%, 9rem);
}
.infos-audience-filters .field label {
  white-space: nowrap;
}
.infos-audience-filters .field input,
.infos-audience-filters .field select {
  background: #fff;
  min-height: 2.35rem;
  padding: 0.45rem 0.65rem;
}
.infos-audience-filters .field select {
  width: max-content;
  min-width: 8.5rem;
  max-width: min(100%, 16rem);
}
.btn-sm {
  min-height: 2.35rem !important;
  padding: 0.35rem 0.65rem !important;
  font-size: 0.85rem !important;
  white-space: nowrap;
}


/* Charte école */
.charter-block .charter-scroll { max-height: 280px; }
.charter-sign-label { margin: 0.75rem 0 0.25rem; }
.charter-header h2 { margin: 0.25rem 0; font-size: 1.25rem; }
.charter-kicker {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #5a6b7d);
}
.charter-quote {
  margin: 0.75rem 0;
  padding: 0.65rem 0.85rem;
  border-left: 3px solid var(--ciel-deep, #1a6bb5);
  background: #f0f7fc;
  font-style: italic;
  color: var(--text);
}
.charter-article h4 { margin: 0.85rem 0 0.3rem; font-size: 0.95rem; }
/* Overlay plein écran : ne doit PAS pousser le header / la nav vers le bas */
.charter-gate-host:not(.hidden) {
  position: fixed;
  inset: 0;
  z-index: 100;
  margin: 0;
  padding: 1rem 1rem 2rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(247, 251, 255, 0.97);
  backdrop-filter: blur(6px);
}
.charter-gate-host .charter-gate-panel {
  max-width: 40rem;
  margin: 1.25rem auto;
  box-shadow: var(--shadow, 0 8px 28px rgba(26, 58, 92, 0.12));
}
.badge.charter-ok { background: #e6f6ea; color: #1b6b35; }
.badge.charter-miss { background: #fff3cd; color: #7a5b00; }


/* Suivi tests / Trackman */
.player-stats-host { margin-top: 0.75rem; }
.stats-section-title { margin: 0.75rem 0 0.35rem; font-size: 1.05rem; }
.stats-overall-card {
  border: 1px solid var(--ciel-deep, #4a90c8);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0.45rem 0 0.85rem;
  background: #fff;
}
.stats-overall-pct {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy, #1a3a5c);
  line-height: 1.2;
  margin-top: 0.25rem;
}
.stats-compartments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.stats-compartment-card {
  border: 1px solid var(--line, #c5daf0);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  background: color-mix(in srgb, var(--ciel-soft) 55%, var(--bg));
}
.stats-compartment-ex {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
}
.stats-compartment-ex li {
  padding: 0.4rem 0;
  border-top: 1px solid var(--line, #e2eef8);
}
.stats-pct {
  font-weight: 700;
  color: var(--ciel-deep, #4a90c8);
  white-space: nowrap;
}
.stats-pct-lg { font-size: 1.05rem; }
.stats-result-card {
  border: 1px solid var(--line, #c5daf0);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  margin: 0.45rem 0;
  background: color-mix(in srgb, var(--ciel-soft) 55%, var(--bg));
}
.stats-result-card .meta { margin: 0.2rem 0; }
.stats-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.35rem 0.75rem;
  margin-top: 0.35rem;
}
.stats-metric {
  font-size: 0.86rem;
}
.stats-metric strong { display: block; font-size: 0.78rem; color: var(--muted, #5a6b7d); font-weight: 600; }
.stats-evo {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.84rem;
}
.stats-evo li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.2rem 0;
  border-bottom: 1px solid var(--line, #e2eef8);
}
.stats-record-grid-scroll {
  overflow-x: auto;
  margin: 0.5rem 0 0.25rem;
  border: 1px solid var(--line, #c5daf0);
  border-radius: 10px;
  background: #fff;
}
.stats-record-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 28rem;
}
.stats-record-table th,
.stats-record-table td {
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid var(--line, #e2eef8);
  text-align: left;
  vertical-align: middle;
}
.stats-record-table th {
  background: #eef5fc;
  font-weight: 600;
  white-space: nowrap;
  position: sticky;
  top: 0;
}
.stats-record-table .player-name {
  white-space: nowrap;
  font-weight: 600;
  min-width: 8rem;
}
.stats-record-table .metric-unit {
  font-weight: 400;
  color: var(--muted, #5a6b7d);
  font-size: 0.78rem;
}
.stats-record-table input[type="number"],
.stats-record-table .stats-metric-input {
  width: 5.25rem;
  max-width: 100%;
  min-width: 4rem;
  padding: 0.35rem 0.4rem;
  border: 1px solid var(--line, #c5daf0);
  border-radius: 6px;
  font: inherit;
}
.stats-record-table tr.stats-record-focus {
  background: #fff8e6;
}
.stats-record-table tr:last-child td {
  border-bottom: none;
}

.plan-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line, #e2eef8);
}
.plan-order-item:last-child {
  border-bottom: none;
}
.plan-order-label {
  flex: 1;
  min-width: 0;
}
.plan-order-actions {
  display: inline-flex;
  gap: 0.25rem;
  flex-shrink: 0;
}
.plan-order-btn {
  min-width: 2rem;
  padding: 0.2rem 0.45rem;
  line-height: 1.2;
}
.plan-order-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 800px) {
  .catalog-exercises-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Messagerie WhatsApp */
.messages-root { margin-top: 0.5rem; }
.chat-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  min-height: min(70vh, 640px);
}
@media (max-width: 800px) {
  .chat-layout { grid-template-columns: 1fr; min-height: auto; }
}
.chat-sidebar {
  border-right: 1px solid var(--line);
  padding: 0.85rem;
  background: color-mix(in srgb, var(--ciel-soft) 55%, var(--bg));
  max-height: min(70vh, 640px);
  overflow: auto;
}
.chat-main {
  display: flex;
  flex-direction: column;
  min-height: min(70vh, 640px);
}
.chat-thread-header {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.chat-thread-heading {
  min-width: 0;
  flex: 1;
}
.chat-thread-subtitle {
  margin: 0.25rem 0 0;
  line-height: 1.35;
}
.chat-time-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.15rem;
}
.chat-fav-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0 0.15rem;
}
.chat-fav-btn.is-on,
.chat-fav-btn:hover {
  color: var(--navy);
}
.chat-report-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0 0.15rem;
  opacity: 0.75;
}
.chat-report-btn:hover {
  color: var(--danger, #b42318);
  opacity: 1;
}
.fav-section {
  margin-bottom: 1.25rem;
}
.fav-section-title {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  color: var(--navy);
}
.fav-msg-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.55rem;
  background: #fff;
}
.chat-readonly-banner {
  padding: 0.55rem 1rem;
  background: #eaf3fb;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--navy);
}
.chat-thread {
  flex: 1;
  overflow: auto;
  padding: 1rem;
  background: #f0f6fc;
}
.chat-composer {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat-composer .chat-input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font: inherit;
}
.chat-poll-form {
  padding: 0.75rem;
  border-top: 1px solid var(--line);
  background: #f8fbfd;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.chat-poll-form .chat-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font: inherit;
}
.chat-poll-option-row {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
.chat-poll-card {
  max-width: min(92%, 26rem);
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.chat-bubble-row.mine .chat-poll-card {
  border-color: color-mix(in srgb, var(--ciel) 55%, var(--line));
  background: #fff;
}
.chat-poll-question {
  font-weight: 650;
  margin-bottom: 0.25rem;
  color: var(--navy);
}
.chat-poll-options-live {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.45rem;
}
.chat-poll-option {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  background: #fff;
  font: inherit;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
}
.chat-poll-option:disabled {
  cursor: default;
  opacity: 0.95;
}
.chat-poll-option.is-mine {
  border-color: var(--ciel);
  font-weight: 600;
}
.chat-poll-option-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: color-mix(in srgb, var(--ciel) 28%, transparent);
  z-index: 0;
  pointer-events: none;
}
.chat-poll-option-label,
.chat-poll-option-meta {
  position: relative;
  z-index: 1;
}
.chat-poll-option-meta {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}
.chat-list-item {
  display: flex;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  padding: 0.55rem;
  cursor: pointer;
  margin-bottom: 0.25rem;
  font: inherit;
  color: inherit;
}
.chat-list-item:hover,
.chat-list-item.active {
  background: #fff;
  border-color: var(--line);
}
.chat-list-title {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: inherit;
}
.chat-list-item.unread .chat-list-title { font-weight: 700; }
.chat-unread-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #e85d4c;
  flex-shrink: 0;
  align-self: center;
}
.chat-avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: #eaf3fb;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.coaching-progress-track {
  height: 0.55rem;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.coaching-progress-fill {
  height: 100%;
  background: var(--ciel-deep);
  border-radius: 999px;
}
.coaching-goal-list li.coaching-goal-row {
  align-items: flex-start;
}
.coaching-check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.coaching-check input {
  margin-top: 0.25rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--ok);
  flex-shrink: 0;
}
.coaching-check .done {
  text-decoration: line-through;
  color: var(--muted);
}
.coaching-check .done strong {
  font-weight: 600;
}
.profile-photo-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.75rem 0 1rem;
}
.profile-avatar-lg {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 999px;
  background: #eaf3fb;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.6rem;
  flex-shrink: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.dir-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: #eaf3fb;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.dir-avatar-lg {
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  background: #eaf3fb;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  margin: 0 auto 0.75rem;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.dir-row-with-avatar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}
.chat-list-main { flex: 1; min-width: 0; }
.chat-list-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.chat-preview {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-bubble-row { margin-bottom: 0.65rem; display: flex; flex-direction: column; }
.chat-bubble-row.mine { align-items: flex-end; }
.chat-bubble-row.theirs { align-items: flex-start; }
.chat-author { font-size: 0.75rem; color: var(--muted); margin: 0 0.35rem 0.15rem; }
.chat-bubble {
  max-width: min(85%, 28rem);
  padding: 0.55rem 0.8rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.chat-bubble-row.mine .chat-bubble {
  background: var(--ciel);
  border-color: transparent;
  color: var(--on-ciel);
}
.chat-body { white-space: pre-wrap; word-break: break-word; line-height: 1.35; }
.chat-time { font-size: 0.7rem; color: var(--muted); margin-top: 0.25rem; text-align: right; }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.85rem; }

/* Cloche messages non lus (header) */
.msg-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  cursor: pointer;
  padding: 0;
  color: inherit;
  font: inherit;
}
.msg-bell:hover { background: rgba(255,255,255,0.22); }
.msg-bell-icon { font-size: 1rem; line-height: 1; }
.msg-bell-badge {
  position: absolute;
  top: -0.2rem;
  right: -0.25rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #e85d4c;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--navy);
}
.app-header .user-chip { gap: 0.12rem; }
.app-header .user-chip-top { gap: 0.55rem; }


/* Club Junior */
.club-junior-root { max-width: 720px; }
.club-junior-sections { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 0.75rem; }
.club-junior-card .club-junior-p { margin: 0.45rem 0 0; color: var(--muted, #5a6b7d); font-size: 0.95rem; line-height: 1.45; }
.club-junior-card .club-junior-p:first-of-type { margin-top: 0.55rem; }
.club-junior-events { margin: 0.75rem 0 0; }

.club-junior-rsvp { margin-top: 0.35rem; }
.club-junior-rsvp-list { margin: 0.35rem 0 0; padding-left: 1.1rem; color: var(--muted, #5a6b7d); font-size: 0.9rem; }

/* Équipe école */
.school-team-root { max-width: 920px; }
.school-team-header { margin-bottom: 1rem; }
.school-team-title { margin: 0 0 0.35rem; font-size: 1.35rem; }
.school-team-org { display: flex; flex-direction: column; gap: 1.25rem; }
.school-team-level-title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  color: var(--navy, #1a3a5c);
}
.school-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
}
.school-team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  padding: 0.85rem 0.75rem;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 14px;
  background: #fff;
}
.school-team-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--line, #e2e8f0);
}
.school-team-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--muted, #5a6b7d);
}
.school-team-card-body { width: 100%; }
.school-team-name { display: block; font-size: 0.98rem; }
.school-team-role {
  margin-top: 0.2rem;
  font-size: 0.88rem;
  color: var(--ciel-deep, #0b3d5c);
  font-weight: 600;
}
.school-team-bio {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--muted, #5a6b7d);
}
.school-team-card .school-team-contact {
  margin-top: 0.55rem;
}

.trombi-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1rem;
}
.trombi-filters input[type="search"],
.trombi-filters select {
  background: color-mix(in srgb, var(--ciel-soft) 55%, var(--bg));
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  min-height: 2.55rem;
}
.trombi-filters input[type="search"] {
  flex: 1 1 220px;
  min-width: 180px;
}
.trombi-filters select {
  flex: 0 1 220px;
}
.trombi-filters input[type="search"]:focus,
.trombi-filters select:focus {
  outline: 2px solid rgba(126, 182, 224, 0.4);
  border-color: var(--ciel);
}

/* Bourse aux clubs */
.mp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}
.mp-card {
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mp-card-photo {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: var(--line, #e2e8f0);
}
.mp-card-photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.mp-card-body { padding: 0.75rem; }
.mp-price {
  margin-top: 0.25rem;
  font-weight: 700;
  color: var(--navy, #1a3a5c);
}
.mp-desc {
  margin: 0.35rem 0;
  font-size: 0.88rem;
  color: var(--muted, #5a6b7d);
  line-height: 1.4;
}
.mp-photo-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
}
.mp-photo-chip {
  position: relative;
  display: inline-block;
}
.mp-photo-chip img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
}
.mp-photo-chip button {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  line-height: 1;
  cursor: pointer;
}

/* Boutique école */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}
.shop-card {
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.shop-card-photo {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: var(--line, #e2e8f0);
}
.shop-card-photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.shop-card-body { padding: 0.75rem; }
.shop-price {
  margin-top: 0.25rem;
  font-weight: 700;
  color: var(--navy, #1a3a5c);
}
.shop-desc {
  margin: 0.35rem 0;
  font-size: 0.88rem;
  color: var(--muted, #5a6b7d);
  line-height: 1.4;
}
.shop-photo-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
}
.shop-photo-chip {
  position: relative;
  display: inline-block;
}
.shop-photo-chip img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
}
.shop-photo-chip button {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  line-height: 1;
  cursor: pointer;
}

/* Boîte à idées */
.idea-list .idea-card {
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
}
.idea-body {
  margin: 0;
  white-space: pre-wrap;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text, #1a2330);
}

/* Annuaire coach — colonne e-mails alignée */
.coach-dir-coaches-list > li.coach-dir-coach-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.2rem;
  justify-content: flex-start;
}
.coach-dir-coach-head {
  display: grid;
  grid-template-columns: minmax(11rem, 16rem) minmax(0, 1fr);
  column-gap: 1.25rem;
  align-items: baseline;
  width: 100%;
}
.coach-dir-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.coach-dir-email {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}
a.coach-dir-email:hover {
  text-decoration: underline;
}
.coach-dir-bits {
  grid-column: 1 / -1;
}
@media (max-width: 640px) {
  .coach-dir-coach-head {
    grid-template-columns: 1fr;
    row-gap: 0.1rem;
  }
  .coach-dir-name,
  .coach-dir-email {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}

/* Droits admin — matrice domaine × actions */
.admin-caps-matrix {
  width: 100%;
  overflow-x: auto;
}
.admin-caps-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.admin-caps-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 32rem;
}
.admin-caps-table th,
.admin-caps-table td {
  border: 1px solid var(--line);
  padding: 0.45rem 0.5rem;
  text-align: center;
  vertical-align: middle;
}
.admin-caps-table thead th {
  background: #eaf3fb;
  color: var(--ciel-deep, #1a4a6b);
  font-weight: 600;
  white-space: nowrap;
}
.admin-caps-table tbody th {
  text-align: left;
  font-weight: 600;
  background: #fafbfc;
  min-width: 8.5rem;
}
.admin-caps-domain {
  display: block;
}
.admin-caps-hint {
  display: block;
  font-weight: 400;
  margin-top: 0.15rem;
}
.admin-cap-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  cursor: pointer;
  min-width: 1.75rem;
  min-height: 1.75rem;
}
.admin-caps-na {
  color: var(--muted);
  background: #f7f8f9;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Customisation marque ——— */
.brand-custom-panel { max-width: 1100px; }
.brand-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .brand-editor-layout { grid-template-columns: 1fr; }
}
.brand-form fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 0 1rem;
  padding: 1rem 1.1rem 1.15rem;
}
.brand-form legend {
  font-weight: 650;
  padding: 0 0.35rem;
  color: var(--navy);
}
.brand-upload-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) {
  .brand-upload-row { grid-template-columns: 1fr; }
}
.brand-thumb {
  display: block;
  margin-top: 0.5rem;
  max-height: 72px;
  max-width: 160px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem;
}
.brand-color-group {
  margin-bottom: 1rem;
}
.brand-color-group:last-child {
  margin-bottom: 0;
}
.brand-color-group-title {
  margin: 0 0 0.45rem;
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--navy);
}
.brand-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem 1rem;
}
.brand-color-field .meta {
  margin: 0.25rem 0 0;
  line-height: 1.3;
}
.brand-color-field input[type="color"] {
  width: 100%;
  height: 2.25rem;
  padding: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.brand-extracted {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.brand-swatch {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  padding: 0;
}
.brand-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.brand-reset-identity {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 35%, var(--line));
}
.brand-preview-aside {
  position: sticky;
  top: 5.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
}
.brand-preview-card {
  border: 1px solid var(--p-line, var(--line));
  border-radius: 12px;
  padding: 0.85rem;
  background: #fff;
}
.brand-preview-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.brand-preview-header img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}
.brand-preview-fallback {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--p-ciel, var(--ciel));
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}
.brand-preview-card .btn-primary {
  background: var(--p-ciel, var(--ciel));
  border-color: var(--p-ciel, var(--ciel));
  color: var(--on-ciel);
}
img[data-brand-logo][hidden] { display: none !important; }

/* Picker élève — filtres groupe / équipe */
.cal-player-filters {
  margin: 0 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.cal-player-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.cal-player-filter-chips .btn {
  padding: 0.25rem 0.55rem;
  font-size: 0.8rem;
}
.cal-player-filter-chips .btn.active {
  background: var(--ciel, #4a90a4);
  border-color: var(--ciel, #4a90a4);
  color: #fff;
}

.coach-track-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.65rem;
}
.coach-track-kpi {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7fafc;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.coach-track-kpi-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.coach-track-table th.num,
.coach-track-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.coach-track-sort {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-transform: inherit;
  letter-spacing: inherit;
}
.coach-track-sort.is-active {
  color: var(--navy);
}
.coach-track-name {
  padding: 0;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
}
.coach-track-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0.35rem 0.15rem 0.5rem;
}
@media (max-width: 720px) {
  .coach-track-detail { grid-template-columns: 1fr; }
}
.coach-track-expand td {
  white-space: normal;
  background: #fafcfe;
}
#cal-create-player-search {
  width: 100%;
}
#cal-create-player {
  width: 100%;
  min-height: 10rem;
}

/* Paramètres → Statistiques */
.ss-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.75rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(26, 58, 92, 0.96), rgba(47, 111, 159, 0.88));
  color: #fff;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
@media (max-width: 720px) {
  .ss-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
.ss-hero .lead { color: rgba(255, 255, 255, 0.86); }
.ss-hero-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ciel-soft);
}
.ss-hero h3 {
  margin: 0.2rem 0 0;
  font-size: 1.35rem;
  color: #fff;
}
.ss-pulse {
  position: relative;
  width: 122px;
  height: 122px;
}
.ss-pulse svg { width: 122px; height: 122px; }
.ss-pulse-track, .ss-pulse-fill {
  fill: none;
  stroke-width: 10;
}
.ss-pulse-track { stroke: rgba(255, 255, 255, 0.18); }
.ss-pulse-fill {
  stroke: var(--ciel);
  stroke-linecap: round;
}
.ss-pulse-ok .ss-pulse-fill { stroke: #8ee0b0; }
.ss-pulse-mid .ss-pulse-fill { stroke: #f0d089; }
.ss-pulse-low .ss-pulse-fill { stroke: #f0a0a0; }
.ss-pulse-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ss-pulse-inner strong {
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.ss-pulse-inner span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}
.ss-signals {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1.25rem;
}
@media (max-width: 720px) {
  .ss-signals { grid-template-columns: 1fr; }
}
.ss-signals li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.86rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0.25rem;
}
.ss-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0 0 1rem;
}
.ss-kpis-6 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .ss-kpis, .ss-kpis-6 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .ss-kpis, .ss-kpis-6 { grid-template-columns: 1fr; }
}
.ss-kpi {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7fafc;
  border-top: 3px solid var(--ciel);
}
.ss-kpi-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ciel-deep);
}
.ss-kpi-value {
  margin: 0.2rem 0 0;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.ss-kpi-hint { margin: 0.3rem 0 0; }
.ss-h3 {
  margin: 0 0 0.65rem;
  font-size: 1.02rem;
}
.ss-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin: 0.25rem 0 1.1rem;
}
.ss-split-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 900px) {
  .ss-split, .ss-split-3 { grid-template-columns: 1fr; }
}
.ss-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.ss-bars li {
  display: grid;
  grid-template-columns: 7.5rem 1fr 3.2rem;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.86rem;
}
.ss-bar-label { color: var(--navy); }
.ss-bar-track {
  height: 8px;
  background: #e4eef6;
  border-radius: 99px;
  overflow: hidden;
}
.ss-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ciel), var(--ciel-deep));
  border-radius: 99px;
}
.ss-bar-n {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  color: var(--navy);
}
.ss-rank-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: #fff;
}
.ss-rank-card h3 { margin: 0 0 0.65rem; font-size: 1.02rem; }
.ss-rank {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.ss-rank li {
  display: grid;
  grid-template-columns: 1.8rem 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.4rem 0.2rem;
  border-bottom: 1px solid var(--line);
}
.ss-rank li:last-child { border-bottom: 0; }
.ss-rank-pos {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.82rem;
  background: #eaf3fb;
  color: var(--navy);
}
.ss-rank-1 .ss-rank-pos { background: #ead98a; }
.ss-rank-2 .ss-rank-pos { background: #d5dee8; }
.ss-rank-3 .ss-rank-pos { background: #e2c4a8; }
.ss-rank-hcp {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ciel-deep);
}
.ss-hcp-cell {
  display: grid;
  grid-template-columns: 4.5rem auto;
  gap: 0.2rem 0.55rem;
  align-items: center;
}
.ss-hcp-bar {
  grid-row: 1 / span 2;
  height: 8px;
  background: #e4eef6;
  border-radius: 99px;
  overflow: hidden;
}
.ss-hcp-bar span {
  display: block;
  height: 100%;
  background: var(--navy);
}
.ss-table-wrap { margin-top: 0.35rem; }
.ss-stamp { margin-top: 1.1rem; }
.ss-tabs { margin: 0.35rem 0 1rem; }
