@import url("https://fonts.googleapis.com/css2?family=Bungee&family=Barlow+Condensed:wght@400;500;600;700&display=swap");

/* -------------------------- BASE -------------------------- */
/* Identité visuelle propre à TF2 Connexion (pas de reprise du thème
   Spirito.fr) : le bleu est la couleur d'origine de la communauté TF2
   Connexion, conservée telle quelle. "Bungee" en titraille (rendu
   affiche/pochoir proche de l'esprit TF2 — la police officielle du jeu
   n'étant pas distribuable librement pour le web), "Barlow Condensed" en
   texte courant. */

:root {
  --tf2c-accent: #2f9df4;
  --tf2c-accent-bright: #64c5ff;
  --tf2c-accent-deep: #075b9c;
  --tf2c-panel: #171d25;
  --tf2c-line: rgba(47, 157, 244, 0.24);
  --tf2c-line-strong: rgba(47, 157, 244, 0.45);
  --tf2c-text: #d8e3ee;
  --tf2c-text-dim: #9aa7b4;
  --font-primary: "Bungee", "Barlow Condensed", sans-serif;
  --font-secondary: "Barlow Condensed", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(47, 157, 244, 0.13) 0, rgba(23, 23, 23, 0) 330px),
    linear-gradient(180deg, #101720 0, #171717 46%, #111318 100%);
  color: var(--tf2c-text);
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0;
}

p {
  margin: 0;
}

a {
  color: var(--tf2c-accent-bright);
  text-decoration: none;
}

a:hover {
  color: #ffffff;
  text-decoration: underline;
}

strong {
  font-weight: 600;
  color: #ffffff;
}

img {
  max-width: 100%;
}

/* -------------------------- LAYOUT -------------------------- */

.tf2c-container {
  width: 100%;
  overflow-x: hidden;
}

.tf2c-hautdepage {
  display: block;
  width: min(900px, calc(100% - 40px));
  height: 140px;
  margin: 0 auto;
  border: 0;
  opacity: 0;
}

.tf2c-midpage {
  display: block;
  width: min(900px, calc(100% - 40px));
  height: 0;
  margin: 34px auto;
  border: 0;
  border-top: 1px solid var(--tf2c-line);
}

/* -------------------------- HEADER SIMPLE -------------------------- */

.tf2c-site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 28px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--tf2c-line);
}

.tf2c-site-header a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.5px;
  color: var(--tf2c-text-dim);
}

.tf2c-site-header a:hover,
.tf2c-site-header a.tf2c-nav-active {
  color: #f7fbff;
  text-decoration: none;
}

.tf2c-site-header a.tf2c-nav-active:hover {
  color: var(--tf2c-accent-bright);
}

.tf2c-site-header i {
  color: var(--tf2c-accent-bright);
}

/* -------------------------- BANNIÈRE -------------------------- */

.tf2c-hero-banner {
  position: relative;
  width: 100%;
  max-height: 320px;
  overflow: hidden;
}

.tf2c-hero-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.tf2c-hero-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(16, 23, 32, 0) 0%, #171717 95%);
}

/* -------------------------- TITRES -------------------------- */

.tf2c-title {
  display: block;
  margin: 0 auto;
  max-width: 900px;
  padding: 0 20px;
}

.tf2c-title h2 {
  display: block;
  color: #e5f5ff;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 10px;
}

.tf2c-title h1,
.tf2c-title h2.tf2c-title-main {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: 58px;
  line-height: 0.95;
  text-transform: uppercase;
  color: #f7fbff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
  margin: 0;
}

.tf2c-title h1 strong,
.tf2c-title h2.tf2c-title-main strong {
  color: var(--tf2c-accent-bright);
  font-weight: 900;
}

@media (max-width: 800px) {
  .tf2c-title h1,
  .tf2c-title h2.tf2c-title-main {
    font-size: 40px;
    line-height: 1;
  }
}

.tf2c-title-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 14px 0 0;
  color: var(--tf2c-accent-bright);
}

.tf2c-title-icon::before,
.tf2c-title-icon::after {
  content: "";
  height: 2px;
  width: 50px;
  background: linear-gradient(90deg, rgba(47, 157, 244, 0), var(--tf2c-accent));
}

.tf2c-title-icon::after {
  background: linear-gradient(90deg, var(--tf2c-accent), rgba(47, 157, 244, 0));
}

/* -------------------------- HERO / INTRO -------------------------- */

.tf2c-archive-hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px 10px;
  text-align: center;
}

.tf2c-archive-intro {
  display: block;
  max-width: 780px;
  margin: 24px auto 0;
  padding: 22px 24px;
  background: rgba(13, 17, 24, 0.72);
  border: 1px solid var(--tf2c-line);
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  text-align: left;
}

.tf2c-archive-intro p {
  color: #dceaf5;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.tf2c-archive-intro p:last-child {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .tf2c-archive-intro {
    padding: 18px;
  }
}

.tf2c-seo-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 900px;
  margin: 18px auto 0;
  padding: 0 20px;
}

