/* =========================================================
   Predator Eleven — Mobile Shell
   Expérience native smartphone (indépendante de main.css)
   ========================================================= */

:root {
  --m-bg0: #070b14;
  --m-bg1: #0b1220;
  --m-bg2: #121a2b;
  --m-surface: rgba(30, 41, 59, 0.72);
  --m-surface-solid: #162033;
  --m-border: rgba(148, 163, 184, 0.14);
  --m-text: #e8eef8;
  --m-muted: #94a3b8;
  --m-accent: #3b82f6;
  --m-accent-soft: rgba(59, 130, 246, 0.18);
  --m-gold: #facc15;
  --m-success: #22c55e;
  --m-danger: #ef4444;
  --m-radius: 16px;
  --m-radius-sm: 12px;
  --m-topbar-h: 56px;
  --m-tabbar-h: 64px;
  --m-safe-top: env(safe-area-inset-top, 0px);
  --m-safe-bottom: env(safe-area-inset-bottom, 0px);
  --m-font: "Outfit", system-ui, sans-serif;
  --m-display: "Sora", "Outfit", system-ui, sans-serif;
  --m-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body.m-app {
  font-family: var(--m-font);
  color: var(--m-text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(59, 130, 246, 0.18), transparent 55%),
    radial-gradient(900px 500px at 110% 10%, rgba(14, 165, 233, 0.12), transparent 50%),
    linear-gradient(180deg, var(--m-bg1) 0%, var(--m-bg0) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: calc(var(--m-topbar-h) + var(--m-safe-top));
  padding-bottom: calc(var(--m-tabbar-h) + var(--m-safe-bottom) + 8px);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Top bar ---------- */

.m-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: calc(var(--m-topbar-h) + var(--m-safe-top));
  padding: var(--m-safe-top) 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(11, 18, 32, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--m-border);
}

.m-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.m-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.m-brand-text {
  font-family: var(--m-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-topbar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.m-money {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.28);
  color: var(--m-gold);
  font-weight: 700;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.m-money-ico {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(250, 204, 21, 0.2);
  font-size: 0.65rem;
  font-weight: 800;
}

.m-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--m-border);
  background: rgba(255, 255, 255, 0.04);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  color: var(--m-text);
  transition: background 0.2s ease, transform 0.15s ease;
}

.m-icon-btn:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.08);
}

.m-icon-btn-bars {
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

/* ---------- Main ---------- */

.m-main {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 14px 14px 24px;
  min-height: 50vh;
  /* Opacity only — never transform/filter here: they trap position:fixed
     descendants (page popups) to the bottom of .m-main instead of the viewport. */
  animation: m-fade-in 0.35s ease both;
}

/* Unique responsive shell — widen content past phone portrait without
   changing the default 560px phone column. */
@media (min-width: 640px) {
  .m-main {
    width: min(720px, 100%);
  }
}

@media (min-width: 900px) {
  .m-main {
    width: min(960px, 100%);
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (min-width: 1200px) {
  .m-main {
    width: min(1100px, 100%);
  }
}

/* ---------- Board + rail (premium tablet pattern) ----------
   Reusable shell zones for Composition, then Stade / RH / etc.
   Phone: pages keep their own flow (often via display:contents).
   ≥900px: main module + sticky strategic rail. ---------- */

.m-board {
  min-width: 0;
}

.m-board-main,
.m-board-rail {
  min-width: 0;
}

@media (min-width: 900px) {
  .m-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 16px 20px;
    align-items: start;
  }

  .m-board-rail {
    position: sticky;
    top: calc(var(--m-topbar-h) + var(--m-safe-top) + 10px);
    max-height: calc(
      100dvh - var(--m-topbar-h) - var(--m-tabbar-h) - var(--m-safe-top) -
        var(--m-safe-bottom) - 28px
    );
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
  }
}

@keyframes m-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes m-fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Tab bar ---------- */

.m-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  height: calc(var(--m-tabbar-h) + var(--m-safe-bottom));
  padding: 6px 6px var(--m-safe-bottom);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  /* Glass on ::before — backdrop-filter on the interactive fixed element itself
     participates in Safari's compositor sampling and worsens stale hit-testing
     after programmatic scroll (sponsor payout / form redirects). */
  background: transparent;
  border-top: none;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  pointer-events: auto;
  isolation: isolate;
}

.m-tabbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--m-border);
  pointer-events: none;
}

