/* ============================================================
   S.W.E.A.T GAMING — Design System
   Dark militaire × African pride · COD loading-screen energy
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@400;500;600;700&family=Barlow:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Barlow+Condensed:wght@500;600;700&display=swap');

:root {
  /* Core S.W.E.A.T palette */
  --black:        #0A0A0A;
  --black-900:    #070707;
  --panel:        #121212;
  --panel-2:      #181818;
  --panel-3:      #1f1f1f;
  --line:         #2a2a2a;
  --line-soft:    #202020;

  --blood:        #CC0000;
  --red:          #FF1A1A;
  --red-deep:     #8a0000;
  --chrome:       #C0C0C0;
  --white:        #FFFFFF;

  /* CAN Warzone accents */
  --jungle:       #1A4A1A;
  --jungle-bright:#3ea832;
  --jungle-glow:  #5fd14d;
  --gold:         #D4A017;
  --gold-bright:  #f2c23e;
  --orange:       #E2761B; /* présélection CI */

  --txt:          #e8e8e8;
  --txt-dim:      #9a9a9a;
  --txt-faint:    #6a6a6a;

  --glow-red:     0 0 20px rgba(204,0,0,.55);
  --glow-red-soft:0 0 14px rgba(204,0,0,.35);
  --glow-green:   0 0 20px rgba(62,168,50,.45);
  --glow-gold:    0 0 18px rgba(212,160,23,.45);

  --notch: 14px; /* angular corner size */

  --ff-display: 'Bebas Neue', sans-serif;
  --ff-head:    'Rajdhani', sans-serif;
  --ff-cond:    'Barlow Condensed', sans-serif;
  --ff-body:    'Barlow', sans-serif;

  --maxw: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--txt);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Global gritty texture + vignette baked into the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(204,0,0,.10), transparent 55%),
    radial-gradient(ellipse at 50% 120%, rgba(0,0,0,.6), transparent 60%);
  mix-blend-mode: screen;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { position: relative; padding: 88px 0; z-index: 2; }
.section--tight { padding: 56px 0; }
main { position: relative; z-index: 2; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1; }

.display {
  font-family: var(--ff-display);
  letter-spacing: .02em;
  line-height: .92;
  text-transform: uppercase;
}

.tac-label {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.tac-label::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--blood);
  box-shadow: var(--glow-red-soft);
}
.tac-label--green { color: var(--jungle-glow); }
.tac-label--green::before { background: var(--jungle-bright); box-shadow: var(--glow-green); }
.tac-label--gold { color: var(--gold-bright); }
.tac-label--gold::before { background: var(--gold); box-shadow: var(--glow-gold); }
.tac-label--center { justify-content: center; }

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(38px, 6vw, 76px);
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--white);
  margin: 16px 0 0;
  line-height: 1.02;
}
.section-title .accent { color: var(--red); }
.section-title .accent-green { color: var(--jungle-glow); }
.section-title .accent-gold { color: var(--gold-bright); }

.lead { color: var(--txt-dim); font-size: 17px; max-width: 60ch; }

.eyebrow-row { display: flex; flex-direction: column; gap: 0; margin-bottom: 44px; }
.eyebrow-row--center { align-items: center; text-align: center; }

/* Chrome / metal text effect for big titles */
.metal {
  background: linear-gradient(180deg, #ffffff 0%, #e9e9e9 38%, #9a9a9a 52%, #f4f4f4 70%, #bdbdbd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 0 rgba(0,0,0,.4);
}

/* ---------- Angular clip-path frames ---------- */
.notch-tl-br {
  clip-path: polygon(var(--notch) 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%, 0 var(--notch));
}
.notch-tr-bl {
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)));
}

