/* =============================================================
   P3D LAB — HOME PAGE STYLES
   Classes préfixées "ph-" pour éviter tout conflit Astra.
   ============================================================= */

/* ---- Variables ---- */
:root {
  --ph-green:       #2B5219;
  --ph-green-mid:   #3D7A25;
  --ph-green-light: #5A9E38;
  --ph-green-pale:  #D6E8C8;
  --ph-beige:       #F5EDD8;
  --ph-beige-dark:  #E8D9BC;
  --ph-cream:       #FEFAF2;
  --ph-brown:       #5C4A32;
  --ph-brown-dark:  #2C2416;
  --ph-gold:        #8B6914;
  --font-serif:     'Playfair Display', Georgia, serif;
  --font-sans:      'Lato', system-ui, sans-serif;
  --radius:         14px;
  --shadow:         0 4px 24px rgba(44,36,22,.10);
  --shadow-lg:      0 8px 40px rgba(44,36,22,.16);
  --ease:           .25s ease;
}

/* ---- Reset page ---- */
body.p3dlab-home {
  margin: 0;
  padding: 0;
  background: var(--ph-beige);
  font-family: var(--font-sans);
  color: var(--ph-brown-dark);
  /* Annuler tout ce qu'Astra peut ajouter */
  overflow-x: hidden;
}

body.p3dlab-home *,
body.p3dlab-home *::before,
body.p3dlab-home *::after {
  box-sizing: border-box;
}

/* Cacher le canvas d'Astra (header/footer natif) — on a les nôtres */
body.p3dlab-home #masthead,
body.p3dlab-home #colophon,
body.p3dlab-home .ast-above-header-wrap,
body.p3dlab-home .ast-below-header-wrap,
body.p3dlab-home #ast-fixed-footer,
body.p3dlab-home .site-footer {
  display: none !important;
}

/* Annuler padding/margin qu'Astra injecte sur .site */
body.p3dlab-home .site,
body.p3dlab-home #page {
  margin: 0 !important;
  padding: 0 !important;
}

/* ============================================================
   CONTENEUR
   ============================================================ */
.ph-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
.ph-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--ph-green);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.ph-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ph-header__brand img,
.ph-header__brand .custom-logo {
  height: 52px;
  width: auto;
  display: block;
}

.ph-header__site-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

/* Navigation */
.ph-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ph-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ph-nav__list li a {
  display: block;
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,.88) !important;
  text-decoration: none;
  border-radius: 8px;
  transition: background var(--ease), color var(--ease);
}

.ph-nav__list li a:hover,
.ph-nav__list .current-menu-item > a {
  color: #fff !important;
  background: rgba(255,255,255,.15);
}

/* Icône panier */
.ph-nav__cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  transition: background var(--ease);
  margin-left: 8px;
}

.ph-nav__cart:hover { background: rgba(255,255,255,.25); }

.ph-nav__cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e74c3c;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Burger (mobile) */
.ph-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.ph-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--ease);
}

/* ============================================================
   BOUTONS
   ============================================================ */
.ph-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--ease);
  line-height: 1;
  white-space: nowrap;
}

.ph-btn--primary {
  background: var(--ph-green-mid);
  color: #fff !important;
  border-color: var(--ph-green-mid);
}

.ph-btn--primary:hover {
  background: var(--ph-green-light);
  border-color: var(--ph-green-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61,122,37,.4);
}

.ph-btn--ghost {
  background: rgba(255,255,255,.12);
  color: #fff !important;
  border-color: rgba(255,255,255,.5);
  backdrop-filter: blur(4px);
}

.ph-btn--ghost:hover {
  background: rgba(255,255,255,.22);
  border-color: #fff;
  transform: translateY(-2px);
}

.ph-btn--outline {
  background: transparent;
  color: var(--ph-green) !important;
  border-color: var(--ph-green);
}

.ph-btn--outline:hover {
  background: var(--ph-green);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ============================================================
   HERO
   ============================================================ */
.ph-hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ph-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #1a3a0e 0%,
    var(--ph-green) 35%,
    #1e3d12 65%,
    #0e2308 100%
  );
}

.ph-hero__polys {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ph-hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 80px 24px 100px;
  margin-left: calc((100vw - 1200px) / 2);
  margin-left: max(24px, calc((100vw - 1200px) / 2));
}

.ph-hero__badge {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(4px);
  color: rgba(255,255,255,.9);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.ph-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 20px;
}

.ph-hero__title em {
  font-style: normal;
  color: var(--ph-green-pale);
}

.ph-hero__desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.82);
  line-height: 1.7;
  margin: 0 0 36px;
  max-width: 480px;
}

.ph-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.ph-hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  pointer-events: none;
}

/* ============================================================
   RÉASSURANCE
   ============================================================ */
.ph-reassurance {
  background: var(--ph-beige);
  border-bottom: 1px solid var(--ph-beige-dark);
}

.ph-reassurance__list {
  list-style: none;
  margin: 0;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.ph-reassurance__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 32px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ph-brown-dark);
}

.ph-reassurance__sep {
  width: 1px;
  height: 28px;
  background: var(--ph-beige-dark);
  padding: 0 !important;
  gap: 0 !important;
}

.ph-reassurance__icon {
  font-size: 1.3rem;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.ph-section {
  padding: 80px 0;
}

.ph-section--cream { background: var(--ph-cream); }
.ph-section--green { background: var(--ph-green-pale); }

.ph-section-head {
  text-align: center;
  margin-bottom: 52px;
}

.ph-section-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ph-green-mid);
  margin: 0 0 8px;
}

