/* ══════════════════════════════════════════════════════
   TEAMS.CSS — Former des équipes · PhysEdBoard
   Mobile-first · Pas de scroll · Pas de coupure de noms
══════════════════════════════════════════════════════ */

/* ════════════════════════════════════════
   VARIABLES — base mobile (< 768px)
════════════════════════════════════════ */
:root {
  /* Couleurs — thème navy/jaune (identique à cartes) */
  --bg:          #061428;
  --accent:      #ffd43b;
  --accent-rgb:  255, 212, 59;
  --panel:       #0d2040;
  --border:      #1a3a60;
  --border2:     rgba(255,255,255,0.08);
  --text:        #c8daea;
  --dim:         #3a608a;
  --red:         #ff3c3c;

  /* Typographie modale */
  --fs-label:       clamp(11px, 1.2vw, 12px);
  --fs-control-sm:  clamp(12px, 1.5vw, 14px);
  --fs-control:     clamp(13px, 1.6vw, 15px);
  --fs-title:       clamp(16px, 2vw, 20px);

  /* Header settings-panel */
  --header-h:    64px;

  /* Grille */
  --grid-gap:    6px;
  --grid-pad-x:  8px;

  /* Carte */
  --card-radius:    8px;
  --card-header-h:  28px;
  --card-header-fs: 12px;
  --card-pad-x:     8px;
  --card-pad-y:     4px;
  --member-lh:      1.25;
}

/* ════════════════════════════════════════
   RESPONSIVE — Mobile-first
   1. Tablette portrait       768px+
   2. Tablette paysage/laptop 1024px+
   3. Laptop standard         1280px+
   4. Laptop HD               1536px+
   5. Grand écran             1920px+
════════════════════════════════════════ */

@media (min-width: 768px) {
  :root {
    --grid-gap:       8px;
    --grid-pad-x:     12px;
    --card-radius:    10px;
    --card-header-h:  32px;
    --card-header-fs: 10px;
    --card-pad-x:     10px;
    --card-pad-y:     6px;
  }
}

@media (min-width: 1024px) {
  :root {
    --grid-gap:       10px;
    --grid-pad-x:     16px;
    --card-radius:    11px;
    --card-header-h:  34px;
    --card-header-fs: 10px;
    --card-pad-x:     12px;
    --card-pad-y:     8px;
  }
}

@media (min-width: 1280px) {
  :root {
    --grid-gap:       12px;
    --grid-pad-x:     20px;
    --card-radius:    12px;
    --card-header-h:  36px;
    --card-header-fs: 11px;
    --card-pad-x:     14px;
    --card-pad-y:     10px;
  }
}

@media (min-width: 1536px) {
  :root {
    --grid-gap:       14px;
    --grid-pad-x:     24px;
    --card-radius:    13px;
    --card-header-h:  38px;
    --card-header-fs: 11px;
    --card-pad-x:     16px;
    --card-pad-y:     11px;
  }
}

@media (min-width: 1920px) {
  :root {
    --grid-gap:       16px;
    --grid-pad-x:     32px;
    --card-radius:    14px;
    --card-header-h:  42px;
    --card-header-fs: 12px;
    --card-pad-x:     18px;
    --card-pad-y:     12px;
  }
}

/* Paysage mobile (hauteur < 500px) */
@media (max-height: 500px) {
  :root {
    --grid-gap:       4px;
    --card-header-h:  24px;
    --card-header-fs: 8px;
    --card-pad-x:     6px;
    --card-pad-y:     3px;
  }
}


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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow Condensed', sans-serif;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}


/* Vignette */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 85% 75% at 50% 50%, transparent 25%, rgba(6,20,40,0.85) 100%);
}


/* ════════════════════════════════════════
   STAGE — tout l'espace sous le header
════════════════════════════════════════ */
.teams-stage {
  position: relative;
  z-index: 1;
  /*margin-top: var(--header-h);*/
  height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--grid-gap) var(--grid-pad-x);
}


/* ════════════════════════════════════════
   ZONE RÉSULTATS
   height / width posées par JS
════════════════════════════════════════ */
.teams-results-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}


