/* =====================================================
   RefereeNow PublicWeb — Global CSS
   ===================================================== */

:root {
  /* Vert foncé — couleur d'action, utilisée avec parcimonie */
  --primary: #166534;
  --primary-hover: #14532D;
  --primary-dark: #14532D;
  --primary-darker: #0F3D22;
  --primary-tint: #F0F5F1;
  --primary-border: #D3E3D7;

  /* Neutres — la vraie base de l'interface */
  --ink: #111827;
  --surface: #F8FAFC;
  --surface-2: #F1F5F9;

  /* Couleurs fonctionnelles UNIQUEMENT (statuts, jamais identité) */
  --success: #166534;
  --success-tint: #F0F5F1;
  --danger: #DC2626;
  --danger-tint: #FEF2F2;
  --warning: #B45309;
  --warning-tint: #FFFBEB;
  --info: #1D4ED8;
  --info-tint: #EFF4FF;

  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --white: #FFFFFF;

  --text-primary: #111827;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;

  --border: #E5E7EB;
  --border-dark: #D1D5DB;

  /* Ombres neutres, quasi imperceptibles */
  --shadow-sm: 0 1px 2px rgba(17,24,39,.04);
  --shadow-md: 0 1px 3px rgba(17,24,39,.06), 0 1px 2px rgba(17,24,39,.04);
  --shadow-lg: 0 4px 12px rgba(17,24,39,.08);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  --navbar-height: 64px;
}

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

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.main-content {
  min-height: calc(100vh - var(--navbar-height));
}

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
  line-height: 1.3;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-outline { background: #fff; border-color: var(--border-dark); color: var(--text-primary); }
.btn-outline:hover:not(:disabled) { background: var(--surface); border-color: var(--text-muted); }
.btn-accent { background: var(--primary); color: #fff; }
.btn-accent:hover:not(:disabled) { background: var(--primary-hover); }
.btn-lime { background: var(--primary); color: #fff; }
.btn-lime:hover:not(:disabled) { background: var(--primary-hover); }
.btn-danger { background: #fff; color: var(--danger); border-color: var(--border-dark); }
.btn-danger:hover:not(:disabled) { background: var(--danger-tint); border-color: var(--danger); }
.btn-secondary { background: var(--surface); color: var(--text-primary); border-color: var(--border); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-2); }
.btn-white { background: #fff; color: var(--primary); border-color: var(--border); }
.btn-white:hover:not(:disabled) { background: var(--surface); }
.btn-lg { padding: .7rem 1.5rem; font-size: .95rem; }
.btn-sm { padding: .35rem .75rem; font-size: .82rem; }
.btn-full { width: 100%; }

/* ── Cards ─────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: none;
}

/* ── Forms ─────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: .4rem;
}
.form-control {
  display: block;
  width: 100%;
  padding: .7rem .95rem;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: .92rem;
  background: var(--white);
  color: var(--text-primary);
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,157,88,.14); }
.form-range { width: 100%; cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

/* ── Badges ─────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-sport {
  background: var(--surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.badge-success { background: var(--success-tint); color: var(--primary-dark); }
.badge-warning { background: var(--warning-tint); color: var(--warning); }
.badge-danger { background: var(--danger-tint); color: var(--danger); }
.badge-info { background: var(--info-tint); color: var(--info); }
.badge-secondary { background: var(--surface-2); color: var(--text-secondary); }

/* ── Avatar ─────────────────────────────────────────── */
.avatar { border-radius: 50%; object-fit: cover; }
.avatar-sm { width: 36px; height: 36px; }
.avatar-md { width: 56px; height: 56px; }
.avatar-lg { width: 96px; height: 96px; }
.avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  border-radius: 50%;
}

/* ── Alerts ─────────────────────────────────────────── */
.alert { padding: .75rem 1rem; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom:1rem; }
.alert-danger { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }
.alert-info { background: var(--info-tint); color: var(--info); border: 1px solid #BFD3FF; }

/* ── Loading ─────────────────────────────────────────── */
.loading-overlay { display: flex; align-items: center; justify-content: center; padding: 4rem 0; }
.loading-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Rating stars ─────────────────────────────────── */
.rating-stars { display: inline-flex; align-items: center; gap: .15rem; }
.rating-value { margin-left: .3rem; font-size: .8rem; color: var(--text-secondary); font-weight: 600; }

/* ── Empty state ─────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 1rem; }
.empty-state-icon { color: var(--text-muted); margin-bottom: 1rem; display: flex; justify-content: center; }
.empty-state-title { font-size: 1.1rem; font-weight: 600; margin-bottom: .5rem; }
.empty-state-message { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* ── Pagination ──────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: 1rem; justify-content: center; }

/* ── Navbar ──────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--navbar-height);
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  display: flex; align-items: center; height: 100%; gap: 1.5rem;
}
.navbar-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.navbar-logo-mark {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md); font-weight: 700; font-size: .85rem;
  box-shadow: none;
}
.navbar-logo-text { font-weight: 700; font-size: 1.1rem; color: var(--text-primary); }
.navbar-logo-img { height: 40px; max-width: 180px; object-fit: contain; display: block; }
.navbar-links {
  display: flex; align-items: center; gap: 1rem; margin-left: auto;
}
.nav-link { text-decoration: none; color: var(--text-primary); font-size: .9rem; font-weight: 500; }
.nav-link:hover { color: var(--primary); }
.nav-urgency { display: flex; align-items: center; gap: .3rem; color: var(--danger); }
.nav-avatar-menu { position: relative; }
.nav-avatar-btn {
  display: flex; align-items: center; gap: .5rem;
  background: none; border: none; cursor: pointer; font-size: .9rem; font-weight: 500;
  color: var(--text-primary); padding: .35rem .6rem;
  border-radius: var(--radius-sm);
}
.nav-avatar-btn:hover { background: var(--bg); }
.nav-fullname { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  min-width: 200px; z-index: 200;
  overflow: hidden;
}
.nav-dropdown-item {
  display: block; width: 100%; text-align: left;
  padding: .65rem 1rem; font-size: .875rem; color: var(--text-primary);
  text-decoration: none; background: none; border: none; cursor: pointer;
}
.nav-dropdown-item:hover { background: var(--bg); }
.nav-dropdown-logout { color: var(--danger); }
.nav-dropdown-divider { height: 1px; background: var(--border); }
.nav-lang { display: flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--text-muted); }
.lang-btn { text-decoration: none; color: var(--text-muted); font-weight: 500; }
.lang-btn.active { color: var(--primary); font-weight: 700; }
.navbar-burger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: .25rem; }
.navbar-burger span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; }
@media (max-width: 768px) {
  /* La navigation passe dans la bottom bar. En haut, on ne garde que
     le logo (à gauche) et la cloche de notifications (à droite). */
  .navbar-burger { display: none; }
  .navbar-links {
    margin-left: auto;
    gap: .5rem;
  }
  /* Tout est masqué dans la navbar top sauf la cloche de notifications. */
  .navbar-links > *:not(.nav-bell-wrapper) { display: none; }
  .nav-bell-wrapper { display: block; }

  .notif-dropdown {
    position: fixed;
    top: var(--navbar-height);
    right: 8px;
    left: auto;
    width: calc(100vw - 16px);
    max-width: 360px;
    margin-top: .25rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
  }
}

/* ── Bottom navigation (mobile) ──────────────────── */
.bottomnav { display: none; }

@media (max-width: 768px) {
  .bottomnav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 64px;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(16,33,28,.08);
    z-index: 150;
    padding-bottom: env(safe-area-inset-bottom, 0);
    justify-content: space-around;
    align-items: center;
  }
  .bottomnav-item {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px;
    background: none; border: none; cursor: pointer;
    color: var(--text-muted);
    text-decoration: none;
    font-size: .68rem; font-weight: 600;
    padding: 0;
    transition: color .15s;
  }
  .bottomnav-item.active { color: var(--primary); }
  .bottomnav-item span { line-height: 1; }

  /* Bouton central Accueil, en relief au-dessus de la barre */
  .bottomnav-center { position: relative; }
  .bottomnav-center-btn {
    position: relative;
    top: -18px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: none;
    border: 4px solid var(--white);
    margin-bottom: -14px;
    transition: transform .15s;
  }
  .bottomnav-center span { color: var(--text-muted); }
  .bottomnav-center.active span { color: var(--primary); }

  .bottomnav-avatar {
    width: 26px; height: 26px; border-radius: 50%;
    object-fit: cover; border: 1.5px solid var(--border);
  }
  .bottomnav-avatar-initials {
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-tint); color: var(--primary-dark);
    font-size: .7rem; font-weight: 700; border: none;
  }

  /* On réserve de l'espace pour ne pas cacher le contenu / le footer */
  .main-content { padding-bottom: 64px; }
  .footer { margin-bottom: 64px; }
}

/* ── Profile sheet (bottom) ──────────────────────── */
.sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(16,33,28,.45);
  z-index: 160;
  animation: sheet-fade .2s ease;
}
.profile-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 170;
  padding: .75rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0));
  box-shadow: 0 -12px 40px rgba(16,33,28,.25);
  animation: sheet-up .28s cubic-bezier(.16,1,.3,1);
  max-height: 82vh; overflow-y: auto;
}
.sheet-handle {
  width: 40px; height: 4px; border-radius: 999px;
  background: var(--border-dark);
  margin: 0 auto 1rem;
}
.sheet-header {
  display: flex; align-items: center; gap: .85rem;
  padding-bottom: 1rem; margin-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.sheet-name { font-weight: 800; font-size: 1.05rem; }
.sheet-role {
  display: inline-block; margin-top: .15rem;
  font-size: .72rem; font-weight: 600;
  color: var(--primary-dark); background: var(--primary-tint);
  padding: .1rem .55rem; border-radius: 999px;
}
.sheet-links { display: flex; flex-direction: column; padding: .5rem 0; }
.sheet-link {
  display: flex; align-items: center; gap: .85rem;
  padding: .85rem .5rem;
  color: var(--text-primary); text-decoration: none;
  font-size: .95rem; font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.sheet-link:active { background: var(--bg); }
.sheet-link-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--text-secondary); }
.sheet-link-highlight .sheet-link-icon { color: var(--primary); }
.sheet-link-highlight { color: var(--primary-dark); font-weight: 700; }
.sheet-logout {
  width: 100%; margin-top: .75rem;
  padding: .85rem; border-radius: var(--radius-sm);
  background: #FEECEC; color: var(--danger-dark);
  border: none; font-weight: 700; font-size: .95rem; cursor: pointer;
}
.sheet-guest { display: flex; flex-direction: column; gap: .75rem; padding: .5rem 0 1rem; }
.sheet-guest-text { text-align: center; color: var(--text-secondary); margin-bottom: .5rem; }

@keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes sheet-fade { from { opacity: 0; } to { opacity: 1; } }

/* ── Footer ──────────────────────────────────────── */
.footer { background: var(--primary-dark); color: rgba(255,255,255,.8); padding: 2.5rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.footer-logo { font-size: 1.2rem; font-weight: 800; color: #fff; }
.footer-tagline { font-size: .85rem; margin-top: .25rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-link { color: rgba(255,255,255,.7); text-decoration: none; font-size: .875rem; }
.footer-link:hover { color: #fff; }
.footer-copy { font-size: .8rem; color: rgba(255,255,255,.5); }

/* ── Auth layout ─────────────────────────────────── */
.auth-layout { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.auth-header { display: flex; justify-content: center; padding: 1.5rem; }
.auth-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.auth-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.auth-footer { text-align: center; padding: 1rem; font-size: .8rem; color: var(--text-muted); }
.auth-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: 2rem; width: 100%; max-width: 440px;
}
.auth-card-wide { max-width: 660px; }
.auth-title { font-size: 1.5rem; font-weight: 700; margin-bottom: .4rem; }
.auth-subtitle { color: var(--text-secondary); font-size: .9rem; margin-bottom: 1.5rem; }
.auth-links { display: flex; justify-content: flex-end; margin: .75rem 0; }
.auth-link { color: var(--primary); text-decoration: none; font-size: .875rem; }
.auth-link:hover { text-decoration: underline; }
.auth-separator { text-align: center; margin: 1rem 0; color: var(--text-muted); font-size: .85rem;
  display: flex; align-items: center; gap: .75rem; }
.auth-separator::before, .auth-separator::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-register-prompt { font-size: .875rem; color: var(--text-secondary); text-align: center; }
.auth-back { display: inline-block; font-size: .85rem; color: var(--text-muted); text-decoration: none; margin-bottom: 1rem; }
.auth-back:hover { color: var(--primary); }
.font-medium { font-weight: 600; }

/* ── Register choice ─────────────────────────────── */
.register-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .register-choice-grid { grid-template-columns: 1fr; } }
.register-choice-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1.75rem 1rem; border: 2px solid var(--border);
  border-radius: var(--radius-md); background: var(--white);
  cursor: pointer; transition: border-color .2s, box-shadow .2s;
  gap: .75rem;
}
.register-choice-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.register-choice-icon { color: var(--primary); }
.register-choice-card h3 { font-size: 1rem; font-weight: 700; }
.register-choice-card p { font-size: .85rem; color: var(--text-secondary); }

/* ── Stepper ─────────────────────────────────────── */
.stepper { display: flex; align-items: center; margin-bottom: 1.5rem; }
.step { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--text-muted); }
.step.active { color: var(--primary); font-weight: 600; }
.step.done { color: var(--success); }
.step-num {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid currentColor; font-size: .8rem; font-weight: 700;
}
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 .75rem; }