.ph-section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--ph-green);
  margin: 0 0 12px;
}

.ph-section-title::before,
.ph-section-title::after {
  content: " — ";
  color: var(--ph-green-mid);
}

.ph-section-sub {
  font-size: 1.05rem;
  color: var(--ph-brown);
  margin: 0;
}

.ph-section-cta {
  text-align: center;
  margin-top: 48px;
}

.ph-empty {
  text-align: center;
  color: var(--ph-brown);
  font-style: italic;
  padding: 60px 0;
}

/* ============================================================
   PRODUITS WOOCOMMERCE
   ============================================================ */
.ph-products-wrap .products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

.ph-products-wrap .products .product {
  background: #fff !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  box-shadow: var(--shadow) !important;
  transition: transform var(--ease), box-shadow var(--ease) !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  float: none !important;
  display: flex !important;
  flex-direction: column !important;
}

.ph-products-wrap .products .product:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow-lg) !important;
}

.ph-products-wrap .products .product a img {
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform .4s ease !important;
}

.ph-products-wrap .products .product:hover a img {
  transform: scale(1.04) !important;
}

.ph-products-wrap .products .product .woocommerce-loop-product__title {
  font-family: var(--font-serif) !important;
  font-size: 1.05rem !important;
  color: var(--ph-green) !important;
  padding: 16px 16px 4px !important;
  margin: 0 !important;
}

.ph-products-wrap .products .product .price {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--ph-gold) !important;
  padding: 4px 16px 8px !important;
  display: block !important;
}

.ph-products-wrap .products .product .star-rating {
  padding: 0 16px 8px !important;
}

.ph-products-wrap .products .product .button {
  margin: auto 16px 16px !important;
  width: calc(100% - 32px) !important;
  background: var(--ph-green-mid) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 10px !important;
  font-weight: 700 !important;
  font-size: .9rem !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: background var(--ease) !important;
  display: block !important;
}

.ph-products-wrap .products .product .button:hover {
  background: var(--ph-green-light) !important;
}

.ph-products-wrap span.onsale {
  background: var(--ph-green-mid) !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-size: .7rem !important;
  font-weight: 700 !important;
  min-height: unset !important;
  min-width: unset !important;
  padding: 4px 10px !important;
  line-height: 1.4 !important;
}

/* ============================================================
   CARTES "NOTRE UNIVERS"
   ============================================================ */
.ph-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ph-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 28px 36px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease);
  border-bottom: 3px solid transparent;
}

.ph-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--ph-green-mid);
}

.ph-card__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.ph-card__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--ph-green);
  margin: 0 0 12px;
}

.ph-card__text {
  font-size: .92rem;
  color: var(--ph-brown);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.ph-footer {
  background: var(--ph-green);
  color: rgba(255,255,255,.8);
}

.ph-footer__top {
  padding: 72px 0 48px;
}

.ph-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.ph-footer__logo img,
.ph-footer__logo .custom-logo {
  height: 54px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .9;
  margin-bottom: 16px;
}

.ph-footer__logo-text {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: #fff;
  font-weight: 700;
  margin: 0 0 16px;
}

.ph-footer__tagline {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
  margin: 0 0 24px;
  max-width: 280px;
}

.ph-footer__heading {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #fff;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ph-green-mid);
}

.ph-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ph-footer__links a {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color var(--ease), padding-left var(--ease);
  display: inline-block;
}

.ph-footer__links a:hover {
  color: var(--ph-green-pale);
  padding-left: 4px;
}

.ph-footer__contact {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .88rem;
  color: rgba(255,255,255,.65);
}

.ph-footer__contact a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
}

.ph-footer__contact a:hover {
  color: var(--ph-green-pale);
}

.ph-footer__secure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
}

/* Réseaux sociaux */
.ph-socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
}

.ph-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: background var(--ease), transform var(--ease);
}

.ph-socials a:hover {
  background: var(--ph-green-mid);
  color: #fff;
  transform: translateY(-3px);
}

/* Barre basse */
.ph-footer__bar {
  background: rgba(0,0,0,.22);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 0;
}

.ph-footer__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .78rem;
  color: rgba(255,255,255,.45);
}

.ph-footer__bar-inner nav {
  display: flex;
  gap: 24px;
}

.ph-footer__bar-inner nav a {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color var(--ease);
}

.ph-footer__bar-inner nav a:hover {
  color: rgba(255,255,255,.85);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .ph-products-wrap .products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .ph-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .ph-footer__brand {
    grid-column: 1 / -1;
  }
  .ph-footer__tagline { max-width: 100%; }
}

@media (max-width: 768px) {
  .ph-hero { min-height: 460px; }
  .ph-hero__content { padding: 60px 24px 90px; }
  .ph-hero__actions { flex-direction: column; align-items: flex-start; }

  .ph-nav__list { display: none; }
  .ph-burger { display: flex; }

  .ph-reassurance__list { justify-content: flex-start; }
  .ph-reassurance__sep { display: none; }
  .ph-reassurance__list li { padding: 8px 20px; }

  .ph-cards { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .ph-section { padding: 56px 0; }
}

@media (max-width: 600px) {
  .ph-products-wrap .products {
    grid-template-columns: 1fr !important;
  }
  .ph-footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .ph-footer__bar-inner { flex-direction: column; text-align: center; }
  .ph-footer__bar-inner nav { flex-wrap: wrap; justify-content: center; gap: 12px; }
}