/* ════════════════════════════════════════
   ÉTAT VIDE
════════════════════════════════════════ */
.teams-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  animation: fadeUp 0.4s ease both;
}
.teams-empty-icon {
  font-size: clamp(48px, 8vw, 80px);
  color: rgba(255,255,255,0.05);
  line-height: 1;
}
.teams-empty-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.1);
}
.teams-empty-sub {
  font-size: clamp(11px, 1.4vw, 14px);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.18);
  text-align: center;
  max-width: 280px;
  line-height: 1.6;
}
.teams-empty-cta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 30px;
  background: rgba(255,212,59,0.1);
  border: 1px solid rgba(255,212,59,0.25);
  color: rgba(255,212,59,0.7);
  cursor: pointer;
  transition: all 0.18s;
  touch-action: manipulation;
}
.teams-empty-cta:hover {
  background: rgba(255,212,59,0.16);
  border-color: rgba(255,212,59,0.5);
  color: var(--accent);
}


/* ════════════════════════════════════════
   GRILLE — dimensions posées par JS
════════════════════════════════════════ */
.teams-grid {
  display: grid;
  /* grid-template-columns / rows / gap posés par JS */
  animation: fadeUp 0.3s ease both;
  /* Jamais de scroll */
  overflow: hidden;
}


/* ════════════════════════════════════════
   CARTE ÉQUIPE
════════════════════════════════════════ */
.team-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* height posée par JS */
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.15s;
  animation: cardIn 0.32s cubic-bezier(0.22,1,0.36,1) both;
}

/* Délais échelonnés jusqu'à 12 cartes */
.team-card:nth-child(1)  { animation-delay: 0.02s; }
.team-card:nth-child(2)  { animation-delay: 0.04s; }
.team-card:nth-child(3)  { animation-delay: 0.06s; }
.team-card:nth-child(4)  { animation-delay: 0.08s; }
.team-card:nth-child(5)  { animation-delay: 0.10s; }
.team-card:nth-child(6)  { animation-delay: 0.12s; }
.team-card:nth-child(7)  { animation-delay: 0.14s; }
.team-card:nth-child(8)  { animation-delay: 0.16s; }
.team-card:nth-child(9)  { animation-delay: 0.18s; }
.team-card:nth-child(10) { animation-delay: 0.20s; }
.team-card:nth-child(11) { animation-delay: 0.22s; }
.team-card:nth-child(12) { animation-delay: 0.24s; }

.team-card:hover {
  border-color: rgba(255,212,59,0.35);
  background: rgba(255,212,59,0.04);
  transform: translateY(-2px);
}

/* ── En-tête de carte ── */
.team-card-header {
  height: var(--card-header-h);
  padding: 0 var(--card-pad-x);
  border-bottom: 1px solid var(--border);
  background: rgba(255,212,59,0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.team-card-title {
  font-size: var(--card-header-fs);
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.team-card-count {
  font-size: var(--card-header-fs);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text);
  white-space: nowrap;
}

/* ── Corps de carte ── */
.team-card-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: var(--card-pad-y) var(--card-pad-x);
  overflow: visible;
}

/* ── Membre ── */
.team-member {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  /* line-height généreux pour les descendantes */
  line-height: 1.35;
  white-space: nowrap;
  /* overflow visible — le JS garantit que le texte rentre en largeur */
  overflow: visible;
}


/* ════════════════════════════════════════
   CARTE PERSONNE (mode 1 par carte)
════════════════════════════════════════ */
.team-card--person {
  border-color: rgba(255,212,59,0.08);
}
.team-card--person:hover {
  border-color: rgba(255,212,59,0.4);
}
.team-card-body--person {
  align-items: center;
  justify-content: center;
  padding: var(--card-pad-y) var(--card-pad-x);
}
.team-member--person {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--text);
  white-space: nowrap;
  line-height: 1.35;
  overflow: visible;
}


/* ════════════════════════════════════════
   OVERLAY OPTIONS
════════════════════════════════════════ */
.rdl-overlay {
  display: none;
  position: fixed; inset: 0;
  z-index: 450;
  background: rgba(2,2,8,0.88);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(18px);
}
.rdl-overlay.visible {
  display: flex;
  animation: rFadeIn 0.18s ease;
}

