/* === HERO FULLSCREEN LANDING === */
.hero-fullscreen {
  position: relative;
  min-height: 100vh;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: url('/static/images/concert.jpg') center center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.hero-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
}

.hero-logo {
  font-family: 'Karumbi Regular', 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1;
}

.hero-center {
  position: relative;
  z-index: 2;
  width: min(1100px, calc(100% - 40px));
  margin: auto;
  padding: 20px;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-text {
  font-size: 1.2rem;
  opacity: 0.9;
}

.hero-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.hero-footer a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  white-space: nowrap;
}

.landing-sections {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: 0;
}

.landing-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.landing-sections--inline {
  margin-top: 36px;
}

.landing-grid {
  display: grid;
  gap: 22px;
}

.landing-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}

.landing-card__eyebrow {
  color: #FFD700;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.landing-card__title {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.landing-card__text {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .landing-grid--three {
    grid-template-columns: 1fr;
  }

  .landing-sections--inline {
    margin-top: 28px;
  }
}

.hero-footer a:hover {
  color: #FFD700;
}

.hero-bottom-bar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding: 20px 30px;
  width: 100%;
}

.hero-lang-dropdown {
  position: relative;
  z-index: 3;
}

.hero-lang-btn {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  min-width: auto;
  min-height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  padding: 0;
  color: #fff;
  line-height: 1;
  cursor: pointer;
}

.hero-lang-btn:hover {
  opacity: 0.9;
}

.hero-lang-btn:focus,
.hero-lang-btn:focus-visible,
.hero-lang-btn:active {
  outline: none;
  box-shadow: none;
  border: 0;
}

.hero-lang-btn::after {
  display: none !important;
}

.hero-lang-menu {
  min-width: 180px;
  background: rgba(20, 12, 45, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.4rem;
}

.hero-lang-menu .dropdown-item {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-size: 1rem;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
}

.hero-lang-menu .dropdown-item:hover,
.hero-lang-menu .dropdown-item:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #FFD700;
}

.hero-lang-menu .fi,
.hero-lang-btn .fi {
  font-size: 1.2em;
  line-height: 1;
  display: inline-block;
}

@media (max-width: 768px) {
  .hero-top {
    padding: 16px 18px;
  }

.hero-logo {
  font-family: 'Kalam', 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.4px;
}

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-lang-menu {
  min-width: 160px;
}

.hero-lang-dropdown {
  align-self: flex-start;
}

.hero-lang-btn {
  font-size: 1rem;
  transform: translateY(1px);
}

.hero-bottom-bar {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  flex-wrap: wrap;
}

.hero-footer {
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  line-height: 1.2;
  flex: 1 1 auto;
}

.hero-footer a {
  white-space: normal;
}
}
/* === Room cards layout (all viewports) === */
.contestant-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.mobile-controls {
  display: block;
  margin-bottom: 0.9rem;
}

.mobile-controls__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 10px;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
}

.mobile-search,
.mobile-sort {
  width: 100%;
}

.contestant-card{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 10px;
  margin: 0;
  box-shadow: 0 0 10px rgba(0,0,0,0.14);
  overflow-x: clip;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.cc-line1{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-bottom: 6px;
}

.cc-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.cc-flag{
  width:24px;
  height:16px;
  object-fit:cover;
  border-radius:4px;
}

.cc-flag-emoji{ font-size: 18px; }

.cc-title{ min-width:0; }

.cc-field{
  min-width: 0;
  width: 100%;
}

.cc-label{
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  line-height: 1.1;
  opacity: 0.85;
  color: rgba(255,255,255,0.8);
}

.cc-country{
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.1;
}

.cc-meta{
  font-size: 0.78rem;
  opacity: 0.85;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.contestant-card.table-warning .cc-label,
.contestant-card.tie-blocker .cc-label,
.contestant-card.table-warning .cc-country,
.contestant-card.tie-blocker .cc-country{
  color: #ffe08a;
}

.room-fluid .table-responsive {
  display: none;
}

.room-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  box-shadow: 0 0 16px rgba(255,255,255,0.06);
  overflow: hidden;
}

.room-panel__body {
  padding: 1rem 1.1rem;
}

.room-panel__body--compact {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.room-panel__title {
  color: #FFD700;
  font-weight: 800;
}

.room-panel__hint {
  color: rgba(255,255,255,0.72) !important;
}

.room-panel .form-label,
.room-panel .small {
  color: rgba(255,255,255,0.82);
}

.sticky-controls {
  position: sticky;
  top: 0.75rem;
  z-index: 20;
}

@media (min-width: 769px) {
  .sticky-controls {
    top: 1rem;
  }
}


.cc-yt{ padding: 2px 8px !important; }

.cc-line2{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr 56px;
  gap: 6px;
  align-items:center;
  min-width: 0;
}

.cc-score{
  height: 32px !important;
  padding: 0.2rem 0.35rem !important;
  font-size: 0.85rem !important;
  text-align:center;
}

.cc-total{
  height: 32px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
}

.cc-line3{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 84px 20px;
  gap: 6px;
  align-items:center;
  padding-top: 6px;
  min-width: 0;
}

.cc-line2 > *,
.cc-line3 > *{
  min-width: 0;
}

.cc-line2 input,
.cc-line2 select,
.cc-line3 input,
.cc-line3 select{
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.cc-comment,
.cc-points{
  height: 32px !important;
  padding: 0.2rem 0.35rem !important;
  font-size: 0.85rem !important;
}

.cc-rank{
  font-size: 0.8rem;
  opacity: 0.8;
  text-align:right;
}

.contestant-card.table-warning,
.contestant-card.tie-blocker{
  background: rgba(255, 193, 7, 0.14);
  border-color: rgba(255, 193, 7, 0.75);
  box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.35), 0 0 18px rgba(255, 193, 7, 0.16);
}

.contestant-card.table-warning .cc-total,
.contestant-card.tie-blocker .cc-total{
  background: rgba(255, 193, 7, 0.22);
  border-color: rgba(255, 193, 7, 0.45);
}

.contestant-card.table-warning .cc-label,
.contestant-card.tie-blocker .cc-label,
.contestant-card.table-warning .cc-country,
.contestant-card.tie-blocker .cc-country{
  color: #ffe08a;
}

#mobileControls {
  display: block !important;
}

@media (max-width: 768px){
  .contestant-cards { grid-template-columns: 1fr; }
  .contestant-cards,
  .contestant-row,
  .contestant-card,
  .cc-line1,
  .cc-line2,
  .cc-line3 {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .mobile-controls__inner { grid-template-columns: 1fr; }

  html,
  body {
    overflow-x: hidden;
    background:
      radial-gradient(circle at 12% 88%, rgba(255, 0, 128, 0.38) 0%, rgba(255, 0, 128, 0) 24%),
      radial-gradient(circle at 82% 14%, rgba(79, 70, 229, 0.5) 0%, rgba(79, 70, 229, 0) 24%),
      linear-gradient(120deg, #2a084f 0%, #12033a 28%, #020b63 62%, #050a4a 100%);
    background-repeat: no-repeat;
    background-size: cover;
  }

  .contestant-cards,
  .contestant-card {
    width: 100%;
    max-width: 100%;
  }

  .cc-line2 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 56px;
  }

  .cc-line3 {
    grid-template-columns: minmax(0, 1fr) 84px 0;
  }

  .cc-rank {
    display: none !important;
  }

  .cc-field--comment,
  .cc-field--comment .cc-comment,
  .cc-points {
    min-width: 0;
  }

  #coefVoice,
  #coefStage,
  #coefSong,
  .cc-score,
  .cc-comment,
  .cc-points,
  #mobileSearch,
  #mobileSort {
    font-size: 16px !important;
  }
}
@media (max-width: 380px){
  .cc-meta{ max-width: 64vw; }
  .cc-line2{ grid-template-columns: repeat(3, minmax(0, 1fr)) 50px; }
  .cc-line3{ grid-template-columns: minmax(0, 1fr) 74px 0; }
}
/* Base layout (html/body, header/nav, burger/mobile menu, footer) moved to base.css */

.hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(255,255,255,0.05);
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(255,215,0,0.2);
  overflow: hidden;
}

