:root {
  --bg-deep:       #070a0f;
  --bg-dark:       #0d1117;
  --bg-card:       #111820;
  --bg-card2:      #161e28;
  --border:        #1e2d3d;
  --border-bright: #2a3f57;
  --gold:          #c9a84c;
  --gold-light:    #e8c96a;
  --gold-dim:      #7a6530;
  --red:           #b52a2a;
  --red-bright:    #e03535;
  --text-primary:  #f0f2f8;
  --text-secondary:#c4d4e4;
  --text-muted:    #93acc1;
  --green:         #2ecc71;
  --steel:         #4a90c9;
  --steel-light:   #6bb3ea;
  --steel-dim:     #2c5a80;
  --purple:        #9b6fd1;
  --purple-dim:    rgba(155,111,209,.3);
  --font-display:  'Cinzel', serif;
  --font-body:     'Raleway', sans-serif;
  --font-num:      'Rajdhani', sans-serif;
  --shadow:        0 4px 30px rgba(0,0,0,0.6);
  --glow-gold:     0 0 20px rgba(201,168,76,0.25);
  --transition:    all 0.3s cubic-bezier(0.4,0,0.2,1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(7,10,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 2rem;
}
.nav-logo {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { height: 56px; width: auto; }
.nav-logo svg { width: 56px; height: 56px; }
.nav-links {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}
.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim)) !important;
  color: var(--bg-deep) !important;
  font-weight: 700 !important;
  padding: 0.5rem 1.2rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem;
  line-height: 1 !important;
}
.nav-cta:hover { filter: brightness(1.15); background: var(--gold-light) !important; }
.nav-admin {
  background: linear-gradient(135deg, var(--steel), var(--steel-dim)) !important;
  color: #fff !important;
}
.nav-admin:hover { filter: brightness(1.15); background: var(--steel-light) !important; }
.nav-hamburger {
  grid-column: 3;
  justify-self: end;
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }

  /* Le logo "latéral" peut être très large une fois mis à l'échelle par height :
     on le plafonne pour qu'il ne pousse jamais le hamburger hors de l'écran. */
  .nav-logo {
    min-width: 0;
  }
  .nav-logo img {
    height: 40px;
    max-width: 160px;
    width: auto;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem;
    gap: 0.25rem;
    border-top: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
  }

  .nav-cta {
    margin-top: 0.25rem;
    text-align: center;
  }
}
.page-wrapper { padding-top: 72px; }
#formulaire-adhesion { scroll-margin-top: 90px; }
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-deep);
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201,168,76,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(181,42,42,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(181,42,42,0.06) 0%, transparent 60%);
}
.hero-cards {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-card-float {
  position: absolute;
  font-size: 6rem;
  opacity: 0.04;
  animation: floatCard 20s ease-in-out infinite;
  user-select: none;
}
.hero-card-float:nth-child(1) { top: 15%; left: 8%; animation-delay: 0s; font-size: 5rem; }
.hero-card-float:nth-child(2) { top: 65%; left: 5%; animation-delay: 3s; font-size: 7rem; }
.hero-card-float:nth-child(3) { top: 20%; right: 8%; animation-delay: 6s; font-size: 8rem; }
.hero-card-float:nth-child(4) { top: 70%; right: 10%; animation-delay: 9s; font-size: 5rem; }
.hero-card-float:nth-child(5) { top: 45%; left: 50%; animation-delay: 12s; font-size: 9rem; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  33% { transform: translateY(-20px) rotate(3deg); }
  66% { transform: translateY(10px) rotate(-8deg); }
}
.hero-divider {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-dark));
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
.hero-badge::before { content: '♠'; }
.hero-badge::after  { content: '♠'; }
.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  font-style: italic;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--bg-deep);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201,168,76,0.35);
  color: var(--bg-deep);
  filter: brightness(1.1);
}
.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.4);
}
.btn-secondary:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
  transform: translateY(-2px);
  color: var(--gold-light);
}
.icon-main { color:var(--gold); display:flex;align-items:center;justify-content:center;line-height:1; }
.icon-side {color:var(--gold); display:flex;align-items:center;justify-content:center;line-height:1; }
.poker-icon {
    display: inline-block;
    font-size: 1.5em; /* Taille globale augmentée */
    vertical-align: middle;
    margin-right: 12px;
    line-height: 1;
}
.tab-icon {
    display: inline-block;
    font-size: 1.4em;
    margin-right: 8px;
    vertical-align: middle;
    transition: all 0.3s ease;
}
.icon-str  { color: #95a5a6; }
.nav-tab.active .tab-icon {
    transform: scale(1.2);
    filter: brightness(1.2);
}
.icon-live-dot {
    color: #ff0000;
    animation: blinker 1.5s linear infinite;
}
@keyframes blinker {
    50% { opacity: 0; }
}
.icon-info  { color: #9b59b6; }
.icon-str   { color: #95a5a6; }
.icon-money { color: #f1c40f; }
@keyframes shake {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    50% { transform: rotate(-10deg); }
    75% { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}
.section {
  padding: 5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-label {
  font-family: var(--font-body);
  font-size: clamp(1rem, 3vw, 1.8rem); /* 🔥 plus impactant */
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.8rem); /* 🔥 plus impactant */
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
    letter-spacing: -0.02em; /* petit effet premium */
}
.section-title .highlight {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.25rem auto 0;
}
.section-dark { background: var(--bg-dark); }
.stats-bar {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
}
.stats-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}
.stat-item {
  background: var(--bg-dark);
  padding: 0.75rem 1.25rem;
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--glow-gold);
  transform: translateY(-3px);
}
.card-header {
  background: linear-gradient(135deg, var(--bg-card2), var(--bg-card));
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.card-icon {
  width: 36px;
  height: 36px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
}
.card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}
.card-body { padding: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-2-sm { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.tournoi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition);
}
.tournoi-card:hover {
  border-color: var(--gold-dim);
  box-shadow: var(--glow-gold);
}
.tournoi-card-top {
  background: linear-gradient(135deg, #1a2535, #0d1420);
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.tournoi-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}
.tournoi-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}
.tournoi-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
}
.tournoi-info { padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.tournoi-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.tournoi-row-label { color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; }
.tournoi-row-value { color: var(--text-primary); font-weight: 600; font-family: var(--font-num); }
.tournoi-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
}
.evenements-encadres {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 800px) {
  .evenements-encadres { grid-template-columns: 1fr 1fr; align-items: start; }
}
.encadre-event {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.encadre-event-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #1a2535, #0d1420);
  border-bottom: 1px solid var(--border);
}
.encadre-event-logo { width: 32px; height: 32px; object-fit: contain; border-radius: 5px; flex-shrink: 0; }
.encadre-event-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}
.encadre-event-body { padding: 0 1.5rem 1.5rem; }
.home-section-events { padding: 4rem 2rem; }
.home-events-container { max-width: 1280px; margin: 0 auto; }
.home-section-news { padding: 5rem 2rem; }
.home-cta-section { padding: 5rem 2rem; max-width: 1280px; margin: 0 auto; }
.home-cta-narrow { max-width: 700px; margin: 0 auto; text-align: center; }
.home-cta-text { font-size: 1rem; line-height: 1.8; margin-bottom: 2rem; }
.btn-cta-centered { display: block; max-width: 280px; margin: 2rem auto 0; text-align: center; }
.tournoi-card-flat { border: none; }
.tournoi-card-top-flat { padding: 1.25rem 0 0; background: none; border: none; }
.tournoi-card-top-flat-sep { padding: 1rem 0 0; border-top: 1px solid var(--border); margin-top: .75rem; }
.tournoi-info-flat { padding: 1.25rem 0; }
.tournoi-footer-flat { padding: 1rem 0 0; }
.badge-wrap-mt { display: inline-block; margin-top: .5rem; }
.btn-flex-center { flex: 1; justify-content: center; }
.btn-flex-center-disabled { flex: 1; justify-content: center; cursor: default; }
.opacity-60 { opacity: .6; }
.opacity-50 { opacity: .5; }
.empty-tournoi-slot { padding: 1.25rem 0; }
.blinds-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-num);
  font-size: 0.85rem;
}
.blinds-table th {
  background: var(--bg-card2);
  padding: 0.6rem 1rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.blinds-table td {
  padding: 0.55rem 1rem;
  border-bottom: 1px solid rgba(30,45,61,0.5);
  color: var(--text-secondary);
}
.blinds-table tr:hover td { background: rgba(201,168,76,0.03); }
.blinds-table .current-level td { background: rgba(201,168,76,0.06); color: var(--gold); }
.rank-table {
  width: 100%;
  border-collapse: collapse;
}
.rank-table th {
  background: var(--bg-card2);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.rank-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(30,45,61,0.4);
  font-family: var(--font-num);
  font-size: 0.9rem;
  color: var(--text-secondary);
  vertical-align: middle;
}
.rank-table tr:hover td { background: rgba(201,168,76,0.03); }
.rank-pos {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 50px;
}
.rank-pos.gold  { color: #ffd700; }
.rank-pos.silver{ color: #c0c0c0; }
.rank-pos.bronze{ color: #cd7f32; }
.rank-name { font-family: var(--font-body); font-weight: 600; color: var(--text-primary); }
.rank-points { font-weight: 700; color: var(--gold); font-size: 1rem; }
.hero-avatar-wrap { display: flex; align-items: center; justify-content: center; gap: 1rem; position: relative; }
.hero-avatar-inner { position: relative; }
.hero-avatar-img {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--gold); cursor: pointer;
}
.hero-avatar-placeholder {
  width: 96px; height: 96px; border-radius: 50%; background: rgba(255,255,255,.15);
  align-items: center; justify-content: center; font-size: 2.4rem; font-weight: 300;
  color: var(--gold); cursor: pointer; border: 3px dashed var(--gold);
}
.hero-title-flush { margin: 0; }
.rank-summary-body { text-align: center; padding: 1.5rem; }
.rank-summary-number { font-size: 3rem; font-weight: 800; color: var(--gold); font-family: var(--font-num); }
.rank-summary-suffix { font-size: 1.2rem; }
.rank-summary-total { color: var(--text-muted); font-size: .85rem; }
.rank-summary-points { margin-top: .75rem; font-size: 1.1rem; color: var(--text-secondary); }
.rank-summary-empty { color: var(--text-muted); }
.table-empty-state { text-align: center; padding: 1.5rem; color: var(--text-muted); font-size: .9rem; }
.td-secondary-sm { color: var(--text-secondary); font-size: .85rem; }
.card-title-lg { font-size: 1.1rem; }
.section-title-row { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.inscription-row { display: flex; justify-content: space-between; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.inscription-title { font-weight: 600; color: var(--text-primary); }
.inscription-sub { font-size: .82rem; color: var(--text-muted); }
.inscription-date { color: var(--gold); font-size: .9rem; font-weight: 600; }
.card-header-between { justify-content: space-between; }
.card-header-title-group { display: flex; align-items: center; gap: .75rem; }
.btn-toggle-sm { font-size: .8rem; padding: .35rem .85rem; }
.profil-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.profil-table td:first-child { color: var(--text-muted); padding: .4rem 0; width: 40%; }
.profil-table td:last-child { color: var(--text-primary); padding: .4rem 0; font-weight: 500; }
.profil-label-icon { display: inline-flex; align-items: center; gap: .35rem; }
.profil-label-logo { height: 14px; width: 14px; object-fit: contain; flex-shrink: 0; }
.form-label-icon { display: flex; align-items: center; gap: .4rem; }
.form-label-logo { height: 16px; width: 16px; object-fit: contain; }
.form-file-hidden { display: none; }
.form-row-mt { margin-top: .5rem; }
.form-divider { border-color: var(--border); margin: 1.25rem 0; }
.form-hint-block { color: var(--text-muted); font-size: .82rem; margin-bottom: 1rem; }
.form-btn-row { display: flex; gap: .75rem; margin-top: .75rem; }
.card-body-notop { padding-top: 0; }
.form-align-left { text-align: left; }
.theme-toggle-label { display: flex; align-items: center; gap: .65rem; cursor: pointer; font-size: .85rem; padding: .6rem .75rem; background: var(--bg-card2); border-radius: 4px; margin-bottom: .5rem; }
.accent-gold { accent-color: var(--gold); }
.pwa-install-card { display: none; margin-bottom: 1.25rem; }
.pwa-install-text { font-size: .85rem; margin-bottom: 1rem; }
.pwa-ios-text { display: none; font-size: .8rem; margin-top: .75rem; }
.status-card-body { text-align: center; padding: 2rem 1.5rem; }
.status-icon-lg { font-size: 3.5rem; margin-bottom: .5rem; }
.status-title { font-size: 1.1rem; font-weight: 700; }
.status-title-danger { color: #e07070; }
.status-title-gold { color: var(--gold); }
.status-title-green { color: var(--green); }
.status-sub { color: var(--text-muted); font-size: .85rem; margin-top: .5rem; }
.status-action { margin-top: .75rem; }
.status-footer-sep { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.crop-modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.75);
  z-index: 9999; align-items: center; justify-content: center; padding: 1rem;
}
.crop-modal-box {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
  padding: 1.5rem; max-width: 340px; width: 100%; text-align: center;
}
.crop-modal-title { font-weight: 700; margin-bottom: 1rem; color: var(--text-primary); }
.crop-viewport {
  position: relative; width: 240px; height: 240px; margin: 0 auto; overflow: hidden;
  border-radius: 50%; background: #111; cursor: grab; touch-action: none; border: 2px solid var(--gold);
}
.crop-image {
  position: absolute; left: 0; top: 0; transform-origin: 0 0; user-select: none;
  -webkit-user-drag: none; max-width: none !important; max-height: none !important;
  min-width: 0 !important; min-height: 0 !important;
}
.crop-modal-hint { font-size: .78rem; color: var(--text-muted); margin-top: .75rem; }
.crop-zoom-range { width: 100%; margin-top: .5rem; }
.crop-modal-actions { display: flex; gap: .6rem; margin-top: 1.25rem; }
.crop-modal-actions .btn { flex: 1; }
.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.amount-btn {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-num);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem;
  border-radius: 3px;
  cursor: pointer;
  transition: var(--transition);
}
.amount-btn:hover, .amount-btn.selected {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
  color: var(--gold);
}
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: 3px;
  transition: var(--transition);
  outline: none;
}
.form-input:hover, .form-textarea:hover, .form-select:hover {
  background: rgba(255, 255, 255, 0.13);  /* Fond plus clair au passage de la souris */
  border-color: rgba(201, 168, 76, 0.5);   /* Contour légèrement doré */
  cursor: pointer;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--gold-dim);
  background: rgba(201,168,76,0.08);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.2);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); opacity: 0.7; }
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.75) brightness(1.3);
  cursor: pointer;
  opacity: 0.85;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}
