/* ============================================================
   BEGAsport — Design System
   ============================================================ */
:root {
  --bg: #050a12;
  --bg-2: #071120;
  --surface: rgba(255, 255, 255, 0.042);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef4fb;
  --muted: #93a4b8;
  --muted-2: #6b7d92;
  --green: #16c98d;
  --green-dark: #0b9a6a;
  --cyan: #22d3ee;
  --yellow: #f5c518;
  --red: #ef4444;
  --purple: #8b5cf6;
  --orange: #f97316;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.75);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sidebar: 264px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1100px 600px at 12% -10%, rgba(22, 201, 141, 0.16), transparent 60%),
    radial-gradient(900px 520px at 92% 0%, rgba(34, 211, 238, 0.11), transparent 55%),
    radial-gradient(800px 500px at 50% 110%, rgba(139, 92, 246, 0.09), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(22, 201, 141, 0.32); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* ---------------------------- layout ---------------------------- */
#app { position: relative; z-index: 1; min-height: 100vh; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 22px; }
.container-wide { max-width: 1400px; }
.section { padding: 74px 0; }
.section-sm { padding: 42px 0; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.center { justify-content: center; }
.grow { flex: 1; min-width: 0; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.muted-2 { color: var(--muted-2); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.strong { font-weight: 700; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }

/* ---------------------------- typography ---------------------------- */
.display {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.98;
  font-size: clamp(38px, 5.4vw, 68px);
}
.h1 { font-size: clamp(28px, 3.4vw, 40px); }
.h2 { font-size: clamp(23px, 2.6vw, 31px); }
.h3 { font-size: 19px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--green); border-radius: 2px; }
.grad-text {
  background: linear-gradient(100deg, #16c98d 0%, #22d3ee 55%, #8b5cf6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 17px; color: var(--muted); max-width: 620px; }

/* ---------------------------- buttons ---------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 700; cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s;
  white-space: nowrap; background: transparent; color: var(--text);
  text-align: center;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, #1ad598, #0fae78);
  color: #04140e;
  box-shadow: 0 10px 26px -10px rgba(22, 201, 141, 0.85);
}
.btn-primary:hover { box-shadow: 0 16px 34px -10px rgba(22, 201, 141, 0.9); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.26); }
.btn-soft { background: rgba(22, 201, 141, 0.12); color: var(--green); border-color: rgba(22, 201, 141, 0.28); }
.btn-soft:hover { background: rgba(22, 201, 141, 0.2); }
.btn-danger { background: rgba(239, 68, 68, 0.14); color: #fca5a5; border-color: rgba(239, 68, 68, 0.3); }
.btn-danger:hover { background: rgba(239, 68, 68, 0.24); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn-xs { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.btn-lg { padding: 15px 28px; font-size: 15.5px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn-icon { padding: 9px; width: 38px; height: 38px; border-radius: 10px; }

/* ---------------------------- cards ---------------------------- */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.25s;
}
.card-hover:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.9); }
.card-flat { background: rgba(255, 255, 255, 0.028); }
.card-pad-sm { padding: 16px; }
.card-title { font-size: 15.5px; font-weight: 800; letter-spacing: -0.01em; }
.card-sub { font-size: 13px; color: var(--muted); }

.glass {
  background: rgba(8, 16, 27, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
}

.feature-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(22, 201, 141, 0.22), rgba(34, 211, 238, 0.1));
  border: 1px solid rgba(22, 201, 141, 0.3);
  color: #5fe3b1;
}
.feature-icon svg { width: 21px; height: 21px; }

/* ---------------------------- badges ---------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.07); color: var(--muted);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.badge-green { background: rgba(22, 201, 141, 0.14); color: #4ade9f; border-color: rgba(22, 201, 141, 0.3); }
.badge-yellow { background: rgba(245, 197, 24, 0.14); color: #f5c518; border-color: rgba(245, 197, 24, 0.3); }
.badge-red { background: rgba(239, 68, 68, 0.14); color: #f87171; border-color: rgba(239, 68, 68, 0.3); }
.badge-blue { background: rgba(34, 211, 238, 0.13); color: #67e8f9; border-color: rgba(34, 211, 238, 0.3); }
.badge-purple { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border-color: rgba(139, 92, 246, 0.3); }
.badge-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line); color: var(--muted);
  cursor: pointer; transition: all 0.18s;
}
.pill:hover { color: var(--text); border-color: var(--line-strong); }
.pill.active { background: rgba(22, 201, 141, 0.15); border-color: rgba(22, 201, 141, 0.45); color: #5fe3b1; }

/* ---------------------------- crest ---------------------------- */
.crest {
  --c: #16c98d;
  --c2: #0b1a2b;
  width: 44px; height: 44px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 13px;
  background: linear-gradient(150deg, var(--c), var(--c2));
  font-weight: 900; font-size: 15px; letter-spacing: -0.02em;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 16px -8px rgba(0, 0, 0, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}
.crest::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.28), transparent 55%);
}
.crest span { position: relative; z-index: 1; }
.crest-lg { width: 68px; height: 68px; border-radius: 18px; font-size: 22px; }
.crest-xl { width: 92px; height: 92px; border-radius: 24px; font-size: 30px; }
.crest-sm { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
.crest-xs { width: 26px; height: 26px; border-radius: 8px; font-size: 10px; }

/* Logo téléversé : remplace les initiales, avec un fond clair pour rester lisible */
.crest-logo {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.12);
  padding: 3px;
}
.crest-logo::after { display: none; }
.crest-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: inherit;
  display: block;
}
@media (prefers-color-scheme: dark) {
  .crest-logo { background: #fff; }
}

/* ---------------------------- navbar ---------------------------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(5, 10, 18, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 26px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; letter-spacing: -0.03em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(140deg, #1ad598, #0b9a6a 60%, #067a53);
  color: #03130d; font-weight: 900; font-size: 17px;
  box-shadow: 0 8px 20px -8px rgba(22, 201, 141, 0.9);
  transform: skewX(-6deg);
}
.brand-mark span { transform: skewX(6deg); }
.brand-name { font-weight: 900; }
.brand-name b { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-link {
  padding: 8px 13px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted);
  transition: color 0.16s, background 0.16s;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-link.active { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn.nav-burger { display: none; }

.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 11px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.035);
  color: var(--text); cursor: pointer; transition: all 0.18s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--line-strong); }
.icon-btn .count {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--green); color: #04140e;
  font-size: 10.5px; font-weight: 900; display: grid; place-items: center;
  border: 2px solid var(--bg);
}
.avatar {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(22, 201, 141, 0.9), rgba(34, 211, 238, 0.85));
  color: #04140e; font-weight: 900; font-size: 14px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 236px; padding: 8px;
  background: #0a1523; border: 1px solid var(--line-strong);
  border-radius: 14px; box-shadow: var(--shadow);
  z-index: 90; animation: pop 0.16s ease;
}
.dropdown-menu a, .dropdown-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 11px; border-radius: 9px; font-size: 13.5px; font-weight: 600;
  color: var(--muted); background: none; border: none; cursor: pointer; text-align: left;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.dropdown-head { padding: 8px 11px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dropdown-head .name { font-size: 13.5px; font-weight: 800; color: var(--text); }
.dropdown-head .mail { font-size: 11.5px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------- hero ---------------------------- */
.hero { position: relative; padding: 78px 0 66px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 54px; align-items: center; }
.hero h1 { margin: 18px 0 20px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 13px; color: var(--muted-2); }
.hero-note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(22, 201, 141, 0.16); }

