/* === HEADER avec fond image === */
header {
  padding: 40px 20px;
  text-align: center;
  background: url('image/devanture_actuel.jpg') no-repeat center center;
  background-size: cover;
  color: white;
  position: relative;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

header * {
  position: relative;
  z-index: 2;
}

.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.logo-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 0 15px red;
  object-fit: cover;
}

h1 {
  background-color: rgba(51, 45, 45, 0.8);
  padding: 15px 30px;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(135, 206, 250, 0.5);
  display: block;
  margin: 0 auto;
  max-width: fit-content;
}

header p {
  background-color: rgba(51, 45, 45, 0.8);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 1.1rem;
  display: block;
  margin: 10px auto 0 auto;
  max-width: fit-content;
  color: #fff;
}

/* === LIENS === */
.project-links {
  margin-top: 20px;
  text-align: center;
}

.project-button {
  display: inline-block;
  margin: 5px 10px;
  padding: 10px 15px;
  background-color: #646668;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.project-button:hover {
  background-color: #cf1b1b;
}

/* === MAIN + blocs === */
main {
  max-width: 95%;
  margin: 20px auto;
  padding: 20px;
  background: rgba(226, 223, 223, 0.95);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

h2 {
  text-align: center;
  font-size: 250%;
}

p {
  color: #333;
  text-align: center;
  font-size: 125%;
}

section {
  margin-bottom: 40px;
}

/* === SPÉCIFIQUE à la section bienvenue === */
#bienvenue h2 {
  text-align: left;
}

/* === PRODUITS PHARES === */
#produits-phare {
  text-align: center;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-content: center;
}

.product-item {
  background: #f0f0f0;
  padding: 20px;
  border-radius: 10px;
  width: 100%;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-size: 1.1rem;
  box-sizing: border-box;
}

.product-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.product-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* === TÉMOIGNAGES === */
#temoignages {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

#temoignages blockquote {
  background: #f9f9f9;
  border-left: 5px solid #ccc;
  padding: 20px 25px;
  font-style: italic;
  transition: transform 0.3s ease;
  font-size: 1.1rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  text-align: center;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
#temoignages blockquote.active {
  display: block;
  opacity: 1;
}

#temoignages blockquote:hover {
  transform: scale(1.02);
}

#temoignages-controls {
  margin-top: 4px;
  text-align: center;
}

#temoignages-controls button {
  margin: 0 5px;
  padding: 6px 12px;
  border: none;
  background: #444;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s ease;
}

#temoignages-controls button:hover {
  background: #666;
}

/* === FOOTER === */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 10px 0;
}

footer p {
  color: #fff;
}

/* === RESPONSIVE === */
@media screen and (max-width: 768px) {
  .product-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
  }

  .product-item {
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
  }

  header h1,
  header p {
    font-size: 1.2rem;
  }

  h2,
  h3 {
    text-align: center !important;
  }
}

/* === Animation du logo === */
@keyframes logo-animation {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}
