﻿.home-page {
  background: var(--white);
  color: var(--black);
}

.home-container {
  position: relative;
}

.home-bg-shape-left {
  position: absolute;
  left: 0;
  top: 2150px;
  width: 400px;
  height: 820px;
  color: var(--purple);
  z-index: 0;
  pointer-events: none;
  opacity: 0.2;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
}

/* SECTION "HERO" */
.hero {
  /* Variables de contrÃ´le visuel */
  --hero-overlay-opacity: 0.7;   /* opacitÃ© du voile violet (0 = image nette, 1 = violet plein) */
  --hero-cols-max: 1200px;       /* largeur du bloc 3 colonnes (rÃ©duit = plus resserrÃ© au centre) */
  --hero-cols-gap: 30px;         /* espace entre les colonnes */
  --hero-text-max: 340px;        /* largeur max de la colonne texte (Ã©vite de passer sous le -20%) */
  --hero-text-offset-y: -30px;   /* dÃ©calage vertical du bloc texte (nÃ©gatif = remonte) */
  --hero-promo-offset-y: 30px;   /* dÃ©calage vertical du bloc promo -20% (positif = descend) */
  --hero-padding-top: 140px;     /* espace au-dessus du contenu (doit rester >= ~120px pour ne pas passer sous le header) */

  position: relative;
  background-image: url('/assets/images/ui/home/bg-noel.webp');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: var(--hero-padding-top) 60px 0 60px;
  margin-top: -110px; /* remonte sous le header transparent */
  display: flex;
  flex-direction: column;
  border-bottom: 2px solid var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--purple);
  opacity: var(--hero-overlay-opacity);
  z-index: 0;
  pointer-events: none;
}


.hero-cols {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--hero-cols-gap);
  max-width: var(--hero-cols-max);
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

/* Colonne 1 : texte */
.hero-col-text {
  max-width: var(--hero-text-max);
  transform: translateY(var(--hero-text-offset-y));
}

.hero-title {
  font-family: var(--font-head);
  font-size: 6rem;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1;
}

.hero-text-1 {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.hero-text-2 {
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: -0.3px;
  opacity: 0.9;
}

/* Colonne 2 : -20% + CTA â€” centrÃ© absolument dans le hero */
.hero-col-discount {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% + var(--hero-promo-offset-y)));
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  gap: 6px;
}

.hero-discount {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 10rem;
  color: var(--green);
  line-height: 1;
  letter-spacing: -2px;
  -webkit-text-stroke: 25px #69144B;
  paint-order: stroke fill;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-discount-sub {
  font-size: 0.875rem;
  margin: 0 0 15px;
  max-width: 280px;
  -webkit-text-stroke: 1px #69144B;
  paint-order: stroke fill;
}

.hero-cta {
  position: relative;
  display: inline-block;
  padding: 0 30px; /* symÃ©trique â†’ texte centrÃ© (l'icÃ´ne en absolute ne dÃ©pend pas du padding) */
  border: 4px solid var(--green);
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 1.75rem;
  color: var(--green);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  clip-path: inset(1px round 50px); /* alternative Ã  overflow:hidden, parfois meilleur rendu */
}
.hero-cta-icon {
  position: absolute;
  left: -6px; /* combien l'icÃ´ne dÃ©borde Ã  gauche du bouton */
  top: 43%;
  transform: translateY(-50%);
  z-index: 10; /* passe au-dessus du border */
  fill: currentColor;
  pointer-events: none;
}
.hero-cta:hover {
  background: var(--green);
  color: var(--purple);
}

/* Colonne 3 : image produit + cadre rouge derriÃ¨re */
.hero-col-image {
  position: relative;
  width: 375px;
  height: 375px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-frame {
  position: absolute;
  inset: 0;
  border: 30px solid #69144B;
  transform: rotate(-15deg);
  pointer-events: none;
  z-index: 0;
}

.hero-col-image img {
  position: relative;
  z-index: 1;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* Surcharges du bandeau rÃ©assurance dans le hero (rÃ©utilise les classes du footer) */
.hero-reassurance {
  position: relative;
  z-index: 1;
  padding: 22px 6px 0px 6px
}


/* SECTION "MEILLEURS VENTES" */
.best-sells-section {
  background: var(--purple);
  padding: 40px 0 180px 0;
}

/* SECTION "BOUTONS TYPES PRODUITS" */
.btn-actions-section {
  margin-bottom: 40px;
}

.best-sells-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 35px;
}

.filter-btn {
  background: var(--purple);
  border: 1px solid var(--purple);
  border-radius: 60px;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  width: 200px;
  height: 60px;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 20px;
  box-shadow: 0 0 35px rgba(132, 76, 170, 1);
}
.filter-btn svg {
  position: absolute;
  left: -2px;
  top: 40%;
  height: 70px;
  width: auto;
  transform: translateY(-50%);
}

.filter-btn span {
  flex: 1;
  text-align: center;
}

.fleurs {
  color: var(--green);
}
.resines {
  color: var(--orange);
}
.huiles {
  color: var(--yellow);
}
.accessoires {
  color: var(--blue-light);
}

.fleurs svg, .resines svg, .huiles svg, .accessoires svg {
  fill: currentColor;
  transition: transform 0.3s ease;
}

.fleurs:hover, .resines:hover, .huiles:hover, .accessoires:hover {
  color: var(--purple);
  transform: translateY(-1px);
}

.fleurs:hover {
  background: var(--green);
  border-color: var(--green);
}
.resines:hover {
  background: var(--orange);
  border-color: var(--orange);
}
.huiles:hover {
  background: var(--yellow);
  border-color: var(--yellow);
}
.accessoires:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
}

/* SECTION "CARDS DES PRODUITS" */
#best-sells-title {
  display: flex;
  justify-content: center;
  color: var(--green);
  font-family: var(--font-head);
  font-size: 5rem;
  margin: 0 0 15px 0;
}