.hero-visual { position: relative; }
.pitch-card {
  border-radius: 26px; padding: 22px; position: relative; overflow: hidden;
  background: linear-gradient(165deg, rgba(12, 30, 24, 0.95), rgba(6, 14, 24, 0.95));
  border: 1px solid rgba(22, 201, 141, 0.22);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 1);
}
.pitch-card::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(22, 201, 141, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 201, 141, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 78%);
}
.pitch-head { display: flex; align-items: center; justify-content: space-between; position: relative; }
.pitch-row { display: flex; align-items: center; gap: 12px; position: relative; }
.pitch-match {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 14px; border-radius: 14px; margin-top: 10px;
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line);
  transition: background 0.2s, transform 0.2s;
}
.pitch-match:hover { background: rgba(255, 255, 255, 0.085); transform: translateX(3px); }
.pitch-team { display: flex; align-items: center; gap: 9px; font-size: 12.8px; font-weight: 700; min-width: 0; }
.pitch-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pitch-vs { font-size: 11px; font-weight: 900; color: var(--green); letter-spacing: 0.08em; }

.float-chip {
  position: absolute; display: flex; align-items: center; gap: 9px;
  padding: 9px 14px; border-radius: 13px;
  background: rgba(10, 21, 35, 0.92); border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 1);
  font-size: 12px; font-weight: 700; z-index: 3;
  animation: floaty 6s ease-in-out infinite;
}
.chip-a { top: -18px; right: -14px; }
.chip-b { bottom: -20px; left: -18px; animation-delay: -3s; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(22, 201, 141, 0.18); }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-up { animation: fadeUp 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

/* ---------------------------- stats ---------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  padding: 20px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--line);
}
.stat-value { font-size: 30px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 600; }

/* ---------------------------- grids ---------------------------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 18px; }
.grid-auto-sm { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

/* ---------------------------- club card ---------------------------- */
.club-card { display: flex; flex-direction: column; gap: 14px; }
.club-card-head { display: flex; align-items: center; gap: 12px; }
.club-card-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.club-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 13px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted);
}
.compat {
  font-size: 11px; font-weight: 900; padding: 3px 8px; border-radius: 7px;
  background: rgba(22, 201, 141, 0.16); color: #5fe3b1; border: 1px solid rgba(22, 201, 141, 0.3);
}

