/* =====================================================================
   NOSENVIESDECO 2027 - Habillage du thème PS9
   Reprend la charte et la disposition de www.nosenviesdeco.fr (PS 1.7)
   Chargé après custom.css (voir templates/_partials/head.tpl)
   ===================================================================== */

/* ---------- Polices locales (copiées depuis l'ancien thème) ---------- */
@font-face {
  font-family: 'Thailand';
  src: url(../fonts/JourneytoThailand.ttf) format('truetype');
  font-display: swap;
}

:root {
  --ned-coral: #e57775;
  --ned-coral-hover: #ef817f;
  --ned-taupe: #8e8178;
  --ned-beige: #c8bcb4;
  --ned-beige-btn: #c8bcaa;
  --ned-beige-light: #eeebe8;
  --ned-footer: #d8d4d2;
  --ned-text: #262626;
  --ned-text-soft: #4f4c4c;
  --ned-font: 'Quicksand', sans-serif;
  --ned-script: 'Satisfy', cursive;
}

body {
  font-family: var(--ned-font);
  font-weight: 500;
  color: var(--ned-text);
}

a { color: var(--ned-text); }
a:hover, a:focus { color: var(--ned-text); text-decoration: none; }
p { color: var(--ned-text-soft); }
hr { border-top: 2px solid var(--ned-coral); opacity: 1; }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--ned-font);
  color: var(--ned-taupe);
  font-weight: 400;
}

/* Largeur du site : 1370px max comme nosenviesdeco.fr */
@media (min-width: 1200px) {
  .container, .container-sm, .container-md, .container-lg,
  .container-xl, .container-xxl {
    max-width: 1370px !important;
  }
}

/* ---------- Titres décorés (.ned-title / titres de sections) ---------- */
.ned-title,
.featured-products .products-section-title,
.products-section-title,
.section-title {
  position: relative;
  display: block;
  width: 100%;
  margin: 10px 0 20px;
  text-align: center;
  color: var(--ned-taupe);
  font-family: var(--ned-font);
  font-weight: 500;
  font-size: 1.5rem;
}

@media (min-width: 768px) {
  .ned-title::before,
  .featured-products .products-section-title::before,
  .products-section-title::before,
  .section-title::before {
    content: "";
    display: block;
    width: 100%;
    height: 37px;
    background: url(../img/deco-titre.jpg) no-repeat center;
  }

  .ned-title > *,
  .products-section-title > span {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    margin: 0;
  }

  .ned-title > *::before,
  .ned-title > *::after {
    content: "";
    flex: 1 1 auto;
    border-bottom: 1px solid var(--ned-taupe);
    opacity: .4;
  }
  .ned-title > *::before { margin-right: 25px; }
  .ned-title > *::after { margin-left: 25px; }
}

/* ---------- Boutons ---------- */
.btn { border-radius: 10px; font-family: var(--ned-font); }

.btn-primary,
.btn-primary:active,
.btn-primary:focus {
  background-color: var(--ned-coral);
  border-color: var(--ned-coral);
  color: #fff;
  font-weight: 500;
  box-shadow: none;
}
.btn-primary:hover {
  background-color: var(--ned-coral-hover) !important;
  border-color: var(--ned-coral-hover) !important;
  color: #fff;
}

.btn-secondary,
.btn-outline-secondary {
  background-color: var(--ned-beige);
  border-color: var(--ned-beige);
  color: var(--ned-text);
}
.btn-secondary:hover,
.btn-outline-secondary:hover {
  background-color: var(--ned-beige-btn);
  border-color: var(--ned-beige-btn);
  color: var(--ned-text);
}

.ned-btn {
  display: inline-block;
  width: 100%;
  padding: 10px 0;
  color: #fff;
  text-align: center;
  background-color: var(--ned-coral);
  border-radius: 10px;
}
.ned-btn:hover { color: #fff; background-color: var(--ned-coral-hover); }

.btn-ned-grey {
  padding: 15px 30px;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ned-text);
  background: var(--ned-beige-btn);
}

/* =====================================================================
   HEADER
   ===================================================================== */