.tf2c-seo-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid var(--tf2c-line);
  border-radius: 6px;
  background: rgba(47, 157, 244, 0.09);
  color: #cfeeff;
  font-size: 12px;
  font-weight: 700;
}

/* -------------------------- GRILLE D'ARCHIVES -------------------------- */

.tf2c-year-panel[hidden] {
  display: none;
}

.tf2c-archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 780px;
  margin: 35px auto;
  padding: 0 20px;
  text-align: left;
}

.tf2c-year-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 1080px;
  margin: 30px auto 0;
  padding: 0 20px;
}

.tf2c-year-tab {
  padding: 10px 20px;
  background: var(--tf2c-panel);
  border: 1px solid var(--tf2c-line);
  border-radius: 999px;
  color: var(--tf2c-text);
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tf2c-year-tab:hover {
  border-color: var(--tf2c-line-strong);
}

.tf2c-year-tab.active {
  background: var(--tf2c-accent);
  border-color: var(--tf2c-accent);
  color: #0d1118;
}

.tf2c-year-count {
  opacity: 0.7;
  font-weight: 400;
}

.tf2c-archive-card {
  display: block;
  width: 100%;
  background: linear-gradient(180deg, rgba(47, 157, 244, 0.06), var(--tf2c-panel) 42%);
  border: 1px solid var(--tf2c-line);
  border-radius: 8px;
  padding: 22px 22px 24px;
  margin: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.tf2c-archive-card h4 {
  color: #ffffff;
  font-size: 17px;
  line-height: 1.3;
  text-transform: none;
  margin: 0 0 4px;
}

.tf2c-archive-card .archive-date {
  display: block;
  font-family: var(--font-secondary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--tf2c-accent);
  margin: 0 0 12px;
}

.tf2c-archive-card .archive-champ {
  font-size: 13px;
  color: var(--tf2c-text);
  line-height: 1.6;
  margin: 0 0 10px;
}

.tf2c-archive-card h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #a8adb5;
  border-top: 1px solid var(--tf2c-line);
  padding-top: 10px;
  margin: 14px 0 6px;
}

.tf2c-archive-card h5:first-of-type {
  border-top: none;
  padding-top: 0;
}

.tf2c-archive-card ol,
.tf2c-archive-card ul.archive-links {
  display: block;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.tf2c-archive-card ol li,
.tf2c-archive-card ul.archive-links li {
  font-size: 13px;
  color: #c2c6cc;
  line-height: 1.7;
}

.tf2c-archive-card ol li strong {
  color: var(--tf2c-text);
}

.tf2c-archive-card .medal {
  margin-right: 3px;
}

.tf2c-archive-card .archive-source-logo {
  display: inline-block;
  width: 14px;
  height: 14px;
  object-fit: contain;
  vertical-align: middle;
  border-radius: 2px;
  margin-right: 2px;
}

.tf2c-archive-card a {
  color: #a9cdf0;
  text-decoration: underline;
}

.tf2c-archive-card a:hover {
  color: var(--tf2c-accent-bright);
}

.tf2c-champions-card {
  border-color: rgba(212, 160, 23, 0.4);
  background: linear-gradient(180deg, rgba(212, 160, 23, 0.1), #1c1f24 65%);
  text-align: center;
}

.tf2c-champions-card h4 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #e8c468;
}

.tf2c-champions-card .champions-subtitle {
  display: block;
  font-family: var(--font-secondary);
  font-size: 12px;
  color: var(--tf2c-text-dim);
  margin-top: 4px;
}

.tf2c-champions-card .champions-row {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}

.tf2c-champions-card .champion-slot {
  display: block;
  flex: 1;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 14px 8px;
}

.tf2c-champions-card .champion-slot .medal {
  display: block;
  font-size: 26px;
  margin: 0 0 6px;
}

.tf2c-champions-card .champion-label {
  display: block;
  font-family: var(--font-secondary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9aa0a8;
  margin: 0 0 3px;
}

.tf2c-champions-card .champion-slot strong {
  display: block;
  font-size: 15px;
  color: var(--tf2c-text);
}

.tf2c-champions-card .champion-roster {
  display: block;
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--tf2c-text-dim);
}

/* -------------------------- CREDITS -------------------------- */

.tf2c-credits-section {
  padding-bottom: 40px;
}

.tf2c-credit-intro {
  max-width: 780px;
}

.tf2c-credits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1080px;
  margin: 30px auto 36px;
  padding: 0 20px;
  text-align: left;
}

@media (max-width: 700px) {
  .tf2c-credits-grid {
    grid-template-columns: 1fr;
  }
}

.tf2c-credit-card {
  min-height: 0;
}

.tf2c-credit-card-wide {
  grid-column: 1 / -1;
}

.tf2c-credit-card h4 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  color: #ffffff;
  margin-bottom: 12px;
}

.tf2c-credit-card h4 i {
  color: var(--tf2c-accent-bright);
  font-size: 15px;
}