/* ---------------------------- match ---------------------------- */
.match-card { display: flex; flex-direction: column; gap: 14px; }
.match-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.match-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.match-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.match-team .name { font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.match-score {
  font-size: 20px; font-weight: 900; letter-spacing: -0.02em;
  padding: 6px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line); white-space: nowrap;
}
.match-score.vs { font-size: 12px; color: var(--green); letter-spacing: 0.1em; }
.match-foot { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted-2); justify-content: center; }

/* ---------------------------- product ---------------------------- */
.product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.jersey {
  position: relative; height: 168px; display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 120%, rgba(255, 255, 255, 0.14), transparent 60%),
    linear-gradient(150deg, var(--c, #16c98d), var(--c2, #0b1a2b));
  overflow: hidden;
}
.jersey::after {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 14px);
}
.jersey svg { position: relative; z-index: 1; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45)); }
.jersey-badge { position: absolute; top: 10px; right: 10px; z-index: 2; }
.product-body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.price { font-size: 16.5px; font-weight: 900; letter-spacing: -0.02em; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }

/* ---------------------------- forms ---------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; padding: 11px 13px;
  background: rgba(255, 255, 255, 0.042);
  border: 1px solid var(--line-strong);
  border-radius: 11px; color: var(--text);
  font-size: 14px; font-family: inherit;
  transition: border-color 0.16s, background 0.16s, box-shadow 0.16s;
  outline: none;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(22, 201, 141, 0.65);
  box-shadow: 0 0 0 3px rgba(22, 201, 141, 0.14);
  background: rgba(255, 255, 255, 0.06);
}
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2393a4b8' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; cursor: pointer; }
.select option { background: #0a1523; color: var(--text); }
.textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--green); cursor: pointer; }
.switch { position: relative; width: 42px; height: 24px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); border: 1px solid var(--line-strong); cursor: pointer; transition: background 0.2s; flex: 0 0 auto; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.switch.on { background: var(--green); border-color: var(--green); }
.switch.on::after { transform: translateX(18px); }

.seg { display: inline-flex; padding: 4px; background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line); border-radius: 12px; gap: 3px; }
.seg button { padding: 8px 15px; border: none; background: none; color: var(--muted); font-size: 13px; font-weight: 700; border-radius: 9px; cursor: pointer; transition: all 0.16s; }
.seg button.active { background: rgba(255, 255, 255, 0.1); color: var(--text); }

/* ---------------------------- auth pages ---------------------------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 68px); }
.auth-side {
  padding: 54px 48px; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(165deg, rgba(10, 32, 25, 0.7), rgba(6, 14, 24, 0.5));
  border-right: 1px solid var(--line); position: relative; overflow: hidden;
}
.auth-side::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(22, 201, 141, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(22, 201, 141, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 30% 40%, #000, transparent 72%);
}
.auth-main { padding: 48px 24px; display: flex; align-items: center; justify-content: center; }
.auth-card { width: 100%; max-width: 460px; }
.role-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-opt {
  padding: 14px; border-radius: 13px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03); cursor: pointer; transition: all 0.18s; text-align: left;
}
.role-opt:hover { border-color: rgba(22, 201, 141, 0.4); }
.role-opt.active { border-color: var(--green); background: rgba(22, 201, 141, 0.11); box-shadow: 0 0 0 3px rgba(22, 201, 141, 0.1); }
.role-opt .rt { font-size: 13.5px; font-weight: 800; }
.role-opt .rs { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.demo-box { padding: 13px; border-radius: 12px; background: rgba(34, 211, 238, 0.07); border: 1px dashed rgba(34, 211, 238, 0.3); font-size: 12px; color: #a5f3fc; }
.demo-box code { background: rgba(0, 0, 0, 0.35); padding: 1px 5px; border-radius: 5px; font-size: 11.5px; color: #e0fbff; }

/* ---------------------------- app shell ---------------------------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: calc(100vh - 68px); }
.sidebar {
  border-right: 1px solid var(--line); padding: 22px 14px;
  position: sticky; top: 68px; height: calc(100vh - 68px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px;
  background: rgba(6, 13, 22, 0.5);
}
.side-label { font-size: 10.5px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted-2); padding: 16px 12px 6px; }
.side-link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  transition: all 0.16s; position: relative;
}
.side-link:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.side-link.active { background: rgba(22, 201, 141, 0.13); color: #5fe3b1; font-weight: 700; }
.side-link.active::before {
  content: ''; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--green);
}
.side-link .badge { margin-left: auto; }
.side-link svg { opacity: 0.85; flex: 0 0 auto; }
.side-card { margin-top: auto; padding: 15px; border-radius: 14px; background: linear-gradient(160deg, rgba(22, 201, 141, 0.14), rgba(34, 211, 238, 0.06)); border: 1px solid rgba(22, 201, 141, 0.22); }

.main { padding: 26px 28px 60px; min-width: 0; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.page-title { font-size: 25px; font-weight: 900; letter-spacing: -0.03em; }
.page-sub { font-size: 13.5px; color: var(--muted); margin-top: 3px; }

/* ---------------------------- tables ---------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; background: rgba(255, 255, 255, 0.022); }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 620px; }
thead th {
  text-align: left; padding: 12px 15px; font-size: 11px; font-weight: 800;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted-2);
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.028);
  white-space: nowrap;
}
tbody td { padding: 13px 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.14s; }
tbody tr:hover { background: rgba(255, 255, 255, 0.028); }
.td-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------------------------- tabs ---------------------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tab {
  padding: 11px 15px; border: none; background: none; color: var(--muted);
  font-size: 13.5px; font-weight: 700; cursor: pointer; position: relative; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.16s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--green); border-bottom-color: var(--green); }
.tab .n { font-size: 11px; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.09); margin-left: 6px; }

/* ---------------------------- empty / loading ---------------------------- */
.empty {
  padding: 46px 24px; text-align: center; border-radius: 16px;
  border: 1px dashed var(--line-strong); background: rgba(255, 255, 255, 0.015);
}
.empty-icon { font-size: 32px; margin-bottom: 10px; opacity: 0.75; }
.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.15); border-top-color: var(--green);
  animation: spin 0.7s linear infinite;
}
.loading-screen { display: grid; place-items: center; padding: 90px 20px; gap: 14px; }
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.1), rgba(255,255,255,0.05)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------------------- toast ---------------------------- */
#toasts { position: fixed; bottom: 22px; right: 22px; z-index: 300; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 16px; border-radius: 13px; min-width: 260px; max-width: 380px;
  background: #0b1725; border: 1px solid var(--line-strong);
  box-shadow: 0 22px 48px -18px rgba(0, 0, 0, 1);
  font-size: 13.5px; font-weight: 600; animation: toastIn 0.28s cubic-bezier(0.2, 0.9, 0.2, 1) both;
  pointer-events: auto;
}
.toast.out { animation: toastOut 0.24s ease forwards; }
.toast-icon { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; flex: 0 0 auto; font-size: 12px; font-weight: 900; }
.toast.success .toast-icon { background: rgba(22, 201, 141, 0.2); color: #4ade9f; }
.toast.error .toast-icon { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.toast.info .toast-icon { background: rgba(34, 211, 238, 0.2); color: #67e8f9; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(0.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ---------------------------- modal ---------------------------- */
.modal-back {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  padding: 20px; background: rgba(3, 7, 13, 0.78);
  backdrop-filter: blur(6px); animation: fadeUp 0.2s ease;
  overflow-y: auto;
}
.modal {
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  background: #081321; border: 1px solid var(--line-strong);
  border-radius: 20px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 1);
  animation: pop 0.24s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
.modal-lg { max-width: 720px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 22px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.modal-close { background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 8px; display: grid; place-items: center; }
.modal-close:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }

/* ---------------------------- drawer (cart) ---------------------------- */
.drawer-back { position: fixed; inset: 0; z-index: 210; background: rgba(3, 7, 13, 0.7); backdrop-filter: blur(4px); animation: fadeUp 0.18s ease; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 92vw; z-index: 211;
  background: #071220; border-left: 1px solid var(--line-strong);
  display: flex; flex-direction: column;
  animation: slideIn 0.28s cubic-bezier(0.2, 0.9, 0.2, 1) both;
  box-shadow: -30px 0 80px -30px rgba(0, 0, 0, 1);
}
@keyframes slideIn { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-foot { padding: 18px 20px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 52px; height: 58px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; background: linear-gradient(150deg, var(--c), var(--c2)); border: 1px solid rgba(255, 255, 255, 0.16); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; }
.qty button { width: 26px; height: 26px; background: rgba(255, 255, 255, 0.05); border: none; color: var(--text); cursor: pointer; font-size: 14px; font-weight: 700; }
.qty button:hover { background: rgba(255, 255, 255, 0.12); }
.qty span { min-width: 26px; text-align: center; font-size: 12.5px; font-weight: 700; }

/* ---------------------------- misc ---------------------------- */
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 13px; }
.kv + .kv { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 700; }
.day-pill { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: rgba(22, 201, 141, 0.15); color: #5fe3b1; border: 1px solid rgba(22, 201, 141, 0.3); }
.notif-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-top: 7px; flex: 0 0 auto; }
.notif-item.read .notif-dot { background: var(--muted-2); }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.hover-lift { transition: all 0.18s; }
.hover-lift:hover { transform: translateY(-2px); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.055); }
.chart { display: flex; align-items: flex-end; gap: 10px; height: 150px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.chart-bar { width: 100%; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #1ad598, rgba(22, 201, 141, 0.25)); min-height: 4px; transition: height 0.5s cubic-bezier(0.2, 0.9, 0.2, 1); }
.chart-bar.alt { background: linear-gradient(180deg, #22d3ee, rgba(34, 211, 238, 0.2)); }
.chart-label { font-size: 10.5px; color: var(--muted-2); font-weight: 700; text-transform: uppercase; }
.bar-line { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.09); overflow: hidden; }
.bar-line i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #16c98d, #22d3ee); }

.footer { border-top: 1px solid var(--line); padding: 46px 0 30px; margin-top: 40px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); margin-bottom: 13px; font-weight: 800; }
.footer li a { font-size: 13.2px; color: var(--muted); display: block; padding: 4px 0; }
.footer li a:hover { color: var(--green); }

/* mobile : compacter la barre de navigation */
@media (max-width: 720px) {
  .nav-inner { gap: 10px; height: 62px; }
  .nav-actions { gap: 6px; }
  .nav-actions > .nav-link { display: none; }
  .nav-actions .btn-sm { padding: 8px 11px; font-size: 12px; border-radius: 9px; }
  .nav-actions .icon-btn { width: 36px; height: 36px; border-radius: 10px; }
  .avatar { width: 34px; height: 34px; border-radius: 10px; font-size: 12.5px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; font-size: 15px; border-radius: 9px; }
  .brand-name { white-space: nowrap; }
  .auth-main { padding: 26px 16px 40px; }
  .auth-card { max-width: 100%; }
}
@media (max-width: 390px) {
  .nav-actions .btn-primary.btn-sm { padding: 7px 9px; font-size: 11px; }
  .brand-name { font-size: 15.5px; }
}

.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted-2); }

.promo {
  border-radius: 22px; padding: 40px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, rgba(22, 201, 141, 0.16), rgba(34, 211, 238, 0.08) 55%, rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(22, 201, 141, 0.26);
}
.promo::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 201, 141, 0.3), transparent 65%);
}
.empty-cart { text-align: center; padding: 50px 20px; color: var(--muted); }

