/**
 * Naturabox — pages CMS (php_self cms) : système de blocs « nb-cms » commun à toutes les pages.
 *
 * Contenu édité en BO (TinyMCE) en HTML simple, sans style en ligne : la mise en forme vient d'ici, pour que toutes
 * les pages aient les mêmes polices, tailles, couleurs, cartes et boutons. Format et blocs :
 * docker/scripts/cms-modernize.php (réécriture du contenu existant) ; balises autorisées à l'enregistrement : module rdcms.
 *
 *   <div class="nb-cms">
 *     <section class="nb-s">  h2 / h3 / p / ul / table…  </section>        (section ; nb-s--soft : fond doux)
 *     <div class="nb-grid nb-grid--2|3|4"><div class="nb-col">…</div></div>   (colonnes égales)
 *     figure.nb-img · div.nb-card (span.nb-card__icon > i.material-icons | figure.nb-card__img, h3, p)
 *     p.nb-actions > a.btn.btn-primary · div.nb-faq > details > summary + div · figure.nb-quote · div.nb-stat
 *     div.nb-video > iframe · div.nb-gallery > figure · ul.nb-social · hr · div.nb-cms-products (coffrets)
 *   Classe text-center sur un bloc : contenu centré.
 */
.nb-cms {
  --nb-read: 820px;   /* largeur de lecture du texte */
  --nb-wide: 1240px;  /* grilles, galeries, vidéos */
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--nb-text);
}

/* ---------- En-tête de page (cms/page.tpl) ---------- */
.nb-cms-hero {
  position: relative;
  margin-bottom: clamp(1rem, .5rem + 1vw, 1.75rem);
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem) clamp(1.25rem, .5rem + 3vw, 3.5rem);
  overflow: hidden;
  border-radius: 28px;
  background:
    url(../img/picto-naturabox-clair.svg) right clamp(1rem, 4vw, 4rem) center / auto 85% no-repeat,
    linear-gradient(120deg, #eef5f0 0%, #f6f4ee 70%);
}

.nb-cms-hero__kicker {
  display: inline-block;
  margin: 0 0 .9rem;
  padding: .3rem .85rem;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--nb-green-dark);
  background: #fff;
}

.nb-cms-hero .nb-cms-hero__title {
  max-width: 900px;
  margin: 0;
  font-family: var(--nb-font-title);
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--nb-title);
}

@media (max-width: 575.98px) {
  .nb-cms-hero {
    border-radius: 20px;
    background-size: auto 90%, auto;
    background-position: right -1.5rem bottom -1rem, 0 0;
  }
}

/* ---------- Sections ---------- */
.nb-cms > .nb-s {
  padding: clamp(2.5rem, 1.75rem + 3vw, 4.5rem) clamp(1.25rem, .5rem + 3vw, 3.5rem);
}

.nb-cms > .nb-s:first-child {
  padding-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

/* une section sur deux sur fond doux arrondi : rythme de lecture (pages du constructeur : fond calculé par section,
   classes nb-s--white / nb-s--soft / nb-s--green / nb-s--none) */
.nb-cms:not(.nb-cms--builder) > .nb-s:nth-of-type(even),
.nb-cms > .nb-s.nb-s--soft {
  border-radius: 28px;
  background: #f6f4ee;
}

.nb-cms:not(.nb-cms--builder) > .nb-s:nth-of-type(even) :where(.nb-card, .nb-stat, .nb-quote, .nb-faq details, .nb-step),
.nb-cms > .nb-s--soft :where(.nb-card, .nb-stat, .nb-quote, .nb-faq details, .nb-step) {
  background: #fff;
}

.nb-cms > .nb-s.nb-s--green {
  border-radius: 28px;
  color: rgba(255, 255, 255, .92);
  background: linear-gradient(120deg, #2f5c43 0%, #3d7556 60%, #499c6f 100%);
}

.nb-cms > .nb-s--green :where(h2, h3, h4, strong, .nb-lead, .nb-kicker),
.nb-cms > .nb-s--green :where(p, li) a:not(.btn) {
  color: #fff;
}

.nb-cms > .nb-s--green .nb-card :where(h3, h4, strong),
.nb-cms > .nb-s--green .nb-faq summary {
  color: var(--nb-title);
}

.nb-cms > .nb-s.nb-s--none {
  padding-inline: 0;
}

/* une seule largeur pour toute la page (retour de l'utilisateur du 2026-11-04 : blocs de largeurs différentes) :
   bandeau de titre, sections blanches ou colorées, formulaires et cartes alignés sur les mêmes bords (--nb-wide) ;
   les sections sans fond n'ont plus de retrait latéral, seuls les encadrés colorés gardent leur marge intérieure */
body.page-cms .nb-cms-hero,
body.page-cms .page-content--cms {
  max-width: 1240px;
  margin-right: auto;
  margin-left: auto;
}

.nb-cms > .nb-s.nb-s--white,
.nb-cms:not(.nb-cms--builder) > .nb-s:nth-of-type(odd):not(.nb-s--soft):not(.nb-s--green) {
  padding-inline: 0;
}

/* blocs liés dans une même section */
.nb-cms .nb-s > .nb-b + .nb-b {
  margin-top: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem);
}

/* texte et images : même largeur que les grilles, comme en prod (la colonne de lecture de 820 px resserrait trop les
   pages : retour de l'utilisateur du 2026-11-04) ; la largeur « Lecture » reste un réglage de bloc du constructeur
   (nb-b--w-read) — directement dans la section, ou dans un bloc du constructeur .nb-b */
.nb-cms :is(.nb-s, .nb-b) > :where(h2, h3, h4, p, ul, ol, table, blockquote, .nb-faq, .nb-actions, figure.nb-img, .nb-quote, .nb-stat, hr, .nb-kicker) {
  max-width: var(--nb-wide);
  margin-right: auto;
  margin-left: auto;
}

.nb-cms :is(.nb-s, .nb-b) > :where(.nb-grid, .nb-gallery, .nb-video, .nb-cms-products, .nb-elfsight, .nb-social, .nb-media-text, .nb-steps, .nb-logos, .nb-marquee, .nb-cta) {
  max-width: var(--nb-wide);
  margin-right: auto;
  margin-left: auto;
}

/* largeur imposée par le réglage du bloc */
.nb-cms .nb-b--w-read > * {
  max-width: var(--nb-read) !important;
}

.nb-cms .nb-b--w-wide > * {
  max-width: var(--nb-wide) !important;
}

.nb-cms .nb-b--w-full > * {
  max-width: none !important;
}

/* ---------- Typographie ---------- */
.nb-cms :where(h2, h3, h4) {
  font-family: var(--nb-font-title);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  color: var(--nb-title);
}

.nb-cms h2 {
  margin: 0 auto 1.1rem;
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -.01em;
}

/* repère de couleur au-dessus des titres de section */
.nb-cms > .nb-s > h2::before,
.nb-cms > .nb-s > .nb-b > h2::before,
.nb-cms > .nb-s > .nb-b > .nb-media-text h2::before {
  display: block;
  width: 44px;
  height: 5px;
  margin-bottom: .9rem;
  border-radius: 5px;
  content: "";
  background: var(--nb-yellow);
}

.nb-cms > .nb-s > h2.text-center::before,
.nb-cms :is(.nb-s, .nb-b):has(> .nb-grid, > .nb-gallery, > .nb-cms-products, > .nb-steps, > .nb-logos, > .nb-marquee, > .nb-social) > h2::before,
.nb-cms .nb-b--center > h2::before {
  margin-inline: auto;
}

/* chapeau : premier paragraphe d'une section, plus grand */
.nb-cms > .nb-s > h2 + p,
.nb-cms > .nb-s > .nb-b > h2 + p,
.nb-cms .nb-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--nb-ink);
}

