/**
 * Pierre Maroc — Sections & animations v1.0
 * Nouvelles sections (stats, produits, CTA, footer) + animations de révélation au scroll.
 * Complète pierremaroc-design.css.
 */

/* ==========================================================================
   ANIMATIONS DE RÉVÉLATION AU SCROLL
   ========================================================================== */

.pm-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.pm-reveal.pm-in {
  opacity: 1;
  transform: none;
}
/* Stagger pour les groupes de cartes */
.pm-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.pm-stagger.pm-in > *:nth-child(1) { transition-delay: 0.05s; }
.pm-stagger.pm-in > *:nth-child(2) { transition-delay: 0.15s; }
.pm-stagger.pm-in > *:nth-child(3) { transition-delay: 0.25s; }
.pm-stagger.pm-in > *:nth-child(4) { transition-delay: 0.35s; }
.pm-stagger.pm-in > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .pm-reveal, .pm-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ==========================================================================
   HÉRO — plus imposant, entrée animée
   ========================================================================== */

#content .themify_builder_content > .module_row:first-child {
  min-height: 68vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 768px) {
  #content .themify_builder_content > .module_row:first-child { min-height: 52vh; }
}
.module-fancy-heading h1 { animation: pm-hero-in 0.9s cubic-bezier(0.22,1,0.36,1) both; }
.module-fancy-heading h1 .sub-head { animation: pm-hero-in 0.9s 0.2s cubic-bezier(0.22,1,0.36,1) both; }
@keyframes pm-hero-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .module-fancy-heading h1, .module-fancy-heading h1 .sub-head { animation: none; }
}

/* ==========================================================================
   BRIQUES COMMUNES
   ========================================================================== */

.pm-container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.pm-kicker {
  display: inline-block;
  font: 600 0.8rem/1 'Source Sans Pro', Arial, sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #a16207;
  margin-bottom: 14px;
}
.pm-section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.pm-section-head h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  color: #1c1a17;
  margin: 0 0 14px;
}
.pm-section-head h2::after {
  content: "";
  display: block;
  width: 56px; height: 3px;
  background: #dfa300;
  margin: 18px auto 0;
}
.pm-section-head p { color: #605a51; font-size: 1.05rem; }

.pm-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 0.9rem/1 'Source Sans Pro', Arial, sans-serif;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 16px 30px; border-radius: 3px;
  text-decoration: none; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  min-height: 48px;
}
.pm-btn svg { width: 19px; height: 19px; flex: none; }
.pm-btn:hover { transform: translateY(-2px); }
.pm-btn-gold { background: #dfa300; color: #1c1a17 !important; }
.pm-btn-gold:hover { background: #f0b408; box-shadow: 0 10px 24px -10px rgba(223,163,0,0.6); }
.pm-btn-wa { background: #1faa53; color: #ffffff !important; }
.pm-btn-wa:hover { background: #24c25f; box-shadow: 0 10px 24px -10px rgba(31,170,83,0.6); }

/* ==========================================================================
   SECTION STATS (bande chiffres clés)
   ========================================================================== */

.pm-stats {
  background: #1c1a17;
  border-top: 3px solid #dfa300;
  padding: 54px 0;
}
.pm-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.pm-stat-num, .pm-stat-suffix {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  color: #dfa300;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pm-stat p {
  margin: 10px 0 0;
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
@media (max-width: 768px) {
  .pm-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
}

/* ==========================================================================
   SECTION PRODUITS (3 cartes pierres)
   ========================================================================== */

.pm-products { background: #faf7f2; padding: 84px 0; }
.pm-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pm-card {
  display: block;
  background: #ffffff;
  border: 1px solid #eae4da;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none !important;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease;
}
.pm-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -20px rgba(28,26,23,0.35);
}
.pm-card-img {
  height: 230px;
  overflow: hidden;
  background: #e8e2d8;
}
.pm-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.pm-card:hover .pm-card-img img { transform: scale(1.06); }
.pm-card-body { padding: 26px 26px 30px; }
.pm-card-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  color: #1c1a17;
  margin: 0 0 10px;
}
.pm-card-body p { color: #605a51; font-size: 0.96rem; line-height: 1.65; margin: 0 0 16px; }
.pm-card-link {
  font: 700 0.82rem/1 'Source Sans Pro', Arial, sans-serif;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #a16207;
  display: inline-flex; align-items: center; gap: 8px;
}
.pm-card-link svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.pm-card:hover .pm-card-link svg { transform: translateX(5px); }
@media (max-width: 900px) {
  .pm-cards { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

/* ==========================================================================
   SECTION CTA PRÉ-FOOTER
   ========================================================================== */

.pm-cta {
  background: linear-gradient(135deg, #242017 0%, #1c1a17 60%),
              #1c1a17;
  position: relative;
  padding: 84px 0;
  text-align: center;
  overflow: hidden;
}
.pm-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(223,163,0,0.16), transparent 60%);
  pointer-events: none;
}
.pm-cta .pm-kicker { color: #dfa300; }
.pm-cta h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #ffffff;
  margin: 0 0 14px;
}
.pm-cta p { color: rgba(255,255,255,0.72); font-size: 1.08rem; max-width: 560px; margin: 0 auto 34px; }
.pm-cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   FOOTER REFONDU (3 colonnes + NAP)
   ========================================================================== */

#footerwrap { padding-top: 0 !important; }
#footer .main-col, #footer .footer-text { display: none; } /* masque l'ancien contenu */

.pm-footer { padding: 56px 0 0; }
.pm-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 48px;
  text-align: left;
}
.pm-footer h4 {
  font: 700 0.85rem/1 'Source Sans Pro', Arial, sans-serif;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #dfa300;
  margin: 0 0 18px;
}
.pm-footer-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 14px;
}
.pm-footer p, .pm-footer li, .pm-footer address { color: rgba(255,255,255,0.62); font-size: 0.94rem; line-height: 1.7; font-style: normal; }
.pm-footer ul { list-style: none; margin: 0; padding: 0; }
.pm-footer ul li { margin: 0 0 10px; }
.pm-footer ul a { color: rgba(255,255,255,0.8); text-decoration: none; transition: color 0.2s ease; }
.pm-footer ul a:hover { color: #dfa300; }
.pm-footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.pm-footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: #dfa300; }
.pm-footer-social { display: flex; gap: 12px; margin-top: 20px; }
.pm-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 48px;
  padding: 22px 0;
  text-align: center;
}
.pm-footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,0.45); margin: 0; }
@media (max-width: 860px) {
  .pm-footer-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .pm-footer-contact li { justify-content: center; }
  .pm-footer-social { justify-content: center; }
}

/* ==========================================================================
   BOUTON WHATSAPP FLOTTANT
   ========================================================================== */

.pm-wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 9000;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #1faa53;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -6px rgba(31,170,83,0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pm-wa-float:hover { transform: scale(1.08); box-shadow: 0 12px 30px -6px rgba(31,170,83,0.7); }
.pm-wa-float svg { width: 28px; height: 28px; color: #ffffff; }
@media (max-width: 768px) {
  .pm-wa-float { right: 16px; bottom: 16px; }
}
