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

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

/* --- BODY & FOND --- */
body {
  display: block; /* ou supprime display:flex */
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  color: white;
  padding: clamp(20px, 5vw, 50px);
  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; /* laisse passer les clics */
}
body > *:not(canvas) {
  position: relative;
  z-index: 1;
}

/* --- CONTENEUR CENTRAL --- */
.page-container {
  width: 100%; /* s'étale sur toute la page */
  max-width: 80%; /* largeur centrale maximale */
  margin: 0 auto;
}

/* --- LIENS --- */

.custom-product-page h1 {
  font-weight:700;
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(135deg, rgb(255,160,0), rgb(255,0,230));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 0.5rem;
  margin-bottom: 3rem;
  text-align: center;
  z-index:1;
}
h2 {
	font-size: 30px;
  font-weight:400;
  background: linear-gradient(135deg, rgb(255,160,0), rgb(255,0,230));
  -webkit-background-clip: text;
  text-align: left;
  z-index:1;
}

h4 {
	font-size: 20px;
  font-weight: 500;
  margin-top: 2rem;
  text-align: left;
  z-index:1;
}


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

.nav-buttons {
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 3%;
  margin-bottom: 30px;
  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 {
  text-align: center;
  margin: 0 auto clamp(1rem, 4vw, 2rem);
  font-size: 1rem;
  max-width: 100%;
  color: #fff;
}

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


/* --- BUTTONS --- */

/* Conteneur */
.custom-product-page .add-to-cart {
    margin-top: 20px;
    text-align: left;
}

/* Bouton WooCommerce */
.custom-product-page .add-to-cart .button {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 2% 3%;
    border-radius: 3rem;
    color: white;
    background: transparent;
    position: relative;
    display: inline-block;
    overflow: hidden;
    text-decoration: none;
}

/* Gradient sur le contour */
.custom-product-page .add-to-cart .button::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 3rem;
    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;	
}

/* Gradient appliqué au texte directement */
.custom-product-page .add-to-cart .button {
    background: linear-gradient(135deg, rgb(255,160,0), rgb(255,0,230));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hover */
.custom-product-page .add-to-cart .button:hover::before {
    filter: brightness(1.2);
}


.custom-product-page .product-grid {
  display: grid;
  grid-template-columns: 35% 65%;  /* répartition des colonnes */
  gap: 40px;                        /* espace entre image et texte */
  margin-bottom : 0px;
  align-items: center;
  padding: 20px 10%;
}

.product-image img {
  width: 100%;
  height: auto;
}

.product-gallery {
  padding: 20px;
}


/* =========================
   MEDIA QUERIES produit.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 {
	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% 3%;
    min-width: 20%;
  }
  .nav-buttons a::before {
    padding: 0.15rem; /* bordure plus fine sur mobile */
  }

  .cart-logo {
    position: static !important; /* enlève absolute */
    margin: 1rem auto 0 auto;    /* passe à la ligne en dessous */
    justify-content: center;
	  padding: 2%;
  }
}

/* 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: 2%;	 
  }
  .nav-buttons a {
    font-size: 0.9rem;
    padding: 2% 3%;
    min-width: 45%;
    margin-bottom: 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: 5%;
  }
  .nav-buttons a {
    padding: 2% 3%;
    min-width: 40%;
    margin-bottom: 5%;
  }
	
  .cart-logo {
    position: static !important; /* enlève absolute */
    margin: 0.5rem auto 0 auto;    /* passe à la ligne en dessous */
    justify-content: center;
	padding: 2%;
  }
}
/* ===================== */
/* 🎨 TITRES */
/* ===================== */
.custom-product-page h1 {
  font-weight:700;
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(135deg, rgb(255,160,0), rgb(255,0,230));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 0.5rem;
  margin-bottom: 3rem;
  text-align: center;
  z-index:1;
}

h2 {
  font-size: 30px;
  font-weight:400;
  background: linear-gradient(135deg, rgb(255,160,0), rgb(255,0,230));
  -webkit-background-clip: text;
  text-align: left;
  z-index:1;
}

h3 {
  font-size: 20px;
  font-weight: 500;
  text-align: left;
  z-index:1;
}
	
h4 {
  font-size: 20px;
  font-weight: 500;
  margin-top: 2rem;
  text-align: left;
  z-index:1;
}

/* 📱 Titres responsifs */
@media (max-width: 1024px) {
  h1 { font-size: clamp(2rem, 4vw, 3rem); }
  h2 { font-size: 24px; }
  h3 { font-size: 16px; }
  h4 { font-size: 18px; }
  p { font-size: 14px; }
}
@media (max-width: 768px) {
  h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
  h2 { font-size: 22px; }
  h3 { font-size: 15px; }
  h4 { font-size: 17px; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 20px; }
  h4 { font-size: 16px; }
  h3 { font-size: 14px; }

}
/* ===================== */
/* 📦 PRODUIT + GRILLE */
/* ===================== */
.custom-product-page .product-grid {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 40px;
  align-items: center;
  padding: 20px 10%;
}

.product-image img {
  width: 100%;
  height: auto;
}

.product-gallery { padding: 20px; }

/* 📱 Grille responsif */
@media (max-width: 1024px) {
  .custom-product-page .product-grid {
    grid-template-columns: 45% 55%;
    gap: 20px;
    padding: 20px 5%;
  }
}
@media (max-width: 768px) {
  .custom-product-page .product-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 10px 5%;
  }
  .product-image { text-align: center; }
}
@media (max-width: 480px) {
  .custom-product-page .product-grid {
    gap: 20px;
    padding: 10px;
  }
}

/* ===================== */
/* 🔘 BOUTON "ADD TO CART" */
/* ===================== */
.custom-product-page .add-to-cart {
  margin-top: 20px;
  text-align: left;
}

.custom-product-page .add-to-cart .button {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 2% 3%;
  border-radius: 3rem;
  background: linear-gradient(135deg, rgb(255,160,0), rgb(255,0,230));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

.custom-product-page .add-to-cart .button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 3rem;
  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;
}

/* 📱 Bouton responsif */
@media (max-width: 480px) {
  .custom-product-page .add-to-cart .button {
    width: 100%;
    text-align: center;
  }
}
/* =========================
   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;
  }
}