/* Bandeau promo haut (ks_custom_banner / displayBanner) : fond corail */
.header-banner,
.custom_banner {
  background-color: var(--ned-coral);
  color: var(--ned-text);
  font-family: var(--ned-font);
}
.custom_banner,
.custom_banner p,
.custom_banner span {
  color: var(--ned-text);
  font-size: 15px;
  font-weight: 500;
}
.header-banner:has(.custom_banner) { background: var(--ned-coral); }

#header {
  box-shadow: none;
  border-bottom: 1px solid var(--ned-taupe);
}

.header-top {
  border-bottom: none;
  padding: 6px 0 4px;
}

.header-top .logo {
  max-height: 56px;
  max-width: 260px;
}

/* --- Recherche : champ souligné, placeholder en italique, loupe ronde --- */
@media (min-width: 768px) {
  .header-top__search {
    justify-content: flex-end !important;
  }
  .header-top__search #_desktop_ps_searchbar,
  .header-top__search .ps-searchbar {
    max-width: 440px;
    justify-content: flex-end;
  }
}

.header-top__search input[type="text"],
.header-top__search input[type="search"],
.ps-searchbar__input {
  border: none !important;
  border-bottom: 2px solid rgba(108, 106, 104, .23) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 4px 6px !important;
  margin-right: 10px;
  font-style: italic;
  font-size: 15px;
  color: #000;
  background: transparent;
}
.ps-searchbar__input::placeholder { opacity: .4; }
.header-top__search input:focus,
.ps-searchbar__input:focus {
  border-bottom-color: var(--ned-coral) !important;
  box-shadow: none !important;
}

.header-top__search button[type="submit"],
.ps-searchbar button[type="submit"] {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50% !important;
  border: 1px solid var(--ned-text) !important;
  background: #fff !important;
  color: var(--ned-text) !important;
}
.header-top__search button[type="submit"] i,
.ps-searchbar button[type="submit"] i {
  color: var(--ned-text) !important;
  font-size: 22px;
}
.header-top__search button[type="submit"]:hover,
.ps-searchbar button[type="submit"]:hover {
  background: var(--ned-coral) !important;
  border-color: var(--ned-coral) !important;
}
.header-top__search button[type="submit"]:hover i { color: #fff !important; }

/* --- Compte & panier : icônes dans des cercles, sans libellé --- */
.header-top .header-block__action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0 !important;
  margin-left: 10px;
  border: 1px solid var(--ned-text) !important;
  border-radius: 50%;
  background: #fff !important;
  color: var(--ned-text);
  transition: background-color .15s ease, border-color .15s ease;
}
.header-top .header-block__action-btn:hover,
.header-top .header-block--active .header-block__action-btn:hover {
  background: var(--ned-coral) !important;
  border-color: var(--ned-coral) !important;
  color: #fff;
}
.header-top .header-block__action-btn:hover .header-block__icon { color: #fff; }
.header-top .header-block__icon {
  font-size: 22px;
  color: var(--ned-text);
  margin: 0;
}
.header-top .header-block__title {
  /* display est forcé par une règle en @layer du thème : on masque autrement */
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  visibility: hidden;
}
.header-top .header-block__action-btn.dropdown-toggle::after { display: none; }
.header-top .header-block__badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  background: var(--ned-coral);
  color: #fff;
}
.header-top .inactive .header-block__badge { display: none; }

/* --- Barre du menu --- */
.header-bottom {
  background: #fff;
  border-top: none;
}

/* =====================================================================
   MENU (jardidecomobilemenu, surcharge thème)
   ===================================================================== */
