/**
 * Naturabox — fiche coffret alignée sur la fiche prestation (prestation-page.css) : fond blanc, en-tête bulle +
 * titre + note, barre d'onglets, galerie + sections séparées par des filets à gauche, carte d'achat collante à
 * droite, sections pleine largeur, barre « Choisir » fixe sur mobile.
 * Gabarit : templates/catalog/product.tpl (.nb-cp). Les règles « !important » répondent à celles de legacy.css
 * (fiche produit v3 de la 1.7).
 */
body#product .wrapper,
#product .main-contant-wrapper {
  background: #fff;
}

#product .nb-cp {
  --nbp-radius: 16px;
  --nbp-line: #e7e9e4;
  --nbp-soft: #f5f6f3;
  padding-bottom: 1rem;
}

#product .nb-cp .pp-hero {
  margin-bottom: 0;
}

/* ---------- En-tête ---------- */
#product .nb-cp .nb-ph {
  margin: .25rem 0 1.25rem;
}

#product .nb-cp .nb-ph__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .6rem;
  margin-bottom: .6rem;
}

#product .nb-cp .nb-ph__type {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .8rem .3rem .45rem;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--nb-green);
  background: #eef5f0;
}

#product .nb-cp .nb-ph__type .material-icons {
  font-size: 20px;
}

#product .nb-cp .nb-cp__flag {
  padding: .25rem .7rem;
  border: 1px solid var(--nbp-line);
  border-radius: 999px;
  font-size: .8125rem;
  color: var(--nb-muted);
}

#product .nb-cp .nb-ph__title {
  margin: 0 0 .5rem;
  font-family: var(--nb-font-title);
  font-size: clamp(1.6rem, 1.1rem + 1.5vw, 2.4rem) !important;
  font-weight: 800 !important;
  line-height: 1.15;
  color: var(--nb-title);
}

#product .nb-cp .nb-cp__lead {
  max-width: 820px;
  margin: 0 0 .75rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--nb-text);
}

#product .nb-cp .nb-ph__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem 1.5rem;
  font-size: .9375rem;
}

#product .nb-cp .nb-ph__meta .pp-rating-wrapper {
  margin: 0;
}

#product .nb-cp .nb-cp__count {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-weight: 600;
  color: var(--nb-green);
  text-decoration: none;
}

#product .nb-cp .nb-cp__count .material-icons {
  font-size: 20px;
}

#product .nb-cp .nb-cp__count:hover span {
  text-decoration: underline;
}

/* ---------- Barre d'onglets (superposée, apparaît une fois l'en-tête dépassé) ---------- */
#product .nb-secnav {
  position: sticky;
  top: var(--nb-hdr-h); /* sous la barre principale de l'en-tête (header.css) */
  z-index: 998;
  height: 0;
  overflow: visible;
}

#product .nb-secnav > .nav-pills {
  position: absolute;
  top: 0;
  right: -2rem;
  left: -2rem;
  flex-wrap: nowrap;
  gap: .25rem;
  padding: 0 2rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--nbp-line);
  background: #fff;
  box-shadow: 0 6px 16px -12px rgba(0, 0, 0, .35);
  scrollbar-width: none;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}

#product .nb-secnav.is-visible > .nav-pills {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .2s ease, transform .2s ease;
}

#product .nb-secnav .nav-item {
  flex: 0 0 auto;
}

#product .nb-secnav .nav-link {
  padding: 1rem .9rem .9rem;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--nb-muted);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}

#product .nb-secnav .nav-item:hover .nav-link {
  color: var(--nb-ink);
}

#product .nb-secnav .activeSection .nav-link {
  border-bottom-color: var(--nb-green);
  color: var(--nb-green);
  font-weight: 600;
}

/* ---------- Colonnes ---------- */
@media (min-width: 992px) {
  #product .nb-cp .nb-cp__layout {
    display: flex;
    align-items: flex-start;
  }

  #product .nb-cp .nb-cp__layout > .col-lg-8 {
    flex: 0 0 66.667%;
    max-width: 66.667%;
  }

  #product .nb-cp .nb-cp__layout > .col-lg-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }

  #product .nb-cp .nb-cp__aside {
    position: sticky;
    top: calc(var(--nb-hdr-h) + 72px); /* en-tête + barre d'onglets */
  }
}

#product .nb-cp .nb-cp__layout > [class*=col-] {
  display: block;
}

/* ---------- Sections ---------- */
#product .nb-cp .nb-cp__section {
  padding: 2rem 0;
  border-top: 1px solid var(--nbp-line);
  scroll-margin-top: calc(var(--nb-hdr-h) + 72px);
}

#product .nb-cp #pp-offre {
  margin-top: 2rem;
}

#product .nb-cp .nb-cp__section--full {
  margin-top: 1rem;
}

#product .nb-cp .nb-cp__title {
  margin: 0 0 1.1rem;
  font-family: var(--nb-font-title);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  color: var(--nb-title);
}