.tf2c-credit-card ul.archive-links li {
  padding: 8px 0;
  border-top: 1px solid rgba(47, 157, 244, 0.12);
}

.tf2c-credit-card ul.archive-links li:first-child {
  border-top: none;
  padding-top: 0;
}

.tf2c-credit-card ul.archive-links li span {
  display: block;
  color: #aebdca;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 2px;
}

.tf2c-credit-names {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tf2c-players-details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tf2c-players-details summary::-webkit-details-marker {
  display: none;
}

.tf2c-players-details summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 1px solid var(--tf2c-line-strong);
  border-radius: 4px;
  color: var(--tf2c-accent-bright);
  font-size: 16px;
  font-weight: 700;
}

.tf2c-players-details[open] summary::before {
  content: "\2212";
}

.tf2c-players-details summary h4 {
  margin: 0;
}

.tf2c-all-players {
  margin-top: 16px;
}

.tf2c-all-players li {
  font-size: 11px;
  padding: 4px 8px;
  min-height: 24px;
}

.tf2c-credit-names li {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(47, 157, 244, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: #d2dee8;
  font-size: 12px;
  line-height: 1.25;
}

.tf2c-credit-chip-links a {
  color: #d2eefc;
  text-decoration: none;
}

.tf2c-credit-chip-links li:hover {
  border-color: rgba(100, 197, 255, 0.45);
  background: rgba(47, 157, 244, 0.12);
}

.tf2c-credit-chip-links li:hover a {
  color: #ffffff;
}

/* -------------------------- LICENCE / CONTACT -------------------------- */

.tf2c-license,
.tf2c-contact {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}

.tf2c-contact-intro {
  text-align: left;
}

.tf2c-form-notice {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 14px !important;
}

.tf2c-form-success {
  background: rgba(47, 157, 244, 0.12);
  border: 1px solid var(--tf2c-line-strong);
  color: #cfeeff;
}

.tf2c-form-error {
  background: rgba(212, 60, 60, 0.12);
  border: 1px solid rgba(212, 60, 60, 0.4);
  color: #ffd7d7;
}

.tf2c-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
}

.tf2c-form label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--tf2c-text-dim);
  margin-top: 10px;
}

.tf2c-form input[type="text"],
.tf2c-form input[type="email"],
.tf2c-form select,
.tf2c-form textarea {
  width: 100%;
  padding: 10px 12px;
  background: rgba(13, 17, 24, 0.72);
  border: 1px solid var(--tf2c-line);
  border-radius: 6px;
  color: var(--tf2c-text);
  font-family: var(--font-secondary);
  font-size: 14px;
}

.tf2c-form input:focus,
.tf2c-form select:focus,
.tf2c-form textarea:focus {
  outline: none;
  border-color: var(--tf2c-accent-bright);
}

.tf2c-form textarea {
  resize: vertical;
}

.tf2c-form button {
  align-self: flex-start;
  margin-top: 16px;
  padding: 12px 26px;
  background: var(--tf2c-accent);
  border: none;
  border-radius: 6px;
  color: #0d1118;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.tf2c-form button:hover {
  background: var(--tf2c-accent-bright);
}

.tf2c-form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* -------------------------- PALMARÈS -------------------------- */

.tf2c-stat-caveat {
  font-size: 13px !important;
  color: var(--tf2c-text-dim) !important;
}

.tf2c-palmares-section {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}

.tf2c-champions-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.tf2c-champions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(212, 160, 23, 0.08), var(--tf2c-panel) 60%);
  border: 1px solid rgba(212, 160, 23, 0.3);
  border-radius: 8px;
  text-align: left;
}

.tf2c-champions-year {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: 20px;
  color: #e8c468;
  min-width: 90px;
}

.tf2c-champions-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #ffffff;
  font-size: 16px;
}

.tf2c-champions-name i {
  color: #e8c468;
}

.tf2c-champions-vice {
  color: var(--tf2c-text-dim);
  font-size: 13px;
  margin-left: auto;
}

.tf2c-stat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.tf2c-stat-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: var(--tf2c-panel);
  border: 1px solid var(--tf2c-line);
  border-radius: 6px;
}

.tf2c-stat-rank {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: 16px;
  color: var(--tf2c-accent-bright);
  min-width: 24px;
}

.tf2c-stat-name {
  flex: 1;
  font-weight: 700;
  color: #ffffff;
}

.tf2c-stat-count {
  color: var(--tf2c-text-dim);
  font-size: 13px;
}

.tf2c-stat-footnote {
  margin-top: 16px !important;
  font-size: 12px !important;
  color: var(--tf2c-text-dim) !important;
}

/* -------------------------- FOOTER -------------------------- */

.tf2c-footer {
  padding: 24px 20px 40px;
  border-top: 1px solid var(--tf2c-line);
  margin-top: 20px;
  font-size: 12px;
  color: var(--tf2c-text-dim);
}

.tf2c-footer a {
  color: var(--tf2c-text-dim);
  text-decoration: underline;
}

.tf2c-footer a:hover {
  color: var(--tf2c-accent-bright);
}
