/* Même puce et même fenêtre sur tableaux et pyramides SIMUL’OCC.
   Aucun changement de couleur sportive des lignes. */
.lbd-cp-why,
.fo-dashboard-standing .fo-simulocc-why,
.spv-page details[data-spv-dialogue]>summary{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;width:auto!important;height:auto!important;min-width:0!important;
  padding:3px 7px!important;margin:2px 0!important;border-radius:999px!important;
  border:1px solid #d7ac57!important;background:#fff0c9!important;color:#744d15!important;
  font:800 10px/1.25 system-ui,sans-serif!important;white-space:nowrap!important;
  cursor:pointer!important;text-decoration:none!important;box-shadow:0 1px 0 rgba(25,45,64,.06);
}
.lbd-cp-why:hover,.lbd-cp-why:focus-visible,
.fo-dashboard-standing .fo-simulocc-why:hover,.fo-dashboard-standing .fo-simulocc-why:focus-visible,
.spv-page details[data-spv-dialogue]>summary:hover,.spv-page details[data-spv-dialogue]>summary:focus-visible{
  background:#ffe2a1!important;outline:2px solid #c79745;outline-offset:2px;
}
/* La destination reste prioritaire ; le bouton n'en masque pas le texte. */
.fo-dashboard-standing .fo-simulocc-dest-wrap .fo-simulocc-why{flex:0 1 auto!important;max-width:100%!important;white-space:nowrap!important}
/* Lot 16 : une seule puce « ? » sur tous les tableaux et pyramides.
   Le dialogue n'apparaît qu'au clic, y compris pour le HTML signé existant. */
.lbd-cp-why,
.fo-dashboard-standing .fo-simulocc-why,
.spv-page details[data-spv-dialogue]>summary{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 22px!important;box-sizing:border-box!important;
  width:22px!important;min-width:22px!important;max-width:22px!important;
  height:22px!important;min-height:22px!important;max-height:22px!important;
  padding:0!important;margin:2px 3px!important;border-radius:50%!important;
  background:#fff0c9!important;border:1px solid #c79e53!important;
  color:#704719!important;font:900 12px/1 system-ui,sans-serif!important;
  text-align:center!important;cursor:pointer!important;
  list-style:none!important;text-decoration:none!important;white-space:nowrap!important;
  vertical-align:middle!important;appearance:none!important;
}
.spv-page details[data-spv-dialogue]>summary::-webkit-details-marker{display:none!important}
.spv-page details[data-spv-dialogue]>summary::marker{content:''}
.lbd-cp-why:focus-visible,
.fo-dashboard-standing .fo-simulocc-why:focus-visible,
.spv-page details[data-spv-dialogue]>summary:focus-visible{
  outline:2px solid #a61b2b!important;outline-offset:2px!important;
}
/* Pas de bulle au survol, même si une photographie ancienne transporte
   encore un listener qui ouvre temporairement <details>. */
.spv-page details[data-spv-dialogue] .spv-dialogue-bubble,
.spv-page details[data-spv-dialogue][open] .spv-dialogue-bubble{display:none!important}
/* Désactiver les anciennes bulles internes : leur contenu est repris dans la fenêtre. */
.spv-page details[data-spv-dialogue]>.spv-dialogue-bubble{display:none!important}
.fo-simulocc-dossier-pop{display:none!important}
.lbd-cp-pop{display:none!important}
.lbd-why-modal[hidden]{display:none!important}
.lbd-why-modal{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:12px;box-sizing:border-box}
.lbd-why-modal__veil{position:absolute;inset:0;background:rgba(9,17,29,.55);backdrop-filter:blur(1px)}
.lbd-why-modal__panel{position:relative;box-sizing:border-box;width:min(570px,100%);max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;
 background:#fff;color:#203248;border:1px solid #d8e2ed;border-left:5px solid #bd2934;
 border-radius:17px;box-shadow:0 20px 65px rgba(9,20,38,.3);padding:17px 18px 15px;font:14px/1.5 system-ui,sans-serif}