.nb-cms h3 {
  margin: 1.5rem auto .6rem;
  font-size: clamp(1.15rem, 1.05rem + .4vw, 1.3rem);
}

.nb-cms h4 {
  margin: 1.25rem auto .5rem;
  font-size: 1.05rem;
}

.nb-cms :where(h2, h3, h4):first-child {
  margin-top: 0;
}

.nb-cms p {
  margin: 0 auto 1rem;
}

.nb-cms :where(p, li):last-child {
  margin-bottom: 0;
}

.nb-cms strong {
  font-weight: 700;
  color: var(--nb-ink);
}

.nb-cms :where(p, li, td, th, figcaption, blockquote) a:not(.btn) {
  font-weight: 600;
  color: var(--nb-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.nb-cms :where(p, li, td, th, figcaption, blockquote) a:not(.btn):hover {
  color: var(--nb-green-dark);
}

.nb-cms :where(ul, ol) {
  margin: 0 auto 1rem;
  padding-left: 1.4rem;
}

.nb-cms ul {
  list-style: none;
  padding-left: 0;
}

.nb-cms ul > li {
  position: relative;
  margin-bottom: .45rem;
  padding-left: 1.4rem;
}

.nb-cms ul > li::before {
  position: absolute;
  top: .7em;
  left: .25rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--nb-primary);
}

.nb-cms ol > li {
  margin-bottom: .45rem;
  padding-left: .25rem;
}

.nb-cms ol > li::marker {
  font-weight: 700;
  color: var(--nb-primary);
}

.nb-cms hr {
  width: 100%;
  margin-block: 1.75rem;
  border: 0;
  border-top: 1px solid var(--nb-line);
  opacity: 1;
}

.nb-cms img {
  max-width: 100%;
  height: auto;
}

.nb-cms .text-center {
  text-align: center;
}

.nb-cms ul.text-center > li::before {
  display: none;
}

.nb-cms ul.text-center > li {
  padding-left: 0;
}

/* tableaux */
.nb-cms table {
  width: 100%;
  margin-bottom: 1.25rem;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--nb-line);
  border-radius: 14px;
  font-size: .9375rem;
}

.nb-cms :where(th, td) {
  padding: .65rem .85rem;
  border-bottom: 1px solid var(--nb-line);
  vertical-align: top;
}

.nb-cms tr:last-child > :where(th, td) {
  border-bottom: 0;
}

.nb-cms th,
.nb-cms thead td {
  font-weight: 700;
  color: var(--nb-ink);
  background: #f5f6f3;
}

/* ---------- Grilles ---------- */
.nb-cms .nb-grid {
  display: grid;
  grid-template-columns: repeat(var(--nb-g, 2), minmax(0, 1fr));
  align-items: start;
  gap: clamp(1rem, .5rem + 1.5vw, 2rem);
  margin-bottom: 1.5rem;
}

.nb-cms .nb-grid:last-child {
  margin-bottom: 0;
}

.nb-cms .nb-grid--2 { --nb-g: 2; }
.nb-cms .nb-grid--3 { --nb-g: 3; }
.nb-cms .nb-grid--4 { --nb-g: 4; }

/* grille de cartes ou de chiffres clés : blocs de même hauteur */
.nb-cms .nb-grid:has(> .nb-col > :is(.nb-card, .nb-stat):only-child) {
  align-items: stretch;
}

.nb-cms .nb-col > :is(.nb-card, .nb-stat):only-child {
  height: 100%;
}

.nb-cms .nb-col > .nb-stat:only-child {
  margin-bottom: 0;
}

/* titre de section suivi d'une grille : plus d'air entre le titre et les blocs (retour recette du 2026-11-11) */
.nb-cms :is(.nb-s, .nb-b) > h2 + :is(.nb-grid, .nb-gallery, .nb-steps, .nb-logos, .nb-marquee) {
  margin-top: clamp(1.5rem, 1rem + 1vw, 2.25rem);
}

/* image + texte côte à côte : texte centré verticalement */
.nb-cms .nb-grid:has(> .nb-col > figure.nb-img:only-child) {
  align-items: center;
  gap: clamp(1.5rem, .5rem + 3vw, 4rem);
}

.nb-cms .nb-col > :last-child {
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .nb-cms .nb-grid--4 { --nb-g: 2; }
  .nb-cms .nb-grid--3 { --nb-g: 2; }
}

@media (max-width: 767.98px) {
  .nb-cms .nb-grid--2 { --nb-g: 1; }
}

@media (max-width: 575.98px) {
  .nb-cms .nb-grid--3,
  .nb-cms .nb-grid--4 { --nb-g: 1; }
}

/* ---------- Images ---------- */
.nb-cms figure.nb-img {
  margin: 0 auto 1.25rem;
}

.nb-cms figure.nb-img img {
  display: inline-block;
  border-radius: 24px;
  box-shadow: 0 30px 60px -38px rgba(25, 45, 23, .55);
}

/* visuels détourés (fond transparent : coffrets, pictos ; classe posée par cms-modernize.php) : ni ombre ni arrondi */
.nb-cms figure.nb-img--cutout img {
  border-radius: 0;
  box-shadow: none;
}

.nb-cms figure.nb-img figcaption {
  margin-top: .5rem;
  font-size: .8125rem;
  color: var(--nb-muted);
}

/* ---------- Cartes (encarts icône / image + titre + texte) ---------- */
.nb-cms .nb-card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-bottom: 1.25rem;
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  border: 1px solid rgba(25, 45, 23, .06);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 40px -30px rgba(25, 45, 23, .45);
  transition: transform .25s ease, box-shadow .25s ease;
}

.nb-cms .nb-card:hover {
  box-shadow: 0 26px 50px -30px rgba(25, 45, 23, .5);
  transform: translateY(-4px);
}

.nb-cms .nb-card.text-center {
  align-items: center;
}

.nb-cms .nb-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.nb-cms .nb-card p {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.6;
}

.nb-cms .nb-card .nb-actions {
  margin-top: auto;
  padding-top: .5rem;
}

.nb-cms .nb-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: .35rem;
  border-radius: 18px;
  color: var(--nb-green-dark);
  background: linear-gradient(135deg, #fbe7a8, var(--nb-yellow));
}