.m-tab {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 14px;
  color: var(--m-muted);
  padding: 6px 2px;
  transition: color 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.m-tab-ico {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  opacity: 0.9;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.m-tab-ico--home {
  -webkit-mask-image: url("/icons/tab-home.svg");
  mask-image: url("/icons/tab-home.svg");
}

.m-tab-ico--matchs {
  -webkit-mask-image: url("/icons/tab-matchs.svg");
  mask-image: url("/icons/tab-matchs.svg");
}

.m-tab-ico--championnat {
  -webkit-mask-image: url("/icons/tab-championnat.svg");
  mask-image: url("/icons/tab-championnat.svg");
}

.m-tab-ico--coupe {
  -webkit-mask-image: url("/icons/tab-coupe.svg");
  mask-image: url("/icons/tab-coupe.svg");
}

.m-tab-ico--club {
  -webkit-mask-image: url("/icons/tab-club.svg");
  mask-image: url("/icons/tab-club.svg");
}

.m-tab-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.m-tab.is-active {
  color: #fff;
  background: var(--m-accent-soft);
}

.m-tab.is-active .m-tab-ico {
  opacity: 1;
  color: #93c5fd;
}

/* ---------- Sheet / drawer ---------- */

.m-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(2px);
  animation: m-fade 0.2s ease both;
}

.m-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1101;
  max-height: min(86vh, 720px);
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, #152033 0%, #0d1524 100%);
  border: 1px solid var(--m-border);
  border-bottom: none;
  box-shadow: var(--m-shadow);
  padding: 8px 0 calc(16px + var(--m-safe-bottom));
  overflow: auto;
  animation: m-sheet-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* hidden must win over animation-fill-mode layers (same class of bug as .m-row[hidden]).
   A ghost sheet (opacity 0–0.4, still in the hit-test tree) covers the tabbar but can
   leave the topbar logo clickable — exact Marketing freeze symptom. */
.m-sheet[hidden],
.m-sheet-backdrop[hidden] {
  display: none !important;
  pointer-events: none !important;
  animation: none !important;
  opacity: 0 !important;
}

@keyframes m-sheet-in {
  from {
    transform: translateY(24px);
    opacity: 0.4;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes m-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.m-sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  margin: 4px auto 10px;
}

.m-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 10px;
}

.m-sheet-head h2 {
  margin: 0;
  font-family: var(--m-display);
  font-size: 1.05rem;
}

.m-sheet-section {
  padding: 8px 16px 14px;
}

.m-sheet-section h3 {
  margin: 0 0 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--m-muted);
  font-weight: 700;
}

.m-sheet-link {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
}

.m-sheet-link:active {
  background: var(--m-accent-soft);
  border-color: rgba(59, 130, 246, 0.35);
}

/* Section PREMIUM — titre + liens dorés, fond sombre conservé */
.m-sheet-section--premium h3 {
  color: var(--m-gold);
}

.m-sheet-section--premium .m-sheet-link {
  color: var(--m-gold);
  border-color: rgba(250, 204, 21, 0.22);
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.08);
}

.m-sheet-section--premium .m-sheet-link:active {
  background: rgba(250, 204, 21, 0.12);
  border-color: rgba(250, 204, 21, 0.4);
}

.m-sheet-link-danger {
  color: #fca5a5;
}

/* ---------- Shared mobile UI primitives ---------- */