.lbd-why-modal__header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:13px;padding-bottom:10px;border-bottom:1px solid #e7edf3}
.lbd-why-modal__header strong{display:block;color:#a71d2b;font-size:17px;line-height:1.2}
.lbd-why-modal__subtitle{margin:5px 0 0;color:#67788a;font-size:12px;line-height:1.4}
.lbd-why-modal__close{flex:0 0 auto;border:1px solid #cdd9e5;border-radius:9px;background:#f7f9fc;color:#34475b;padding:7px 10px;font-weight:700;font-size:12px;cursor:pointer}
.lbd-why-modal__close:hover,.lbd-why-modal__close:focus-visible{background:#eaf1fa;outline:2px solid #8ba9c5}
.lbd-why-modal__voices{display:grid;gap:10px;margin-bottom:12px}
.lbd-why-modal__voix{display:flex;gap:11px;align-items:flex-start;min-width:0;padding:11px;border-radius:12px;background:#f1f5fb}
.lbd-why-modal__voix--prof{background:#fff4e1}
.lbd-why-modal__voix img{width:62px;height:62px;flex:0 0 62px;border-radius:12px;object-fit:cover;box-shadow:0 2px 6px #23394a1b}
.lbd-why-modal__voix>div{min-width:0;flex:1}
.lbd-why-modal__voix strong{display:block;font-size:13px;color:#23344c;margin-bottom:4px}
.lbd-why-modal__voix p{margin:0;overflow-wrap:break-word;line-height:1.5;white-space:normal;font-size:13px}
.lbd-why-modal__panel small{color:#677a8e;font-size:11px;line-height:1.4}
body.lbd-why-modal-open{overflow:hidden}
@media(max-width:600px){
 .lbd-why-modal{align-items:flex-start;padding:8px}
 .lbd-why-modal__panel{max-height:calc(100dvh - 16px);padding:13px;border-radius:14px}
 .lbd-why-modal__header strong{font-size:16px}
 .lbd-why-modal__voix{padding:9px;gap:9px}
 .lbd-why-modal__voix img{width:52px;height:52px;flex-basis:52px}
 .lbd-why-modal__voix p{font-size:12.5px}
}
/* U17 National : bleu pour une phase finale établie par les six deuxièmes,
   jamais par le seul rang local. S'applique aux tableaux et fiches. */
.fo-dashboard-standing table tbody tr.fo-standing--phase,
.fo-dashboard-standing table tbody tr.fo-standing--phase>td,
.fo-dashboard-standing table tbody tr.is-department.fo-standing--phase>td,
.fo-standings-section .fo-standings-table tbody tr.fo-standing--phase>td{
  background:#e7f3fc!important;
}
.fo-dashboard-standing tr.fo-standing--phase>td:first-child,
.fo-standings-section .fo-standings-table tr.fo-standing--phase>td:first-child{
  box-shadow:inset 3px 0 0 #1683ba!important;
}
.fo-dashboard-standing .fo-status-dot--phase,
.fo-standings-section .fo-status-dot--phase{background:#1683ba!important}

/* Lot fiabilité : même mention courte et même ? sur toutes les vues.
   Rang sportif et destination restent dans leurs colonnes d'origine. */
.lbd-public-situation{display:inline-flex;align-items:center;gap:2px;vertical-align:middle;
  max-width:100%;margin-left:5px;white-space:normal;line-height:1.25}
.lbd-public-situation__label{display:inline-block;border-radius:7px;background:#eaf0f8;
  color:#244266;font-size:10px;font-weight:800;padding:3px 5px;max-width:175px}
.lbd-public-situation--blocked .lbd-public-situation__label{background:#fff0d3;
  color:#75480b;border:1px solid #e5bd75}
.fo-dashboard-team-inline .lbd-public-situation,
.fo-team-cell .lbd-public-situation{flex:0 1 auto}
.lbd-public-situation .fo-simulocc-why,
.fo-standings-section .lbd-situation-why,
.cpo-calcul .lbd-situation-why{display:inline-flex!important;align-items:center;justify-content:center;
  width:22px!important;min-width:22px;height:22px!important;padding:0!important;
  margin:1px 3px!important;border-radius:50%!important;background:#fff0c9!important;
  color:#704719!important;border:1px solid #c79e53!important;font:900 12px/1 system-ui,sans-serif!important;
  cursor:pointer!important;vertical-align:middle}
.lbd-public-situation .fo-simulocc-why:focus-visible,
.fo-standings-section .lbd-situation-why:focus-visible,
.cpo-calcul .lbd-situation-why:focus-visible{outline:2px solid #a61b2b;outline-offset:2px}
@media(max-width:650px){.lbd-public-situation__label{font-size:9px;max-width:132px}}

/* SIMUL’OCC conserve le sigle de destination et montre aussi le même verbe sportif. */
.lbd-simulocc-situation-label{display:block;margin-top:2px;font-size:10px;font-weight:700;
 color:#405468;white-space:normal;line-height:1.25}

/* Lot 25 : naviguer vite entre les divisions sur téléphone, quatre univers.
   Aucun changement des cartes, numérotations, décisions ou projections. */
@media (min-width:701px){
  .spv-page nav.spv-seniors-anchor{display:none}
}
@media (max-width:700px){
  /* Les univers restent TOUS visibles, et l'onglet actif n'est jamais caché. */
  .spv-page nav.tabs{
    display:flex!important; flex-wrap:wrap!important;
    column-gap:6px!important;row-gap:6px!important;
    margin-bottom:12px!important;
  }
  .spv-page nav.tabs > a{
    flex:0 0 auto!important;display:inline-flex!important;align-items:center!important;
    justify-content:center!important;min-height:40px!important;
    padding:7px 10px!important;border-radius:3px!important;
    font-size:12.5px!important;line-height:1.2!important;
    box-shadow:none!important;white-space:nowrap!important;
  }
  /* Les accès aux niveaux utilisent une seule ligne glissable au doigt. */
  .spv-page nav.spv-c7-anchor{
    display:flex!important;flex-wrap:nowrap!important;
    overflow-x:auto!important;overflow-y:hidden!important;
    gap:7px!important;max-width:100%;min-width:0;
    padding:2px 1px 9px!important;margin:0 0 12px!important;
    overscroll-behavior-inline:contain;scroll-snap-type:x proximity;
    scrollbar-width:thin;-webkit-overflow-scrolling:touch;
  }
  .spv-page nav.spv-c7-anchor > a{
    flex:0 0 auto!important;display:inline-flex!important;
    align-items:center;justify-content:center;
    min-height:40px;max-width:100%;
    padding:7px 12px!important;border-radius:3px!important;
    white-space:nowrap!important;scroll-snap-align:start;
    text-decoration:none;
  }
  .spv-page nav.spv-c7-anchor > a:focus-visible{
    outline:2px solid #b52333;outline-offset:-2px;
  }
  .spv-page [id^="niveau-"],
  .spv-page [id^="ft-"],
  .spv-page [id^="sf-"],
  .spv-page [id^="sj-"]{scroll-margin-top:75px}
}

/* Lot 26 — La Course sur téléphone : priorité aux clubs et aux enjeux.
   Styles de présentation uniquement : aucun déplacement de carte et aucun effet
   sur les résultats, les dialogues, les numéros ou les hauteurs de 86 px. */
@media (max-width:600px) {
  .spv-page .panel {
    padding:14px 11px 16px!important;
    margin:12px 0!important;
  }
  .spv-page .panel > .heading,
  .spv-page .spv-c7-group > .heading {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    align-items:start!important;
    gap:5px!important;
    margin-bottom:11px!important;
  }
  .spv-page .heading h2 {
    min-width:0!important;
    margin:0!important;
    font-size:clamp(18px,5.1vw,22px)!important;
    line-height:1.22!important;
    overflow-wrap:break-word;
  }
  .spv-page .heading .stats,
  .spv-page .heading .capacity {
    justify-self:start;
    max-width:100%;
    line-height:1.35!important;
    overflow-wrap:anywhere;
  }
  .spv-page .kpis {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
    width:100%;
  }
  .spv-page .kpis .kpi {
    min-width:0;
    padding:6px 8px!important;
    margin:0!important;
    line-height:1.3!important;
  }
  .spv-page .legend {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px 9px!important;
    align-items:start!important;
  }
  .spv-page .legend > span {min-width:0;line-height:1.35;}
  .spv-page .sc7-cp,
  .spv-page .spv-cp {margin:10px 0 14px!important;}
  .spv-page .spv-c7-poule {margin:11px 0!important;}
  .spv-page .spv-c7-poule h3 {
    line-height:1.3!important;
    overflow-wrap:break-word;
  }
}
@media (max-width:520px) {
  /* Une carte par ligne : fini les noms écrasés en deux colonnes.
     Les grilles de barrages spécifiques restent inchangées. */
  .spv-page .clubs {
    grid-template-columns:minmax(0,1fr)!important;
    gap:8px!important;
  }
  .spv-page .clubs .club {
    width:100%!important;
    max-width:100%!important;
    height:86px!important;
    min-height:86px!important;
    max-height:86px!important;
  }
  .spv-page .clubs .clubname strong,
  .spv-page .clubs .spv-case-content strong {
    font-size:13px!important;
    line-height:1.2!important;
  }
}
/* Les explications restent des échanges vivants, non une fenêtre d'application.
   Sur téléphone : lecture en panneau bas, fermeture facile, contraste renforcé. */
@media (max-width:600px) {
  body:has(.spv-page) .lbd-why-modal {
    align-items:flex-end!important;
    padding:0!important;
  }
  body:has(.spv-page) .lbd-why-modal__panel {
    width:100%!important;
    max-height:88dvh!important;
    border:0!important;
    border-top:4px solid #c42334!important;
    border-radius:3px 3px 0 0!important;
    padding:15px 14px max(16px,env(safe-area-inset-bottom))!important;
    box-shadow:0 -8px 35px rgba(9,20,38,.28)!important;
  }
  body:has(.spv-page) .lbd-why-modal__header {
    align-items:center!important;
    padding-bottom:11px!important;
  }
  body:has(.spv-page) .lbd-why-modal__header strong {
    font-size:18px!important;
    letter-spacing:-.02em;
  }
  body:has(.spv-page) .lbd-why-modal__close {
    min-height:44px!important;
    border-radius:3px!important;
    padding:9px 13px!important;
  }
  body:has(.spv-page) .lbd-why-modal__voix {
    border-radius:3px!important;
    padding:10px!important;
    gap:10px!important;
  }
  body:has(.spv-page) .lbd-why-modal__voix img {
    width:48px!important;height:48px!important;flex-basis:48px!important;
    border-radius:3px!important;box-shadow:none!important;
  }
  body:has(.spv-page) .lbd-why-modal__voix p {
    font-size:13.5px!important;line-height:1.5!important;
  }
}
