/* ============================================
   EXCELLENCE AWARDS - CSS SPÉCIFIQUE
   ============================================ */

/* :: VARIABLES AWARDS :: */
:root {
  --award-gold: #ffd700;
  --award-silver: #c0c0c0;
  --award-bronze: #cd7f32;
  --award-gradient: linear-gradient(135deg, var(--primary), #60a5fa);
}

/* :: HEADER :: */
.main-header {
  padding: 200px 0 100px;
  background: linear-gradient(180deg,
    #0a0e27 0%,
    #132037 25%,
    #1a2540 50%,
    #1a1b2e 75%,
    #0a0e27 100%
  );
  overflow: hidden;
  position: relative;
}

.main-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 96, 254, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(96, 165, 250, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.main-header > .container {
  position: relative;
  z-index: 1;
  padding-top: 120px;
}

@media only screen and (max-width: 1199.98px) {
  .main-header {
    padding: 170px 0 80px;
  }
}

@media only screen and (max-width: 991.98px) {
  .main-header {
    padding: 150px 0 60px;
  }
}

/* :: main-header CONTENT :: */
.main-header .title-5 {
  font-size: 15px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.main-header .title-1 {
  font-size: clamp(2rem, 4vw, 2rem);
  font-weight: 800;
  font-family: var(--secondary-font);
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 20px;
}

.main-header .title-1.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-header .para-1 {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

/* :: BUTTONS :: */
.main-header .buttons {
  gap: 15px;
}

.btn-fill-primary,
.btn-fill-light,
.btn-fill-dark,
.reject-btn {
  padding: 15px 30px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-fill-primary {
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  border: none;
  color: #fff;
}

.btn-fill-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 96, 254, 0.4);
}

.btn-fill-light {
  background-color: #90b2f9;
  color: #fff;
  border: 1px solid #90b2f9;
}

.btn-fill-light:hover {
  background-color: #7a9ef5;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(144, 178, 249, 0.3);
}

.btn-fill-dark {
  background-color: #302dba;
  color: #fff;
  border: 1px solid #302dba;
}

.btn-fill-dark:hover {
  background-color: #2622a3;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(48, 45, 186, 0.3);
}

.btn-outline-dark {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 15px 30px;
  border-radius: 10px;
  font-weight: 600;
}

.btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
}

/* :: HERO IMAGE :: */
.main-header .hero {
  position: absolute;
  left: 55%;
  bottom: 10%;            /* Largeur idéale pour une illustration horizontale */
  max-width: 800px;         /* Taille max */
  height: auto;
  opacity: 0.8;
  z-index: 2;
}

.main-header .hero:hover {
  opacity: 1;
  transition: ease-in-out 2s;
  transform: scale(1.02);
}

@media only screen and (max-width: 1199.98px) {
  .main-header .hero {
    left: 60%;
    width: 500px;
  }
}

@media only screen and (max-width: 991.98px) {
  .main-header .hero {
    display: none;
  }
}

/* ============================================
   USER BAR (Informations utilisateur)
   ============================================ */
.user-bar {
  z-index: 999;
  border-bottom: 1px solid var(--primary);
  backdrop-filter: blur(50px);
  padding: 10px 0 10px !important;
}

.user-bar .user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-bar .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 20px;
  border: 2px solid var(--primary);
  object-fit: cover;
}

.user-bar .user-details {
  display: flex;
  flex-direction: column;
}

.user-bar .user-name {
  font-weight: 700;
  color: #ffffff;
  font-size: 1rem;
  margin: 0;
}

.user-bar .user-role {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
}

.user-bar .btn-logout {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  color: #ff3b30;
  padding: 5px 5px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.user-bar .btn-logout:hover {
  background: rgba(255, 59, 48, 0.2);
  border-color: #ff3b30;
  transform: translateY(-2px);
}

/* ============================================
   COUNTDOWN TIMER (Compte à rebours)
   ============================================ */
.countdown-container {
  background: linear-gradient(135deg, var(--semi-dark-2) 0%, var(--semi-dark-3) 100%);
  border: 2px solid var(--primary);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin-bottom: 50px;
  box-shadow: 0 10px 40px rgba(0, 96, 254, 0.3);
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}

.countdown-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.countdown-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
}

/* ============================================
   CATEGORY SECTION (Sections de catégories)
   ============================================ */
.category-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.category-header::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  background: var(--award-gradient);
  margin: 20px auto 0;
  border-radius: 2px;
}