/* ---------------------------- responsive ---------------------------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 520px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .icon-btn.nav-burger { display: grid; }
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 68px; bottom: 0; width: 264px; z-index: 120;
    background: #061019; transform: translateX(-100%); transition: transform 0.26s cubic-bezier(0.2,0.9,0.2,1);
    border-right: 1px solid var(--line-strong);
  }
  .sidebar.open { transform: none; box-shadow: 30px 0 70px -30px #000; }
  .main { padding: 20px 16px 90px; }
  .mobile-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    display: flex; justify-content: space-around; align-items: center;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    background: rgba(6, 14, 24, 0.96); backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
  }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 9.5px; font-weight: 700; color: var(--muted-2); padding: 5px 10px; border-radius: 10px; }
  .mobile-nav a.active { color: var(--green); }
  .page-title { font-size: 21px; }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 46px 0; }
  .hero { padding: 44px 0 40px; }
  .container { padding: 0 16px; }
  .promo { padding: 26px 22px; }
  .stat-value { font-size: 24px; }
  .modal-foot { flex-direction: column-reverse; }
  .modal-foot .btn { width: 100%; }
  .float-chip { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  #toasts { left: 16px; right: 16px; bottom: 78px; }
  .toast { max-width: none; }
  .match-score { font-size: 17px; }
}
@media (min-width: 901px) { .mobile-nav { display: none; } }

/* ============================================================
   PWA : bannières, mode installé, zones sûres (encoche)
   ============================================================ */
