/* public/styles.css */

body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f9f9f9;
  color: #333;
}

header {
  text-align: center;
  margin-bottom: 40px;
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5em;
  margin: 0;
}

header p {
  font-size: 1.1em;
  color: #666;
}

/* Grille des produits */
.grid-produits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
  gap: 24px;
  padding: 20px;
  /*max-width: 1200px;*/  
  max-width: 512px;/*Produit unique*/
  margin: 0 auto;
}

.carte-produit {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.carte-produit:hover {
  transform: translateY(-5px);
}

.carte-produit img {
  width: 100%;
  /*height: 250px;*/
  height: 512px;/*Produit unique*/
  object-fit: cover;
}

.carte-produit h3 {
  font-family: 'Playfair Display', serif;
  margin: 16px 0 8px;
  font-size: 1.2em;
  color: #333;
}

.carte-produit .prix {
  font-weight: bold;
  color: #555;
  font-size: 1.1em;
}

.carte-produit button {
  margin: 16px;
  padding: 10px 20px;
  background: #000;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9em;
}

.carte-produit button:hover {
  background: #333;
}

.faq {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
}

.faq h3 {
  color: #000;
  margin-top: 20px;
}

/* Page produit */
.page-produit {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  align-items: center;
}

.page-produit .image-produit {
  flex: 1 1 400px;
}

.page-produit .image-produit img {
  width: 100%; /*C'est ici on varie la taille d'image */
  height: fit-content;/*C'est ici on varie la taille d'image */
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.page-produit .info-produit {
  flex: 1 1 300px;
}

.page-produit h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2em;
  color: #333;
  margin-bottom: 10px;
}

.page-produit .prix {
  font-size: 1.5em;
  font-weight: bold;
  color: #000;
}

.page-produit .description {
  margin: 24px 0;
  line-height: 1.6;
  color: #555;
}

.page-produit .description h3 {
  font-family: 'Playfair Display', serif;
  color: #000;
  margin-top: 20px;
}

.page-produit .actions {
  margin-top: 30px;
}

.page-produit .btn-achat {
  background: #000;
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 1em;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.page-produit .btn-achat:hover {
  background: #333;
}

/* Responsive */
@media (max-width: 768px) {
  .page-produit {
    flex-direction: column;
  }
  .page-produit h2 {
    font-size: 1.6em;
  }
}

.carte-produit a {
  display: block;
  transition: transform 0.2s;
}

.carte-produit a:hover {
  transform: scale(1.03);
}

/* === Navigation élégante === */

.navigation {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin: 20px 0 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1em;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.nav-link {
  color: #333;
  text-decoration: none;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}

/* Effet : souligné fin qui apparaît au survol */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #000;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #000;
}

.nav-link:hover::after {
  width: 100%;
}

/* Option : centre la navigation sous le titre */
header {
  text-align: center;
}

/* === Page Panier === */
.page-panier {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.page-panier .resume-panier {
  margin-top: 20px;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 12px;
  align-self: start;
}

.page-panier .resume-panier p {
  font-size: 1.2em;
  margin: 0 0 16px 0;
}

.btn-paiement {
  background: #000;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 1em;
  border-radius: 6px;
  cursor: pointer;
}

.continuer {
  display: block;
  margin-top: 12px;
  color: #555;
  text-decoration: underline;
}

/* Items du panier */
.item-panier {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.item-panier .details {
  flex: 1;
}

.item-panier .actions button {
  background: #eee;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-left: 10px;
  cursor: pointer;
}

/* === Compteur de panier (badge rouge) === */
.badge-panier {
  display: none; /* Masqué si panier vide */
  position: relative;
  top: 5px;
  left: -20px;
  background: #e63946; /* Rouge vif */
  color: white;
  font-size: 0.8em;
  font-weight: bold;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* === Image de fond sur toutes les pages === */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(83, 75, 187, 0.281); /* Blanc à 85% de transparence */
  z-index: -1;
}

body {
  background-image: url('/Images/fond.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0;
  padding: 20px;
  position: relative;
}

.description p {
  line-height: 1.8;
  color: #555;
  font-size: 1.05em;
  text-align: justify;
}