.hero-left {
  flex: 1;
  background: linear-gradient(135deg, #4b2aff, #7b33ff, #d3b400);
  padding: 50px 40px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-left h1 {
  font-weight: 700;
  font-size: 2.2rem;
  text-shadow: 0 0 15px rgba(255,215,0,0.6);
}

.hero-left p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-top: 15px;
}

.hero-right {
  flex: 1;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-box {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 0 15px rgba(255,215,0,0.15);
}

.login-box h4 {
  color: #FFD700;
  margin-bottom: 20px;
}

.form-control {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
}

.form-control::placeholder {
  color: rgba(255,255,255,0.7);
}

.btn-gold {
  background: linear-gradient(90deg, #FFD700, #e0aa00);
  color: #000;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
}

.btn-gold:hover {
  transform: scale(1.03);
  box-shadow: 0 0 12px #FFD700AA;
}

 .rooms-section {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
  }


  .rooms-title {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
  }

  .rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
  }

  .room-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
  }

  .room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(255,215,0,0.3);
    border-color: #FFD700;
  }

  .room-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #FFD700;
  }

  .room-desc {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    margin-top: 0.5rem;
    min-height: 40px;
  }

  .room-actions {
    margin-top: 1rem;
  }

  .btn-join {
    background: linear-gradient(90deg, #FFD700, #e0aa00);
    color: #000;
    border: none;
    font-weight: 600;
    border-radius: 6px;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
  }

  .btn-join:hover {
    background: #fff;
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 0 12px #FFD700AA;
  }

  /* Forms */
  .room-forms {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
  }

  .room-form {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 1.5rem;
    width: 300px;
    backdrop-filter: blur(6px);
  }

  .room-form h4 {
    color: #FFD700;
    margin-bottom: 1rem;
  }

  .form-control {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
  }

  .form-control::placeholder {
    color: rgba(255,255,255,0.6);
  }

  /* Mobile spacing */
  @media (max-width: 600px) {
    .rooms-title {
      font-size: 1.7rem;
    }
    .room-card {
      padding: 1.2rem;
    }
  }

@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-left, .hero-right {
    flex: unset;
    padding: 40px 25px;
  }
}

.rooms-section {
  margin-top: 2rem;
}

.room-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.room-card:hover {
  border-color: #FFD700;
  box-shadow: 0 0 12px rgba(255,215,0,0.3);
}

.room-info {
  flex: 1;
  min-width: 200px;
}

