/* 
 Fichier : shop.css
 Auteur : ElsaFlore
 Description : shop responsive optimisé
*/
@charset "UTF-8";

/* --- RESET GLOBAL --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- BODY & FOND --- */
body {
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1rem, 5vw, 3rem);
  position: relative;
  overflow: auto; 
  background: linear-gradient(135deg, rgb(12,36,50) 0%, rgb(8,33,140) 31%, rgb(44,146,209) 74%, rgb(155,81,224) 100%);
  line-height: 1.7;
}

canvas { 
  position: fixed; 
  top:0; 
  left:0; 
  width:100%; 
  height:100%; 
  z-index: -1; 
  pointer-events: none;
}

body > *:not(canvas) {
  position: relative;
  z-index: 1;
}

/* --- CONTENEUR CENTRAL --- */
.page-container {
  width: 100%;
  max-width: 80%; /* largeur de la colonne centrale */
  margin: 0 auto;
  padding: 0 20px; /* petit espace sur les côtés */
}

/* --- TITRE PRINCIPAL --- */
.page-container h1 {
  text-align: center; /* centre le h1 inline-block horizontalement */
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin: 2rem 0 3rem 0;
  text-align: center; /* CENTRER le texte */
  line-height: 1.1;
}

.gradient-text {
  background: linear-gradient(135deg, rgb(255,160,0), rgb(255,0,230));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline; /* IMPORTANT : le gradient suit exactement la largeur du texte */
}


/* --- SOUS-TEXTE --- */
p {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  margin-bottom: 80px;
  width: 100%;
}

.custom-shop-header {
	font-size: 2.5rem ;
  font-weight: 700;
  margin: 1.5rem 0;
  color: #ff80aa;
  text-align: center;
  padding: 0 ;
  border: none ;
}

/* --- SHOP --- */
.shop-container {
  display: inline-grid;
  grid-template-columns: auto 1fr; /* menu + contenu flexible */  
  gap: 40px;
  padding: 10px;
  box-sizing: border-box;
  align-items: start; /* par défaut start, sinon stretch */
}

/* --- MENU LATÉRAL --- */
.shop-sidebar {
  background: rgba(255,255,255,0.05); /* fond léger */
  padding: 40px;
  border-radius: 12px;
  text-align: left;
}

.sidebar-toggle {
  display: block;           /* pour qu’il soit sur sa propre ligne */
  cursor: pointer;          /* main au survol */
  font-weight: 600;         /* gras */
  font-size: 1.3rem;        /* taille du texte */
  color: white;           /* couleur */
  text-transform: uppercase;/* optionnel : tout en majuscules */
  letter-spacing: 1px;      /* espacement entre lettres */
}


.shop-sidebar ul {
  list-style: none;
  padding: 0;
}

.shop-sidebar li {
  margin-bottom: 12px;
  margin-top: 12px;
}

.shop-sidebar a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.shop-sidebar a:hover {
  color: #ff40b4;
}

 .sidebar-checkbox {
    display: none;
  }

/* --- PRODUIT --- */
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{
	text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2%;
  background: rgba(255, 255, 255, 0.03); /* léger fond pour démarquer */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 22%; /* limite la largeur d’un produit */
}
woocommerce ul.products li.product, .woocommerce-page ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product img {
  border-radius: 12px;
  max-width: 100%;
  height: auto;
  margin-bottom: 12px;
}

.woocommerce-LoopProduct-link.woocommerce-loop-product__link{
	text-decoration: none;
}

.woocommerce ul.products li.product, .woocommerce-page ul.products li.product .woocommerce-loop-product__title {
  margin-top: 12px;
  color: #a0e7ff;
  font-size: 1.05rem;
  font-weight: 500;
	  text-decoration: none !important;

}

.woocommerce ul.products li.product, .woocommerce-page ul.products li.product .price {
  font-weight: bold;
  color: #ff40b4;
  margin-top: 6px;
	  text-decoration: none;

}

/* Boutons (ajputer au panier) */
.woocommerce a.button.add_to_cart_button,
.woocommerce a.button.product_type_simple {
  display: inline-block;
  background: #ff80aa;
  color: #fff !important;
  padding: 5px 14px;
  border-radius: 4rem;
  font-size: 0.8rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s ease, transform 0.1s ease;
	margin-bottom: 5rem;
		margin-top: 5rem;
}
.woocommerce a.button.product_type_simple:hover {
/* Dégradé pastel */
  background: linear-gradient(135deg, rgb(255,160,0), rgb(255,0,230)); 	
	transform: translateY(-2px);
}

/* --- NAV BUTTONS --- */
.nav-buttons {
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 5%;
  margin-bottom: 50px;
  position: relative; /* Pour le panier en absolute */
}

