/* ==========================================
   IMPORT DES POLICES
========================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* ==========================================
   STYLE GLOBAL
========================================== */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #f4f6f8;
  color: #333;
  line-height: 1.6;
}

/* ==========================================
   HEADER
========================================== */
header {
  padding: 20px 40px;
  border-bottom-right-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  background: linear-gradient(135deg, #004170, #00AEEF);
  transition: background 0.4s ease;
}

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

header h1 a {
  color: #fff;
  text-decoration: none;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.header-logo {
  height: 80px;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;

}

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

/* ==========================================
   LAYOUT
========================================== */
.container {
  display: flex;
  min-height: calc(100vh - 100px);
}

/* ==========================================
   SIDEBAR
========================================== */

/* Supprimer soulignement du lien parent */
.sidebar .tabs a {
  text-decoration: none;
  display: block; /* pour que le bouton prenne toute la largeur */
}


/* Lien parent */
.sidebar .tabs a {
  text-decoration: none; 
  display: block;
}

/* Bouton France style li */
.sidebar .tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  margin-bottom: 8px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #0b1a2b, #0f2c55); /* bleu foncé statique */
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Hover pour tous les boutons */
.sidebar .tab:hover {
  background: linear-gradient(90deg, #0b1a2b, #0f2c55); /* même bleu foncé au survol */
  transform: translateX(3px);
}

/* Non actif → gris très clair */
.sidebar .tab:not(.active) {
  background: rgba(220, 220, 220, 0.15); /* gris très clair */
  color: #000; /* texte visible sur gris clair */
  transform: translateX(0);
}

/* Forcer tous les états du lien parent à ne pas interférer */
.sidebar .tabs a:link .tab,
.sidebar .tabs a:visited .tab,
.sidebar .tabs a:focus .tab,
.sidebar .tabs a:active .tab {
  text-decoration: none;
}


.sidebar {
  width: 220px;
  background: rgba(28,28,28,0.9);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 20px;
  overflow-y: auto;
  border-right: 2px solid rgba(255,255,255,0.1);
}

.sidebar h2 {
  margin-top: 0;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
}

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

.sidebar li {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.sidebar li:hover {
  background: linear-gradient(90deg, #1f4287, #0d1b2a);
  transform: translateX(3px);
}

.sidebar li.active {
  background: linear-gradient(90deg, #1a73e8, #4facfe);
  font-weight: 700;
}

.sidebar hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin: 15px 0;
}

/* Scrollbar personnalisée */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.4);
}

/* ==========================================
   MAIN CONTENT
========================================== */
main {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

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

main h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
}

/* Boutons */
#transfers-btn, #transfermarkt-btn {
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  margin-left: 10px;
}

#transfers-btn {
  background: linear-gradient(135deg, #1a73e8, #003366);
}

#transfers-btn:hover {
  background: linear-gradient(135deg, #003366, #1a73e8);
  transform: translateY(-2px);
}

#transfermarkt-btn {
  background: linear-gradient(135deg, #ff6600, #e65c00);
}

#transfermarkt-btn:hover {
  transform: translateY(-2px);
}

/* ==========================================
   ARTICLES
========================================== */
.article {
  display: flex;
  flex-direction: column;
  background: #fff;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  max-height: 120px;
  overflow: hidden;
}

.article:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.article h2 {
  font-size: 1.2rem;
  margin: 0 0 5px 0;
}

.article a {
  color: #1a73e8;
  text-decoration: none;
}

.article a:hover {
  text-decoration: underline;
}

.article-content p.excerpt {
  margin: 0;
  font-size: 0.95rem;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-content p.date {
  font-size: 0.85rem;
  color: #555;
  margin: 3px 0 0 0;
}

.article-content p.source {
  font-size: 0.85rem;
  font-weight: bold;
  font-style: italic;
  color: #555;
  margin: 1px 0 0 0;
}

.article.recent {
  border-left: 5px solid #ff5c5c;
  background-color: #fff7f7;
  position: relative;
}

.article.recent::before {
  content: "Nouveau";
  position: absolute;
  top: 8px;
  right: 12px;
  background: #ff5c5c;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
}

/* ==========================================
   LOADER
========================================== */
.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #1a73e8;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 25px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================
   FOOTER
========================================== */
footer {
  border-top: 1px solid #000;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9f9f9;
}

.footer-left {
  font-weight: bold;
}

.footer-right a {
  font-weight: bold;
  font-style: italic;
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-right a:hover {
  color: #444;
}

/* ==========================================
   RESPONSIVE MOBILE
========================================== */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    display: flex;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 10px 0;
  }

  .sidebar ul {
    display: flex;
    flex-wrap: nowrap;
  }

  .sidebar li {
    flex: 0 0 auto;
    margin: 0 5px;
    padding: 8px 12px;
  }

  main {
    padding: 15px;
  }

  main h2 {
    font-size: 1.5rem;
  }

  .content-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  #transfers-btn, #transfermarkt-btn {
    margin-left: 0;
  }

  .article {
    max-height: none;
  }
}