@media (min-width: 1200px) {
  .ned-menu .jdm-desktop-tree {
    align-items: stretch;
    justify-content: space-between;
  }

  .ned-menu .jdm-desktop-item {
    flex: 1 1 0;
    min-height: 42px;
  }

  .ned-menu .jdm-desktop-link {
    height: 42px;
    padding: 0 6px;
    font-family: var(--ned-font);
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--ned-text-soft);
    letter-spacing: .02em;
    transition: background-color .15s ease, color .15s ease;
  }

  .ned-menu .jdm-desktop-item:hover > .jdm-desktop-link,
  .ned-menu .jdm-desktop-item.is-active > .jdm-desktop-link {
    background-color: var(--ned-coral);
    color: #fff;
  }

  /* Univers / Pièces : libellé souligné corail */
  .ned-menu .ned-menu__item--tiles > .jdm-desktop-link .jdm-desktop-title {
    border-bottom: 2px solid var(--ned-coral);
    padding-bottom: 1px;
  }
  .ned-menu .ned-menu__item--tiles:hover > .jdm-desktop-link .jdm-desktop-title {
    border-bottom-color: #fff;
  }

  /* 1er lien : « Faisons connaissance » */
  .ned-menu .ned-menu__first {
    flex: 0 0 10%;
    align-items: center;
    justify-content: center;
  }
  .ned-menu .ned-menu__first > .jdm-desktop-link {
    height: auto;
    padding: 5px 8px;
    background-color: var(--ned-beige-light);
    font-family: var(--ned-script);
    font-size: 19px;
    line-height: 16px;
    text-transform: none;
    white-space: normal;
    color: var(--ned-text-soft);
    letter-spacing: 0;
  }
  .ned-menu .ned-menu__first:hover > .jdm-desktop-link {
    background-color: var(--ned-beige);
    color: var(--ned-text);
  }

  /* Dernier lien : « Blog » */
  .ned-menu .ned-menu__last > .jdm-desktop-link {
    font-family: var(--ned-script);
    font-size: 24px;
    text-transform: none;
    color: var(--ned-coral);
    letter-spacing: 0;
  }
  .ned-menu .ned-menu__last:hover > .jdm-desktop-link {
    background: transparent;
    color: var(--ned-coral-hover);
  }
  .ned-menu__blog-icon { width: 22px; height: auto; margin-right: 4px; }

  /* --- Méga-menu --- */
  .ned-menu .jdm-megamenu {
    border: none;
    border-radius: 0;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .15);
  }
  .ned-menu .jdm-megamenu__container { padding: 20px 24px; }

  .ned-menu .ned-cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px 24px;
  }

  .ned-menu .ned-col {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
  }
  .ned-menu .ned-col__thumb {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
  }
  .ned-menu .ned-col__thumb.is-empty { display: none; }
  .ned-menu .ned-col__thumb img {
    width: 40px;
    height: 40px;
    object-fit: contain;
  }
  .ned-menu .ned-col__body { min-width: 0; }

  .ned-menu .jdm-megamenu__col-title {
    margin: 0 0 2px;
    padding: 0;
    border: none;
    font-family: var(--ned-font);
    font-size: 14px;
    font-weight: 500;
    color: var(--ned-coral);
  }
  .ned-menu .jdm-megamenu__col-title:hover {
    color: var(--ned-coral-hover);
    border: none;
    text-decoration: underline;
  }
  .ned-menu .jdm-megamenu__sublist { gap: 1px; }
  .ned-menu .jdm-megamenu__sublink {
    font-family: var(--ned-font);
    font-size: 13px;
    font-weight: 400;
    color: var(--ned-text);
  }
  .ned-menu .jdm-megamenu__sublink:hover {
    color: var(--ned-coral);
    transform: none;
    text-decoration: underline;
  }

  /* --- Tuiles images (Univers / Pièces) --- */
  .ned-menu .ned-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }
  .ned-menu .ned-tile { width: 100%; }
  .ned-menu .ned-tile__link {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    overflow: hidden;
    color: var(--ned-text);
  }
  .ned-menu .ned-tile__img {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--ned-beige-light);
  }
  .ned-menu .ned-tile__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2);
    transition: transform .6s ease;
  }
  .ned-menu .ned-tile__link:hover .ned-tile__img img { transform: scale(1); }
  .ned-menu .ned-tile__title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20%;
    padding: 5px;
    background-color: var(--ned-beige);
    color: var(--ned-text);
    font-size: 17px;
    font-weight: 500;
    text-align: center;
  }
  .ned-menu .ned-tile__img.is-empty + .ned-tile__title { position: static; }
  .ned-menu .ned-tile__link:hover { text-decoration: none; }
  .ned-menu .ned-tile__link:hover .ned-tile__title { background-color: var(--ned-coral); color: #fff; }
}

