/* ==================== RESET & VARIABLES ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #d41516;
  --color-secondary: #232932;
  --color-bg: #f5f7fa;
  --color-white: #ffffff;
  --color-text: #2c3e50;
  --color-text-light: #7f8c8d;
  --color-success: #27ae60;
  --color-warning: #f39c12;
  --color-border: #e1e8ed;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --transition: all 0.3s ease;
}

html,
body {
  width: 100%;
}

html {
  overflow-x: clip;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ==================== HEADER ==================== */
.header {
  background: rgba(35, 41, 50, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: var(--color-white);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo img {
  width: 80px;
  height: 80px;
  transition: var(--transition);
}

.logo img:hover {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

/* Affichage responsive du titre */
.title-short {
  display: none !important;
}

.title-long {
  display: inline !important;
}

/* Sur mobile/tablette, afficher la version courte */
@media (max-width: 1024px) {
  .title-short {
    display: inline !important;
  }

  .title-long {
    display: none !important;
  }
}

.subtitle {
  font-size: 0.95rem;
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header-info {
  display: flex;
  gap: 20px;
  transition: all 0.3s ease;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 16px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.info-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.info-icon {
  font-size: 1.5rem;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.info-value {
  font-size: 0.95rem;
  color: var(--color-white);
  font-weight: 700;
}

/* Navigation */
.nav {
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav .container {
  display: flex;
  gap: 0;
}

.nav-link {
  flex: 1;
  padding: 14px 25px;
  background: transparent;
  color: var(--color-white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: 3px solid transparent;
}

.nav-icon {
  font-size: 1.1rem;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-bottom-color: rgba(212, 21, 22, 0.6);
}

.nav-link.active {
  background: rgba(212, 21, 22, 0.15);
  border-bottom-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(212, 21, 22, 0.2);
}

.mobile-live-cta-wrapper {
  display: none;
  padding: 10px 0;
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-live-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 800;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.mobile-live-cta:hover {
  filter: brightness(1.05);
}

@media (max-width: 1024px) {
  .mobile-live-cta-wrapper {
    display: block;
  }
}

/* ==================== MAIN CONTENT ==================== */
.main {
  flex: 1;
  padding: 40px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
  border-radius: 2px;
}

/* ==================== HALLS / PLAN DES SALLES ==================== */
.halls-section {
  margin-top: 6px;
}

.halls-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.hall-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hall-title {
  color: var(--color-secondary);
  font-size: 1.12rem;
  font-weight: 800;
}

.hall-map-wrap {
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--color-border);
}

.hall-map-wrap iframe {
  display: block;
}

.hall-address {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
}

.hall-directions {
  margin-top: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-secondary);
  transition: var(--transition);
}

.hall-directions:hover {
  background: var(--color-primary);
}

/* ==================== TEAM SEARCH ==================== */
.team-search {
  max-width: 760px;
  margin: 0 auto 14px;
}

.team-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.team-search-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.team-search-input:focus-visible {
  outline: 3px solid rgba(212, 21, 22, 0.25);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

.team-search-clear {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-secondary);
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
}

.team-search-clear[hidden] {
  display: none;
}

.team-search-results {
  margin-top: 8px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.team-search-results.is-visible {
  animation: searchReveal 0.2s ease;
}

@keyframes searchReveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.team-search-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #f0f2f5;
  align-items: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.team-search-tags {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.team-search-item:last-child {
  border-bottom: none;
}

.team-search-item:hover {
  background: #f9fafb;
}

.team-search-match {
  font-size: 0.9rem;
  color: var(--color-text);
  font-weight: 600;
}

.team-search-meta {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.team-search-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  min-width: 96px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-secondary);
  background: rgba(35, 41, 50, 0.08);
  border: 1px solid var(--color-border);
}

.team-search-salle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(35, 41, 50, 0.08);
  color: var(--color-secondary);
}

.team-search-empty {
  padding: 10px 12px;
  font-size: 0.88rem;
  color: var(--color-text-light);
}

/* ==================== SALLE TABS ==================== */
.salle-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 auto 22px;
  max-width: 760px;
}

.salle-tab {
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-secondary);
  border-radius: 10px;
  padding: 10px 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.salle-tab:hover {
  border-color: var(--color-secondary);
}

.salle-tab.active {
  background: rgba(212, 21, 22, 0.12);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.schedule-filters {
  max-width: 760px;
  margin: 0 auto 18px;
  display: flex;
  justify-content: flex-end;
}

.schedule-filter-btn {
  min-height: 42px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-secondary);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.schedule-filter-btn:hover {
  border-color: var(--color-secondary);
}

.schedule-filter-btn[aria-pressed="true"] {
  background: rgba(212, 21, 22, 0.12);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.schedule-filter-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.schedule-filter-btn[hidden] {
  display: none;
}

.live-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 28px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(212, 21, 22, 0.12);
  border: 1px solid rgba(212, 21, 22, 0.35);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.live-count-value {
  min-width: 0.5em;
  text-align: center;
  flex-shrink: 0;
}

.live-count-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: livePulse 1.2s ease-in-out infinite;
  flex-shrink: 0;
}

.live-count-badge.is-zero {
  color: var(--color-text-light);
  border-color: var(--color-border);
  background: var(--color-white);
}

.live-count-badge.is-zero .live-count-dot {
  background: var(--color-text-light);
  animation: none;
  opacity: 0.6;
}

@keyframes livePulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.35;
    transform: scale(0.8);
  }
}

.salle-tab:focus-visible,
.nav-link:focus-visible,
.social-link:focus-visible,
.burger-menu:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* ==================== LOADING & ERROR STATES ==================== */
.loading {
  text-align: center;
  padding: 60px 20px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.error-message {
  background: #fee;
  border: 2px solid #fcc;
  color: #c33;
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
}

/* ==================== DAY SECTIONS ==================== */
.day-section {
  margin-bottom: 36px;
}

.day-header {
  background: linear-gradient(135deg, var(--color-primary), #b61214);
  color: var(--color-white);
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 130px;
  z-index: 50;
  transition: top 0.3s ease;
}

.day-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ==================== MATCHES GRID ==================== */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.match-card {
  background: var(--color-white);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.match-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-secondary),
    var(--color-primary)
  );
  opacity: 0.8;
}

.match-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.match-card-highlight {
  box-shadow:
    0 0 0 3px rgba(212, 21, 22, 0.35),
    var(--shadow-md);
}

.match-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.match-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.match-time {
  align-self: flex-start;
  background: rgba(35, 41, 50, 0.05);
  color: var(--color-secondary);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.salle-badge {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--color-border);
  line-height: 1;
}

.salle-badge-mainguais {
  color: var(--color-secondary);
  background: rgba(35, 41, 50, 0.08);
}

.salle-badge-eersel {
  color: var(--color-text);
  background: rgba(35, 41, 50, 0.08);
}

.salle-badge-alella {
  color: var(--color-secondary);
  background: rgba(35, 41, 50, 0.08);
}

.salle-badge-mixtes {
  color: var(--color-secondary);
  background: rgba(35, 41, 50, 0.08);
}

.salle-badge-filles {
  color: var(--color-secondary);
  background: rgba(35, 41, 50, 0.08);
}

.salle-badge-categorie {
  color: var(--color-secondary);
  background: rgba(35, 41, 50, 0.08);
}

.salle-badge-phase-poule {
  color: var(--color-secondary);
  background: rgba(35, 41, 50, 0.08);
}

.salle-badge-phase-finale {
  color: #9f1239;
  background: rgba(190, 24, 93, 0.12);
}

.salle-badge-phase-classement {
  color: var(--color-secondary);
  background: rgba(35, 41, 50, 0.08);
}

.salle-badge-phase-default {
  color: var(--color-secondary);
  background: rgba(35, 41, 50, 0.08);
}

.match-teams {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 12px;
  flex: 1;
}

.team {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: #f8f9fa;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
  border: 1px solid transparent;
}

.match-card:hover .team {
  background: #fff;
  border-color: #eee;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.team-name {
  flex: 1;
  color: var(--color-text);
  font-weight: 700;
}

.team-score {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-primary);
  background: rgba(212, 21, 22, 0.08);
  padding: 2px 8px;
  border-radius: 8px;
  min-width: 34px;
  text-align: center;
}

.match-vs {
  display: none;
}

.match-status {
  margin-top: auto;
  padding: 8px;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.match-status.scheduled {
  background: #f0f4f8;
  color: #627d98;
}

.match-status.finished {
  background: #e3f9e5;
  color: #1f9d55;
}

.match-status.live {
  background: #fff5f5;
  color: #e02424;
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 3px rgba(224, 36, 36, 0.1);
}

.match-status-link {
  color: inherit;
  text-decoration: none;
  display: block;
  width: 100%;
  cursor: pointer;
}

.match-status-link:hover {
  text-decoration: underline;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* ==================== CARQUEFOU STYLES ==================== */
.team-carquefou {
  font-weight: 900;
  color: var(--color-primary);
  font-size: 0.97rem;
}

.carquefou-match {
  border: 1px solid rgba(212, 21, 22, 0.2);
  background: linear-gradient(145deg, #ffffff, #fff5f5);
  box-shadow: 0 6px 18px rgba(212, 21, 22, 0.09);
}

.carquefou-match::before {
  height: 5px;
  background: var(--color-primary);
}

.carquefou-match:hover {
  box-shadow: 0 12px 26px rgba(212, 21, 22, 0.15);
  transform: translateY(-3px);
}

/* ==================== VIDEO SECTIONS ==================== */
.video-section {
  margin-bottom: 50px;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.replay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.replay-card {
  margin-bottom: 0;
}

.replay-badge {
  background: var(--color-secondary);
  animation: none;
}

.replay-badge::before {
  display: none;
}

.live-room {
  display: none;
}

.live-room.active {
  display: block;
}

.video-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.video-header h3 {
  font-size: 1.5rem;
  color: var(--color-secondary);
  font-weight: 700;
}

.live-badge {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: pulse 2s infinite;
}

.live-badge::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--color-white);
  border-radius: 50%;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Ratio 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  box-shadow: var(--shadow-lg);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
}

.video-description {
  margin-top: 15px;
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.video-description a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}

.video-description a:hover {
  text-decoration: underline;
}

.no-live-room .live-badge {
  background: var(--color-secondary);
  animation: none;
}

.no-live-room .live-badge::before {
  display: none;
}

.no-live-room .video-container {
  padding: 0;
  height: auto;
  min-height: 160px;
  background: var(--color-bg);
  border: 1px dashed var(--color-border);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.no-live-message {
  margin: 0;
  padding: 22px;
  text-align: center;
  color: var(--color-secondary);
  font-size: 1rem;
  font-weight: 600;
}

/* Info Box */
.info-box {
  background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
  border-left: 4px solid var(--color-primary);
  padding: 25px;
  border-radius: var(--radius);
  margin-top: 30px;
}

.info-box h4 {
  color: var(--color-secondary);
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.info-box ul {
  list-style: none;
  padding: 0;
}

.info-box li {
  padding: 8px 0;
  color: var(--color-text);
  position: relative;
  padding-left: 25px;
}

.info-box li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--color-secondary);
  color: var(--color-white);
  padding: 40px 0 30px;
  text-align: center;
  margin-top: auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--color-white);
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(212, 21, 22, 0.3);
}

.footer p {
  margin: 5px 0;
}

.organizer {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Menu Burger - Caché par défaut sur desktop */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
  z-index: 10;
}

.burger-menu:hover {
  background: rgba(255, 255, 255, 0.2);
}

.burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger-menu.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 1024px) {
  .halls-grid {
    grid-template-columns: 1fr;
  }

  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }

  /* Header compact */
  .header-top {
    padding: 12px 0;
  }

  .header-top .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .header-brand {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
  }

  .logo img {
    width: 45px;
    height: 45px;
    transition: all 0.3s ease;
    flex-shrink: 0;
  }

  .brand-text {
    transition: all 0.3s ease;
    flex: 1;
    min-width: 0;
  }

  .title {
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
  }

  .subtitle {
    font-size: 0.7rem;
    transition: all 0.3s ease;
  }

  /* Masquer les info-cards sur mobile */
  .header-info {
    display: none;
  }

  /* Navigation mobile en bottom bar */
  .nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 220;
    background: rgba(35, 41, 50, 0.96);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.28);
  }

  .nav .container {
    max-width: none;
    padding: 0 8px;
    flex-direction: row;
    gap: 0;
  }

  .nav-link {
    min-height: 62px;
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    font-size: 0.72rem;
    line-height: 1.15;
    border-bottom: 0;
    border-top: 3px solid transparent;
  }

  .nav-link:hover {
    border-bottom-color: transparent;
    border-top-color: rgba(212, 21, 22, 0.6);
  }

  .nav-link.active {
    border-bottom-color: transparent;
    border-top-color: var(--color-primary);
  }

  .nav-icon {
    font-size: 1.15rem;
    line-height: 1;
  }

  /* Header scrollé - Seulement le logo */
  .header-scrolled .header-top {
    padding: 8px 0;
  }

  .header-scrolled .logo img {
    width: 40px;
    height: 40px;
  }

  .header-scrolled .brand-text {
    display: flex;
  }

  /* Day header sticky ajusté pour mobile */
  .day-header {
    top: 56px;
    padding: 15px 20px;
    border-radius: 10px;
  }

  .day-header h3 {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .salle-tabs {
    gap: 8px;
  }

  .schedule-filters {
    margin: 0 auto 14px;
    justify-content: stretch;
  }

  .schedule-filter-btn {
    width: 100%;
    min-height: 44px;
    font-size: 0.92rem;
  }

  .team-search-input {
    font-size: 0.9rem;
  }

  .team-search-item {
    grid-template-columns: 1fr auto;
    gap: 4px;
  }

  .team-search-tags {
    justify-items: end;
  }

  .salle-tab {
    font-size: 0.88rem;
    padding: 9px 8px;
  }

  .matches-grid {
    grid-template-columns: 1fr;
  }

  .video-section {
    padding: 20px;
  }

  .replay-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .video-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .no-live-room .live-badge {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-top {
    padding: 10px 0;
  }

  .header-brand {
    gap: 8px;
  }

  .logo img {
    width: 40px;
    height: 40px;
  }

  .title {
    font-size: 0.85rem;
    letter-spacing: 0.2px;
  }

  .subtitle {
    font-size: 0.65rem;
  }

  .header-scrolled .logo img {
    width: 36px;
    height: 36px;
  }

  .nav .container {
    padding: 0 4px;
  }

  .nav-link {
    min-height: 60px;
    font-size: 0.66rem;
    padding: 7px 3px calc(7px + env(safe-area-inset-bottom));
    gap: 3px;
  }

  .nav-icon {
    font-size: 1.02rem;
  }

  .day-header {
    top: 52px;
    padding: 12px 16px;
  }

  .day-header h3 {
    font-size: 0.92rem;
  }

  .match-card {
    padding: 12px;
  }

  .team {
    font-size: 0.84rem;
  }

  .salle-tabs {
    gap: 6px;
  }

  .schedule-filters {
    margin: 0 auto 12px;
  }

  .schedule-filter-btn {
    font-size: 0.84rem;
    padding: 8px 10px;
  }

  .salle-tab {
    font-size: 0.8rem;
    padding: 8px 6px;
    gap: 4px;
  }

  .live-count-badge {
    min-width: 26px;
    padding: 2px 5px;
  }
}

/* ==================== CLASSEMENT ==================== */

/* Section Classement */
.ranking-section {
  margin-top: 30px;
}

.poule-section {
  margin-top: 20px;
}

.poule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}

.poule-title {
  font-size: 1rem;
  color: var(--color-secondary);
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.poule-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--color-border);
  line-height: 1;
}

.poule-category-mixtes {
  color: var(--color-secondary);
  background: rgba(35, 41, 50, 0.08);
}

.poule-category-filles {
  color: var(--color-secondary);
  background: rgba(35, 41, 50, 0.08);
}

.poule-category-default {
  color: var(--color-secondary);
  background: rgba(35, 41, 50, 0.08);
}

/* Table responsive container */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: 0;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Table de classement */
.ranking-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 0.95rem;
}