/* conteneur fixe : garantit l'ancrage même en émulation / clavier ouvert */
#pwa-banners {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 260;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 0 12px calc(18px + env(safe-area-inset-bottom));
  pointer-events: none;
}
#pwa-banners > * { pointer-events: auto; }

.install-banner {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 16px;
  width: min(480px, calc(100vw - 24px));
  background: rgba(9, 20, 33, 0.96);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 1);
  animation: bannerIn 0.34s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
.install-banner.update { border-color: rgba(22, 201, 141, 0.45); }
.install-icon { width: 40px; height: 40px; border-radius: 11px; flex: 0 0 auto; }
.install-text { flex: 1; min-width: 0; }
.install-title { font-size: 13px; font-weight: 800; letter-spacing: -0.01em; }
.install-sub { font-size: 11.5px; color: var(--muted); line-height: 1.35; margin-top: 1px; }
.install-sub b { color: var(--text); }
@keyframes bannerIn { from { opacity: 0; transform: translateY(16px); } }

.offline-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 270;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: calc(7px + env(safe-area-inset-top)) 14px 7px;
  background: rgba(245, 158, 11, 0.16);
  border-bottom: 1px solid rgba(245, 158, 11, 0.35);
  color: #fcd34d; font-size: 12px; font-weight: 600;
  backdrop-filter: blur(10px);
}
.offline-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.22);
  animation: pulseOffline 1.8s ease-in-out infinite;
}
@keyframes pulseOffline { 50% { opacity: 0.35; } }