input[type="date"], input[type="datetime-local"], input[type="time"] {
  color-scheme: light;
}
.form-input[type="date"],
.form-input[type="datetime-local"],
.form-input[type="time"],
.form-input[type="month"],
.form-input[type="week"] {
  color-scheme: light;
}
.form-input[type="date"]::-webkit-calendar-picker-indicator,
.form-input[type="datetime-local"]::-webkit-calendar-picker-indicator,
.form-input[type="time"]::-webkit-calendar-picker-indicator,
.form-input[type="month"]::-webkit-calendar-picker-indicator,
.form-input[type="week"]::-webkit-calendar-picker-indicator {
  filter: invert(0.75) brightness(1.4);
  cursor: pointer;
  opacity: 0.85;
}
.form-input[type="date"]::-webkit-calendar-picker-indicator:hover,
.form-input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
.form-input[type="time"]::-webkit-calendar-picker-indicator:hover,
.form-input[type="month"]::-webkit-calendar-picker-indicator:hover,
.form-input[type="week"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(70%) brightness(1.3);
  cursor: pointer;
  opacity: 0.85;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}
input[type="date"], input[type="datetime-local"], input[type="time"] {
  color-scheme: light;
}
.form-textarea { resize: vertical; min-height: 130px; }
.form-select option { background: var(--bg-card); color: var(--text-primary); }
.form-select { color-scheme: dark; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
select {
  color-scheme: dark;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-bright);
  color: var(--text-primary);
  border-radius: 4px;
  padding: 0.5rem 0.7rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition);
}
select:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: var(--gold);
}
select option {
  background: var(--bg-card2); /* Conserve un fond sombre lisible pour la liste déroulante */
  color: var(--text-primary);
}
.accordion { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: none; }
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  background: var(--bg-card);
  transition: var(--transition);
  user-select: none;
}
.accordion-header:hover { background: var(--bg-card2); }
.accordion-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}
.accordion-icon {
  color: var(--gold);
  font-size: 1.2rem;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body {
  display: none;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(201,168,76,0.02), transparent);
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
  border-top: 1px solid var(--border);
}
.accordion-item.open .accordion-body { display: block; }
.page-hero {
  padding: 5rem 2rem 3rem;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-deep) 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(201,168,76,0.06), transparent);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.page-hero-label::before, .page-hero-label::after {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--gold-dim);
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-primary);
}
.page-hero-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 0.75rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.honeypot-field { display: none; visibility: hidden; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2rem;
  align-items: start;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-info-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.contact-info-value {
  font-size: 0.95rem;
  color: var(--text-primary);
}
.notice {
  display: block;
  padding: 1rem 1.25rem;
  border-radius: 3px;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.notice-info  { background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.2); color: var(--gold); }
.notice-warn  { background: rgba(181,42,42,0.08); border: 1px solid rgba(181,42,42,0.2); color: #e07070; }
.notice-error { background: rgba(181,42,42,0.08); border: 1px solid rgba(181,42,42,0.2); color: #e07070; }
.notice-success { background: rgba(46,204,113,0.08); border: 1px solid rgba(46,204,113,0.2); color: var(--green); }
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 1.5rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.footer-social { display: flex; gap: 0.75rem; }
.social-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 0.9rem;
}
.social-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,0.08); }
.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-warning {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
@media (max-width: 1024px) {
  /* Grilles */
  .grid-3       { grid-template-columns: repeat(2, 1fr); }
  .grid-4       { grid-template-columns: repeat(2, 1fr); }
  .prizes-grid  { grid-template-columns: repeat(2, 1fr); }
  .stats-grid   { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid  {
    grid-template-columns: 1fr 1fr;
    row-gap: 2rem;
  }
  /* La marque (logo/tagline/réseaux) et les partenaires prennent toute la
     largeur ; navigation et informations se partagent les 2 colonnes. */
  .footer-grid > *:first-child,
  .footer-grid > *:last-child {
    grid-column: 1 / -1;
  }
  .amount-grid  { grid-template-columns: repeat(3, 1fr); }

  /* Section */
  .section { padding: 3.5rem 1.5rem; }

  /* Page hero */
  .page-hero { padding: 4rem 1.5rem 2.5rem; }

  /* Admin sidebar plus étroite */
  .admin-sidebar { width: 190px; }
  .admin-content { padding: 1.5rem; }
}
@media (max-width: 768px) {
  /* ── Navigation ── */
  .nav { padding: 0 1rem; height: 60px; }
  .page-wrapper { padding-top: 60px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: rgba(7,10,15,0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.25rem;
    z-index: 800;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .nav-links.open li { width: 100%; text-align: center; }
  .nav-links.open a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-radius: 3px;
    text-align: center;
  }
  .nav-links.open a.nav-cta {
    justify-content: center !important;
  }
  .nav-hamburger { display: flex; }

  /* ── Grilles → 1 colonne ── */
  .grid-2, .grid-3, .grid-4, .grid-2-sm { grid-template-columns: 1fr; }
  .prizes-grid  { grid-template-columns: 1fr; }
  .form-row     { grid-template-columns: 1fr; }
  .amount-grid  { grid-template-columns: repeat(2, 1fr); }
  .stats-grid   { grid-template-columns: repeat(2, 1fr); }

  /* ── Hero ── */
  .hero-content { padding: 1.5rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 300px; justify-content: center; }
  .hero-card-float { display: none; } /* Masque les cartes animées sur mobile */

  /* ── Section ── */
  .section { padding: 2.5rem 1rem; }
  .section-header { margin-bottom: 2rem; }
  .page-hero { padding: 3rem 1rem 2rem; }
  .page-hero-sub { font-size: 0.88rem; }

  /* ── Cards ── */
  .card-body { padding: 1rem; }
  .card-header { padding: 1rem; }

  /* ── Tournoi cards ── */
  .tournoi-footer { flex-direction: column; gap: 0.5rem; }
  .tournoi-footer .btn { width: 100%; justify-content: center; }

  /* ── Tables ── */
  .rank-table, .blinds-table { font-size: 0.8rem; }
  .rank-table th, .rank-table td,
  .blinds-table th, .blinds-table td { padding: 0.5rem 0.6rem; }

  /* ── Notices ── */
  .notice { font-size: 0.82rem; padding: 0.75rem 1rem; }

  /* ── Tabs ── */
  .tabs { flex-wrap: wrap; }
  .tab-btn { padding: 0.65rem 0.85rem; font-size: 0.7rem; }

  /* ── Communication ── */
  .comm-section-title { font-size: 0.85rem; }
  .msg-toolbar { flex-direction: column; align-items: stretch; }
  .msg-tabs { justify-content: center; }
  .msg-card-head { flex-direction: column; align-items: flex-start; }
  .msg-card-head-right { width: 100%; justify-content: space-between; }
  .msg-reponse-actions { flex-direction: column; }
  .msg-reponse-actions .btn,
  .msg-reponse-actions .btn-xs { width: 100%; text-align: center; }
  #cartes-cible { grid-template-columns: 1fr 1fr !important; }

  /* ── Modal ── */
  .modal { margin: 0.5rem; max-height: 95vh; }
  .modal-body { padding: 1rem; }

  /* ── Footer ── */
  .footer { padding: 2rem 1rem 1rem; }
  .footer-grid { gap: 1.75rem 1.25rem; }
  .footer-brand { text-align: center; }
  .footer-logo { justify-content: center; }
  .footer-social { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* ── Contact ── */
  .contact-grid { grid-template-columns: 1fr; }

  /* ── Membership ── */
  .membership-box { padding: 1.5rem; }

  /* ── Stats bar ── */
  .stats-bar { padding: 0.85rem 1rem; }
  .stat-number { font-size: 1.35rem; }
  .stat-item { padding: 0.6rem 1rem; }

  /* Note : les règles .admin-sidebar / .admin-hamburger / .admin-sidebar-overlay
     pour le mobile ont été retirées d'ici — elles faisaient doublon avec le bloc
     "🔐 ADMIN AUTH" plus bas (~ligne 2189+) et entraient en conflit avec lui
     (inset:0 sur .admin-sidebar.open forçait top:0 et cachait la croix de
     fermeture sous le menu). Voir le bloc @media(max-width:768px) après
     "ADMIN AUTH" pour la version actuelle. */

  /* Tables admin scrollables */
  .admin-table { font-size: 0.78rem; }
  .admin-table th { padding: 0.45rem 0.6rem; font-size: 0.65rem; }
  .admin-table td { padding: 0.5rem 0.6rem; }

  /* Formulaires admin */
  .admin-card-body { padding: 1rem; }
  .admin-card-header { padding: 0.75rem 1rem; }
}
@media (max-width: 480px) {
  /* Grilles */
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .grid-4      { grid-template-columns: 1fr; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .prizes-grid { grid-template-columns: 1fr; }

  /* Hero */
  .hero-title { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .hero-badge { font-size: 0.62rem; letter-spacing: 0.15em; }

  /* Section */
  .section { padding: 2rem 0.85rem; }

  /* Page hero */
  .page-hero { padding: 2.5rem 0.85rem 1.5rem; }
  .page-hero-title { font-size: clamp(1.6rem, 8vw, 2.5rem); }

  /* Buttons */
  .btn { font-size: 0.75rem; padding: 0.75rem 1.25rem; }

  /* Tabs */
  .tab-btn { padding: 0.65rem 0.75rem; font-size: 0.68rem; }

  /* Communication */
  #cartes-cible { grid-template-columns: 1fr !important; }

  /* Stat bar */
  .stat-number { font-size: 1.2rem; }
  .stat-label  { font-size: 0.6rem; letter-spacing: 0.08em; }
  .stat-item   { padding: 0.6rem 0.5rem; }

  /* Tournoi card */
  .tournoi-card-top { padding: 1rem; }
  .tournoi-info     { padding: 1rem; }

  /* Modal plein écran sur très petit mobile */
  .modal { margin: 0; border-radius: 0; max-height: 100vh; height: 100%; }

  /* Footer */
  .footer-grid { gap: 1.5rem 1rem; }
  .footer-bottom { font-size: 0.7rem; }

  /* Admin */
  .admin-content { padding: 0.75rem; }
  .admin-table th { display: none; }  /* Masque les en-têtes sur très petit écran */
  .admin-table td {
    display: block;
    padding: 0.35rem 0.6rem;
    border-bottom: none;
  }
  .admin-table td::before {
    content: attr(data-label);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.1rem;
  }
  .admin-table tr {
    display: block;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
  }

  /* ── Étapes (admin) : carte compacte plutôt que l'empilement générique ── */
  .etapes-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .6rem;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: .7rem .85rem;
    margin-bottom: .6rem;
  }
  .etapes-table tbody td {
    display: block;
    padding: 0;
    border-bottom: none;
  }
  .etapes-table tbody td::before { content: none; }
  .etapes-table .etape-col-numero { order: 1; }
  .etapes-table .etape-col-label { order: 2; flex: 1 1 110px; font-size: .9rem; }
  .etapes-table .etape-col-statut { order: 3; }
  .etapes-table .etape-col-dates.col-hide-mobile { display: block !important; order: 4; flex: 0 0 100%; font-size: .72rem; }
  .etapes-table .etape-actions { order: 5; flex: 0 0 100%; justify-content: flex-end; padding-top: .5rem; margin-top: .1rem; border-top: 1px solid var(--border); }
  .etapes-table tbody td[colspan] { flex: 1 1 100%; text-align: center; padding: 1rem 0 !important; }
}
@media (hover: none) {
  .card:hover       { transform: none; box-shadow: none; }
  .btn:hover        { transform: none; }
  .btn-primary:hover{ transform: none; }
  .btn-secondary:hover { transform: none; }
}
.text-gold    { color: var(--gold); }
.text-muted   { color: var(--text-muted); }
.full-width { width: 100%; }
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes rotateHint { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(90deg); } }
.chrono-center.hidden { display: none; }
.lot-badge.gold { background: rgba(201, 168, 76, .15); border: 1px solid rgba(201, 168, 76, .3); color: var(--gold); }
.lot-badge.silver { background: rgba(192, 192, 192, .1); border: 1px solid rgba(192, 192, 192, .25); color: #c0c0c0; }
.lot-badge.bronze { background: rgba(205, 127, 50, .1); border: 1px solid rgba(205, 127, 50, .25); color: #cd7f32; }
.admin-sidebar-item.active { background: rgba(201, 168, 76, .1); color: var(--gold); border-left: 2px solid var(--gold); }
.tg-sidebar-item.active { background: rgba(201, 168, 76, .08); color: var(--gold); }
.paiement-card { background: var(--bg-card2); border: 2px solid var(--border); border-radius: 4px; padding: .9rem 1rem; transition: var(--transition); cursor: pointer; }
.paiement-card.selected { background: rgba(201, 168, 76, .07); border-color: var(--gold); }
.paiement-card-header { display: flex; align-items: center; gap: .6rem; margin-bottom: .3rem; }
.paiement-card-icon { font-size: 1.1rem; }
.paiement-card-name { font-weight: 700; font-size: .88rem; color: var(--text-primary); }
.paiement-card-desc { font-size: .75rem; color: var(--text-muted); line-height: 1.4; }
.section-highlight { background: linear-gradient(135deg, rgba(201, 168, 76, .12), rgba(201, 168, 76, .04)); border: 2px solid var(--gold); border-radius: 10px; padding: 1.25rem 1.75rem; text-align: center; }
.section-highlight-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--gold); margin-bottom: .4rem; }
.section-highlight-price { font-family: var(--font-display); font-size: 2.5rem; font-weight: 900; color: var(--gold); }
.section-highlight-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.section-highlight-desc { font-size: .82rem; color: var(--text-muted); margin-top: .35rem; }
.etape-selector { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.etape-btn { padding: .5rem 1rem; border-radius: 3px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.etape-btn.active { background: rgba(201, 168, 76, .15); border: 1px solid rgba(201, 168, 76, .4); color: var(--gold); }
.etape-btn:not(.active) { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); }
.etape-btn:hover:not(.active) { border-color: var(--gold-dim); color: var(--text-secondary); }
.etape-header { background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; padding: 1.5rem; margin-bottom: 2rem; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem; }
.etape-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--text-primary); }
.statut-badge { background: rgba(46, 204, 113, .1); border: 1px solid rgba(46, 204, 113, .3); color: var(--green); font-size: .72rem; font-weight: 700; letter-spacing: .1em; padding: .25rem .75rem; border-radius: 2px; white-space: nowrap; }
.statut-badge.upcoming { background: rgba(74, 184, 216, .1); border-color: rgba(74, 184, 216, .3); color: #4ab8d8; }
.statut-badge.live { background: rgba(224, 53, 53, .15); border-color: rgba(224, 53, 53, .35); color: #e03535; animation: pulse 2s infinite; }
.etape-content { position: relative; width: 100%; background: #08090c; border-radius: 6px; overflow: hidden; border: 1px solid rgba(201, 168, 76, .3); }
.etape-iframe { width: 100%; height: calc(100vh - 220px); min-height: 500px; border: none; display: block; }
.tournoi-info-table { width: 100%; border-collapse: collapse; }
.tournoi-info-table tr { border-bottom: 1px solid var(--border); }
.tournoi-info-table td { padding: .55rem 0; font-size: .78rem; }
.tournoi-info-table .label { color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; width: 45%; }
.tournoi-info-table .value { font-family: var(--font-num); font-weight: 600; color: var(--text-primary); }
.live-badge { background: rgba(224, 53, 53, .15); border: 1px solid rgba(224, 53, 53, .35); color: #e03535; font-size: .65rem; font-weight: 700; letter-spacing: .1em; }
.grid-2-gap-sm { gap: 1.5rem; }
@media (max-width: 1024px) { .grid-2-sm { gap: 1.25rem; } }
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.benefit-category-label.gold { color: var(--gold); }
.benefit-icon.gold { color: var(--gold); }
.form-section-title { font-family: var(--font-display); font-size: .95rem; color: var(--gold); margin-bottom: 1.1rem; padding-bottom: .4rem; border-bottom: 1px solid var(--border); letter-spacing: .05em; }
.form-section-title + * { margin-top: 1.75rem; }
.form-section-title-spaced { margin-top: 1.75rem; }
.form-help { font-size: .75rem; color: var(--text-muted); margin-top: .35rem; }
.btn-lg-justify { justify-content: center; font-size: .9rem; padding: .9rem; }
.form-note-center { font-size: .78rem; color: var(--text-muted); text-align: center; margin-top: .9rem; }
.card-footer-note { text-align: center; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: .875rem; color: var(--text-muted); }
.montant-recap { font-size: .85rem; color: var(--gold); text-align: center; margin-bottom: 1rem; }
.form-note-center-sm { font-size: .75rem; color: var(--text-muted); text-align: center; margin-top: .75rem; }
.card-footer-center { margin-top: 1.5rem; text-align: center; }
.paiement-choices { display: grid; grid-template-columns: 1fr; gap: .75rem; margin-bottom: 1.25rem; }
.paiement-label { cursor: pointer; }
.paiement-radio-hidden { display: none; }
.info-row { flex-direction: column; align-items: flex-start; gap: .25rem; }
.info-value { color: var(--text-secondary); font-size: .88rem; }
.table-seat.empty { opacity: .4; }
.text-green { color: var(--green); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-md { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 1.5rem; }
.mt-xl { margin-top: 2rem; }
.mb-125 { margin-bottom: 1.25rem; }
.mb-xl { margin-bottom: 2.5rem; }
.text-92 { font-size: .92rem; }
.gold-gradient-text { background: linear-gradient(135deg, var(--gold-light), var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.mb-md { margin-bottom: 1rem; }
.mb-lg { margin-bottom: 1.5rem; }
#voice-select, 
.form-group select.form-input,
.form-group select.form-control {
    background-color: #1a2533 !important; /* Couleur solide nettement plus claire que le fond du site */
    color: var(--text-primary) !important;
    border: 1px solid var(--border-bright) !important;
    border-radius: 6px;
    height: 38px;
    padding: 0 10px;
    cursor: pointer;
    transition: var(--transition);
}
#voice-select:hover, 
.form-group select.form-input:hover,
.form-group select.form-control:hover {
    background-color: #233245 !important;
    border-color: var(--gold) !important;
}
#voice-select:focus {
    outline: none;
    border-color: var(--primary-color, #007bff) !important;
}
.hero-logo { height: 240px; width: auto; filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.3)); }
.text-secondary { color: var(--text-secondary); }
.font-weight-bold { font-weight: 700; }
.etape-card.active { background: linear-gradient(135deg, rgba(201, 168, 76, .06), var(--bg-card)); border-color: rgba(201, 168, 76, .25); }
.etape-num.active { color: var(--gold); }
.card-mb { margin-bottom: 1.5rem; }
.card-body-compact { padding: .5rem 1.5rem 1rem; }
.card-body-flat { padding: 0; }
.text-gold { color: var(--gold); }
.contact-icon-bold { font-weight: 700; }
.accordion-title-sm { font-size: .88rem; }
.accordion-body-sm { font-size: .85rem; }
.notice-mb { margin-bottom: 1.5rem; }
.consent-box { background: var(--bg-card2); border: 1px solid var(--border); border-radius: 3px; padding: 1rem; margin: 1.25rem 0; }
.consent-label { display: flex; align-items: flex-start; gap: .75rem; cursor: pointer; }
.consent-checkbox { margin-top: 3px; accent-color: var(--gold); }
.consent-text { font-size: .85rem; color: var(--text-secondary); line-height: 1.6; }
.btn-justify { justify-content: center; }
.auth-narrow { max-width: 480px; margin: 0 auto; }
.auth-narrow-md { max-width: 640px; margin: 0 auto; }
.auth-checkbox-row { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem; }
.auth-checkbox-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; }
.auth-checkbox-row label { font-size: .875rem; color: var(--text-secondary); cursor: pointer; }
.auth-footer-link { text-align: center; margin-top: 1.25rem; font-size: .875rem; }
.auth-footer-link-sm { text-align: center; margin-top: .6rem; font-size: .875rem; color: var(--text-muted); }
.auth-helper-text { color: var(--text-secondary); margin-bottom: 1.25rem; font-size: .9rem; }
.auth-hint { color: var(--text-muted); font-size: .8rem; }
.btn-sm { font-size: .78rem; padding: .6rem 1.2rem; }
.etape-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.etape-filter-label { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; line-height: 2.2; }
.notice-mb-lg { margin-bottom: 2rem; }
.td-muted-sm { color: var(--text-muted); font-size: .82rem; }
.empty-state { padding: 2rem; text-align: center; color: var(--text-muted); }
.etape-header { margin-bottom: 1.5rem; }
.etape-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--text-primary); }
.etape-meta { font-size: .88rem; color: var(--text-muted); }
.content-narrow { max-width: 860px; margin: 0 auto; }
.hand-name { font-weight: 700; color: var(--text-primary); font-size: 1rem; }
.hand-desc { font-size: .82rem; color: var(--text-muted); margin-top: .2rem; }
.hand-example { font-family: var(--font-num); font-size: 1.2rem; color: var(--text-secondary); }
@media (max-width: 1024px) {
  .hand-card { grid-template-columns: 44px 1fr 150px; gap: 1rem; padding: 1rem 1.2rem; }
  .hand-example { font-size: 1.05rem; }
}
@media (max-width: 640px) {
  .hand-card { grid-template-columns: 40px 1fr; grid-template-rows: auto auto; padding: .9rem 1rem; gap: .3rem 1rem; }
  .hand-example { grid-column: 1 / -1; text-align: left; margin-top: .4rem; }
}
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-sm { max-width: 420px; }
.menu-photo-hero-panel {
  display: none; position: fixed; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 8px; padding: .4rem;
  width: 190px; z-index: 2000; box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.btn-menu-photo {
  display: flex; align-items: center; width: 100%; box-sizing: border-box;
  text-align: left; background: transparent; border: none; border-radius: 5px;
  color: var(--text-secondary); font-family: var(--font-body); font-size: .82rem;
  font-weight: 600; text-transform: none; letter-spacing: normal;
  padding: .55rem .6rem; cursor: pointer; transition: var(--transition);
}
.btn-menu-photo:hover { background: rgba(201,168,76,.1); color: var(--gold); }
.btn-menu-photo-danger { color: #e07070; }
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
  transition: var(--transition);
}
.modal-close:hover { color: var(--text-primary); }
.modal-body { padding: 1.5rem; }
.tab-badge-count {
  display: inline-block;
  font-family: var(--font-num);
  font-size: .68rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(201, 168, 76, .12);
  border: 1px solid rgba(201, 168, 76, .4);
  border-radius: 10px;
  padding: .05rem .5rem;
  margin-left: .3rem;
  vertical-align: middle;
}
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .85rem;
}
.galerie-item {
  position: relative;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card2);
  aspect-ratio: 1 / 1;
}
.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s;
}
.galerie-item:hover img { transform: scale(1.05); }
.galerie-item-legende {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .35rem .5rem;
  font-size: .7rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
}
.galerie-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, .9);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.galerie-lightbox.open { display: flex; }
.galerie-lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
}
.galerie-lightbox-content img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}
.galerie-lightbox-legende {
  color: #fff;
  font-size: .85rem;
  margin-top: .75rem;
}
.galerie-lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}
.tg-sidebar-item.active { background: rgba(201, 168, 76, .1); border-color: var(--gold); color: var(--gold); }
.tg-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.tg-tab-more.open,
.tg-tab-more:hover {
    border-color: var(--gold-dim);
    color: var(--gold);
}
.sidebar-item a:hover, .sidebar-item.active a { background: rgba(201, 168, 76, .08); color: var(--gold); border-right: 2px solid var(--gold); }
.sd-dropdown.open { display: block; }
.sd-dropdown-item.active { color: var(--gold); font-weight: 700; }
.admin-more-btn:hover,
.admin-more-btn.open,
.admin-more-btn.active {
  color: var(--gold);
}
.admin-more-dropdown-item.active { color: var(--gold); background: rgba(201, 168, 76, .1); }
@keyframes adminMoreFadeSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media(max-width:768px) {
  .admin-sidebar { display: none; position: fixed; top: 0; left: 0; bottom: 0; height: auto; }
  .admin-content { padding: 1rem; }
  .admin-topbar-inner { padding: .75rem 1rem; height: auto; }
  .admin-card-narrow { max-width: none; }

  /* Hamburger visible */
  .admin-hamburger { display: flex !important; flex-direction: column; justify-content: center; gap: 5px;
    background: none; border: none; cursor: pointer; padding: .25rem; }
  .admin-hamburger span { display: block; width: 20px; height: 2px; background: var(--gold); border-radius: 1px; }

  /* Sidebar overlay (mobile slide-in) */
  .admin-sidebar.open { display: flex !important; }
  .admin-sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 199; }
  .admin-sidebar-overlay.open { display: block; }

  /* Masquer des colonnes de tableau selon la page */
  .col-hide-mobile { display: none !important; }

  /* Dashboard : blocs côte à côte → empilés */
  .dashboard-grid { grid-template-columns: 1fr !important; }

  /* Étapes édition : 2 colonnes → 1 colonne */
  .etapes-edit-grid { grid-template-columns: 1fr !important; }

  /* Paramètres : grilles → 1 colonne */
  .params-grid-2 { grid-template-columns: 1fr !important; }
  .params-grid-3 { grid-template-columns: 1fr !important; }

  /* Onglets : padding réduit sur mobile */
  .admin-tab { padding: .55rem .65rem; font-size: .72rem; letter-spacing: .04em; }
  .admin-more-btn { padding: .55rem .5rem; }

  /* Tables admin : padding réduit */
  .admin-table th, .admin-table td { padding: .45rem .6rem; font-size: .78rem; }
}
.tb-btn.active { background: rgba(201,168,76,.18); color: var(--gold); border-color: rgba(201,168,76,.4); }
.gallery-picker.open { display: flex; }
.gallery-mode-tab.active { background: rgba(201,168,76,.12); border-color: rgba(201,168,76,.4); color: var(--gold); font-weight: 700; }
.gallery-thumb.selected { border-color: var(--gold); }
.gallery-thumb.selected .gallery-thumb-check { display: flex; }
@media (max-width: 768px) {
  /* Toolbar : au lieu de wrapper sur 4-5 lignes (illisible), elle défile horizontalement comme sur Gmail/Notion mobile */
  .rich-toolbar { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 8px 10px; }
  .rich-toolbar::-webkit-scrollbar { display: none; }
  .tb-group { flex-shrink: 0; }
  .tb-sep { flex-shrink: 0; }
  .tb-select { flex-shrink: 0; font-size: 16px; padding: 4px 8px; } /* 16px = évite le zoom auto iOS au tap */
  /* Cibles tactiles agrandies (28px → 34px, plus faciles à toucher du doigt) */
  .tb-btn { width: 34px; height: 34px; }
  .tb-color-btn { width: 34px; height: 34px; }
  .tb-color-swatch { width: 20px; height: 20px; }
  /* Éditeur : moins de hauteur imposée, la page défile normalement */
  .rich-editor { min-height: 220px; max-height: 380px; font-size: 16px; } /* 16px = évite le zoom auto iOS au tap */
  .preview-card-title { font-size: .88rem; }

  /* Aperçu repliable : replié par défaut pour raccourcir le formulaire,
     un tap sur l'en-tête le déplie (pur CSS, aucun JS) */
  .preview-header-toggle { cursor: pointer; }
  .preview-toggle-arrow { display: inline-block; }
  .preview-body {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .preview-toggle-checkbox:checked ~ .preview-panel .preview-body {
    max-height: 340px;
    padding-top: 16px;
    padding-bottom: 16px;
    overflow-y: auto;
  }
  .preview-toggle-checkbox:checked ~ .preview-panel .preview-toggle-arrow {
    transform: rotate(180deg);
  }
  /* Galerie : vignettes plus petites pour en montrer plus sans scroller à l'infini */
  .gallery-picker-inner { width: 94%; padding: 14px; }
  .gallery-picker-grid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
  .gallery-thumb img { height: 60px; }
  /* Liste des actus : les actions passent sous le titre plutôt que de l'écraser */
  .news-list-row { flex-wrap: wrap; }
  .news-list-actions { width: 100%; justify-content: flex-end; margin-top: .5rem; }
  /* Formulaires : les champs de date/case à cocher gardent une largeur pleine et lisible */
  input[name="publish_at"] { max-width: 100% !important; }

  /* Boutons principaux (+ Nouvelle Actualité / Enregistrer) : pleine largeur,
     plus faciles à toucher et plus lisibles qu'un petit bouton perdu à droite */
  .flex-end-mb { justify-content: stretch; }
  .flex-end-mb .btn { width: 100%; justify-content: center; }
  #news-form > button[type="submit"] { width: 100%; }

  /* Modale galerie : la ligne d'actions (info + Annuler + Insérer) passe
     à la ligne plutôt que de comprimer le texte de sélection */
  .gallery-action-row { flex-wrap: wrap; row-gap: .5rem; }
  .gallery-selection-info { margin-right: 0; width: 100%; }
}
.news-hero {
  padding: 5rem 2rem 3.5rem;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-deep) 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.news-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(201,168,76,.06), transparent);
}
.news-hero-content { position: relative; z-index: 1; }
.news-main { padding: 3.5rem 2rem 4rem; }
.news-container { max-width: 1280px; margin: 0 auto; }
.news-page-ellipsis { width: auto; padding: 0 6px; }
@media (max-width: 1024px) { .news-main { padding: 2.75rem 1.5rem 3rem; } }
@media (max-width: 640px)  { .news-main { padding: 2rem 1rem 2.5rem; } }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1024px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}
.news-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-3px);
  box-shadow: var(--shadow), var(--glow-gold);
}
.news-card-thumb {
  width: 100%; height: 160px;
  object-fit: cover;
  display: block;
}
.news-card-thumb-placeholder {
  height: 8px;
  background: linear-gradient(90deg, var(--gold-dim), rgba(201,168,76,.1));
}
.news-card-body { padding: 1.25rem 1.25rem 1rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.news-card-meta { display: flex; align-items: center; gap: .5rem; }
.news-card-date {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold);
  font-family: var(--font-body);
}
.news-card-title {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}
.news-card:hover .news-card-title { color: var(--gold-light); }
.news-card-excerpt {
  font-size: .84rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}