/* Grille produits : le NOMBRE de colonnes est fixe par palier (repeat(N,...)),
   jamais deduit de la largeur des cards -> supprime le "3+1" parasite entre 2
   breakpoints (zone morte). Les cards remplissent leur cellule ; la max-width du
   conteneur garde une taille de card propre. */
.products-bests-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
}

/* Styles supplÃ©mentaires pour les cards produits */
.products-bests-cards .product-card {
  width: 100%;
}
.btn-wrapper {
  --home-display: block;
}

/* Palier xxl : >=1280px â€” 4 cards par ligne, plus grandes */
@media (min-width: 1280px) {
  .products-bests-cards {
    max-width: 1320px;
  }
}

/* Palier lg : 1025-1150px â€” 4 cards par ligne, plus petites */
@media (max-width: 1150px) {
  .products-bests-cards {
    max-width: 1100px;
  }
}

/* Palier md : 481-1024px â€” 2x2 */
@media (max-width: 1024px) {
  .products-bests-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 680px;
    gap: 16px;
  }
}

/* Palier sm : <=480px â€” 1 par ligne */
@media (max-width: 480px) {
  .products-bests-cards {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}

/* SECTION "FAQ" */
.faq-container {
  max-width: 1350px;
  margin: -100px auto 0 auto;
  background: var(--white);
  border-radius: 100px 100px 0px 0px;
  position: relative;
  box-shadow: 0px -650px 400px #00000010;
  overflow: hidden;
}

.faq-bg-shape {
  position: absolute;
  top: -50px;
  right: -60px;
  width: 420px;
  height: 480px;
  color: var(--purple);
  z-index: 0;
  pointer-events: none;
}

.faq-container > *:not(.faq-bg-shape) {
  position: relative;
  z-index: 1;
}

.faq-container-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 120px;
  padding-top: 50px;
}

.first-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.second-column {
  flex: 1;
  display: flex;
}

/* On limite la largeur des textes pour qu'ils ne fassent pas toute la colonne */
#faq-section-firstPara, 
#faq-section-secondPara,
#faq-section-secondTitle,
#faq-section-title {
  max-width: 550px;
  width: 100%;
}

#faq-section-title {
  display: block;
  color: var(--purple);
  font-family: var(--font-head);
  font-size: 6rem;
}

#faq-section-secondTitle {
  color: var(--orange);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 20px;
  display: block;
}

#faq-section-firstPara {
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--purple);
}

#faq-section-secondPara {
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 20px;
  color: grey;
}

.pochon-img-faq {
  width: 100%;
  max-width: 500px; /* EmpÃªche l'image de devenir gigantesque sur trÃ¨s grand Ã©cran */
  height: auto;
}