.nav-buttons a {
  font-size: 1.3rem;
  font-weight: 600;
  padding: 0.9rem 4rem;
  min-width: 8rem;
  border-radius: 3rem;
  text-align: center;
  color: white;
  text-decoration: none;
  background: transparent;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.nav-buttons a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4rem;
  padding: 0.2rem;
  background: linear-gradient(135deg, rgb(255,160,0), rgb(255,0,230));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
          mask-composite: exclude;
  z-index: -1;
  pointer-events: none;
  box-sizing: border-box;	
}

.nav-buttons a:hover::before {
  filter: brightness(1.3);
}

.nav-buttons a span {
  font-weight: 600;
  position: relative;
  background: linear-gradient(135deg, rgb(255,160,0), rgb(255,0,230));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 0;
}

/* =========================
   PANIER WooCommerce
   ========================= */
.cart-logo {
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 4rem !important;
  font-size: 18px !important;
  color: white !important;
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  position: absolute !important;
  right: 0 !important;
  min-width: auto !important;
  color: white !important;
}
.cart-logo .dashicons {
  font-family: "Dashicons" !important;
  font-size: 20px !important;
  line-height: 1 !important;
  color: white !important;
  -webkit-text-fill-color: white !important;
  background: none !important;
}

.nav-buttons .cart-logo::before {
  content: none !important; /* supprime le contour dégradé sur le panier */
}

/* Nombre d’articles */
.cart-count {
  font-size: 18px !important;
  font-weight: bold;
  background: linear-gradient(135deg, rgb(255,160,0), rgb(255,0,230));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex !important;
  align-items: center !important;
}

/* --- FOOTER --- */
footer {
	margin-top: 6rem;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: lightblue;
    padding: 1rem 0;
}

footer a {
  color: lightblue;
  text-decoration: underline;
  margin: 0 0.375rem;
}

.instagram-link {
  color: #ff69b4;
  font-size: 24px;
  transition: color 0.3s ease;
}

.instagram-link:hover {
  color: #ff8661; /* couleur officielle Instagram */
}

/* 🌿 --- BOUTONS "AJOUTER AU PANIER" --- */
.woocommerce a.button.add_to_cart_button,
.woocommerce a.button.product_type_simple {
  display: block;
  background: #ff80aa;
  color: #fff !important;
  padding: 5px 12px;
  border-radius: 4rem;
  font-size: 0.9rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s ease, transform 0.1s ease;
  margin: 3% 0;
}

.woocommerce a.button.product_type_simple:hover {
  background: linear-gradient(135deg, rgb(255,160,0), rgb(255,0,230));
  transform: translateY(-2px);
}





/* =========================
   MEDIA QUERIES SHOP.CSS PAR ÉLÉMENT
   ========================= */

/* =========================
   NAV-BUTTONS
   ========================= */

/* Laptop large (<=1280px) */
@media (max-width: 1280px) {
   .nav-buttons {
    gap: 5%;
  }
	.nav-buttons a {
    font-size: 1.2rem;
    padding: 1%;
  }
}
/* Petit laptop (<=1080px) */
@media (max-width: 1080px) {
  .nav-buttons a::before {
    padding: 0.1rem; /* bordure plus fine sur mobile */
  }
}

/* Mobile standard (<=768px) */
@media (max-width: 768px) {
  .nav-buttons {
	flex-direction: row;
    justify-content: center;
    flex-wrap: wrap; /* permet aux éléments de passer à la ligne si nécessaire */
    gap: 5%;
  }
  .nav-buttons a {
    font-size: 1rem;
    padding:2%;
    min-width: 30%;
  }
  .cart-logo {
    position: static !important; /* enlève absolute */
    margin: 1rem auto 0 auto;    /* passe à la ligne en dessous */
    justify-content: center;
	  padding: 2%;
  }
}
/* Très petit mobile (<=480px) */
@media (max-width: 480px) {
  .nav-buttons {
	flex-direction: row;
    justify-content: center;
    flex-wrap: wrap; /* permet aux éléments de passer à la ligne si nécessaire */
    gap: 3%;
  }
  .nav-buttons a {
    padding: 2%;
  }
	
  .cart-logo {
    position: static !important; /* enlève absolute */
    margin: 1rem auto 0 auto;    /* passe à la ligne en dessous */
    justify-content: center;
	  padding: 2%;
  }
}
	
/* =========================
   SIDEBAR
   ========================= */

/* Laptop large (<=1280px) */
@media (max-width: 1280px) {
  .shop-sidebar {
    padding: clamp(20px, 2.5vw, 30px);
  }
  .shop-sidebar h3 {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
  }
  .shop-sidebar a {
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  }
}

/* Petit laptop (<=1080px) */