.room-info h4 {
  color: #FFD700;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.room-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}
.btn-gold {
  background: linear-gradient(90deg, #FFD700, #e0aa00);
  color: #000;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  box-shadow: 0 0 10px #FFD70055;
  transition: 0.3s;
}

.btn-gold:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 15px #FFD700;
}

.btn-outline-light {
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
  border-radius: 8px;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.btn-outline-danger {
  border: 1px solid #ff6b6b;
  color: #ff6b6b;
  border-radius: 8px;
  font-weight: 500;
  padding: 0.5rem 1rem;
}

.btn-outline-danger:hover {
  background: #ff6b6b;
  color: #000;
  box-shadow: 0 0 10px #ff6b6b99;
}

/* === CREATE ROOM / ROOM CHOICE CARDS === */
.create-room {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 3rem;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

.create-room h3 {
  color: #FFD700;
  text-align: center;
  margin-bottom: 1rem;
}

/* === CREATE ROOM / ROOM CHOICE CARDS === */
.room-choice-card__cta .btn {
  white-space: normal;
}

.room-choice-card__cta .btn-gold {
  color: #000 !important;
  font-weight: 700;
  border: none;
  background: linear-gradient(90deg, #FFD700, #e0aa00) !important;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
}

.room-choice-card__cta .btn-gold:hover,
.room-choice-card__cta .btn-gold:focus,
.room-choice-card__cta .btn-gold:active,
.room-choice-card__cta .btn-gold.active,
.room-choice-card__cta .btn-check:checked + .btn-gold {
  color: #000 !important;
  border: none;
  background: linear-gradient(90deg, #FFD700, #e0aa00) !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.22), 0 0 14px rgba(255, 215, 0, 0.28);
}

.room-choice-card__cta .btn-gold:focus-visible {
  outline: 2px solid rgba(255, 215, 0, 0.7);
  outline-offset: 2px;
}

.room-choice-card__cta .btn-warning {
  color: #000;
  font-weight: 700;
  border: none;
  background: linear-gradient(90deg, #FFD700, #e0aa00);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
}

.room-choice-card__cta .btn-warning:hover,
.room-choice-card__cta .btn-warning:focus,
.room-choice-card__cta .btn-warning:active,
.room-choice-card__cta .btn-warning.active,
.room-choice-card__cta .btn-check:checked + .btn-warning {
  color: #000;
  background: linear-gradient(90deg, #FFD700, #e0aa00);
  border: none;
  box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.22), 0 0 14px rgba(255, 215, 0, 0.28);
}

.room-choice-card__cta .btn-warning:focus-visible {
  outline: 2px solid rgba(255, 215, 0, 0.7);
  outline-offset: 2px;
}

 /* === 📱 Responsive table with smooth horizontal scroll === */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
}

.table {
  min-width: 900px; /* force un scroll sur petit écran */
}

@media (max-width: 768px) {
  table thead th {
    white-space: nowrap;
    font-size: 0.9rem;
  }

  table td, table th {
    padding: 0.5rem;
  }

  #submitVotesBtn, #unlockVotesBtn, #autoAssignBtn {
    width: 100%;
    margin-bottom: 0.8rem;
  }

  .container {
    padding: 0 10px;
  }

  /* Keep the mobile viewport background consistent when iOS keyboard opens */
  html,
  body {
    overflow-x: hidden;
    background:
      radial-gradient(circle at 12% 88%, rgba(255, 0, 128, 0.38) 0%, rgba(255, 0, 128, 0) 24%),
      radial-gradient(circle at 82% 14%, rgba(79, 70, 229, 0.5) 0%, rgba(79, 70, 229, 0) 24%),
      linear-gradient(120deg, #2a084f 0%, #12033a 28%, #020b63 62%, #050a4a 100%);
    background-repeat: no-repeat;
    background-size: cover;
  }
}

/* === CTA Section === */
.cta-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  text-align: center;
}

.cta-container .btn {
  min-width: 180px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 8px;
  transition: all 0.25s ease;
}

/* Styles spécifiques */
.btn-primary {
  background: linear-gradient(90deg, #6a0dad, #8a2be2);
  border: none;
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #8a2be2, #b084ff);
  box-shadow: 0 0 10px #b084ff99;
}

.btn-outline-danger {
  border: 1px solid #ff6b6b;
  color: #ff6b6b;
}

.btn-outline-danger:hover {
  background: #ff6b6b;
  color: #000;
  box-shadow: 0 0 10px #ff6b6b99;
}

.btn-outline-warning {
  border: 1px solid #FFD700;
  color: #FFD700;
}

.btn-outline-warning:hover {
  background: #FFD700;
  color: #000;
  box-shadow: 0 0 10px #FFD70099;
}

/* Mobile */
@media (max-width: 768px) {
  .cta-container {
    flex-direction: column;
  }
  .cta-container .btn {
    width: 100%;
  }
}

/* === 🎤 Eurovision Confirm Modal - Contrast Fix === */
.confirm-modal {
  background: rgba(43, 10, 92, 0.9);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.2);
  color: #fff !important;
  animation: popFade 0.4s ease;
}

/* ✅ Texte principal bien blanc */
.confirm-modal .modal-body p {
  color: #fefefe !important;
}

/* ✅ Texte secondaire ("Are you sure…") en doré lumineux */
.confirm-modal .modal-body p.text-muted {
  color: #FFD700 !important;
  opacity: 0.9;
  font-weight: 500;
}

/* Titre doré */
.text-gold {
  color: #FFD700 !important;
  text-shadow: 0 0 8px #FFD70055;
}

/* Bouton Eurovision */
.btn-gold {
  background: linear-gradient(90deg, #FFD700, #e0aa00);
  color: #000;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 0 10px #FFD70055;
  transition: all 0.3s ease;
}

.btn-gold:hover {
  background: #fff;
  box-shadow: 0 0 15px #FFD700;
  transform: translateY(-2px);
}
 .btn-gold {
    background: linear-gradient(90deg, #FFD700, #e0aa00);
    color: #000;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 0.9rem 1.6rem;
    box-shadow: 0 0 15px #FFD70055;
    transition: all 0.3s ease;
  }
  .btn-gold:hover {
    background: #fff;
    box-shadow: 0 0 20px #FFD700AA;
    transform: translateY(-2px);
  }
  .text-glow {
    text-shadow: 0 0 15px rgba(255,215,0,0.4);
  }
  .presenter-list {
    max-width: 500px;
    margin: 0 auto;
  }
  .presenter-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    margin-bottom: 0.4rem;
    color: white;
    text-align: left;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
  }
  .presenter-item.active {
    border-color: #FFD700;
    background: rgba(255,215,0,0.1);
    box-shadow: 0 0 10px #FFD70066;
  }
  .presenter-item.done {
    opacity: 0.6;
  }
  .icon-slot {
    font-size: 1.3rem;
    min-width: 30px;
    text-align: center;
  }

    .country-item { margin-bottom: 12px; transition: transform 0.6s ease; will-change: transform; }

  .country-bar{
    display:flex;
    align-items:center;
    gap:0;
    min-height:72px;
    background: linear-gradient(90deg, #7a2dbe 0%, #6c27b0 38%, #3b67c8 78%, #cf44b9 100%);
    border: none;
    border-radius: 0;
    padding: 0 14px 0 12px;
    position:relative;
    overflow:visible;
    transition: all 0.3s ease;
    box-shadow: none;
  }
  .country-bar.highlight {
    background: linear-gradient(90deg, #d8b13f 0%, #b88f31 38%, #8b6cc7 72%, #6a57d1 100%);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.35);
    border: 3px solid #FFD700;
  }
  .country-bar.tabbed {
    transform: translateX(12px);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.16), 0 0 16px rgba(255,215,0,0.28);
  }

  .rank-box{
    background: transparent;
    color: rgba(255,255,255,0.95);
    min-width: 54px;
    height: 72px;
    display:flex;
    justify-content:center;
    align-items:center;
    font-weight:800;
    border-radius:0;
    font-size:1.9rem;
    line-height:1;
    letter-spacing: 0.02em;
    flex-shrink:0;
  }

  .flag-box{
    display:flex;
    align-items:center;
    justify-content:center;
    width: 72px;
    min-width: 72px;
    height: 48px;
    margin: 0 14px 0 0;
    background: transparent;
    flex-shrink:0;
    align-self: center;
    overflow: hidden;
  }
  .flag-box img.flag{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    transition: none;
    border: none;
    display: block;
  }

  .country-name{
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 0;
    font-weight: 800;
    font-size: 1.9rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .score-box{
    width: auto;
    min-width: 108px;
    margin-left: 22px;
    background: transparent;
    color: #dff6ff;
    text-align: right;
    font-weight: 800;
    border-radius: 0;
    font-size: 2rem;
    line-height: 1;
    text-shadow: 0 0 18px rgba(160, 240, 255, 0.28);
    flex-shrink: 0;
    position: relative;
  }

  .plus-points{
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(100%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    height: auto;
    padding: 0;
    background: transparent !important;
    color: #dff6ff !important;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
    border: none;
    box-shadow: none !important;
    text-shadow: 0 0 12px rgba(160, 240, 255, 0.45);
    z-index: 3;
    pointer-events: none;
    border-radius: 0;
  }

  .plus-points,
  .plus-points.highlight,
  .plus-points.active,
  .plus-points.show {
    background: transparent !important;
    color: #dff6ff !important;
    box-shadow: none !important;
  }

  @media (max-width: 768px) {
    .country-bar {
      min-height: 60px;
      padding-right: 10px;
      padding-left: 10px;
    }

    .rank-box {
      min-width: 40px;
      height: 60px;
      font-size: 1.15rem;
    }

    .flag-box {
      width: 56px;
      min-width: 56px;
      height: 60px;
      margin-right: 10px;
      align-self: stretch;
    }

    .flag-box img.flag {
      width: 100%;
      height: 100%;
    }

    .country-name {
      font-size: 1.15rem;
    }

    .score-box {
      min-width: 78px;
      margin-left: 10px;
      font-size: 1.35rem;
    }

    .plus-points {
      font-size: 1rem;
      border-radius: 0;
      background: transparent !important;
      box-shadow: none !important;
    }
  }

  @keyframes floatUp{
    0%{ opacity:0; transform: translateY(10px) scale(1.2); }
    20%{ opacity:1; }
    100%{ opacity:0; transform: translateY(-40px) scale(1.4); }
  }

  .podium-overlay{
    position:fixed; top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.8);
    display:flex; justify-content:center; align-items:center; z-index:2000;
  }
  .podium-content{
    background:#2b0a5c; border:2px solid #FFD700; border-radius:10px;
    padding:30px; color:white; text-align:center;
    width:450px; max-width:90%;
    box-shadow:0 0 25px #FFD700;
  }

  .twitter-container{
    position:fixed; right:20px; top:120px; width:400px; height:80vh; overflow-y:auto;
    background: rgba(15,15,40,0.8);
    border:1px solid rgba(255,255,255,0.1);
    border-radius:10px; padding:15px; color:white;
    box-shadow:0 0 15px #7A3FFF55;
  }

  .reveal-cta{ display:flex; flex-wrap:wrap; justify-content:center; gap:1rem; margin-top:2.5rem; }
  .btn-gold{
    background: linear-gradient(90deg, #FFD700, #e0aa00);
    color:#000; font-weight:600; border:none; border-radius:8px;
    padding:0.8rem 1.5rem; box-shadow:0 0 12px #FFD70055; transition: all 0.3s ease;
  }
  .btn-gold:hover{ background:#fff; transform: translateY(-2px); box-shadow:0 0 18px #FFD700AA; }
  .btn-outline-light{
    border:1px solid rgba(255,255,255,0.6); color:#fff; font-weight:500; border-radius:8px;
    padding:0.8rem 1.5rem; transition: all 0.3s ease;
  }
  .btn-outline-light:hover{ background: rgba(255,255,255,0.15); box-shadow:0 0 10px rgba(255,255,255,0.4); }

  #podiumContainer{ margin-top:3rem; text-align:center; }

  .podium{ display:flex; justify-content:center; align-items:flex-end; gap:1.5rem; margin-top:2rem; }
  .podium-step{
    position:relative; background: rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.1);
    border-radius:12px 12px 0 0; width:140px; text-align:center; color:white;
    box-shadow:0 0 15px rgba(255,215,0,0.2);
    display:flex; flex-direction:column; justify-content:flex-end; padding:1rem 0.5rem;
  }
  .podium-step.gold{ background: linear-gradient(160deg, #FFD700, #e0aa00); color:#000; height:220px; box-shadow:0 0 25px #FFD700aa; }
  .podium-step.silver{ background: linear-gradient(160deg, #d8d8d8, #a8a8a8); color:#000; height:180px; }
  .podium-step.bronze{ background: linear-gradient(160deg, #cd7f32, #a66a29); color:#000; height:150px; }
  .podium-step h5{ margin-bottom:0.3rem; font-size:1rem; font-weight:700; }
  .podium-step p{ margin:0; font-size:0.95rem; font-weight:600; }
  .podium-step small{ color: rgba(0,0,0,0.7); font-size:0.85rem; }

  /* ✅ WINNER FOCUS */

  .winner-focus .country-bar{
    box-shadow: 0 0 35px #FFD700, 0 0 70px rgba(122,63,255,0.6) !important;
    border: 3px solid #FFD700 !important;
  }

  .winner-clone{
    width: min(680px, 92vw);
  }
  .winner-clone{
    box-shadow: 0 0 35px #FFD700, 0 0 70px rgba(122,63,255,0.6) !important;
    border: 3px solid #FFD700 !important;
    border-radius: 10px;
  }

  .winner-clone .country-bar{
    box-shadow: 0 0 35px #FFD700, 0 0 70px rgba(122,63,255,0.6) !important;
    border: 3px solid #FFD700 !important;
  }

  /* ✅ FIREWORKS */
  .fireworks-overlay{
    position: fixed;
    inset: 0;
    z-index: 2500;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(255,215,0,0.08), rgba(0,0,0,0.0) 60%);
  }
  .fireworks-canvas{
    width: 100%;
    height: 100%;
    display: block;
  }
  /* ✅ Custom modal */
.ui-modal { position: fixed; inset: 0; z-index: 4000; }
.ui-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(3px);
}
.ui-modal-card{
  position: relative;
  width: min(520px, 92vw);
  margin: 18vh auto 0;
  padding: 22px 18px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(160deg, rgba(43,10,92,0.95), rgba(10,10,42,0.92));
  border: 1px solid rgba(255,215,0,0.35);
  box-shadow: 0 0 26px rgba(255,215,0,0.25), 0 0 18px rgba(122,63,255,0.25);
  animation: uiPop 220ms ease-out;
}
@keyframes uiPop {
  from { transform: translateY(10px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* --- Toast (votes unlocked) --- */
.unlock-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  padding: 12px 16px;
  border-radius: 12px;
  z-index: 2000;

  background: rgba(20, 20, 20, 0.95);
  color: #fff;
  border: 1px solid rgba(255, 215, 0, 0.35);

  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);

  transition: opacity 0.25s ease, transform 0.25s ease;
  font-weight: 600;
}

.unlock-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.country-item {
  margin-bottom: 12px;
  transition: transform 0.6s ease;
  will-change: transform;
}

.country-bar.highlight {
  background: linear-gradient(90deg, #FFD700, #7A3FFF);
  box-shadow: 0 0 20px #FFD700;
}

.country-bar.tabbed {
  transform: translateX(15px);
  box-shadow: 0 0 12px #FFD700AA;
}

.plus-points{
  position:absolute;
  right:86px; /* juste à gauche du score */
  top:50%;
  transform: translateY(-50%);
  background: rgba(60, 220, 120, 0.9);
  border: 1px solid rgba(255,255,255,0.35);
  color:#08130b;
  font-weight:900;
  font-size:1.05rem;
  line-height:1;
  padding:6px 10px;
  border-radius:6px;
  min-width:40px;
  text-align:center;
  box-shadow: 0 0 14px rgba(60, 220, 120, 0.35);
}

@keyframes floatUp {
  0% { opacity:0; transform: translateY(10px) scale(1.2); }
  20% { opacity:1; }
  100% { opacity:0; transform: translateY(-40px) scale(1.4); }
}

/* Overlay winner : transparent et au-dessus de tout */
#winnerOverlay {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: transparent !important;
  z-index: 100000;        /* AU-DESSUS des fireworks */
  pointer-events: none;
}

#winnerCardHost .winner-card {
  pointer-events: none;
  background: #2b0a5c;
  border: 2px solid #FFD700;
  border-radius: 14px;
  padding: 34px 38px;
  color: white;
  text-align: center;
  width: 520px;
  max-width: 92vw;
  box-shadow: 0 0 28px #FFD700;
}

#winnerCardHost .winner-card .winner-flag {
  width: 80px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 14px;
}

/* Pop */
.winner-pop {
  animation: winnerPop 900ms cubic-bezier(.2,1,.2,1) both;
}

@keyframes winnerPop {
  0%   { opacity: 0; transform: translateY(12px) scale(.82); filter: blur(2px); }
  60%  { opacity: 1; transform: translateY(0) scale(1.06); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Fireworks overlay : transparent (derrière la carte) */
#fireworksOverlay {
  background: transparent !important;
  z-index: 99999;
  pointer-events: none;
}


.hero-lang-menu .fi,
.hero-lang-btn .fi {
  font-size: 1.2em;
  line-height: 1;
  display: inline-block;
}

.page-shell {
  max-width: 940px;
  margin: 0 auto;
  padding: 32px 18px 48px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.page-head h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
}

.page-head p {
  margin: 8px 0 0;
  color: rgba(255,255,255,0.78);
}

.page-back,
.faq-back {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  white-space: nowrap;
}

.page-back:hover,
.faq-back:hover {
  color: #FFD700;
}

.legal-wrap,
.faq-wrap {
  max-width: 940px;
  margin: 0 auto;
  padding: 32px 18px 48px;
}

.legal-head,
.faq-head {
  margin-bottom: 24px;
}

.faq-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.faq-head h1 {
  margin: 0;
}

.faq-head p {
  margin: 8px 0 0;
  color: rgba(255,255,255,0.78);
}

.legal-section,
.faq-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 0 14px rgba(255,255,255,0.06);
}

.legal-section + .legal-section,
.faq-item + .faq-item {
  margin-top: 14px;
}

.legal-section h2,
.faq-q {
  margin: 0 0 10px;
  color: #FFD700;
  font-size: 1.15rem;
  font-weight: 800;
}

.legal-section p,
.legal-section li,
.faq-a p {
  color: rgba(255,255,255,0.9);
  line-height: 1.65;
}

.legal-section ul {
  margin: 10px 0 0 1.1rem;
}

details.faq-item {
  background: rgba(255,255,255,0.06);
}

details.faq-item[open] {
  background: rgba(255,255,255,0.08);
}

summary.faq-q {
  cursor: pointer;
  list-style: none;
}

summary.faq-q::-webkit-details-marker {
  display: none;
}

.faq-a {
  margin-top: 10px;
}

@media (max-width: 768px) {
  .page-shell,
  .legal-wrap,
  .faq-wrap {
    padding: 24px 16px 36px;
  }

  .page-head,
  .faq-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-head h1,
  .faq-head h1 {
    font-size: 1.65rem;
  }
}




/* === Pricing (Home) === */
.pricing-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 0 1rem;
}

.pricing-head .pricing-title {
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
}

.pricing-subtitle {
  color: rgba(255,255,255,0.72) !important;
}

.pricing-head .pricing-subtitle {
  margin: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 0 16px rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.55);
  box-shadow: 0 0 26px rgba(255, 215, 0, 0.18);
}

.pricing-card--premium {
  border-color: rgba(255, 215, 0, 0.35);
  box-shadow: 0 0 22px rgba(255, 215, 0, 0.16);
}

.pricing-card__top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-card__title {
  margin: 0;
  font-weight: 800;
  color: #FFD700;
}

.pricing-card__price {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.3px;
}

.pricing-card__note {
  color: rgba(255,255,255,0.76) !important;
  margin-top: 2px;
}

.pricing-card__list {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(255,255,255,0.92);
}

.pricing-card__list li {
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.92);
}

.pricing-card__list li::before {
  content: "•";
  color: rgba(255, 215, 0, 0.9);
  font-weight: 900;
  line-height: 1;
  margin-top: 2px;
}

.pricing-card__cta {
  margin-top: 2px;
}

.pricing-card__foot {
  margin-top: 10px;
  color: rgba(255,255,255,0.7) !important;
  text-align: center;
}

.pricing-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.14);
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: #FFD700;
  font-weight: 800;
  font-size: 0.8rem;
}

@media (max-width: 600px) {
  .pricing-head .pricing-title { font-size: 1.55rem; }
  .pricing-card__price { font-size: 1.85rem; }
}

/* === Mobile refonte: table -> "contestant cards" === */
.mobile-controls {
  display: none;
  margin: 0 0 0.75rem;
}
.sticky-controls {
  position: sticky;
  top: 0;
  z-index: 1200;
  backdrop-filter: blur(8px);
}
.mobile-controls__inner {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 0.6rem;
  background: rgba(10,10,42,0.85);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
}
.mobile-search { flex: 1; }
.mobile-sort { width: 160px; }

@media (max-width: 768px) {
  .mobile-controls { display: block; }

  /* Hide table header on mobile */
  #evaluationTable thead { display: none; }

  /* Turn rows into stacked cards */
  #evaluationTable,
  #evaluationTable tbody,
  #evaluationTable tr,
  #evaluationTable td {
    display: block;
    width: 100%;
  }

  #evaluationTable tbody tr {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 14px;
    padding: 12px 12px;
    margin: 0 0 12px;
    box-shadow: 0 0 14px rgba(0,0,0,0.18);
  }

  /* Line 1: flag + country + artist + song (already in td#1) */
  #evaluationTable tbody tr > td:nth-child(1) {
    padding: 0 0 10px;
  }

  /* Line 2: voice / stage / song / total on one line */
  #evaluationTable tbody tr > td:nth-child(2),
  #evaluationTable tbody tr > td:nth-child(3),
  #evaluationTable tbody tr > td:nth-child(4),
  #evaluationTable tbody tr > td:nth-child(5) {
    display: inline-block;
    vertical-align: top;
    width: calc(25% - 6px);
    padding: 6px 3px;
  }

  #evaluationTable tbody tr > td:nth-child(2) input,
  #evaluationTable tbody tr > td:nth-child(3) input,
  #evaluationTable tbody tr > td:nth-child(4) input {
    width: 100%;
  }

  #evaluationTable tbody tr > td:nth-child(5) {
    text-align: center;
    font-weight: 900;
  }

  /* Line 3: comment + points */
  #evaluationTable tbody tr > td:nth-child(6) {
    display: inline-block;
    width: calc(70% - 6px);
    padding: 10px 3px 0;
  }
  #evaluationTable tbody tr > td:nth-child(7) {
    display: inline-block;
    width: calc(30% - 6px);
    padding: 10px 3px 0;
  }

  /* Labels (small) above inputs on mobile */
  #evaluationTable tbody tr > td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    opacity: 0.85;
    margin-bottom: 4px;
    color: rgba(255,255,255,0.8);
  }

  /* Don't show label for first line */
  #evaluationTable tbody tr > td:nth-child(1)::before {
    content: "";
    display: none;
  }

  /* Make points row compact */
  #evaluationTable tbody tr > td:nth-child(7) .d-flex {
    justify-content: flex-end;
  }
}