/* sur mobile, les bannières passent au-dessus de la barre de navigation basse */
@media (max-width: 900px) {
  #pwa-banners { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
}

/* ---- Mode application installée : plein écran, zones sûres ---- */
@media (display-mode: standalone), (display-mode: fullscreen) {
  body { overscroll-behavior-y: none; }
  .nav { padding-top: env(safe-area-inset-top); }
  .nav-inner { height: calc(68px - 0px); }
  .offline-banner { position: fixed; }
  .sidebar { top: calc(68px + env(safe-area-inset-top)); height: calc(100vh - 68px - env(safe-area-inset-top)); }
}
@media (display-mode: standalone) and (max-width: 900px) {
  .nav-inner { height: 60px; }
  .sidebar { top: calc(60px + env(safe-area-inset-top)); height: calc(100vh - 60px - env(safe-area-inset-top)); }
  .mobile-nav { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .main { padding-bottom: 96px; }
}

/* désactive la sélection "app-like" et le surlignage au tap */
@media (display-mode: standalone) {
  * { -webkit-tap-highlight-color: transparent; }
  body { -webkit-user-select: none; user-select: none; }
  input, textarea, select, .select, .input { -webkit-user-select: text; user-select: text; }
}

/* bannière d'installation : version compacte sur petits écrans */
@media (max-width: 480px) {
  .install-banner { gap: 9px; padding: 10px 11px; width: 100%; }
  .install-icon { width: 32px; height: 32px; border-radius: 9px; }
  .install-banner .btn { padding: 7px 9px; }
  .install-title { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .install-sub { font-size: 10.8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .install-banner .btn { padding: 7px 10px; font-size: 11.5px; flex: 0 0 auto; }
}

/* fermeture compacte de la bannière d'installation */
.install-x {
  display: none; place-items: center; flex: 0 0 auto;
  width: 30px; height: 30px; border-radius: 9px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  color: var(--muted); cursor: pointer; padding: 0;
}
.install-x:hover { background: rgba(255, 255, 255, 0.12); color: var(--text); }
@media (max-width: 480px) {
  .install-banner .dismiss-wide { display: none; }
  .install-banner .install-x { display: grid; }
  .install-title { font-size: 13px; }
  .install-sub { font-size: 11px; }
}

/* ============================================================
   Robustesse de mise en page : empêche tout débordement
   horizontal sur petits écrans (enfants de grille/flex).
   ============================================================ */
.grid-2 > *, .grid-3 > *, .grid-4 > *,
.grid-auto > *, .grid-auto-sm > *, .stat-grid > *,
.stack > *, .shell > *, .row > * { min-width: 0; }

.main { min-width: 0; overflow-x: clip; }
html, body { max-width: 100%; overflow-x: hidden; }

/* les longues chaînes (emails, noms de club) ne cassent plus la mise en page */
.card-title, .match-team .name, .stat-label, .dropdown-head .mail {
  overflow-wrap: anywhere;
}

/* ============================================================
   Notifications : avis, centre, badges
   ============================================================ */
.notice {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 12px; font-size: 12.5px; line-height: 1.55;
}
.notice-warn {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}
.notice-info {
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.26);
  color: #a5f3fc;
}
.notice b { color: inherit; }

.notif-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.notif-row:last-child { border-bottom: none; }
.notif-row.unread { background: linear-gradient(90deg, rgba(22, 201, 141, 0.06), transparent 60%); }
.notif-ico {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 15px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
}
.notif-ico.match { background: rgba(22, 201, 141, 0.16); border-color: rgba(22, 201, 141, 0.32); }
.notif-ico.proposal { background: rgba(139, 92, 246, 0.16); border-color: rgba(139, 92, 246, 0.32); }
.notif-ico.order { background: rgba(34, 211, 238, 0.14); border-color: rgba(34, 211, 238, 0.3); }
.notif-ico.shop { background: rgba(245, 197, 24, 0.14); border-color: rgba(245, 197, 24, 0.3); }
.notif-ico.admin { background: rgba(239, 68, 68, 0.14); border-color: rgba(239, 68, 68, 0.3); }
.notif-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }

/* ---------------------------- logo du club ---------------------------- */
.logo-upload { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.logo-preview { flex: 0 0 auto; }
.text-danger { color: #f87171; }