/* ── Sports check grid ───────────────────────────── */
.sports-check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.sport-check {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .75rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; font-size: .875rem;
  transition: border-color .15s, background .15s;
}
.sport-check input { cursor: pointer; }
.sport-check.checked { border-color: var(--primary); background: var(--primary-tint); color: var(--primary); }

/* ── Profile layout ──────────────────────────────── */
.profile-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .profile-layout { grid-template-columns: 1fr; } }
.profile-header-card { display: flex; gap: 1.5rem; padding: 1.5rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 1rem; }
.profile-avatar { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.profile-avatar.avatar-initials { width: 90px; height: 90px; font-size: 1.5rem; flex-shrink: 0; }
.profile-name { font-size: 1.4rem; font-weight: 700; margin-bottom: .25rem; }
.profile-city { display: flex; align-items: center; gap: .3rem; color: var(--text-secondary); font-size: .9rem; margin-bottom: .5rem; }
.profile-sports { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.profile-section { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.25rem; margin-bottom: 1rem; }
.profile-section-title { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; }
.cert-item { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: .5rem; }
.cert-item:last-child { border-bottom: none; }
.cert-issuer { color: var(--text-secondary); font-size: .85rem; }
.review-item { padding: .75rem 0; border-bottom: 1px solid var(--border); }
.review-item:last-child { border-bottom: none; }
.review-header { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .35rem; }
.review-comment { color: var(--text-secondary); font-size: .875rem; }
.profile-sidebar { position: sticky; top: calc(var(--navbar-height) + 1rem); }
.booking-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.5rem; box-shadow: var(--shadow-md); }
.booking-card-price { font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: .5rem; }
.booking-card-stats { display: flex; gap: 1rem; color: var(--text-secondary); font-size: .875rem; margin-bottom: 1rem; }
.booking-price-recap { background: var(--bg); border-radius: var(--radius-sm); padding: .75rem; margin: .75rem 0; font-size: .9rem; }
.booking-price-box { background: var(--bg); border-radius: var(--radius-sm); padding: 1rem; margin: 1rem 0; }
.price-line { display: flex; justify-content: space-between; padding: .3rem 0; font-size: .9rem; }
.price-total { font-weight: 700; font-size: 1rem; border-top: 1px solid var(--border); padding-top: .5rem; margin-top: .25rem; }

/* ── Dashboard ───────────────────────────────────── */
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.kpi-grid { display: grid; gap: 1rem; }
.kpi-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) { .kpi-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .kpi-grid-3 { grid-template-columns: 1fr; } }
.kpi-card { background: var(--white); border-radius: var(--radius-md); padding: 1.25rem 1.5rem; border-left: 4px solid transparent; }
.kpi-card-blue { border-left-color: var(--primary); }
.kpi-card-orange { border-left-color: var(--primary); }
.kpi-card-green { border-left-color: var(--success); }
.kpi-card-red { border-left-color: var(--danger); }
.kpi-value { font-size: 2rem; font-weight: 800; line-height: 1; }
.kpi-label { font-size: .825rem; color: var(--text-secondary); margin-top: .25rem; }
.booking-list-item { display: flex; justify-content: space-between; align-items: center; padding: 1rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: .5rem; flex-wrap: wrap; gap: .75rem; }
.booking-payment-required { border-left: 3px solid var(--warning); background: var(--warning-tint); }
.dashboard-quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
@media (max-width: 640px) { .dashboard-quick-links { grid-template-columns: 1fr; } }
.quick-link-card { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); text-decoration: none; color: var(--text-primary); font-weight: 500; transition: box-shadow .15s, border-color .15s; }
.quick-link-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }

/* ── Availability ────────────────────────────────── */
.availability-slot-item { display: flex; justify-content: space-between; align-items: center; padding: .85rem 1rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: .5rem; }

/* ── Detail page ─────────────────────────────────── */
.detail-row { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.detail-row:last-child { border-bottom: none; }
.detail-row span { color: var(--text-secondary); }

/* ── Confirmation ────────────────────────────────── */
.confirmation-icon { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; }
.confirmation-icon-success { background: #D1FAE5; color: var(--success); }
.confirmation-icon-cancel { background: #FEE2E2; color: var(--danger); }

/* ── Urgency ─────────────────────────────────────── */
.urgency-searching { text-align: center; padding: 3rem 1rem; }
.urgency-spinner { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.urgency-timer { font-size: 1.25rem; font-weight: 700; color: var(--danger); margin: 1rem 0; }

/* ── Certification entries ───────────────────────── */
.cert-entry-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.25rem; margin-bottom: 1rem; }
.cert-entry-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-weight: 600; color: var(--text-primary); }
.btn-icon-danger { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 1.25rem; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 4px; transition: background .15s; }
.btn-icon-danger:hover { background: rgba(239,68,68,0.1); }

/* ── Blazor error ────────────────────────────────── */
#blazor-error-ui { display: none; }
.valid.modified:not([type=checkbox]) { outline: 1px solid var(--success); }
.invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(239,68,68,.12) !important; }
.validation-message { color: var(--danger); font-size: .8rem; margin-top: .25rem; }
.field-error { display: block; color: var(--danger); font-size: .78rem; margin-top: .3rem; }

/* ===== Referee space additions ===== */
.alert-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.btn-secondary { background: #f3f4f6; border: 1px solid #d1d5db; color: #374151; }
.btn-secondary:hover:not(:disabled) { background: #e5e7eb; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 1.5rem auto 1rem; }
.page-title { margin: 0; font-size: 1.4rem; font-weight: 700; }
.text-danger { color: #dc2626; }

/* ===== Notification bell ===== */
.nav-bell-wrapper { position: relative; }
.nav-bell { position: relative; background: none; border: none; cursor: pointer; padding: 8px; color: inherit; display: flex; align-items: center; border-radius: 8px; }
.nav-bell:hover { background: rgba(0,0,0,.06); }
.nav-bell-badge { position: absolute; top: 2px; right: 2px; background: #dc2626; color: #fff; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.notif-dropdown { position: absolute; right: 0; top: calc(100% + 8px); width: 320px; max-width: 90vw; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.12); z-index: 1100; overflow: hidden; }
.notif-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #f0f0f0; font-weight: 600; }
.notif-markall { background: none; border: none; color: var(--primary); font-size: .8rem; cursor: pointer; }
.notif-empty { padding: 24px 14px; text-align: center; color: #9ca3af; font-size: .875rem; }
.notif-item { padding: 10px 14px; border-bottom: 1px solid #f5f5f5; cursor: pointer; }
.notif-item:hover { background: #f9fafb; }
.notif-item.notif-unread { background: #eff6ff; }
.notif-item.notif-unread:hover { background: #e0edfd; }
.notif-title { font-weight: 600; font-size: .85rem; }
.notif-body { font-size: .8rem; color: #4b5563; margin-top: 2px; }
.notif-date { font-size: .72rem; color: #9ca3af; margin-top: 4px; }

/* ===== Verification code input ===== */
.code-input { text-align: center; font-size: 1.8rem; font-weight: 700; letter-spacing: .6rem; font-family: monospace; }
.btn-link { background: none; border: none; color: var(--primary); cursor: pointer; font-size: inherit; padding: 0; text-decoration: underline; }
.btn-link:disabled { opacity: .6; cursor: wait; }

/* ===== Referee certifications & profile (ported from admin) ===== */
.cert-file-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1.75rem 1rem;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color .2s, background .2s;
    text-align: center;
}

.cert-file-name {
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.cert-file-hint {
    font-size: .78rem;
    color: var(--text-secondary);
}

.cert-form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.cert-form-header {
    display: flex;
    align-items: center;
    gap: .875rem;
    padding: 1.125rem 1.5rem;
    background: var(--primary);
    color: #fff;
}

.cert-form-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,.15);
    border-radius: 8px;
    flex-shrink: 0;
}

.cert-form-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.cert-form-subtitle {
    margin: .1rem 0 0;
    font-size: .75rem;
    color: rgba(255,255,255,.7);
}

.cert-form-close {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,.15);
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}

.cert-form-body {
    padding: 1.5rem;
}

.cert-form-section {
    margin-bottom: 1.5rem;
}

.cert-form-section-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-secondary);
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--border);
}

.cert-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

    .cert-form-grid {
        grid-template-columns: 1fr;
    }

.cert-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .75rem;
    padding-top: 1.25rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.cert-form-actions .btn {
    display: inline-flex;
    align-items: center;
}

.required-star {
    color: var(--danger);
    font-weight: 700;
}

.badge-active { background: #D1FAE5; color: #065F46; }

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tbody tr:hover { background: #F9FAFB; }

/* ── Table certifications : cartes empilées sur mobile ── */
@media (max-width: 768px) {
  .cert-table thead { display: none; }
  .cert-table, .cert-table tbody, .cert-table tr, .cert-table td { display: block; width: 100%; }
  .cert-table tr {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: .35rem .25rem;
    margin-bottom: 1rem;
  }
  .cert-table tbody tr:hover { background: var(--white); }
  .cert-table td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: .55rem .9rem;
    border-bottom: 1px solid var(--border);
    text-align: right;
  }
  .cert-table td::before {
    content: attr(data-label);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
    text-align: left;
    flex-shrink: 0;
  }
  .cert-table tr td:last-child { border-bottom: none; }
  /* La cellule Actions passe en colonne, boutons pleine largeur */
  .cert-table td.cert-actions-cell {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .cert-table td.cert-actions-cell::before { margin-bottom: .5rem; }
  .cert-table td.cert-actions-cell .btn { width: 100%; margin: 0 0 .4rem 0; }
  .cert-table td.cert-actions-cell .btn:last-child { margin-bottom: 0; }
}


.container-dashboard { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

/* ===== Location picker ===== */
.location-picker-row { display: flex; gap: .5rem; align-items: stretch; flex-wrap: wrap; }
.location-country { max-width: 160px; }
.location-input-wrapper { position: relative; flex: 1; min-width: 180px; }
.location-text-input { padding-right: 2.2rem; }
.location-clear-btn {
  position: absolute;
  top: 50%; right: .5rem;
  transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  padding: 0; border: none;
  background: var(--surface-2); color: var(--text-secondary);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.location-clear-btn:hover { background: var(--border); color: var(--text-primary); }
.location-geo-btn { flex-shrink: 0; }
.location-selected { margin-top: .4rem; font-size: .82rem; color: var(--success, #16a34a); font-weight: 500; }
.location-error { margin-top: .4rem; font-size: .82rem; color: var(--danger, #dc2626); }
.autocomplete-dropdown { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-radius: 0 0 8px 8px; box-shadow: var(--shadow-md); list-style: none; margin: 0; padding: 0; z-index: 300; max-height: 240px; overflow-y: auto; }
.autocomplete-dropdown li { padding: .55rem .8rem; cursor: pointer; font-size: .875rem; }
.autocomplete-dropdown li:hover { background: var(--bg); }

/* ===== Priority (premium) badge ===== */
.referee-priority-badge {
    display: inline-block;
    margin-left: .5rem;
    font-size: .68rem;
    font-weight: 700;
    color: #92400e;
    background: var(--primary);
    padding: 2px 8px;
    border-radius: 10px;
    vertical-align: middle;
    white-space: nowrap;
}

/* ===== Boost page ===== */
.boost-list { display: flex; flex-direction: column; gap: .75rem; }
.boost-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.boost-badge { font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 12px; white-space: nowrap; }
.boost-pending { background: #fef3c7; color: #92400e; }
.boost-approved { background: #d1fae5; color: #065f46; }
.boost-rejected { background: #fee2e2; color: #991b1b; }

/* ===== Prestation confirmation ===== */
.prestation-card {
    background: #fff8e1;
    border: 1px solid #ffb300;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.alert-warning { background: #fff8e1; border: 1px solid #ffb300; color: #92400e; padding: .85rem 1rem; border-radius: 8px; }

/* ===== Sports en lecture seule ===== */
.sport-tag-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.sport-tag {
    display: inline-block;
    padding: .4rem .85rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 500;
}
.info-note {
    margin-top: 1.5rem;
    padding: .75rem .9rem;
    background: #f8fafc;
    border-left: 3px solid var(--primary);
    border-radius: 0 6px 6px 0;
    font-size: .8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ── Auth gate (page protégée, utilisateur déconnecté) ── */
.auth-guard-loading { padding: 3rem 0; }
.auth-guard-gate { display: flex; justify-content: center; padding: 3rem 1rem; }
.auth-guard-card {
  text-align: center;
  max-width: 380px; width: 100%;
  padding: 2.5rem 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.auth-guard-icon {
  width: 56px; height: 56px;
  margin: 0 auto 1.25rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--text-secondary);
  border-radius: var(--radius-lg);
}
.auth-guard-title { font-size: 1.2rem; font-weight: 600; color: var(--text-primary); margin-bottom: .5rem; }
.auth-guard-text { color: var(--text-secondary); font-size: .92rem; margin-bottom: 1.75rem; line-height: 1.6; }
.auth-guard-actions { display: flex; flex-direction: column; gap: .6rem; }

/* ── Pages de contenu publiques ── */
.content-page { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.content-page-title { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 1rem; color: var(--text-primary); }
.content-page-intro { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 2rem; }
.content-page-body { font-size: 1rem; line-height: 1.7; color: var(--text-primary); }
.content-page-body h3 { font-size: 1.3rem; font-weight: 700; margin: 1.75rem 0 .6rem; }
.content-page-body h4 { font-size: 1.1rem; font-weight: 600; margin: 1.25rem 0 .4rem; }
.content-page-body p { margin: .75rem 0; }
.content-page-body ul, .content-page-body ol { margin: .75rem 0 .75rem 1.5rem; }
.content-page-body li { margin: .3rem 0; }
.content-page-body a { color: var(--primary); text-decoration: underline; }
.content-loading { padding: 2rem 0; color: var(--text-muted); }

/* ── FAQ (accordéon) ── */
.faq-group { margin-bottom: 2rem; }
.faq-category { font-size: 1.15rem; font-weight: 700; color: var(--primary); margin-bottom: .75rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: .6rem; overflow: hidden; }
.faq-item.faq-open { border-color: var(--border-dark); }
.faq-question {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1rem 1.25rem; background: var(--white); border: none; cursor: pointer;
    font-size: .98rem; font-weight: 600; text-align: left; color: var(--text-primary);
}
.faq-question:hover { background: var(--surface); }
.faq-chevron { font-size: 1.3rem; color: var(--text-muted); flex-shrink: 0; line-height: 1; }
.faq-answer {
    padding: 0 1.25rem 1.25rem; font-size: .95rem; line-height: 1.65; color: var(--text-secondary);
}
.faq-answer p { margin: .5rem 0; }
.faq-answer ul, .faq-answer ol { margin: .5rem 0 .5rem 1.5rem; }

/* ── Formulaire de contact ── */
.contact-form { max-width: 640px; }
.contact-form .form-row { display: flex; gap: 1rem; }
.contact-form .form-row .form-group { flex: 1; }
.contact-form .form-group { margin-bottom: 1.1rem; }
.form-optional { color: var(--text-muted); font-weight: 400; font-size: .82rem; }
.contact-form textarea.form-control { resize: vertical; min-height: 120px; }
.contact-success {
    max-width: 560px; padding: 2rem; border: 1px solid var(--border);
    border-radius: var(--radius-md); background: var(--surface); text-align: center;
}
.contact-success h2 { color: var(--primary); margin-bottom: .75rem; }
.contact-success p { margin: .4rem 0; color: var(--text-secondary); }
.contact-success .btn { margin-top: 1.25rem; }
@media (max-width: 560px) {
    .contact-form .form-row { flex-direction: column; gap: 0; }
}

/* ── Bannière + formulaire tournoi ── */
.tournament-banner {
    display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0;
    padding: 1rem 1.25rem; border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--border);
    color: var(--text-primary); text-decoration: none;
    transition: border-color .12s, box-shadow .12s;
}
.tournament-banner:hover { border-color: var(--primary-border); box-shadow: var(--shadow-md); }
.tournament-banner-icon {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex-shrink: 0;
    background: var(--primary-tint); color: var(--primary); border-radius: 12px;
}
.tournament-banner-text { display: flex; flex-direction: column; flex: 1; gap: .1rem; }
.tournament-banner-text strong { font-size: 1rem; font-weight: 600; }
.tournament-banner-text span { font-size: .85rem; color: var(--text-secondary); }
.tournament-banner-arrow { color: var(--text-muted); display: flex; align-items: center; }

.tournament-form-page { max-width: 780px; margin: 0 auto; }
.tournament-form { max-width: 780px; }
.tournament-form .form-row { display: flex; gap: 1rem; }
.tournament-form .form-row .form-group { flex: 1; }
.tournament-form .form-group { margin-bottom: 1.1rem; }
.form-section-title {
    font-size: 1.05rem; margin: 1.75rem 0 1rem; padding-bottom: .4rem;
    border-bottom: 2px solid var(--border); color: var(--primary);
}
.tournament-form textarea.form-control { resize: vertical; }
.btn-lg { padding: .75rem 1.5rem; font-size: 1rem; margin-top: .5rem; }
.tournament-success {
    max-width: 560px; margin: 2rem auto; padding: 2rem; text-align: center;
    border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface);
}
.tournament-success h2 { color: var(--primary); margin-bottom: .75rem; }
.tournament-success .btn { margin-top: 1.25rem; }
@media (max-width: 640px) {
    .tournament-form .form-row { flex-direction: column; gap: 0; }
}

/* ── Encadrés d'information sobres (dans l'identité du site) ── */
.notice {
    border: 1px solid var(--border);
    border-left: 3px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    text-align: left;
    color: var(--text-primary);
}
.notice strong { display: block; margin-bottom: .15rem; }
.notice-warning { border-left-color: var(--warning); }
.notice-muted { border-left-color: var(--primary); }

/* ── Aides à l'upload (inscription) ── */
.upload-hint { font-size: .82rem; color: var(--text-secondary); margin: 0 0 .4rem; line-height: 1.5; }
.upload-ok { color: var(--primary); font-size: .82rem; display: block; margin-top: .3rem; }

/* ── « Comment ça marche » : onglets par persona ── */
.section-subtitle { text-align: center; color: var(--text-secondary); margin: -.5rem 0 1.75rem; }

.hiw-tabs {
    display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem;
    margin-bottom: 2.25rem;
}
.hiw-tab {
    padding: .6rem 1.25rem; border: 1px solid var(--border); background: #fff;
    border-radius: var(--radius-pill); font-size: .92rem; font-weight: 600;
    color: var(--text-secondary); cursor: pointer; transition: all .12s;
}
.hiw-tab:hover { border-color: var(--primary); color: var(--primary); }
.hiw-tab-on { background: var(--primary); border-color: var(--primary); color: #fff; }

.hiw-steps {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem; max-width: 1000px; margin: 0 auto;
}
.hiw-step { text-align: left; }
.hiw-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--primary); font-weight: 700; font-size: 1.05rem; margin-bottom: .9rem;
}
.hiw-step h3 { font-size: 1.05rem; margin: 0 0 .4rem; color: var(--text-primary); }
.hiw-step p { font-size: .9rem; color: var(--text-secondary); line-height: 1.55; margin: 0; }

.hiw-cta { text-align: center; margin-top: 2.25rem; }

@media (max-width: 640px) {
    .hiw-steps { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ── Indisponibilités arbitre ── */
.unav-tabs { display: flex; gap: .5rem; margin-bottom: 1.25rem; }
.unav-tab { padding: .6rem 1.2rem; border: 1px solid var(--border); background: #fff; border-radius: var(--radius-pill); font-weight: 500; color: var(--text-secondary); cursor: pointer; }
.unav-tab.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.unav-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.unav-form .form-row { display: flex; gap: 1rem; }
.unav-form .form-row .form-group { flex: 1; }
.unav-list { display: flex; flex-direction: column; gap: .5rem; }
.unav-row { display: flex; align-items: center; gap: .8rem; padding: .75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; }
.unav-kind { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--primary); background: var(--primary-tint); padding: .2rem .5rem; border-radius: var(--radius-pill); flex-shrink: 0; }
.unav-kind-absence { color: var(--warning); background: var(--warning-tint); }
.unav-when { flex: 1; display: flex; flex-direction: column; font-size: .9rem; }
.unav-note { color: var(--text-muted); font-size: .82rem; }
.unav-del { border: none; background: none; color: var(--text-muted); cursor: pointer; font-size: 1rem; }
.unav-del:hover { color: var(--danger); }
@media (max-width: 560px) { .unav-form .form-row { flex-direction: column; gap: 0; } }

/* Confirmation "ajouté" en mode enchaîner */
.unav-added { color: var(--primary); font-size: .85rem; margin: .6rem 0 0; font-weight: 500; }

/* ── Sélecteur de langue ── */
.lang-switch { display: inline-flex; gap: .15rem; background: var(--surface); border-radius: var(--radius-pill); padding: .2rem; margin-left: auto; margin-right: .75rem; }
.lang-btn { border: none; background: transparent; color: var(--text-secondary); font-size: .78rem; font-weight: 600; padding: .3rem .55rem; border-radius: var(--radius-pill); cursor: pointer; }
.lang-btn.on { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }

/* Mise en évidence du montant cash à régler sur place */
.detail-row-cash { background: var(--warning-tint, #FFFBEB); border-radius: 8px; padding: .5rem .6rem; }
.cash-tag { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--warning, #B45309); background: #fff; border: 1px solid var(--warning, #B45309); border-radius: 999px; padding: .05rem .45rem; margin-left: .35rem; }

/* ── Notifications : lien voir tout, liste complète, page annonce ── */
.notif-see-all { display:block; text-align:center; padding:.75rem; font-size:.88rem; font-weight:600; color:var(--primary); border-top:1px solid var(--border); text-decoration:none; }
.notif-see-all:hover { background:var(--surface); }
.notif-list-full { display:flex; flex-direction:column; gap:.5rem; margin-top:1rem; }
.notif-full-item { display:flex; align-items:flex-start; gap:.75rem; padding:1rem; border:1px solid var(--border); border-radius:var(--radius-md); background:#fff; cursor:pointer; transition:border-color .12s; position:relative; }
.notif-full-item:hover { border-color:var(--primary-border); }
.notif-full-item.unread { background:var(--primary-tint); }
.notif-full-icon { color: var(--text-muted); display: flex; align-items: center; padding-top: .1rem; }
.notif-full-body { flex:1; }
.notif-full-title { font-weight:600; }
.notif-full-text { font-size:.88rem; color:var(--text-secondary); margin:.15rem 0; }
.notif-full-date { font-size:.75rem; color:var(--text-muted); }
.notif-dot { width:8px; height:8px; border-radius:50%; background:var(--primary); flex-shrink:0; margin-top:.4rem; }
.announcement { background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg); padding:1.75rem; margin-top:1rem; }
.announcement-title { font-size:1.5rem; margin:0 0 .25rem; }
.announcement-date { font-size:.8rem; color:var(--text-muted); margin-bottom:1.25rem; }
.announcement-body { line-height:1.7; color:var(--text-primary); }
.announcement-body img { max-width:100%; height:auto; border-radius:8px; margin:.75rem 0; }
.announcement-body h2, .announcement-body h3 { margin-top:1.25rem; }
.announcement-body a { color:var(--primary); }

/* ── Panneau notifications : fermeture + structure ── */
.notif-backdrop { position: fixed; inset: 0; z-index: 1050; }
.notif-dropdown { display: flex; flex-direction: column; max-height: 70vh; }
.notif-close { border: none; background: transparent; font-size: .95rem; color: var(--text-muted); cursor: pointer; width: 26px; height: 26px; border-radius: 50%; }
.notif-close:hover { background: var(--surface); color: var(--text-primary); }
.notif-scroll { overflow-y: auto; flex: 1; }
.notif-dropdown .notif-see-all { border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-md) var(--radius-md); flex-shrink: 0; }
