/* style.css */

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
  color: #333;
}

header {
  background-color: #222;
  color: white;
  padding: 20px;
  text-align: center;
}

nav {
  margin-top:20px;
  display: flex;
  justify-content: center; /* centre le menu horizontalement */
  align-items: center; /* aligne verticalement si le header est plus haut */
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 15px;
}

nav li {
  margin: 0;
}

nav a {
  display: inline-block;
  padding: 10px 18px;
  background-color: #1e73be; /* couleur de fond */
  color: #fff; /* couleur du texte */
  text-decoration: none;
  border-radius: 6px; /* coins arrondis */
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

nav a:hover {
  background-color: #155a8a; /* couleur au survol */
  transform: scale(1.05); /* léger agrandissement */
}

nav a.active {
  background-color: #e67e22; /* couleur spéciale pour lien actif */
}


header img {
  width: 300px;
  height: auto;
}

.hero {
  background: url('img/tennis-banner.png') no-repeat center center/cover;
  padding: 100px 20px;
  text-align: center;
  color: white;
  background-color: #03458d;
}

.hero h2 {
  margin: 0;
  font-size: 2.5em;
}

.products {
  padding: 40px 20px;
  background-color: white;
}

.gras {
  font-weight: bold;
}

.rouge {
  color: red;
}

.products h2 {
  text-align: center;
  margin-bottom: 40px;
}

.product a {
  display: inline-block;
  width: 157px;
  height: 50px;
  line-height: 50px;
  background-color: #0070ba;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1em;
  margin-top: 10px;
}

.product a:hover {
  background-color: #005c99;
}

.product-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.product {
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  max-width: 250px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.product h3 {
  margin-top: 10px;
}

.product span {
  display: block;
  margin: 10px 0;
  font-size: 1.2em;
  color: #007700;
  font-weight: bold;
}

.image-container {
    position: relative;
    display: inline-block;
}

.image-container img {
    display: block;
}

.image-container .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%;
    pointer-events: none;
}

.buy-button {
  background-color: #0070ba;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
}

.buy-button:hover {
  background-color: #005c99;
}

.construction {
  text-align: center;
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  border-radius: 10px;
  padding: 30px 20px;
  margin: 40px auto;
  max-width: 800px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.construction h2 {
  font-size: 1.8em;
  margin-bottom: 10px;
}

.construction p {
  font-size: 1.1em;
}

.mapub {
  background: url('img/terrebattue.png') no-repeat center center/cover;
  padding: 100px 20px;
  text-align: center;
  color: white;
  background-color: #03458d;
}

.mapub h2 {
  margin: 0;
  font-size: 2.5em;
}

.mapub img{
  width: 100px;
}

.lienboutique {
  padding: 20px 20px;
  text-align: center;
  color: white;
  background-color: #03458d;
}

.lienboutique a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.lienboutique a:hover {
  color: #00aaff;
}

footer {
  background-color: #222;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 0;
}

a.email {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

a.email:hover {
  text-decoration: underline;
  color: #00aaff;
}


footer img {
  width: 200px;
  height: auto;
}

@media (max-width: 768px) {
  .product-list {
    flex-direction: column;
    align-items: center;
  }

  .product {
    width: 90%;
    max-width: 400px;
  }

  .product a {
    width: 100%;
    font-size: 1.1em;
  }
}

