/* ==========================================================================
   SYNERGY PLAY — éléments propres à la musique, posés sur l'interface d'AXION WAN PULSE
   (pilot.css + wanpulse.css). Couleurs : variables de la palette WAN PULSE.
   ========================================================================== */
:root { --surface-2: var(--gris-clair); }

/* 💓 Pastilles d'état : mêmes pulsations que WAN PULSE (vert calme, orange, rouge rapide) */
.state-dot.sd-off { background: #c3ccd9; }
.state-dot.sd-none { background: #dfe5ee; }
:is(.pill.st-playing, .pill.st-recovering, .pill.st-stopped) { position: relative; }
:is(.pill.st-playing, .pill.st-recovering, .pill.st-stopped)::before { animation: wp-clignote 2.4s ease-in-out infinite; }
:is(.pill.st-playing, .pill.st-recovering, .pill.st-stopped)::after { content: ""; position: absolute; left: 8px; top: 50%; width: 7px; height: 7px;
    margin-top: -3.5px; border-radius: 50%; background: var(--vert); pointer-events: none; animation: wp-onde 2.4s cubic-bezier(.2, .6, .35, 1) infinite; }
:is(.pill.st-recovering, .pill.st-stopped)::after { background: var(--orange); }
:is(.pill.st-recovering, .pill.st-stopped)::before, :is(.pill.st-recovering, .pill.st-stopped)::after { animation-duration: 1.5s; }
.pill.st-closed, .pill.st-disconnected, .pill.st-unsupervised { background: var(--gris-clair); color: var(--texte-2); }

/* Tableau des clubs (tableau de bord) */
.play-table .cell-sub.up { text-transform: uppercase; }
.play-table .c-client { min-width: 170px; }
.play-table .c-now { min-width: 220px; }
.now-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.now-txt { display: flex; flex-direction: column; min-width: 0; }
.now-txt .cell-strong, .play-table .c-sub .cell-strong { display: block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.play-table .c-sub .cell-sub, .now-txt .cell-sub { display: block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.art.art-sm { width: 40px; height: 40px; border-radius: 8px; flex: none; }
.vol-mini { display: inline-flex; align-items: center; gap: 8px; }
.vol-mini input[type=range] { width: 92px; }
.vol-mini output { min-width: 24px; font-size: 13px; color: var(--texte-2); font-variant-numeric: tabular-nums; }
.legend .state-dot { vertical-align: -1px; margin-right: 4px; animation: none; }
.legend .state-dot::after { display: none; }
@media (max-width: 1400px) and (min-width: 861px) { .play-table .c-last { display: none; } }
@media (max-width: 860px) {
  .play-table tr { grid-template-areas: "st cl cl" "st now now" "st q q"; }
  .play-table .c-now { grid-area: now; min-width: 0; }
}

/* Bandeau de synthèse : tuiles cliquables (filtre rapide) */
button.bd-tuile { font: inherit; text-align: left; cursor: pointer; }

/* 🔗 Compte Sonos développeur (création d'un club, Paramètres › Connexion Sonos) */
.sonos-dev { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--bord); border-radius: calc(10px * var(--arrondi)); background: var(--gris-clair); display: grid; gap: 12px; }
.sonos-dev-tete { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sonos-dev-tete > div { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.sonos-dev-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--carte); border: 1px solid var(--bord); font-size: 17px; }
.sonos-dev-ligne { display: grid; gap: 5px; }
.sonos-dev-ligne label { font-size: .85rem; font-weight: 600; }
.sonos-dev-ligne label .muted { font-weight: 400; }
.sonos-dev .copy-line { display: flex; gap: 8px; }
.sonos-dev .copy-line .input { flex: 1; min-width: 0; background: var(--carte); }
.sonos-dev .callout { margin: 0; }

/* Pied du menu : mode démonstration */
.lat-demo { display: flex; align-items: center; gap: 8px; margin: 0 10px 8px; padding: 8px 10px; border-radius: 10px; background: var(--orange-clair); color: var(--orange); font-size: 13px; font-weight: 600; text-decoration: none; }
html.lat-rail .lat-demo span { display: none; }

/* Pages de connexion */
.auth-texte { color: var(--texte-2); text-align: center; margin: -6px 0 16px; font-size: .92rem; }
.carte-connexion .alerte { margin-bottom: 14px; }
.carte-connexion .brand img { height: 52px; }

/* Fiche club : en-tête façon WAN PULSE */
.club-head h1 { font-size: 1.5rem; }
.club-head .lede span { color: var(--texte-2); }

.cc-meta {font-variant-numeric: tabular-nums;}
.avatar {width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--night-3); color: #fff; font-size: 13px; font-weight: 650;}
.btn-sm {height: 32px; padding: 0 12px; font-size: 13.5px; border-radius: 8px;}
.meter {display: flex; align-items: flex-end; gap: 3px; height: 22px;}
.meter i {width: 4px; height: 3px; border-radius: 2px; background: var(--idle); opacity: .45; transition: height .3s;}
.st-playing .meter i {background: var(--ok); opacity: 1; animation: level 1.1s ease-in-out infinite alternate;}
.st-playing .meter i:nth-child(1) {animation-duration: .9s;}
.st-playing .meter i:nth-child(2) {animation-duration: 1.3s; animation-delay: -.4s;}
.st-playing .meter i:nth-child(3) {animation-duration: .8s; animation-delay: -.2s;}
.st-playing .meter i:nth-child(4) {animation-duration: 1.15s; animation-delay: -.7s;}
.st-playing .meter i:nth-child(5) {animation-duration: .95s; animation-delay: -.5s;}
.st-playing .meter i:nth-child(6) {animation-duration: 1.25s; animation-delay: -.1s;}
.st-playing .meter i:nth-child(7) {animation-duration: .85s; animation-delay: -.6s;}
.st-down .meter i {background: var(--bad); opacity: .8;}
.st-recovering .meter i,
.st-stopped .meter i {background: var(--warn); opacity: .8;}
@keyframes level{ 0% { height: 4px; } 50% { height: 14px; } 100% { height: 22px; } }
.club-grid {display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px;}
.club-card {position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;}
.club-card::before {content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--idle);}
.club-card.st-playing::before {background: var(--ok);}
.club-card.st-recovering::before,
.club-card.st-stopped::before {background: var(--warn);}
.club-card.st-down::before {background: var(--bad);}
.club-card.st-paused::before {background: var(--accent);}
.club-card.st-down {border-color: #f1c4c4;}
.cc-top {display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 0 22px;}
.cc-name {font-size: 17px; font-weight: 700; color: var(--ink);}
.cc-name:hover {color: var(--accent-ink); text-decoration: none;}
.cc-meta {color: var(--muted); font-size: 13px; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 2px 14px;}
.cc-meta span {display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;}
.cc-meta .icon {width: 14px; height: 14px;}
.cc-meta .warn {color: var(--warn); font-weight: 600;}
.cc-now {display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 20px 0 22px;}
.art {width: 58px; height: 58px; border-radius: 10px; background: var(--idle-soft); object-fit: cover;}
.art-empty {display: grid; place-items: center; color: var(--idle);}
.track {min-width: 0;}
.track-title {font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.track-artist {color: var(--ink-2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.track-src {color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px;}
.cc-detail {padding: 12px 20px 0 22px; font-size: 13.5px; color: var(--muted);}
.st-paused .cc-detail {color: var(--accent-ink); font-weight: 550;}
.st-down .cc-detail {color: var(--bad); font-weight: 550;}
.st-recovering .cc-detail {color: #9a5f00; font-weight: 550;}
.cc-controls {display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 22px 14px 24px; border-top: 1px solid var(--line); margin-top: 16px;}
.club-card .cc-detail + .cc-controls,
.club-card .cc-now + .cc-controls {margin-top: auto;}
.club-card .cc-now {margin-bottom: 16px;}
.club-card .cc-detail {margin: -4px 0 14px;}
.transport {display: flex; align-items: center; justify-content: center; gap: 6px;}
.t-btn {width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: transparent; color: var(--ink-2);}
.t-btn:hover {background: var(--idle-soft); color: var(--ink);}
.t-btn .icon {width: 18px; height: 18px;}
.t-btn[disabled] {opacity: .35; pointer-events: none;}
.vol {display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px;}
.vol .icon {width: 16px; height: 16px;}
.vol output {min-width: 24px; text-align: right; font-weight: 600; color: var(--ink-2);}
.cc-controls .speakers {color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px;}
.cc-controls .speakers .icon {width: 15px; height: 15px;}
.cc-off {padding: 16px 22px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; margin-top: auto;}
.cc-controls .vol input[type=range] {flex: 1; width: auto; min-width: 0;}
.player {display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: 28px; padding: 26px;}
.player .art {width: 188px; height: 188px; border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(15,27,51,.5);}
.player-info {display: flex; flex-direction: column; min-width: 0;}
.player-src {color: var(--muted); font-size: 13.5px; display: flex; align-items: center; gap: 8px;}
.player-title {font-size: 26px; font-weight: 700; margin-top: 10px; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis;}
.player-artist {font-size: 17px; color: var(--ink-2); margin-top: 4px;}
.player-meta {display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap;}
.tag {display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); font-weight: 550;}
.tag .icon {width: 13px; height: 13px;}
.tag.on {background: var(--ok-soft); border-color: #bfe8d6; color: #0b7a53;}
.player-bottom {margin-top: auto; padding-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px;}
.player .transport .t-btn {width: 44px; height: 44px;}
.player-vol {display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);}
.player-vol input {flex: 1; min-width: 0;}
.player-vol .cell-sub {white-space: nowrap;}
.player .meter {height: 26px;}
.favs {display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px;}
.fav {text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 14px;
  padding: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s, box-shadow .15s;}
.fav:hover {border-color: var(--line-strong); box-shadow: var(--shadow);}
.fav img {width: 100%; aspect-ratio: 1; border-radius: 9px; object-fit: cover; background: var(--idle-soft);}
.fav b {font-weight: 650; font-size: 14px; line-height: 1.25; display: block;}
.fav small {color: var(--muted); font-size: 12.5px;}
.fav .badge {color: var(--ok); font-weight: 650;}
.fav.current {border-color: #9fdcc3; box-shadow: 0 0 0 3px var(--ok-soft);}
.rooms {display: flex; flex-direction: column;}
.room {display: grid; grid-template-columns: minmax(0, 1fr) 140px 30px; gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line);}
.room:first-child {border-top: 0; padding-top: 2px;}
.room-name {display: flex; align-items: center; gap: 10px; font-weight: 550; min-width: 0;}
.room-name span {overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.room-name small {display: block; color: var(--muted); font-weight: 450; font-size: 12.5px;}
.dot {width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none;}
.dot.out {background: var(--warn);}
.dot.off {background: var(--bad);}
.room output {text-align: right; font-weight: 600; color: var(--ink-2); font-size: 13.5px;}
.room.is-off {color: var(--muted);}
.connect-hero {display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden;}
.connect-hero .side-art {background: var(--night); color: #fff; padding: 34px; display: flex; flex-direction: column; justify-content: center; gap: 14px;}
.connect-hero .side-art h2 {font-size: 24px;}
.connect-hero .side-art p {color: #aebbd4;}
.connect-hero .steps {padding: 30px 34px;}
.steps ol {margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 16px;}
.steps li {counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px;}
.steps li::before {content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 13.5px;}
.steps li b {display: block;}
.steps li span {color: var(--muted); font-size: 14px;}
.sim {display: grid; grid-template-columns: 1fr; gap: 8px;}
.sim .btn {justify-content: flex-start;}
@keyframes wave{ from { height: 12%; } to { height: 100%; } }
.skeleton {background: linear-gradient(90deg, #eef1f6, #f6f8fb, #eef1f6); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 10px;}
@keyframes shimmer{ to { background-position: -200% 0; } }
@media (max-width: 860px){
  .favs{grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;}
  .club-grid{grid-template-columns: 1fr;}
  .player{grid-template-columns: 1fr; gap: 18px; padding: 20px; justify-items: center; text-align: center;}
  .player .art{width: 200px; height: 200px;}
  .player-src,.player-meta{justify-content: center;}
  .player-bottom{grid-template-columns: 1fr; width: 100%;}
  .player-vol{width: 100%;}
  .player .meter{justify-content: center;}
  .connect-hero{grid-template-columns: 1fr;}
  .room{grid-template-columns: minmax(0, 1fr) 110px 28px;}
}
.lvl {display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 10px; background: var(--idle); vertical-align: 1px;}
.lvl-success {background: var(--ok);}
.lvl-warning {background: var(--warn);}
.lvl-danger {background: var(--bad);}
.access-chips {display: flex; flex-wrap: wrap; gap: 6px;}
.access-chip {display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 12.5px; font-weight: 600; white-space: nowrap; vertical-align: middle;}
.access-chip.control {background: var(--accent-soft); color: var(--accent-ink);}
.access-chip.view {background: var(--idle-soft); color: var(--ink-2);}
.club-head h1 .access-chip {font-size: 13px; height: 26px;}
.access-list {display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; max-height: 300px; overflow-y: auto;}
.access-row {display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 12px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line); cursor: default;}
.access-row:first-child {border-top: 0;}
.access-row b {font-weight: 600; font-size: 14px;}
.access-row small {display: block; color: var(--muted); font-size: 12.5px;}
.access-row .input {height: 36px;}
.access-quick {display: flex; justify-content: center; gap: 8px; margin-top: 10px; flex-wrap: wrap;}
.t-btn[disabled] {opacity: .35; cursor: not-allowed;}
@media (max-width: 860px){
  .access-row{grid-template-columns: minmax(0, 1fr) 140px;}
}
.sender {display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2);}
.sender-badge {width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 22px; flex: none;}
.sender-badge.sm {width: 26px; height: 26px; border-radius: 8px; font-size: 13px;}
.sender-badge.ms {background: linear-gradient(150deg, #2b88d8, #0f5fa8);}
.sender-badge.gg {background: conic-gradient(from 210deg, #ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); text-shadow: 0 1px 2px rgba(0,0,0,.25);}
.sender-badge.other {background: linear-gradient(150deg, #8b5cf6, #6d28d9);}
.sender-id {display: flex; flex-direction: column; min-width: 0;}
.sender-id b {font-size: 17px; font-weight: 650; overflow: hidden; text-overflow: ellipsis;}
.sender-id span {color: var(--ink-2); font-size: 14px;}
.sender-id small {color: var(--muted); font-size: 13px; margin-top: 2px;}
.sender-state {color: var(--ink-2); font-size: 13.5px; white-space: nowrap;}
.chooser {margin-top: 4px;}
.sender + .callout + .actions + .chooser,
.actions + .chooser {margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line);}
.chooser-lede {font-weight: 600; margin-bottom: 12px;}
.choice-row {display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; transition: border-color .15s, box-shadow .15s;}
.choice-row:hover {border-color: var(--line-strong); box-shadow: var(--shadow);}
.choice-row .sender-badge {width: 44px; height: 44px; font-size: 19px; border-radius: 12px;}
.choice-text b {display: block; font-weight: 650;}
.choice-text span {color: var(--muted); font-size: 13.5px;}
.choice-row .btn {min-width: 130px;}
.chooser-notes {list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 13.5px;}
.chooser-notes li {display: flex; gap: 10px; align-items: flex-start;}
.chooser-notes .icon {width: 16px; height: 16px; margin-top: 2px; color: var(--accent);}
details.keys > summary {list-style: none; cursor: pointer; padding-bottom: 18px;}
details.keys > summary::-webkit-details-marker {display: none;}
details.keys > summary h2::before {content: "›"; display: inline-block; margin-right: 10px; color: var(--muted); transition: transform .15s;}
details.keys[open] > summary h2::before {transform: rotate(90deg);}
details.keys[open] > summary {padding-bottom: 0;}
.keys-grid {display: grid; grid-template-columns: 1fr 1fr; gap: 28px;}
.keys-col {display: flex; flex-direction: column; gap: 12px;}
.keys-col h3 {font-size: 15px; display: flex; align-items: center; gap: 10px;}
.keys-steps {margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 13.5px; display: flex; flex-direction: column; gap: 4px;}
.preset-grid {display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px;}
.preset {height: 42px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; cursor: pointer;}
.preset:hover {border-color: var(--accent); color: var(--accent-ink);}
.preset.on {background: var(--accent); border-color: var(--accent); color: #fff;}
@media (max-width: 860px){
  .sender{grid-template-columns: auto minmax(0, 1fr);}
  .sender-state{grid-column: 1 / -1; white-space: normal;}
  .choice-row{grid-template-columns: auto minmax(0, 1fr);}
  .choice-row .btn{grid-column: 1 / -1;}
  .keys-grid{grid-template-columns: 1fr;}
}
.label-row {display: flex; align-items: baseline; justify-content: space-between; gap: 12px;}
.auth-link {font-size: 13.5px; font-weight: 600; color: var(--accent); text-decoration: none;}
.auth-link:hover {text-decoration: underline;}
.auth-back {display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; color: var(--muted); text-decoration: none;}
.auth-back:hover {color: var(--ink);}
.auth-back .icon {width: 16px; height: 16px;}
.auth-note {padding: 12px 16px; border-radius: 12px; background: var(--surface-2, #f3f6fa); color: var(--ink-2); font-size: 14px; line-height: 1.5;}
/* Bouton principal lecture / pause (fiche club) */
.t-btn.main { width: 46px; height: 46px; background: var(--bleu); color: #fff; }
.t-btn.main:hover { background: var(--bleu-fonce); color: #fff; }
.t-btn.main .icon { width: 19px; height: 19px; }
.player .transport .t-btn.main { width: 58px; height: 58px; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--bleu) 70%, transparent); }
.player .transport .t-btn.main .icon { width: 22px; height: 22px; }

@media (max-width: 860px) {
  /* Tableau de bord : chaque club en fiche, avec le volume au doigt */
  .play-table tr { grid-template-columns: 20px minmax(0, 1fr); grid-template-areas: "st cl" "st now" "st vol" "st q"; gap: 8px 12px; }
  table.data.play-table td.c-vol { display: block; grid-area: vol; padding: 0; border: 0; }
  .play-table .c-quick { grid-area: q; }
  .play-table .vol-mini { width: 100%; }
  .play-table .vol-mini input[type=range] { flex: 1; width: auto; }
  .play-table .quick { gap: 8px; }
  .play-table .qbtn { width: 48px; height: 42px; border-radius: 10px; }
  .play-table .qbtn .icon { width: 19px; height: 19px; }
  .now-txt .cell-strong, .now-txt .cell-sub { max-width: none; white-space: normal; }
}

/* ===== 📱 Smartphone : SYNERGY PLAY entièrement adapté (rien ne change sur ordinateur) ===== */
@media (max-width: 760px) {
  /* En-tête de page */
  .page-head h1 { font-size: 1.35rem; line-height: 1.25; }
  .club-head h1 .pill, .club-head h1 .access-chip { display: inline-flex; margin: 6px 6px 0 0; vertical-align: middle; }
  .sous-titre-direct { align-items: flex-start; }
  .sous-titre-direct > .state-dot, .sous-titre-direct > .live-dot { margin-top: 6px; }
  .back { margin-bottom: 6px; }

  .toolbar .segmented { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .toolbar .segmented::-webkit-scrollbar { display: none; }
  .toolbar .segmented button { white-space: nowrap; flex: none; }
  .toolbar .search { width: 100%; }
  .legend { justify-content: flex-start; }

  /* Fiche club : lecteur d'abord, puis enceintes, playlists, supervision */
  .club-layout { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .club-layout > .stack { display: contents; }
  .club-layout > .stack > * { order: 20; }
  .club-layout .o-player { order: 1; }
  .club-layout .o-rooms { order: 2; }
  .club-layout .o-favs { order: 3; }
  .club-layout .o-spotify { order: 3; }
  .club-layout .o-soundtrack { order: 3; }
  .club-layout .o-routines { order: 4; }
  .club-layout .o-sup { order: 5; }
  .club-layout .o-test { order: 6; }
  .club-layout .o-inc { order: 7; }
  .club-layout .o-acces { order: 8; }
  .club-layout .o-logs { order: 9; }
  .club-layout .o-zone { order: 10; }
  .player { padding: 18px 16px; }
  .player .art { width: 150px; height: 150px; }
  .player-title { font-size: 1.35rem; }
  .player .transport { gap: 18px; }
  .player .transport .t-btn { width: 52px; height: 52px; }
  .player .transport .t-btn .icon { width: 22px; height: 22px; }
  .player .transport .t-btn.main { width: 70px; height: 70px; }
  .player .transport .t-btn.main .icon { width: 28px; height: 28px; }
  .player-vol { gap: 10px; }
  .player-vol input[type=range] { flex: 1; }
  .notice { flex-wrap: wrap; }
  .notice .btn { width: 100%; justify-content: center; }
  .room { grid-template-columns: minmax(0, 1fr) 110px 28px; gap: 10px; }
  .favs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .facts { gap: 8px 12px; }
  .timeline li { grid-template-columns: 62px 10px 1fr; }
  .panel-head { flex-wrap: wrap; row-gap: 4px; }
  .connect-hero .btn { width: 100%; justify-content: center; }
  .club-layout > .stack > .panel { width: 100%; margin: 0; }

  /* Listes empilées : boutons au doigt */
  table.data.empilable td .row-actions { width: 100%; justify-content: stretch; gap: 8px; }
  table.data.empilable td .row-actions .btn { flex: 1; justify-content: center; min-height: 40px; }
  table.data.empilable .access-chips { justify-content: flex-end; }
  table.data.empilable td:not(:first-child):has(> div.cell-sub) { flex-wrap: wrap; row-gap: 0; }
  table.data.empilable td:not(:first-child) > div.cell-sub { flex-basis: 100%; text-align: right; }
  table.data.empilable td:first-child:has(> .state-dot:only-child) + td { flex-wrap: nowrap; }
  table.data.empilable td:first-child:has(> .state-dot:only-child) + td > div.cell-sub { text-align: left; }

  /* Adresses Sonos : bouton Copier compact */
  .sonos-dev { padding: 12px; }
  .sonos-dev-tete .btn { width: 100%; justify-content: center; }
  .sonos-dev .copy-line .btn { font-size: 0; gap: 0; padding: 0 12px; }
  .sonos-dev .copy-line .btn .icon { width: 18px; height: 18px; }

  /* Paramètres : messagerie, formulaires */
  .choice-row { gap: 12px; }
  .form-foot .btn { width: 100%; justify-content: center; }
  .switch { gap: 14px; }
}

/* ===== 📱 Écran d'ouverture : logo SYNERGY PLAY et casque qui bat en rythme (≈ 120 battements/min) ===== */
html.splash-ouvert, html.splash-ouvert body { overflow: hidden; }
.splash { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 46px;
  background: radial-gradient(120% 70% at 50% 40%, #ffffff 0%, #f2f6fd 60%, #e6eefb 100%); transition: opacity .5s ease, transform .5s ease; }
.splash.splash-sortie { opacity: 0; transform: scale(1.04); pointer-events: none; }
.splash-scene { display: flex; align-items: center; gap: 10px; padding: 0 18px; }
.splash-logo { width: min(64vw, 270px); height: auto; opacity: 0; transform: translateX(-18px); animation: sp-entree .7s cubic-bezier(.2, .8, .25, 1) .1s forwards; }
.splash-casque { position: relative; width: 96px; height: 96px; flex: none; opacity: 0; transform: scale(.4);
  animation: sp-pop .55s cubic-bezier(.3, 1.6, .5, 1) .55s forwards; }
.splash-casque svg { position: relative; z-index: 1; display: block; transform-origin: 50% 60%;
  animation: sp-battement .5s cubic-bezier(.3, 0, .3, 1) .95s infinite, sp-balance 2s ease-in-out .95s infinite; }
.splash-ecouteur { transform-box: fill-box; transform-origin: 50% 50%; animation: sp-ecouteur .5s ease-in-out 1.1s infinite; }
.splash-ecouteur.droit { animation-delay: 1.35s; }
.splash-eq line { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(.35); animation: sp-eq .5s ease-in-out 1.1s infinite alternate; }
.splash-eq .b2 { animation-duration: .38s; animation-delay: 1.2s; }
.splash-eq .b3 { animation-duration: .62s; animation-delay: 1.15s; }
.splash-onde { position: absolute; left: 50%; top: 58%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
  border: 2px solid #3d8bff; opacity: 0; animation: sp-onde 1s ease-out 1.1s infinite; }
.splash-onde.o2 { animation-delay: 1.6s; }
.splash-pied { display: flex; flex-direction: column; align-items: center; gap: 12px; opacity: 0; animation: sp-fondu .6s ease .9s forwards; }
.splash-barre { width: 132px; height: 4px; border-radius: 4px; background: #dbe5f6; overflow: hidden; }
.splash-barre i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #1a9bff, #0a5fe0); animation: sp-charge 2.2s ease-in-out .9s forwards; }
.splash-texte { font-size: 13px; letter-spacing: .06em; color: #5b6b86; font-weight: 600; }
@keyframes sp-entree { to { opacity: 1; transform: none; } }
@keyframes sp-pop { to { opacity: 1; transform: scale(1); } }
@keyframes sp-fondu { to { opacity: 1; } }
@keyframes sp-battement { 0% { transform: scale(1); } 18% { transform: scale(1.13); } 40% { transform: scale(.98); } 100% { transform: scale(1); } }
@keyframes sp-balance { 0%, 100% { rotate: -5deg; } 50% { rotate: 5deg; } }
@keyframes sp-ecouteur { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.07, 1.1); } }
@keyframes sp-eq { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
@keyframes sp-onde { 0% { transform: scale(.7); opacity: .55; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes sp-charge { to { width: 100%; } }
/* Écran d'ouverture aux couleurs SYNERGY FIT : fond anthracite, casque et barre turquoise */
.splash.splash-synergy { background: radial-gradient(120% 70% at 50% 40%, #ffffff 0%, #f1f7f6 60%, #e2f3ef 100%); }
.splash-synergy .splash-onde { border-color: #00c7aa; }
.splash-synergy .splash-barre { background: #d5ebe6; }
.splash-synergy .splash-barre i { background: linear-gradient(90deg, #3fe6cc, #00a38c); }
.splash-synergy .splash-texte { color: #5d6563; }
@media (min-width: 761px) and (hover: hover) and (pointer: fine) { .splash { display: none !important; } }

/* 🖼️ Pochette : la nouvelle apparaît en fondu, sans case vide entre deux titres */
img.art { transition: opacity .28s ease; }
img.art.art-nouvelle { opacity: 0; }
/* 🔗 Enceinte sortie du groupe */
.tag.tag-hors-groupe { background: var(--orange-clair); color: var(--orange); border-color: transparent; font-weight: 600; }
.play-table .hors-groupe { white-space: normal; }

/* 💬 Paramètres › WhatsApp */
.wa-statut { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-lg, 12px); margin: 4px 0 14px; font-size: 14px; font-weight: 550; }
.wa-statut.is-pret { background: var(--vert-clair); color: var(--vert); }
.wa-statut.is-attente { background: var(--orange-clair); color: var(--orange); }
.wa-modeles { display: flex; flex-direction: column; gap: 4px; padding: 9px 12px; border: 1px solid var(--bord); border-radius: calc(8px * var(--arrondi)); background: var(--surface-2); font-size: 14px; }
.wa-actions { flex-wrap: wrap; }
.wa-apercu { margin-top: 14px; border: 1px solid var(--bord); border-radius: calc(10px * var(--arrondi)); padding: 10px 14px; background: var(--surface-2); }
.wa-apercu summary { cursor: pointer; font-weight: 600; }
.wa-apercu pre { white-space: pre-wrap; font-family: inherit; font-size: 14px; margin: 10px 0 0; padding: 12px 14px; border-radius: 10px; background: #e7fbe3; color: #1b2a1a; }
/* 🔔 Mes alertes (Apparence) */
.mes-alertes { padding: 18px 20px; }
.mes-alertes .ma-canaux { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 14px; }
.mes-alertes .ma-canaux .ar-interrupteur { padding: 12px 14px; border: 1px solid var(--bord); border-radius: calc(10px * var(--arrondi)); background: var(--surface-2); }
.mes-alertes .ma-types { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.mes-alertes .help { margin: 10px 0 0; }
/* Réglages d'alerte dans les fiches (utilisateur, club) */
.alerte-bloc { border: 1px solid var(--bord); border-radius: calc(10px * var(--arrondi)); padding: 12px 14px; background: var(--surface-2); }
.alerte-bloc .check { margin-right: 14px; }
/* Curseurs (volume) et cases aux couleurs de la palette */
input[type=range], input[type=checkbox], input[type=radio] { accent-color: var(--bleu); }
.settings-sub.settings-sub-premier { margin-top: 0; padding-top: 0; border-top: 0; }
.help.center { display: block; text-align: center; }

/* ⏱️ Barre de lecture qui défile avec la durée du titre */
.lecture { margin: 10px 0 4px; max-width: 520px; }
.lecture-piste { height: 5px; border-radius: 5px; background: var(--gris-clair); overflow: hidden; }
.lecture-piste i { display: block; height: 100%; width: 0; border-radius: 5px; background: var(--bleu); }
.lecture-temps { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; font-size: 12.5px; color: var(--texte-2); font-variant-numeric: tabular-nums; }
.lecture-bpm { padding: 1px 9px; border-radius: 999px; background: var(--bleu-clair); color: var(--bleu-fonce); font-weight: 650; font-size: 12px; }

/* 💓 Pulsations au rythme du titre joué (--temps = un temps, --phase = calage sur la position) */
.au-rythme .state-dot.sd-up, .au-rythme .state-dot.sd-up::after,
html.au-rythme .club-head .state-dot.sd-up, html.au-rythme .club-head .state-dot.sd-up::after,
html.au-rythme .pill.st-playing::before, html.au-rythme .pill.st-playing::after {
  animation-duration: calc(var(--temps) * 2) !important; animation-delay: var(--phase, 0s) !important; }
.au-rythme .state-dot.sd-up { animation-name: wp-temps !important; animation-duration: var(--temps) !important; }
@keyframes wp-temps { 0% { transform: scale(1.28); } 35% { transform: scale(1); } 100% { transform: scale(1); } }
html.au-rythme .st-playing .meter i { animation-duration: calc(var(--temps) / 2) !important; animation-delay: var(--phase, 0s) !important; }
html.au-rythme .st-playing .meter i:nth-child(2n) { animation-duration: var(--temps) !important; }
html.au-rythme .st-playing .meter i:nth-child(3n) { animation-duration: calc(var(--temps) / 4 * 3) !important; }
html.au-rythme .st-playing .player [data-f="art"] img.art { animation: art-temps var(--temps) cubic-bezier(.25, .1, .25, 1) infinite; animation-delay: var(--phase, 0s); }
@keyframes art-temps { 0% { transform: scale(1.018); } 30% { transform: scale(1); } 100% { transform: scale(1); } }

/* 🛠️ Enceinte en maintenance, 🔄 version du logiciel Sonos */
.room { grid-template-columns: minmax(0, 1fr) 104px 28px 32px; gap: 10px; }
.room-outil { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--bord); background: var(--carte); cursor: pointer; font-size: 14px; opacity: .55; transition: opacity .15s, background .15s; }
.room-outil:hover, .room-outil.on { opacity: 1; }
.room-outil.on { background: var(--orange-clair); border-color: transparent; }
.room.is-maint .room-name > span:last-child > :first-child, .room.is-maint { color: var(--texte-2); }
.room .dot.maint { background: var(--orange); }
.room-version { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 6px; background: var(--gris-clair); font-size: 11px; color: var(--texte-2); }
.room-version.retard { background: var(--orange-clair); color: var(--orange); font-weight: 600; }
.versions { margin-top: 14px; padding: 11px 13px; border-radius: calc(10px * var(--arrondi)); font-size: 13px; display: flex; flex-direction: column; gap: 3px; }
.versions.ok, .versions.retard { background: var(--surface-2); border: 1px solid var(--bord); color: var(--texte); }
.versions .room-maj { margin-left: 4px; }
.versions span { color: var(--texte-2); }
@media (max-width: 860px) { .room { grid-template-columns: minmax(0, 1fr) 100px 28px 32px; gap: 8px; } }

/* 🟢 Spotify */
.sp-logo { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: #1ed760; vertical-align: -3px; margin-right: 4px;
  box-shadow: inset 0 0 0 4px #1ed760, inset 0 -5px 0 6px rgba(0, 0, 0, .15); }
.sp-connecter { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.sp-connecter p { margin: 0; color: var(--texte-2); }
.sp-onglets { margin-bottom: 12px; }
.sp-champ { display: flex; margin-bottom: 12px; max-width: none; width: 100%; }
.sp-liste { display: flex; flex-direction: column; max-height: 420px; overflow: auto; }
.sp-ligne { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 2px; border-top: 1px solid var(--bord); }
.sp-ligne:first-child { border-top: 0; }
.sp-ligne img, .sp-vide { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--gris-clair); display: grid; place-items: center; color: var(--texte-2); }
.sp-txt { min-width: 0; display: flex; flex-direction: column; }
.sp-txt b, .sp-txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-txt small { color: var(--texte-2); font-size: 12.5px; }
.sp-boutons { display: flex; gap: 6px; }
.sp-groupe { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-2); padding: 10px 2px 2px; }
.lien-discret { background: none; border: 0; padding: 0; color: var(--texte-2); text-decoration: underline; cursor: pointer; font: inherit; }

/* 🖥️ Apparence › Écran de veille */
.veille-grille { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.veille-choix { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important; }
.option.option-court { padding: 12px 14px; }
.veille-choix .palette-infos strong { white-space: nowrap; }
.veille-apercu { padding: 14px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.va-ecran { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: linear-gradient(135deg, #1b1b1b, #2f3b39); display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.va-pochette { width: 34%; aspect-ratio: 1; border-radius: 8px; background: linear-gradient(135deg, var(--bleu), #6b3fa0); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); animation: art-temps .5s infinite; }
.va-lignes { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.va-lignes i { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .8); }
.va-lignes i:nth-child(2) { width: 70%; opacity: .6; } .va-lignes i:nth-child(3) { height: 4px; background: var(--bleu); }
@media (max-width: 860px) { .veille-grille { grid-template-columns: 1fr; } }

/* Paramètres › Spotify : étapes */
.sonos-dev-etapes { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.sonos-dev-etapes code { user-select: all; }
.sonos-dev-tete > b { flex: 1; }
.room.is-maint .room-name span, .room.is-maint .room-name small { white-space: normal; }

/* 🎵 Mini lecteur (menu de gauche) */
.mini-lecteur { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 6px 10px; padding: 10px; margin-bottom: 10px; border-radius: calc(12px * var(--arrondi));
  background: rgba(255, 255, 255, .06); border: 1px solid var(--entete-separateur, rgba(255, 255, 255, .08)); color: var(--entete-texte, var(--texte)); }
.mini-lecteur[hidden] { display: none; }
.ml-pochette { width: 52px; height: 52px; border-radius: 9px; overflow: hidden; display: block; background: rgba(255, 255, 255, .08); box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.ml-pochette .art, .ml-pochette img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: grid; place-items: center; }
.ml-infos { min-width: 0; display: flex; flex-direction: column; justify-content: center; line-height: 1.25; }
.ml-club { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--entete-actif, var(--bleu)); min-width: 0; }
.ml-club > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-club .state-dot { width: 7px; height: 7px; flex: none; }
.ml-changer { margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; font-size: 13px; padding: 0 2px; opacity: .7; }
.ml-changer:hover { opacity: 1; }
.ml-titre { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-artiste { font-size: 12px; color: var(--entete-texte-2, var(--texte-2)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-barre { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.ml-barre i { display: block; height: 100%; width: 0; background: var(--entete-actif, var(--bleu)); border-radius: 3px; }
.ml-commandes { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; }
.ml-commandes button, .ml-ecran { width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; text-decoration: none; font-size: 15px; }
.ml-commandes button:hover, .ml-ecran:hover { background: rgba(255, 255, 255, .1); text-decoration: none; }
.ml-commandes .icon { width: 15px; height: 15px; }
.ml-commandes .ml-principal { width: 36px; height: 36px; background: var(--entete-actif, var(--bleu)); color: var(--entete-actif-texte, #fff); }
.ml-commandes .ml-principal:hover { background: var(--entete-actif, var(--bleu)); filter: brightness(1.08); }
.ml-commandes button:disabled { opacity: .35; cursor: default; }
.ml-ecran { position: absolute; right: 8px; opacity: .6; }
.ml-commandes { position: relative; }
.mini-lecteur.joue.au-rythme .ml-pochette { animation: art-temps var(--temps) cubic-bezier(.25, .1, .25, 1) infinite; animation-delay: var(--phase, 0s); }
/* Menu réduit en icônes : la pochette seule */
html.lateral-reduit .mini-lecteur, html.lat-rail .mini-lecteur { grid-template-columns: 1fr; padding: 6px; justify-items: center; }
html.lateral-reduit .mini-lecteur :is(.ml-infos, .ml-barre, .ml-commandes), html.lat-rail .mini-lecteur :is(.ml-infos, .ml-barre, .ml-commandes) { display: none; }
html.lateral-reduit .ml-pochette, html.lat-rail .ml-pochette { width: 40px; height: 40px; }
html:not(.menu-gauche) .mini-lecteur { display: none; }

/* 💓 Tableau de bord : égaliseur de lecture qui bat (au rythme du titre quand il est connu) */
.meter.meter-mini { height: 18px; gap: 2px; flex: none; }
.meter.meter-mini i { width: 3px; }
.meter.meter-mini.joue i { background: var(--ok); opacity: 1; animation: level 1s ease-in-out infinite alternate; }
.meter.meter-mini.joue i:nth-child(2) { animation-duration: .7s; animation-delay: -.3s; }
.meter.meter-mini.joue i:nth-child(3) { animation-duration: 1.2s; animation-delay: -.5s; }
.meter.meter-mini.joue i:nth-child(4) { animation-duration: .85s; animation-delay: -.2s; }
.meter.meter-mini.joue i:nth-child(5) { animation-duration: 1.05s; animation-delay: -.6s; }
@keyframes level-mini { 0% { height: 3px; } 100% { height: 18px; } }
.meter.meter-mini.joue i { animation-name: level-mini; }
.au-rythme .meter.meter-mini.joue i { animation-duration: calc(var(--temps) / 2); animation-delay: var(--phase, 0s); }
.au-rythme .meter.meter-mini.joue i:nth-child(2n) { animation-duration: var(--temps); }
.au-rythme .meter.meter-mini.joue i:nth-child(3n) { animation-duration: calc(var(--temps) * .75); }
.state-dot.sd-up { animation-play-state: running; }

/* 🏋️ Logo SYNERGY FIT dans l'en-tête */
.logo-partenaire { display: flex; align-items: center; flex: none; padding: 0 6px 0 4px; }
.logo-partenaire img { height: 30px; width: auto; display: block; }
.logo-partenaire[hidden] { display: none; }
@media (max-width: 1100px) { .logo-partenaire img { height: 24px; } }
@media (max-width: 760px) { .logo-partenaire { display: none; } }
.lp-carte { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.lp-carte .ar-interrupteur { flex: 1; min-width: 260px; }
.lp-apercu { background: #222; border-radius: 10px; padding: 10px 16px; display: flex; }
.lp-apercu img { height: 28px; width: auto; }

/* 🔄 Bulles de mise à jour Sonos (comme les statuts d'AXION PILOT) */
.room-maj { display: inline-block; line-height: 1.6; margin-left: 6px; font-size: 11.5px; padding: 1px 9px; border-radius: 999px; font-weight: 600; white-space: nowrap; vertical-align: 1px; }
/* Nom de l'enceinte et bulle « À jour » sur la même ligne, alignés */
.room-name .room-titre { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 8px; min-width: 0; overflow: visible; white-space: normal; }
.room-name .room-nom { overflow: visible; white-space: normal; }
.room-name .room-titre .room-maj { margin-left: 0; flex: none; line-height: 1.5; vertical-align: 0; font-size: 11px; padding: 0 8px; }
.sp-etat { font-size: 13px; padding: 9px 12px; border-radius: calc(10px * var(--arrondi)); margin-bottom: 12px; background: var(--surface-2); border: 1px solid var(--bord); color: var(--texte-2); line-height: 1.55; }
.sp-etat .room-maj { margin: 0 4px 0 0; }
.sp-txt b .room-maj { font-size: 10.5px; padding: 0 7px; margin-left: 6px; }

/* 🔗 Groupes d'enceintes Sonos */
.groupes { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.groupes-titre { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-2); }
.groupe { padding: 10px 12px; border-radius: calc(10px * var(--arrondi)); border: 1px solid var(--bord); background: var(--surface-2); }
.groupe.principal { border-color: color-mix(in srgb, var(--vert) 35%, var(--bord)); }
.groupe-tete { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.groupe-tete .room-maj { margin-left: 0; font-size: 11px; padding: 0 8px; }
.groupe-etat { margin-left: auto; font-size: 12px; color: var(--texte-2); }
.groupe-membres { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.groupe-membres span { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--carte); border: 1px solid var(--bord); }
.sp-favori-requis { border: 1px dashed var(--champ-bord); background: transparent; color: var(--texte-2); font-size: 12px; padding: 4px 9px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.sp-favori-requis:hover { border-color: var(--bleu); color: var(--bleu-fonce); }

/* 🎵 Mini lecteur remonté juste sous le menu, pied du volet en bas */
@media (min-width: 761px) {
  html.menu-gauche .lateral .lat-liste { flex: 0 1 auto; }
  html.menu-gauche .lateral > .mini-lecteur { margin: 6px 12px 0; flex: none; }
  html.menu-gauche .lateral .lat-pied { margin-top: auto; }
}
/* 💓 Pulsation musicale du mini lecteur */
.mini-lecteur { grid-template-columns: 52px minmax(0, 1fr) auto; }
.mini-lecteur .ml-pulsation { align-self: center; height: 22px; }
.mini-lecteur .ml-pulsation i { background: var(--entete-texte-2, var(--idle)); }
.mini-lecteur.joue .ml-pulsation i { background: var(--entete-actif, var(--ok)); }
.mini-lecteur.joue .ml-pulsation { }
.mini-lecteur .ml-barre, .mini-lecteur .ml-commandes { grid-column: 1 / -1; }
html.lateral-reduit .mini-lecteur .ml-pulsation, html.lat-rail .mini-lecteur .ml-pulsation { display: none; }

/* 🔗 Grouper / dégrouper */
.panel-head .panel-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.grp-choix { display: grid; gap: 6px; margin: 4px 0 10px; max-height: min(66vh, 620px); overflow: auto; }
.grp-ligne { display: grid; grid-template-columns: 20px 12px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px;
  border: 1px solid var(--border, rgba(0,0,0,.1)); border-radius: calc(10px * var(--arrondi, 1)); cursor: pointer; }
.grp-ligne:has(input:checked) { border-color: var(--accent, var(--ok)); background: color-mix(in srgb, var(--accent, #2bb673) 8%, transparent); }
.grp-ligne input { width: 18px; height: 18px; accent-color: var(--accent, var(--ok)); margin: 0; }
.grp-ligne small { color: var(--muted, #888); font-size: .8rem; }
.grp-raccourcis { display: flex; gap: 8px; justify-content: center; margin-bottom: 6px; }

/* 🔁🔀 Répétition / Aléatoire cliquables */
button.tag-mode { cursor: pointer; font-family: inherit; transition: background .15s, border-color .15s, color .15s; }
button.tag-mode:hover:not(:disabled) { border-color: var(--accent, #2bb673); }
button.tag-mode:disabled { cursor: default; opacity: .75; }

/* 👑 Accès : propriétaire seul */
.note-acces { margin: 0 0 14px; padding: 12px 16px; border-radius: calc(12px * var(--arrondi, 1)); background: var(--orange-clair, #fff4e5); color: var(--orange, #b45309); font-weight: 550; text-align: center; }
.info-mdp { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--ok-soft, #e8f7ef); color: var(--ink-2, #334); font-size: 13px; line-height: 1.45; }

/* 🧩 Tableau de bord personnalisable */
.barre-actions .tb-personnaliser { margin-left: 0; }
.tb-barre:not(:has(.tb-edition-barre:not(:empty))) { margin: 0; }
body:not(.tb-edition) .tb-barre { display: none; }
.tb-grille { margin-top: 4px; }
.tb-widget > .tb-contenu > .panel, .tb-widget > .tb-contenu > .bandeau, .tb-widget > .tb-contenu > .dash-links { margin: 0; }
.tb-widget > .tb-contenu > .bandeau { margin-bottom: 0; }
.tb-carte { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.tb-titre { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.tb-titre h2 { margin: 0; font-size: 1rem; }
.tb-titre a { text-decoration: none; }
.tb-ligne { display: grid; grid-template-columns: 14px minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 6px; border-radius: 8px; color: inherit; text-decoration: none; }
.tb-ligne + .tb-ligne { border-top: 1px solid var(--line, var(--bord)); }
.tb-ligne:hover { background: var(--surface-2, rgba(0,0,0,.03)); }
.tb-ligne b { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-ligne small { display: block; color: var(--muted, var(--texte-2)); font-size: .78rem; }
.tb-calme { margin: auto 0; padding: 18px 0; text-align: center; color: var(--muted, var(--texte-2)); }
.tb-journal { max-height: 340px; overflow: auto; margin: 0; }
.tb-raccourcis { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.tb-raccourci { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line, var(--bord)); border-radius: calc(10px * var(--arrondi, 1)); color: inherit; text-decoration: none; font-weight: 600; font-size: .88rem; }
.tb-raccourci:hover { border-color: var(--accent, var(--bleu)); box-shadow: var(--ombre); }
.tb-raccourci span { font-size: 1.15rem; }
.tb-postit { background: #fff8c5; border-color: #f1e39b; }
.tb-postit-zone { flex: 1; min-height: 140px; width: 100%; resize: vertical; border: 0; background: transparent; font: inherit; color: #3b3418; line-height: 1.5; outline: none; }
.tb-pochettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.tb-pochette { position: relative; display: block; aspect-ratio: 1; border-radius: calc(12px * var(--arrondi, 1)); overflow: hidden; background: #222; color: #fff; text-decoration: none; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.tb-pochette img, .tb-pochette .art-empty { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; }
.tb-pochette:not(.joue) img { filter: grayscale(.7) brightness(.8); }
.tb-p-texte { position: absolute; inset: auto 0 0 0; padding: 26px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.82)); }
.tb-p-texte b { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.tb-p-texte small { display: block; font-size: .76rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-edition .tb-widget { min-height: 80px; }

/* ===================== 🎬 Page de connexion animée aux couleurs de SYNERGY FIT ===================== */
body.connexion-synergy { --sy-1: #00c7aa; --sy-2: #00a38c; --sy-3: #2bc6ad; --sy-4: #7ef0d8; --sy-fond: #141716;
  background: radial-gradient(120% 90% at 50% 0%, #1f2523 0%, var(--sy-fond) 55%, #0c0e0d 100%) fixed; color-scheme: dark; overflow-x: hidden; }
body.connexion-synergy .page-connexion { position: relative; z-index: 2; background: transparent; }
.cx-pile { width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; gap: 22px; animation: cx-entree .8s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes cx-entree { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
body.connexion-synergy .carte-connexion { max-width: 400px; position: relative; border: 0; border-radius: calc(16px * var(--arrondi, 1));
  box-shadow: 0 0 0 1px rgba(0, 199, 170, .25), 0 24px 70px rgba(0, 0, 0, .55), 0 0 60px rgba(0, 199, 170, .14); }
/* Pas de filet coloré au-dessus du logo (demande de Jeff) */
body.connexion-synergy .carte-connexion::before { content: none; }
body.connexion-synergy .btn-primaire { background: linear-gradient(135deg, var(--sy-1), var(--sy-2)); border-color: transparent; color: #06231e; font-weight: 700; }
body.connexion-synergy .btn-primaire:hover { filter: brightness(1.06); box-shadow: 0 8px 22px rgba(0, 199, 170, .35); }
body.connexion-synergy .carte-connexion input:focus { border-color: var(--sy-2); box-shadow: 0 0 0 3px rgba(0, 199, 170, .2); }
.cx-partenaire { display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255, 255, 255, .55); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.cx-partenaire img { height: 34px; filter: drop-shadow(0 0 14px rgba(0, 199, 170, .35)); }
.cx-apercu { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 5; padding: 8px 16px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .85rem; backdrop-filter: blur(6px); }
.cx-apercu a { color: var(--sy-4); }

.cx-fond { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.cx-lueur { position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 199, 170, .18) 0%, rgba(0, 199, 170, .06) 35%, transparent 65%); animation: cx-respire 7s ease-in-out infinite; }
@keyframes cx-respire { 50% { transform: scale(1.12); opacity: .75; } }

/* 📡 Ondes sonores */
.cx-ondes i { position: absolute; left: 50%; top: 50%; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%;
  border: 2px solid rgba(0, 199, 170, .55); opacity: 0; animation: cx-onde 6s cubic-bezier(.2, .6, .3, 1) infinite; }
.cx-ondes i:nth-child(2) { animation-delay: 1.2s; } .cx-ondes i:nth-child(3) { animation-delay: 2.4s; }
.cx-ondes i:nth-child(4) { animation-delay: 3.6s; } .cx-ondes i:nth-child(5) { animation-delay: 4.8s; }
@keyframes cx-onde { 0% { transform: scale(.85); opacity: .9; border-width: 3px; } 100% { transform: scale(4.2); opacity: 0; border-width: 1px; } }

/* 🎚️ Égaliseur */
.cx-egaliseur { position: absolute; inset: auto 0 0 0; height: 46vh; display: flex; align-items: flex-end; gap: .45vw; padding: 0 .5vw;
  -webkit-mask-image: linear-gradient(to top, #000 30%, transparent); mask-image: linear-gradient(to top, #000 30%, transparent); }
.cx-egaliseur i { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; transform-origin: bottom;
  background: linear-gradient(to top, var(--sy-2), var(--sy-1) 55%, var(--sy-4)); opacity: .55;
  animation: cx-barre var(--d) ease-in-out infinite alternate; animation-delay: calc(var(--i) * -0.09s); }
@keyframes cx-barre { 0% { transform: scaleY(.18); } 60% { transform: scaleY(.85); } 100% { transform: scaleY(1); } }

/* 🌌 Aurore */
.cx-aurore i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(70px); opacity: .45; mix-blend-mode: screen; }
.cx-aurore i:nth-child(1) { background: var(--sy-1); left: -15vmax; top: -20vmax; animation: cx-derive1 18s ease-in-out infinite alternate; }
.cx-aurore i:nth-child(2) { background: #0a7d6c; right: -20vmax; top: 10vmax; animation: cx-derive2 22s ease-in-out infinite alternate; }
.cx-aurore i:nth-child(3) { background: var(--sy-4); left: 20vmax; bottom: -35vmax; opacity: .25; animation: cx-derive1 26s ease-in-out infinite alternate-reverse; }
@keyframes cx-derive1 { to { transform: translate(18vmax, 12vmax) scale(1.15); } }
@keyframes cx-derive2 { to { transform: translate(-16vmax, -10vmax) scale(.9); } }
.cx-notes span { position: absolute; bottom: -40px; left: calc(6% + var(--n) * 9.5%); color: var(--sy-4); opacity: 0;
  text-shadow: 0 0 12px rgba(0, 199, 170, .7); animation: cx-note calc(9s + var(--n) * .8s) linear infinite; animation-delay: calc(var(--n) * -1.7s); }
@keyframes cx-note { 0% { transform: translateY(0) rotate(-10deg); opacity: 0; } 12% { opacity: .75; } 85% { opacity: .5; } 100% { transform: translateY(-105vh) rotate(18deg); opacity: 0; } }

@media (max-width: 640px) { .cx-ondes i { width: 300px; height: 300px; margin: -150px 0 0 -150px; } .cx-egaliseur { height: 34vh; } }

/* Paramètres › Général : choix de l'ambiance */
.ambiances { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ambiance-choix { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--bord); border-radius: var(--rayon); cursor: pointer; background: var(--carte); }
.ambiance-choix:has(input:checked) { border-color: var(--bleu); box-shadow: 0 0 0 2px color-mix(in srgb, var(--bleu) 30%, transparent); }
.ambiance-choix input { position: absolute; top: 10px; right: 10px; accent-color: var(--bleu); }
.ambiance-choix small { color: var(--texte-2); font-size: .78rem; line-height: 1.35; }
.ambiance-vignette { position: relative; height: 70px; border-radius: 8px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #24302d, #121514); margin-bottom: 4px; }
.ambiance-vignette i { position: absolute; }
.amb-ondes i { left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px; border: 2px solid #00c7aa; border-radius: 50%; animation: cx-onde 3s ease-out infinite; }
.amb-ondes i:nth-child(2) { animation-delay: 1s; } .amb-ondes i:nth-child(3) { animation-delay: 2s; }
.amb-egaliseur i { bottom: 0; width: 26%; height: 70%; background: linear-gradient(to top, #00a38c, #7ef0d8); transform-origin: bottom; animation: cx-barre .7s ease-in-out infinite alternate; opacity: .7; }
.amb-egaliseur i:nth-child(1) { left: 4%; } .amb-egaliseur i:nth-child(2) { left: 37%; animation-delay: -.3s; } .amb-egaliseur i:nth-child(3) { left: 70%; animation-delay: -.5s; }
.amb-aurore i { width: 70px; height: 70px; border-radius: 50%; filter: blur(16px); background: #00c7aa; left: 10%; top: -20px; animation: cx-derive1 6s ease-in-out infinite alternate; }
.amb-aurore i:nth-child(2) { background: #0a7d6c; left: 55%; top: 10px; animation-name: cx-derive2; } .amb-aurore i:nth-child(3) { background: #7ef0d8; opacity: .5; left: 35%; top: 40px; }
.amb-aucune i { display: none; }

/* Tuiles de synthèse : textes en couleur neutre, la couleur reste sur la barre et le voyant (demande de Jeff) */
.bd-tuile .bd-etat, .bd-tuile.ton-ok .bd-etat, .bd-tuile.ton-warn .bd-etat, .bd-tuile.ton-ko .bd-etat { color: var(--texte-2); font-weight: 500; }
.bd-tuile { -webkit-user-select: none; user-select: none; }

/* 🎯 En-tête (ordinateur) : tout sur la même ligne médiane, même hauteur (40 px), logo SYNERGY FIT centré entre la recherche et les boutons */
@media (min-width: 1101px) {
  .topbar-inner:not(.topbar-menu) { align-items: center; }
  .topbar-inner .cx { align-self: center; }
  .topbar-inner .cx-voyant { height: 40px; min-height: 40px; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; }
  .topbar-inner .recherche-globale input { height: 40px; min-height: 40px; }
  .topbar-inner .user-menu { align-items: center; gap: 8px; }
  .topbar-inner .user-menu > .btn, .topbar-inner .user-menu form > .btn { height: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
  .topbar-inner .user-menu > .btn-icone { width: 44px; padding: 0; }
  .topbar-inner .user-menu form { display: flex; }
  .topbar-inner:has(.logo-partenaire:not([hidden])) .accueil-vide { display: none; }
  .topbar-inner .logo-partenaire:not([hidden]) { flex: 1 1 auto; justify-content: center; height: 40px; padding: 0 16px; }
  .topbar-inner .logo-partenaire img { height: 28px; }
}

/* 🔊 Routines de volume */
.routine { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line, var(--bord)); }
.routine:first-child { border-top: 0; padding-top: 2px; }
.routine.pause { opacity: .5; }
.routine-heure { font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; text-align: center; padding: 6px 0; border-radius: 8px; background: var(--surface-2, rgba(0,0,0,.04)); }
.routine.en-vigueur .routine-heure { background: color-mix(in srgb, var(--accent, #00a38c) 16%, transparent); color: var(--accent-ink, var(--accent, #00796b)); }
.routine-info b { display: block; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.routine-info small { color: var(--muted, var(--texte-2)); font-size: .78rem; }
.routine-actuelle { color: var(--accent, #00a38c); font-weight: 700; }
.routine-vol { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; background: var(--surface-2, rgba(0,0,0,.05)); font-variant-numeric: tabular-nums; font-size: .9rem; }
.routine-vol::before { content: '🔊'; font-size: .8rem; }
.routine-jauge { display: none; height: 6px; border-radius: 99px; background: var(--surface-2, rgba(0,0,0,.08)); overflow: hidden; }
.routine-jauge i { display: block; height: 100%; border-radius: inherit; background: var(--accent, #00a38c); }
.routine-actions { display: flex; align-items: center; gap: 6px; }
.routine-actions form { display: flex; }
.routine-vide { margin: 4px 0; color: var(--muted, var(--texte-2)); text-align: center; line-height: 1.5; }
.routine-pied { display: flex; justify-content: center; padding-top: 12px; margin-top: 6px; border-top: 1px solid var(--line, var(--bord)); }
.interrupteur { position: relative; width: 38px; height: 22px; border-radius: 99px; border: 0; padding: 0; cursor: pointer; background: #c9cfcd; transition: background .2s; flex: none; }
.interrupteur i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.interrupteur.on { background: var(--accent, #00a38c); }
.interrupteur.on i { transform: translateX(16px); }
.routine-curseur { width: 100%; accent-color: var(--accent, #00a38c); }
.routine-jours { display: flex; gap: 6px; flex-wrap: wrap; }
.routine-jours .jour input { position: absolute; opacity: 0; pointer-events: none; }
.routine-jours .jour span { display: inline-grid; place-items: center; min-width: 48px; height: 36px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--bord); cursor: pointer; font-weight: 600; font-size: .85rem; user-select: none; }
.routine-jours .jour input:checked + span { background: var(--accent, #00a38c); border-color: var(--accent, #00a38c); color: #fff; }
.routine-jours .jour input:focus-visible + span { outline: 2px solid var(--accent, #00a38c); outline-offset: 2px; }
.routine-raccourcis { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
@media (max-width: 760px) { .routine { grid-template-columns: 54px minmax(0, 1fr) auto; } .routine-actions { grid-column: 1 / -1; justify-content: flex-end; } }

/* 🎧 Écoute de contrôle (panneau flottant) */
.ecoute { position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 380px; max-width: calc(100vw - 24px); padding: 14px; border-radius: 16px;
  background: #151918; color: #eef5f3; box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(0,199,170,.25); animation: ec-entree .25s ease-out both; }
@keyframes ec-entree { from { opacity: 0; transform: translateY(14px); } }
.ec-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .85rem; color: rgba(238,245,243,.75); margin-bottom: 10px; }
.ec-tete b { color: #fff; }
.ec-fermer { width: 30px; height: 30px; border-radius: 8px; border: 0; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.ec-fermer:hover { background: rgba(255,255,255,.16); }
.ec-club { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: center; margin-bottom: 10px; }
.ec-club img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.ec-club img[hidden] + span { grid-column: 1 / -1; }
.ec-club b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-club small { display: block; color: rgba(238,245,243,.65); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-club .ec-pos { color: #7ef0d8; font-variant-numeric: tabular-nums; }
.ec-lecteur { border-radius: 12px; overflow: hidden; min-height: 152px; background: rgba(255,255,255,.04); }
.ec-lecteur iframe { display: block; border: 0; }
.ec-etat { margin: 8px 2px 0; font-size: .78rem; line-height: 1.4; color: rgba(238,245,243,.7); min-height: 1em; }
.ec-etat.warn { color: #fbbf24; }
.ec-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ec-actions .btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #fff; }
.ec-suivre { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; margin-right: auto; cursor: pointer; }
.ec-suivre input { accent-color: #00c7aa; }
.ml-ecoute { border: 0; background: transparent; cursor: pointer; font-size: 15px; padding: 4px; opacity: .85; }
.ml-ecoute:hover { opacity: 1; }
@media (max-width: 640px) { .ecoute { right: 12px; left: 12px; bottom: 12px; width: auto; } }
.ec-lecteur[hidden] { display: none; }

/* 💓 Pastilles des enceintes : elles battent quand le club joue (au rythme du titre si son tempo est connu) */
.room .dot { position: relative; }
html.club-joue .room .dot:not(.out):not(.off):not(.maint):not(.idle) { animation: dot-battement 1.6s ease-out infinite; }
html.club-joue .room .dot:not(.out):not(.off):not(.maint):not(.idle)::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: dot-onde 1.6s ease-out infinite; }
html.club-joue.au-rythme .room .dot:not(.out):not(.off):not(.maint) { animation: wp-temps var(--temps) cubic-bezier(.25, .1, .25, 1) infinite; animation-delay: var(--phase, 0s); }
html.club-joue.au-rythme .room .dot:not(.out):not(.off):not(.maint)::after { animation-duration: calc(var(--temps) * 2); animation-delay: var(--phase, 0s); }
@keyframes dot-battement { 0% { transform: scale(1.25); } 40%, 100% { transform: scale(1); } }
@keyframes dot-onde { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(2.8); opacity: 0; } }

/* 📡 Diffusion par enceinte : vert « En diffusion » quand le club joue, gris « Ne diffuse pas » sinon, rouge hors ligne */
.room-diff { display: contents; }
.room-diff .d-non { display: none; }
html:not(.club-joue) .room-diff .d-oui { display: none; }
html:not(.club-joue) .room-diff .d-non { display: inline-flex; }
html:not(.club-joue) .room .dot:not(.out):not(.off):not(.maint) { background: #a3aba8; }
.badge.badge-gris { background: rgba(120, 130, 127, .14); color: #5f6865; }
.badge.badge-rouge { background: rgba(220, 38, 38, .12); color: #b91c1c; }
.room .dot.off { background: #dc2626; }

.room-name small.room-sous { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; white-space: nowrap; }
.room-name small.room-sous .room-maj { font-size: 10.5px; padding: 0 7px; line-height: 1.5; }
.room-name .room-titre { flex-wrap: nowrap; }
.room-name .room-titre .room-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.room-name > span:last-child { min-width: 0; }
/* Place pour le nom + « En diffusion » : curseur de volume un peu plus court */
.room { grid-template-columns: minmax(0, 1fr) 84px 26px 32px; gap: 8px; }
.room-name .room-titre .room-maj { font-size: 10.5px; padding: 0 7px; }
.room .dot.idle { background: #a3aba8; animation: none; }
html.club-joue .room .dot.idle::after { content: none; }

/* « 8/8 enceintes » cliquable */
button.tag-enceintes { background: var(--carte, #fff); }
button.tag-enceintes .tag-chevron { font-size: 10px; opacity: .6; margin-left: 2px; }
button.tag-enceintes:hover .tag-chevron { opacity: 1; }

/* 📱 Fiche club sur téléphone : « Réglages du club » en tête, les autres actions apparentes en dessous */
@media (max-width: 760px) {
  .page-head > .actions.actions-club { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .page-head > .actions.actions-club:not(:has(.btn-primaire)), .page-head > .actions.actions-club:has(> .btn:nth-child(3):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head > .actions.actions-club > .btn-primaire { grid-column: 1 / -1; order: -1; min-height: 46px; justify-content: center; font-size: 15px; }
  .page-head > .actions.actions-club > .btn:not(.btn-primaire) { min-height: 54px; padding: 6px 4px; flex-direction: column; justify-content: center; gap: 2px;
    white-space: normal; line-height: 1.2; font-size: 12.5px; text-align: center; }
}

/* 🅵 Pastille « F » des clubs en franchise */
.pastille-franchise { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 6px; border-radius: 50%; vertical-align: middle;
  background: linear-gradient(135deg, #00c7aa, #00a38c); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 1; letter-spacing: 0; flex: none; box-shadow: 0 1px 3px rgba(0, 163, 140, .35); }
h1 .pastille-franchise { width: 24px; height: 24px; font-size: 13px; margin-left: 8px; position: relative; top: -2px; }
.tb-p-texte .pastille-franchise { width: 15px; height: 15px; font-size: 9px; margin-left: 4px; }
.check-franchise { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--bord); border-radius: calc(10px * var(--arrondi, 1)); cursor: pointer; }
.check-franchise .pastille-franchise { margin-left: 0; }
.check-franchise:has(input:checked) { border-color: #00a38c; background: color-mix(in srgb, #00c7aa 7%, transparent); }
.c-client a.cell-main:has(+ .pastille-franchise) { display: inline; }
.c-client a.cell-main + .pastille-franchise { width: 16px; height: 16px; font-size: 9.5px; position: relative; top: -1px; }

/* 🔐 Contrôle des accès */
.controle-acces .ca-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.ca-carte { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--bord); border-left-width: 4px; border-radius: var(--rayon, 12px); background: var(--carte); }
.ca-carte.ok { border-left-color: #16a34a; } .ca-carte.ko { border-left-color: #dc2626; } .ca-carte.attente { border-left-color: #f59e0b; }
.ca-carte .ca-titre { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-2); font-weight: 700; }
.ca-carte b { font-size: 15px; }
.ca-carte small { color: var(--texte-2); font-size: 12.5px; line-height: 1.45; }
.ca-carte .ca-quand { font-size: 11.5px; }
.ca-carte .btn { align-self: flex-start; margin-top: 4px; }
.ca-carte input[type=date] { max-width: 220px; }

.ca-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ca-champ { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--texte-2); font-weight: 600; }
.ca-champ .input { width: 100%; }
.ca-champ .input:disabled { opacity: .45; }
.ca-sans { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.ca-sans input { accent-color: var(--accent, #00a38c); width: 16px; height: 16px; }
@media (max-width: 640px) { .ca-dates { grid-template-columns: 1fr; } }

/* 📡 Diffusion commune */
.dc { display: grid; gap: 18px; }
.dc-choisie { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--rayon, 12px); background: color-mix(in srgb, var(--accent, #00a38c) 8%, transparent); border: 1px solid color-mix(in srgb, var(--accent, #00a38c) 30%, transparent); }
.dc-choisie .dc-pochette { width: 64px; height: 64px; }
.dc-infos > b { display: block; font-size: 1.05rem; } .dc-infos small b { display: inline; font-size: inherit; } .dc-infos small { display: block; color: var(--texte-2); margin-top: 2px; }
.dc-sous { margin: 18px 0 10px; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-2); }
.dc-vide { color: var(--texte-2); margin: 4px 0; }
.dc-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.dc-carte { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--bord); border-radius: var(--rayon, 12px); background: var(--carte); text-align: left; cursor: pointer; font: inherit; color: inherit; }
.dc-carte:hover { border-color: var(--accent, #00a38c); box-shadow: var(--ombre); }
.dc-carte.choisie { border-color: var(--accent, #00a38c); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #00a38c) 30%, transparent); }
.dc-pochette { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--surface-2, rgba(0,0,0,.05)); flex: none; }
.dc-pochette img { width: 100%; height: 100%; object-fit: cover; }
.dc-texte b { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dc-texte small { color: var(--texte-2); font-size: .76rem; }
.dc-compte { font-size: .78rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: rgba(245, 158, 11, .15); color: #b45309; font-variant-numeric: tabular-nums; }
.dc-carte.partout .dc-compte { background: rgba(22, 163, 74, .14); color: #15803d; }
.dc-table tr.dc-off { opacity: .55; }
.dc-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 16px; border-top: 1px solid var(--bord); }
.dc-bilan { display: grid; gap: 6px; padding: 0 16px 16px; }
.dc-ligne { display: grid; grid-template-columns: 22px 240px minmax(0, 1fr); gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; background: var(--surface-2, rgba(0,0,0,.03)); }
.dc-ligne.ko { background: rgba(245, 158, 11, .1); } .dc-ligne small { color: var(--texte-2); }
.dc-filtres button { font: inherit; }

/* 📤 Mise en favori assistée */
.ps-clubs { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); max-height: none; }
.ps-clubs .grp-ligne:has(input:disabled) { opacity: .6; }
.ps-options { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; }
.ps-options .check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

.fav-wrap { position: relative; display: grid; }
.fav-wrap .fav { width: 100%; }
.fav-pousser { position: absolute; bottom: 10px; right: 10px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); text-decoration: none; transition: color .15s, background .15s, border-color .15s; }
.fav-pousser:hover, .fav-pousser:focus-visible { color: var(--accent-ink); background: var(--accent-soft); border-color: transparent; text-decoration: none; }
.fav-wrap .fav > span { padding-right: 34px; }
.ps-clubs .grp-ligne { grid-template-columns: 20px minmax(0, 1fr); row-gap: 2px; }
.ps-clubs .grp-ligne > span:not([data-ps-etat]) { display: none; }
.ps-clubs .grp-ligne small { grid-column: 2; }
.ps-clubs .grp-ligne input { grid-row: 1 / span 2; }

.routine-info .routine-playlist { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--accent-ink, var(--texte-2)); }

/* 🖥️ Écran de veille : réglages détaillés */
.veille-reglages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.vr-bloc { padding: 16px; border: 1px solid var(--bord); border-radius: var(--rayon, 12px); background: var(--carte); display: flex; flex-direction: column; gap: 10px; }
.vr-bloc h3 { margin: 0; font-size: 15px; }
.vr-large { grid-column: 1 / -1; }
.vr-choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vr-choix .option small { display: block; color: var(--texte-2); font-size: 12px; font-weight: 400; margin-top: 2px; }
.vr-ligne { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.vr-ligne .segmented button { font: inherit; font-size: 13px; }
.vr-clubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.vr-club, .vr-element { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--bord); border-radius: 10px; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.vr-club small { display: block; font-weight: 400; color: var(--texte-2); font-size: 11.5px; }
.vr-club:has(input:checked), .vr-element:has(input:checked) { border-color: var(--accent, var(--bleu)); background: color-mix(in srgb, var(--accent, var(--bleu)) 7%, transparent); }
.vr-club input, .vr-element input { accent-color: var(--accent, var(--bleu)); width: 16px; height: 16px; flex: none; }
.vr-elements { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.vr-element i { font-style: normal; display: inline-block; width: 22px; text-align: center; margin-right: 4px; }
@media (max-width: 760px) { .veille-reglages, .vr-choix { grid-template-columns: 1fr; } }

/* 📱 Enceintes sur téléphone : nom et bulles sur toute la largeur, volume et outil sur la ligne du dessous */
@media (max-width: 640px) {
  .room { grid-template-columns: minmax(0, 1fr) 30px 40px; grid-template-areas: "nom nom nom" "vol val outil"; row-gap: 8px; column-gap: 10px; padding: 12px 0; }
  .room > .room-name { grid-area: nom; }
  .room > input[type=range] { grid-area: vol; width: 100%; margin-left: 20px; width: calc(100% - 20px); }
  .room > output { grid-area: val; }
  .room > :last-child { grid-area: outil; justify-self: end; }
  .room-name .room-titre { flex-wrap: wrap; row-gap: 4px; }
  .room-name .room-titre .room-nom { white-space: normal; overflow: visible; }
  .room-name small.room-sous { flex-wrap: wrap; white-space: normal; }
}

/* 🅵 « Franchise » en toutes lettres (remplace la pastille F) */
.pastille-franchise, h1 .pastille-franchise, .tb-p-texte .pastille-franchise, .c-client a.cell-main + .pastille-franchise {
  width: auto; height: auto; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .02em; line-height: 1.5; top: 0; }
h1 .pastille-franchise { font-size: 12.5px; padding: 3px 11px; position: relative; top: -3px; }
.tb-p-texte .pastille-franchise { font-size: 9.5px; padding: 1px 6px; text-transform: none; }
.c-client a.cell-main + .pastille-franchise { font-size: 10px; padding: 1px 7px; top: -1px; }

/* S du logo SYNERGY FIT à la place des pictos 🏟️ / 🎵 dans les titres */
h1 .picto-s { height: 1.1em; width: auto; vertical-align: -0.18em; margin-right: .32em; }
.page-head h1:has(> .pill) .picto-s { margin-right: -5px; }

/* 🎧 Logo SYNERGY FIT PLAY : page de connexion et écran d'ouverture */
.carte-connexion .brand .logo-sfp { width: 100%; max-width: 300px; height: auto; }
.splash-synergy .splash-logo { width: min(56vw, 420px); height: auto; }
@media (max-width: 760px) { .splash-synergy .splash-scene { gap: 10px; } .splash-synergy .splash-casque svg { width: 78px; height: 78px; } }
@media (min-width: 761px) { .splash-synergy .splash-logo { width: min(46vw, 520px); } .splash .splash-casque svg { width: 130px; height: 130px; } }
@media (max-width: 760px) { .splash-synergy .splash-casque { width: 78px; height: 78px; } }
@media (min-width: 761px) { .splash-synergy .splash-casque { width: 130px; height: 130px; } }

h2 .picto-s { height: 1.15em; width: auto; vertical-align: -0.2em; margin-right: .35em; }
/* Écran d'ouverture : ondes et barre aux couleurs du logo SYNERGY FIT */
.splash-synergy .splash-onde { border-color: #00a08a; }
.splash-synergy .splash-barre i { background: linear-gradient(90deg, #2ec4ad, #00a08a); }

/* Pictos images (S SYNERGY FIT, casque, enceinte) dans le menu et les tuiles */
.lat-icone .icone-img, .tiroir-icone .icone-img { width: 18px; height: 18px; object-fit: contain; display: block; }
.tiroir-page .icone-img { width: 1.1em; height: 1.1em; vertical-align: -0.18em; object-fit: contain; }
.bd-ico .bd-ico-img { width: 20px; height: 20px; object-fit: contain; display: block; }

/* Tuile « Incidents » (lien) : jamais de soulignement */
a.bd-tuile, a.bd-tuile:hover, a.bd-tuile:focus, a.bd-tuile * { text-decoration: none !important; }

/* ── Logo SYNERGY FIT PLAY : les lignes de part et d'autre de « PLAY » deviennent un égaliseur qui pulse ── */
.logo-anime { position: relative; display: inline-block; line-height: 0; vertical-align: middle; --la-c: #00a08a; }
.logo-anime.la-sombre { --la-c: #01c7aa; }
.logo-anime picture { display: inline-block; line-height: 0; }
span.splash-logo, .carte-connexion .brand .logo-anime.logo-sfp { display: inline-block; }
span.splash-logo > img, .logo-anime.logo-sfp > img { width: 100%; height: auto; display: block; }
.logo-anime .la-l { position: absolute; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.logo-anime.la-off .la-l { display: none; }
.logo-anime .la-l b { display: block; height: 100%; flex: 0 0 auto; border-radius: 99px; background: var(--la-c); transform-origin: center;
  transform: scaleY(.16); animation: la-barre var(--d, .9s) ease-in-out var(--r, 0s) infinite alternate; }
/* Repères mesurés sur le logo (655 × 147 px) : barres centrées sur l'ancienne ligne */
.la-entete .la-l { top: 73.1%; height: 20.4%; width: 22.3%; }
.la-entete .la-l.g { left: 0; } .la-entete .la-l.d { left: 49.45%; }
/* Logo sans casque (471 × 130 px) : écran d'ouverture */
.la-texte .la-l { top: 78.1%; height: 21.5%; width: 31%; }
.la-texte .la-l.g { left: 0; } .la-texte .la-l.d { left: 68.8%; }
@keyframes la-barre { 0% { transform: scaleY(.16); } 45% { transform: scaleY(var(--m, .8)); } 100% { transform: scaleY(var(--n, .35)); } }
/* Animation voulue même si Windows a désactivé les effets d'animation (réglage « réduire les animations ») */

/* 🩺 Rapport du bouton « Contrôler » */
.rc-verdict { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid; margin-bottom: 16px; }
.rc-verdict strong { display: block; font-size: 20px; font-weight: 800; line-height: 1.2; }
.rc-verdict span { display: block; font-size: 14px; margin-top: 3px; color: var(--ink-2, #555); }
.rc-verdict time { margin-left: auto; font-size: 12.5px; color: var(--muted, #888); white-space: nowrap; align-self: flex-start; }
.rc-pastille { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid !important; place-items: center; font-size: 22px !important; font-weight: 800; color: #fff !important; margin: 0 !important; }
.rc-verdict.rc-ok { background: #e8f6f2; border-color: #b5e3d8; } .rc-verdict.rc-ok strong { color: #00806e; } .rc-verdict.rc-ok .rc-pastille { background: #00a08a; }
.rc-verdict.rc-warn { background: #fff5e6; border-color: #f5d29b; } .rc-verdict.rc-warn strong { color: #a65f00; } .rc-verdict.rc-warn .rc-pastille { background: #e08a00; }
.rc-verdict.rc-ko { background: #fdeceb; border-color: #f3b9b4; } .rc-verdict.rc-ko strong { color: #b42318; } .rc-verdict.rc-ko .rc-pastille { background: #d92d20; }
.rc-liste { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line, #e3e8e6); border-radius: 12px; overflow: hidden; }
.rc-liste li { display: grid; grid-template-columns: 26px 170px 1fr; align-items: start; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line, #e3e8e6); }
.rc-liste li:first-child { border-top: 0; }
.rc-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; margin-top: 1px; }
.rc-ok .rc-ic { background: #00a08a; } .rc-warn .rc-ic { background: #e08a00; } .rc-ko .rc-ic { background: #d92d20; } .rc-info .rc-ic { background: #8a9894; font-style: italic; font-family: Georgia, serif; }
.rc-lib { font-size: 13.5px; color: var(--ink-2, #555); padding-top: 2px; }
.rc-val b { display: block; font-size: 15px; font-weight: 700; color: var(--ink, #222); }
.rc-ko .rc-val b { color: #b42318; } .rc-warn .rc-val b { color: #a65f00; }
.rc-val small { display: block; font-size: 13px; color: var(--muted, #777); margin-top: 2px; line-height: 1.4; }
@media (max-width: 640px) {
  .rc-verdict { flex-wrap: wrap; } .rc-verdict time { margin-left: 58px; align-self: auto; }
  .rc-liste li { grid-template-columns: 22px 1fr; gap: 4px 10px; } .rc-lib { grid-column: 2; padding: 0; font-size: 12.5px; } .rc-val { grid-column: 2; }
  .rc-ic { grid-row: 1 / span 2; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-anime .la-l b { animation-duration: var(--d, .9s) !important; animation-iteration-count: infinite !important; }
}
/* Picto Sonos : remplit toute la pastille de la tuile « Enceintes » */
.bd-ico:has(.bd-ico-sonos) { background: transparent !important; padding: 0 !important; }
.bd-ico .bd-ico-img.bd-ico-sonos { width: 100%; height: 100%; max-width: 32px; max-height: 32px; border-radius: 8px; }

/* 📱 Smartphone et iPad : changement de page en fondu, l'en-tête reste immobile (aucun flash blanc) */
@media (pointer: coarse) {
  @view-transition { navigation: auto; }
  .topbar { view-transition-name: entete; }
  ::view-transition-group(entete) { animation: none; }
  ::view-transition-old(entete) { display: none; }
  ::view-transition-new(entete) { animation: none; }
  ::view-transition-old(root) { animation: vt-sortie .16s ease-out both; }
  ::view-transition-new(root) { animation: vt-entree .2s ease-out both; }
}
@keyframes vt-sortie { to { opacity: 0; } }
@keyframes vt-entree { from { opacity: 0; } }

/* ═══ 📢 Messages & pubs ═══ */
.mp { display: grid; gap: 18px; }
.mp-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mp-chiffre { background: var(--carte, #fff); border: 1px solid var(--line, #e3e8e6); border-radius: 14px; padding: 14px 18px; display: flex; align-items: baseline; gap: 10px; }
.mp-chiffre b { font-size: 26px; font-weight: 800; color: var(--accent, #00a08a); line-height: 1; }
.mp-chiffre span { color: var(--ink-2, #555); font-size: 14px; }
.mp-depot { width: 100%; display: grid; justify-items: center; gap: 6px; padding: 34px 20px; border: 2px dashed color-mix(in srgb, var(--accent, #00a08a) 45%, transparent); border-radius: 16px;
  background: color-mix(in srgb, var(--accent, #00a08a) 5%, transparent); cursor: pointer; font: inherit; color: inherit; text-align: center; transition: background .15s; }
.mp-depot:hover { background: color-mix(in srgb, var(--accent, #00a08a) 10%, transparent); }
.mp-depot-ic { font-size: 34px; } .mp-depot b { font-size: 17px; } .mp-depot span:last-child { color: var(--muted, #777); max-width: 520px; font-size: 14px; }
.mp-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.mp-carte { border: 1px solid var(--line, #e3e8e6); border-radius: 14px; padding: 14px; display: grid; gap: 12px; background: var(--carte, #fff); }
.mp-carte-tete { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mp-carte-titre { min-width: 0; } .mp-carte-titre b { display: block; font-size: 15px; overflow-wrap: anywhere; } .mp-carte-titre small { color: var(--muted, #777); font-size: 12.5px; }
.mp-onde { flex: none; width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--accent, #00a08a) 12%, transparent); display: flex; align-items: center; justify-content: center; gap: 3px; }
.mp-onde i { width: 3px; border-radius: 3px; background: var(--accent, #00a08a); height: 40%; animation: mp-onde 1s ease-in-out infinite alternate; }
.mp-onde i:nth-child(2) { animation-delay: -.3s; height: 70%; } .mp-onde i:nth-child(3) { animation-delay: -.6s; height: 55%; } .mp-onde i:nth-child(4) { animation-delay: -.15s; height: 80%; } .mp-onde i:nth-child(5) { animation-delay: -.45s; }
@keyframes mp-onde { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.mp-carte audio { width: 100%; height: 38px; }
.mp-carte-actions { display: flex; gap: 8px; } .mp-carte-actions .btn-primary { flex: 1; justify-content: center; }
.mp-vide, .mp-aide { color: var(--muted, #777); margin: 0; font-size: 14px; } .mp-aide { margin-bottom: 12px; }
.mp-table tr.mp-off td { opacity: .55; }
.mp-prio { color: #b45309; font-weight: 600; }
.mp-statut { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.mp-statut::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mp-st-on { background: #e8f6f2; color: #00806e; } .mp-st-attente { background: #eef1f0; color: #5f6d69; } .mp-st-avenir { background: #eaf1ff; color: #2958b8; }
.mp-st-off { background: #fff5e6; color: #a65f00; } .mp-st-fin { background: #f2f2f2; color: #888; }
.mp-bas { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.mp-journal { list-style: none; margin: 0; padding: 4px 16px 12px; max-height: 520px; overflow: auto; }
.mp-journal li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line, #e3e8e6); }
.mp-journal li:first-child { border-top: 0; }
.mp-j-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 800; margin-top: 1px; }
.mp-j-ok .mp-j-ic { background: #00a08a; } .mp-j-partiel .mp-j-ic { background: #e08a00; } .mp-j-echec .mp-j-ic { background: #d92d20; }
.mp-j-txt { font-size: 14px; } .mp-j-txt small { display: block; color: var(--muted, #777); font-size: 12.5px; margin-top: 2px; } .mp-j-detail { color: #a65f00; }
.mp-compat { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 0; border-top: 1px solid var(--line, #e3e8e6); }
.mp-compat:first-of-type { border-top: 0; }
.mp-compat-non { grid-column: 1 / -1; color: #a65f00; font-size: 12.5px; }
.txt-ok { color: #00806e; }
/* Fenêtres */
.mp-clubs-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.mp-clubs-filtres { font-size: 13px; color: var(--muted, #777); }
.mp-clubs { max-height: 260px; overflow: auto; }
.mp-options { display: grid; gap: 10px; margin-top: 14px; }
.mp-vol { display: flex; align-items: center; gap: 12px; padding-left: 28px; } .mp-vol input { flex: 1; max-width: 320px; accent-color: var(--accent, #00a08a); } .mp-vol b { min-width: 44px; }
.mp-fichier { display: flex; align-items: center; justify-content: center; border: 2px dashed var(--line, #d5ddda); border-radius: 12px; padding: 16px; cursor: pointer; font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.mp-fichier:hover { border-color: var(--accent, #00a08a); }
.mp-fichier input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.mp-tous { margin-bottom: 10px; }
.mp-jours { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mp-jour input { position: absolute; opacity: 0; pointer-events: none; }
.mp-jour span { display: inline-grid; place-items: center; min-width: 50px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line, #d5ddda); font-weight: 600; font-size: 13.5px; cursor: pointer; user-select: none; transition: all .12s; }
.mp-jour input:checked + span { background: var(--accent, #00a08a); border-color: var(--accent, #00a08a); color: #fff; }
.mp-jour input:focus-visible + span { outline: 2px solid var(--accent, #00a08a); outline-offset: 2px; }
.mp-jours-rapides { margin-left: 8px; font-size: 13px; color: var(--muted, #777); }
.mp-freq { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mp-freq-val { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; } .mp-freq-val .input { width: 86px; text-align: center; }
@media (max-width: 860px) {
  .mp-chiffres { grid-template-columns: 1fr; gap: 8px; } .mp-chiffre { padding: 10px 14px; } .mp-chiffre b { font-size: 22px; }
  .mp-bas { grid-template-columns: 1fr; }
  .mp-grille { grid-template-columns: 1fr; }
  .mp-jour span { min-width: 42px; }
  .mp-jours-rapides { margin: 6px 0 0; width: 100%; }
}
@media (max-width: 860px) {
  html .page-head .actions.mp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; overflow: visible; flex-wrap: wrap; width: 100%; }
  html .page-head .actions.mp-actions .btn { justify-content: center; white-space: nowrap; font-size: 13.5px; padding-left: 8px; padding-right: 8px; }
}

/* 🎙️ Talkie-walkie */
.tk { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 26px; align-items: start; }
.tk-micro { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 6px 0; }
.tk-bouton { position: relative; width: 132px; height: 132px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #2ed3b9, #00a08a 60%, #007a69); color: #fff; box-shadow: 0 10px 26px rgba(0, 160, 138, .35), inset 0 -4px 10px rgba(0, 0, 0, .15);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: transform .12s, box-shadow .12s; }
.tk-bouton svg { width: 54px; height: 54px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; position: relative; z-index: 1; }
.tk-bouton svg rect { fill: currentColor; stroke: none; }
.tk-bouton:hover { transform: scale(1.03); }
.tk-bouton:disabled { filter: grayscale(1); opacity: .5; cursor: not-allowed; }
.tk-anneau { position: absolute; inset: -10px; border-radius: 50%; border: 3px solid rgba(0, 160, 138, .35); transform: scale(calc(1 + var(--niveau, 0) * .28)); transition: transform .08s linear; pointer-events: none; }
.tk-enregistre .tk-bouton { background: radial-gradient(circle at 35% 30%, #ff6b5e, #e5372a 60%, #b42318); box-shadow: 0 10px 30px rgba(217, 45, 32, .45); transform: scale(1.06); }
.tk-enregistre .tk-anneau { border-color: rgba(217, 45, 32, .5); }
.tk-enregistre .tk-anneau::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid rgba(217, 45, 32, .4); animation: tk-onde 1.2s ease-out infinite; }
@keyframes tk-onde { from { transform: scale(1); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.tk-envoi .tk-bouton { animation: tk-envoi 1s ease-in-out infinite; }
@keyframes tk-envoi { 50% { opacity: .6; } }
.tk-etat { font-weight: 700; font-size: 15px; min-height: 22px; } .tk-rec { color: #b42318; } .tk-ok { color: #00806e; } .tk-ko { color: #b42318; }
.tk-temps { font-variant-numeric: tabular-nums; color: var(--muted, #777); font-size: 13px; }
.tk-apercu { width: 100%; display: grid; gap: 10px; } .tk-apercu audio { width: 100%; }
.tk-apercu-actions { display: flex; gap: 8px; justify-content: center; }
.tk-resultat { width: 100%; display: grid; gap: 6px; text-align: left; }
.tk-r { display: grid; grid-template-columns: 22px auto 1fr; gap: 8px; align-items: center; font-size: 13.5px; padding: 7px 10px; border-radius: 10px; background: var(--fond, #f2f5f4); }
.tk-r span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; }
.tk-r-ok span { background: #00a08a; } .tk-r-partiel span { background: #e08a00; } .tk-r-echec span { background: #d92d20; }
.tk-r small { color: var(--muted, #777); text-align: right; }
.tk-stop, .mp-stop { justify-self: center; }
.tk-clubs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.tk-club input { position: absolute; opacity: 0; pointer-events: none; }
.tk-club span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line, #d5ddda); font-weight: 600; font-size: 13.5px; cursor: pointer; user-select: none; transition: all .12s; }
.tk-club input:checked + span { background: var(--accent, #00a08a); border-color: var(--accent, #00a08a); color: #fff; }
.tk-club input:focus-visible + span { outline: 2px solid var(--accent, #00a08a); outline-offset: 2px; }
.tk-raccourcis { font-size: 13px; color: var(--muted, #777); }
.mp-stop-barre { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border-radius: 12px; background: #fff5e6; border: 1px solid #f5d29b; flex-wrap: wrap; }
.mp-journal li .mp-stop { grid-column: 2; justify-self: start; margin-top: 4px; }
@media (max-width: 860px) {
  .tk { grid-template-columns: 1fr; gap: 18px; }
  .tk-bouton { width: 150px; height: 150px; }
}
.mp-talkie { scroll-margin-top: 190px; }
.mp-carte-actions { flex-wrap: wrap; } .mp-carte-actions .btn-primary { flex: 1 1 100%; }
.mp-carte-actions [data-mp-programmer] { flex: 1; justify-content: center; }
.mp-vide-cta { display: grid; justify-items: center; gap: 12px; text-align: center; }

/* 📱 Smartphone et iPad : la page s'arrête net en haut comme en bas (pas d'effet élastique ni de bande blanche) */
@media (pointer: coarse) {
  html, body { overscroll-behavior-y: none; }
  html { background-color: var(--entete, #222) !important; }
  body { min-height: 100dvh; background: var(--fond, #f2f5f4); }
}

/* 🟢 Application Spotify du club */
.sp-appli-etat { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px 12px; margin: 4px 0 12px; }
.sp-appli-ok { color: #00806e; font-weight: 600; font-size: 13.5px; } .sp-appli-ok .mono { color: var(--muted, #777); font-weight: 400; }
.sp-etapes { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 10px; font-size: 14px; line-height: 1.5; }
.sp-copie { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.sp-copie code { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 8px; background: var(--fond, #f2f5f4); border: 1px solid var(--line, #e3e8e6); font-size: 13px; overflow-wrap: anywhere; user-select: all; }
.sp-retirer { margin-top: 12px; color: #b42318; }
.sp-renouveler { margin-bottom: 10px; padding: 8px 12px; border-radius: 10px; background: #fff5e6; border: 1px solid #f5d29b; color: #8a4d00; font-size: 13px; }
.sp-renouveler.sp-expire { background: #fdeceb; border-color: #f3b9b4; color: #b42318; }

/* 🎧 Écouter : sur la fiche club, à droite de « Aléatoire » ; sur le tableau de bord, 4e bouton rapide (téléphone seulement) */
.tag-ecoute .icon { width: 14px; height: 14px; vertical-align: -2px; }
.play-table .qbtn-ecoute { display: none; }
@media (max-width: 860px) {
  .play-table .qbtn-ecoute { display: inline-flex; align-items: center; justify-content: center; }
}

/* 🎵 Widget « Diffusion actuelle » : picto Sonos + picto Spotify */
.tb-ico-duo { display: inline-flex; align-items: center; gap: 5px; margin-right: 8px; vertical-align: -4px; }
.tb-ico-duo img { width: 20px; height: 20px; border-radius: 5px; display: block; }
.tb-ico-duo .sp-logo { width: 20px; height: 20px; margin: 0; vertical-align: 0; }

/* 🟢 Picto Spotify officiel (fourni) partout où apparaît le rond Spotify */
.sp-logo { background: url('/images/picto-spotify.png') center / contain no-repeat !important; box-shadow: none !important; }

/* 🌐 Favoris Sonos : Sonos Web + Actualiser, à droite du titre « Playlists du club » */
.favs-outils { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.favs-outils .btn-sm { white-space: nowrap; }
@media (max-width: 640px) { .favs-outils .hint { display: none; } }
.sonos-compte { font-size: 12.5px; color: var(--muted, #777); display: inline-flex; align-items: center; gap: 6px; }
.sonos-compte b { color: var(--ink, #222); font-weight: 600; }
.sonos-compte-manquant { font-size: 12.5px; }
@media (max-width: 640px) { .sonos-compte { width: 100%; justify-content: flex-end; } }

/* Sonos : titre « Playlists favorites Sonos du club » sur une ligne, picto Sonos dans le bouton Sonos Web */
.panel-head:has(> .favs-titre) { flex-wrap: wrap; row-gap: 10px; }
.favs-titre { display: flex; align-items: center; gap: 10px; white-space: nowrap; margin: 0; }
.picto-sonos-titre { width: 24px; height: 24px; border-radius: 6px; flex: none; }
.picto-sonos-btn { width: 16px; height: 16px; border-radius: 4px; vertical-align: -3px; }
.panel-head:has(> .favs-titre) .favs-outils { margin-left: auto; }
@media (max-width: 640px) { .favs-titre { white-space: normal; font-size: 17px; } }
.favs > p.cell-sub { grid-column: 1 / -1; margin: 0; }


/* 🎚️ Soundtrack */
.st-logo { display: inline-flex; align-items: flex-end; justify-content: center; gap: 2px; width: 20px; height: 20px; padding: 4px 3px; border-radius: 6px; background: #111; vertical-align: -4px; margin-right: 4px; box-sizing: border-box; }
.st-logo i { display: block; width: 2px; border-radius: 1px; background: #fff; }
.st-logo i:nth-child(1) { height: 45%; } .st-logo i:nth-child(2) { height: 100%; } .st-logo i:nth-child(3) { height: 70%; } .st-logo i:nth-child(4) { height: 35%; }
.st-connecter { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 6px 0; }
.st-connecter p { margin: 0; color: var(--muted); max-width: 560px; }
.st-lecteur { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "art infos cmd" "vol vol vol"; gap: 12px 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); margin-bottom: 14px; }
.st-pochette { grid-area: art; width: 76px; height: 76px; }
.st-pochette img, .st-pochette .art { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; }
.st-infos { grid-area: infos; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.st-infos b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-infos small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-source { color: var(--accent-ink) !important; }
.st-badge { align-self: flex-start; font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 20px; background: var(--idle-soft); color: var(--ink-2); }
.st-badge.stb-playing { background: var(--ok-soft); color: var(--ok); }
.st-badge.stb-paused { background: var(--accent-soft); color: var(--accent-ink); }
.st-badge.stb-offline, .st-badge.stb-unpaired, .st-badge.stb-not_supported { background: #fde8e8; color: #b42318; }
.st-commandes { grid-area: cmd; display: flex; gap: 8px; }
.st-volume { grid-area: vol; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.st-volume input { flex: 1; min-width: 0; }
.st-volume output { min-width: 34px; text-align: right; font-weight: 650; color: var(--ink-2); }
.st-volume output::after { content: " / 16"; font-weight: 400; color: var(--muted); }
.st-volume output[data-unite="%"]::after { content: " %"; }
.st-onglets { margin-bottom: 10px; }
.st-en-cours { display: none; color: var(--ok); font-weight: 650; }
.sp-ligne.st-actuelle .st-en-cours { display: inline; }
.sp-ligne.st-actuelle b { color: var(--ok); }
.st-modes { margin-bottom: 14px; }
.st-note { margin: 10px 0 0; line-height: 1.5; }
.st-zones { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow: auto; }
.st-zone { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.st-zone:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.st-zone span { display: flex; flex-direction: column; min-width: 0; }
.st-zone small { color: var(--muted); font-size: 12.5px; }
.st-zone-etat { font-size: 12px; font-weight: 650; white-space: nowrap; }
.st-zone-etat.ok { color: var(--ok); } .st-zone-etat.ko { color: #b42318; }
@media (max-width: 560px) {
  .st-lecteur { grid-template-columns: 60px minmax(0, 1fr); grid-template-areas: "art infos" "cmd cmd" "vol vol"; }
  .st-pochette, .st-pochette img, .st-pochette .art { width: 60px; height: 60px; }
  .st-commandes { justify-content: center; }
}

.qbtn.st-coeur { font-size: 16px; color: var(--muted); margin-right: 6px; }
.qbtn.st-coeur.on { color: #e0245e; }
.qbtn.st-coeur:hover { color: #e0245e; }

.dc-sources { margin: 18px 0 4px; }
.dc-sources button { display: inline-flex; align-items: center; gap: 6px; }
.dc-sources .st-logo { margin-right: 0; }
.dc-infos .st-logo { width: 16px; height: 16px; padding: 3px 2px; vertical-align: -3px; }
[data-dc-volet] .sp-champ { margin-bottom: 12px; }

/* ▶▼ Panneaux de playlists groupés (masqués) : chevron devant le titre */
.panel[data-repliable].groupe > .panel-body { display: none; }
.panel[data-repliable].groupe > .panel-head { border-bottom: 0; }
.titre-groupe { cursor: pointer; user-select: none; display: flex; align-items: center; }
.chevron-groupe { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; margin: 0 6px 0 -4px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--accent-ink, #0e7c6b); cursor: pointer; }
.chevron-groupe svg { transition: transform .18s ease; transform: rotate(90deg); }
.panel.groupe .chevron-groupe svg { transform: rotate(0deg); }
.chevron-groupe:hover, .chevron-groupe:focus-visible { background: var(--accent-soft); }
.hint-compte { font-weight: 650; color: var(--ink-2, inherit); }

/* Titres des panneaux Sonos / Spotify / Soundtrack : pictos de même taille, alignés */
.titre-groupe { gap: 10px; }
.titre-groupe .chevron-groupe { margin: 0 -2px 0 -6px; }
.titre-groupe .picto-sonos-titre, .titre-groupe .sp-logo, .titre-groupe .st-logo { width: 24px; height: 24px; margin: 0; vertical-align: 0; flex: none; }
.titre-groupe .picto-sonos-titre { border-radius: 6px; }
.titre-groupe .st-logo { padding: 5px 4px; border-radius: 6px; gap: 2px; }
.titre-groupe .st-logo i { width: 2.4px; }

/* 🎶 Routines : créneau horaire et volume par enceinte */
.routine-heure { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.routine-heure small { font-size: .72rem; font-weight: 650; opacity: .75; }
.routine-vol-enceintes::before { content: '🔊'; }
.routine-par-enceinte { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 600; font-size: .9rem; cursor: pointer; }
.routine-par-enceinte input { width: 18px; height: 18px; accent-color: var(--accent, #00a38c); }
.routine-enceintes { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line, var(--bord)); border-radius: 12px; background: var(--surface-2, rgba(0,0,0,.03)); display: flex; flex-direction: column; gap: 8px; }
.routine-enceintes[hidden] { display: none; }
.routine-enceinte { display: grid; grid-template-columns: minmax(90px, 38%) minmax(0, 1fr) 34px; gap: 10px; align-items: center; }
.re-nom { font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.re-nom small { font-weight: 400; color: var(--muted, var(--texte-2)); }
.routine-enceinte input[type=range] { width: 100%; accent-color: var(--accent, #00a38c); }
.routine-enceinte output { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; font-size: .85rem; }

/* 📱 Fenêtres sur téléphone : champs à 16 px (iOS ne zoome plus et le curseur reste à sa place), champs heure à la bonne largeur */
@media (max-width: 860px) {
  .modal .input, .modal input[type=text], .modal input[type=email], .modal input[type=password], .modal input[type=search], .modal input[type=time], .modal input[type=date], .modal select, .modal textarea { font-size: 16px; }
  .modal { max-height: calc(100dvh - 32px); animation-fill-mode: none; }
  .modal input[type=time], .modal input[type=date] { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; text-align: left; }
}

.st-station { display: inline-block; font-size: .72rem; font-weight: 700; padding: 0 6px; border-radius: 6px; background: var(--accent-soft, rgba(0,163,140,.12)); color: var(--accent-ink, #00796b); }
.st-onglets { flex-wrap: wrap; }

/* Page club : accès, activité et zone sensible sur toute la largeur, sous les deux colonnes */
.club-layout > .club-pleine { grid-column: 1 / -1; }
/* Accès au club : tableau aligné (utilisateur, e-mail, niveau d'accès) */
.acces-table { width: 100%; border-collapse: collapse; }
.acces-table th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; line-height: 1.4; background: none; border-bottom: 1px solid var(--line); white-space: nowrap; }
.acces-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.acces-table tbody tr:last-child td { border-bottom: 0; }
.acces-table tbody tr:hover td { background: var(--surface-2, rgba(0,0,0,.02)); }
.acces-table th:first-child, .acces-table td:first-child { padding-left: 0; }
.acces-table th:last-child, .acces-table td:last-child { text-align: right; padding-right: 0; width: 1%; white-space: nowrap; }
.acces-nom { display: flex; align-items: center; gap: 12px; }
.acces-nom .avatar { width: 32px; height: 32px; flex: none; font-size: 11.5px; background: var(--accent-soft); color: var(--accent-ink); }
.acces-nom b { font-weight: 600; }
.acces-mail a { color: var(--muted); text-decoration: none; }
.acces-mail a:hover { color: var(--accent-ink); text-decoration: underline; }
@media (max-width: 600px) {
  .acces-table thead { display: none; }
  .acces-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nom niveau" "mail niveau"; column-gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .acces-table tbody tr:last-child { border-bottom: 0; }
  .acces-table td { padding: 0; border: 0; }
  .acces-table td:first-child { grid-area: nom; }
  .acces-table .acces-mail { grid-area: mail; padding-left: 44px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
  .acces-table .acces-niveau { grid-area: niveau; align-self: center; }
}

/* 🎶 Routine en vigueur affichée dans la lecture */
a.tag.tag-routine { display: inline-flex; align-self: center; width: fit-content; margin-left: auto; margin-right: auto; align-items: center; gap: 6px; margin-top: 10px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12.5px; text-decoration: none; max-width: 100%; }
a.tag.tag-routine b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.tag.tag-routine span { white-space: nowrap; opacity: .85; }
a.tag.tag-routine:hover { filter: brightness(.97); text-decoration: none; }

/* Liens internes (#routines, #spotify…) : le panneau s'arrête sous l'en-tête fixe, sans être coupé */
html { scroll-behavior: smooth; }
#club-page .panel[id] { scroll-margin-top: 150px; }
@media (max-width: 860px) { #club-page .panel[id] { scroll-margin-top: 130px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Aide repliable (chevron, fermée par défaut) */
.aide-repliable { margin-top: 10px; }
.aide-repliable > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent-ink, #00796b); user-select: none; }
.aide-repliable > summary::-webkit-details-marker { display: none; }
.aide-repliable > summary::before { content: ''; width: 0; height: 0; border-left: 6px solid currentColor; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; transition: transform .18s ease; }
.aide-repliable[open] > summary::before { transform: rotate(90deg); }
.aide-repliable > p { margin: 8px 0 0; }

/* Pastille de routine centrée sous les 4 boutons (enceintes, répétition, aléatoire, écouter) */
.meta-bloc { display: flex; flex-direction: column; align-items: center; width: fit-content; max-width: 100%; }
.meta-bloc > .player-meta { width: 100%; }
@media (max-width: 860px) { .meta-bloc { margin-left: auto; margin-right: auto; } }

/* Fenêtre de routine condensée : tout tient sans ascenseur */
.routine-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; }
.routine-grille > .field.full { grid-column: 1 / -1; }
.routine-grille > .field:not(.full) { grid-column: span 1; }
.routine-grille > .field:has(select[name=favori_nom]) { grid-column: span 2; }
.routine-grille .field label, .routine-grille .field .label { margin-bottom: 4px; }
.routine-grille .routine-par-enceinte { margin-top: 8px; }
.routine-grille .routine-enceintes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; row-gap: 6px; padding: 8px 12px; margin-top: 8px; }
.routine-grille .routine-enceintes[hidden] { display: none; }
.routine-grille .routine-enceinte { grid-template-columns: minmax(70px, 40%) minmax(0, 1fr) 28px; gap: 8px; }
.routine-jours-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.routine-jours-ligne .routine-raccourcis { margin-top: 0; }
.modal .aide-repliable { margin-top: 8px; }
@media (max-width: 600px) {
  .routine-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .routine-grille > .field:has(select[name=favori_nom]) { grid-column: 1 / -1; }
  .routine-grille .routine-enceintes { grid-template-columns: minmax(0, 1fr); }
}

/* 🍃 Filigrane du « S » de SYNERGY FIT au centre de chaque zone blanche (très léger : le texte reste parfaitement lisible) */
.panel, .modal, .bd-tuile {
  background-image: url('/images/filigrane-s.svg?v=hd');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto clamp(40px, 78%, 260px);
}
@media (max-width: 860px) { .panel, .modal, .bd-tuile { background-size: auto clamp(40px, 70%, 200px); } }
@media print { .panel, .modal, .bd-tuile { background-image: none; } }

/* 📱 Lecture sur téléphone : rien ne dépasse du panneau (pastille de routine sur plusieurs lignes si besoin) */
.player-info { min-width: 0; }
.meta-bloc, .meta-bloc > .player-meta { min-width: 0; }
@media (max-width: 860px) {
  .meta-bloc { width: 100%; }
  .meta-bloc > .player-meta { justify-content: center; }
  a.tag.tag-routine { flex-wrap: wrap; justify-content: center; text-align: center; white-space: normal; max-width: 100%; row-gap: 2px; border-radius: 14px; }
  a.tag.tag-routine b, a.tag.tag-routine span { white-space: normal; }
  .o-player, .o-player .player, .o-player .player-info { max-width: 100%; overflow-x: clip; }
}

/* 🍃 Écran d'ouverture (mobile) : grand « S » SYNERGY FIT en filigrane, qui apparaît en douceur derrière le logo */
.splash-filigrane { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: url('/images/filigrane-s-ouverture.svg?v=hd') no-repeat center 42% / auto min(78vh, 125vw); opacity: 0; transform: scale(.92); animation: filigrane-ouverture 1.4s ease-out .15s forwards; }
.splash-scene, .splash-pied { position: relative; z-index: 1; }
@keyframes filigrane-ouverture { to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .splash-filigrane { animation: none; opacity: 1; transform: none; } }

/* 🎶 Pastille de routine : texte centré (une ligne sur ordinateur, deux lignes centrées sur téléphone) */
a.tag.tag-routine { justify-content: center; text-align: center; gap: 0; padding: 6px 16px; line-height: 1.3; }
a.tag.tag-routine .tr-nom { display: inline-flex; align-items: center; gap: 6px; opacity: 1; }
a.tag.tag-routine .tr-detail { white-space: nowrap; opacity: .85; }
a.tag.tag-routine .tr-detail::before { content: '·'; margin: 0 8px; }
@media (max-width: 860px) {
  a.tag.tag-routine { flex-direction: column; align-items: center; padding: 7px 18px; row-gap: 2px; }
  a.tag.tag-routine .tr-nom, a.tag.tag-routine .tr-detail { justify-content: center; white-space: normal; }
  a.tag.tag-routine .tr-detail::before { content: none; }
}

a.tag.tag-routine { height: auto; min-height: 26px; }


/* ===================== 🎨 Fond du lecteur teinté par la pochette ===================== */
.o-player { position: relative; isolation: isolate; }
.o-fond { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.o-fond i { position: absolute; inset: -60px; background-size: cover; background-position: center; filter: blur(46px) saturate(1.6); opacity: 0; transform: scale(1.05); transition: opacity .7s ease; }
.o-fond i.on { opacity: .3; }
html[data-theme="dark"] .o-fond i.on, .theme-sombre .o-fond i.on { opacity: .4; }

/* ===================== ✨ Animations au survol ===================== */
.tb-pochette, .fav, .dc-carte, .mu-carte .mu-pochette { transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s ease, border-color .2s ease; }
.tb-pochette img { transition: transform .5s cubic-bezier(.2,.8,.3,1), filter .3s ease; }
.sp-ligne { transition: background-color .18s ease; border-radius: 10px; }
@media (hover: hover) {
  .tb-pochette:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,0,0,.26); }
  .tb-pochette:hover img { transform: scale(1.06); filter: none; }
  .fav:hover, .dc-carte:hover { transform: translateY(-2px); }
  .sp-ligne:hover { background-color: color-mix(in srgb, var(--accent, #00a38c) 7%, transparent); }
}

/* ===================== 🎧 Page Musique ===================== */
.mu { --mu-c: 180px; display: grid; gap: 22px; min-width: 0; }
.mu-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: center; padding: 28px 30px; border-radius: calc(18px * var(--arrondi, 1));
  background: radial-gradient(120% 140% at 0% 0%, #00c7aa 0%, #00806e 38%, #10201d 78%), #10201d; color: #fff; box-shadow: 0 18px 40px rgba(0, 90, 78, .25); }
.mu-hero::after { content: ""; position: absolute; right: -40px; top: 50%; width: 260px; height: 260px; transform: translateY(-50%); background: url('/images/filigrane-s.svg?v=hd') center / contain no-repeat; opacity: .5; filter: brightness(3); pointer-events: none; }
.mu-hero-txt { position: relative; z-index: 1; }
.mu-hero h1 { margin: 6px 0 6px; font-size: 2rem; line-height: 1.1; color: #fff; }
.mu-hero p { margin: 0; opacity: .88; max-width: 46ch; }
.mu-sur { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.mu-sur { display: inline-flex; align-items: center; gap: 10px; }
.mu-sur .st-logo { background: rgba(255,255,255,.16); margin: 0; vertical-align: 0; }
.mu-hero h1 { display: flex; align-items: center; gap: 12px; }
.mu-picto { display: inline-grid; place-items: center; width: 50px; height: 50px; flex: none; border-radius: 14px; background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.mu-picto img { width: 40px; height: 40px; object-fit: contain; display: block; }
@media (max-width: 760px) { .mu-picto { width: 42px; height: 42px; border-radius: 12px; } .mu-picto img { width: 34px; height: 34px; } }
.mu-recherche { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 18px; border-radius: 999px; background: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.25); }
.mu-recherche input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 1rem; color: #17201e; padding: 8px 0; }
.mu-recherche .btn { border-radius: 999px; padding-left: 20px; padding-right: 20px; }
.mu-eq { position: absolute; left: 30px; bottom: 0; display: flex; align-items: flex-end; gap: 4px; height: 26px; opacity: .35; }
.mu-eq i, .mu-eq-mini i { display: block; width: 4px; border-radius: 2px 2px 0 0; background: #fff; animation: mu-eq 1.1s ease-in-out infinite alternate; }
.mu-eq i:nth-child(1) { animation-delay: -.2s; } .mu-eq i:nth-child(2) { animation-delay: -.7s; } .mu-eq i:nth-child(3) { animation-delay: -.4s; } .mu-eq i:nth-child(4) { animation-delay: -.9s; } .mu-eq i:nth-child(5) { animation-delay: -.1s; }
@keyframes mu-eq { 0% { height: 20%; } 100% { height: 100%; } }

.mu-genres { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.mu-genre { position: relative; overflow: hidden; height: 68px; padding: 10px 14px; border: 0; border-radius: calc(14px * var(--arrondi, 1)); background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; font: inherit; font-weight: 800; font-size: 1rem; text-align: left; display: flex; align-items: flex-end; cursor: pointer;
  text-shadow: 0 1px 6px rgba(0,0,0,.25); box-shadow: 0 6px 16px rgba(0,0,0,.12); transition: transform .2s cubic-bezier(.2,.8,.3,1), box-shadow .2s ease; }
.mu-genre::after { content: "♪"; position: absolute; right: 10px; top: -6px; font-size: 3.4rem; opacity: .22; transform: rotate(18deg); transition: transform .35s ease; }
.mu-genre.on { outline: 3px solid var(--accent, #00a38c); outline-offset: 2px; }
@media (hover: hover) { .mu-genre:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,.2); } .mu-genre:hover::after { transform: rotate(0) scale(1.1); } }

.mu-rangee { min-width: 0; }
.mu-rangee[hidden] { display: none; }
.mu-rangee-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 2px 10px; }
.mu-rangee-tete h2 { margin: 0; font-size: 1.2rem; }
.mu-rangee-tete small { color: var(--muted); }
.mu-fleches { display: flex; gap: 6px; }
.mu-fleches button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--bord, var(--line)); background: var(--carte, #fff); color: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s, opacity .2s; }
.mu-fleches button:hover:not(:disabled) { background: var(--accent, #00a38c); color: #fff; border-color: transparent; }
.mu-fleches button:disabled { opacity: .35; cursor: default; }
.mu-defile { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 2px; padding: 4px 2px 14px; scrollbar-width: none; }
.mu-defile::-webkit-scrollbar { display: none; }
.mu-defile > * { flex: 0 0 var(--mu-c); scroll-snap-align: start; }
.mu-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--mu-c), 1fr)); gap: 18px 16px; }

.mu-carte { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mu-pochette { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: calc(14px * var(--arrondi, 1)); overflow: hidden; background: linear-gradient(135deg, #1d2b28, #0f1514); cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.mu-pochette img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2,.8,.3,1); }
.mu-sans { display: grid; place-items: center; width: 100%; height: 100%; font-size: 2.4rem; color: #fff; }
.mu-play { position: absolute; right: 10px; bottom: 10px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; padding-left: 3px; box-sizing: border-box; background: var(--accent, #00a38c); color: #fff; font-size: 1.05rem; box-shadow: 0 8px 18px rgba(0,0,0,.35); opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .22s cubic-bezier(.2,.8,.3,1); }
.mu-type { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: .72rem; font-weight: 700; backdrop-filter: blur(4px); }
.mu-encours { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: rgba(0, 163, 140, .92); color: #fff; font-size: .74rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.mu-encours[hidden] { display: none; }
.mu-eq-mini { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; flex: none; }
.mu-eq-mini i { width: 2px; } .mu-eq-mini i:nth-child(2) { animation-delay: -.5s; } .mu-eq-mini i:nth-child(3) { animation-delay: -.25s; }
.mu-carte.joue .mu-pochette { box-shadow: 0 0 0 3px var(--accent, #00a38c), 0 10px 24px rgba(0, 163, 140, .3); }
.mu-carte.joue .mu-play { display: none; }
.mu-coeur { position: absolute; right: 8px; top: 8px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 1.05rem; line-height: 1; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s, transform .2s, background .2s; }
.mu-coeur.on { opacity: 1; color: #ff5f8f; background: rgba(255,255,255,.92); }
.mu-coeur:hover { transform: scale(1.12); }
.mu-carte:focus-within .mu-coeur { opacity: 1; }
.mu-nom { margin-top: 6px; font-size: .92rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mu-desc { color: var(--muted); font-size: .78rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) {
  .mu-carte:hover .mu-pochette { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(0,0,0,.28); }
  .mu-carte.joue:hover .mu-pochette { box-shadow: 0 0 0 3px var(--accent, #00a38c), 0 18px 34px rgba(0, 163, 140, .35); }
  .mu-carte:hover .mu-pochette img { transform: scale(1.07); }
  .mu-carte:hover .mu-play { opacity: 1; transform: none; }
  .mu-carte:hover .mu-coeur { opacity: 1; }
}
@media (hover: none) { .mu-coeur { opacity: 1; } .mu-play { opacity: .95; transform: none; width: 38px; height: 38px; } }
.mu-fantome { aspect-ratio: 1; height: auto; border-radius: calc(14px * var(--arrondi, 1)); background: linear-gradient(100deg, var(--surface-2, #eef2f1) 30%, color-mix(in srgb, var(--surface-2, #eef2f1) 60%, #fff) 50%, var(--surface-2, #eef2f1) 70%) 0 0 / 300% 100%; animation: mu-brille 1.4s linear infinite; }
@keyframes mu-brille { to { background-position: -150% 0; } }
.mu-rien { margin: 6px 2px; color: var(--muted); }
.mu-vide .panel-body { text-align: center; padding: 28px; } .mu-vide p { color: var(--muted); margin: 6px 0 0; }

/* Fenêtre « Lancer sur… » */
.mu-lancer { display: grid; gap: 10px; }
.mu-lancer-tete { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; background: var(--surface-2, #f3f6f5); }
.mu-lancer-tete img, .mu-lancer-tete .mu-sans { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; background: #1d2b28; font-size: 1.6rem; }
.mu-lancer-tete b { display: block; } .mu-lancer-tete small { color: var(--muted); }
.mu-clubs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.mu-club { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid var(--bord, var(--line)); border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s; min-width: 0; }
.mu-club span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-club em { font-style: normal; font-size: .74rem; color: var(--accent, #00a38c); font-weight: 700; white-space: nowrap; }
.mu-club:has(input:checked) { border-color: var(--accent, #00a38c); background: color-mix(in srgb, var(--accent, #00a38c) 8%, transparent); }
.mu-tous { background: var(--surface-2, #f3f6f5); }

@media (max-width: 1180px) { .mu-genres { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .mu { --mu-c: 140px; gap: 18px; }
  .mu-hero { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px 18px 26px; }
  .mu-hero h1 { font-size: 1.6rem; }
  .mu-hero::after { width: 170px; height: 170px; top: 20px; right: -30px; transform: none; }
  .mu-recherche { padding-left: 14px; } .mu-recherche input { font-size: 16px; }
  .mu-recherche .btn { padding-left: 14px; padding-right: 14px; }
  .mu-eq { left: 18px; }
  .mu-genres { display: flex; overflow-x: auto; scrollbar-width: none; gap: 10px; margin: 0 -2px; padding: 2px 2px 6px; scroll-snap-type: x proximity; }
  .mu-genres::-webkit-scrollbar { display: none; }
  .mu-genre { flex: 0 0 128px; height: 60px; font-size: .92rem; scroll-snap-align: start; }
  .mu-fleches { display: none; }
  .mu-defile { gap: 12px; }
  .mu-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .mu-clubs { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .mu-eq i, .mu-eq-mini i, .mu-fantome { animation: none; }
  .tb-pochette, .fav, .dc-carte, .mu-pochette, .mu-pochette img, .tb-pochette img, .mu-genre { transition: none; }
}

/* Pictos image (S, casque) bien visibles sur l'entrée active du menu */
html .lat-lien.actif:not(.lat-groupe-bouton) .lat-icone:has(> img) { background: rgba(10, 24, 21, .88); }

/* 🔌 Marche à suivre « enceintes à rebrancher sur Soundtrack » */
.guide-etapes { margin: 4px 0 10px; padding: 0; list-style: none; counter-reset: etape; display: grid; gap: 8px; }
.guide-etapes li { counter-increment: etape; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--bord, var(--line)); border-radius: 10px; line-height: 1.35; }
.guide-etapes li::before { content: counter(etape); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent, #00a38c); color: #fff; font-weight: 800; font-size: .8rem; }
.guide-etapes li > span { flex: 1; min-width: 0; }

/* ===================== 🏟️ Liste des clubs : colonne Sonos ===================== */
.clubs-liste th, .clubs-liste td { vertical-align: middle; }
.clubs-liste th:nth-child(1) { width: 64px; }
.clubs-liste th:nth-child(4) { width: 140px; }
.clubs-liste th:nth-child(5) { width: 200px; }
.clubs-liste th:nth-child(6) { width: 100px; }
.clubs-liste th:nth-child(7) { width: 160px; }
.clubs-liste td:nth-child(7), .clubs-liste td .pill, .clubs-liste td .cell-main { white-space: nowrap; }
.clubs-liste th:nth-child(8) { width: 110px; }
.clubs-liste th:last-child { width: 90px; }
.cl-sonos { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 650; line-height: 1.2; white-space: nowrap; }
.cl-sonos::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-vert.cl-sonos { background: var(--ok-soft, #e3f5ea); color: var(--ok, #1a7f45); }
.badge-gris.cl-sonos { background: var(--gris-clair, #eceff0); color: var(--texte-2, #5f6865); }

/* ===================== 🔊 Bouton « Sonos » de l'en-tête du club et sa fenêtre ===================== */
.btn.btn-sonos { gap: 9px; padding-top: 4px; padding-bottom: 4px; text-align: left; }
.btn-sonos img { width: 22px; height: 22px; border-radius: 5px; flex: none; }
.btn-sonos .bs-txt { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.btn-sonos .bs-txt b { font-size: 13.5px; }
.btn-sonos .bs-txt small { font-size: 11px; color: var(--muted); font-weight: 500; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-sonos .bs-chev { font-size: 11px; color: var(--muted); transition: transform .2s ease; }
.btn-sonos[aria-expanded="true"] { border-color: var(--accent, #00a38c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #00a38c) 18%, transparent); }
.btn-sonos[aria-expanded="true"] .bs-chev { transform: rotate(180deg); }
.sonos-pop { position: fixed; z-index: 60; display: flex; flex-direction: column; gap: 12px; max-height: min(640px, calc(100vh - 120px)); overflow: auto; padding: 16px; border: 1px solid var(--bord, var(--line)); border-radius: 18px;
  background-color: var(--carte, #fff); box-shadow: 0 24px 60px rgba(10, 30, 26, .22), 0 4px 14px rgba(10, 30, 26, .08); opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; transition: opacity .18s ease, transform .18s ease; }
.sonos-pop[hidden] { display: none; }
.sonos-pop.ouvert { opacity: 1; transform: none; }
.sonos-pop-tete { display: flex; align-items: center; gap: 12px; }
.sonos-pop-logo img { width: 40px; height: 40px; border-radius: 10px; display: block; }
.sonos-pop-titre { flex: 1; display: flex; align-items: center; gap: 10px; }
.sonos-pop-titre b { font-size: 1.15rem; }
.sonos-pop-compte { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2, #f3f6f5); font-size: 13.5px; }
.sonos-pop-compte:empty { display: none; }
.sonos-pop-compte > span { color: var(--muted); }
.sonos-pop-compte b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sonos-pop-sous { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sonos-pop .favs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) {
  .btn-sonos .bs-txt small, .btn-sonos .bs-chev { display: none; }
  .sonos-pop { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto !important; max-height: 82vh; border-radius: 20px 20px 0 0; transform: translateY(24px); transform-origin: bottom center; }
  .sonos-pop .favs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.sonos-pop-ouverte body { overflow: hidden; }
}

/* ===================== 🎚️ Panneau Soundtrack façon page Musique ===================== */
.o-soundtrack .st-scene { position: relative; isolation: isolate; overflow: hidden; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 14px 20px; padding: 20px 22px 18px; border: 0; border-radius: calc(18px * var(--arrondi, 1));
  background: radial-gradient(120% 140% at 0% 0%, #00a38c 0%, #0b5e52 42%, #10201d 85%), #10201d; color: #fff; box-shadow: 0 16px 36px rgba(0, 70, 60, .22); margin-bottom: 18px; }
.st-fond { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.st-fond i { position: absolute; inset: -50px; background-size: cover; background-position: center; filter: blur(40px) saturate(1.5); opacity: 0; transition: opacity .7s ease; }
.st-fond i.on { opacity: .55; }
.st-fond::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 22, 19, .55), rgba(8, 22, 19, .25)); }
.o-soundtrack .st-pochette { width: 112px; height: 112px; }
.o-soundtrack .st-pochette img, .o-soundtrack .st-pochette .art { width: 112px; height: 112px; border-radius: 14px; box-shadow: 0 12px 28px rgba(0,0,0,.4); object-fit: cover; }
.o-soundtrack .st-pochette .art-empty { background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); display: grid; place-items: center; }
.o-soundtrack .st-infos b { font-size: 1.25rem; color: #fff; }
.o-soundtrack .st-infos small { color: rgba(255,255,255,.78); font-size: 13.5px; }
.o-soundtrack .st-infos .st-source { color: #7ef0d8 !important; font-weight: 600; }
.o-soundtrack .st-badge { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(6px); padding: 3px 10px; }
.o-soundtrack .st-badge.stb-playing { background: rgba(126, 240, 216, .2); color: #a8ffec; }
.o-soundtrack .st-badge.stb-offline, .o-soundtrack .st-badge.stb-unpaired { background: rgba(255, 99, 99, .22); color: #ffd0d0; }
.o-soundtrack .st-commandes { gap: 10px; align-items: center; }
.o-soundtrack .st-commandes .qbtn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.1); color: #fff; }
.o-soundtrack .st-commandes .qbtn:hover:not(:disabled) { background: rgba(255,255,255,.2); }
.o-soundtrack .st-commandes .qbtn.primary { width: 56px; height: 56px; border: 0; background: #fff; color: #0b5e52; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.o-soundtrack .st-commandes .qbtn.primary:hover:not(:disabled) { background: #fff; transform: scale(1.06); }
.o-soundtrack .st-commandes .qbtn .icon { width: 20px; height: 20px; }
.o-soundtrack .st-volume { color: rgba(255,255,255,.75); }
.o-soundtrack .st-volume output { color: #fff; }
.o-soundtrack .st-volume output::after { color: rgba(255,255,255,.6); }
.o-soundtrack .st-volume input[type=range] { --piste: rgba(255,255,255,.22); }
.st-eq { left: auto; right: 22px; bottom: 0; height: 22px; opacity: 0; transition: opacity .4s; }
.st-scene.joue .st-eq { opacity: .3; }
.st-scene:not(.joue) .st-eq i { animation-play-state: paused; }

.st-barre { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.o-soundtrack .st-onglets { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; background: none; }
.o-soundtrack .st-onglets button { padding: 8px 14px; border: 1px solid var(--bord, var(--line)); border-radius: 999px; background: var(--carte, #fff); color: var(--texte-2, inherit); font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.o-soundtrack .st-onglets button:hover { border-color: var(--accent, #00a38c); }
.o-soundtrack .st-onglets button.on { background: linear-gradient(135deg, #00c7aa, #00806e); color: #fff; border-color: transparent; box-shadow: 0 6px 14px rgba(0, 128, 110, .28); }
.st-fleches { flex: none; }
.o-soundtrack .st-champ { margin: 0 0 14px; padding: 6px 6px 6px 16px; border: 1px solid var(--bord, var(--line)); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.o-soundtrack .st-champ[hidden] { display: none; }
.o-soundtrack .st-rangee { --mu-c: 150px; max-height: none; flex-direction: row; padding: 4px 2px 12px; }
.st-carte .st-encours { display: none; }
.st-carte.st-actuelle .st-encours { display: flex; }
.st-carte.st-actuelle .mu-pochette { box-shadow: 0 0 0 3px var(--accent, #00a38c), 0 10px 24px rgba(0, 163, 140, .3); }
.st-carte.st-actuelle .mu-play { display: none; }
.st-carte.st-actuelle .mu-nom { color: var(--accent-ink, #00806e); }
.st-carte .mu-coeur.on { color: #e0245e; }
.st-rien { flex: 1 0 100%; padding: 18px; border: 1px dashed var(--bord, var(--line)); border-radius: 14px; text-align: center; }
@media (max-width: 760px) {
  .o-soundtrack .st-scene { grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "art infos" "cmd cmd" "vol vol"; padding: 16px; }
  .o-soundtrack .st-pochette, .o-soundtrack .st-pochette img, .o-soundtrack .st-pochette .art { width: 84px; height: 84px; }
  .o-soundtrack .st-infos b { font-size: 1.05rem; }
  .o-soundtrack .st-commandes { justify-content: center; }
  .st-fleches { display: none; }
  .o-soundtrack .st-onglets { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .o-soundtrack .st-onglets button { white-space: nowrap; }
  .o-soundtrack .st-rangee { --mu-c: 132px; }
}
.grp-aide { margin: 0 0 12px; } .grp-aide > p { font-size: 13px; color: var(--muted); line-height: 1.45; }

/* ===================== 🏟️ Disposition de la page d'un club (Apparence) ===================== */
#club-page[data-dispo-active] { display: block !important; }
.cd { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cd .panel { margin: 0 !important; }
.cd-haut { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.cd-resume { display: grid; gap: 12px; align-content: stretch; }
.cd-resume[hidden] { display: none; }
.cd-carte { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 18px; border: 1px solid var(--bord, var(--line)); border-radius: calc(16px * var(--arrondi, 1)); background-color: var(--carte, #fff); font: inherit; color: inherit; text-align: left; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.cd-carte:hover { transform: translateY(-2px); box-shadow: var(--ombre, 0 10px 24px rgba(0,0,0,.08)); border-color: var(--accent, #00a38c); }
.cd-carte.on { border-color: var(--accent, #00a38c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #00a38c) 16%, transparent); }
.cd-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: color-mix(in srgb, var(--accent, #00a38c) 12%, transparent); }
.cd-tx { display: flex; flex-direction: column; min-width: 0; }
.cd-tx b { font-size: 15px; }
.cd-tx small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-val { margin-left: auto; flex: none; font-weight: 800; font-size: 17px; color: var(--accent-ink, #00806e); white-space: nowrap; }
.cd-val.cd-off { color: var(--muted); font-size: 14px; }
.cd-val.cd-alerte { color: #c62828; }

/* A · Onglets */
.cd-onglets { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: fit-content; max-width: 100%; margin: 0 auto; padding: 6px; border-radius: 999px; background: var(--surface-2, #eef2f1); }
.cd-onglets button { padding: 10px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--texte-2, inherit); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; transition: background .2s, color .2s; white-space: nowrap; }
.cd-onglets button:hover { background: color-mix(in srgb, var(--accent, #00a38c) 10%, transparent); }
.cd-onglets button.on { background: linear-gradient(135deg, #00c7aa, #00806e); color: #fff; box-shadow: 0 6px 14px rgba(0, 128, 110, .28); }
.cd-vue { display: flex; flex-direction: column; gap: 18px; }
.cd-vue[hidden] { display: none; }
.cd-onglets ~ .cd-vues .panel[data-repliable] .chevron-groupe, .cd-section .panel[data-repliable] .chevron-groupe { display: none; }
.cd-onglets ~ .cd-vues .panel[data-repliable].groupe > .panel-body, .cd-section .panel[data-repliable].groupe > .panel-body { display: block; }

/* B · Sections repliables */
.cd-mode-repliable .cd-haut { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.cd-gauche { position: sticky; top: calc(var(--entete-h, 64px) + 90px); }
.cd-sections { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cd-section { border: 1px solid var(--bord, var(--line)); border-radius: calc(16px * var(--arrondi, 1)); background-color: var(--carte, #fff); overflow: hidden; transition: box-shadow .2s ease; }
.cd-section.ouvert { box-shadow: var(--ombre, 0 10px 24px rgba(0,0,0,.06)); }
.cd-section-tete { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 18px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.cd-section-tete:hover { background: color-mix(in srgb, var(--accent, #00a38c) 5%, transparent); }
.cd-section-tete .cd-val { font-size: 14px; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent, #00a38c) 12%, transparent); }
.cd-chev { flex: none; width: 0; height: 0; margin-left: 4px; border-left: 6px solid var(--muted); border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform .2s ease; }
.cd-section.ouvert .cd-chev { transform: rotate(90deg); }
.cd-section-corps { display: none; border-top: 1px solid var(--bord, var(--line)); }
.cd-section.ouvert .cd-section-corps { display: block; }
.cd-section-corps > .panel { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background-color: transparent; }
.cd-section-corps > .panel + .panel { border-top: 1px solid var(--bord, var(--line)) !important; }
.cd-section-corps > .panel > .panel-head:not(:has(.panel-actions, .hint, button, .favs-outils)) { display: none; }

/* C · Tuiles colorées */
.cd-resume.cd-tuiles { grid-template-columns: 1fr 1fr; }
.cd-tuiles .cd-carte { flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px; min-height: 120px; border: 0; color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.cd-tuiles .cd-carte:nth-child(1) { background: linear-gradient(135deg, #00c7aa, #00806e); }
.cd-tuiles .cd-carte:nth-child(2) { background: linear-gradient(135deg, #4568dc, #b06ab3); }
.cd-tuiles .cd-carte:nth-child(3) { background: linear-gradient(135deg, #11998e, #38ef7d); }
.cd-tuiles .cd-carte:nth-child(4) { background: linear-gradient(135deg, #232526, #4a4d50); }
.cd-tuiles .cd-carte:hover { box-shadow: 0 16px 32px rgba(0,0,0,.22); }
.cd-tuiles .cd-ic { display: none; }
.cd-tuiles .cd-tx { display: contents; }
.cd-tuiles .cd-tx b { order: 0; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; opacity: .92; }
.cd-tuiles .cd-val, .cd-tuiles .cd-val.cd-off, .cd-tuiles .cd-val.cd-alerte { order: 1; margin-left: 0; color: #fff; font-size: 28px; line-height: 1.1; }
.cd-tuiles .cd-tx small { order: 2; color: rgba(255,255,255,.85); white-space: normal; }
.cd-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.cd-col, .cd-pleine { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* Téléphone : onglets défilants, cartes en 2 colonnes compactes */
@media (max-width: 760px) {
  .cd-haut { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  #club-page[data-dispo-active] .cd .panel, #club-page[data-dispo-active] .cd-resume { order: 0 !important; }
  .cd-resume { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cd-carte { min-width: 0; padding: 9px 10px; gap: 8px; border-radius: 12px; }
  .cd-ic { width: 30px; height: 30px; font-size: 15px; border-radius: 9px; }
  .cd-tx { flex: 1; }
  .cd-tx b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cd-tx small { display: none; }
  .cd-val { font-size: 13.5px; }
  .cd-onglets { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; width: 100%; border-radius: 14px; }
  .cd-onglets::-webkit-scrollbar { display: none; }
  .cd-onglets button { padding: 9px 14px; font-size: 13.5px; }
}

/* Aperçus des dispositions dans Apparence */
.dispo-schema { display: flex; flex-direction: column; gap: 5px; height: 92px; padding: 10px; border-radius: 10px; background: var(--surface-2, #eef2f1); }
.dispo-schema i { display: block; border-radius: 4px; background: color-mix(in srgb, var(--muted) 28%, transparent); }
.dispo-schema .ds-lecteur { background: linear-gradient(135deg, #00c7aa, #00806e); }
.ds-haut { display: grid; grid-template-columns: 1.5fr 1fr; gap: 5px; height: 38px; }
.ds-cartes, .ds-lignes { display: grid; gap: 3px; }
.ds-onglets { display: flex; gap: 4px; justify-content: center; }
.ds-onglets i { width: 16px; height: 7px; border-radius: 4px; }
.ds-onglets i.on { background: #00a38c; }
.ds-bloc { flex: 1; }
.ds-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6px; height: 100%; }
.ds-cols .ds-lecteur { height: 50%; }
.ds-lignes i.ouvert { height: 22px; background: color-mix(in srgb, #00a38c 30%, transparent); }
.ds-tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.ds-tuiles i:nth-child(1) { background: #00a38c; } .ds-tuiles i:nth-child(2) { background: #7a6ad0; } .ds-tuiles i:nth-child(3) { background: #2bc48a; } .ds-tuiles i:nth-child(4) { background: #3a3d40; }
.ds-bas { height: 16px; flex: none; }
.ds-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; flex: 1; }
.cd-section-tete .cd-tx { flex: 1; } .cd-section-tete .cd-val { margin-left: 0; }
/* Tuiles : supervision plus compacte, incidents sur toute la largeur (2 colonnes d'incidents) */
.cd-mode-tuiles .o-sup .facts { row-gap: 2px; font-size: 13.5px; }
.cd-mode-tuiles .o-sup .facts dt, .cd-mode-tuiles .o-sup .facts dd { padding-top: 3px; padding-bottom: 3px; }
.cd-mode-tuiles .o-sup .panel-body { padding-top: 10px; padding-bottom: 12px; }
@media (min-width: 761px) {
  .cd-bas .o-inc > .panel-body { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .cd-bas .o-inc > .panel-body > .cell-sub { grid-column: 1 / -1; }
}

/* ===================== 🌈 Lecteur du club : écran animé (aurore aux couleurs de la pochette) ===================== */
@property --a1 { syntax: '<color>'; inherits: true; initial-value: #00c7aa; }
@property --a2 { syntax: '<color>'; inherits: true; initial-value: #00806e; }
@property --a3 { syntax: '<color>'; inherits: true; initial-value: #4568dc; }
.o-player { transition: --a1 1.6s ease, --a2 1.6s ease, --a3 1.6s ease; }
.o-aurore { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1s ease; }
.o-player.ambiance-prete .o-aurore { opacity: .5; }
.o-aurore b { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; will-change: transform; }
.o-aurore b:nth-child(1) { left: -15%; top: -35%; background: radial-gradient(circle, var(--a1) 0%, transparent 65%); animation: o-derive1 24s ease-in-out infinite alternate; }
.o-aurore b:nth-child(2) { right: -20%; bottom: -45%; background: radial-gradient(circle, var(--a2) 0%, transparent 65%); animation: o-derive2 30s ease-in-out infinite alternate; }
.o-aurore b:nth-child(3) { left: 35%; top: 10%; width: 50%; background: radial-gradient(circle, var(--a3) 0%, transparent 62%); opacity: .7; animation: o-derive3 36s ease-in-out infinite alternate; }
@keyframes o-derive1 { to { transform: translate(30%, 20%) scale(1.15); } }
@keyframes o-derive2 { to { transform: translate(-30%, -18%) scale(.9); } }
@keyframes o-derive3 { from { transform: translate(-15%, 10%); } to { transform: translate(20%, -15%) scale(1.2); } }
/* Respiration au rythme du titre */
html.club-joue .o-player.ambiance-prete .o-aurore { animation: o-souffle var(--temps, .5s) ease-out infinite; animation-delay: var(--phase, 0s); }
@keyframes o-souffle { 0% { opacity: .68; } 60%, 100% { opacity: .46; } }
/* Pochette : léger mouvement de caméra */
.o-player [data-f="art"] { overflow: hidden; border-radius: 14px; }
html.club-joue .o-player [data-f="art"] img { animation: o-camera 22s ease-in-out infinite alternate; }
@keyframes o-camera { 0% { transform: scale(1.02); } 50% { transform: scale(1.08) translate(-1.5%, 1%); } 100% { transform: scale(1.05) translate(1.5%, -1%); } }
@media (prefers-reduced-motion: reduce) { .o-aurore, .o-aurore b, html.club-joue .o-player [data-f="art"] img { animation: none !important; } }

/* 🔊 Fenêtre « Grouper ou dégrouper » : volume général et volume par enceinte */
.modal:has(.grp-choix-vol) { width: min(620px, calc(100vw - 24px)); max-width: 620px; }
.grp-general { display: grid; grid-template-columns: auto minmax(0, 1fr) 40px; align-items: center; gap: 14px; margin: 0 0 10px; padding: 10px 16px; border-radius: 12px; background: linear-gradient(135deg, #00c7aa, #00806e); color: #fff; font-weight: 700; }
.grp-general output { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.grp-general input[type=range] { accent-color: #fff; }
.grp-choix-vol .grp-ligne { grid-template-columns: 20px 12px minmax(0, 1fr) minmax(150px, 210px) auto; }
.grp-vol-zone { display: grid; grid-template-columns: minmax(0, 1fr) 30px; align-items: center; gap: 10px; cursor: default; }
.grp-ligne .grp-vol-zone input[type=range] { width: 100%; height: auto; margin: 0; }
.grp-vol-zone output { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .grp-choix-vol .grp-ligne { grid-template-columns: 20px 12px minmax(0, 1fr) auto; row-gap: 6px; }
  .grp-choix-vol .grp-vol-zone { grid-column: 3 / -1; grid-row: 2; }
  .grp-general { grid-template-columns: minmax(0, 1fr) 36px; }
  .grp-general > span { grid-column: 1 / -1; }
}

/* ⚡ Fenêtres rapides des tuiles (routines, supervision, incidents) : même style que « Grouper ou dégrouper » */
.modal:has(.cd-liste) { width: min(620px, calc(100vw - 24px)); max-width: 620px; }
.cd-bande b { font-weight: 650; opacity: .95; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-bande output { white-space: nowrap; }
.grp-general.cd-bande { grid-template-columns: auto minmax(0, 1fr) auto; }
.grp-general.cd-bande-calme { background: linear-gradient(135deg, #5f6b68, #3a4442); }
.grp-general.cd-bande-alerte { background: linear-gradient(135deg, #e5484d, #a3262a); }
.cd-liste .grp-ligne { cursor: default; }
.cd-liste .cdr-vide { padding: 14px; text-align: center; }
/* Routines */
.cd-liste .cdr-routine { grid-template-columns: 62px minmax(0, 1fr) auto auto; gap: 12px; padding: 10px 12px; }
.cdr-heure { display: flex; flex-direction: column; align-items: center; font-weight: 800; font-size: 15px; line-height: 1.1; padding: 5px 4px; border-radius: 10px; background: color-mix(in srgb, var(--accent, #00a38c) 10%, transparent); }
.cdr-heure small { font-size: 11px; font-weight: 600; color: var(--muted); }
.cdr-info { display: flex; flex-direction: column; min-width: 0; }
.cdr-info b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdr-info small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdr-vol { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.cdr-vol b { color: var(--texte, inherit); }
.cdr-vol .routine-jauge { width: 48px; }
.cdr-actions { display: inline-flex; align-items: center; gap: 8px; }
.cd-liste .cdr-actuelle { border-color: var(--accent, #00a38c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #00a38c) 14%, transparent); }
.cd-liste .cdr-actuelle .cdr-heure { background: var(--accent, #00a38c); color: #fff; }
.cd-liste .cdr-actuelle .cdr-heure small { color: rgba(255,255,255,.85); }
.cd-liste .cdr-pause { opacity: .6; background: transparent; border-color: var(--bord, var(--line)); }
/* Supervision */
.cd-liste .cds-ligne { grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 10px 14px; }
.cds-ligne span { color: var(--muted); font-size: 13.5px; }
.cds-ligne b { text-align: right; font-size: 13.5px; font-weight: 650; }
.cd-inter-blanc { justify-self: end; }
/* Incidents */
.cd-liste .cdi-ligne { grid-template-columns: 12px minmax(0, 1fr) auto auto; gap: 12px; padding: 10px 14px; }
.cdi-ligne b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdi-ligne small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.cdi-etat { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--ok-soft, #e3f5ea); color: var(--ok, #1a7f45); white-space: nowrap; }
.cd-liste .cdi-ouvert { border-color: #e5484d; background: color-mix(in srgb, #e5484d 7%, transparent); }
.cdi-ouvert .cdi-etat { background: #fde8e8; color: #b42318; }
@media (max-width: 760px) {
  .cd-liste .cdr-routine { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .cd-liste .cdr-vol { display: none; }
  .cd-liste .cdi-ligne { grid-template-columns: 12px minmax(0, 1fr) auto; }
  .cd-liste .cdi-ligne small { grid-column: 2; grid-row: 2; }
  .grp-general.cd-bande { grid-template-columns: minmax(0, 1fr) auto; }
  .grp-general.cd-bande > b { grid-column: 1 / -1; grid-row: 2; }
}
.cds-ligne span { white-space: nowrap; } .cd-liste .cds-ligne { align-items: start; }
/* Supervision (fenêtre rapide) : libellé à sa largeur, valeur à droite qui passe à la ligne sans jamais chevaucher */
.cd-liste .cds-ligne { grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; }
.cds-ligne b { min-width: 0; overflow-wrap: anywhere; line-height: 1.45; }
@media (max-width: 760px) {
  .cd-liste .cds-ligne { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .cds-ligne b { text-align: left; }
}

/* ===================== 🧭 Barre d'actions de la page club (ordinateur) : une seule barre arrondie ===================== */
@media (min-width: 761px) {
  .page-head > .actions.barre-club { display: flex; align-items: center; gap: 6px; padding: 5px; border: 1px solid var(--bord, var(--line)); border-radius: 999px; background-color: var(--carte, #fff); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
  .barre-club > .btn { position: relative; height: 38px; min-height: 0; padding: 0 14px; gap: 8px; border: 0; border-radius: 999px; background: transparent; box-shadow: none; font-size: 13.5px; font-weight: 650; color: var(--texte-2, inherit); }
  .barre-club > .btn:hover { background: color-mix(in srgb, var(--accent, #00a38c) 10%, transparent); transform: none; }
  .barre-club > .btn:not(:first-child):not(.btn-primaire)::before { content: ""; position: absolute; left: -4px; top: 9px; bottom: 9px; width: 1px; background: var(--bord, var(--line)); }
  .barre-club > .btn .icon { width: 17px; height: 17px; color: var(--accent-ink, #00806e); }
  .barre-club > .btn-sonos { padding-left: 10px; }
  .barre-club > .btn-sonos img { width: 24px; height: 24px; border-radius: 6px; }
  .barre-club > .btn-sonos .bs-txt small { font-size: 10.5px; }
  .barre-club > .btn-sonos[aria-expanded="true"] { border: 0; box-shadow: none; background: color-mix(in srgb, var(--accent, #00a38c) 12%, transparent); }
  .barre-club > .btn-primaire { padding: 0 18px; background: linear-gradient(135deg, #00c7aa, #00806e); color: #fff; box-shadow: 0 6px 14px rgba(0, 128, 110, .28); }
  .barre-club > .btn-primaire:hover { background: linear-gradient(135deg, #00d4b5, #008a77); }
  .barre-club > .btn-primaire .icon { color: #fff; }
}
.barre-club > .btn .icon { flex: none; }

/* ===================== 🧭 Barre d'actions arrondie : toutes les pages (ordinateur) ===================== */
@media (min-width: 761px) {
  .page-head > .actions:not(:empty) { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; padding: 5px; border: 1px solid var(--bord, var(--line)); border-radius: 999px; background-color: var(--carte, #fff); box-shadow: 0 6px 18px rgba(0,0,0,.06); width: auto; }
  .page-head > .actions > .btn, .page-head > .actions > form > .btn { position: relative; height: 38px; min-height: 0; padding: 0 14px; gap: 8px; border: 0; border-radius: 999px; background: transparent; box-shadow: none; font-size: 13.5px; font-weight: 650; color: var(--texte-2, inherit); white-space: nowrap; }
  .page-head > .actions > .btn:hover:not(:disabled) { background: color-mix(in srgb, var(--accent, #00a38c) 10%, transparent); transform: none; }
  .page-head > .actions > .btn:disabled { opacity: .45; }
  .page-head > .actions > .btn + .btn:not(.btn-primaire):not(.btn-primary)::before { content: ""; position: absolute; left: -4px; top: 9px; bottom: 9px; width: 1px; background: var(--bord, var(--line)); }
  .page-head > .actions > .btn .icon { width: 17px; height: 17px; flex: none; color: var(--accent-ink, #00806e); }
  .page-head > .actions > .btn-primaire, .page-head > .actions > .btn-primary { padding: 0 18px; background: linear-gradient(135deg, #00c7aa, #00806e); color: #fff; box-shadow: 0 6px 14px rgba(0, 128, 110, .28); }
  .page-head > .actions > .btn-primaire:hover, .page-head > .actions > .btn-primary:hover { background: linear-gradient(135deg, #00d4b5, #008a77) !important; }
  .page-head > .actions > .btn-primaire .icon, .page-head > .actions > .btn-primary .icon { color: #fff; }
}

/* ===================== 🧭 En-tête : barre arrondie Incidents · Apparence · Réglages, et barre du compte ===================== */
.barre-entete { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(255,255,255,.06); }
.topbar-inner .barre-entete > .btn, .topbar-inner .barre-entete form > .btn { position: relative; height: 36px; min-height: 0; width: auto; padding: 0 13px; gap: 7px; border: 0; border-radius: 999px; background: transparent; box-shadow: none; color: rgba(255,255,255,.88); font-size: 13px; font-weight: 650; display: inline-flex; align-items: center; }
.barre-entete > .btn:hover, .barre-entete form > .btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.barre-entete > .btn.actif { background: linear-gradient(135deg, #00c7aa, #00806e); color: #fff; box-shadow: 0 4px 12px rgba(0, 128, 110, .35); }
.barre-entete > .btn + .btn:not(.actif)::before, .barre-entete > form::before { content: ""; position: absolute; left: -3px; top: 9px; bottom: 9px; width: 1px; background: rgba(255,255,255,.14); }
.barre-entete > .btn.actif + .btn::before, .barre-entete > .btn + .btn.actif::before { display: none; }
.barre-entete > form { position: relative; display: flex; margin: 0; }
.barre-entete .icon { width: 17px; height: 17px; flex: none; color: #2fd6bd; }
.barre-entete > .btn.actif .icon { color: #fff; }
.barre-entete .compteur { position: absolute; top: -3px; right: -2px; }
.barre-compte .compte-bureau { padding-left: 5px; }
.barre-compte .compte-initiales { width: 28px; height: 28px; }
@media (max-width: 1100px) { .barre-entete .be-txt { display: none; } .topbar-inner .barre-entete > .btn, .topbar-inner .barre-entete form > .btn { padding: 0 11px; } }


/* ===================== 🔍 Barre de recherche centrée entre le voyant de connexion et la barre « Incidents · Apparence · Réglages » ===================== */
@media (min-width: 761px) {
  .topbar-haut > .accueil-vide { display: none; }
  .topbar-haut > .recherche-globale { flex: 0 1 640px; min-width: 240px; max-width: 640px; margin-left: auto; margin-right: auto; }
  .topbar-haut > .user-menu { margin-left: 0; }
}

/* 🏟️ Dispositions « Tuiles » et « Sections repliables » sur téléphone */
@media (max-width: 760px) {
  .cd-mode-repliable .cd-haut { grid-template-columns: minmax(0, 1fr); }
  .cd-gauche { position: static; }
  .cd-section-tete { padding: 12px 14px; gap: 10px; }
  .cd-resume.cd-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cd-tuiles .cd-carte { min-height: 96px; padding: 12px; }
  .cd-tuiles .cd-tx small { display: block; font-size: 11.5px; }
  .cd-tuiles .cd-val, .cd-tuiles .cd-val.cd-off, .cd-tuiles .cd-val.cd-alerte { font-size: 22px; }
  .cd-grille { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* ===================== ⚙️ Fenêtre « Réglages du club » condensée (ordinateur) : 3 colonnes, plus d'ascenseur ===================== */
@media (min-width: 761px) {
  .modal:has(select[name=fallback_favorite_id]) { width: min(1000px, calc(100vw - 24px)); max-width: 1000px; }
  .modal:has(select[name=fallback_favorite_id]) .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
  .modal:has(select[name=fallback_favorite_id]) .form-grid > .full.switch { grid-column: auto; align-self: end; }
  .modal:has(select[name=fallback_favorite_id]) .form-grid .check-carte, .modal:has(select[name=fallback_favorite_id]) .form-grid .field > label.check { padding-top: 7px; padding-bottom: 7px; }
  .modal:has(select[name=fallback_favorite_id]) .form-grid > .field.full:has(select[name=fallback_favorite_id]),
  .modal:has(select[name=fallback_favorite_id]) .form-grid > .field.full:has([name=regroup_delay]) { grid-column: span 2; }
  .modal:has(select[name=fallback_favorite_id]) .form-grid .help { font-size: 11.5px; line-height: 1.3; margin-top: 3px; }
  .modal:has(select[name=fallback_favorite_id]) .form-grid .checks { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .modal:has(select[name=fallback_favorite_id]) .form-grid .checks .check { padding: 7px 10px; min-height: 0; font-size: 13px; }
  .modal:has(select[name=fallback_favorite_id]) .form-grid .input { min-height: 38px; }
}

/* 👁 Afficher / masquer le mot de passe */
.mdp-boite { position: relative; display: block; }
.mdp-boite > input { width: 100%; padding-right: 46px !important; }
.mdp-oeil { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted, #6b7673); cursor: pointer; }
.mdp-oeil:hover { background: color-mix(in srgb, var(--accent, #00a38c) 10%, transparent); color: var(--accent-ink, #00806e); }
.mdp-oeil svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 🍃 Tuiles colorées : « S » SYNERGY FIT incrusté en filigrane, comme sur le lecteur */
.cd-tuiles .cd-carte { position: relative; overflow: hidden; isolation: isolate; }
.cd-tuiles .cd-carte::after { content: ""; position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; transform: translate(-50%, -50%) rotate(-8deg); background: url('/images/filigrane-s-blanc.svg?v=hd') center / contain no-repeat; opacity: .2; z-index: -1; pointer-events: none; transition: transform .35s cubic-bezier(.2,.8,.3,1), opacity .25s ease; }
.cd-tuiles .cd-carte:hover::after { transform: translate(-50%, -50%) rotate(-4deg) scale(1.06); opacity: .28; }
@media (max-width: 760px) { .cd-tuiles .cd-carte::after { width: 110px; height: 110px; } }
@media print { .cd-tuiles .cd-carte::after { display: none; } }

/* 🔉 Volumes : boutons « − » et « + » autour des curseurs (lecture en cours, Soundtrack, enceintes) */
.vol-pas { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; }
.vol-pas > input[type=range] { flex: 1; min-width: 0; width: auto !important; margin: 0 !important; }
.vp-btn { flex: none; width: 24px; height: 24px; padding: 0; display: grid; place-items: center; border: 1px solid var(--bord, var(--line, #dfe5e4)); border-radius: 50%; background: var(--carte, #fff); color: var(--accent-ink, #00806e); font: 700 15px/1 system-ui, sans-serif; cursor: pointer; user-select: none; touch-action: manipulation; transition: background-color .15s ease, border-color .15s ease, transform .1s ease; }
.vp-btn:hover { border-color: var(--accent, #00a38c); background: color-mix(in srgb, var(--accent, #00a38c) 10%, var(--carte, #fff)); }
.vp-btn:active { transform: scale(.9); }
.vol-pas:has(input:disabled) .vp-btn { opacity: .4; pointer-events: none; }
/* Sur fond foncé ou coloré */
.o-soundtrack .vp-btn, .grp-general .vp-btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; }
.o-soundtrack .vp-btn:hover, .grp-general .vp-btn:hover { background: rgba(255,255,255,.24); border-color: #fff; }
/* Liste des enceintes : un peu plus de place pour le curseur et ses boutons */
@media (min-width: 641px) {
  .room:has(.vol-pas) { grid-template-columns: minmax(0, 1fr) 160px 28px 32px; }
}
@media (max-width: 640px) {
  .room > .vol-pas { grid-area: vol; margin-left: 20px; }
  .vp-btn { width: 28px; height: 28px; }
}
@media (min-width: 761px) {
  .modal:has(.grp-choix-vol) { width: min(680px, calc(100vw - 24px)); max-width: 680px; }
  .grp-choix-vol .grp-ligne { grid-template-columns: 20px 12px minmax(0, 1fr) minmax(200px, 250px) auto; }
}

/* 🎵 Répétition / Aléatoire indisponibles quand Soundtrack joue */
button.tag-mode.mode-indispo { opacity: .5; cursor: help; }
button.tag-mode.mode-indispo:hover { border-color: inherit; }
/* Tuiles colorées : texte du bas en gras pour mieux le lire */
.cd-tuiles .cd-tx small { font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.18); }

/* 🎶 Soundtrack · Au programme */
.stp { margin-top: 12px; }
.stp[hidden] { display: none; }
.stp-note { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); text-align: center; }
.stp-grille { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }
.stp-col { min-width: 0; border: 1px solid var(--bord, var(--line)); border-radius: calc(14px * var(--arrondi, 1)); background: var(--carte, #fff); overflow: hidden; }
.stp-col h4 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0; padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--bord, var(--line)); background: color-mix(in srgb, var(--accent, #00a38c) 6%, transparent); }
.stp-col h4 small { font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.stp-liste { list-style: none; margin: 0; padding: 6px; max-height: 430px; overflow-y: auto; scrollbar-width: thin; }
.stp-ligne { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 6px 10px; border-radius: 10px; }
.stp-ligne:hover { background: color-mix(in srgb, var(--accent, #00a38c) 6%, transparent); }
.stp-ligne img, .stp-sans { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; display: grid; place-items: center; background: var(--surface-2, #eef2f1); }
.stp-tx { display: flex; flex-direction: column; min-width: 0; }
.stp-tx b, .stp-tx small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stp-tx b { font-size: 13.5px; }
.stp-tx small { font-size: 12px; color: var(--muted); }
.stp-meta { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stp-ligne.encours { background: linear-gradient(135deg, rgba(0,199,170,.14), rgba(0,128,110,.10)); box-shadow: inset 0 0 0 1px rgba(0,163,140,.35); margin-bottom: 4px; }
.stp-ligne.encours b { color: var(--accent-ink, #00806e); }
.stp-encours { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: linear-gradient(135deg, #00c7aa, #00806e); color: #fff; font-weight: 700; font-size: 11.5px; }
.stp-ligne.joue { opacity: .55; }
.stp-vide { margin: 0; padding: 18px 16px; font-size: 13px; color: var(--muted); }
.stp-attente { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 30px; color: var(--muted); font-size: 13px; }
@media (max-width: 860px) {
  .stp-grille { grid-template-columns: minmax(0, 1fr); }
  .stp-liste { max-height: 320px; }
}

/* 🎴 Soundtrack : toutes les playlists visibles d'un coup (grille sur plusieurs lignes, plus de défilement ni de flèches) */
.o-soundtrack .st-rangee.mu-defile { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--mu-c), 1fr)); gap: 16px 14px; overflow: visible; scroll-snap-type: none; }
.o-soundtrack .st-rangee.mu-defile[hidden] { display: none; }
.o-soundtrack .st-rangee.mu-defile > * { flex: none; width: auto; min-width: 0; }
.o-soundtrack .st-rangee.mu-defile > .mu-rien, .o-soundtrack .st-rangee.mu-defile > .st-rien { grid-column: 1 / -1; }
.o-soundtrack .st-fleches { display: none !important; }
@media (max-width: 760px) { .o-soundtrack .st-rangee.mu-defile { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px 10px; } }

/* 🎛️ Tuile de lecture Soundtrack : progression, infos, « Juste avant », bloquer un titre */
@media (min-width: 761px) {
  .o-soundtrack .st-scene { grid-template-columns: 112px minmax(0, 1.15fr) minmax(0, 1fr) auto; grid-template-areas: "art infos plus cmd" "vol vol vol vol"; }
}
.st-prog { margin-top: 8px; max-width: 420px; }
.st-prog[hidden] { display: none; }
.st-prog-barre { display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,.22); overflow: hidden; }
.st-prog-barre i { display: block; height: 100%; width: 0; border-radius: 2px; background: #2fd4b4; transition: width .5s linear; }
.st-prog-t { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11.5px; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.st-plus { grid-area: plus; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.16); }
.st-puces { display: flex; flex-wrap: wrap; gap: 6px; }
.st-puces:empty { display: none; }
.st-puce { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); text-decoration: none; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.st-puce[hidden] { display: none; }
.st-puce-bpm { background: rgba(47,212,180,.18); border-color: rgba(47,212,180,.45); color: #b9f5e8; }
.st-puce-routine { background: rgba(127,119,221,.22); border-color: rgba(175,169,236,.45); color: #e3e0ff; }
.st-puce-routine:hover { background: rgba(127,119,221,.34); }
.st-avant[hidden] { display: none; }
.st-avant small { display: block; margin-bottom: 6px; font-size: 11.5px; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .06em; }
.st-avant-liste { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; text-align: left; font: inherit; }
.st-avant-p { flex: none; width: 40px; height: 40px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: rgba(255,255,255,.12); box-shadow: 0 4px 10px rgba(0,0,0,.3); transition: transform .2s ease; }
.st-avant-p img { width: 100%; height: 100%; object-fit: cover; }
.st-avant-liste:hover .st-avant-p { transform: translateY(-2px); }
.st-avant-noms { min-width: 0; font-size: 12px; color: rgba(255,255,255,.82); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.o-soundtrack .st-commandes { flex-wrap: wrap; justify-content: center; max-width: 150px; row-gap: 10px; }
.st-bloquer { flex-basis: 100%; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; font: 600 11.5px/1.2 inherit; font-family: inherit; cursor: pointer; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease; }
.st-bloquer:hover:not(:disabled) { background: rgba(226,75,74,.3); border-color: rgba(240,149,149,.7); }
.stp-bloques { margin-top: 16px; }
.stp-bloques .stp-liste { max-height: 260px; }
@media (max-width: 760px) {
  .o-soundtrack .st-scene { grid-template-areas: "art infos" "plus plus" "cmd cmd" "vol vol"; }
  .st-plus { padding-left: 0; border-left: 0; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.16); }
  .o-soundtrack .st-commandes { max-width: none; }
  .st-bloquer { flex-basis: auto; }
}
/* Tuile de lecture Soundtrack sans réglage du volume (il est dans le lecteur du haut) */
@media (min-width: 761px) { .o-soundtrack .st-scene { grid-template-areas: "art infos plus cmd"; } }
@media (max-width: 760px) { .o-soundtrack .st-scene { grid-template-areas: "art infos" "plus plus" "cmd cmd"; } }

/* 💬 Bulles d'aide au survol */
.bulle { position: fixed; z-index: 10000; left: -9999px; top: 0; pointer-events: none; opacity: 0; transform: translateY(5px) scale(.97); transform-origin: var(--fleche, 50%) 100%; transition: opacity .16s ease, transform .2s cubic-bezier(.2,.8,.3,1); font-family: inherit; }
.bulle.dessous { transform: translateY(-5px) scale(.97); transform-origin: var(--fleche, 50%) 0; }
.bulle.visible { opacity: 1; transform: none; }
.bulle[hidden] { display: none; }
.bulle::after { content: ""; position: absolute; left: var(--fleche, 50%); top: 100%; width: 10px; height: 10px; margin-left: -5px; margin-top: -5px; transform: rotate(45deg); border-radius: 0 0 2px 0; }
.bulle.dessous::after { top: auto; bottom: 100%; margin-top: 0; margin-bottom: -5px; border-radius: 2px 0 0 0; }
/* D · Pastille teal : aide courte */
.bulle-courte { max-width: 300px; padding: 7px 14px; border-radius: 999px; background: linear-gradient(135deg, #00b89d, #00806e); color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.35; letter-spacing: .01em; text-align: center; box-shadow: 0 10px 24px rgba(0, 90, 77, .28), 0 2px 6px rgba(0, 0, 0, .12); }
.bulle-courte::after { background: #009580; }
.bulle-courte:not(:empty) { overflow-wrap: anywhere; }
/* C · Bulle riche : icône, titre, explication, raccourci */
.bulle-riche { display: flex; gap: 12px; width: max-content; max-width: 300px; padding: 12px 14px; border-radius: 14px; background: #fff; color: #10201d; border: 1px solid #d6e3e0; box-shadow: 0 18px 40px rgba(16, 32, 29, .18), 0 3px 10px rgba(16, 32, 29, .08); text-align: left; }
.bulle-riche::after { background: #fff; border-right: 1px solid #d6e3e0; border-bottom: 1px solid #d6e3e0; }
.bulle-riche.dessous::after { border-right: 0; border-bottom: 0; border-left: 1px solid #d6e3e0; border-top: 1px solid #d6e3e0; }
.br-ic { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, #00c7aa, #00806e); color: #fff; box-shadow: 0 4px 10px rgba(0, 128, 110, .3); }
.br-ic .icon { width: 17px; height: 17px; }
.br-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.br-tx b { font-size: 13px; font-weight: 700; color: #0b5e52; }
.br-tx > span { font-size: 12px; line-height: 1.45; color: #4d5a57; }
.br-tx kbd { align-self: flex-start; margin-top: 4px; padding: 2px 7px; border-radius: 6px; background: #eef4f2; border: 1px solid #d6e3e0; border-bottom-width: 2px; color: #2c3d39; font: 600 11px/1.3 inherit; font-family: inherit; }
@media (prefers-reduced-motion: reduce) { .bulle { transition: opacity .1s linear; transform: none !important; } }
@media print { .bulle { display: none !important; } }
.bulle-courte.multi { border-radius: 14px; padding: 8px 14px; }

/* 🍃 Fond de l'appli : tapis de pétales du S SYNERGY FIT (défile avec la page pour rester fluide) */
html body:not(.ecran-page):not(.connexion-synergy) { background-image: url('/images/petales-fond-plein.svg?v=2'); background-size: 900px 900px; background-repeat: repeat; }
@media print { html body { background-image: none !important; } }

/* 🎚️ Ambiances du lecteur : Calme · Normal · Dynamique (en haut à droite) */
.ambiances-bloc .ambiances { position: absolute; top: 16px; right: 18px; z-index: 3; display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.72); border: 1px solid rgba(0,0,0,.06); box-shadow: 0 6px 18px rgba(16,32,29,.10); backdrop-filter: blur(8px); }
.amb { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border: 0; border-radius: 999px; background: transparent; color: #2c3d39; font: 600 12.5px/1 inherit; font-family: inherit; cursor: pointer; white-space: nowrap; transition: background-color .18s ease, color .18s ease, transform .12s ease, box-shadow .18s ease; }
.amb-ic { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 13px; line-height: 1; }
.amb-calme .amb-ic { background: #e3f0fb; }
.amb-normal .amb-ic { background: #e1f5ee; }
.amb-dyna .amb-ic { background: #fdebe3; }
.amb:hover { background: rgba(0,163,140,.10); }
.amb:active { transform: scale(.95); }
.amb.on { color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.amb-calme.on { background: linear-gradient(135deg, #5aa9e6, #2f6fb0); }
.amb-normal.on { background: linear-gradient(135deg, #00c7aa, #00806e); }
.amb-dyna.on { background: linear-gradient(135deg, #ff8a4c, #e0442b); }
.amb.on .amb-ic { background: rgba(255,255,255,.25); }
@media (max-width: 760px) {
  .ambiances-bloc .ambiances { position: static; justify-content: center; margin: 0 auto 12px; width: max-content; max-width: 100%; }
  .amb { padding: 6px 10px 6px 6px; }
}

/* 🎴 Page Musique : toutes les playlists visibles sur la page (grille, plus de flèches ni de défilement) */
.mu .mu-defile { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--mu-c, 180px), 1fr)); gap: 18px 16px; overflow: visible; scroll-snap-type: none; padding: 4px 2px 8px; }
.mu .mu-defile > * { flex: none; width: auto; min-width: 0; }
.mu .mu-defile > .mu-rien { grid-column: 1 / -1; }
.mu .mu-fleches { display: none !important; }
@media (max-width: 760px) { .mu .mu-defile { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px 10px; } }

/* 🎚️ Ambiances : version compacte */
.ambiances-bloc .ambiances { top: 14px; right: 16px; gap: 3px; padding: 3px; }
.amb { gap: 4px; padding: 4px 9px 4px 4px; font-size: 11.5px; }
.amb-ic { width: 18px; height: 18px; font-size: 11px; }

/* 🍃 En-tête des pages (titre + barre d'actions, aussi quand il reste figé en haut) : mêmes pétales, alignés sur le fond */
html body:not(.ecran-page):not(.connexion-synergy) .page-head { background-image: url('/images/petales-fond-plein.svg?v=2'); background-size: 900px 900px; background-attachment: fixed; }
/* 🎚️ Contrôle dynamique du volume : en bas à gauche, à côté du volume général */
.vol-zone { display: flex; align-items: flex-end; gap: 18px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.vol-zone > .player-vol { flex: 1; min-width: 0; margin-top: 0; padding-top: 0; border-top: 0; min-height: 30px; }
.ambiances-bloc { flex: none; display: flex; flex-direction: column; gap: 5px; }
.amb-titre { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.vol-zone .ambiances { position: static; top: auto; right: auto; }
@media (max-width: 760px) {
  .vol-zone { flex-direction: column; align-items: stretch; gap: 12px; }
  .ambiances-bloc { align-items: center; }
  .vol-zone .ambiances { margin: 0; }
}
/* Volume général : son titre passe au-dessus (comme « Contrôle dynamique du volume ») pour laisser toute la place au curseur */
.vol-zone > .player-vol { flex-wrap: wrap; row-gap: 5px; column-gap: 10px; }
.vol-zone > .player-vol > .icon { display: none; }
.vol-zone > .player-vol > .cell-sub { flex-basis: 100%; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .02em; line-height: 1.2; }
.vol-zone > .player-vol > .vol-pas { flex: 1; min-width: 0; }
/* Contrôle dynamique du volume : toute la largeur du lecteur (sous la pochette), titre centré */
.o-player > .vol-zone { margin-top: 18px; }
.ambiances-bloc { align-items: center; }
.amb-titre { text-align: center; width: 100%; }
/* En-tête figé : les bandes latérales (qui couvrent toute la largeur) portent aussi les pétales */
html body:not(.ecran-page):not(.connexion-synergy) .page-head { isolation: isolate; box-shadow: none !important; background-color: transparent; background-image: none; }
html body:not(.ecran-page):not(.connexion-synergy) .page-head::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1920px; right: -1920px; z-index: -1; pointer-events: none; background: var(--fond, #f2f5f4) url('/images/petales-fond-plein.svg?v=2') 0 0 / 900px 900px repeat fixed; }
.o-player > .vol-zone { margin: -10px 26px 0; padding: 14px 0 22px; }
@media (max-width: 760px) { .o-player > .vol-zone { margin: -6px 16px 0; padding: 12px 0 16px; } }

/* 🐞 L'en-tête porte ses pétales latéraux sans recouvrir la page quand il n'est pas figé (téléphone) */
html body:not(.ecran-page):not(.connexion-synergy) .page-head { contain: layout; }
/* 📱 Tableau de bord : pochettes « Diffusion actuelle des clubs » côte à côte sur téléphone (pensé pour 20 clubs et plus) */
@media (max-width: 760px) {
  .tb-pochettes { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
  .tb-pochette { border-radius: 12px; }
  .tb-p-texte { padding: 6px 7px !important; }
  .tb-p-texte b { font-size: 10.5px !important; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .tb-p-texte small { font-size: 9.5px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .tb-pochettes > * { min-width: 0; }
}
@media (max-width: 340px) { .tb-pochettes { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* 📱 Liste des clubs sur téléphone : cartes compactes, 2 par ligne (pensé pour 20 clubs et plus) */
@media (max-width: 760px) {
  html table.clubs-liste, html table.clubs-liste tbody { display: block; width: 100%; }
  html table.clubs-liste thead { display: none !important; }
  html table.clubs-liste tbody { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 10px; }
  html table.clubs-liste tbody tr { position: relative; display: flex !important; width: auto !important; flex-wrap: wrap; align-items: center; gap: 5px; margin: 0; padding: 11px 12px 12px; border: 1px solid var(--bord, var(--line)); border-radius: 14px; background: var(--carte, #fff); box-shadow: 0 2px 8px rgba(16,32,29,.05); min-width: 0; }
  html table.clubs-liste tbody tr:active { transform: scale(.98); }
  html table.clubs-liste tbody td { display: block !important; padding: 0 !important; border: 0 !important; width: auto; min-width: 0; text-align: left; }
  html table.clubs-liste tbody td::before { display: none !important; content: none !important; }
  html table.clubs-liste td[data-label="État"] { position: absolute; top: 12px; right: 12px; }
  html table.clubs-liste td[data-label="Club"] { flex-basis: 100%; padding-right: 18px !important; margin-bottom: 3px; }
  html table.clubs-liste td[data-label="Club"] .cell-main { display: block; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html table.clubs-liste td[data-label="Club"] .cell-main::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
  html table.clubs-liste td[data-label="Club"] .cell-sub { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html table.clubs-liste td[data-label="Gérant"], html table.clubs-liste td[data-label="Horaires"], html table.clubs-liste td[data-label=""], html table.clubs-liste td[data-label="Incidents"]:has(> .cell-sub:only-child) { display: none !important; }
  html table.clubs-liste .cl-sonos, html table.clubs-liste .pill { font-size: 10px; padding: 2px 7px; white-space: nowrap; }
  html table.clubs-liste td[data-label="Diffusion"]:not(:has(.pill)) { display: none !important; }
  html table.clubs-liste td[data-label="Enceintes"] { font-size: 11px; font-weight: 600; color: var(--muted); }
  html table.clubs-liste td[data-label="Enceintes"]:not(:empty)::after { content: " enc."; font-weight: 400; }
  html table.clubs-liste td[data-label="Incidents"] { flex-basis: 100%; font-size: 11px; }
}
@media (max-width: 340px) { html table.clubs-liste tbody { grid-template-columns: minmax(0, 1fr); } }
/* 📱 Playlists (page Musique et panneau Soundtrack) : 3 par ligne sur téléphone */
@media (max-width: 760px) {
  .mu .mu-defile, .o-soundtrack .st-rangee.mu-defile { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 12px 8px !important; }
  .mu .mu-defile .mu-nom, .o-soundtrack .st-rangee .mu-nom { font-size: 11.5px; line-height: 1.25; }
  .mu .mu-defile .mu-desc, .o-soundtrack .st-rangee .mu-desc { font-size: 10px; }
  .mu .mu-defile .mu-coeur, .o-soundtrack .st-rangee .mu-coeur { width: 26px; height: 26px; font-size: 12px; top: 6px; right: 6px; }
  .mu .mu-defile .mu-pochette, .o-soundtrack .st-rangee .mu-pochette { border-radius: 10px; }
}
/* 📱 Boutons de l'en-tête des pages : passent à la ligne au lieu de déborder */
@media (max-width: 760px) {
  .page-head > .actions:not(.barre-club) { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; max-width: 100%; }
  .page-head > .actions:not(.barre-club) > .btn, .page-head > .actions:not(.barre-club) > form { flex: 1 1 auto; min-width: 0; justify-content: center; }
  .page-head > .actions:not(.barre-club) > form > .btn { width: 100%; justify-content: center; }
}
@media (max-width: 760px) {
  .bd-tuile .bd-nom { font-size: 13px !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; line-height: 1.2; }
  .bd-tuile .bd-tete { gap: 8px; }
}

/* 🚦 Tuiles colorées : texte centré, ✓ quand tout va bien, couleur d'alerte en cas de problème */
.cd-tuiles .cd-carte { align-items: center; text-align: center; }
.cd-tuiles .cd-carte > * { position: relative; z-index: 1; }
.cd-tuiles .cd-carte[data-etat]::before { position: absolute; top: 10px; right: 10px; z-index: 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 800 13px/1 system-ui, sans-serif; color: #fff; background: rgba(255,255,255,.24); border: 1px solid rgba(255,255,255,.45); box-shadow: 0 3px 8px rgba(0,0,0,.18); }
.cd-tuiles .cd-carte[data-etat="ok"]::before { content: "✓"; }
.cd-tuiles .cd-carte[data-etat="alerte"]::before { content: "!"; background: #fff; color: #c62828; border-color: #fff; animation: cd-pouls 1.6s ease-in-out infinite; }
.cd-tuiles .cd-carte[data-etat="attention"]::before { content: "!"; background: #fff; color: #b45309; border-color: #fff; }
.cd-tuiles .cd-carte[data-etat="alerte"] { background: linear-gradient(135deg, #ff5f6d, #c62828) !important; box-shadow: 0 10px 26px rgba(198,40,40,.35); }
.cd-tuiles .cd-carte[data-etat="attention"] { background: linear-gradient(135deg, #fbbf24, #d97706) !important; box-shadow: 0 10px 26px rgba(217,119,6,.3); }
@keyframes cd-pouls { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 50% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } }
@media (prefers-reduced-motion: reduce) { .cd-tuiles .cd-carte[data-etat="alerte"]::before { animation: none; } }

/* 🎧 Écran d'ouverture : casque avec le S de SYNERGY FIT, qui bat en rythme comme l'ancien casque */
.splash-casque .splash-picto { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 60%; filter: drop-shadow(0 8px 16px rgba(0, 128, 110, .28));
  animation: sp-battement .5s cubic-bezier(.3, 0, .3, 1) .95s infinite, sp-balance 2s ease-in-out .95s infinite; }
@media (prefers-reduced-motion: reduce) { .splash-casque .splash-picto { animation: none; } }
/* 📱 Écran d'ouverture : invitation à toucher l'écran (lance le jingle disco) */
.splash-toucher { display: block; margin-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #00a08a; opacity: 0; animation: sp-toucher 1.4s ease-in-out 1.6s infinite; }
@keyframes sp-toucher { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.splash.splash-entree .splash-casque { transform: scale(1.12); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.splash.splash-entree .splash-toucher { animation: none; opacity: 0; transition: opacity .3s ease; }

/* ↔️ Lecteur : les 3 lignes (boutons, enceintes hors du groupe, routine) alignées à gauche, l'une sous l'autre */
@media (min-width: 761px) {
  /* ↔️ Les 3 lignes centrées l'une sous l'autre : boutons rapprochés, bulles à leur taille normale */
  .o-player .meta-bloc { align-self: stretch; display: flex; flex-direction: column; align-items: center; }
  .o-player .meta-bloc > .player-meta { justify-content: center; gap: 8px; width: 100%; }
  .o-player .meta-bloc > .player-meta::after { content: ""; order: 8; flex-basis: 100%; height: 0; }
  .o-player .meta-bloc > .player-meta > .tag-hors-groupe { order: 9; margin: 0 auto; }
  .o-player .meta-bloc > a.tag.tag-routine { align-self: center; margin-left: auto; margin-right: auto; }
}

/* 🎴 Choix de la playlist avec pochettes (routines) */
.pp { position: relative; }
.pp-champ { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 6px 12px 6px 6px; text-align: left; cursor: pointer; background: var(--carte, #fff); }
.pp-v { flex: none; width: 34px; height: 34px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--surface-2, #eef2f1); }
.pp-v img { width: 100%; height: 100%; object-fit: cover; }
.pp-n { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-n small, .pp-ligne small { font-weight: 500; color: var(--muted); }
.pp-fl { flex: none; color: var(--muted); font-size: 12px; }
.pp-panneau { position: absolute; z-index: 10050; top: calc(100% + 6px); left: 0; right: 0; max-height: 360px; overflow-y: auto; padding: 10px; border-radius: 14px; background: var(--carte, #fff); border: 1px solid var(--bord, var(--line)); box-shadow: 0 18px 40px rgba(16,32,29,.18); scrollbar-width: thin; }
.pp-panneau[hidden] { display: none; }
.pp-speciaux { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.pp-ligne { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-radius: 10px; background: transparent; text-align: left; font: inherit; font-weight: 600; cursor: pointer; color: inherit; }
.pp-ligne .pp-emoji, .pp-ligne img { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2, #eef2f1); object-fit: cover; }
.pp-ligne:hover, .pp-carte:hover { background: rgba(0,163,140,.08); }
.pp-ligne.on { background: rgba(0,163,140,.14); color: var(--accent-ink, #00806e); }
.pp-groupe { margin: 8px 4px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pp-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.pp-carte { display: flex; flex-direction: column; gap: 5px; padding: 5px; border: 2px solid transparent; border-radius: 12px; background: transparent; cursor: pointer; font: inherit; color: inherit; text-align: left; min-width: 0; }
.pp-p { display: block; aspect-ratio: 1; border-radius: 9px; overflow: hidden; background: var(--surface-2, #eef2f1); box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.pp-p img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-p .pp-emoji { display: grid; place-items: center; width: 100%; height: 100%; font-size: 26px; }
.pp-t { font-size: 11.5px; font-weight: 600; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pp-carte.on { border-color: #00a38c; background: rgba(0,163,140,.08); }
.pp-carte.on .pp-t { color: var(--accent-ink, #00806e); }

/* 🔗 Dégroupage volontaire : fenêtre de raison et lien « Indiquer la raison » dans la tuile */
.dg-noms { margin: 0 0 12px; font-weight: 700; color: var(--accent-ink, #00806e); text-align: center; }
.dg-titre { margin: 14px 0 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.dg-puces { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 10px; }
.dg-puce { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--bord, var(--line)); background: var(--carte, #fff); font: 600 12.5px/1.2 inherit; font-family: inherit; color: inherit; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.dg-puce:hover { border-color: #00a38c; }
.dg-puce.on { background: linear-gradient(135deg, #00c7aa, #00806e); border-color: transparent; color: #fff; }
.dg-erreur { margin: 8px 0 0; color: #c62828; font-size: 12.5px; text-align: center; }
.cd-raison { display: inline-block; margin-top: 4px; padding: 2px 9px; border-radius: 999px; background: #fff; color: #b45309; font-size: 11px; font-weight: 800; cursor: pointer; text-shadow: none; }
.cd-raison:hover { filter: brightness(.95); }

/* 🚨 Bouton « Incidents » de l'en-tête : rouge qui pulse et pastille à droite du mot quand un incident est en cours */
.barre-entete a .compteur[data-open-count], .page-head .actions a .compteur[data-open-count] { position: static !important; transform: none !important; inset: auto !important; margin-left: 6px; display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #fff; color: #c62828; font-size: 11px; font-weight: 800; line-height: 1; box-shadow: none; border: 0; }
.barre-entete a .compteur[data-open-count][hidden], .page-head .actions a .compteur[data-open-count][hidden] { display: none; }
.barre-entete a:has(> .compteur[data-open-count]:not([hidden])), .page-head .actions a:has(> .compteur[data-open-count]:not([hidden])) { position: relative; color: #fff !important; background: linear-gradient(135deg, #ff5f6d, #c62828) !important; border-radius: 999px; animation: be-pouls 1.6s ease-in-out infinite; }
.barre-entete a:has(> .compteur[data-open-count]:not([hidden])) .icon, .page-head .actions a:has(> .compteur[data-open-count]:not([hidden])) .icon { color: #fff !important; }
@keyframes be-pouls { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 95, 109, .65); } 50% { box-shadow: 0 0 0 8px rgba(255, 95, 109, 0); } }

/* Routines : boutons −/+ autour des curseurs */
.routine-enceinte { grid-template-columns: minmax(80px, 32%) minmax(0, 1fr) 34px; }
.routine-grille .routine-enceinte { grid-template-columns: minmax(64px, 34%) minmax(0, 1fr) 28px; }
.routine-enceinte > .vol-pas { min-width: 0; }
.routine-enceinte > .vol-pas input[type="range"] { min-width: 0; width: 100%; }

/* 🔐 Droits d'accès par utilisateur : fonctions refusées masquées (le serveur refuse aussi) */
.droit-sans-lecture :is(.transport, .tag-mode, [data-resume], .st-commandes .qbtn, .ml-commandes) { display: none !important; }
.droit-sans-volume :is(.vol-zone, .room > .vol-pas, .room input[type="range"][data-player], .room output) { display: none !important; }
.droit-sans-playlist :is(.sonos-pop .favs, .sonos-pop-sous, [data-sp-mode], [data-st-favori], .mu-play) { display: none !important; }
.droit-sans-playlist [data-st-lancer] { pointer-events: none; cursor: default; }
.droit-sans-bloquer :is([data-st-bloquer], [data-st-debloquer]) { display: none !important; }
.droit-sans-groupement :is(#groupement-btn, #regroup-btn, .cd-raison) { display: none !important; }
.droit-sans-maintenance .room-outil { visibility: hidden !important; pointer-events: none; }
.droit-sans-incidents :is(.barre-entete [data-open-count], .tb-incidents) { display: none !important; }

/* 🔐 Fiche utilisateur : profils + grille des droits */
.dr-sous { font-weight: 400; color: var(--muted); margin-left: 6px; font-size: 12px; }
.dr-profils { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 4px 0 12px; }
.dr-profil { font: inherit; font-size: 13px; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--carte, #fff); color: var(--texte-2); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.dr-profil:hover { border-color: var(--accent); }
.dr-profil.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.dr-perso { cursor: default; opacity: .55; }
.dr-perso.on { opacity: 1; }
.dr-grille { border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); column-gap: 22px; }
.dr-famille-titre { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 10px 0 2px; font-weight: 600; }
.dr-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.dr-famille-titre + .dr-ligne { border-top: 0; }
.dr-lib { font-size: 13px; line-height: 1.3; }
.dr-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.dr-seg button { font: inherit; font-size: 12px; padding: 3px 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; min-width: 44px; }
.dr-seg button + button { border-left: 1px solid var(--line); }
.dr-seg button.on.dr-bas { background: #fcebeb; color: #a32d2d; font-weight: 600; }
.dr-seg button.on.dr-mi { background: #faeeda; color: #854f0b; font-weight: 600; }
.dr-seg button.on.dr-haut { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
@media (max-width: 640px) {
  .dr-grille { grid-template-columns: 1fr; padding: 2px 10px 6px; }
  .dr-seg button { padding: 4px 8px; min-width: 40px; }
}

/* 📱 Fenêtres sur téléphone : toujours sous l'heure et la batterie, croix de fermeture accessible */
@media (pointer: coarse) {
  .topbar { padding-top: env(safe-area-inset-top, 0px); }
  /* iPhone récent : le flou de la barre d'état déborde de ~20 px sous l'heure ; logo et nom passent en dessous */
  @supports (padding-top: max(0px, env(safe-area-inset-top))) {
    .topbar { padding-top: max(0px, calc(env(safe-area-inset-top, 0px) * 1.4)); }
  }
  html.menu-gauche .lateral { padding-top: env(safe-area-inset-top, 0px); }
  .modal-root.open { padding: calc(12px + env(safe-area-inset-top, 0px)) 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .modal { max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
}

/* ✋ Ambiance choisie à la main : petite mention sous les boutons (même largeur que la rangée de boutons) */
.amb-note { display: flex; align-items: flex-start; justify-content: center; gap: 5px; width: 0; min-width: 100%; margin: 2px 0 0; padding: 5px 10px; border-radius: 10px; background: rgba(0,163,140,.08); color: #0f6e56; font-size: 11px; font-weight: 600; line-height: 1.35; text-align: center; animation: amb-note-entree .25s ease-out; }
.amb-note[hidden] { display: none; }
.amb-note-ic { flex: none; font-size: 11px; line-height: 1.35; }
@keyframes amb-note-entree { from { opacity: 0; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .amb-note { animation: none; } }

/* 📱 Appli installée sur iPhone : entre deux pages, iOS colore le haut de l'écran d'après le fond de la page
   (corps du document et éléments fixés en haut). Le corps prend donc la couleur de l'en-tête, une bande fixe
   foncée occupe la zone de l'heure, et le fond clair aux pétales est porté par le contenu de la page. */
@media (display-mode: standalone) and (pointer: coarse) {
  html, html body:not(.ecran-page):not(.connexion-synergy) { background-color: var(--entete, #222) !important; }
  html body:not(.ecran-page):not(.connexion-synergy) { background-image: none !important; }
  html body:not(.ecran-page):not(.connexion-synergy) > main.container {
    background: var(--fond, #f2f5f4) url('/images/petales-fond-plein.svg?v=2') 0 0 / 900px 900px repeat;
    min-height: 100dvh; max-width: none;
  }
  html body:not(.ecran-page):not(.connexion-synergy)::before {
    content: ''; position: fixed; top: 0; left: 0; right: 0; height: calc(env(safe-area-inset-top, 0px) * 1.4);
    background: var(--entete, #222); z-index: 11; pointer-events: none;
  }
}
/* Écran d'ouverture (clair) : le haut de l'écran reste clair lui aussi, sans bandeau gris */
@media (display-mode: standalone) and (pointer: coarse) {
  html.splash-ouvert, html.splash-ouvert body:not(.ecran-page):not(.connexion-synergy) { background-color: #f7faf9 !important; }
  html.splash-ouvert body:not(.ecran-page):not(.connexion-synergy)::before { display: none; }
}

/* 📲 Paramètres › Application mobile */
.am-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 4px; }
.am-carte { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--carte, #fff); }
.am-carte-titre { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.am-etapes { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.45; }
.am-adresse { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 16px 0 6px; }
.am-adresse code { padding: 7px 14px; border-radius: 999px; background: var(--accent-soft, rgba(0,163,140,.1)); color: var(--accent-ink, #0f6e56); font-size: 14px; font-weight: 600; word-break: break-all; }

/* 🎤 Recherche Soundtrack : artistes et titres (fiche club et page Musique) */
.sta { margin: 4px 0 2px; }
.sta-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 14px 2px 8px; font-size: 14px; font-weight: 700; }
.sta-h small { font-weight: 500; font-size: 12px; color: var(--muted); }
.sta-artistes { display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.sta-artiste { flex: none; width: 92px; display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; }
.sta-artiste img, .sta-artiste .sta-sans { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,.12); transition: transform .15s; }
.sta-artiste:hover img { transform: scale(1.05); }
.sta-artiste span:last-child { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sta-sans { display: grid; place-items: center; background: var(--accent-soft, rgba(0,163,140,.1)); font-size: 22px; }
.sta-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px 14px; }
.sta-titre { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; transition: background .15s; }
.sta-titre:hover { background: var(--accent-soft, rgba(0,163,140,.08)); }
.sta-titre img, .sta-titre .sta-sans { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.sta-tx { display: grid; min-width: 0; }
.sta-tx b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sta-tx small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sta-duree { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sta-actions { display: inline-flex; gap: 6px; }
.sta-actions button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--carte, #fff); cursor: pointer; font-size: 13px; display: grid; place-items: center; color: var(--accent-ink, #0f6e56); transition: background .15s, transform .1s; }
.sta-actions .sta-jouer { background: var(--accent, #00a38b); border-color: var(--accent, #00a38b); color: #fff; }
.sta-actions button:hover { transform: scale(1.06); }
.sta-actions button.is-busy { opacity: .5; pointer-events: none; }
.sta-artiste-tete { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 10px; }
.sta-artiste-tete img, .sta-artiste-tete .sta-sans { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.sta-artiste-tete .sta-tx { flex: 1; }
.sta-mode { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.sta-mode label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 13px; }
.sta-mode label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.droit-sans-playlist .sta-actions, .droit-sans-playlist [data-sta-tous] { display: none !important; }
@media (max-width: 760px) {
  .sta-liste { grid-template-columns: 1fr; }
  .sta-actions button { width: 40px; height: 40px; }
}

/* 🏷️ Paramètres › Général : choix du logo */
.logo-choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.logo-option { position: relative; cursor: pointer; }
.logo-option input { position: absolute; opacity: 0; pointer-events: none; }
.logo-carte { display: grid; justify-items: center; gap: 6px; padding: 14px 12px; border: 2px solid var(--line); border-radius: 12px; text-align: center; height: 100%; background: #222; color: #fff; transition: border-color .15s, box-shadow .15s; }
.logo-carte img { height: 36px; max-width: 100%; object-fit: contain; }
.logo-carte .logo-auto { font-size: 28px; line-height: 36px; }
.logo-carte small { font-size: 11.5px; opacity: .75; line-height: 1.35; }
.logo-option input:checked + .logo-carte { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.logo-option input:focus-visible + .logo-carte { outline: 2px solid var(--accent); outline-offset: 2px; }
/* 📻 Station dans le style de l'artiste */
.sta-station { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: 4px 0 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--accent, #00a38b); background: var(--accent-soft, rgba(0,163,140,.08)); }
.sta-station img, .sta-station .sta-sans { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.sta-station .sta-tx small { white-space: normal; }
.sta-station-actions { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sta-station-rangee { display: flex; gap: 14px; padding-bottom: 4px; }
.sta-station-rangee .mu-carte { flex: 0 0 180px; }
@media (max-width: 760px) {
  .sta-station { grid-template-columns: 52px minmax(0, 1fr); }
  .sta-station img, .sta-station .sta-sans { width: 52px; height: 52px; }
  .sta-station-actions { grid-column: 1 / -1; justify-content: center; }
}

/* 🎧 Lecteur : « Enceintes » et « Écouter » en pastilles jumelles, centrées (Répétition et Aléatoire retirés : Soundtrack enchaîne les titres) */
.player-meta { justify-content: center; }
.player-meta :is(.tag-enceintes, .tag-ecoute) {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 34px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--carte, #fff); border: 1px solid var(--line); color: inherit; box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.player-meta :is(.tag-enceintes, .tag-ecoute) .icon { width: 16px; height: 16px; }
.player-meta .tag-ecoute-picto { width: 20px; height: 20px; object-fit: contain; display: block; }
.player-meta :is(.tag-enceintes, .tag-ecoute):hover { border-color: var(--accent, #00a38b); }

/* Boutons Enceintes / Écouter et pastille de routine centrés sur la barre de lecture */
.player-info > .meta-bloc { width: 100%; max-width: 520px; align-self: flex-start; }
@media (max-width: 860px) { .player-info > .meta-bloc { max-width: 100%; align-self: stretch; } }
