:root{
  --bg:#f6f8fc; --card:#ffffff; --line:#e5e7eb; --ink:#0b1324; --muted:#667085;
  --primary:#0d47a1; --primary-ink:#ffffff; --accent:#00b0ff; --ring: rgba(13,71,161,.25);
  --shadow: 0 8px 24px rgba(2,6,23,.08);
  --sport-gold: #FFC107; 
}
*{box-sizing:border-box}

html,body{margin:0;padding:0;background:var(--bg);color:var(--ink);font-family:'Roboto', system-ui, Segoe UI, Arial, sans-serif}

a{color:var(--primary);text-decoration:none} a:hover{text-decoration:underline}
.container{max-width:1200px;margin:0 auto;padding:20px}

.topbar{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--line)}
.topbar .container{display:flex;align-items:center;gap:24px}

.brand-logo {
  display: flex; 
  align-items: center;
  padding: 5px 0; 
}
.brand-logo img {
  height: 60px; 
  width: auto; 
  transition: transform 0.2s ease;
}
.brand-logo:hover img {
  transform: scale(1.05); 
}

nav a{margin:0 8px;padding:8px 10px;border-radius:10px; transition: all 0.2s ease-out;}
nav a:hover{background:#f1f5ff}

.hero-video{
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
  background: var(--card);
}

.slideshow-container{
  position: relative;
  height: 420px;
  background: #0b1220;
  overflow: hidden;
}
.slide {
  display: none; 
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.slide:first-child {
  display: block; 
}

/* === MODIFIÉ : Image plus claire === */
.slide .hero-vid{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7; /* Augmenté de 0.5 à 0.7 */
  filter: contrast(100%);
}

.slideshow-container .overlay{
  position: absolute;
  inset: 0; 
  z-index: 2; 
  color: #fff;
  padding: 20px; 
  text-align: center; 
  text-shadow: none; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* === MODIFIÉ : Filtre noir moins sombre === */
.slideshow-container::after{
  content: "";
  position: absolute;
  inset: 0;
  /* Opacité baissée de 0.5 à 0.3 */
  background: linear-gradient(0deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.3) 100%);
  z-index: 1; 
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}
@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}


h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 16px 0 8px;
}
h1{font-size:40px;} 
h2{font-size:28px;}
h3{font-size:22px;}

.slideshow-container .overlay h1 {
  font-size: 1.25rem; 
  font-weight: 500;
  color: #FFFFFF; 
  opacity: 0.9;
  margin-bottom: 8px;
  text-align: center; 
}
.slideshow-container .overlay h2 {
  font-size: 4.0rem; 
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 16px 0;
  color: var(--sport-gold); 
  text-shadow: 0 3px 8px rgba(0,0,0,0.8); 
}
.slideshow-container .overlay p {
  font-family: 'Roboto', sans-serif;
  text-transform: none; 
  font-size: 1.1rem; 
  font-weight: 400;
  line-height: 1.4;
  opacity: 0.9;
  color: #FFFFFF;
}
.slideshow-container .overlay p strong {
  font-weight: 700;
}

.section{margin:24px 0}
.card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:var(--shadow)}

.table{width:100%;border-collapse:collapse;background:var(--card);border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:var(--shadow)}
.table th,.table td{border-bottom:1px solid var(--line);padding:12px;text-align:left}
.table th{font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; background-color: var(--bg);}
.table tbody tr:nth-child(even) { background-color: var(--bg); } 
.table form.inline { display: flex; gap: 6px; align-items: center; }
.table form.inline button { padding: 6px 10px; font-size: 0.9rem; }


button, .btn{
  background:var(--primary);color:var(--primary-ink);border:none;border-radius:12px;
  padding:10px 14px;font-weight:700;cursor:pointer;box-shadow:var(--shadow);
  transition: all 0.2s ease-out; 
}
button:hover, .btn:hover{
  filter:brightness(1.1); 
  transform: translateY(-1px); 
}