/* ---------- Buttons ---------- */
.btn {
  --b: var(--blood);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(180deg, var(--red) 0%, var(--blood) 60%, var(--red-deep) 100%);
  border: 1px solid rgba(255,60,60,.5);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: box-shadow .25s, transform .15s, filter .25s;
  position: relative;
}
.btn:hover { box-shadow: var(--glow-red); transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--txt);
}
.btn--ghost:hover { border-color: var(--blood); color: #fff; box-shadow: var(--glow-red-soft); }

.btn--green {
  background: linear-gradient(180deg, var(--jungle-bright) 0%, #257a1d 100%);
  border-color: rgba(95,209,77,.5);
}
.btn--green:hover { box-shadow: var(--glow-green); }

.btn--gold {
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
  border-color: rgba(242,194,62,.6);
  color: #1a1300;
}
.btn--gold:hover { box-shadow: var(--glow-gold); }

.btn--lg { padding: 17px 40px; font-size: 16px; }
.btn--sm { padding: 9px 18px; font-size: 12.5px; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background:
    linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  --notch: 16px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.card.notch-tl-br, .card.notch-tr-bl { /* keep clip */ }
.card:hover {
  border-color: var(--blood);
  box-shadow: var(--glow-red);
  transform: translateY(-4px);
}
.card__body { padding: 24px; }

/* tactical corner ticks */
.corner-ticks::before,
.corner-ticks::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid var(--blood);
  opacity: .8;
  pointer-events: none;
}
.corner-ticks::before { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.corner-ticks::after { bottom: 8px; right: 8px; border-left: none; border-top: none; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 11px;
  border: 1px solid var(--line);
  color: var(--txt-dim);
  background: rgba(0,0,0,.4);
}
.badge--news    { color: #d8d8d8; border-color:#3a3a3a; }
.badge--roster  { color: #6ab0ff; border-color: rgba(106,176,255,.4); }
.badge--meta    { color: var(--gold-bright); border-color: rgba(242,194,62,.4); }
.badge--tournament,.badge--tournoi { color: var(--red); border-color: rgba(255,26,26,.4); }

/* Live / status pills */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid currentColor;
}
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--live    { color: var(--red); }
.status--live .dot { animation: pulse-red 1.2s infinite; }
.status--upcoming{ color: var(--gold-bright); }
.status--finished{ color: var(--txt-faint); }

@keyframes pulse-red {
  0%   { box-shadow: 0 0 0 0 rgba(255,26,26,.7); }
  70%  { box-shadow: 0 0 0 9px rgba(255,26,26,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,26,26,0); }
}

/* ---------- Header / nav ---------- */
.site-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, var(--red-deep), var(--blood), var(--red-deep));
  color: #fff;
  font-family: var(--ff-head);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 13px;
  text-align: center;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(255,80,80,.4);
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.site-banner .status--live { color: #fff; border-color: rgba(255,255,255,.5); }
.site-banner a { text-decoration: underline; text-underline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8,8,8,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-banner + .site-header { top: 0; }
.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 52px; width: auto; filter: drop-shadow(0 0 10px rgba(204,0,0,.35)); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--txt-dim);
  padding: 8px 14px;
  position: relative;
  transition: color .2s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0;
  height: 2px; background: var(--blood); box-shadow: var(--glow-red-soft);
}
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: #fff; width: 44px; height: 44px; }

@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 76px; left: 0; right: 0;
    background: rgba(8,8,8,.98); border-bottom: 1px solid var(--line); padding: 12px 16px; gap: 2px;
  }
  .nav-links.open a { padding: 14px; }
  .nav-cta .btn { display: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  background: var(--black-900);
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 64px; margin-bottom: 16px; }
.footer-col h4 {
  font-family: var(--ff-head); font-weight: 700; font-size: 14px;
  letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 16px;
}
.footer-col a, .footer-col p { display: block; color: var(--txt-dim); font-size: 14.5px; margin-bottom: 9px; transition: color .2s; }
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--txt-faint); font-size: 13px; letter-spacing: .04em;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Social icons ---------- */
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.soc {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  color: var(--txt-dim);
  background: rgba(0,0,0,.4);
  transition: all .22s;
  clip-path: polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px);
}
.soc:hover { color:#fff; border-color: var(--blood); box-shadow: var(--glow-red-soft); transform: translateY(-2px); }
.soc svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Placeholder media ---------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, #161616 0 14px, #111 14px 28px);
  display: flex; align-items: center; justify-content: center;
  color: var(--txt-faint);
  font-family: 'Barlow Condensed', monospace;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  padding: 6px 10px;
  border: 1px dashed #333;
  color: #777;
}

/* ---------- Misc ---------- */
.divider-slash {
  height: 2px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--blood) 30%, var(--red) 50%, var(--blood) 70%, transparent);
  opacity: .5;
}
.kicker-num {
  font-family: var(--ff-display);
  font-size: clamp(60px, 9vw, 120px);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 2px #262626;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 920px){ .grid-3 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.flags-row { display: flex; flex-wrap: wrap; gap: 10px; }
.flag-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border: 1px solid var(--line); background: rgba(0,0,0,.4);
  font-family: var(--ff-head); font-weight: 600; font-size: 13px; letter-spacing: .06em;
  color: var(--txt); transition: all .2s;
}
.flag-chip .em { font-size: 18px; line-height: 1; }
.flag-chip:hover { border-color: var(--gold); box-shadow: var(--glow-gold); color: #fff; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.85); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--panel); border: 1px solid var(--line);
  max-width: 860px; width: 100%; max-height: 88vh; overflow: auto;
  --notch: 18px;
  box-shadow: var(--glow-red), 0 30px 80px rgba(0,0,0,.7);
}
.modal__close {
  position: sticky; top: 0; float: right;
  background: var(--blood); color:#fff; border:none;
  width: 44px; height: 44px; font-size: 20px; z-index: 2;
}
body.modal-open { overflow: hidden; }

/* ---------- Teams grid (shared: index + equipes) ---------- */
.teams-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 920px){ .teams-grid { grid-template-columns: repeat(3,1fr);} }
@media (max-width: 560px){ .teams-grid { grid-template-columns: repeat(2,1fr);} }
.team-cell {
  position: relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border:1px solid var(--line); padding: 26px 16px;
  transition: all .25s; overflow: hidden; min-height: 200px; cursor: pointer;
  clip-path: polygon(12px 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%,0 12px);
}
.team-cell:hover { border-color: var(--blood); box-shadow: var(--glow-red); transform: translateY(-3px); }
.team-badge {
  width: 92px; height: 92px;
  display:flex; align-items:center; justify-content:center; position: relative;
  font-family: var(--ff-display); font-size: 32px; color:#fff; letter-spacing:.04em;
}
.team-badge img { width: 100%; height: 100%; object-fit: contain; }
.team-badge.mono { clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); }
.team-cell .tname { font-family: var(--ff-head); font-weight:700; letter-spacing:.06em; color:#fff; font-size: 16px; text-align:center; }
.team-cell .tpartner { font-size: 11px; color: var(--txt-faint); letter-spacing:.08em; text-transform: uppercase; font-family: var(--ff-head); text-align:center; }
.team-cell.placeholder { opacity: .5; cursor: default; }
.team-cell.placeholder .tname { color: var(--txt-dim); }
.team-cell.placeholder:hover { opacity:.8; border-color: var(--line); box-shadow:none; transform:none; }