.nb-cms .nb-card__icon .material-icons {
  font-size: 28px;
}

.nb-cms .nb-card__img {
  margin: 0 0 .25rem;
  text-align: center;
}

/* picto / logo de carte centré, même dans une carte au texte aligné à gauche (logo 1% for the Planet, recette 2026-11-11) */
.nb-cms .nb-card__img img {
  margin-inline: auto;
}

.nb-cms .nb-card__img img {
  width: auto;
  max-height: 110px;
  object-fit: contain;
}

/* carte en bandeau (classe nb-card--side) : picto sur le côté, texte, bouton à droite, sur fond vert — « Votre activité
   correspond-elle à Naturabox ? » de la page Devenir partenaire (recette 2026-11-11) */
.nb-cms .nb-card.nb-card--side {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .25rem 1.5rem;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem) clamp(1.25rem, 1rem + 2vw, 2.5rem);
  border: 0;
  text-align: left;
  color: rgba(255, 255, 255, .92);
  background: linear-gradient(120deg, var(--nb-green-dark) 0%, #3d7556 55%, #499c6f 100%);
}

.nb-cms .nb-card.nb-card--side > p:first-child {
  grid-row: 1 / span 2;
  margin: 0;
}

.nb-cms .nb-card.nb-card--side .nb-card__icon {
  border-radius: 50%;
  color: var(--nb-green-dark);
  background: #fff;
}

.nb-cms .nb-card.nb-card--side > :is(h3, p:not(:first-child):not(.nb-actions)) {
  grid-column: 2;
  margin: 0;
  max-width: none;
}

.nb-cms .nb-card.nb-card--side h3,
.nb-cms .nb-card.nb-card--side h3 a {
  color: #fff;
}

.nb-cms .nb-card.nb-card--side > .nb-actions {
  grid-column: 3;
  grid-row: 1 / span 2;
  margin: 0;
  padding: 0;
}

.nb-cms .nb-card.nb-card--side .btn-primary {
  --bs-btn-color: var(--nb-green-dark);
  --bs-btn-bg: var(--nb-yellow);
  --bs-btn-border-color: var(--nb-yellow);
  --bs-btn-hover-color: var(--nb-green-dark);
  --bs-btn-hover-bg: #e8b93d;
  --bs-btn-hover-border-color: #e8b93d;
}

@media (max-width: 767.98px) {
  .nb-cms .nb-card.nb-card--side {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .nb-cms .nb-card.nb-card--side > .nb-actions {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-top: .75rem;
  }
}

/* carte qui ne contient qu'une photo : photo sur toute la largeur de la carte (page Partenaires engagés, recette 2026-11-11) */
.nb-cms .nb-card:has(> figure.nb-card__img:only-child) {
  overflow: hidden;
  padding: 0;
}

.nb-cms .nb-card > figure.nb-card__img:only-child {
  margin: 0;
}

.nb-cms .nb-card > figure.nb-card__img:only-child img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: 0;
  object-fit: cover;
}

/* titre de carte cliquable : couleur du titre */
.nb-cms .nb-card h3 a {
  color: inherit;
  text-decoration: none;
}

.nb-cms .nb-card h3 a:hover {
  color: var(--nb-primary);
}

/* logos (partenaires, labels) : hauteur bornée, centrés */
.nb-cms figure.nb-img--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  margin-bottom: .75rem;
}

.nb-cms figure.nb-img--logo img {
  width: auto;
  max-height: 120px;
  border-radius: 0;
  object-fit: contain;
}

/* ---------- Boutons ---------- */
.nb-cms .nb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1.25rem;
}

.nb-cms .nb-actions.text-center,
.nb-cms .text-center > .nb-actions,
.nb-cms .nb-card.text-center .nb-actions {
  justify-content: center;
}

/* réglage « Alignement des boutons » du constructeur (nb-b--btns-*) : prioritaire sur l'alignement propre au bloc */
.nb-cms .nb-b.nb-b--btns-left .nb-actions {
  justify-content: flex-start;
  margin-left: 0;
}

.nb-cms .nb-b.nb-b--btns-center .nb-actions {
  justify-content: center;
}

.nb-cms .nb-b.nb-b--btns-right .nb-actions {
  justify-content: flex-end;
}

.nb-cms .btn {
  padding: .8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
}

/* ---------- Questions (accordéon : même style que la fiche prestation) ---------- */
.nb-cms .nb-faq {
  display: grid;
  gap: .6rem;
  margin-bottom: 1.25rem;
}

.nb-cms .nb-faq details {
  overflow: hidden;
  border: 1px solid #e3e8e2;
  border-radius: 12px;
  background: #fff;
}

.nb-cms .nb-faq summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 3rem .9rem 1.1rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  color: var(--nb-ink);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}

.nb-cms .nb-faq summary::-webkit-details-marker {
  display: none;
}

/* petite flèche (comme sur l'ancien site) à la place du picto « ! », tournée vers le bas une fois ouvert */
.nb-cms .nb-faq summary::before {
  flex: 0 0 auto;
  width: 7px;
  height: 10px;
  content: "";
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transition: transform .2s;
}

.nb-cms .nb-faq details[open] > summary::before {
  transform: rotate(90deg);
}

/* « Voir plus » seul sous un témoignage : pas de flèche, le + suffit */
.nb-cms .nb-grid .nb-faq details:only-child > summary::before {
  display: none;
}

.nb-cms .nb-faq summary::after {
  position: absolute;
  top: 50%;
  right: 1.1rem;
  font-size: 1.3rem;
  font-weight: 400;
  content: "+";
  transform: translateY(-50%);
}

.nb-cms .nb-faq details[open] summary,
.nb-cms .nb-faq summary:hover {
  color: var(--nb-green);
  background: #f6faf7;
}

.nb-cms .nb-faq details[open] summary::after {
  content: "-";
}

.nb-cms .nb-faq details > div {
  padding: 1.1rem 1.5rem 1.4rem;
  font-size: .9375rem;
  line-height: 1.65;
}

.nb-cms .nb-faq details > div > :where(p, ul, ol, table, figure) {
  max-width: none;
}

/* ---------- Témoignages ---------- */
.nb-cms .nb-quote {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  margin: 0 0 1.25rem;
  padding: 1.5rem;
  border-radius: 18px;
  background: #f5f6f3;
}

.nb-cms .nb-quote blockquote {
  position: relative;
  margin: 0;
  padding-left: 1.75rem;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--nb-ink);
}

.nb-cms .nb-quote blockquote::before {
  position: absolute;
  top: -.35rem;
  left: 0;
  font-family: Georgia, serif;
  font-size: 2.4rem;
  line-height: 1;
  content: "“";
  color: var(--nb-primary);
}

.nb-cms .nb-quote figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem .75rem;
  margin-top: auto;
  font-size: .875rem;
}

.nb-cms .nb-quote figcaption img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.nb-cms .nb-quote figcaption span {
  flex-basis: 100%;
  color: var(--nb-muted);
}

