/* ===================================================
   PHL THEME - Prestige Hockey League (Responsive 2025)
   Palette: Violet, Fuchsia, Bleu Néon
   =================================================== */

/* === Couleurs globales === */
:root {
  --phl-primary: #FF00B8;
  --phl-secondary: #5A00B4;
  --phl-accent: #FF3CFD;
  --phl-blue: #3DDCFF;
  --phl-blue-dark: #2E75FF;
  --phl-light: #F4F4FF;
  --phl-dark: #0D0B16;
}

/* ==========================================
   FIX GLOBAL — Dropdowns toujours au-dessus
========================================== */

/* Navbar elle-même au-dessus du contenu */
.navbar{
  position: relative;
  z-index: 1050;
}

/* Dropdown menu Bootstrap */
.dropdown-menu{
  z-index: 9999 !important;
  position: absolute;
}

/* Cas spécifique PHL (si tu utilises .phl-dd) */
.phl-dd{
  z-index: 9999 !important;
}

/* === Base === */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(160deg, var(--phl-dark), #1A0C2A);
  color: var(--phl-light);
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
  font-size: clamp(14px, 1.2vw, 16px);
}

/* ===================================================
   NAVBAR
=================================================== */
.navbar {
  background-color: var(--phl-secondary) !important;
  box-shadow: 0 0 15px var(--phl-primary);
  padding: clamp(0.6rem, 1vw, 1rem) clamp(1rem, 2vw, 2rem);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.phl-logo {
  height: clamp(55px, 8vw, 125px);
  width: auto;
  filter: drop-shadow(0 0 10px var(--phl-primary));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.phl-logo:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 20px var(--phl-accent));
}

.nav-link {
  color: var(--phl-light) !important;
  font-size: clamp(0.9rem, 1vw, 1.1rem);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s, text-shadow 0.3s;
}

.nav-link:hover {
  color: var(--phl-primary) !important;
  text-shadow: 0 0 10px var(--phl-primary);
}

/* Dropdown */
.dropdown-menu {
  background-color: #1E1B30;
  border: 1px solid var(--phl-secondary);
  border-radius: 8px;
  font-size: 0.95rem;
}

.dropdown-item {
  color: var(--phl-light);
}

.dropdown-item:hover {
  background-color: var(--phl-primary);
  color: #fff;
}

/* Bouton secondaire (Déconnexion) */
.navbar .btn-secondary {
  background-color: var(--phl-secondary);
  border: none;
  box-shadow: 0 0 10px var(--phl-primary);
  transition: 0.3s;
  font-size: clamp(0.85rem, 1vw, 1rem);
  white-space: nowrap;
}

.navbar .btn-secondary:hover {
  background-color: var(--phl-primary);
  box-shadow: 0 0 20px var(--phl-accent);
}