.rdl-modal {
  width: min(880px, 96vw);
  height: 80dvh;
  max-height: 82dvh;
  display: flex;
  flex-direction: column;
  background: #08111f;
  border: 1px solid rgba(255,212,59,.14);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04) inset, 0 0 60px rgba(255,212,59,.04);
  animation: rPop .26s cubic-bezier(.34,1.4,.64,1) both;
}

.rdl-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px 11px;
  border-bottom: 1px solid rgba(255,212,59,.10);
  background: #0a1628;
  flex-shrink: 0;
  gap: 10px;
}
.rdl-modal-header-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-title);
  letter-spacing: .25em;
  display: flex; align-items: center; gap: 8px;
  color: var(--text);
}
.rdl-modal-header-title i { opacity: .5; font-size: var(--fs-label); color: var(--accent); }

.rdl-modal-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rdl-help-btn {
  color: rgba(255,212,59,.9);
  border-color: rgba(255,212,59,.3);
  background: rgba(255,212,59,.08);
}
.rdl-help-btn:hover { background: rgba(255,212,59,.1) !important; border-color: rgba(255,212,59,.3) !important; color: var(--accent) !important; }

.rdl-close {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: rgba(210,225,240,.4);
  width: 36px; height: 36px;
  font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  touch-action: manipulation;
  flex-shrink: 0;
}
.rdl-close:hover { background: rgba(255,60,60,.1); border-color: rgba(255,60,60,.25); color: rgba(255,100,100,.9); }

.rdl-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.rdl-modal-columns {
  display: flex;
  flex-direction: row;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.rdl-modal-col {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.06) transparent;
  width: auto;
}

.rdl-modal-col::-webkit-scrollbar { width: 3px; }
.rdl-modal-col::-webkit-scrollbar-thumb { background: rgba(255,255,255,.07); border-radius: 2px; }

.rdl-modal-col-left {
  background: rgba(255,212,59,.02);
  border-right: 1px solid rgba(255,212,59,.08);
}

.rdl-modal-col-right {
  background: rgba(255,255,255,.01);
}

@media (max-width: 680px) {
  .rdl-modal-columns {
    flex-direction: column;
    overflow-y: auto;
  }

  .rdl-modal-col-left {
    border-right: none;
    border-bottom: 1px solid rgba(255,212,59,.08);
  }
}

.rdl-section {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rdl-section:last-child { border-bottom: none; }

.rdl-section--grow {
  flex: 1;
  min-height: 0;
}
.rdl-section .rdl-section-label {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .5em; text-transform: uppercase;
  color: rgba(255,212,59,.65);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.15;
}

.rdl-modal-label-icon {
  font-size: 12px;
  color: rgba(255,212,59,.58);
  opacity: .5;
}

/* Mode toggle */
.rdl-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.rdl-mode-btn {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  padding: 12px 10px;
  border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,.07);
  color: rgba(255,255,255,0.35);
  font-family: 'Barlow Condensed', sans-serif;
  transition: all 0.15s;
  touch-action: manipulation;
}
.rdl-mode-btn i     { font-size: 17px; margin-bottom: 2px; }
.rdl-mode-btn span  { font-size: var(--fs-label); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.rdl-mode-btn small { font-size: 10px; color: rgba(255,255,255,.18); letter-spacing: .04em; text-align: center; }
.rdl-mode-btn:hover { border-color: rgba(255,212,59,.2); color: rgba(255,255,255,.6); background: rgba(255,212,59,.04); }
.rdl-mode-btn.active {
  background: rgba(255,212,59,.08);
  border-color: rgba(255,212,59,.4);
  color: var(--accent);
  box-shadow: 0 0 16px rgba(255,212,59,.07);
}
.rdl-mode-btn.active small { color: rgba(255,212,59,.35); }

/* Compteur */
.rdl-count-row {
  display: flex; align-items: center; justify-content: center; gap: 20px;
}
.rdl-count-btn {
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  color: var(--text); font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.13s;
  user-select: none; touch-action: manipulation;
}
.rdl-count-btn:hover { color: var(--accent); }
.rdl-count-btn:active { transform: scale(0.92); }
.rdl-count-display {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(26px, 4vw, 40px); min-width: 44px;
  text-align: center; color: var(--text); line-height: 1;
}

/* Participants */
.rdl-section-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rdl-section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  align-self: flex-start;
}
.rdl-clear-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 0 12px; height: 30px; border-radius: 6px; cursor: pointer;
  background: transparent;
  border: 1px solid rgba(255,80,80,.3);
  color: rgba(255,80,80,.85);
  display: flex; align-items: center; gap: 6px;
  transition: all 0.15s; touch-action: manipulation;
  white-space: nowrap;
}
.rdl-clear-btn:hover {
  border-color: var(--red); color: var(--red);
  background: rgba(255,60,60,.06);
}

