/* ===============================
   BASE
================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

html, body {
  zoom: 90%;
  height: 100%;
  margin: 0;
  padding: 0px;
  line-height: 1.4;
  background-color: rgba(225,238,248,1); /* bleu clair de base */
  color: #333;
}

body {
  display: flex;
  height: 100%;
  flex-direction: column;
}

main {
	flex: 1;
}

/* ===============================
   HEADER
================================ */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 50px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);

  /* Papier froissé bleu */
  background-image: 
    linear-gradient(rgba(225,238,248,0.85), rgba(225,238,248,0.85)),
    url("images/header-texture.png");
  background-repeat: repeat;
  background-size: cover;
}

/* LOGO */
.logo img {
  display: flex;
  height: 50px;
}

.logoHero img {
  height: 150px;
}


/* MENU */
.navbar {
  zoom: 80%;
  display: flex;
  gap: 20px;
}

.iconNavBar img {
  zoom: 110%;
  position: relative;
  height: 20px;
}

.navbar a {
  zoom: 140%;
  text-decoration: none;
  font-size: 20px;
  font-weight: 300;
  color: #800020; /* bordeaux */
  position: relative;
}

.navbar a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: #800020;
  transition: width 0.3s;
}

.navbar a:hover::after {
  width: 100%;
}

.titre-content h1 {
  position: relative;
  text-align: center;
  font-size: 25px;
  margin-bottom: 50px;
  color: #800020; /* bordeaux */
	text-shadow:
	-1px -1px 0 #fff,
	 1px -1px 0 #fff,
	-1px  1px 0 #fff,
	 1px  1px 0 #fff;
}

/* BARRE DE RECHERCHE HEADER (blanche) */
.search-header {
  padding: 12px 20px;
  border-radius: 30px;
  border: none;
  width: 220px;
  font-size: 16px;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* BARRE DE RECHERCHE PAGE PRODUITS (rouge bordeaux) */
.search {
  display: block;
  margin: 20px auto 40px;
  padding: 14px 22px;
  width: 60%;
  max-width: 500px;
  border-radius: 30px;
  border: 2px solid #800020;
  font-size: 16px;
  background: rgba(128,0,32,0.08); /* rouge bordeaux très transparent */
}

/* ===============================
   PAGE D’ACCUEIL HERO
================================ */
.hero {
  zoom: 90%;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("images/hero-bg.jpg") no-repeat center center;
  background-size: cover;
}

.hero-overlay {

  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.35);
}

.hero-content {
  zoom: 100%;
  position: relative;
  text-align: center;
  color: white;
  max-width: 700px;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 15px;
  color: #800020; /* bordeaux */
  text-shadow:
    -1px -1px 0 #fff,
     1px -1px 0 #fff,
    -1px  1px 0 #fff,
     1px  1px 0 #fff;
}

.hero-content p {
  font-size: 22px;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.hero-content .slogan {
  font-family: 'Parisienne', cursive; /* Calligraphie type plume */
  font-size: 40px; /* taille élégante pour slogan */
  color: #800020; /* bordeaux assorti */
  margin-top: 100px;
  margin-bottom: 25px;
  text-shadow:
    -1px -1px 0 #f3efe8,
     1px -1px 0 #f3efe8,
    -1px  1px 0 #f3efe8,
     1px  1px 0 #f3efe8;
}

.hero-buttons a {
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary {
  background: #800020;
  color: white;
}

.btn-primary:hover {
  background: #600018;
}

.btn-secondary {
  border: 2px solid #800020;
  color: #800020;
  background: rgba(255,255,255,0.8);
}

.btn-secondary:hover {
  background: #800020;
  color: white;
}

/* ===============================
   FILTRES
================================ */
.filter-dropdown {
  position: relative;
  display: inline-block;
  margin-right: 10px;
}

.filter-btn {
  background: #78001e; /* rouge bordeaux */
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.filter-options {
  display: none;
  position: absolute;
  background: white;
  min-width: 160px;
  border: 1px solid #ccc;
  border-radius: 6px;
  z-index: 100;
  padding: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.filter-options label {
  display: block;
  margin-bottom: 5px;
  cursor: pointer;
}

.filter-dropdown.show .filter-options {
  display: block;
}

/* ===============================
   FILTRE PRIX AVEC AFFICHAGE
================================ */
.price-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.price-filter input[type="range"] {
  flex: 1;
  border-radius: 30px;
}

/* ===============================
   GRILLE PRODUITS
================================ */
.grid {
  zoom:1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  padding: 0 20px 50px;
}

.item {
  zoom: 1.3;
  display: block;
  height: auto;
  background: white;
  border-radius: 20px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 40px 20px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: transform 0.3s;
}

.badge{
	color: green;
	font-size: 80%
}

.item:hover {
  transform: translateY(-6px);
}

.item img {
  width: 100%;
  border-radius: 20px;
}

.item p {
  font-size: 70%;
  color: #800020;
  font-weight: 600;
}

#Prix {
  font-size: 80%;
  color: blue;
}

/* ===============================
   POPUP PRODUIT
================================ */
#popup-overlay{
  position: fixed;
  inset:0;
  background: rgba(0,0,0,0.65);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:999;
}

#popup {
  background: white;
  padding: 25px;
  border-radius: 12px;
  position: relative;
  width: 500px;
  max-width: 100%;
  text-align: center; /* centre tout le texte */
  display: flex;
  flex-direction: column; /* empile image et texte verticalement */
  align-items: center;    /* centre horizontalement l'image et le texte */
}

.popup-content img {
  width: 100%;
  max-width: 400px; /* limite la taille de l'image si tu veux */
  border-radius: 10px;
  margin-bottom: 15px;
}

#popup img{
  width:500px;
  border-radius:8px;
  margin-bottom:15px;
}