@media (max-width: 1080px) {
	.page-container {
  width: 100%;
  max-width: 100%; /* largeur de la colonne centrale */
  margin: 0 auto;
  padding: 0px; /* petit espace sur les côtés */
}
  .shop-sidebar {
    text-align: center;
    padding: clamp(15px, 3vw, 25px);
  }
}

/* Mobile standard (<=768px) */
@media (max-width: 768px) {
	.page-container {
  width: 100%;
  max-width: 100%; /* largeur de la colonne centrale */
  margin: 0 auto;
  padding: 0px; /* petit espace sur les côtés */
}
	 .shop-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(15px, 3vw, 25px);
  }

  .shop-sidebar {
    padding: 2.5%;
    width: 100%;
  }
	
  .shop-sidebar a {
    font-size: clamp(0.8rem, 1.8vw, 0.95rem);
  }

  /* Sidebar déroulante */
  .sidebar-checkbox {
    display: none;
  }
  .sidebar-toggle {
	   display: block;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 1.5rem;
    display: inline-block;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
  }
  .sidebar-toggle::after {
    content: "▼";
    position: absolute;
    right: 0;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
  }
  .sidebar-checkbox:checked + .sidebar-toggle::after {
    transform: rotate(-180deg);
  }
  .sidebar-menu {
    display: none;
    flex-direction: column;
    gap: 0.8rem;
    padding-left: 0;
    margin-top: 0.5rem;
  }
  .sidebar-checkbox:checked + .sidebar-toggle + .sidebar-menu {
    display: flex;
  }
}

/* Très petit mobile (<=480px) */
@media (max-width: 480px) {
  .shop-sidebar h3,
  .sidebar-toggle {
    font-size: clamp(0.9rem, 2.2vw, 1rem);
  }
  .shop-sidebar a {
    font-size: clamp(0.75rem, 2vw, 0.9rem);
  }
}


/* =========================
   PRODUITS
   ========================= */

/* Laptop large (<=1280px) */
@media (max-width: 1280px) {
  .shop-products ul.products li.product {
    padding: 2%;  }
  .shop-products ul.products li.product .woocommerce-loop-product__title {
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  }
  .shop-products ul.products li.product .price {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
  }
}

/* Petit laptop (<=1080px) */
@media (max-width: 1080px) {
  .shop-products ul.products li.product {
    margin: 1%;
  }
}

/* Mobile standard (<=768px) */
@media (max-width: 768px) {
  .shop-products ul.products li.product {
    max-width: 90%;
     margin: 2%;
    padding: 3%;
  }
  .shop-products ul.products li.product .woocommerce-loop-product__title {
    font-size: clamp(0.9rem, 2.2vw, 1rem);
    margin-top: 4px;
    margin-bottom: 4px;
  }
  .shop-products ul.products li.product .price {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    margin-top: 3px;
  }
}

/* Très petit mobile (<=480px) */
@media (max-width: 480px) {
  .shop-products ul.products li.product {
     margin: 2%;
    padding: 3%;
  }
}


/* =========================
   TITRES
   ========================= */

/* Laptop large (<=1280px) */
@media (max-width: 1280px) {
  h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
  }
}

/* Petit laptop (<=1080px) */
@media (max-width: 1080px) {
  h1 {
    font-size: clamp(2.8rem, 7vw, 4rem);
  }
}

/* Mobile standard (<=768px) */
@media (max-width: 768px) {
  h1 {
    font-size: clamp(3rem, 8vw, 4.5rem);
    margin-bottom: 1.5rem;
  }
}

/* Très petit mobile (<=480px) */
@media (max-width: 480px) {
  h1 {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
    margin-bottom: 1.2rem;
  }
}


/* =========================
   FOOTER
   ========================= */

/* Mobile standard (<=768px) */
@media (max-width: 768px) {
  footer {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }
}

/* Très petit mobile (<=480px) */
@media (max-width: 480px) {
  footer {
    font-size: clamp(0.85rem, 3.5vw, 1rem);
    padding: 1rem 0;
  }
}

/* 🌿 --- BOUTTON --- */
/* 🌸 Tablettes (max 1200px) */
@media (max-width: 1200px) {
  .woocommerce a.button.add_to_cart_button,
  .woocommerce a.button.product_type_simple {
    font-size: 0.7rem;
    padding: 4px 15px;
  }
}

/* 🌸 Tablettes (max 1024px) */
@media (max-width: 1024px) {
  .woocommerce a.button.add_to_cart_button,
  .woocommerce a.button.product_type_simple {
    font-size: 0.6rem;
    padding: 5px 12px;
    letter-spacing: 0.4px;
  }
}

/* 🌼 Mobiles moyens (max 768px) */
@media (max-width: 768px) {
  .woocommerce a.button.add_to_cart_button,
  .woocommerce a.button.product_type_simple {
    font-size: 0.8rem;
    padding: 6px 16px;
	    }
}