.rdl-input-row { display: flex; gap: 6px; align-items: center; }
.rdl-name-input {
  flex: 1;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 600; letter-spacing: 0.06em;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px; color: var(--text);
  padding: 10px 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
  min-height: 42px;
}
.rdl-name-input:focus { border-color: rgba(255,212,59,.45); box-shadow: 0 0 0 3px rgba(255,212,59,.06); }
.rdl-name-input::placeholder { color: rgba(210,225,240,.3); }

.rdl-add-btn {
  width: 42px; height: 42px; border-radius: 8px;
  background: var(--accent); border: none; color: #0a1628;
  font-size: clamp(14px, 1.8vw, 16px); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: filter .15s, transform .1s; touch-action: manipulation; flex-shrink: 0;
}
.rdl-add-btn:hover { filter: brightness(1.1); }
.rdl-add-btn:active { transform: scale(.92); }

.rdl-participants-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.06) transparent;
}
.rdl-participants-list::-webkit-scrollbar { width: 3px; }
.rdl-participants-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.06); border-radius: 2px; }
.rdl-participants-list:empty::after {
  content: 'Aucun participant ajouté';
  display: block; font-size: var(--fs-control-sm); color: rgba(255,255,255,.15);
  letter-spacing: .06em; padding: 10px 2px;
}

.rdl-prow {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px; padding: 7px 10px;
}
.rdl-prow:hover { 
  border-color: rgba(255,212,59,.16);
  background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.04) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 12px rgba(255,212,59,.08);
}

.rdl-prow-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
  font-size: var(--fs-control);
  font-weight: 700;
  letter-spacing: .04em;
}

.rdl-prow-source {
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.32);
}

.rdl-prow-del {
  background: none;
  border: none;
  color: rgba(210,225,240,.25);
  cursor: pointer;
  font-size: clamp(13px, 1.5vw, 15px);
  padding: 4px 5px;
  border-radius: 4px;
  transition: color .1s, background .1s;
  flex-shrink: 0;
  touch-action: manipulation;
}

.rdl-prow-del:hover {
  color: var(--red);
}

/* Fichiers */
.rdl-import-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 0 12px; height: 30px; border-radius: 6px; cursor: pointer;
  background: transparent;
  border: 1px solid rgba(255,212,59,.3);
  color: rgba(255,212,59,.75);
  transition: all 0.15s; touch-action: manipulation;
  display: flex; align-items: center; gap: 6px;
  margin-left: auto;
}
.rdl-import-btn:hover {
  border-color: var(--accent); color: var(--accent); background: rgba(255,212,59,.06);
}

/* Résumé */
.rdl-summary {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  background: rgba(255,212,59,.03);
  border-top: 1px solid rgba(255,212,59,.07);
  font-size: var(--fs-label); font-weight: 700;
  letter-spacing: .25em; text-transform: uppercase;
  color: rgba(210,225,240,.55);
  text-align: center; justify-content: center;
}
.rdl-summary i { color: rgba(255,212,59,.4); }
#rlSummaryText { color: #c8daea; }

/* Footer */
.rdl-footer {
  display: flex; gap: 10px;
  padding: 12px 20px;
  justify-content: flex-end;
  border-top: 1px solid rgba(255,212,59,.10);
  background: rgba(255,212,59,.025);
  flex-shrink: 0;
}
.rdl-btn-cancel {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: var(--fs-control); font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  padding: 0 20px; height: 36px; border-radius: 8px; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  color: rgba(210,225,240,.6); transition: all .15s;
  white-space: nowrap; display: inline-flex; align-items: center;
}
.rdl-btn-cancel:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,.7);
  border-color: rgba(255,255,255,.18);
}
.rdl-btn-apply {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: var(--fs-control); font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 0 24px; height: 36px; border-radius: 8px; cursor: pointer;
  background: var(--accent); color: #0a1628; border: none;
  box-shadow: 0 3px 14px rgba(255,212,59,.2); transition: all .15s;
  display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap;
}
.rdl-btn-apply:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 5px 22px rgba(255,212,59,.35);
}
.rdl-btn-apply:disabled { opacity: .35; cursor: not-allowed; }