#product .nb-cp .nb-cp__sub {
  margin: -.5rem 0 1.25rem;
  color: var(--nb-muted);
}

/* L'offre : cartes à icône */
#product .nb-cp .nb-cp__offre {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#product .nb-cp .nb-cp__offre li {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1rem;
  border: 1px solid var(--nbp-line);
  border-radius: 14px;
  background: #fff;
}

#product .nb-cp .nb-cp__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--nb-green);
  background: #eef5f0;
}

#product .nb-cp .nb-cp__ic .material-icons {
  font-size: 22px;
}

#product .nb-cp .nb-cp__offre h3,
#product .nb-cp .nb-cp__why h3 {
  margin: 0 0 .2rem;
  font-family: var(--nb-font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--nb-ink);
}

#product .nb-cp .nb-cp__offre p,
#product .nb-cp .nb-cp__why p {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--nb-muted);
}

/* Le concept */
#product .nb-cp .nb-cp__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

#product .nb-cp .nb-cp__tags li {
  padding: .3rem .8rem;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--nb-green);
  background: #eef5f0;
}

#product .nb-cp .nb-cp__text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--nb-text);
}

#product .nb-cp .nb-cp__text p {
  font-size: inherit;
}

#product .nb-cp .nb-cp__text.is-collapsed {
  position: relative;
  max-height: 19rem;
  overflow: hidden;
}

#product .nb-cp .nb-cp__text.is-collapsed::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5rem;
  content: "";
  background: linear-gradient(rgba(255, 255, 255, 0), #fff);
}

#product .nb-cp .nb-readmore__btn {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  margin-top: .5rem;
  padding: 0;
  border: 0;
  font-weight: 600;
  color: var(--nb-green);
  background: none;
  cursor: pointer;
}

#product .nb-cp .nb-readmore__btn::after {
  font-family: 'Material Icons';
  font-size: 20px;
  font-weight: normal;
  line-height: 1;
  content: 'expand_more';
  transition: transform .2s ease;
}

#product .nb-cp .nb-readmore__btn[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* Pourquoi choisir : comme sur le site actuel et la maquette Canva (recette 2026-11-11) — section pleine largeur, titre et
   sous-titre centrés, nom du coffret en vert, trois colonnes de grands pictos sans fond */
#product .nb-cp .nb-cp__whysec .nb-cp__title {
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem);
  text-align: center;
  color: var(--nb-ink);
}

#product .nb-cp .nb-cp__whysec .nb-cp__title span {
  color: var(--nb-title);
}

#product .nb-cp .nb-cp__whysec .nb-cp__sub {
  max-width: 62rem;
  margin: -.25rem auto 2.25rem;
  font-size: 1.0625rem;
  text-align: center;
}

#product .nb-cp .nb-cp__why {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 2.5rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

#product .nb-cp .nb-cp__why li {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

#product .nb-cp .nb-cp__why-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  font-size: 3.4rem;
  line-height: 1;
}

#product .nb-cp .nb-cp__why-ic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#product .nb-cp .nb-cp__whysec h3 {
  margin: .35rem 0 .3rem;
  font-size: 1.15rem;
}

#product .nb-cp .nb-cp__whysec p {
  font-size: .975rem;
}

@media (max-width: 991.98px) {
  #product .nb-cp .nb-cp__why {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  #product .nb-cp .nb-cp__why {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  #product .nb-cp .nb-cp__why-ic {
    flex-basis: 60px;
    width: 60px;
    height: 60px;
    font-size: 2.6rem;
  }
}

/* Exemples / où partir / SEO */
#product .nb-cp .nb-cp__examples {
  margin: 0;
}

#product .nb-cp .nb-cp__seo {
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--nb-muted);
}

#product .nb-cp .nb-cp__seo :is(h2, h3, h4) {
  margin: 1.25rem 0 .5rem;
  font-family: var(--nb-font-title);
  font-size: 1.125rem;
  font-weight: 800;
  text-align: left;
  color: var(--nb-title);
}

#product .nb-cp .nb-cp__seo :is(p, div) {
  text-align: left !important;
}

/* ---------- Carte d'achat ---------- */
#product .nb-cp .pp-info-card.nb-book {
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--nbp-line);
  border-radius: var(--nbp-radius);
  background: #fff;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .35);
}

#product .nb-cp .nb-book__label {
  margin: 0 0 .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--nb-muted);
}

#product .nb-cp .product-prices {
  margin-bottom: 1rem;
}

#product .nb-cp .product-prices .current-price span[itemprop=price] {
  font-family: var(--nb-font-title);
  font-size: 2rem !important;
  font-weight: 800 !important;
  color: var(--nb-green);
}

#product .nb-cp .pp-variant-selector {
  margin-bottom: 1rem;
}

#product .nb-cp .product-add-to-cart .product-quantity .add .add-to-cart {
  border-radius: var(--nb-radius) !important;
  background-color: var(--nb-btn) !important;
  border-color: var(--nb-btn) !important;
}