/* === PROFILE PAGE === */
.profile-page {
  padding: 28px 18px 40px;
}

.profile-shell {
  max-width: 980px;
  margin: 0 auto;
}

.profile-head {
  margin-bottom: 26px;
}


.profile-page__title {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 800;
  color: rgba(255,255,255,0.96);
}


.profile-flash {
  margin-bottom: 16px;
}

.profile-panel {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
  background: rgba(104, 68, 156, 0.34);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(0,0,0,0.12);
}

.profile-panel + .profile-panel {
  margin-top: 18px;
}

.profile-panel__label {
  padding: 24px 18px;
  color: #ffd400;
  font-size: 1.05rem;
  font-weight: 700;
  background: rgba(255,255,255,0.03);
}

.profile-panel__body {
  padding: 14px 18px 18px;
}

.profile-panel__body--danger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.profile-panel__hint {
  margin-top: 10px;
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  line-height: 1.45;
}

.profile-inline-form {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-inline-form--top {
  align-items: stretch;
}

.profile-stack-form {
  margin-bottom: 18px;
}

.profile-input {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.18);
  color: #1a1032;
}

.profile-input:focus {
  background: #fff;
  color: #1a1032;
  border-color: rgba(255, 212, 0, 0.65);
  box-shadow: 0 0 0 0.2rem rgba(255, 212, 0, 0.18);
}