/* Help / Confirm overlays */
.rdl-help-overlay,
.rdl-confirm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.rdl-help-overlay.visible,
.rdl-confirm-overlay.visible {
  display: flex;
}


.rdl-help-card {
  width: min(520px, 92vw);
  max-height: 85dvh;
  display: flex;
  flex-direction: column;
  background: #0b1626;
  border: 1px solid rgba(150,180,210,.16);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.8);
  animation: rPop .24s cubic-bezier(.34,1.4,.64,1) both;
}

.rdl-confirm-card {
  width: min(560px, 94vw);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: #0a1628;
  box-shadow: 0 20px 40px rgba(0,0,0,.45);
}


.rdl-help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: #0f1d31;
}

.rdl-confirm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}


.rdl-help-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-subtitle);
  letter-spacing: .22em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 9px;
}
.rdl-help-title i { color: rgba(255,212,59,.72); }

.rdl-confirm-title {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .14em;
  font-size: clamp(18px, 2.8vw, 22px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}


.rdl-help-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.06) transparent;
  color: rgba(255,255,255,.86);
}

.rdl-confirm-body {
  padding: 14px 16px;
  color: rgba(255,255,255,.86);
}


.rdl-help-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.rdl-help-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  line-height: 1;
  letter-spacing: .06em;
  color: rgba(255,212,59,.72);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  margin-top: 1px;
}

.rdl-help-step strong {
  display: block;
  font-size: var(--fs-control);
  font-weight: 700;
  letter-spacing: .04em;
  color: #eef4fa;
  margin-bottom: 4px;
}

.rdl-help-step p {
  font-size: var(--fs-body);
  font-weight: 500;
  color: rgba(220,232,244,.78);
  line-height: 1.6;
  letter-spacing: .02em;
  margin-top: 0;
}

.rdl-help-step em {
  color: var(--accent);
  font-style: normal;
}

.rdl-help-step code {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: .9em;
  color: #d8e3ee;
  font-family: monospace;
}

.rdl-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 16px 16px;
}

.rdl-btn-danger {
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,80,80,.35);
  background: rgba(255,80,80,.15);
  color: #ffd5d5;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rdl-btn-danger:hover {
  background: rgba(255,80,80,.22);
  border-color: rgba(255,80,80,.55);
}


/* ════════════════════════════════════════
   FOCUS OVERLAY — clic sur une carte
════════════════════════════════════════ */
.teams-focus-overlay {
  display: none;
  position: fixed; inset: 0;
  z-index: 9000;
  background: rgba(6,20,40,0.94);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
}
.teams-focus-overlay.active {
  display: flex;
  animation: rFadeIn 0.2s ease;
}

.teams-focus-card {
  width: min(560px, 90vw);
  max-height: 80dvh;
  display: flex;
  flex-direction: column;
  background: #0d0d18;
  border: 1px solid rgba(255,212,59,0.15);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.9), 0 0 40px rgba(255,212,59,0.05);
  animation: rPop 0.28s cubic-bezier(0.34,1.4,0.64,1);
}
.teams-focus-header {
  padding: 20px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,212,59,0.04);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.teams-focus-title {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.45em; text-transform: uppercase;
  color: var(--accent);
}
.teams-focus-close {
  background: none; border: none;
  color: rgba(255,255,255,0.3);
  font-size: 16px; cursor: pointer;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s; touch-action: manipulation;
  border-radius: 50%;
}
.teams-focus-close:hover { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.06); }

.teams-focus-body {
  padding: 24px 28px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px;
}
.teams-focus-member {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.92); line-height: 1.25;
}


/* ════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cardIn {
  from { opacity: 0; transform: scale(0.93) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes chipIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes rFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes rPop {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, .team-card, .teams-focus-card {
    animation: none !important;
    transition: none !important;
  }
}

/* Touch */
@media (hover: none) and (pointer: coarse) {
  .team-card:hover  { transform: none; }
  .team-card:active { opacity: 0.85; }
}