input,select,textarea{
  background:#fff;border:1px solid var(--line);border-radius:12px;
  padding:10px;width:100%;outline:none;
  transition: all 0.2s ease-out; 
}
input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 4px var(--ring)}

.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}
.tile{background:var(--card);border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:var(--shadow)}

.grid:not(.home-blocks) .tile .thumbnail-link,
.grid:not(.home-blocks) .tile video {
    display: block;
    height: 200px; 
    overflow: hidden; 
    background: #eef3ff;
}
.grid:not(.home-blocks) .tile img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.3s ease;
}
.grid:not(.home-blocks) .tile .thumbnail-link:hover img {
    transform: scale(1.1); 
}
.grid:not(.home-blocks) .tile video {
    object-fit: cover;
}
.home-blocks .tile {
    position: relative;
    height: 250px;
    color: #FFFFFF;
    transition: transform .12s ease, box-shadow .12s ease;
}
.home-blocks .tile img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.home-blocks .tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(2,6,23,.12);
}
.home-blocks .tile:hover img {
    transform: scale(1.05);
}
.home-blocks .tile::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 10%, rgba(0,0,0,0.1) 60%);
    transition: background 0.3s ease;
}
.tile-overlay {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 3;
}
.tile-overlay h3 {
    font-size: 1.8rem;
    color: #FFFFFF;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}
.tile-overlay div {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #FFFFFF;
    opacity: 0.9;
    text-transform: none;
    letter-spacing: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.tile-footer{display:flex;flex-direction:column;gap:4px;padding:10px 12px;color:var(--muted)}
.gallery-caption{padding:6px 12px 0;font-size:0.85rem;font-weight:600;color:var(--text);line-height:1.4;}

.footer{border-top:1px solid var(--line);margin-top:24px;padding:20px 0;color:var(--muted)}
.alert{padding:10px 12px;border-radius:12px;background:#eef2ff;border:1px solid #dbe6ff;color:#193a78}
.alert.success{background:#eafff3;border-color:#c9f7dc;color:#065f46}

.edit-toolbar{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px;margin:14px 0;display:flex;gap:10px;align-items:center;box-shadow:var(--shadow)}
.page-body{margin-top:12px;line-height:1.75}

.card form {
  display: flex;
  flex-direction: column;
  gap: 16px; 
}
.card form.inline {
  flex-direction: row;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px; 
}
.card label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.card form.inline label {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-transform: none;
  letter-spacing: inherit;
  color: inherit;
}
.card button[type="submit"] {
  margin-top: 10px; 
  background-color: var(--primary); 
  color: var(--primary-ink);
  font-size: 1.1rem;
}

.btn-delete {
  background-color: #fbe9e7; 
  color: #c62828; 
  font-size: 0.9rem;
  padding: 6px 10px;
  box-shadow: none;
}
.btn-delete:hover {
  background-color: #ffcdd2; 
  filter: none; 
  transform: translateY(-1px); 
}

/* ===== TOURNOIS ===== */

/* Liste des tournois */
.t-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.t-card {
  background: var(--card);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.t-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.12); transform: translateY(-2px); }
.status-border-pending   { border-left-color: #7c3aed; }
.status-border-active    { border-left-color: #059669; }
.status-border-completed { border-left-color: var(--primary); }
.t-card-head  { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.t-card-name  { font-size: 1.2rem; font-weight: 700; margin: 0; line-height: 1.3; }
.t-card-meta  { color: var(--muted); font-size: 0.875rem; margin: 0; }
.t-card-winner {
  font-weight: 700; color: #92400e;
  background: #fef3c7; border-radius: 8px;
  padding: 6px 12px; margin: 0; font-size: 0.9rem;
}
.t-card-actions { display: flex; align-items: center; gap: 8px; margin-top: 6px; }

/* En-tête page bracket */
.t-header {
  background: var(--card);
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.t-header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Bannière champion */
.t-winner-banner {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1c1917;
  border-radius: 16px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(245,158,11,0.35);
}
.t-winner-trophy { font-size: 2.8rem; line-height: 1; }
.t-winner-label  { margin: 0; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.75; }
.t-winner-name   { margin: 4px 0 0; font-size: 1.7rem; font-weight: 900; font-family: 'Oswald', sans-serif; }

/* Badges de statut */
.status-badge    { padding: 5px 12px; border-radius: 20px; font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.status-pending  { background: #ede9fe; color: #5b21b6; }
.status-active   { background: #d1fae5; color: #065f46; }
.status-completed{ background: #dbeafe; color: #1e40af; }

/* Bracket */
.bracket-container {
  width: 100%;
  overflow-x: auto;
  padding: 8px 0 20px;
}
.bracket {
  display: flex;
  flex-direction: row;
  gap: 0;
  min-width: fit-content;
  align-items: stretch;
}
.round {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  min-width: 220px;
  padding: 0 6px;
  flex: 1;
}
.round-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--muted);
  margin-bottom: 14px;
  padding: 5px 14px;
  background: var(--bg);
  border-radius: 20px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.bracket-match {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  margin: 8px 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: relative;
}
.bracket-match.bye-match { opacity: 0.5; }
.bracket-match-info {
  font-size: 0.72rem;
  color: var(--muted);
  padding: 4px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.bracket-team {
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.15s;
}
.bracket-team:first-of-type { border-bottom: 1px solid var(--line); }
.bracket-team-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bracket-score     { font-weight: 900; font-size: 0.95rem; min-width: 22px; text-align: right; color: var(--primary); }
.bracket-team.winner { background: #f0fdf4; color: #14532d; }
.bracket-team.winner .bracket-score { color: #14532d; }
.bracket-team.loser  { opacity: 0.4; text-decoration: line-through; }
.bracket-team.bye    { opacity: 0.45; font-style: italic; font-weight: 400; }

/* Connecteurs de bracket */
.bracket-match::after {
  content: ''; position: absolute; top: 50%; right: -7px;
  width: 7px; height: 2px; background: var(--line); transform: translateY(-1px);
}
.round-1 .bracket-match::after { display: none; }
.bracket-match::before {
  content: ''; position: absolute; top: 50%; left: -7px;
  width: 7px; height: 2px; background: var(--line); transform: translateY(-1px);
}
.bracket .round:first-child .bracket-match::before { display: none; }

/* Formulaire mise à jour match */
.bracket-update-form {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px; background: var(--bg); border-top: 1px solid var(--line);
}
.bracket-update-form input { padding: 6px 10px; border-radius: 8px; font-size: 0.85rem; }
.score-inputs { display: flex; gap: 6px; align-items: center; }
.score-inputs input[type="number"] { flex: 1; text-align: center; }
.score-inputs span { font-weight: 700; }

/* STYLES PAGE DE DONS */
.mission-text {
  line-height: 1.7;
  font-size: 1.1rem;
  background-color: var(--bg); 
}
.mission-text p {
  margin-bottom: 1em;
}
.donation-buttons h3 {
  margin-top: 0;
}
.button-container {
  display: flex;
  flex-wrap: wrap; 
  gap: 15px; 
  margin-top: 20px;
}
.btn-donate {
  flex-grow: 1; 
  padding: 15px 20px;
  font-size: 1.2rem;
  text-align: center;
  text-transform: uppercase;
}
.btn-paypal {
  background-color: #00457C; 
  color: #FFFFFF;
}
.btn-paypal:hover {
  background-color: #003057;
  color: #FFFFFF;
}
.btn-gofundme {
  background-color: #00B964; 
  color: #FFFFFF;
}
.btn-gofundme:hover {
  background-color: #008f4e;
  color: #FFFFFF;
}

/* STYLES MESSAGERIE PRIVÉE */
.inbox-table {
  width: 100%;
  border-collapse: collapse;
}
.inbox-table th, .inbox-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.inbox-table th {
  background: var(--bg);
}
.inbox-table tr:hover {
  background: var(--bg);
}
.message-unread td {
  font-weight: 700;
  color: var(--ink);
}
.message-view-card {
  padding: 20px;
}
.message-view-card .meta {
  font-size: 0.9rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
  margin-bottom: 15px;
}
.message-view-card .body {
  line-height: 1.7;
}

/* STYLES NOTIFICATION & SUPPRESSION */
.badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  background-color: #d9534f; 
  border-radius: 10px;
  margin-left: 6px;
  position: relative;
  top: -1px; 
}
.btn-delete-small {
  background-color: #fbe9e7; 
  color: #c62828; 
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid #ffcdd2;
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-delete-small:hover {
  background-color: #ffcdd2; 
  filter: none;
  transform: none;
}


/* STYLES DE LA LIGHTBOX (Corrigé) */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  text-decoration: none; 
}
.lightbox:target {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.lightbox img {
  max-width: 90vw; 
  max-height: 80vh; 
  border: 3px solid #fff;
  border-radius: 5px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease;
}
.lightbox-close:hover {
  color: #ccc;
  transform: scale(1.1);
}
.lightbox-caption {
  margin-top: 15px;
  color: #eee;
  font-size: 1.1rem;
  text-align: center;
}

/* STYLES D'ÉDITION EN LIGNE (INLINE) */
.edit-mode [data-edit],
.edit-mode [data-block-title],
.edit-mode [data-block-body] {
  cursor: text;
  outline: 1px dashed var(--primary);
  background: rgba(13, 72, 161, 0.05);
}
.edit-mode .home-blocks .tile { }
.edit-mode .home-blocks .tile img { }
.edit-mode .home-blocks .tile::before { }
.edit-mode .home-blocks .tile:hover::before { }


/* STYLES D'ÉDITION EN LIGNE (Suite 2) */
.page-body:empty,
.mission-text:empty {
  display: none;
}
.edit-mode .page-body:empty,
.edit-mode .mission-text:empty {
  display: block;
  min-height: 200px; 
  padding: 20px;
}

/* STYLES GRILLE ADMIN (AJOUTÉ) */
.admin-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

/* =================================
   STYLES SPONSORS FOOTER
   ================================= */

.footer-sponsors {
  max-width: 1200px;
  margin: 0 auto 30px auto;
  padding: 30px 20px 0 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-sponsors h3 {
  margin-top: 0;
  color: var(--muted);
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.footer-sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px; /* Espace entre les logos */
}

.sponsor-item {
  display: block;
  text-decoration: none;
  color: var(--muted);
}

.sponsor-item img {
  height: 60px; /* Hauteur max des logos */
  width: auto;
  max-width: 160px; /* Largeur max des logos */
  object-fit: contain; /* Assure que le logo n'est pas déformé */
  filter: grayscale(100%); /* Met les logos en gris */
  opacity: 0.7;
  transition: all 0.2s ease-out;
}

.sponsor-item:hover img {
  filter: grayscale(0%); /* Couleur au survol */
  opacity: 1;
  transform: scale(1.05); /* Léger zoom */
}

.sponsor-item span {
  display: block;
  font-size: 1.0rem; 
  margin-top: 10px; 
  font-weight: 700;
}
/* =================================
   STYLES FORMULAIRE MDP ADMIN
   ================================= */

.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.inline-form input {
  width: auto !important; /* Annule le 100% par défaut */
  flex-grow: 1; /* Prend l'espace disponible */
}
.inline-form button {
  padding: 8px 12px;
  font-size: 0.9rem;
  flex-shrink: 0; /* Empêche le bouton de rétrécir */
}
/* =================================
   STYLES "NOTRE ÉQUIPE"
   ================================= */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.team-member-card {
  text-align: center;
  padding: 0; /* La carte gère le padding */
}

.team-member-card img {
  width: 100%;
  height: 250px; /* Hauteur fixe pour les photos */
  object-fit: cover; /* Recadre bien la photo */
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  background-color: var(--bg);
}

.team-member-card h3 {
  margin: 15px 0 5px 0;
  font-size: 1.4rem;
  color: var(--ink);
}

.team-member-card .title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.team-member-card .bio {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 15px;
  line-height: 1.6;
}
/* =================================
   PANNEAU ADMIN INLINE (Équipes)
   ================================= */

.admin-panel {
  background: #fffbeb;
  border: 2px dashed #f59e0b;
  border-radius: 14px;
  margin-bottom: 20px;
  overflow: hidden;
}
.admin-panel-summary {
  padding: 13px 18px;
  cursor: pointer;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #92400e;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}
.admin-panel-summary::-webkit-details-marker { display: none; }
.admin-panel[open] > .admin-panel-summary { border-bottom: 1px dashed #f59e0b; }
.admin-panel-body { padding: 20px; }

/* Formulaires inline admin */
.admin-inline-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.aif-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.aif-row .form-group { flex: 1; min-width: 120px; }

/* Layout 2 colonnes dans le panneau */
.admin-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 768px) { .admin-2col { grid-template-columns: 1fr; } }

/* Stats row compact */
.admin-stats-label {
  margin: 4px 0 0;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

/* Liste équipes/joueurs collapsibles */
.admin-equipe-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.admin-joueur-details {
  border: 1px solid #fde68a;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.admin-joueur-summary {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  user-select: none;
}
.admin-joueur-summary::-webkit-details-marker { display: none; }
.admin-joueur-details[open] > .admin-joueur-summary { background: #fffbeb; border-bottom: 1px solid #fde68a; }
.admin-joueur-details-body { padding: 16px; background: #fff; }

.admin-eq-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.admin-joueur-num {
  display: inline-block;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  flex-shrink: 0;
}

/* Bouton "Gérer" dans le header équipe */
.admin-toggle-panel-btn {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s;
  margin-left: auto;
  flex-shrink: 0;
}
.admin-toggle-panel-btn:hover {
  background: rgba(255,255,255,0.28);
  filter: none;
  transform: none;
}

/* Barre admin sur les cartes joueurs */
.joueur-admin-bar {
  display: flex;
  border-top: 1px solid var(--line);
}
.joueur-admin-btn {
  flex: 1;
  padding: 8px 4px;
  font-size: 0.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  box-shadow: none;
  border-radius: 0;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.joueur-admin-btn:hover { background: #eef2ff; color: var(--primary); filter: none; transform: none; text-decoration: none; }
.joueur-admin-btn.danger { border-left: 1px solid var(--line); }
.joueur-admin-btn.danger:hover { background: #fbe9e7; color: #c62828; }

/* =================================
   ÉQUIPES — LISTE
   ================================= */

.equipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.equipe-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--team-color, var(--primary));
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.equipe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(2,6,23,0.13);
  text-decoration: none;
  color: var(--ink);
}
.equipe-card-header {
  background: #f6f8fc;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 130px;
  padding: 16px;
}
.equipe-logo {
  max-height: 100px;
  max-width: 100%;
  object-fit: contain;
}
.equipe-logo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--team-color, var(--primary));
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.equipe-logo-placeholder.large {
  width: 100px;
  height: 100px;
  font-size: 2.8rem;
}
.equipe-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.equipe-card-body h2 {
  margin: 0;
  font-size: 1.3rem;
}
.equipe-desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  flex: 1;
}
.equipe-sport-badge {
  display: inline-block;
  background: var(--team-color, var(--primary));
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 20px;
  width: fit-content;
}
.equipe-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.equipe-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
}

/* =================================
   ÉQUIPES — PAGE DÉTAIL
   ================================= */

.equipe-header {
  background: linear-gradient(135deg, var(--team-color, var(--primary)) 0%, color-mix(in srgb, var(--team-color, var(--primary)) 70%, #000) 100%);
  border-radius: 18px;
  padding: 36px 32px;
  margin-bottom: 8px;
  color: #fff;
}
.equipe-header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.equipe-header-logo-wrap {
  flex-shrink: 0;
}
.equipe-header-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  background: rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 8px;
}
.equipe-header-info {
  flex: 1;
  min-width: 200px;
}
.equipe-header-info .equipe-sport-badge {
  background: rgba(255,255,255,0.2);
  margin-bottom: 10px;
}
.equipe-header-info h1 {
  color: #fff;
  margin: 6px 0 10px;
  font-size: 2.4rem;
}
.equipe-header-info p {
  opacity: 0.85;
  margin: 0 0 12px;
  line-height: 1.55;
}
.equipe-header-meta {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* =================================
   JOUEURS — GRILLE ET CARTES
   ================================= */

.joueurs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.joueur-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.joueur-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(2,6,23,0.11);
}
.joueur-photo-wrap {
  position: relative;
}
.joueur-photo {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  background: #eef3ff;
}
.joueur-photo-placeholder {
  width: 100%;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
}
.joueur-numero {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  line-height: 1;
}
.joueur-info {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.joueur-nom {
  font-size: 0.95rem;
  color: var(--ink);
}
.joueur-poste {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.joueur-nationalite {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Badges cartons stats */
.carton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
}
.carton-jaune { background: #f59e0b; }
.carton-rouge { background: #dc2626; }

@media (max-width: 768px) {
  .equipe-header { padding: 24px 16px; }
  .equipe-header-inner { gap: 16px; }
  .equipe-header-logo { width: 80px; height: 80px; }
  .equipe-header-info h1 { font-size: 1.8rem; }
  .joueurs-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

/* =================================
   TOPBAR — LAYOUT AVEC USER MENU
   ================================= */

.topbar .container {
  gap: 0;
}
.topbar nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-left: 8px;
}
.user-menu,
.nav-auth {
  margin-left: auto;
  flex-shrink: 0;
  position: relative;
}

/* Boutons connexion / inscription (visiteurs) */
.nav-auth {
  display: flex;
  gap: 8px;
  align-items: center;
}
.btn-nav-login {
  color: var(--primary);
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  transition: background 0.2s;
}
.btn-nav-login:hover { background: #f1f5ff; text-decoration: none; }
.btn-nav-register {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  transition: filter 0.2s;
}
.btn-nav-register:hover { filter: brightness(1.1); text-decoration: none; color: #fff; }

/* =================================
   USER MENU DROPDOWN
   ================================= */

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f6f8fc;
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 6px 12px 6px 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: none;
  transition: all 0.2s;
}
.user-menu-btn:hover,
.user-menu-btn[aria-expanded="true"] {
  background: #eef2ff;
  border-color: var(--primary);
  filter: none;
  transform: none;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.user-name {
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-chevron {
  font-size: 0.65rem;
  color: var(--muted);
  transition: transform 0.2s;
}
.user-menu-btn[aria-expanded="true"] .user-chevron {
  transform: rotate(180deg);
}

/* Dropdown panel */
.user-menu-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(2,6,23,0.12);
  z-index: 200;
  overflow: hidden;
}
.user-menu-dropdown.open { display: block; }

/* En-tête avec nom + email */
.umi-header {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line);
  background: #f6f8fc;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.umi-header strong {
  font-size: 0.95rem;
  color: var(--ink);
}
.umi-header small {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Items du menu */
.user-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  font-size: 0.9rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
  gap: 8px;
}
.user-menu-item:last-child { border-bottom: none; }
.user-menu-item:hover { background: #f1f5ff; text-decoration: none; color: var(--ink); }
.user-menu-item.danger { color: #c62828; }
.user-menu-item.danger:hover { background: #fbe9e7; color: #c62828; }

/* Séparateur */
.user-menu-sep {
  height: 1px;
  background: var(--line);
  margin: 4px 0;
}