.profile-input--wide {
  max-width: 460px;
}

.profile-btn-primary {
  min-width: 160px;
}

.profile-btn-secondary {
  min-width: 140px;
}

.profile-connection-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-connection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.profile-connection-title,
.profile-field-label {
  color: rgba(255,255,255,0.96);
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-connection-text,
.profile-note,
.profile-danger-text,
.profile-password-label {
  color: rgba(255,255,255,0.88);
}

.profile-note {
  font-size: 0.95rem;
  line-height: 1.45;
}

.profile-divider {
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 18px 0;
}

.profile-password-grid-wrap {
  display: grid;
  grid-template-columns: minmax(220px, 260px) 1fr;
  gap: 26px;
  align-items: start;
}

.profile-password-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
}

.profile-password-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 220px);
  align-items: center;
  gap: 16px;
}

.profile-password-label {
  margin: 0;
  font-size: 0.98rem;
}

.profile-password-submit {
  padding-top: 4px;
}

.profile-panel--danger {
  background: rgba(104, 68, 156, 0.28);
}

.profile-danger-text {
  margin: 0;
  line-height: 1.45;
}


@media (max-width: 768px) {
  .profile-page {
    padding: 20px 12px 30px;
  }

  .profile-page__title {
    font-size: 1.8rem;
  }

  .profile-panel {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .profile-panel__label {
    padding: 18px 18px 8px;
    background: transparent;
  }

  .profile-panel__body {
    padding-top: 6px;
  }

  .profile-inline-form,
  .profile-panel__body--danger,
  .profile-connection-row {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-input--wide,
  .profile-btn-primary,
  .profile-btn-secondary,
  .profile-connection-action form,
  .profile-connection-action .btn {
    max-width: none;
    width: 100%;
  }

  .profile-password-grid-wrap,
  .profile-password-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* === HOME / ROOM HUB === */
.home-rooms-section {
  padding-top: 8px;
}

.home-rooms-head {
  margin-bottom: 22px;
}

.home-rooms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.home-room-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 0 14px rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.home-room-card--create {
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.28);
}

.home-room-card__top {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-room-card__headline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.home-room-card__sep {
  color: rgba(255,255,255,0.62);
  font-weight: 600;
}

.home-room-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.home-room-card__status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-room-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.32rem 0.62rem;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
}

.home-room-pill--open {
  border-color: rgba(61, 212, 122, 0.32);
  background: rgba(61, 212, 122, 0.12);
}

.home-room-pill--closed {
  border-color: rgba(255, 107, 107, 0.32);
  background: rgba(255, 107, 107, 0.12);
}

.home-room-pill--scheduled {
  border-color: rgba(255, 215, 0, 0.28);
  background: rgba(255, 215, 0, 0.1);
}

.home-room-card__hint,
.home-room-card__text {
  color: rgba(255,255,255,0.88);
  line-height: 1.4;
  font-size: 0.88rem;
}

.home-room-card__text {
  margin: 0;
}

.home-room-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.home-room-actions .btn {
  min-width: 104px;
  padding: 0.42rem 0.78rem;
}

@media (max-width: 768px) {
  .home-rooms-grid {
    grid-template-columns: 1fr;
  }

  .home-room-card {
    padding: 14px;
    min-height: auto;
  }

  .home-room-actions {
    flex-direction: column;
  }

  .home-room-actions .btn {
    width: 100%;
  }
}

/* === CREATE ROOM / ROOM CHOICE CARDS === */
.room-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.room-choice-card {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 0 16px rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 360px;
  height: 100%;
}

.room-choice-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.55);
  box-shadow: 0 0 26px rgba(255, 215, 0, 0.18);
}

