/* Reset CSS de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

header {
  background-color: #fff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 50px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: #444;
}

.nav-links a {
  margin-left: 15px;
  text-decoration: none;
  color: #444;
  font-weight: 500;
}

.nav-links a:hover {
  color: #007BFF;
}

.hero {
  background-color: #e0e0e0;
  padding: 2rem;
  text-align: center;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.product {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.1);
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 3px 15px rgba(0,0,0,0.2);
}

.product img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
  object-fit: cover;
}

.products .product {
  display: inline-block;
  vertical-align: top;
  margin: 1rem;
  width: 300px;
}

.products .product picture img {
  width: 100%;
  height: auto;
  max-width: 300px;
  max-height: 400px;
  object-fit: cover;
}

.product h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.product p {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Arial, sans-serif;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #222;
}

h1 {
  font-size: 2.2rem;
}

/* Doré uniquement pour le titre d'accueil */
body.index-page h1 {
  color: goldenrod;
}

h2 {
  font-size: 1.8rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.3rem;
}

h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 1rem;
}

section h1,
article h1,
nav h1,
aside h1 {
  font-size: 2.2rem;
}

.product strong {
  font-weight: 600;
}

.product-images img {
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 1rem;
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #fff;
  border-top: 1px solid #ccc;
  margin-top: 2rem;
  font-size: 0.9rem;
}

/* ===== Carousel ===== */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-img {
  display: none;
  width: 100%;
  border-radius: 8px;
}

.carousel-img.active {
  display: block;
}

.hidden {
  display: none !important;
}

/* ===== Mise à jour PWA ===== */
.update-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffcc00;
  color: #222;
  font-weight: bold;
  text-align: center;
  padding: 1rem;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  font-size: 1rem;
}

.update-banner button {
  background-color: #222;
  color: #fff;
  border: none;
  margin-left: 15px;
  padding: 8px 16px;
  font-size: 0.95rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.update-banner button:hover {
  background-color: #000;
}

/* ===== Animation des catégories ===== */
.category {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
  padding: 1rem;
}

.category:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.category h2 {
  color: goldenrod;
}

