:root {
  --paper0: #f1e0b8;
  --paper1: #e7cf9b;
  --ink: #2b1b10;
  --inkSoft: rgba(43, 27, 16, 0.78);
  --line: rgba(43, 27, 16, 0.22);
  --shadow: 0 22px 60px rgba(20, 12, 7, 0.35);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  background:
    radial-gradient(1200px 700px at 25% 20%, rgba(255, 255, 255, 0.38), transparent 55%),
    radial-gradient(900px 600px at 85% 15%, rgba(255, 255, 255, 0.2), transparent 60%),
    radial-gradient(800px 600px at 70% 90%, rgba(120, 75, 25, 0.12), transparent 58%),
    linear-gradient(180deg, var(--paper0), var(--paper1));
  background-attachment: fixed;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  background: transparent;
}

.wrap {
  min-height: 100%;
  padding: 26px 16px 46px;
  display: flex;
  justify-content: center;
}

.page {
  width: min(1120px, 100%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(20, 12, 7, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  font-size: 13px;
}

.brandBadge {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(43, 27, 16, 0.28);
  background-image: url("./Annexe/drapeau.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.grid > .nav {
  grid-column: 1 / -1;
  justify-content: center;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.65px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(43, 27, 16, 0.22);
  background: rgba(255, 255, 255, 0.2);
  transition: background 120ms ease, transform 120ms ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.34);
  transform: translateY(-1px);
}

.hero {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(43, 27, 16, 0.22);
  background:
    radial-gradient(800px 220px at 50% 0%, rgba(255, 255, 255, 0.36), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.06));
}

.heroTitle {
  margin: 0 0 12px;
  text-align: center;
  font-weight: 900;
  font-size: clamp(18px, 2.3vw, 26px);
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.mapFrame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(43, 27, 16, 0.24);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.0),
      rgba(255, 255, 255, 0.0) 11px,
      rgba(43, 27, 16, 0.05) 12px
    ),
    radial-gradient(1100px 340px at 50% 20%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.0) 55%),
    linear-gradient(180deg, rgba(231, 207, 155, 0.85), rgba(214, 174, 108, 0.82));
}

.mapImage {
  display: block;
  width: 100%;
  height: auto;
}

.mapPlaceholder {
  padding: 44px 18px;
  text-align: center;
  color: var(--inkSoft);
  line-height: 1.55;
  font-size: 15px;
}

.grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.panel {
  grid-column: span 6;
  border-radius: 16px;
  border: 1px solid rgba(43, 27, 16, 0.22);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 30px rgba(20, 12, 7, 0.16);
  padding: 14px 14px 16px;
}

.panel h2 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.panel p {
  margin: 0;
  color: var(--inkSoft);
  line-height: 1.55;
  font-size: 14.5px;
}

.teamLinks {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.teamLinks a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(43, 27, 16, 0.22);
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.24);
  font-weight: 750;
  transition: transform 120ms ease, background 120ms ease;
}

.teamLinks a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.35);
}

.panelWide {
  grid-column: span 12;
}

.teamPage .hero > .field,
.teamPage .hero > .actions,
.teamPage .hero > p#teamCodeFeedback {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.teamPage .hero > .actions {
  justify-content: center;
}

.teamPage .hero > .field label {
  text-align: center;
}

.teamPage .hero > p#teamCodeFeedback {
  text-align: center;
}

footer {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(43, 27, 16, 0.18);
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(43, 27, 16, 0.7);
  font-size: 12.5px;
}

@media (max-width: 860px) {
  .panel {
    grid-column: span 12;
  }
}