.room-choice-card--featured {
  border-color: rgba(255, 215, 0, 0.35);
  box-shadow: 0 0 22px rgba(255, 215, 0, 0.16);
}

.room-choice-card__top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.room-choice-card__title {
  margin: 0;
  font-weight: 800;
  color: #FFD700;
}

.room-choice-card__note {
  margin-top: 2px;
  color: rgba(255,255,255,0.76) !important;
}

.room-choice-card__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.room-choice-card__cta .form-control,
.room-choice-card__cta .form-select,
.room-choice-card__cta .btn {
  width: 100%;
}

.room-choice-card__cta .btn {
  white-space: normal;
}

@media (max-width: 768px) {
  .room-choice-grid {
    grid-template-columns: 1fr;
  }

  .room-choice-card {
    min-height: unset;
  }
}

/* === GLOBAL CTA FIX === */
.btn,
button.btn,
input[type="submit"].btn,
input[type="button"].btn {
  -webkit-appearance: none;
  appearance: none;
}

.btn:focus,
.btn:active,
.btn:focus-visible,
button.btn:focus,
button.btn:active,
button.btn:focus-visible,
input[type="submit"].btn:focus,
input[type="submit"].btn:active,
input[type="submit"].btn:focus-visible,
input[type="button"].btn:focus,
input[type="button"].btn:active,
input[type="button"].btn:focus-visible {
  outline: none;
}