/* Structure responsive menu */
.navbar-collapse {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* ===================================================
   HERO SECTION
=================================================== */
.hero-section {
  background: linear-gradient(180deg, #160B2E 0%, #0D0B16 100%);
  color: var(--phl-light);
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 1rem;
}

.hero-section h1 {
  color: var(--phl-primary);
  text-shadow: 0 0 15px var(--phl-accent);
  font-weight: 800;
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.hero-section p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto;
}

/* ===================================================
   CARTES / BOUTONS / FORMULAIRES
=================================================== */
.card {
  background-color: #151228;
  border: 1px solid var(--phl-secondary);
  color: var(--phl-light);
  box-shadow: 0 0 10px rgba(255, 0, 184, 0.2);
  border-radius: 12px;
}

.card-title {
  color: var(--phl-primary);
}

.card-bodys {
    background-color: white;
    color:black;
}
.btn-primary {
  background-color: var(--phl-primary);
  border-color: var(--phl-primary);
  color: #fff;
  box-shadow: 0 0 10px var(--phl-primary);
  transition: 0.3s;
  font-size: clamp(0.9rem, 1vw, 1rem);
}

.btn-primary:hover {
  background-color: var(--phl-accent);
  border-color: var(--phl-accent);
  box-shadow: 0 0 20px var(--phl-accent);
}

/* Formulaire */
.form-control {
  background-color: #1E1B30;
  border: 1px solid var(--phl-secondary);
  color: var(--phl-light);
}

.form-control:focus {
  border-color: var(--phl-primary);
  box-shadow: 0 0 10px var(--phl-primary);
}

/* ===================================================
   LOGOS NHL & CONFÉRENCES
=================================================== */
.phl-header-logos {
  background-color: #0D0B16;
  border-bottom: 1px solid var(--phl-secondary);
  box-shadow: 0 0 20px rgba(255, 0, 184, 0.2);
  color: var(--phl-light);
  padding: clamp(1rem, 3vw, 2rem) 0;
}

.conference-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-left: 4px solid var(--phl-primary);
  padding-left: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
  gap: 10px;
}

.conference-img {
  width: clamp(60px, 6vw, 100px);
  height: auto;
  border-radius: 8px;
  background-color: whitesmoke;
  filter: drop-shadow(0 0 10px var(--phl-primary));
  transition: 0.3s ease;
}

.conference-header:hover .conference-img {
  transform: scale(1.1);
  filter: drop-shadow(0 0 25px var(--phl-accent));
}

.conference-title {
  color: var(--phl-primary);
  font-weight: 700;
  text-shadow: 0 0 15px var(--phl-accent);
  letter-spacing: 1px;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

/* Division */
.division-title {
  text-align: center;
  color: var(--phl-blue);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  letter-spacing: 1px;
}

/* Grille d'équipes */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 120px));
  gap: clamp(1rem, 2vw, 1.8rem);
  justify-items: center;
  align-items: center;
  width: 100%;
  margin-bottom: 2rem;
}

/* Logos d'équipe */
.nhl-logo {
  width: clamp(60px, 10vw, 125px);
  height: auto;
  border-radius: 8px;
  background-color: whitesmoke;
  padding: clamp(4px, 1vw, 8px);
  transition: 0.3s ease;
  filter: brightness(1.1) contrast(1.1);
  box-shadow: 0 0 8px rgba(255, 0, 184, 0.2);
  object-fit: contain;
}

.nhl-logo:hover {
  transform: scale(1.1);
  filter: brightness(1.3) contrast(1.2) drop-shadow(0 0 15px var(--phl-primary));
  box-shadow: 0 0 25px var(--phl-accent);
}

/* Lien du logo */
.team-link {
  display: inline-block;
  transition: 0.3s ease;
  border-radius: 8px;
}

.team-link:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--phl-primary);
}

.team-link:active {
  transform: scale(1.05);
}

/* ===================================================
   FOOTER
=================================================== */
footer {
  height: auto;
  text-align: center;
  padding: 1.5rem;
  color: var(--phl-light);
  background-color: #151228;
  border-top: 1px solid var(--phl-secondary);
  margin-top: 60px;
  font-size: clamp(0.8rem, 1vw, 1rem);
}

/* ===================================================
   PHL - CALENDRIER (Cards + Logos)
=================================================== */

.phl-page { max-width: 1200px; margin: 28px auto; padding: 0 16px; }

.phl-panel {
  background: #151228;
  border: 1px solid var(--phl-secondary);
  border-radius: 14px;
  box-shadow: 0 0 10px rgba(255,0,184,.15);
  padding: 16px;
}

.phl-panel + .phl-panel { margin-top: 16px; }

.phl-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.phl-title {
  margin: 0;
  color: var(--phl-primary);
  text-shadow: 0 0 12px var(--phl-accent);
  font-weight: 800;
}

.phl-sub { opacity: .85; margin-top: 6px; }

.phl-filters { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }

.phl-field label {
  display: block;
  font-size: 13px;
  opacity: .9;
  margin: 0 0 6px 2px;
}

.phl-field select {
  background: #1E1B30;
  border: 1px solid var(--phl-secondary);
  color: var(--phl-light);
  border-radius: 10px;
  padding: 10px;
  min-width: 210px;
}

.phl-actions { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }

.phl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}