.news-card-read {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold-dim);
  margin-top: .25rem; transition: var(--transition);
}
.news-card:hover .news-card-read { color: var(--gold); gap: .5rem; }
.news-card-thumb-wrap { position: relative; display: block; }
.news-card-thumb-wrap .news-card-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; transition: background .2s ease, transform .2s ease;
}
.news-card-play::after {
  content: ''; width: 0; height: 0; border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}
.news-card:hover .news-card-play { background: rgba(240, 192, 64, .85); transform: translate(-50%, -50%) scale(1.08); }
.news-card-theme-logo { width: 18px; height: 18px; object-fit: contain; vertical-align: middle; flex-shrink: 0; }
.news-card-icon-fallback { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; flex-shrink: 0; }
.news-card-title-row { display: flex; align-items: center; gap: .5rem; }
.news-breadcrumb-wrap {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  padding: .6rem 2rem;
}
.news-breadcrumb-inner {
  max-width: 860px;
  margin: 0 auto;
  font-size: .75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.news-breadcrumb-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.news-breadcrumb-link:hover { color: var(--gold); }
.news-breadcrumb-current { color: var(--text-secondary); }
.news-detail-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}
.news-detail-admin-edit { text-align: right; margin-bottom: 1rem; }
.news-detail-back-wrap { text-align: center; margin-top: 2.5rem; }
@media (max-width: 1024px) { .news-detail-wrap { padding: 2.5rem 1.5rem 3.5rem; } }
@media (max-width: 640px)  { .news-detail-wrap { padding: 2rem 1rem 3rem; } .news-breadcrumb-wrap { padding: .5rem 1rem; } }
.hero-content-split { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; text-align: left; }
.hero-content-split .hero-content-main { text-align: center; }
@media (min-width: 900px) { .hero-content-split { grid-template-columns: 1.1fr 0.9fr; align-items: center; } }
.hero-une-card {
  display: block; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.25rem; text-decoration: none; color: inherit;
  position: relative; transition: transform .2s ease, border-color .2s ease;
}
.hero-une-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.hero-une-tag {
  display: inline-block; background: rgba(240,192,64,.15); color: var(--gold);
  border: 1px solid rgba(240,192,64,.35); border-radius: 999px;
  font-size: .72rem; font-weight: 700; padding: .2rem .7rem; margin-bottom: .75rem;
}
.hero-une-image { display: block; width: 100%; height: 160px; object-fit: cover; border-radius: 8px; margin-bottom: .85rem; }
.hero-une-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .05em; margin-bottom: .5rem; color: var(--text-primary); }
.hero-une-excerpt { font-size: .85rem; line-height: 1.6; color: var(--text-secondary); margin-bottom: .6rem; }
.hero-une-date { font-size: .72rem; color: var(--text-muted); }
.home-news-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: stretch; }
.home-news-grid > a { display: flex; height: 100%; }
.home-news-grid > a:nth-child(n+3) { display: none; }
@media (min-width: 768px) {
  .home-news-grid { grid-template-columns: repeat(2, 1fr); }
  .home-news-grid > a:nth-child(n+3) { display: flex; }
  .home-news-grid > a:nth-child(n+5) { display: none; }
}
@media (min-width: 1100px) {
  .home-news-grid { grid-template-columns: repeat(3, 1fr); }
  .home-news-grid > a:nth-child(n+5) { display: flex; }
}
.home-news-grid .news-card { width: 100%; height: 100%; }
.home-news-grid .news-card-thumb-wrap { flex-shrink: 0; }
.home-news-grid .news-card-thumb { height: 180px; }
.home-news-grid .news-card-body { flex: 1; display: flex; flex-direction: column; }
.home-news-grid .news-card-excerpt { flex: 1; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.home-news-grid .news-card-meta { flex-shrink: 0; margin-top: .75rem; }
.news-detail-meta { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.news-detail-date {
  font-size: .72rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--gold);
}
.news-detail-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 1.5rem;
}
.news-detail-divider {
  width: 48px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 2rem;
}
.news-detail-content {
  color: var(--text-secondary);
  font-size: .96rem;
  line-height: 1.85;
}
.news-detail-content p    { margin-bottom: 1rem; }
.news-detail-content h2   { font-family: var(--font-display); color: var(--gold); font-size: 1.35rem; font-weight: 700; margin: 1.75rem 0 .6rem; }
.news-detail-content h3   { font-family: var(--font-display); color: var(--text-primary); font-size: 1.1rem; font-weight: 700; margin: 1.4rem 0 .5rem; }
.news-detail-content h4   { color: var(--text-primary); font-size: .95rem; font-weight: 700; margin: 1rem 0 .35rem; }
.news-detail-content img  {
  max-width: 100%;
  max-height: 60vh;
  width: auto;
  height: auto;
  display: block;
  margin: 1.25rem auto;
  border-radius: 4px;
  border: 1px solid var(--border);
  object-fit: contain;
}
.news-detail-content a    { color: var(--gold); border-bottom: 1px dashed var(--gold-dim); }
.news-detail-content a:hover { color: var(--gold-light); border-bottom-color: var(--gold); }
.news-detail-content blockquote {
  border-left: 3px solid var(--gold-dim);
  padding: .65rem 1.25rem;
  margin: 1rem 0;
  color: var(--text-secondary);
  font-style: italic;
  background: rgba(201,168,76,.04);
  border-radius: 0 3px 3px 0;
}
.news-detail-content pre {
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: 3px; padding: 1rem; overflow-x: auto;
  font-family: monospace; font-size: .84rem;
  color: var(--text-secondary); margin: 1rem 0;
}
.news-detail-content ul,
.news-detail-content ol  { padding-left: 1.5rem; margin: .75rem 0; }
.news-detail-content li  { margin-bottom: .3rem; }
.news-detail-content hr  { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.news-detail-content .yt-frame-wrap,
.news-card-body .yt-frame-wrap {
  position: relative; padding-bottom: 56.25%; height: 0;
  overflow: hidden; border-radius: 4px; margin: 1rem 0;
}
.news-detail-content .yt-frame-wrap iframe,
.news-card-body .yt-frame-wrap iframe {
  position: absolute; top:0; left:0; width:100%; height:100%; border:0;
}
.news-detail-content iframe,
.news-card-body iframe {
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 4px;
  margin: 1rem 0;
}
.news-detail-content .img-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px; margin: 1rem 0;
}
.news-detail-content .img-gallery img { margin: 0; width: 100%; height: 110px; object-fit: cover; }
.news-nav {
  display: flex; justify-content: space-between;
  gap: 1rem; margin-top: 3rem;
  padding-top: 2rem; border-top: 1px solid var(--border);
}
.news-nav-link {
  display: flex; flex-direction: column; gap: .25rem;
  text-decoration: none; max-width: 45%;
}
.news-nav-label { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.news-nav-title { font-size: .88rem; color: var(--text-secondary); transition: var(--transition); line-height: 1.4; }
.news-nav-link:hover .news-nav-title { color: var(--gold); }
.news-nav-link.next { text-align: right; }
.news-empty {
  text-align: center; padding: 4rem 2rem;
  color: var(--text-muted);
}
.news-empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: .4; }
.news-empty-text { font-size: .92rem; }
.news-pagination {
  display: flex; justify-content: center; align-items: center;
  gap: .4rem; margin-top: 3rem;
}
.news-page-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 3px; font-size: .82rem; font-weight: 700;
  color: var(--text-muted); text-decoration: none;
  transition: var(--transition);
}
.news-page-btn:hover   { border-color: var(--gold-dim); color: var(--gold); }
.news-page-btn.active  { background: rgba(201,168,76,.12); border-color: rgba(201,168,76,.4); color: var(--gold); }
.news-page-btn.disabled { opacity: .35; pointer-events: none; }
@media (max-width: 600px) {
  .etape-card {
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    padding: 0.85rem 1rem;
    gap: 0.5rem 0.75rem;
  }
  /* Numéro : occupe la ligne 1, colonne 1 */
  .etape-num {
    grid-column: 1;
    grid-row: 1;
    font-size: 1.1rem;
  }
  /* Nom + date : ligne 1, colonne 2 */
  .etape-info {
    grid-column: 2;
    grid-row: 1;
  }
  /* Badge statut : ligne 2, colonne 1+2 côté gauche */
  .etape-card > .badge,
  .etape-card > [class*="badge"] {
    grid-column: 1 / 2;
    grid-row: 2;
    justify-self: start;
  }
  /* Bouton action (Résultats / S'inscrire) : ligne 2, colonne 2 côté droit */
  .etape-card > .btn,
  .etape-card > span[style*="width:80px"] {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    font-size: 0.68rem !important;
    padding: 0.3rem 0.7rem !important;
  }
}
@media (max-width: 640px) {
  /* Barre "Tous / Non lus" + "Tout marquer comme lu" : on empile
     proprement plutôt que de laisser le bouton se coller aux onglets */
  .msg-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: .6rem;
  }
  .msg-tabs {
    justify-content: center;
  }

  /* Un peu moins de padding horizontal sur mobile pour équilibrer
     le rendu (le padding desktop vient du style inline, d'où le !important) */
  .msg-card-head {
    padding: .75rem 1rem !important;
  }
  .msg-card-body {
    padding: .85rem 1rem !important;
  }

  /* En-tête de chaque message : nom/email au-dessus, infos+actions
     en dessous, sur toute la largeur */
  .msg-card-head {
    flex-direction: column;
    align-items: stretch;
    gap: .65rem;
  }
  .msg-card-head-left,
  .msg-card-head-right {
    width: 100%;
  }
  .msg-card-head-right {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  /* Nom + e-mail de l'expéditeur : on repasse en colonne pour éviter
     que l'adresse e-mail (souvent longue) ne pousse hors du cadre */
  .msg-card-head-left {
    align-items: flex-start;
  }
  .msg-card-head-left > div {
    display: flex;
    flex-direction: column;
    gap: .15rem;
  }
  .msg-card-head-left > div > span:last-child {
    margin-left: 0 !important;
  }

  /* Ligne d'infos (date / répondu) */
  .msg-card-meta {
    justify-content: flex-start;
  }

  /* Barre d'actions : détachée visuellement comme un vrai "footer"
     de carte, boutons pleine largeur et de taille égale — plus
     agréable à toucher et plus lisible qu'une rangée d'icônes tassées */
  .msg-card-actions {
    width: 100%;
    margin-top: .65rem;
    padding-top: .65rem;
    border-top: 1px solid var(--border);
  }
  .msg-card-actions .btn-xs {
    flex: 1;
    justify-content: center;
    padding: .5rem .5rem;
    font-size: .76rem;
  }

  /* Cartes de destinataires (Tous / Actifs / Payé…) : une seule colonne
     pour des zones de tap plus grandes */
  #cartes-cible {
    grid-template-columns: 1fr !important;
  }

  /* Sélecteur multiple de membres : police un peu réduite */
  #select-membres {
    font-size: .8rem;
  }

  /* Boutons Envoyer / Annuler du panneau de réponse : pleine largeur,
     empilés, plus faciles à toucher */
  .msg-reponse-actions {
    flex-direction: column;
  }
  .msg-reponse-actions .btn,
  .msg-reponse-actions button {
    width: 100%;
    justify-content: center;
  }

  /* Overlay "envoi en cours" : marges réduites sur petit écran */
  #overlay-envoi-mail {
    padding: 1.25rem !important;
  }
}
.cal-nav { display:flex; justify-content:space-between; align-items:center; margin-bottom:1.25rem; gap:1rem; flex-wrap:wrap; }
.cal-nav-title { font-family:var(--font-display); font-size:1.3rem; color:var(--gold); text-transform:capitalize; }
.cal-grid { display:grid; grid-template-columns:repeat(7, 1fr); gap:6px; }
.cal-weekday { text-align:center; font-size:.7rem; text-transform:uppercase; letter-spacing:.08em; color:var(--text-muted); padding:.4rem 0; }
.cal-cell { background:var(--bg-card); border:1px solid var(--border); border-radius:4px; height:132px; padding:.4rem; display:flex; flex-direction:column; gap:.25rem; overflow:hidden; position:relative; }
.cal-cell.empty { background:transparent; border-color:transparent; }
.cal-cell.has-event::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:var(--cal-accent, transparent); }
.cal-cell.today { border-color:var(--gold); box-shadow:0 0 0 1px var(--gold) inset; background:linear-gradient(180deg, rgba(201,168,76,.10), rgba(201,168,76,.02) 60%); }
.cal-day-num { flex-shrink:0; font-family:var(--font-num); font-size:1.15rem; font-weight:700; color:var(--text-secondary); display:flex; justify-content:space-between; align-items:center; margin-bottom:.15rem; }
.cal-cell.today .cal-day-num span { display:flex; align-items:center; justify-content:center; width:1.7rem; height:1.7rem; border-radius:50%; background:var(--gold); color:var(--bg-deep); font-weight:900; }
.cal-day-events { flex:1; min-height:0; overflow-y:auto; display:flex; flex-direction:column; gap:.25rem; }
.cal-day-events::-webkit-scrollbar { width:4px; }
.admin-body .cal-cell:not(.empty) { cursor: pointer; }
.admin-body .cal-cell:not(.empty):hover { border-color: var(--border-bright); }
.admin-body .cal-cell:not(.empty)::after {
  content: '+';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: .10;
  pointer-events: none;
}
.admin-body .cal-cell.has-event::after { display: none; }
.cal-event { flex-shrink:0; width:100%; font-size:.68rem; padding:.2rem .35rem; border-radius:3px; line-height:1.3; text-decoration:none; display:flex; align-items:flex-start; gap:.3rem; min-width:0; font-family:inherit; text-align:left; cursor:pointer; -webkit-appearance:none; appearance:none; }
.cal-event-icon { width:20px; height:20px; object-fit:contain; border-radius:2px; flex-shrink:0; }
.cal-legend-icon { width:20px; height:20px; object-fit:contain; border-radius:2px; }
.cal-legend-dot { width:9px; height:9px; border-radius:50%; flex-shrink:0; }
.cal-legend-dot-caenpoker { background: var(--steel-light); }
.cal-legend-dot-winamax-club { background: var(--gold); }
.cal-legend-dot-winamax { background: var(--red-bright); }
.cal-section { padding: 6rem 2rem 5rem; }
.cal-container { max-width: 1280px; margin: 0 auto; }
.cal-month-block { max-width: 1000px; margin: 0 auto; }
.cal-nav-btn { font-size: .78rem; padding: .5rem 1rem; }
.cal-legend { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1.25rem; font-size: .75rem; color: var(--text-muted); align-items: center; }
.cal-legend-item { display: flex; align-items: center; gap: .4rem; }
.cal-day-list { display: flex; flex-direction: column; gap: .5rem; }
.modal-footer-right { margin-top: 1.25rem; display: flex; justify-content: flex-end; }
.winamax-inline-logo { height: 22px; vertical-align: middle; object-fit: contain; }
@media (max-width: 1024px) { .cal-section { padding: 4rem 1.5rem 3.5rem; } }
@media (max-width: 640px)  { .cal-section { padding: 3rem 1rem 2.5rem; } .cal-legend { gap: .75rem 1rem; font-size: .7rem; } }
.cal-event-txt { overflow:hidden; min-width:0; display:flex; align-items:flex-start; gap:.3rem; flex:1; }
.cal-event-txt-inner { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; white-space:normal; word-break:break-word; overflow-wrap:anywhere; min-width:0; line-height:1.25; }
.cal-event-heure { flex-shrink:0; font-variant-numeric:tabular-nums; opacity:.75; font-weight:600; }
.cal-detail-row { display:flex; gap:.5rem; padding:.4rem 0; border-bottom:1px solid var(--border); font-size:.85rem; }
.cal-detail-row-column { flex-direction: column; gap: .25rem; }
.cal-detail-row strong { color:var(--text-muted); min-width:110px; flex-shrink:0; }
.cal-detail-row span { word-break:break-word; }
.cal-event-live { background:rgba(74,144,201,.15); color:var(--steel-light); border:1px solid rgba(74,144,201,.35); }
.cal-event-live:hover { background:rgba(74,144,201,.25); color:var(--steel-light); }
.cal-event-online { background:rgba(201,168,76,.12); color:var(--gold); border:1px solid rgba(201,168,76,.3); }
.cal-event-online.cal-event-caenpoker { background:rgba(74,144,201,.15); color:var(--steel-light); border-color:rgba(74,144,201,.35); }
.cal-event-online.cal-event-winamax_club { background:rgba(201,168,76,.12); color:var(--gold); border-color:rgba(201,168,76,.3); }
.cal-event-online.cal-event-winamax { background:rgba(224,53,53,.15); color:var(--red-bright); border-color:rgba(224,53,53,.35); }
.cal-event-online.cal-event-autre { background:rgba(155,111,209,.15); color:var(--purple); border-color:var(--purple-dim); }
.cal-event:hover { filter:brightness(1.15); }
.cal-day-dots { display:none; }
.cal-dot-icon { width:15px; height:15px; object-fit:contain; border-radius:2px; flex-shrink:0; }
@media (max-width: 768px) {
  .cal-grid { gap:4px; }
  .cal-cell { height:60px; padding:.3rem; gap:.15rem; }
  .cal-weekday { font-size:.62rem; padding:.25rem 0; }
  .cal-day-num { font-size:.92rem; margin-bottom:0; }
  .admin-body .cal-cell:not(.empty)::after { font-size:1.4rem; }
  .cal-nav-title { font-size:1.05rem; }

  /* Sur mobile : pastilles de couleur à la place de la liste détaillée
     (trop dense sur petit écran) ; clic n'importe où dans la case = popup liste. */
  .cal-day-events { display:none; }
  .cal-day-dots { display:flex; flex-wrap:wrap; align-items:center; gap:4px; flex:1; min-height:16px; }
}
@media (max-width: 768px) {
  .lots-table thead { display: none; }
  .lots-table,
  .lots-table tbody { display: block; width: 100%; }

  .lots-table tr[data-lot-id] {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "pos     desc    menu"
      "wina    gagnant gagnant";
    align-items: center;
    gap: .4rem .55rem;
    padding: .65rem .7rem;
    margin-bottom: .5rem;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
  }
  .lots-table tr[data-lot-id]:last-child { margin-bottom: 0; }
  .lots-table tr:hover td { background: none; }
  .lots-table tr[data-lot-id] td { border-bottom: none; padding: 0; }

  .lots-table tr[data-lot-id] td:nth-child(1) { grid-area: pos; }
  .lots-table tr[data-lot-id] td:nth-child(2) { grid-area: desc; min-width: 0; }
  .lots-table tr[data-lot-id] td:nth-child(3) { grid-area: wina; min-width: 0; }
  .lots-table tr[data-lot-id] td:nth-child(4) { grid-area: gagnant; min-width: 0; text-align: right; }
  .lots-table tr[data-lot-id] td:nth-child(5) { grid-area: menu; display: flex; align-items: center; justify-content: flex-end; }

  /* Icône compacte devant le sélecteur, à la place de l'ancien intitulé
     "TICKET WINAMAX" qui occupait sa propre ligne en pleine largeur */
  .lots-table tr[data-lot-id] .lot-winamax-wrap::before {
    content: "🎟️";
    font-size: .8rem;
    flex-shrink: 0;
  }

  .lot-desc-input {
    font-size: .92rem;
    padding: .5rem .6rem;
    border-color: rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
  }

  /* Sélecteur ticket Winamax compact (au lieu de pleine largeur) pour
     tenir sur la même ligne que le badge Gagnant */
  .lot-winamax-select { max-width: 128px; width: auto; font-size: .74rem; padding: .35rem .4rem; }
  .lot-winamax-wrap { justify-content: flex-start; }
  .lot-winamax-wrap .winamax-logo-badge { display: none !important; }

  .lot-position-badge { font-size: .8rem; min-width: 38px; padding: .2rem .4rem; }

  .admin-card-header .btn { flex: 1 1 auto; justify-content: center; text-align: center; }

  /* PC : ✕ direct. Mobile : menu ⋮ (moins de suppressions accidentelles,
     carte plus compacte). Voir .lot-menu--mobile / .lot-del-btn--desktop
     dans tg_lots.php. */
  .lot-del-btn--desktop { display: none; }
  .lot-menu--mobile { display: inline-flex; }

  /* ── Table Bounties : même traitement ── */
  .bounty-table thead { display: none; }
  .bounty-table,
  .bounty-table tbody { display: block; width: 100%; }

  .bounty-table tr[data-bounty-id] {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "desc    menu"
      "wina    statut"
      "porteur porteur";
    align-items: center;
    gap: .4rem .55rem;
    padding: .65rem .7rem;
    margin-bottom: .5rem;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
  }
  .bounty-table tr[data-bounty-id]:last-child { margin-bottom: 0; }
  .bounty-table tr:hover td { background: none; }
  .bounty-table tr[data-bounty-id] td { border-bottom: none; padding: 0; }

  .bounty-table tr[data-bounty-id] td:nth-child(1) { grid-area: desc; min-width: 0; }
  .bounty-table tr[data-bounty-id] td:nth-child(2) { grid-area: wina; min-width: 0; }
  .bounty-table tr[data-bounty-id] td:nth-child(3) { grid-area: porteur; }
  .bounty-table tr[data-bounty-id] td:nth-child(4) { grid-area: statut; text-align: right; }
  .bounty-table tr[data-bounty-id] td:nth-child(5) { grid-area: menu; display: flex; align-items: center; justify-content: flex-end; }

  /* Ligne "porteur" masquée tant qu'aucun joueur n'est tiré : le badge
     Statut ("⏳ Attente tirage") suffit, pas besoin de répéter l'info
     sur une ligne entière dédiée. */
  .bounty-table tr[data-bounty-id] td:nth-child(3):has(.bounty-porteur-empty) {
    display: none;
  }

  .bounty-table tr[data-bounty-id] .bounty-winamax-wrap::before {
    content: "🎟️";
    font-size: .8rem;
    flex-shrink: 0;
  }

  .bounty-desc-input {
    font-size: .92rem;
    padding: .5rem .6rem;
    border-color: rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
  }

  .bounty-winamax-select { max-width: 128px; width: auto; font-size: .74rem; padding: .35rem .4rem; }
  .bounty-winamax-wrap { justify-content: flex-start; }
  .bounty-winamax-wrap .winamax-logo-badge { display: none !important; }

  .bounty-del-btn--desktop { display: none; }
  .bounty-menu--mobile { display: inline-flex; }

  .btn-tirer-bounty { width: 100%; justify-content: center; }
}
@media (max-width: 768px) {
  /* Empêche le halo de focus/tap natif (gris/bleu) sur iOS/Android */
  .lots-table select,
  .lots-table input,
  .bounty-table select,
  .bounty-table input,
  .lot-del-btn,
  .bounty-del-btn,
  .lot-kebab-btn,
  .bounty-kebab-btn,
  .sd-dropdown-item {
    -webkit-tap-highlight-color: transparent;
  }

  /* Le champ description doit avoir la même apparence de "vraie case
     éditable" qu'il soit au repos, survolé ou en cours de saisie —
     sinon certaines lignes semblent éditables et d'autres non. */
  .lot-desc-input,
  .bounty-desc-input {
    border-color: rgba(255, 255, 255, .1) !important;
    background: rgba(255, 255, 255, .035) !important;
  }

  .lot-desc-input:focus,
  .bounty-desc-input:focus {
    border-color: rgba(201, 168, 76, .55) !important;
    background: rgba(201, 168, 76, .07) !important;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, .1);
  }

  /* Neutralise le hover collant après un tap sur écran tactile
     (évite qu'une carte reste "allumée" après avoir été touchée) */
  @media (hover: none) {
    .lots-table tr:hover td,
    .bounty-table tr:hover td {
      background: none !important;
    }
  }
}
.etape-header-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}
@media (orientation: landscape) and (max-height: 600px) {

  body.live-paysage .nav,
  body.live-paysage .page-hero,
  body.live-paysage .etape-selector,
  body.live-paysage #etape-header,
  body.live-paysage .tabs,
  body.live-paysage footer,
  body.live-paysage [id="footer"],
  body.live-paysage .footer {
    display: none !important;
  }

  body.live-paysage .page-wrapper {
    padding-top: 0 !important;
  }

  body.live-paysage .section {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }

  body.live-paysage .etape-content {
    height: 100dvh;
    border-radius: 0;
    border: none;
  }

  body.live-paysage .etape-iframe {
    height: 100dvh;
    min-height: unset;
  }
}
.tournoi-check-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  background: var(--bg-card2);
  border: 2px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  transition: border-color .2s, background .2s;
  position: relative;
  user-select: none;
}
.tournoi-check-label:hover {
  border-color: rgba(201, 168, 76, .4);
  background: rgba(201, 168, 76, .04);
}
.tournoi-check-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.tournoi-check-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--bg-card);
  flex-shrink: 0;
  transition: border-color .2s, background .2s;
  font-size: 1rem;
}
.tournoi-check-box::after {
  content: '';
  display: block;
  width: 6px;
  height: 11px;
  border: 2px solid transparent;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-2px);
  transition: border-color .15s;
}
.tournoi-check-input:checked~.tournoi-check-indicator .tournoi-check-box {
  background: var(--gold);
  border-color: var(--gold);
}
.tournoi-check-input:checked~.tournoi-check-indicator .tournoi-check-box::after {
  border-color: #1a1a1a;
}
.tournoi-check-label:has(.tournoi-check-input:checked) {
  border-color: var(--gold);
  background: rgba(201, 168, 76, .07);
}
.tournoi-check-deja {
  border-color: rgba(74, 184, 74, .5) !important;
  background: rgba(74, 184, 74, .06) !important;
}
.tournoi-check-deja .tournoi-check-box {
  background: var(--green) !important;
  border-color: var(--green) !important;
}
.tournoi-check-deja .tournoi-check-box::after {
  border-color: #1a1a1a !important;
}
#btn-toggle-inscription {
  text-transform: uppercase;
}
.inscription-inline {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s ease;
  margin-bottom: 2rem;
}
.inscription-inline-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  margin-top: 1rem;
}
.tab-more-wrap {
  position: relative;
  display: inline-flex;
}
.tab-more-btn {
  padding: 0.65rem 0.9rem !important;
  font-size: 1.1rem !important;
  line-height: 1;
  letter-spacing: 0 !important;
}
.tab-more-menu {
  display: none;
  flex-direction: column;
  gap: .2rem;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: .4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  min-width: 190px;
  max-width: calc(100vw - 2rem);
  padding: .4rem;
  z-index: 60;
}
.tab-more-menu.open {
  display: flex;
}
.tab-more-menu .tab-btn {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  padding: .65rem .85rem !important;
  border-radius: 4px;
  border-bottom: none !important;
  white-space: nowrap;
}
.tab-more-menu .tab-btn:hover {
  background: rgba(201, 168, 76, .08);
}
.tab-more-menu .tab-btn.active {
  color: var(--gold);
  background: rgba(201, 168, 76, .08);
}
.tab-more-dot {
  display: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  margin-left: .3rem;
  vertical-align: middle;
}
.tab-more-btn.active .tab-more-dot {
  display: inline-block;
}
.etape-header-top-row { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; }
.etape-header-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--text-primary); }
.btn-toggle-inscription-size { padding: .55rem 1.1rem; font-size: .7rem; }
.etape-header-meta { color: var(--text-muted); font-size: .88rem; margin-top: .3rem; }
.etape-header-badges { display: flex; align-items: center; gap: .75rem; }
.inscription-narrow { max-width: 520px; margin: 0 auto; }
.inscription-success-box {
  background: rgba(74,184,74,.1); border: 2px solid var(--green); border-radius: 8px;
  padding: 1.5rem; margin-bottom: 1.5rem; text-align: center;
}
.inscription-success-icon { font-size: 2.5rem; margin-bottom: .5rem; }
.inscription-success-title { font-size: 1rem; font-weight: 700; color: var(--green); margin-bottom: .5rem; }
.inscription-success-text { font-size: .88rem; color: var(--text-secondary); line-height: 1.6; }
.inscription-success-note { margin-top: 1rem; font-size: .78rem; color: var(--text-muted); }
.notice-mb-15 { margin-bottom: 1.5rem; }
.notice-centered-lg { text-align: center; padding: 2rem; }
.notice-icon-lg { font-size: 2rem; margin-bottom: 1rem; }
.form-input-readonly { opacity: .7; cursor: default; }
.tournoi-cards-list { display: flex; flex-direction: column; gap: .75rem; margin-top: .5rem; }
.tournoi-card-row-body { flex: 1; min-width: 0; }
.tournoi-card-row-name { font-weight: 700; color: var(--text-primary); font-size: .95rem; display: flex; align-items: center; gap: .5rem; }
.tournoi-nb-inscrits { font-size: .78rem; color: var(--text-muted); margin-top: .2rem; }
.tournoi-badge {
  font-family: var(--font-num); font-size: .8rem; font-weight: 700; color: var(--green);
  background: rgba(74,184,74,.1); border: 1px solid rgba(74,184,74,.3);
  border-radius: 3px; padding: .2rem .55rem; flex-shrink: 0; transition: all .2s;
}
.tournoi-badge-inscrit { background: rgba(74,184,74,.15); border-color: rgba(74,184,74,.5); }
.btn-submit-inscription { justify-content: center; margin-top: .5rem; }
.tournoi-actions-row { margin-top: 1.25rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.btn-flex-center-link { flex: 1; justify-content: center; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.tournoi-stat-strip { padding: 1rem 1.5rem; background: rgba(201,168,76,0.04); border-bottom: 1px solid var(--border); display: flex; gap: 2rem; flex-wrap: wrap; }
.tournoi-stat-label { font-size: .7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .2rem; }
.tournoi-stat-value { font-family: var(--font-num); font-weight: 700; color: var(--gold); }
.tournoi-stat-value-green { font-family: var(--font-num); font-weight: 700; color: var(--green); }
.structure-empty { padding: 1.5rem; color: var(--text-muted); font-size: .88rem; }
.blinds-niv { font-weight: 700; color: var(--gold); }
.blinds-duree { color: var(--text-secondary); }
.blinds-pause-row { background: rgba(0,180,255,0.07); }
.blinds-pause-label { text-align: center; font-size: .75rem; font-weight: 700; color: #4ab8d8; letter-spacing: .15em; text-transform: uppercase; padding: .45rem; }
.blinds-pause-duree { color: #4ab8d8; font-size: .75rem; font-weight: 700; }
.lots-table { width: 100%; border-collapse: collapse; }
.lots-table tr { border-bottom: 1px solid var(--border); }
.lots-table td:first-child { padding: .55rem 1rem; font-size: .78rem; color: var(--text-muted); font-weight: 700; letter-spacing: .05em; width: 70px; }
.lots-table td:last-child { padding: .55rem 1rem; font-weight: 700; color: var(--gold); }
.grid-2-align-start { align-items: start; }
.galerie-card { margin-bottom: 2rem; }
.galerie-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.galerie-count { color: var(--text-muted); font-size: .85rem; }
.notice-mb-15-sm { margin-bottom: 1.5rem; font-size: .82rem; }
.notice-mb-125 { margin-bottom: 1.25rem; }
.galerie-empty { color: var(--text-muted); font-size: .88rem; }
.form-file-hidden-required { display: none; }
.galerie-btn-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.photo-filename-hint { font-size: .78rem; color: var(--text-muted); margin-top: .5rem; }
.btn-justify-center { justify-content: center; }
.snack-section { margin-top: 3rem; }
.snack-header { text-align: center; margin-bottom: 2rem; }
.snack-title { font-family: var(--font-display); font-size: clamp(1.4rem,3vw,2rem); font-weight: 900; color: var(--text-primary); }
.snack-sub { color: var(--text-muted); font-size: .9rem; margin-top: .5rem; }
.formule-narrow { max-width: 480px; margin: 0 auto 2rem; }
.menu-cats-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 1.25rem; }
.menu-table { width: 100%; border-collapse: collapse; }
.menu-table td { padding: .6rem 1rem; font-size: .88rem; }
.menu-item-label { color: var(--text-primary); }
.menu-item-price { text-align: right; font-weight: 700; color: var(--gold); white-space: nowrap; }
.membres-wrap-lg { max-width: 900px; margin: 0 auto 3rem; }
.subscription-card { border-color: rgba(201,168,76,0.2); background: linear-gradient(135deg,rgba(201,168,76,0.04),var(--bg-card)); }
.subscription-header { border-bottom-color: rgba(201,168,76,0.15); }
.subscription-icon { font-size: 1.2rem; }
.subscription-sub { font-size: .78rem; color: var(--text-muted); margin-top: .15rem; }
.subscription-highlight { color: var(--gold); font-weight: 700; }
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 640px) { .benefits-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.benefits-col-title { font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: .85rem; }
.benefits-col-title-blue { color: #00aaff; }
.benefits-list { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.benefits-list-loose { gap: .65rem; }
.benefits-list-item { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; color: var(--text-secondary); }
.benefits-list-item-sm { font-size: .85rem; }
.benefits-bullet-gold { color: var(--gold); flex-shrink: 0; margin-top: .1rem; }
.benefits-bullet-blue { color: #00aaff; flex-shrink: 0; margin-top: .1rem; }
.benefits-item-title { color: var(--text-primary); }
.benefits-item-sub { font-size: .78rem; }
.subscription-warning {
  margin-top: 1.5rem; padding: 1rem; background: rgba(181,42,42,0.06);
  border: 1px solid rgba(181,42,42,0.15); border-radius: 3px;
  font-size: .82rem; color: #e07070; line-height: 1.6;
}
.membres-narrow { max-width: 640px; margin: 0 auto; }
.card-body-centered-lg { text-align: center; padding: 2.5rem 1.5rem; }
.card-body-centered-xl { text-align: center; padding: 3rem 1.5rem; }
.membres-intro-text { color: var(--text-secondary); font-size: .95rem; line-height: 1.7; margin-bottom: 2rem; }
.membres-btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.membres-note { font-size: .78rem; color: var(--text-muted); margin-top: 1.5rem; }
.paiement-choices-2col { display: grid; grid-template-columns: repeat(2,1fr); gap: .75rem; margin-bottom: 1.25rem; }
.paiement-card-link { text-decoration: none; display: block; height: 100%; }
.amount-grid-2col { grid-template-columns: repeat(2,1fr); margin-bottom: 1rem; }
.cotisation-recap-text { font-size: .85rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.6; }
.content-narrow-md { max-width: 860px; margin: 0 auto; }
.text-90em { font-size: .9em; }