/* 03_home_sections.css - Grille boutique 5 colonnes, cartes produits, témoignages, section contact */

/* TESTIMONIALS GRID */
.jdb-testimonials-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 32px auto 0 auto !important;
  padding: 0 clamp(16px, 4vw, 60px) !important;
  box-sizing: border-box !important;
}

@media (max-width: 900px) {
  .jdb-testimonials-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding: 0 16px !important;
  }
}

.jdb-testimonial-card {
  background-color: #FDF9F5 !important;
  border: 1px solid #EFE4DC !important;
  border-radius: 18px !important;
  padding: 24px 22px !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 4px 14px rgba(45, 36, 33, 0.03) !important;
  box-sizing: border-box !important;
}


/* 4. FULL-WIDTH 5-COLUMN BOUTIQUE GRID */
.jdb-products-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(14px, 1.8vw, 24px);
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 clamp(16px, 4vw, 60px) 0 !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

@media (max-width: 1200px) {
  .jdb-products-grid-5 {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 0 clamp(16px, 3vw, 40px) 0 !important;
  }
}

@media (max-width: 768px) {
  .jdb-products-grid-5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 0 16px 0 !important;
  }
}

@media (max-width: 480px) {
  .jdb-products-grid-5 {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px 0 !important;
  }
}

.jdb-product-card {
  background-color: #FDFBF9;
  border: 1px solid #EFE4DC;
  border-radius: 18px;
  padding: 16px 14px 18px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(45, 36, 33, 0.03);
  box-sizing: border-box !important;
}

.jdb-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(45, 36, 33, 0.08);
  border-color: #C26D53;
}

.jdb-card-img-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 13px;
  background: #F7EFE8;
}

.jdb-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.jdb-product-card:hover .jdb-card-img {
  transform: scale(1.04);
}

.jdb-card-badge {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin: 10px 0 4px 0;
  text-transform: uppercase;
}

.jdb-card-title {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #2D2421;
  margin: 0 0 6px 0;
  line-height: 1.25;
}

.jdb-card-desc {
  color: #70615A;
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0 0 12px 0;
  flex-grow: 1;
  overflow: visible;
}

.jdb-card-price {
  color: #C26D53;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 12px 0;
}

.jdb-card-unit {
  font-size: 0.78rem;
  color: #998880;
  font-weight: 400;
}

.jdb-card-btn {
  width: 100%;
  background-color: #2D2421;
  color: #ffffff;
  border: none;
  border-radius: 25px;
  padding: 9px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: block;
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.jdb-card-btn:hover {
  background-color: #C26D53;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(194, 109, 83, 0.3);
}


/* UNIFORM 50px TOP/BOTTOM PADDING & HARMONY FOR ALL HOME SECTIONS */
#boutique,
#histoire,
#contact,
.jdb-contact-section,
.wp-block-group.alignfull.has-background {
  padding-top: 50px !important;
  padding-bottom: 50px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  box-sizing: border-box !important;
}

/* HERO SECTION - EXACTEMENT 80px DE PADDING TOP */
html body #accueil,
body.home #accueil,
#accueil {
  padding-top: 80px !important;
  padding-bottom: 50px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  html body #accueil,
  body.home #accueil,
  #accueil {
    padding-top: 80px !important;
    padding-bottom: 50px !important;
  }
}

/* RESET DES MARGES PARASITES & CENTRAGE VERTICAL PARFAIT (HAUT ET BAS) */
#accueil > :first-child,
#accueil .wp-block-columns,
#accueil .wp-block-column > :first-child,
.wp-block-columns {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.wp-block-columns.are-vertically-aligned-center {
  align-items: center !important;
}

.wp-block-column {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.wp-block-column > :first-child,
.wp-block-columns > :first-child,
.wp-block-group > :first-child {
  margin-top: 0 !important;
}

.wp-block-column > :last-child,
.wp-block-columns > :last-child,
.wp-block-group > :last-child {
  margin-bottom: 0 !important;
}

figure.wp-block-image {
  margin: 0 !important;
  padding: 0 !important;
}

.wp-block-buttons {

  margin-bottom: 0 !important;
}

/* Contact Section Base Styles */
#contact,
.jdb-contact-section {
  background-color: #F7EFE8 !important;
  padding-left: clamp(20px, 4vw, 50px) !important;
  padding-right: clamp(20px, 4vw, 50px) !important;
}

.jdb-contact-inner {
  max-width: 1260px !important;
  width: 100% !important;
  margin: 0 auto !important;
}

.jdb-contact-card-box {
  background: #FFFFFF !important;
  border: 1px solid #EFE4DC !important;
  border-radius: 24px !important;
  padding: 38px !important;
  box-shadow: 0 6px 24px rgba(45, 36, 33, 0.04) !important;
  box-sizing: border-box !important;
  margin-bottom: 0 !important;
}

/* 13enWeb - Style propre pour les villes et textes secondaires des témoignages */
.jdb-testimonial-city {
  font-weight: 400 !important;
  color: #998880 !important;
  font-size: 0.9em;
}