.nb-cms .nb-quote figcaption img + strong + span {
  flex-basis: auto;
}

/* ---------- Chiffres clés ---------- */
.nb-cms .nb-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  border-radius: 22px;
  text-align: center;
  background: #f6f4ee;
}

.nb-cms .nb-stat strong {
  font-family: var(--nb-font-title);
  font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--nb-primary);
}

.nb-cms .nb-stat span {
  font-weight: 600;
  color: var(--nb-muted);
}

/* ---------- Vidéos ---------- */
.nb-cms .nb-video {
  position: relative;
  margin-bottom: 1.25rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #f5f6f3;
}

.nb-cms .nb-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Galeries (images, logos) ---------- */
.nb-cms .nb-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 220px));
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.nb-cms .nb-gallery figure {
  margin: 0;
  text-align: center;
}

.nb-cms .nb-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: cover;
}

.nb-cms .nb-gallery img[src$=".svg"],
.nb-cms .nb-gallery img[src$=".png"] {
  padding: .75rem;
  border: 1px solid var(--nb-line);
  object-fit: contain;
  background: #fff;
}

.nb-cms .nb-gallery figcaption {
  margin-top: .4rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--nb-muted);
}

/* ---------- Réseaux sociaux ---------- */
.nb-cms .nb-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
  padding: 0;
}

.nb-cms .nb-social > li {
  margin: 0;
  padding: 0;
}

.nb-cms .nb-social > li::before {
  display: none;
}

.nb-cms .nb-social a {
  display: inline-flex;
  align-items: center;
  padding: .45rem 1rem;
  border: 1px solid var(--nb-line);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 700;
  color: var(--nb-green-dark);
  text-decoration: none;
  background: #fff;
}

.nb-cms .nb-social a:hover {
  border-color: var(--nb-primary);
  background: #eef5f0;
}

/* ---------- Divers ---------- */
.nb-cms .nb-anchor {
  scroll-margin-top: calc(var(--nb-hdr-h) + 24px);
}

.nb-cms .nb-elfsight {
  min-height: 120px;
  margin-bottom: 1.25rem;
}

/* ---------- Mobile ---------- */
@media (max-width: 575.98px) {
  .nb-cms .nb-s {
    padding-block: 1.5rem;
  }

  .nb-cms .nb-card,
  .nb-cms .nb-quote {
    padding: 1.25rem;
  }

  .nb-cms .nb-faq details > div {
    padding: 1rem 1.1rem 1.2rem;
  }
}

/* ---------- Coffrets des pages CMS (marqueur nb-cms-products → cms/_partials/products.tpl, cartes product-nb) ---------- */
.nb-cms-products {
  --nb-cols: 4;
  display: grid;
  grid-template-columns: repeat(var(--nb-cols), minmax(0, 1fr));
  gap: 1.25rem;
}
.nb-cms-products--carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: .5rem;
}
.nb-cms-products--carousel .nb-rcard {
  flex: 0 0 calc((100% - (var(--nb-cols) - 1) * 1.25rem) / var(--nb-cols));
  scroll-snap-align: start;
}
@media (max-width: 991.98px) {
  .nb-cms-products { --nb-cols: 3 !important; }
}
@media (max-width: 767.98px) {
  .nb-cms-products { --nb-cols: 2 !important; }
  .nb-cms-products--carousel { --nb-cols: 1.3 !important; }
}
/* ---------- Pages professionnelles (13, 48, 49) et partenaire (43) ---------- */
.nb-b2b-tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; margin-bottom: 1rem; }

/* Gabarits codés (pages 7, 13, 48, 49) : images bornées à leur conteneur (règle globale d'Alysum, absente de
   Hummingbird) et bouton secondaire jaune comme en production (texte foncé, comme .btn-warning du thème, pour le contraste) */
:where(.page-cms) img { max-width: 100%; height: auto; }
.page-cms-7 .btn-secondary,
.page-cms-13 .btn-secondary,
.page-cms-48 .btn-secondary,
.page-cms-49 .btn-secondary {
  --bs-btn-color: var(--nb-ink);
  --bs-btn-bg: var(--nb-yellow);
  --bs-btn-border-color: var(--nb-yellow);
  --bs-btn-hover-color: var(--nb-ink);
  --bs-btn-hover-bg: #e8b93d;
  --bs-btn-hover-border-color: #e8b93d;
  --bs-btn-active-color: var(--nb-ink);
  --bs-btn-active-bg: #e8b93d;
  --bs-btn-active-border-color: #e8b93d;
}


/* section de cartes, galerie, chiffres ou coffrets : titre et chapeau centrés, alignés sur la grille */
.nb-cms :is(.nb-s, .nb-b):has(> .nb-grid, > .nb-gallery, > .nb-cms-products, > .nb-steps, > .nb-logos, > .nb-marquee, > .nb-social) > :where(h2, h3:first-child, .nb-kicker, .nb-lead) {
  text-align: center;
}

.nb-cms :is(.nb-s, .nb-b):has(> .nb-grid, > .nb-gallery, > .nb-cms-products) > h2 + p {
  text-align: center;
}

/* bloc « Texte » ou « Boutons » centré */
.nb-cms .nb-b--center > :where(h2, h3, h4, p, ul, ol, blockquote, .nb-kicker) {
  text-align: center;
}

.nb-cms .nb-b--center > .nb-actions {
  justify-content: center;
}

/* =============================================================================
   Pages codées dans le thème (7 réservation, 43 formulaire partenaire) : titres et champs alignés sur le système nb-cms
   ============================================================================= */
.page-cms-7 :where(h1, h2, h3) {
  font-family: var(--nb-font-title);
  font-weight: 800;
  color: var(--nb-title);
}

/* =============================================================================
   Pages Entreprises & CSE (13 Pros & CSE, 49 Entreprise, 48 CSE) : gabarits codés cms/_nb/cms-*.tpl, même DA que
   les pages nb-cms (titres Mulish verts, cartes, boutons, bandeaux arrondis)
   ============================================================================= */
.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) {
  --b2b-gap: clamp(2.5rem, 2rem + 2vw, 4rem);
  color: var(--nb-text);
}

/* onglets Pros & CSE / Entreprise / CSE : sélecteur en pilule */
.nb-b2b-tabs {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.25rem;
}

.nb-b2b-tabs {
  gap: .25rem;
  width: max-content;
  margin-left: auto;
  padding: .3rem;
  border-radius: 999px;
  background: #f5f6f3;
}

.nb-b2b-tabs .btn {
  padding: .45rem 1.1rem;
  border: 0;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 700;
  color: var(--nb-muted);
  background: transparent;
  box-shadow: none;
}

.nb-b2b-tabs .btn:hover {
  color: var(--nb-green-dark);
  background: rgba(255, 255, 255, .6);
}

.nb-b2b-tabs .btn[aria-current="page"] {
  color: #fff;
  background: var(--nb-primary);
}

