@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

/* Exemple de modif de palette */

body {
  font-family: 'Anton', sans-serif;
  background: linear-gradient(135deg, #111, #222);
  color: #fff;
  padding: 40px 20px;
}

h1 {
  color: #ff3c3c;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 38px;
  margin-bottom: 30px;
  text-align: center;
}

h2 {
  color: #ff3c3c;
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 28px;
  border-bottom: 2px solid #ff3c3c;
  display: inline-block;
  padding-bottom: 5px;
}

.user-section {
  margin-bottom: 50px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: #1e1e1e;
  border: 2px solid #ff3c3c;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 6px 20px rgba(255, 60, 60, 0.2);
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(255, 60, 60, 0.4);
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.card h3 {
  margin: 0;
  padding: 15px;
  background: #ff3c3c;
  font-size: 18px;
  color: #fff;
  text-align: center;
}


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

a:focus .card {
  outline: 3px solid #ff3c3c;
  outline-offset: 4px;
}

table {
  width: 100%;
  max-width: 900px;
  margin: auto;
  border-collapse: collapse;
  background: #1c1c1c;
  border: 2px solid #ff3c3c;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(255, 60, 60, 0.2);
}

th, td {
  padding: 15px;
  border: 1px solid #333;
  font-size: 16px;
}

th {
  background-color: #ff3c3c;
  color: #fff;
  text-transform: uppercase;
  font-size: 14px;
}

tr:nth-child(even) {
  background-color: #2a2a2a;
}

img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.note {
  font-size: 12px;
  color: #aaa;
  margin-top: 15px;
}

.section-title {
  background: #ff3c3c;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  padding: 10px 0;
  text-transform: uppercase;
}

footer {
  font-family: 'Anton', sans-serif;
  margin-top: 60px;
  padding: 20px 0;
  border-top: 2px solid #ff3c3c;
  text-align: center;
  font-size: 16px;
  color: #aaa;
}

footer img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

footer img:hover {
  transform: scale(1.2);
}

/* --- AMÉLIORATIONS MOBILE --- */

@media (max-width: 600px) {

  /* Tableau en mode "carte" mobile */
  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead tr {
    display: none;
  }

  tr {
    margin-bottom: 15px;
    border-bottom: 2px solid #ff3c3c;
  }

  td {
    padding-left: 50%;
    position: relative;
    border: none;
    border-bottom: 1px solid #444;
    text-align: left;
  }

  td:before {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 45%;
    white-space: nowrap;
    font-weight: bold;
    color: #ff3c3c;
  }

  /* Labels pour chaque colonne dans tableau responsive */
  td:nth-of-type(1):before { content: "Exercice"; }
  td:nth-of-type(2):before { content: "Séries"; }
  td:nth-of-type(3):before { content: "Répétitions"; }
  td:nth-of-type(4):before { content: "Poids"; }
  td:nth-of-type(5):before { content: "Image"; }

  /* On cache les séparateurs sur mobile */
  .section-title {
    display: none;
  }
}

@media (max-width: 400px) {
  .gallery {
    grid-template-columns: 1fr !important;
  }
}

header {
  padding: 20px;
  text-align: left;
  background: #1e1e1e;
  border-bottom: 2px solid #ff3c3c;
}

/*
.btn-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: #ff3c3c;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-home svg {
  fill: #fff;
  width: 24px;
  height: 24px;
}

.btn-home:hover {
  background-color: #e63636;
}
*/

.navbar {
  background: #1e1e1e;
  border-bottom: 3px solid #ff3c3c;
  padding: 10px 30px;
  font-family: 'Anton', sans-serif;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
}

.navbar nav {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: #ff3c3c;
  font-size: 24px;
  text-decoration: none;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.nav-links li a:hover {
  color: #ff3c3c;
}

.icon {
  width: 24px;
  height: 24px;
  margin-left: 5px;
  filter: invert(1);
  transition: filter 0.3s ease;
}

.nav-links li a:hover .icon {
  filter: invert(46%) sepia(97%) saturate(744%) hue-rotate(333deg) brightness(102%) contrast(101%);
}

/* Pour éviter que le contenu soit caché sous la barre fixe */
body {
  padding-top: 60px;
}