/* Gold CTA */
.btn-gold,
.btn-gold:hover,
.btn-gold:focus,
.btn-gold:active,
.btn-gold:focus-visible,
.btn-gold.active,
.btn-check:checked + .btn-gold {
  background: linear-gradient(90deg, #FFD700, #e0aa00) !important;
  color: #000 !important;
  border: none !important;
}

.btn-gold:focus,
.btn-gold:active,
.btn-gold:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.22), 0 0 14px rgba(255, 215, 0, 0.28) !important;
}

/* Yellow / warning CTA */
.btn-warning,
.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active,
.btn-warning:focus-visible,
.btn-warning.active,
.btn-check:checked + .btn-warning {
  background: linear-gradient(90deg, #FFD700, #e0aa00) !important;
  color: #000 !important;
  border: none !important;
}

.btn-warning:focus,
.btn-warning:active,
.btn-warning:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.22), 0 0 14px rgba(255, 215, 0, 0.28) !important;
}

/* Outline light CTA */
.btn-outline-light,
.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light:active,
.btn-outline-light:focus-visible,
.btn-outline-light.active,
.btn-check:checked + .btn-outline-light {
  background: rgba(255,255,255,0.12) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.6) !important;
}

.btn-outline-light:focus,
.btn-outline-light:active,
.btn-outline-light:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.16), 0 0 12px rgba(255,255,255,0.18) !important;
}

/* Outline danger CTA */
.btn-outline-danger,
.btn-outline-danger:hover,
.btn-outline-danger:focus,
.btn-outline-danger:active,
.btn-outline-danger:focus-visible,
.btn-outline-danger.active,
.btn-check:checked + .btn-outline-danger {
  background: transparent !important;
  color: #ff6b6b !important;
  border: 1px solid #ff6b6b !important;
}