.phl-btn-primary {
  background: var(--phl-primary);
  color: #fff;
  box-shadow: 0 0 10px var(--phl-primary);
  transition: .3s;
}

.phl-btn-primary:hover {
  background: var(--phl-accent);
  box-shadow: 0 0 18px var(--phl-accent);
}

.phl-btn-secondary {
  background: var(--phl-secondary);
  color: #fff;
  box-shadow: 0 0 10px rgba(255,0,184,.25);
  transition: .3s;
}

.phl-btn-secondary:hover {
  background: var(--phl-primary);
  box-shadow: 0 0 18px var(--phl-accent);
}

.week-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 14px;
}

.week-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,0,184,.35);
  background: rgba(255,0,184,.14);
  color: var(--phl-light);
  font-weight: 700;
}

.week-meta { opacity: .8; }

.matches-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.match-card {
  background: #0F0C1C;
  border: 1px solid rgba(90,0,180,.8);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 0 10px rgba(255,0,184,.12);
}

.match-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.match-meta .left { font-weight: 700; }
.match-meta .code {
  color: var(--phl-blue);
  font-weight: 800;
  text-shadow: 0 0 10px rgba(61,220,255,.35);
}

.matchup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.team-logo {
  width: 78px;
  height: 78px;
  border-radius: 12px;
  background: #f5f5f5;
  padding: 6px;
  object-fit: contain;
  box-shadow: 0 0 12px rgba(255,0,184,.18);
}

.vs {
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--phl-primary);
  text-shadow: 0 0 12px var(--phl-accent);
}

.team-names {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  font-size: 13px;
  opacity: .92;
}

.team-names .home { text-align: left; width: 40%; }
.team-names .mid { text-align: center; width: 20%; opacity: .75; }
.team-names .away { text-align: right; width: 40%; }

.phl-empty {
  padding: 14px;
  border: 1px dashed rgba(255,255,255,.2);
  border-radius: 12px;
  opacity: .9;
}


/* ===========================
   PHL Broadcast Navbar
=========================== */
.phl-broadcast-nav{
  background:
    radial-gradient(900px 120px at 20% 0%, rgba(255,0,184,.22), transparent 55%),
    radial-gradient(900px 140px at 85% 10%, rgba(61,220,255,.18), transparent 55%),
    linear-gradient(90deg, rgba(90,0,180,.95), rgba(12,14,26,.92) 55%, rgba(46,117,255,.25));
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow:
    0 0 0 1px rgba(255,0,184,.10) inset,
    0 0 18px rgba(255,0,184,.22);
  backdrop-filter: blur(6px);
}

/* Brand */
.phl-brand-logo{
  height: 125px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(255,0,184,.45));
}
.phl-brand-title{
  font-weight: 950;
  letter-spacing: .8px;
  line-height: 1.05;
  color: var(--phl-light);
  text-transform: uppercase;
}
.phl-brand-sub{
  margin-top: 2px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--phl-blue);
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(61,220,255,.35);
}

/* Toggler */
.phl-toggler{
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: 0 0 10px rgba(255,0,184,.18);
}
.phl-toggler .navbar-toggler-icon{
  filter: invert(1);
  opacity: .95;
}

/* Links */
.phl-broadcast-links .nav-link{
  color: rgba(244,244,255,.92) !important;
  font-weight: 900;
  letter-spacing: .3px;
  padding: 10px 12px;
  border-radius: 12px;
  transition: .18s ease;
}
.phl-broadcast-links .nav-link:hover{
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 1px rgba(255,0,184,.22) inset;
  color: #fff !important;
}
.phl-broadcast-links .nav-link.active{
  background: rgba(61,220,255,.08);
  box-shadow: 0 0 0 1px rgba(61,220,255,.25) inset;
}

/* Dropdown menu */
.phl-dd{
  background: #0F0C1C;
  border: 1px solid rgba(90,0,180,.85);
  border-radius: 14px;
  box-shadow: 0 0 18px rgba(255,0,184,.14);
}
.phl-dd .dropdown-item{
  color: rgba(244,244,255,.92);
  font-weight: 850;
}
.phl-dd .dropdown-item:hover{
  background: rgba(255,0,184,.20);
  color: #fff;
}