#popup-close{
  position:absolute;
  top:10px;
  right:15px;
  font-size:26px;
  cursor:pointer;
}

#popup-prev,
#popup-next{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:#800020;
  color:white;
  border:none;
  font-size:24px;
  padding:8px 12px;
  cursor:pointer;
}

#popup-prev{ left:-50px; }
#popup-next{ right:-50px; }

/* PAGINATION */

/*
.pagination {
  display: flex;
  justify-content: center;
  list-style: none; 
  padding: 0px;
}

.pagination li a {
  display: block; 
  padding: 8px 12px;
  text-decoration: none;
  border: 1px solid gray;
  color: black;  
  margin: 0 4px;
  border-radius: 5px; /* add rounded borders */
}

/* Pagination Bouton et compteur */

.pagination {
  position:bottom;
  bottom: 1%;
  display: flex;
  justify-content: center; 
  align-items: center;
  margin: 10px 15px; 
  gap: 10px; /* espace entre les boutons et le compteur */
}



.pagination button {
  zoom: 90%;
  background: #78001e; /* rouge bordeaux */
  color: white;
  border: none;
  padding: 8px 12px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 6px;
}

.pagination span {
  zoom: 90%;
  color: blue;
  font-size: 20px;
  font-weight: bold;
  color: #78001e;
  padding: 0 8px; /* espace autour du compteur pour ne pas coller aux boutons */
}

/* ===============================
   PAGE CONTACT
================================ */
.contact-page {
  background-color: rgba(225,238,248,1);
  padding: 50px;
}

.contact-page form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.contact-page input,
.contact-page select,
.contact-page textarea {
  width: 100%;
  padding: 12px 20px;
  margin-bottom: 20px;
  border-radius: 30px;
  border: 2px solid #800020;
  font-size: 16px;
}

.contact-page .form-buttons {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.contact-page button {
  padding: 14px 30px;
  border-radius: 30px;
  border: none;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  flex: 1;
  transition: 0.3s;
}

/* Envoyer : bordeaux */
.contact-page button[type="submit"] {
  background: #800020;
  color: white;
}

.contact-page button[type="submit"]:hover {
  background: #600018;
}

/* Réinitialiser : blanc avec bordure bordeaux */
.contact-page button[type="reset"] {
  background: white;
  border: 2px solid #800020;
  color: #800020;
}

.contact-page button[type="reset"]:hover {
  background: #800020;
  color: white;
}


/* ===============================
   FOOTER
================================ */
footer {

  height : 40px;
  background: #003b6f;
  color: white;
  padding: 5px 20px;
  align-items: center;

  
}

.footer-menu {
  display: flex;
    zoom:auto;
  justify-content: center; 
  align-items: center;

	
  gap: 20px;
  margin-bottom: 0px;
  margin-top: 0px;
}

.footer-menu a {
	font-size: 12px;
	color: white;
	text-decoration: none;
	text-align: center;
}

.footer-menu a:hover {
  text-decoration: underline;
  vertical-align: center;
}

.footer-copy {
  zoom:70%;
  text-align: right;

  color: gray;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 1000px) {

.logo img {
  display: none;
} 

 .hero {
    flex-direction: column;
    text-align: center;
    padding: 50px 20px;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .header {
    flex-direction: column;
    gap: 15px;
    padding: 15px 30px;
  }

  .navbar {
    gap: 20px;
    justify-content: center;
  }
}
