:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary-color: #8b5cf6;
  --accent-color: #06b6d4;
  --dark-bg: #0f172a;
  --darker-bg: #020617;
  --card-bg: #1e293b;
  --light-text: #f1f5f9;
  --muted-text: #94a3b8;
  --border-color: #334155;
  --success-green: #10b981;
  --tank-blue: #3b82f6;
  --heal-green: #10b981;
  --dps-red: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', sans-serif;
  background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
  color: var(--light-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

/* Header */
header {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
}

.logo h1 {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
}

.tagline {
  color: var(--muted-text);
  font-size: 0.9rem;
  margin: 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  flex-wrap: nowrap;
  align-items: center;
}

nav a {
  color: var(--muted-text);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
  white-space: nowrap;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--light-text);
  background-color: rgba(99, 102, 241, 0.1);
}

nav a.active {
  color: var(--light-text);
  background-color: rgba(99, 102, 241, 0.15);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Main Content */
main {
  flex: 1;
  padding: 40px 0;
}

section {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(10px);
  padding: 35px;
  border-radius: 16px;
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

h2 {
  color: var(--light-text);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

h3 {
  color: var(--light-text);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 25px 0 15px 0;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 60px 30px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  padding-bottom: 0;
}

.hero h2::after {
  display: none;
}

.hero-text {
  font-size: 1.2rem;
  color: var(--muted-text);
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.info-card {
  background: rgba(30, 41, 59, 0.8);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.2);
  border-color: var(--primary-color);
}

.info-card:hover::before {
  opacity: 1;
}

.info-card h3 {
  margin-top: 0;
  color: var(--primary-light);
}

/* Latest News */
.latest-news {
  margin-top: 30px;
}

.news-item {
  background: rgba(30, 41, 59, 0.6);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 20px;
  border-left: 4px solid var(--accent-color);
  transition: all 0.3s ease;
}

.news-item:hover {
  transform: translateX(5px);
  border-left-color: var(--primary-color);
}

.news-item h3 {
  margin-top: 0;
  color: var(--light-text);
}

.news-date {
  color: var(--accent-color);
  font-size: 0.85rem;
  margin-bottom: 10px;
  font-weight: 500;
}

/* Roster */
.roster-table {
  overflow: visible;
  margin: 20px 0;
}

/* Sur mobile, permettre le scroll horizontal */
@media (max-width: 1024px) {
  .roster-table {
    overflow-x: auto;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(30, 41, 59, 0.4);
  border-radius: 12px;
  overflow: visible;
}

thead {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

th, td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  font-weight: 600;
  color: var(--light-text);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

tbody tr {
  transition: background-color 0.2s ease;
}

tbody tr:hover {
  background-color: rgba(99, 102, 241, 0.1);
}

.badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-tank {
  background: linear-gradient(135deg, var(--tank-blue), #2563eb);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.role-heal {
  background: linear-gradient(135deg, var(--heal-green), #059669);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.role-dps {
  background: linear-gradient(135deg, var(--dps-red), #dc2626);
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.roster-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.stat-card {
  background: rgba(30, 41, 59, 0.6);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: scale(1.05);
  border-color: var(--primary-color);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

.stat-number {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  margin: 10px 0;
}

/* Raids */
.raid-schedule {
  background: rgba(30, 41, 59, 0.4);
  padding: 25px;
  border-radius: 12px;
  margin: 20px 0;
  border: 1px solid var(--border-color);
}

.schedule-item {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr;
  gap: 15px;
  padding: 20px;
  background: rgba(30, 41, 59, 0.6);
  border-radius: 8px;
  margin-bottom: 12px;
  border-left: 3px solid var(--accent-color);
  transition: all 0.3s ease;
}

.schedule-item:hover {
  transform: translateX(5px);
  border-left-color: var(--primary-color);
}

.schedule-day {
  font-weight: 600;
  color: var(--primary-light);
}

.schedule-status {
  padding: 6px 12px;
  border-radius: 20px;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
}

.schedule-status.progression {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.raid-info {
  margin: 30px 0;
}

.progress-card {
  background: rgba(30, 41, 59, 0.6);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.difficulty-section {
  margin: 20px 0;
}

.progress-bar {
  background-color: rgba(15, 23, 42, 0.8);
  height: 28px;
  border-radius: 14px;
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid var(--border-color);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  position: relative;
}

.progress-fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1));
}

.progress-fill.complete {
  background: linear-gradient(90deg, var(--success-green), #059669);
}

.raid-rules ul,
.loot-system ul {
  margin-left: 20px;
  line-height: 1.8;
}

.raid-rules li,
.loot-system li {
  margin-bottom: 10px;
}

/* Recruitment */
.intro {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--light-text);
}

.recruitment-table {
  margin: 20px 0;
}

.priority {
  padding: 5px 12px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.85rem;
}

.priority-haute {
  background-color: #e74c3c;
  color: white;
}

.priority-moyenne {
  background-color: #f39c12;
  color: white;
}

.priority-basse {
  background-color: #3498db;
  color: white;
}

.note {
  font-style: italic;
  color: var(--secondary-color);
  margin-top: 15px;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.requirement-card {
  background: rgba(30, 41, 59, 0.6);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.requirement-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

.requirement-card h4 {
  color: var(--primary-light);
  margin-bottom: 15px;
}

.requirement-card ul {
  list-style: none;
  padding-left: 0;
}

.requirement-card li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.requirement-card li:last-child {
  border-bottom: none;
}

.requirement-card li:before {
  content: "✓ ";
  color: var(--success-green);
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.1rem;
}

.process-steps {
  counter-reset: step-counter;
  list-style: none;
  padding-left: 0;
}

.process-steps li {
  counter-increment: step-counter;
  margin-bottom: 30px;
  padding-left: 60px;
  position: relative;
}

.process-steps li:before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: 2px solid var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.apply-cta {
  text-align: center;
  padding: 50px 30px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
  border-radius: 16px;
  margin-top: 30px;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 16px 45px;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-top: 20px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.contact-card {
  background: rgba(30, 41, 59, 0.6);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.contact-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
}

.contact-card h4 {
  color: var(--primary-light);
  margin-bottom: 15px;
}

.contact-info {
  font-size: 1.2rem;
  color: var(--accent-color);
  font-weight: 600;
  margin: 15px 0;
}

.officer-list {
  list-style: none;
  padding-left: 0;
}

.officer-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.officer-list li:last-child {
  border-bottom: none;
}

.contact-form {
  background: rgba(30, 41, 59, 0.6);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

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

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: var(--light-text);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px;
  background-color: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--light-text);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background-color: rgba(15, 23, 42, 0.8);
}

.server-info {
  margin-top: 40px;
  background: rgba(30, 41, 59, 0.6);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.server-info .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.info-item {
  padding: 18px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 8px;
  border-left: 3px solid var(--accent-color);
  transition: all 0.3s ease;
}

.info-item:hover {
  border-left-color: var(--primary-color);
  transform: translateX(5px);
}

/* Footer */
footer {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  padding: 30px 0;
  text-align: center;
  margin-top: auto;
}

footer p {
  margin: 5px 0;
  color: var(--muted-text);
}

/* Responsive */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    justify-content: center;
    margin-top: 15px;
  }

  .info-grid,
  .requirements-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .schedule-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

/* ============================================================================
   WARCRAFT LOGS SECTION - Logs Récents
   ============================================================================ */

.recent-logs {
  margin-top: 30px;
  background: var(--card-bg);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid var(--border-color);
}

.recent-logs h3 {
  color: var(--primary-light);
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.logs-list {
  display: grid;
  gap: 15px;
}

.log-item {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
}

.log-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.log-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 12px;
  gap: 15px;
}

.log-header h4 {
  color: var(--light-text);
  font-size: 1.1rem;
  margin: 0;
  flex: 1;
}

.log-date {
  color: var(--muted-text);
  font-size: 0.9rem;
  white-space: nowrap;
}

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

.log-zone {
  color: var(--accent-color);
  font-weight: 500;
  font-size: 0.95rem;
}

.log-stats {
  display: flex;
  gap: 15px;
}

.log-stats .kills {
  color: var(--success-green);
  font-size: 0.9rem;
}

.log-stats .wipes {
  color: var(--dps-red);
  font-size: 0.9rem;
}

.btn-log {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-log:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Styles pour la progression */
.progress-fill.mythic {
  background: linear-gradient(90deg, #dc2626, #ef4444);
}

.no-data {
  color: var(--muted-text);
  font-style: italic;
  margin-top: 10px;
}

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

.raid-header h4 {
  margin: 0;
}

.season-badge {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .log-header {
    flex-direction: column;
    align-items: start;
  }

  .log-date {
    white-space: normal;
  }

  .log-details {
    flex-direction: column;
    align-items: start;
  }

  .log-stats {
    width: 100%;
  }

  .btn-log {
    width: 100%;
  }
}