.m-page-title {
  margin: 0 0 4px;
  font-family: var(--m-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.m-page-sub {
  margin: 0 0 16px;
  color: var(--m-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ---------- Page hero banners (official mobile system) ----------
   Canon: Infra / Infirmerie / Entraînement / Marketing / Salaires
   Height 140px · full-bleed · bottom radius · fade to --m-bg1
   -------------------------------------------------------------- */

.m-page-hero {
  margin: 0 -14px 16px;
  overflow: hidden;
  border-radius: 0 0 18px 18px;
  max-height: 140px;
  position: relative;
}

.m-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, var(--m-bg1) 100%);
  pointer-events: none;
}

.m-page-hero-image {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: center 35%;
}

.m-card {
  background: var(--m-surface);
  border: 1px solid var(--m-border);
  border-radius: var(--m-radius);
  padding: 14px;
  margin-bottom: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.m-card-solid {
  background: var(--m-surface-solid);
}

.m-section-label {
  display: block;
  margin: 18px 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--m-muted);
}

.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.m-btn:active {
  transform: scale(0.98);
}

.m-btn-primary {
  background: linear-gradient(180deg, #4f8ff7 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.m-btn-success {
  background: linear-gradient(180deg, #34d399 0%, #16a34a 100%);
  color: #04140a;
}

.m-btn-danger {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
  color: #fff;
}

.m-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--m-border);
  color: var(--m-text);
}

.m-btn-block {
  width: 100%;
}

.m-btn-sm {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.85rem;
  border-radius: 10px;
}

/* ---------- Nav CTA (Match Résumé, Match Live résumé, …) ----------
   Identité visuelle partagée — layout (colonne / rangée / reveal)
   reste géré par chaque page. */
.m-cta {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  gap: 9px;
  border-radius: var(--m-radius-sm);
  border: 1px solid rgba(250, 204, 21, 0.34);
  background:
    linear-gradient(
      180deg,
      rgba(250, 204, 21, 0.1) 0%,
      rgba(22, 32, 51, 0.96) 42%,
      #121a2b 100%
    );
  color: #f1f5f9;
  text-decoration: none;
  font-family: var(--m-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(250, 204, 21, 0.08);
  transition:
    transform 0.15s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.m-cta::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  background: #facc15;
  -webkit-mask: var(--m-cta-icon) center / contain no-repeat;
  mask: var(--m-cta-icon) center / contain no-repeat;
  filter: drop-shadow(0 0 4px rgba(250, 204, 21, 0.35));
}

.m-cta--calendrier {
  --m-cta-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23facc15' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

.m-cta--classement {
  --m-cta-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23facc15' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E");
}

.m-cta--accueil {
  --m-cta-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23facc15' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1v-9.5z'/%3E%3C/svg%3E");
}

.m-cta--coupe {
  --m-cta-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23facc15' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4h8v5a4 4 0 0 1-8 0V4z'/%3E%3Cpath d='M6 6H4a2 2 0 0 0 2 4h0'/%3E%3Cpath d='M18 6h2a2 2 0 0 1-2 4h0'/%3E%3Cpath d='M12 13v3'/%3E%3Cpath d='M9 20h6'/%3E%3Cpath d='M10 17h4v3h-4z'/%3E%3C/svg%3E");
}

.m-cta--resume {
  --m-cta-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23facc15' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cline x1='10' y1='9' x2='8' y2='9'/%3E%3C/svg%3E");
}

.m-cta:hover {
  border-color: rgba(250, 204, 21, 0.5);
  color: #fffbeb;
  background:
    linear-gradient(
      180deg,
      rgba(250, 204, 21, 0.16) 0%,
      rgba(30, 41, 59, 0.98) 45%,
      #152033 100%
    );
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(250, 204, 21, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.m-cta:hover::before {
  filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.55));
}

.m-cta:active {
  transform: scale(0.98);
  border-color: rgba(250, 204, 21, 0.42);
  background:
    linear-gradient(
      180deg,
      rgba(250, 204, 21, 0.08) 0%,
      #0f172a 55%,
      #0b1220 100%
    );
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.m-chip-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.m-chip-row::-webkit-scrollbar {
  display: none;
}

.m-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--m-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--m-muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.m-chip.is-active,
.m-chip.active {
  color: #fff;
  background: var(--m-accent-soft);
  border-color: rgba(59, 130, 246, 0.45);
}

.m-select,
.m-input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--m-border);
  background: rgba(2, 6, 23, 0.35);
  color: var(--m-text);
  outline: none;
}

.m-select:focus,
.m-input:focus {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.m-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.m-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--m-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--m-border);
}

/* hidden must win over display:flex (RH / Transferts / Salaires filters) */
.m-row[hidden],
.player-row[hidden] {
  display: none !important;
}

.m-row-main {
  flex: 1;
  min-width: 0;
}

.m-row-title {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-row-sub {
  color: var(--m-muted);
  font-size: 0.78rem;
  margin-top: 2px;
}

.m-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.m-empty {
  text-align: center;
  padding: 28px 16px;
  color: var(--m-muted);
  border: 1px dashed var(--m-border);
  border-radius: var(--m-radius);
}

/* Display mode setting (shared) */
.m-display-mode {
  margin-bottom: 16px;
}

.m-display-mode-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.m-display-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--m-border);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.m-display-option:active {
  transform: scale(0.98);
}

.m-display-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.m-display-option.is-selected {
  border-color: rgba(59, 130, 246, 0.55);
  background: var(--m-accent-soft);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.m-display-option-ico {
  font-size: 1.35rem;
  line-height: 1;
}

.m-display-option-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.m-display-option-desc {
  font-size: 0.75rem;
  color: var(--m-muted);
  line-height: 1.35;
}

/* Modal */
.m-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.7);
}

.m-modal.hidden {
  display: none;
}

.m-modal-box {
  width: min(360px, 100%);
  padding: 20px;
  border-radius: 18px;
  background: #152033;
  border: 1px solid var(--m-border);
  box-shadow: var(--m-shadow);
  animation: m-fade-up 0.25s ease both;
}

.m-modal-text {
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.4;
  white-space: pre-line;
}

.m-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Popup confirmation partagé (RH / Transferts / Stade / Marketing) */
.popup-vendre-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(16px + var(--m-safe-bottom));
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
}

.popup-vendre-overlay[hidden] {
  display: none !important;
}

.popup-vendre-content {
  width: min(420px, 100%);
  padding: 20px;
  border-radius: 20px 20px 16px 16px;
  background: linear-gradient(180deg, #152033 0%, #0d1524 100%);
  border: 1px solid var(--m-border);
  box-shadow: var(--m-shadow);
  animation: m-fade-up 0.28s ease both;
}

.popup-vendre-content h3 {
  margin: 0 0 10px;
  font-family: var(--m-display);
  font-size: 1.15rem;
}

.popup-vendre-nom,
.popup-vendre-prix {
  margin: 0 0 8px;
  color: #cbd5e1;
  font-weight: 600;
}

.popup-vendre-alerte {
  margin: 0 0 18px;
  color: #fca5a5;
  font-size: 0.88rem;
}

.popup-vendre-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.popup-vendre-actions .m-btn {
  width: 100%;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .m-main,
  .m-sheet,
  .m-sheet-backdrop,
  .m-modal-box,
  .popup-vendre-content {
    animation: none !important;
  }
}