@media (max-width: 575.98px) {
  .nb-b2b-tabs {
    width: 100%;
  }

  .nb-b2b-tabs .btn {
    flex: 1;
    padding-inline: .5rem;
  }
}

/* sections */
.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .section {
  margin: 0;
  padding: 0 0 var(--b2b-gap);
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .section:empty {
  display: none;
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) :where(h1, h2, h3) {
  font-family: var(--nb-font-title);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: var(--nb-title);
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .section h2 {
  margin: 0 0 .5rem;
  font-size: clamp(1.45rem, 1.15rem + 1vw, 1.9rem);
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .section h2 + p,
.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .muted {
  color: var(--nb-muted);
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) p {
  line-height: 1.65;
}

/* bandeau d'ouverture : carte arrondie vert foncé, photo à droite */
.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .hero {
  margin-bottom: var(--b2b-gap);
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(120deg, #2f5c43 0%, #3d7556 60%, #499c6f 100%);
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .hero .kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: .3rem .85rem;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--nb-green-dark);
  background: var(--nb-yellow);
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem);
  line-height: 1.12;
  color: #fff;
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .hero :where(p, li) {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, .92);
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .hero strong {
  color: #fff;
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .hero ul {
  margin: .75rem 0 0;
  padding: 0;
  list-style: none;
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .55);
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .hero .btn {
  margin-top: .5rem;
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .hero .btn-primary {
  --bs-btn-bg: #fff;
  --bs-btn-color: var(--nb-green-dark);
  --bs-btn-border-color: #fff;
  --bs-btn-hover-bg: #eef5f0;
  --bs-btn-hover-color: var(--nb-green-dark);
  --bs-btn-hover-border-color: #eef5f0;
}

@media (max-width: 991.98px) {
  .page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* grilles : nombre de colonnes par variable (--b2b-cols), mêmes sélecteurs partout pour que les seuils mobiles
   l'emportent toujours */
.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) :is(.grid-2, .grid-3, .grid-4, .split) {
  display: grid;
  grid-template-columns: repeat(var(--b2b-cols, 2), minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem !important;
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) :is(.grid-2, .split) { --b2b-cols: 2; }
.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .grid-3,
.page-cms.page-cms-49 .split { --b2b-cols: 3; }
.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .grid-4 { --b2b-cols: 4; }

@media (max-width: 991.98px) {
  .page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) :is(.grid-3, .grid-4),
  .page-cms.page-cms-49 .split { --b2b-cols: 2; }
}

@media (max-width: 767.98px) {
  .page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) :is(.grid-2, .grid-3, .split),
  .page-cms.page-cms-49 .split { --b2b-cols: 1; }
}

/* cartes */
.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) :where(.card, .stat, .aud) {
  padding: 1.5rem;
  border: 1px solid var(--nb-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px -26px rgba(25, 45, 23, .45);
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .card h3 {
  margin: 0 0 .4rem;
  font-size: 1.1rem;
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .card p {
  margin: 0;
  font-size: .9375rem;
}

/* chiffres clés */
.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .stat {
  text-align: center;
  background: #f5f6f3;
  box-shadow: none;
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .stat .num {
  font-family: var(--nb-font-title);
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--nb-primary);
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .stat .txt {
  margin-top: .4rem;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--nb-muted);
}

/* offres (photo + texte + actions) */
.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .aud {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .aud > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .aud > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .5rem;
  padding: 1.25rem 1.5rem 1.5rem !important;
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .aud h3 {
  margin: 0;
  font-size: 1.2rem;
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .aud p {
  margin: 0;
  font-size: .9375rem;
  color: var(--nb-text);
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .aud :where(.cta, .text-center) {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: .5rem;
  margin: auto 0 0 !important;
  padding-top: .75rem;
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .aud .text-underline {
  font-weight: 700;
  color: var(--nb-primary);
  text-underline-offset: 3px;
}

/* avantage fiscal : encart doux */
.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .notice {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  border: 0;
  border-left: 4px solid var(--nb-primary);
  background: #eef5f0;
  box-shadow: none;
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .notice small {
  display: block;
  margin-top: .4rem;
  font-size: .8125rem;
}

/* témoignages */
.page-cms-13 .testi .quote {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: 24px;
  background: #f5f6f3;
}

.page-cms-13 .testi .quote p {
  position: relative;
  margin: 1.25rem 0 0;
  padding-left: 1.75rem;
  font-style: italic;
  color: var(--nb-ink);
}

.page-cms-13 .testi .quote p::before {
  position: absolute;
  top: -.4rem;
  left: 0;
  font-family: Georgia, serif;
  font-size: 2.4rem;
  font-style: normal;
  line-height: 1;
  content: "“";
  color: var(--nb-primary);
}

.page-cms-13 .testi .quote p strong {
  display: block;
  margin-top: .35rem;
  font-size: .875rem;
  font-style: normal;
  color: var(--nb-muted);
}

.page-cms:is(.page-cms-48, .page-cms-49) .grid-2 .card em {
  display: block;
  font-style: italic;
  color: var(--nb-ink);
}

/* logos clients (carrousel) */
.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .logo-slide img {
  max-height: 64px;
  object-fit: contain;
}

/* bandeau d'appel final */
.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(120deg, #2f5c43 0%, #499c6f 100%);
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .band h2 {
  color: #fff;
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .band h2 + p,
.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .band p {
  color: rgba(255, 255, 255, .9);
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .band-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

/* livre blanc */
.page-cms:is(.page-cms-48, .page-cms-49) #livre-blanc .wrap {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px dashed #c9d8cd;
  border-radius: 24px;
  background: #fbfaf7;
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .aud .cta .btn {
  width: auto;
  flex: 1 1 auto;
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .swiper-slide.logo-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  height: 90px;
  padding: .75rem;
}

.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .logo-slide img {
  width: 100%;
  max-height: 70px;
}

/* défilement continu des logos : vitesse constante (pas d'accélération) */
.page-cms:is(.page-cms-13, .page-cms-48, .page-cms-49) .swiper .swiper-wrapper {
  transition-timing-function: linear;
}

/* =============================================================================
   Constructeur de pages (module rdcms) : blocs propres au constructeur
   (en-tête, image + texte, étapes, logos, bandeau d'appel…). Les autres blocs reprennent les composants ci-dessus.
   ============================================================================= */
.nb-cms .nb-kicker {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-bottom: .75rem;
  padding: .28rem .8rem;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--nb-green-dark);
  background: #eef5f0;
}

.nb-cms .nb-media-text__body .nb-kicker {
  margin-left: 0;
}

.nb-cms .nb-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem 0;
  font-weight: 700;
  color: var(--nb-primary);
  text-decoration: none;
}

.nb-cms .nb-link-arrow::after {
  content: "→";
  transition: transform .2s ease;
}

.nb-cms .nb-link-arrow:hover::after {
  transform: translateX(4px);
}

/* ---------- En-tête de page (bloc) : même base que l'en-tête standard .nb-cms-hero */
.nb-cms .nb-b--hero {
  margin-bottom: clamp(1rem, .5rem + 1vw, 1.75rem);
}

.nb-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem) clamp(1.25rem, .5rem + 3vw, 3.5rem);
  overflow: hidden;
  border-radius: 28px;
  background:
    url(../img/picto-naturabox-clair.svg) right clamp(1rem, 4vw, 4rem) center / auto 85% no-repeat,
    linear-gradient(120deg, #eef5f0 0%, #f6f4ee 70%);
}

.nb-hero--media {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  background: linear-gradient(120deg, #eef5f0 0%, #f6f4ee 70%);
}

.nb-hero__kicker {
  display: inline-block;
  margin: 0 0 .9rem;
  padding: .3rem .85rem;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--nb-green-dark);
  background: #fff;
}

.nb-hero .nb-hero__title {
  max-width: 900px;
  margin: 0;
  font-family: var(--nb-font-title);
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--nb-title);
}

.nb-hero__intro {
  max-width: 680px;
  margin: 1rem 0 0;
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  line-height: 1.6;
  color: var(--nb-ink);
}

.nb-hero .nb-actions {
  margin: 1.5rem 0 0;
}

.nb-hero__media {
  margin: 0;
}

.nb-hero__media img {
  display: block;
  width: 100%;
  max-height: 420px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 30px 60px -38px rgba(25, 45, 23, .6);
}

.nb-hero__media--cutout img {
  border-radius: 0;
  object-fit: contain;
  box-shadow: none;
}

.nb-hero--green {
  color: rgba(255, 255, 255, .92);
  background: linear-gradient(120deg, #2f5c43 0%, #3d7556 60%, #499c6f 100%);
}

.nb-hero--green .nb-hero__title,
.nb-hero--green .nb-hero__intro {
  color: #fff;
}

.nb-hero--green .nb-hero__kicker {
  background: var(--nb-yellow);
}

.nb-hero--photo {
  min-height: clamp(320px, 40vw, 480px);
  align-content: end;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(20, 35, 25, .05) 0%, rgba(20, 35, 25, .72) 100%),
    var(--nb-hero-img) center / cover no-repeat;
}

.nb-hero--photo .nb-hero__title,
.nb-hero--photo .nb-hero__intro {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .3);
}

@media (max-width: 991.98px) {
  .nb-hero--media {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 575.98px) {
  .nb-hero {
    border-radius: 20px;
  }

  .nb-hero:not(.nb-hero--media, .nb-hero--photo, .nb-hero--green) {
    background-size: auto 90%, auto;
    background-position: right -1.5rem bottom -1rem, 0 0;
  }
}

/* ---------- Image + texte */
.nb-media-text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(1.5rem, .5rem + 3vw, 4rem);
}

.nb-media-text--right .nb-media-text__media {
  order: 2;
}

.nb-media-text__media :where(figure.nb-img, .nb-video) {
  max-width: none;
  margin: 0;
}

.nb-media-text__media figure.nb-img img {
  width: 100%;
}

.nb-media-text__body > :last-child {
  margin-bottom: 0;
}

.nb-media-text__body :where(h2, p, ul, ol, .nb-actions) {
  max-width: none;
  margin-left: 0;
}

@media (max-width: 767.98px) {
  .nb-media-text {
    grid-template-columns: minmax(0, 1fr);
  }

  .nb-media-text--right .nb-media-text__media {
    order: 0;
  }
}

/* ---------- Étapes */
.nb-cms .nb-steps {
  --nb-g: 3;
  display: grid;
  grid-template-columns: repeat(var(--nb-g), minmax(0, 1fr));
  gap: clamp(1rem, .5rem + 1.5vw, 2rem);
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.nb-cms .nb-steps--2 { --nb-g: 2; }
.nb-cms .nb-steps--4 { --nb-g: 4; }
.nb-cms .nb-steps--1 { --nb-g: 1; }

.nb-cms .nb-steps > li.nb-step {
  position: relative;
  margin: 0;
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  border-radius: 22px;
  background: #f6f4ee;
}

.nb-cms .nb-steps > li.nb-step::before {
  display: none;
}

.nb-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: .9rem;
  border-radius: 50%;
  font-family: var(--nb-font-title);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--nb-green-dark);
  background: var(--nb-yellow);
}

.nb-cms .nb-step h3 {
  margin: 0 0 .5rem;
}

.nb-cms .nb-step p:last-child {
  margin-bottom: 0;
}

/* trait entre les étapes (grand écran) */
@media (min-width: 992px) {
  .nb-cms .nb-steps > li.nb-step:not(:last-child)::after {
    position: absolute;
    top: calc(clamp(1.25rem, 1rem + 1vw, 2rem) + 22px);
    right: calc(-1 * clamp(1rem, .5rem + 1.5vw, 2rem));
    width: clamp(1rem, .5rem + 1.5vw, 2rem);
    height: 2px;
    content: "";
    background: #d9c58a;
  }
}

@media (max-width: 991.98px) {
  .nb-cms .nb-steps--4 { --nb-g: 2; }
}

@media (max-width: 767.98px) {
  .nb-cms .nb-steps { --nb-g: 1 !important; }
}

/* ---------- Colonnes de texte, témoignages en grille */
.nb-cms .nb-grid--columns .nb-col > figure.nb-img {
  margin-bottom: 1rem;
}

.nb-cms .nb-grid--quotes .nb-quote {
  height: 100%;
  margin: 0;
}

/* ---------- Logos */
.nb-cms ul.nb-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2.5rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}

.nb-cms ul.nb-logos > li {
  margin: 0;
  padding: 0;
}

.nb-cms ul.nb-logos > li::before {
  display: none;
}

.nb-cms .nb-logos img {
  display: block;
  width: auto;
  max-width: 170px;
  height: auto;
  max-height: 72px;
  border-radius: 0;
  object-fit: contain;
  box-shadow: none;
  filter: grayscale(.15);
  transition: filter .2s, transform .2s;
}

.nb-cms .nb-logos a:hover img {
  filter: none;
  transform: scale(1.04);
}

/* défilement continu (deux copies de la liste qui se suivent) */
.nb-cms .nb-marquee {
  display: flex;
  margin-top: 1.25rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.nb-cms .nb-marquee ul.nb-logos.nb-marquee__track {
  flex: none;
  flex-wrap: nowrap;
  gap: 3rem;
  margin: 0;
  padding-right: 3rem;
  animation: nb-marquee calc(var(--nb-marquee-n, 8) * 3.5s) linear infinite;
}

.nb-cms .nb-marquee:hover .nb-marquee__track {
  animation-play-state: paused;
}

@keyframes nb-marquee {
  to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .nb-cms .nb-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .nb-cms .nb-marquee ul.nb-logos.nb-marquee__track {
    flex-wrap: wrap;
    justify-content: center;
    animation: none;
  }

  .nb-cms .nb-marquee__track[aria-hidden="true"] {
    display: none;
  }
}

/* ---------- Bandeau d'appel */
.nb-cms .nb-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
  padding: clamp(1.75rem, 1rem + 2.5vw, 3rem);
  border-radius: 28px;
  color: rgba(255, 255, 255, .92);
  background: linear-gradient(120deg, #2f5c43 0%, #3d7556 60%, #499c6f 100%);
}

.nb-cms .nb-cta__text {
  flex: 1 1 420px;
}

.nb-cms .nb-cta h2 {
  max-width: none;
  margin: 0 0 .5rem;
  font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem);
  color: #fff;
}

.nb-cms .nb-cta h2::before {
  display: none !important;
}

.nb-cms .nb-cta p {
  max-width: 780px; /* « … pour les cadeaux aux salariés », « recevez nos offres dédiées » sur une ligne (recette 2026-11-11) */
  margin: 0;
  color: rgba(255, 255, 255, .9);
}

.nb-cms .nb-cta .nb-actions {
  max-width: none;
  margin: 0;
}

.nb-cms .nb-cta .btn-outline-primary {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255, 255, 255, .7);
  --bs-btn-hover-color: var(--nb-green-dark);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: #fff;
}

.nb-cms .nb-cta--yellow {
  color: var(--nb-ink);
  background: linear-gradient(120deg, #fbe7a8 0%, #f7d56b 100%);
}

.nb-cms .nb-cta--soft {
  color: var(--nb-ink);
  background: #f6f4ee;
}

.nb-cms :is(.nb-cta--yellow, .nb-cta--soft) h2 {
  color: var(--nb-title);
}

.nb-cms :is(.nb-cta--yellow, .nb-cta--soft) p {
  color: var(--nb-ink);
}

.nb-cms :is(.nb-cta--yellow, .nb-cta--soft) .btn-outline-primary {
  --bs-btn-color: var(--nb-green-dark);
  --bs-btn-border-color: var(--nb-green-dark);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--nb-green-dark);
}

/* bandeau d'appel sur fond vert de section : pas de double fond */
.nb-cms .nb-s--green .nb-cta--green {
  padding: 0;
  background: none;
}

/* ---------- Cartes : images détourées */
.nb-cms .nb-card__img--cutout img {
  border-radius: 0;
  object-fit: contain;
}

/* étapes sur fond crème ou vert : cartes blanches */
.nb-cms > .nb-s:is(.nb-s--soft, .nb-s--green) .nb-steps > li.nb-step {
  background: #fff;
}

/* en-tête (bloc) : textes alignés à gauche malgré la marge automatique des paragraphes .nb-cms */
.nb-cms .nb-hero :where(.nb-hero__kicker, .nb-hero__intro, .nb-actions) {
  max-width: 680px;
  margin-right: 0;
  margin-left: 0;
}

.nb-cms .nb-hero .nb-hero__intro {
  margin-top: 1rem;
  margin-bottom: 0;
}

/* logos : hauteur fixe (les SVG n'ont pas de taille propre) ; bande de défilement au moins aussi large que l'écran */
.nb-cms .nb-logos img {
  width: auto;
  height: 60px;
  max-height: none;
}

.nb-cms .nb-marquee ul.nb-logos.nb-marquee__track {
  justify-content: space-around;
  min-width: 100%;
}

/* logos sur fond crème : le blanc des images (JPG/PNG sur fond blanc) se fond dans le fond, plus de carrés blancs
   (page Entreprise, recette 2026-11-11) */
.nb-cms > .nb-s--soft .nb-logos img {
  mix-blend-mode: multiply;
}

/* bouton « Jaune » (btn-secondary) des pages CMS */
.nb-cms .btn-secondary {
  --bs-btn-color: var(--nb-green-dark);
  --bs-btn-bg: var(--nb-yellow);
  --bs-btn-border-color: var(--nb-yellow);
  --bs-btn-hover-color: var(--nb-green-dark);
  --bs-btn-hover-bg: #e8b93d;
  --bs-btn-hover-border-color: #e8b93d;
  --bs-btn-active-color: var(--nb-green-dark);
  --bs-btn-active-bg: #e8b93d;
  --bs-btn-active-border-color: #e8b93d;
}

/* ---------- Onglets de pages (bloc) : sélecteur en pilule .nb-b2b-tabs */
.nb-cms .nb-b--tabs {
  margin-bottom: 1.25rem;
}

.nb-cms .nb-b--tabs .nb-b2b-tabs {
  margin-bottom: 0;
}

.nb-cms .nb-tabs--center {
  margin-inline: auto;
}

.nb-cms .nb-tabs--left {
  margin-left: 0;
  margin-right: auto;
}

/* ---------- En-tête : texte complémentaire (paragraphes, liste) */
.nb-cms .nb-hero__text-more {
  max-width: 680px;
  margin-top: .75rem;
  color: var(--nb-ink);
}

.nb-cms .nb-hero__text-more :where(p, ul, ol) {
  max-width: none;
  margin: 0 0 .6rem;
}

.nb-cms .nb-hero__text-more ul > li::before {
  display: none;
}

.nb-cms .nb-hero__text-more ul > li {
  padding-left: 0;
}

.nb-cms .nb-hero--green .nb-hero__text-more,
.nb-cms .nb-hero--green .nb-hero__text-more strong {
  color: #fff;
}

/* ---------- Cartes « photo en couverture » (offres) */
.nb-cms .nb-card--cover {
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.nb-cms .nb-card__cover {
  margin: 0;
}

.nb-cms .nb-card__cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 0;
  object-fit: cover;
  box-shadow: none;
}

.nb-cms .nb-card--cover .nb-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .5rem;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}

.nb-cms .nb-card--cover .nb-card__body > .nb-actions:last-child {
  margin-top: auto;
  padding-top: .5rem;
}

.nb-cms .nb-card__body > :last-child {
  margin-bottom: 0;
}

/* ---------- Bandeau d'appel : mention et style « encadré (information) » */
.nb-cms .nb-cta p.nb-cta__note {
  margin-top: .6rem;
  font-size: .8125rem;
  opacity: .85;
}

.nb-cms .nb-cta .nb-cta__text > p + p {
  margin-top: .4rem;
}

.nb-cms .nb-cta--notice {
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem) clamp(1.25rem, 1rem + 2vw, 2.5rem);
  border-left: 5px solid var(--nb-primary);
  border-radius: 20px;
  color: var(--nb-ink);
  background: #eef5f0;
}

.nb-cms .nb-cta--notice h2 {
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem);
  color: var(--nb-title);
}

.nb-cms .nb-cta--notice :where(p, strong) {
  color: var(--nb-ink);
}

.nb-cms .nb-cta--notice .btn-outline-primary {
  --bs-btn-color: var(--nb-green-dark);
  --bs-btn-border-color: var(--nb-green-dark);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--nb-green-dark);
}

/* en-tête et bandeau verts : bouton principal blanc (le vert se confondrait avec le fond) */
.nb-cms :is(.nb-hero--green, .nb-hero--photo, .nb-cta--green) .btn-primary {
  --bs-btn-color: var(--nb-green-dark);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-color: var(--nb-green-dark);
  --bs-btn-hover-bg: #eef5f0;
  --bs-btn-hover-border-color: #eef5f0;
  --bs-btn-active-color: var(--nb-green-dark);
  --bs-btn-active-bg: #eef5f0;
}

/* chiffres clés sur 4 colonnes : taille réduite (« 0 plastique » sur une ligne) */
.nb-cms .nb-grid--4 .nb-stat strong {
  font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.5rem);
}

/* une valeur longue (« Depuis 2010 », « 0 plastique ») : toute la rangée un peu plus petite, sur une ligne, cartes de même
   hauteur (recette 2026-11-11) */
.nb-cms .nb-grid--4:has(.nb-stat--long) .nb-stat strong {
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem);
  white-space: nowrap;
}