/* ACCORDION FAQ */
.accordion-container {
  display: grid;
  margin: 100px;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.accordion-item {
  border-radius: 5px;
  overflow: hidden;
  background: white;
  box-shadow:
    inset 2px 0 0 0 rgba(47, 21, 108, 0),
    inset -2px 0 0 0 rgba(47, 21, 108, 0),
    inset 0 -2px 0 0 rgba(47, 21, 108, 0),
    0 0 30px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease 0.3s;
}

.accordion-container > .accordion-item:first-child {
  border-top-left-radius: 30px;
}

.accordion-container > .accordion-item:nth-child(2) {
  border-top-right-radius: 30px;
}

.accordion-container > .accordion-item:nth-last-child(2) {
  border-bottom-left-radius: 30px;
}

.accordion-container > .accordion-item:last-child {
  border-bottom-right-radius: 30px;
}

.accordion-header {
  background-color: var(--white);
  color: var(--black);
  padding: 15px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0;
  transition: background-color 0.3s ease 0.3s, color 0.3s ease 0.3s;
}

.question-number {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--green);
  white-space: nowrap;
  flex-shrink: 0;
}

.question-text {
  padding-left: 12px;
  padding-right: 18px;
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.accordion-item.active .question-text {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.accordion-header .arrow {
  margin-left: auto;
  flex-shrink: 0;
  width: 14px;
  height: 8px;
  background-color: var(--green);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  display: inline-block;
  transform-origin: 50% 50%;
  transition: transform 0.3s ease, background-color 0.3s ease 0.3s;
}

/* Contenu cachÃ© par dÃ©faut */
.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0 15px;
  transition:
    grid-template-rows 0.4s ease,
    padding 0.4s ease;
}

.accordion-content > * {
  overflow: hidden;
}

.accordion-content p + p,
.accordion-content ul + p,
.accordion-content p + ul {
  margin-top: 1em;
}

.accordion-content a[href^="mailto:"] {
  color: var(--orange);
  font-weight: bold;
  text-decoration: none;
}

.accordion-content a[href^="mailto:"]:hover {
  text-decoration: underline;
}

/* Styles FAQ riches (faq-payment-list, faq-shipping-table, faq-discount-banner,
   faq-text-yellow) déplacés dans partials/faq-rich.css pour être partagés
   avec la fiche produit. */

/* Classe active ajoutÃ©e par JS */
.accordion-item.active {
  box-shadow:
    inset 2px 0 0 0 rgba(47, 21, 108, 1),
    inset -2px 0 0 0 rgba(47, 21, 108, 1),
    inset 0 -2px 0 0 rgba(47, 21, 108, 1),
    0 0 30px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease 0s;
}

.accordion-item.active > .accordion-header {
  background-color: var(--purple);
  color: var(--white);
  transition: background-color 0.3s ease 0s, color 0.3s ease 0s;
}

.accordion-item.active > .accordion-content {
  grid-template-rows: 1fr;
  padding: 25px;
}

.accordion-item.active .question-number, .accordion-item.active .question-text {
  color: var(--white);
  transition: color 0.3s ease 0s;
}

.question-number, .question-text {
  transition: color 0.3s ease 0.3s;
}

.accordion-item.active .arrow {
  background-color: var(--white);
  transform: rotate(-180deg);
  transition: transform 0.3s ease, background-color 0.3s ease 0s;
}

/* SECTION "ACTUALITES" */
.news-container-title {
  display: flex;
  flex-direction: column;
  margin-top: 50px;
}

#news-title, #news-title2 {
  display: inherit;
  justify-content: center;
}

#news-title {
  color: var(--purple);
  font-family: var(--font-head);
  font-size: 5rem;
}

#news-title2 {
  color: var(--orange);
  font-weight: 800;
  font-size: 1.25rem;
}

/* Grille blog : meme principe que les produits, le nombre de colonnes est fixe
   par palier (repeat(N,...)), jamais deduit de la largeur des cards. 3 cards ->
   a <=1024 on passe a 2 colonnes et la 3e (orpheline) est centree sur les deux.
   La max-width du conteneur garde une taille de card propre (~360-400 desktop). */
.articles-blog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  max-width: 1270px;
  margin: 0 auto;
  padding: 40px 20px;
}

.articles-blog .blog-card {
  width: 100%;
}

/* Palier md : <=1024px -> 2 colonnes, 3e card centree sur la largeur */
@media (max-width: 1024px) {
  .articles-blog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 700px;
    gap: 20px;
  }
  .articles-blog .blog-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 320px;
    margin-inline: auto;
  }
}

/* Palier sm : <=480px â€” 1 par ligne */
@media (max-width: 480px) {
  .articles-blog {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}