.category-icon {
  font-size: 3rem;
  background: var(--award-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
}

.category-title {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.category-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 20px;
}

.category-giveaway {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.95rem;
  color: var(--award-gold);
  font-weight: 600;
}

/* ============================================
   NOMINATION CARDS (Cartes de nominations)
   ============================================ */
.nominations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.nomination-card {
  background: var(--semi-dark);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 25px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.nomination-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--award-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.nomination-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 60px rgba(0, 96, 254, 0.3);
}

.nomination-card:hover::before {
  transform: scaleX(1);
}

.nomination-card.voted {
  border-color: var(--award-gold);
  background: linear-gradient(135deg, var(--semi-dark) 0%, rgba(255, 215, 0, 0.05) 100%);
}

.nomination-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  border: 3px solid var(--primary);
  object-fit: cover;
  display: block;
}

.nomination-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 15px;
}

.nomination-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
}

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

.nomination-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 15px;
  background: rgba(0, 96, 254, 0.1);
  border: 1px solid rgba(0, 96, 254, 0.3);
  border-radius: 20px;
  color: var(--primary);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nomination-link:hover {
  background: rgba(0, 96, 254, 0.2);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.vote-button {
  width: 100%;
  padding: 12px;
  background: var(--award-gradient);
  border: none;
  border-radius: 8px;
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.vote-button:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.vote-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.vote-button.voted {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: #fff;
}

.vote-count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* ============================================
   CALENDAR (Calendrier interactif)
   ============================================ */
.calendar-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.calendar-event {
  background: var(--semi-dark);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 25px;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.calendar-event:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(0, 96, 254, 0.2);
}

.calendar-event.completed {
  border-color: #4caf50;
  opacity: 0.7;
}

.calendar-event.active {
  border-color: var(--award-gold);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.calendar-date {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 10px;
}

.calendar-month {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.calendar-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.calendar-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.calendar-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.calendar-badge.nomination { background: rgba(0, 96, 254, 0.2); color: var(--primary); }
.calendar-badge.voting { background: rgba(255, 215, 0, 0.2); color: var(--award-gold); }
.calendar-badge.announcement { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
.calendar-badge.completed { background: rgba(76, 175, 80, 0.2); color: #4caf50; }

/* ============================================
   HALL OF FAME (Gagnants)
   ============================================ */
.winners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.winner-card {
  background: linear-gradient(135deg, var(--semi-dark-2) 0%, var(--semi-dark-3) 100%);
  border: 3px solid var(--award-gold);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3);
}

.winner-card::before {
  content: '🏆';
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 10rem;
  opacity: 0.05;
  transform: rotate(15deg);
}

.winner-trophy {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: trophy-bounce 2s ease-in-out infinite;
}

@keyframes trophy-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.winner-category {
  font-size: 1rem;
  color: var(--award-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 15px;
}

.winner-name {
  font-size: 2rem;
  font-weight: 800;
  background: var(--award-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
}

.winner-votes {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
}

.winner-giveaway {
  background: rgba(255, 215, 0, 0.1);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-top: 25px;
}

.winner-giveaway-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--award-gold);
  margin-bottom: 10px;
}

.winner-giveaway-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   NOMINATION FORM (Formulaire d'inscription)
   ============================================ */
.nomination-form {
  background: var(--semi-dark);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  background: var(--semi-dark-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 96, 254, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group small {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-top: 5px;
}

/* ============================================
   RULES SECTION (Règlement)
   ============================================ */
.rules-container {
  background: var(--semi-dark);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border);
}

.rule-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.rule-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--award-gradient);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
}

.rule-content h4 {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.rule-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   ALERTS & NOTIFICATIONS
   ============================================ */
.alert-awards {
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1rem;
}

.alert-awards i {
  font-size: 1.5rem;
}

.alert-awards.info {
  background: rgba(0, 96, 254, 0.1);
  border: 1px solid rgba(0, 96, 254, 0.3);
  color: var(--primary);
}

.alert-awards.success {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #4caf50;
}

.alert-awards.warning {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: #ffc107;
}

.alert-awards.error {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  color: #ff3b30;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .countdown-timer {
    gap: 20px;
  }
  
  .countdown-number {
    font-size: 2rem;
  }
  
  .nominations-grid {
    grid-template-columns: 1fr;
  }
  
  .calendar-container {
    grid-template-columns: 1fr;
  }
  
  .winners-grid {
    grid-template-columns: 1fr;
  }
  
  .nomination-form {
    padding: 25px;
  }
  
  .user-bar .user-info {
    flex-direction: column;
    text-align: center;
  }
  
  .category-title {
    font-size: 1.5rem;
  }
  
  .winner-name {
    font-size: 1.5rem;
  }
}

/* ============================================
   LOADING ANIMATION
   ============================================ */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

/* Login Button */
.btn-discord-login {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #5865F2;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-discord-login:hover {
  background: #4752C4;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
  color: #ffffff;
}

.btn-discord-login i {
  font-size: 1.3rem;
}


.form-control.password{
  margin-top: 20px;
  padding: 15px;
  padding-left: 40px;
  padding-right: 40px;
  border-radius: 15px;
  border: 1px solid var(--primary);
  background-color: var(--semi-dark);
  color: #fff;
}

.reject-btn {
  background-color: #e74c3c; /* Rouge */
  color: #fff;
  border: 1px solid #e74c3c;
}

.reject-btn:hover {
  background-color: #c0392b; /* Rouge foncé */
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3); /* Ombre rouge */
}

.nominations-grid p,
.nominations-grid h3{
  text-align: center;
  color: #fff; 
}

.nominations-grid button{
  align-items: center;
}

.header-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px; /* espace entre les boutons */
}

.header-buttons a,
.header-buttons button {
  flex-shrink: 0;
}

.bold-blue{
  font-weight: bold !important;
  color: var(--primary) !important;
}

.bold-blue:hover{
  text-decoration: underline !important;
}

.card-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.btn-secondary-modern {
  background: linear-gradient(135deg, #8b5cf6, #c084fc) !important;
  border: none !important;
  color: #ffffff !important;
  transition: all 0.3s ease !important;
  border-radius: 10px;
  padding: 10px 22px;
  font-weight: 600;
}

.btn-secondary-modern:hover {
  background: linear-gradient(135deg, #c084fc, #8b5cf6) !important;
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(192, 132, 252, 0.5);
}

/* ============================================
   STYLES POUR LE VOTE QUOTIDIEN
   ============================================ */

/* Animation du message informatif */
@keyframes pulse-glow {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 0 8px 32px rgba(0, 96, 254, 0.2);
  }
  50% { 
    transform: scale(1.02); 
    box-shadow: 0 8px 40px rgba(0, 96, 254, 0.4);
  }
}

/* Bouton voté aujourd'hui - OVERRIDE du style existant */
.vote-button.voted {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  cursor: not-allowed;
  opacity: 0.8;
  position: relative;
}

.vote-button.voted::after {
  content: '✓';
  position: absolute;
  top: -8px;
  right: -8px;
  background: #4ade80;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(74, 222, 128, 0.5);
}

.vote-button.voted:hover {
  transform: none !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4) !important;
}

/* Spinner de chargement - amélioration */
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Responsive pour le badge de vote */
@media (max-width: 768px) {
  .vote-button.voted::after {
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    font-size: 12px;
  }
}