/* encadré d'information : texte sombre (la règle du bandeau vert, plus spécifique, l'emporterait) */
.nb-cms .nb-cta.nb-cta--notice p,
.nb-cms .nb-cta.nb-cta--notice strong {
  color: var(--nb-ink);
}

/* cartes, témoignages, chiffres et questions sur fond crème : fond blanc (plus spécifique que leur fond par défaut) */
.nb-cms > .nb-s.nb-s--soft :is(.nb-card, .nb-stat, .nb-quote, .nb-faq details) {
  background: #fff;
}

/* =============================================================================
   Page 43 « Devenir partenaire » : formulaire de demande (page-43.tpl), mêmes champs que les formulaires pro (.nb-form)
   ============================================================================= */
.nb-partner-request {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  max-width: 1240px;
  margin: clamp(1.5rem, 1rem + 2vw, 3rem) auto clamp(2.5rem, 2rem + 2vw, 4rem);
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 70px -40px rgba(20, 35, 25, .45);
  scroll-margin-top: calc(var(--nb-hdr-h, 72px) + 1rem);
}

/* même visuel que la connexion à l'espace partenaire (.nb-auth__aside d'auth.css) : photo, voile vert, texte en bas */
.nb-partner-request__intro {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  position: relative;
  color: rgba(255, 255, 255, .92);
  background-color: var(--nb-green-dark);
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.nb-partner-request__intro::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(160deg, rgba(47, 92, 67, .55) 0%, rgba(25, 45, 23, .88) 70%);
}