/* Action buttons (pills) */
.phl-pill{
    width :100%;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 950;
  letter-spacing: .3px;
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  box-shadow: 0 0 12px rgba(0,0,0,.22);
  transition: .18s ease;
}
.phl-pill:hover{
  transform: translateY(-1px);
}

/* Colors */
.phl-pill-blue{
  background: linear-gradient(180deg, rgba(46,117,255,.92), rgba(46,117,255,.55));
  box-shadow: 0 0 16px rgba(46,117,255,.22);
}
.phl-pill-red{
  background: linear-gradient(180deg, rgba(210,35,54,.92), rgba(210,35,54,.55));
  box-shadow: 0 0 16px rgba(210,35,54,.22);
}
.phl-pill-gold{
  background: linear-gradient(180deg, rgba(176,126,40,.95), rgba(176,126,40,.55));
  box-shadow: 0 0 16px rgba(176,126,40,.18);
}


/* PURPLE */
.phl-pill-purple{
  background: linear-gradient(180deg, rgba(138,43,226,.95), rgba(138,43,226,.55));
  box-shadow: 0 0 16px rgba(138,43,226,.25);
}

/* GREEN */
.phl-pill-green{
  background: linear-gradient(180deg, rgba(40,180,99,.95), rgba(40,180,99,.55));
  box-shadow: 0 0 16px rgba(40,180,99,.22);
}

/* GRAY */
.phl-pill-gray{
  background: linear-gradient(180deg, rgba(130,130,130,.95), rgba(130,130,130,.55));
  box-shadow: 0 0 16px rgba(130,130,130,.18);
}

.phl-broadcast-actions .dropdown{
  width: 180px;
}
.phl-broadcast-actions .dropdown > .btn{
  width: 100%;
}

/* Largeur fixe pour boutons navbar */
.phl-pill-fixed{
  width: 180px;               /* 🔧 ajuste ici si tu veux plus large */
  text-align: center;
  justify-content: center;
  white-space: nowrap;
}

footer a{
  color: var(--phl-blue);
  font-weight: 700;
  text-decoration: none;
}
footer a:hover{
  color: var(--phl-primary);
  text-shadow: 0 0 10px rgba(255,0,184,.35);
}

/* Mobile spacing */
@media (max-width: 992px){
  .phl-broadcast-links{ padding-top: 10px; }
  .phl-broadcast-actions{ padding: 10px 0 6px; width: 100%; }
  .phl-pill{ width: 100%; }
}


@media (max-width: 640px) {
  .matches-grid { grid-template-columns: 1fr; }
  .team-logo { width: 70px; height: 70px; }
}

/* ===================================================
   RESPONSIVE TWEAKS
=================================================== */

/* Tablettes */
@media (max-width: 992px) {
  .navbar .nav-link {
    font-size: 1rem;
  }

  .conference-header {
    justify-content: center;
  }

  .conference-title {
    text-align: center;
  }
  
  .matches-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
  
.list-group-item {
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
}

.list-group-item:hover:not(:disabled) {
  background-color: #222;
  transform: scale(1.02);
}

.list-group-item input[type="radio"] {
  width: 18px;
  height: 18px;
}

.list-group-item img {
  object-fit: contain;
}

.discord-info {
  cursor: pointer;
  text-decoration: underline dotted;
}

/* Mobiles */
@media (max-width: 768px) {
  .phl-logo {
    height: 55px;
  }

  .conference-img {
    width: 70px;
  }

  .teams-grid {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  }

  .navbar-collapse {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar .btn-secondary {
    width: 100%;
    margin-top: 0.5rem;
  }
  
}

/* Très petits écrans */
@media (max-width: 480px) {
  .hero-section {
    padding: 3rem 1rem;
  }

  .hero-section h1 {
    font-size: 1.8rem;
  }

  .nhl-logo {
    width: 55px;
  }

  .conference-img {
    width: 60px;
  }

  footer {
    font-size: 0.8rem;
  }
}
