* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
  line-height: 1.5;
}


.header {
  background: #004080;
  color: #fff;
  padding: 1rem 2rem;
}
.header h1 {
  margin-bottom: .5rem;
  font-size: 1.75rem;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.nav a {
  color: #fff;
  text-decoration: none;
  padding: .5rem 1rem;
  border-radius: 4px;
  transition: background .2s;
}
.nav a:hover,
.nav a.active {
  background: #0059b3;
}


.main {
  max-width: 1200px;
  margin: 1rem auto;
  padding: 0 1rem;
}
section {
  margin: 2rem 0;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: .75rem;
}


.list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list li {
  padding: .5rem 0;
  border-bottom: 1px solid #ddd;
}
.list li:last-child {
  border-bottom: none;
}


.table-container {
  overflow-x: auto;
  margin-top: 1rem;
}
.grid-table {
  display: grid;
  grid-template-columns:
    2.5fr /* Athlète */
    1fr   /* Pays */
    1.5fr /* Discipline */
    1.5fr /* Site */
    1fr   /* Début */
    1fr   /* Fin */
    1fr   /* Compet. */
    1fr   /* Or */
    1fr   /* Argent */
    1fr   /* Bronze */
    1fr   /* Record */
    1fr   /* Action */
  ;
  align-items: center;
  gap: .5rem;
  padding: .5rem 0;
}
.table-header {
  background: #e0e0e0;
  font-weight: bold;
  border-bottom: 2px solid #ccc;
}
.row {
  border-bottom: 1px solid #ddd;
}
.row:nth-child(odd) {
  background: #fff;
}
.row:nth-child(even) {
  background: #f6f6f6;
}


.btn-del {
  padding: .3rem .8rem;
  border: 1px solid #999;
  background: #fff;
  border-radius: 3px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-del:hover {
  background: #fdd;
  color: #900;
}


table.medals {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
table.medals th,
table.medals td {
  border: 1px solid #ccc;
  padding: .5rem;
  text-align: center;
}
table.medals th {
  background: #e0e0e0;
}


.footer {
  text-align: center;
  padding: 1rem 2rem;
  background: #f0f0f0;
  font-size: .85rem;
  color: #555;
}


@media (max-width: 800px) {
  .grid-table {
    grid-template-columns:
      repeat(4, 1fr); 
    grid-auto-rows: auto;
  }
  .table-header div:nth-child(n+5),
  .row div:nth-child(n+5) {
    display: none;
  }
}





.annexe {
  padding: 2rem 1rem;
}
.annexe h2 {
  margin-bottom: 0.5rem;
}
.annexe p {
  margin-bottom: 1.5rem;
}
.annexe-images {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.annexe-images figure {
  flex: 1 1 280px;
  margin: 0;
  text-align: center;
}
.annexe-images img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #ddd;
}
.annexe-images figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #555;
}