.ranking-table thead {
  background: linear-gradient(135deg, #d41516 0%, #a01012 100%);
  color: white;
}

.ranking-table th {
  padding: 16px 12px;
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 3px solid #8b0d0e;
}

.ranking-table th.team-col {
  text-align: left;
  padding-left: 20px;
}

.ranking-table tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.ranking-table tbody tr:hover {
  background-color: #f9fafb;
  transform: translateX(4px);
}

.ranking-table tbody tr:last-child {
  border-bottom: none;
}

.ranking-table td {
  padding: 14px 12px;
  text-align: center;
}

.ranking-table td.team-col {
  text-align: left;
  padding-left: 20px;
  font-weight: 500;
}

/* Colonnes spécifiques */
.rank-col {
  width: 60px;
  font-weight: 600;
}

.team-col {
  min-width: 180px;
}

.stat-col {
  width: 50px;
}

.pts-col {
  width: 70px;
  background-color: #f0fdf4;
  font-weight: 700;
  color: #15803d;
}

/* Mise en valeur de Carquefou */
.team-carquefou-row {
  background: linear-gradient(
    90deg,
    rgba(212, 21, 22, 0.08) 0%,
    rgba(212, 21, 22, 0.04) 100%
  );
  border-left: 4px solid #d41516;
}

.team-carquefou-row:hover {
  background: linear-gradient(
    90deg,
    rgba(212, 21, 22, 0.12) 0%,
    rgba(212, 21, 22, 0.06) 100%
  );
}

.team-carquefou-row .team-col {
  color: #d41516;
  font-weight: 700;
}

/* Différence de buts */
.positive {
  color: #15803d;
  font-weight: 600;
}

.negative {
  color: #b91c1c;
  font-weight: 600;
}

/* Légende */
.ranking-legend {
  margin-top: 20px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #6b7280;
}

.ranking-legend p {
  margin: 5px 0;
}

.ranking-legend strong {
  color: #1f2937;
}

/* Empty message */
.empty-message {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
}

.empty-message p {
  font-size: 1.1rem;
  color: #6b7280;
  margin: 0;
}

/* Responsive pour le classement */
@media (max-width: 768px) {
  .poule-header {
    gap: 8px;
  }

  .poule-title {
    font-size: 0.92rem;
  }

  .poule-category {
    font-size: 0.68rem;
    padding: 4px 8px;
  }

  .ranking-table {
    font-size: 0.8rem;
  }

  .ranking-table th,
  .ranking-table td {
    padding: 10px 6px;
  }

  .ranking-table th.team-col,
  .ranking-table td.team-col {
    padding-left: 12px;
  }

  .team-col {
    min-width: 120px;
  }

  .rank-col {
    width: 40px;
  }

  .stat-col {
    width: 35px;
  }

  .pts-col {
    width: 50px;
  }

  .ranking-legend {
    font-size: 0.75rem;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .poule-header {
    gap: 6px;
  }

  .poule-title {
    font-size: 0.88rem;
  }

  .poule-category {
    font-size: 0.64rem;
    padding: 3px 7px;
  }

  .ranking-table {
    font-size: 0.75rem;
  }

  .ranking-table th,
  .ranking-table td {
    padding: 8px 4px;
  }

  .ranking-table th.team-col,
  .ranking-table td.team-col {
    padding-left: 8px;
  }

  .team-col {
    min-width: 100px;
    font-size: 0.7rem;
  }

  .rank-col {
    width: 35px;
  }

  .stat-col {
    width: 30px;
  }

  .pts-col {
    width: 45px;
  }
}