.nb-partner-request__intro > * {
  position: relative;
  z-index: 1;
}

.nb-partner-request__kicker {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: .35rem;
  margin-bottom: 1rem;
  padding: .3rem .8rem;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--nb-ink);
  background: var(--nb-yellow);
}

.nb-partner-request__kicker .material-icons {
  font-size: 17px;
}

.nb-partner-request .nb-partner-request__title {
  margin: 0 0 1.5rem;
  font-family: var(--nb-font-title);
  font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.nb-partner-request__perks {
  display: grid;
  gap: .85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nb-partner-request__perks li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.nb-partner-request__perks .material-icons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 20px;
  color: var(--nb-yellow);
  background: rgba(255, 255, 255, .14);
}

.nb-partner-request__card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
}

@media (max-width: 991.98px) {
  .nb-partner-request {
    grid-template-columns: minmax(0, 1fr);
  }

  .nb-partner-request__perks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .nb-partner-request {
    border-radius: 20px;
  }

  .nb-partner-request__perks {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* =============================================================================
   Page 7 « Réservez votre séjour / activité » (cms/_nb/cms-7.tpl)
   ============================================================================= */
.nb-cms7 {
  padding-top: 1rem;
}

.nb-cms7 .nb-cms7-hero {
  margin-bottom: clamp(1rem, .5rem + 1vw, 1.75rem);
}

.nb-cms7-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.nb-cms .nb-cms7-pills > li {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
  padding: 0;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--nb-green-dark);
}

.nb-cms .nb-cms7-pills > li::before {
  display: none;
}

.nb-cms7-pills .material-icons {
  font-size: 20px;
  color: var(--nb-primary);
}

.nb-cms7-hero__media {
  position: relative;
}

.nb-cms7-hero__media img {
  aspect-ratio: 4 / 3;
}

.nb-cms7-hero__chip {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--nb-ink);
  background: rgba(255, 255, 255, .94);
  text-decoration: none;
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .35);
}