#product .nb-cp .product-add-to-cart .product-quantity .add .add-to-cart:hover,
#product .nb-cp .product-add-to-cart .product-quantity .add .add-to-cart:focus-visible {
  background-color: var(--nb-btn-hover) !important;
  border-color: var(--nb-btn-hover) !important;
}

#product .nb-cp .nb-book__trust {
  display: grid;
  gap: .45rem;
  margin: 1rem 0 0;
  padding: .9rem 0 0;
  border-top: 1px solid var(--nbp-line);
  list-style: none;
}

#product .nb-cp .nb-book__trust li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--nb-ink);
}

#product .nb-cp .nb-book__trust .material-icons {
  font-size: 18px;
  color: var(--nb-green);
}

/* Comment ça marche : étapes numérotées */
#product .nb-cp .nb-cp__how {
  margin-top: 1rem;
  padding: 1.25rem;
  border-radius: var(--nbp-radius);
  background: var(--nbp-soft);
}

#product .nb-cp .nb-cp__how h3 {
  margin: 0 0 .85rem;
  font-family: var(--nb-font-title);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--nb-title);
}

#product .nb-cp .nb-cp__how ol {
  display: grid;
  gap: .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: nbhow;
}

#product .nb-cp .nb-cp__how li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: 2.4rem;
  font-size: .875rem;
  line-height: 1.4;
  counter-increment: nbhow;
}

#product .nb-cp .nb-cp__how li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: .8125rem;
  font-weight: 700;
  color: #fff;
  content: counter(nbhow);
  background: var(--nb-green);
}

#product .nb-cp .nb-cp__how strong {
  color: var(--nb-ink);
}

#product .nb-cp .nb-cp__how span {
  color: var(--nb-muted);
}

@media (max-width: 575.98px) {
  #product .nb-cp .nb-cp__offre {
    grid-template-columns: 1fr;
  }
}

/* zone de personnalisation (mot doux, e-coffret) : sans cadre tant qu'elle n'affiche rien */
#product .nb-cp .product-customization:not(:has(.pp-customization-summary)) {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

/* bandeau « N séjours » sous la galerie */
#product .nb-cp .nb-pnb {
  border-color: var(--nbp-line);
  border-radius: 14px;
  background: var(--nb-cream-2);
}

/* ---------- Mobile ---------- */
#product .nb-cp .nb-book-bar {
  display: none;
}

/* mobile / tablette : carte d'achat (« Le coffret cadeau ») juste après la galerie, avant « L'offre » — la colonne
   gauche est aplatie (display: contents) pour ordonner galerie, carte et sections dans une même colonne */
@media (max-width: 991.98px) {
  #product .nb-cp .nb-cp__layout {
    display: flex;
    flex-direction: column;
    margin-inline: 0;
  }

  #product .nb-cp .nb-cp__layout > .col-lg-8 {
    display: contents;
  }

  #product .nb-cp .nb-cp__layout > .col-lg-8 > * {
    order: 3;
  }

  #product .nb-cp .nb-cp__layout > .col-lg-8 > #content {
    order: 1;
  }

  #product .nb-cp .nb-cp__layout > .nb-cp__aside {
    order: 2;
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    margin: 1rem 0 1.5rem;
    padding-inline: 0;
  }
}

@media (max-width: 767.98px) {
  #product .nb-cp .nb-book-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--nbp-line);
    background: #fff;
    box-shadow: 0 -6px 20px -12px rgba(0, 0, 0, .35);
  }

  #product .nb-cp .nb-book-bar__txt {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
  }

  #product .nb-cp .nb-book-bar__txt small {
    overflow: hidden;
    font-size: .75rem;
    color: var(--nb-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #product .nb-cp .nb-book-bar__txt strong {
    font-size: 1.125rem;
    color: var(--nb-green);
  }

  #product #footer,
  #product .footer-container {
    padding-bottom: 72px;
  }

  #product .nb-cp .nb-ph__title {
    font-size: 1.6rem !important;
  }
}

/* « Ajouter un mot doux » (e-coffret) : reflet qui passe régulièrement et halo discret pour le rendre visible
   (recette 2026-11-11) ; immobile si l'utilisateur limite les animations */
#product .pp-mot-doux-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 0 0 0 rgba(73, 156, 111, .45);
  animation: nb-mot-doux-halo 2.8s ease-out infinite;
}

#product .pp-mot-doux-btn::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .85) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: nb-mot-doux-reflet 2.8s ease-in-out infinite;
}

@keyframes nb-mot-doux-reflet {
  0%, 55% { transform: translateX(-120%); }
  85%, 100% { transform: translateX(120%); }
}

@keyframes nb-mot-doux-halo {
  0% { box-shadow: 0 0 0 0 rgba(73, 156, 111, .45); }
  60%, 100% { box-shadow: 0 0 0 9px rgba(73, 156, 111, 0); }
}

@media (prefers-reduced-motion: reduce) {
  #product .pp-mot-doux-btn,
  #product .pp-mot-doux-btn::after {
    animation: none;
  }
}