/* --- Burger mobile --- */
.ned-burger-label {
  display: none;
}
@media (max-width: 1199.98px) {
  .ned-menu .jdm-burger-btn {
    border: none;
    flex-direction: column;
    width: auto;
    height: auto;
    color: var(--ned-coral);
  }
  .ned-menu .jdm-burger-inner,
  .ned-menu .jdm-burger-inner::before,
  .ned-menu .jdm-burger-inner::after {
    background-color: var(--ned-text);
  }
  .ned-burger-label {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: var(--ned-coral);
  }
}

/* =====================================================================
   PIED DE PAGE
   ===================================================================== */
#footer,
.footer,
.footer__main,
.footer__before {
  background: #fff !important;
  color: var(--ned-text);
}
#footer a,
.footer a { color: var(--ned-text); }
#footer a:hover,
.footer a:hover { color: var(--ned-text); text-decoration: underline; }

/* --- Blocs carte cadeau / fidélité --- */
.ned-footer-blocks {
  padding: 40px 0 10px;
  background: #fff;
}
.ned-footer-blocks__row { row-gap: 20px; }
.ned-footer-block__inner {
  height: 100%;
  padding: 20px 20px 25px;
  border: 1px solid var(--ned-taupe);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ned-footer-block__title {
  margin: 0 0 18px;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ned-taupe);
}
.ned-footer-block__title::before {
  content: "";
  display: block;
  height: 37px;
  margin-bottom: 4px;
  background: url(../img/deco-titre.jpg) no-repeat center;
}
.ned-footer-block__img img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, .25);
}
.ned-footer-block__text {
  max-width: 460px;
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ned-text-soft);
}
.ned-footer-block__more {
  display: inline-block;
  margin-top: 14px;
  font-size: 15px;
  color: var(--ned-text) !important;
}

/* --- Réseaux sociaux « Restons connectés » --- */
.ned-footer-before { padding: 30px 0; text-align: center; }
.ned-footer-social-title {
  margin: 0 0 6px;
  font-size: 1.25rem;
  color: var(--ned-taupe);
}
.ned-footer-before .ps-socialfollow li a,
.ned-footer-before #social_block li a {
  width: 54px;
  height: 54px;
  padding: 0 !important;
  border: 1px solid var(--ned-coral);
  border-radius: 50%;
  color: var(--ned-coral) !important;
  background: #fff;
}
.ned-footer-before .ps-socialfollow li a svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}
.ned-footer-before .ps-socialfollow li a:hover {
  background: var(--ned-coral);
  color: #fff !important;
  transform: none;
}
.ned-footer-before .ps-socialfollow ul { gap: 4px !important; }
.ned-footer-before .ps-socialfollow .h4,
.ned-footer-before .ps-socialfollow h4,
.ned-footer-before .ps-socialfollow__title { display: none; }

/* --- Bandeau réassurance --- */
.ned-reassurance {
  border-top: 1px solid var(--ned-beige);
  padding: 20px 0;
  background: #fff;
}
.ned-reassurance__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ned-reassurance__list li { flex: 1 1 18%; min-width: 130px; text-align: center; }
.ned-reassurance__list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
}
.ned-reassurance__list img {
  max-width: 100%;
  height: auto;
  max-height: 70px;
  margin-bottom: 6px;
}
.ned-reassurance__list span {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--ned-text);
}
.ned-reassurance__list small {
  display: block;
  font-size: 10px;
  text-transform: none;
  color: var(--ned-coral);
  font-family: var(--ned-script);
}

/* --- Liens sur fond gris --- */
.ned-footer-links {
  background-color: var(--ned-footer);
  padding: 20px 0 10px;
}
.ned-footer-links__col { text-align: center; margin-bottom: 15px; }
.ned-footer-links__title {
  display: block;
  margin: 0 0 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid #666;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--ned-text);
}
.ned-footer-links ul { margin: 0; padding: 0; list-style: none; }
.ned-footer-links li { margin: 0 0 6px; font-size: 15px; }
.ned-footer-links a { color: var(--ned-text) !important; }
.ned-footer-links a:hover { text-decoration: underline; }