.nb-cms7-hero__chip:hover {
  color: var(--nb-primary);
}

/* cartes « Je commande » / « J'ai déjà » */
.nb-cms7 .nb-cms7-card {
  height: 100%;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  text-align: left;
}

.nb-cms7-tag {
  align-self: flex-start;
  padding: .3rem .85rem;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 700;
}

.nb-cms7-tag--yellow {
  color: #7a5a00;
  background: #fff3cf;
}

.nb-cms7-tag--green {
  color: var(--nb-green-dark);
  background: #e3efe7;
}

.nb-cms7 .nb-cms7-card h3 {
  margin: .4rem 0 0;
  font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
}

.nb-cms .nb-cms7-lead {
  margin: 0 0 .5rem;
  color: var(--nb-muted);
}

.nb-cms .nb-cms7-steps {
  display: grid;
  gap: 1rem;
  margin: .5rem 0 1.25rem;
  padding: 0;
  list-style: none;
  counter-reset: nbstep;
}

.nb-cms .nb-cms7-steps > li {
  position: relative;
  margin: 0;
  padding-left: 3rem;
  counter-increment: nbstep;
}

.nb-cms .nb-cms7-steps > li::before {
  position: absolute;
  top: -.1rem;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  font-family: var(--nb-font-title);
  font-size: .95rem;
  font-weight: 800;
  content: counter(nbstep);
  color: var(--nb-green-dark);
  background: var(--nb-yellow);
}

.nb-cms .nb-cms7-steps > li:not(:last-child)::after {
  position: absolute;
  top: 2.2rem;
  bottom: -1rem;
  left: 1.03rem;
  width: 2px;
  content: "";
  background: #ece2c2;
}

.nb-cms7-steps strong {
  display: block;
  margin-bottom: .15rem;
  font-weight: 700;
  color: var(--nb-ink);
}

.nb-cms7-steps span {
  display: block;
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--nb-muted);
}

.nb-cms7-info {
  margin-bottom: 1.25rem;
  padding: .85rem 1rem;
  border-left: 4px solid var(--nb-primary);
  border-radius: 12px;
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--nb-ink);
  background: #eef5f0;
}

.nb-cms7 .nb-cms7-card .nb-actions {
  margin-top: auto;
  margin-bottom: 0;
}

/* carte cadeau : visuel incliné à droite */
.nb-cms7 .nb-cms7-cta {
  position: relative;
  overflow: hidden;
}

.nb-cms7-cta__img {
  display: none;
}

@media (min-width: 1100px) {
  .nb-cms7 .nb-cms7-cta {
    padding-right: 280px;
  }

  .nb-cms7-cta__img {
    position: absolute;
    top: 50%;
    right: 2.5rem;
    display: block;
    width: 200px;
    border-radius: 12px;
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .35);
    transform: translateY(-50%) rotate(8deg);
  }
}
