/* =========================
   HOME.CSS (CLEAN)
   - Home "classique" uniquement
   - PAS de Hero Pro / rp-hero / hero-section ici
   ========================= */

/* Espacements */
.fw-row {
  padding: 20px 0;
}

a:hover {
  text-decoration: underline;
}

/* =========================
   FEATURED PRODUCTS (bloc)
   ========================= */
.featured-products {
  padding-top: 10px;
  margin-bottom: 50px;
}

.featured-products h2 {
  color: #333;
  margin-bottom: 20px;
  margin-top: 30px;
}

.fw-row.primary-bg {
  background-color: var(--primary-color);
}

.inner-content {
  border-radius: 15px;
  padding: 30px;
  margin: 25px 0;
}

.hero > .inner-content p {
  font-size: 18px;
}

/* =========================
   GRID PRODUITS (Featured)
   ========================= */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.product-card-large {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  max-width: 600px;
  transition: transform 0.3s;
  flex: 1 1 100%;
}

.product-card-large:hover {
  transform: translateY(-5px);
}

.product-card-large img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  display: block;
}

.product-card-large .product-info {
  padding: 15px;
}

.product-card-large .product-info h3 {
  font-size: 1.8em;
  color: #333;
  margin-bottom: 10px;
}

.product-card-large .product-info p {
  font-size: 1em;
  color: #666;
  margin-bottom: 10px;
}

.product-card-large .product-info .price {
  font-size: 1.2em;
  color: #333;
}

/* Small cards */
.product-card-small-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1 1 200px;
}

.product-card-small {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.product-card-small:hover {
  transform: translateY(-5px);
}

.product-card-small img {
  height: 100%;
  object-fit: cover;
  margin-left: 10px;
  display: block;
}

.product-card-small .product-info {
  text-align: left;
  padding: 10px;
  flex: 1;
}

.product-card-small .product-info.logged-out {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.product-info.logged-out a.btn {
  text-decoration: none;
  max-width: 120px;
}

.product-price {
  font-size: 1rem;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.product-card-small .product-info h4 {
  font-size: 1.2em;
  color: #333;
  margin-bottom: 5px;
}

.product-card-small .product-info .type {
  text-transform: uppercase;
}

.product-card-small .product-info .price {
  font-size: 1em;
  color: #333;
}

/* =========================
   SECTIONS 3D / ABOUT (layout)
   ========================= */
.content-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.text-container {
  flex: 1;
}

.image-container {
  flex: 1;
  display: flex;
  justify-content: center;
}

.image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: block;
}

.image-container img.logo-home {
  margin: 0 20%;
  box-shadow: none;
}

/* Responsive 3D/About */
@media (max-width: 767px) {
  .content-wrapper {
    flex-direction: column;
    text-align: center;
  }
}

/* =========================
   RESPONSIVE PRODUITS
   ========================= */
@media (min-width: 768px) {
  .product-grid {
    flex-direction: row;
  }

  .product-card-large {
    flex: 2;
    max-width: 30%;
  }

  .product-card-small-container {
    flex: 1;
  }

  .hero-buttons > .btn:last-child {
    margin-left: 10px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    margin-bottom: 25px;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .hero-buttons > .btn {
    width: 100%;
  }
}

@media (min-width: 580px) {
  .product-card-small img {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 580px) {
  .product-card-small img {
    width: 128px;
  }
}

/* =========================
   CATEGORIES (Oliviers/Palmiers)
   ========================= */
.category-section {
  text-align: center;
  margin: 60px 0;
}

.category-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
  font-weight: bold;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
}

.category-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s;
  text-align: left;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.category-info {
  padding: 5px 15px 15px 15px;
}

.category-item:hover {
  transform: translateY(-5px);
}

.category-item img {
  width: 100%;
  height: auto;
  border-radius: 8px 8px 0 0;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  display: block;
}

.category-info h3 {
  font-size: 18px;
  margin-top: 10px;
  color: #444;
}

.category-price {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin: 5px 0;
}

/* Bouton "Voir plus" (palette Royal Palm) */
.category-more {
  margin-top: 20px;
}

.category-more a {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #CBBEAA;          /* patine */
  color: #3D2F1C;                      /* brun */
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  background: transparent;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.category-more a:hover {
  background: #3D2F1C;                 /* brun */
  color: #F7F3EC;                      /* ivoire */
  border-color: #3D2F1C;
}

/* Responsive catégories */
@media (max-width: 767px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}