/* Ajoutez ici vos styles spécifiques. Cette feuille est enqueued automatiquement si elle existe. */
/* === PZ — Base globale (Storefront Child) === */

/* Variables */
:root{
  --pz-green-900:#1b4332;
  --pz-green-600:#2d6a4f;
  --pz-green-300:#95d5b2;
  --pz-beige:#fefae0;
  --pz-ink:#24322a;
  --pz-white:#ffffff;
}

/* Typo globale */
body{
  font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--pz-ink);
 /* background: var(--pz-beige); */
}
h1,h2,h3,h4,h5{
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--pz-green-900);
  line-height: 1.2;
}

/* Largeur du site (Storefront utilise .col-full) */
.col-full{
  max-width: 1200px;
  padding-inline: 20px;
  margin-inline: auto;
}

/* Header */
.site-header{
  background: var(--pz-white);
  border-bottom: 1px solid #e8e5da;
}
.site-branding img{
  max-height: 64px;
  width: auto;
}
.storefront-primary-navigation .col-full{
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-navigation{
  flex: 1 1 auto;
}
.main-navigation ul.menu{
  display: flex;
  gap: 16px;
  align-items: center;
}
.main-navigation a{
  padding: 10px 8px;
  font-weight: 600;
}

/* Actions header (compte/panier) */
.pz-header-actions{
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pz-header-actions > a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .2s ease;
}
.pz-header-actions > a:hover{
  background: #f3efe2;
}
.pz-icon{
  width: 20px;
  height: 20px;
  display: inline-block;
  fill: var(--pz-green-900);
}
.pz-label{
  font-size: 14px;
  font-weight: 600;
  color: var(--pz-green-900);
}
.pz-cart{
  position: relative;
}
.pz-cart-count{
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--pz-green-600);
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

/* Boutons principaux (WooCommerce & génériques) */
.button, button, .added_to_cart, .single_add_to_cart_button, .wp-element-button{
  background: var(--pz-green-900);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
}
.button:hover, button:hover, .added_to_cart:hover, .single_add_to_cart_button:hover, .wp-element-button:hover{
  background: var(--pz-green-600);
  color: #fff;
}

/* Footer */
.site-footer{
  background: #f3efe2;
  color: var(--pz-ink);
  border-top: 1px solid #e8e5da;
}
.site-footer a{
  color: var(--pz-green-900);
}
.footer-widgets{
  padding-block: 40px;
}
.footer-widgets .block{
  margin-bottom: 14px;
}
.site-info{
  padding: 16px 0;
  border-top: 1px solid #e8e5da;
  font-size: 14px;
  opacity: .8;
}

/* Liens généraux */
a{
  color: var(--pz-green-900);
}
a:hover{
  color: var(--pz-green-600);
}

/* === Hero global === */
.pz-hero{
  position: relative;
  width: 100%;
  height: 300px;
  margin: 0 0 32px 0;
  overflow: hidden;
  border-radius: 0; /* hero plein écran */
}

.pz-hero-inner{
  width: 100%;
  height: 100%;
}

.pz-hero-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* === Header fixe global === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  width: 100%;
  background: var(--pz-white);
  border-bottom: 1px solid #e8e5da;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

/* On ajoute un espace en haut du contenu pour compenser la hauteur du header */
body.admin-bar .site-header {
  top: 32px; /* pour ne pas cacher la barre admin WP */
}
body {
  padding-top: 90px; /* ajuste selon la hauteur réelle de ton header */
}

/* === Titres blancs dans le hero === */
.pz-hero {
  position: relative;
  width: 100%;
  height: 300px;
  margin: 0 0 32px 0;
  overflow: hidden;
}
.pz-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pz-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25); /* léger voile foncé pour lisibilité */
}
.pz-hero-title {
  font-family: "Montserrat", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff; /* texte blanc */
  text-align: center;
  margin: 0;
  padding: 0 20px;
}

/* === Pied de page avec fond pelouse === */
.site-footer {
  background: url("../img/footer.png") center center / cover no-repeat;
  color: #fff; /* texte blanc par défaut */
  position: relative;
  z-index: 1;
}

/* Voile de contraste pour lisibilité du texte */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35); /* voile noir transparent */
  z-index: -1;
}

.site-footer a {
  color: #fefae0; /* beige clair sur fond vert */
}
.site-footer a:hover {
  color: #fff;
}