.footer .copyright,
.ned-footer .copyright {
  background: #fff;
  color: var(--ned-text);
  font-size: 15px;
}

/* =====================================================================
   PAGE D'ACCUEIL
   ===================================================================== */

/* --- Slider : flèches rondes blanches --- */
.ps-imageslider .carousel-control-prev,
.ps-imageslider .carousel-control-next {
  width: 44px;
  height: 44px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  opacity: 1;
}
.ps-imageslider .carousel-control-prev-icon,
.ps-imageslider .carousel-control-next-icon {
  filter: invert(45%);
  width: 18px;
  height: 18px;
}

/* --- Nos univers déco --- */
.ned-univers { margin: 30px 0 10px; }
.ned-univers__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ned-univers__item { flex: 0 1 187px; }
.ned-univers__link { position: relative; display: block; overflow: hidden; }
.ned-univers__img { display: block; width: 100%; height: auto; }
.ned-univers__hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .3s ease;
}
.ned-univers__hover img { width: 100%; height: 100%; object-fit: cover; }
.ned-univers__link:hover .ned-univers__hover { opacity: 1; }

/* --- Produits mis en avant « Ça risque de vous plaire ! » --- */
.featured-products { margin: 20px 0; }

/* --- Mosaïque mobile --- */
.ned-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 10px 0;
}
.ned-mosaic__item { position: relative; display: block; }
.ned-mosaic__item img { width: 100%; height: auto; display: block; }
.ned-mosaic__label {
  position: absolute;
  top: 0;
  left: 5px;
  padding: 10px 5px;
  background: var(--ned-coral);
  color: #fff;
  font-size: 12px;
}

/* --- A vos marques --- */
.ned-brands {
  margin: 30px 0 0;
  padding: 20px 0 25px;
  background: rgba(238, 235, 232, .51) url(../img/home/ligne-fond-bloc-marque-hp.png) no-repeat center;
  background-size: 100% auto;
}
.ned-brands__title {
  margin: 0 0 15px;
  text-align: center;
  font-size: 22px;
  font-weight: 500;
  color: var(--ned-taupe);
}
.ned-brands__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px 40px;
}
.ned-brands__item img { max-width: 100%; height: auto; }

/* --- Liste des catégories --- */
.ned-home-cats { padding: 25px 0 35px; }
.ned-home-cats__col { margin-bottom: 10px; }
.ned-home-cats__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 8px;
  background: var(--ned-beige);
  color: var(--ned-text) !important;
  font-size: 18px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none !important;
}
.ned-home-cats__title::after {
  content: "›";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  color: var(--ned-taupe);
  font-size: 20px;
  line-height: 1;
}
.ned-home-cats__title:hover { background: var(--ned-coral); color: #fff !important; }
.ned-home-cats ul {
  /* liens conservés pour le référencement, repliés comme sur l'ancien site */
  display: none;
}

/* =====================================================================
   MINIATURES PRODUITS
   ===================================================================== */
.product-miniature__image { aspect-ratio: 1 / 1 !important; object-fit: contain; }

.product-miniature__title,
.product-miniature__title a {
  font-family: var(--ned-font);
  font-size: 15px;
  font-weight: 400;
  color: var(--ned-text);
  text-align: center;
}
.product-miniature__prices,
.product-miniature__price-row { justify-content: center; text-align: center; }
.product-miniature__price {
  font-size: 16px;
  font-weight: 700;
  color: #232323;
}
.product-miniature__regular-price {
  font-size: 14px;
  font-weight: 700;
  color: #7a7a7a;
}

/* Pastille de réduction carrée en haut à gauche (masquée dans le thème Jardideco) */
.product-miniature .product-miniature__discount-badge {
  display: block !important;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  padding: 5px 7px;
  background: #f39d72;
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  border-radius: 0;
}

/* Les pictos de réassurance contiennent déjà leur libellé : texte gardé pour l'accessibilité seulement */
.ned-reassurance__list a { flex-direction: column !important; }
.ned-reassurance__list span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}
.ned-reassurance__list img { max-height: 95px; margin: 0; }
