/* ==========================================================================
   AXION 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 (prefers-reduced-motion: reduce){
  .st-playing .meter i{height: 14px;}
}
@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 : AXION 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 .o-player { order: 1; }
  .club-layout .o-rooms { order: 2; }
  .club-layout .o-favs { order: 3; }
  .club-layout .o-sup { order: 4; }
  .club-layout .o-inc { order: 5; }
  .club-layout .o-logs { order: 6; }
  .club-layout .o-acces { order: 7; }
  .club-layout .o-test { order: 8; }
  .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 AXION 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%; } }
@media (min-width: 761px) { .splash { display: none !important; } }