.btn-outline-danger:focus,
.btn-outline-danger:active,
.btn-outline-danger:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.2), 0 0 12px rgba(255, 107, 107, 0.2) !important;
}

/* Outline warning CTA */
.btn-outline-warning,
.btn-outline-warning:hover,
.btn-outline-warning:focus,
.btn-outline-warning:active,
.btn-outline-warning:focus-visible,
.btn-outline-warning.active,
.btn-check:checked + .btn-outline-warning {
  background: transparent !important;
  color: #FFD700 !important;
  border: 1px solid #FFD700 !important;
}

.btn-outline-warning:focus,
.btn-outline-warning:active,
.btn-outline-warning:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.18), 0 0 12px rgba(255, 215, 0, 0.18) !important;
}
/* === GLOBAL CTA FIX === */
.btn,
button.btn,
input[type="submit"].btn,
input[type="button"].btn {
  -webkit-appearance: none;
  appearance: none;
}

.btn:focus,
.btn:active,
.btn:focus-visible,
button.btn:focus,
button.btn:active,
button.btn:focus-visible,
input[type="submit"].btn:focus,
input[type="submit"].btn:active,
input[type="submit"].btn:focus-visible,
input[type="button"].btn:focus,
input[type="button"].btn:active,
input[type="button"].btn:focus-visible {
  outline: none;
}

.btn-gold,
.btn-gold:hover,
.btn-gold:focus,
.btn-gold:active,
.btn-gold:focus-visible,
.btn-gold.active,
.btn-check:checked + .btn-gold {
  background: linear-gradient(90deg, #FFD700, #e0aa00) !important;
  color: #000 !important;
  border: none !important;
}

.btn-gold:focus,
.btn-gold:active,
.btn-gold:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.22), 0 0 14px rgba(255, 215, 0, 0.28) !important;
  transform: none !important;
}

.btn-gold:hover {
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.35) !important;
}

.btn-warning,
.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active,
.btn-warning:focus-visible,
.btn-warning.active,
.btn-check:checked + .btn-warning {
  background: linear-gradient(90deg, #FFD700, #e0aa00) !important;
  color: #000 !important;
  border: none !important;
}

.btn-warning:focus,
.btn-warning:active,
.btn-warning:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.22), 0 0 14px rgba(255, 215, 0, 0.28) !important;
  transform: none !important;
}

.btn-warning:hover {
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.35) !important;
}

.btn-outline-light,
.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light:active,
.btn-outline-light:focus-visible,
.btn-outline-light.active,
.btn-check:checked + .btn-outline-light {
  background: rgba(255,255,255,0.12) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.6) !important;
}

.btn-outline-light:focus,
.btn-outline-light:active,
.btn-outline-light:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.16), 0 0 12px rgba(255,255,255,0.18) !important;
  transform: none !important;
}

.btn-outline-danger,
.btn-outline-danger:hover,
.btn-outline-danger:focus,
.btn-outline-danger:active,
.btn-outline-danger:focus-visible,
.btn-outline-danger.active,
.btn-check:checked + .btn-outline-danger {
  background: transparent !important;
  color: #ff6b6b !important;
  border: 1px solid #ff6b6b !important;
}

.btn-outline-danger:focus,
.btn-outline-danger:active,
.btn-outline-danger:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.2), 0 0 12px rgba(255, 107, 107, 0.2) !important;
  transform: none !important;
}

.btn-outline-warning,
.btn-outline-warning:hover,
.btn-outline-warning:focus,
.btn-outline-warning:active,
.btn-outline-warning:focus-visible,
.btn-outline-warning.active,
.btn-check:checked + .btn-outline-warning {
  background: transparent !important;
  color: #FFD700 !important;
  border: 1px solid #FFD700 !important;
}

.btn-outline-warning:focus,
.btn-outline-warning:active,
.btn-outline-warning:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.18), 0 0 12px rgba(255, 215, 0, 0.18) !important;
  transform: none !important;
}

/* === Closed votes: readable but clearly locked === */
.contestant-card input:disabled,
.contestant-card select:disabled,
.contestant-card textarea:disabled,
.table-responsive .contestant-row input:disabled,
.table-responsive .contestant-row select:disabled,
.table-responsive .contestant-row textarea:disabled {
  background: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.75) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.75) !important;
  opacity: 1 !important;
  border: 1px dashed rgba(255,255,255,0.18) !important;
  cursor: not-allowed;
}

/* Placeholder un peu plus discret */
.contestant-card input:disabled::placeholder,
.contestant-card textarea:disabled::placeholder {
  color: rgba(255,255,255,0.4) !important;
}

/* Select sans flèche active */
.contestant-card select:disabled {
  background-image: none;
}

/* Total reste bien visible */
.cc-total {
  color: #fff;
  opacity: 0.9;
}

/* Légère teinte globale pour signaler "verrouillé" */
.contestant-card.table-success {
  filter: saturate(0.85);
}

.main.container-fluid {
  padding-left: 0;
  padding-right: 0;
}

.landing-sections {
  color: #fff;
}

.landing-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px;
}

.landing-section + .landing-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.landing-section-intro {
  max-width: 760px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 0;
}

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

.landing-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.landing-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.landing-card p,
.landing-card li {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

.landing-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.landing-list li + li {
  margin-top: 10px;
}

.landing-steps {
  counter-reset: landing-steps;
}

.landing-steps .landing-card h3::before {
  counter-increment: landing-steps;
  content: counter(landing-steps) ". ";
  color: #f6c343;
}

.landing-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.landing-faq details {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 20px 22px;
}

.landing-faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.landing-faq summary::-webkit-details-marker {
  display: none;
}

.landing-faq p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.75;
}

.landing-cta {
  text-align: center;
}

.landing-cta .btn-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

@media (max-width: 991px) {
  .landing-grid,
  .landing-faq {
    grid-template-columns: 1fr;
  }

  .landing-section {
    padding: 56px 20px;
  }
}