
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, Arial, sans-serif;
  color: #222;
  background: #f7f7f7;
}

a {
  color: inherit;
  text-decoration: none;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.logo a {
  font-weight: 800;
  font-size: 20px;
}

.nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.nav a {
  padding: 6px 8px;
  border-radius: 8px;
}

.nav a:hover {
  background: #f0f0f0;
}

.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  background: #0077ff;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  border: none;
}

.btn.outline {
  background: transparent;
  color: #0077ff;
  border: 2px solid #0077ff;
}

.hero {
  text-align: center;
  padding: 40px 16px;
  background: #e9f2ff;
}

.hero h2 {
  margin-top: 0;
}

.features,
.newsletter {
  max-width: 1000px;
  margin: 24px auto;
  padding: 0 16px;
}

.features h3,
.newsletter h3 {
  margin: 12px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.card h4 {
  margin: 0;
  font-size: 18px;
}

.card ul {
  margin: 0;
  padding-left: 18px;
}

.card ul li {
  margin-bottom: 6px;
}


.newsletter form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.newsletter input {
  flex: 1;
  min-width: 220px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}


.footer {
  text-align: center;
  padding: 16px;
  color: #666;
  background: #fff;
  border-top: 1px solid #e5e5e5;
}

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

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

.vente-main {
  max-width: 1100px;
  margin: 24px auto 32px;
  padding: 0 16px;
}

.hero-vente {
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.vente-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.filters-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 0 0 320px;
}

.panel {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.panel h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.selector,
.teams,
.teams-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip,
.pill {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f2f2f2;
  border: 1px solid #e5e5e5;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
  transition: background .2s, border-color .2s, transform .15s;
}

.chip:hover,
.pill:hover {
  background: #eaeaea;
  transform: translateY(-1px);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
  padding: 0;
}

.teams .teams-group {
  display: none;
}

#sport-foot:checked  ~ .vente-layout .teams-foot,
#sport-rugby:checked ~ .vente-layout .teams-rugby,
#sport-tennis:checked~ .vente-layout .teams-tennis {
  display: block;
}

.chip.active,
.pill.active {
  background: #e0efff;
  border-color: #0077ff;
}

.panel-catalog .catalog .grid {
  display: none;
}

.panel-catalog .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.panel-catalog .card {
  display: flex;
  flex-direction: row;
  gap: 0;
}

.panel-catalog .card img {
  width: 40%;
  min-width: 150px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f2f2f2;
  border-right: 1px solid #eee;
}

.panel-catalog .card-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.panel-catalog .card-body h3 {
  margin: 0;
  font-size: 16px;
}

.panel-catalog .card-body p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.panel-catalog .price {
  margin-top: 4px;
  font-weight: 700;
  color: #0077ff;
  font-size: 17px;
}

@media (min-width: 960px) {
  .vente-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .panel-catalog {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .panel-catalog .grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .panel-catalog .card {
    flex-direction: column;
  }

  .panel-catalog .card img {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid #eee;
  }
}
