/* ==========================================================================
   MLB Pro — Landing collectivités (maluttebio.com/fr/professionnel)
   Couleurs et typographies du thème Maluttebio. Tout est scopé sous .mlbpro.
   ========================================================================== */

.mlbpro {
  --g900: #014b41;
  --g800: #0b4a42;
  --g700: #016b5d;
  --g600: #128a77;
  --mint: #c5ebd3;
  --mint50: #e7f7ed;
  --sage: #97c2bd;
  --sand: #ece7db;
  --sand50: #f6f3ec;
  --ink: #17302b;
  --muted: #55665f;
  --line: #ddd6c7;
  --sun: #f4c34a;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgb(1 75 65 / .06), 0 12px 32px -12px rgb(1 75 65 / .18);
  --shadow-lg: 0 2px 4px rgb(1 75 65 / .06), 0 30px 60px -20px rgb(1 75 65 / .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-title: 'Gabarito', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Gabarito', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  font-family: var(--font-body) !important;
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--sand50);
  overflow-x: clip;
}
.mlbpro, .mlbpro * {
  box-sizing: border-box;
  font-family: 'Gabarito', system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
}
.mlbpro img { max-width: 100%; height: auto; display: block; }
.mlbpro svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mlbpro a { color: inherit; }
.mlbpro h1, .mlbpro h2, .mlbpro h3, .mlbpro h4, .mlbpro h5, .mlbpro h6 { margin: 0; font-family: var(--font-title) !important; letter-spacing: -.01em; font-weight: 800; }
.mlbpro p { margin: 0 0 1rem; }
.mlbpro :focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.mlb-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mlb-wrap { width: min(1240px, 100% - 2.5rem); margin-inline: auto; }
.mlb-section { padding-block: clamp(4rem, 8vw, 7rem); scroll-margin-top: 90px; }
#produits, #devis, .mlb-group { scroll-margin-top: 90px; }

/* ---------- Typo ---------- */
.mlb-eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--g700); margin-bottom: 1rem; }
.mlb-eyebrow--light { color: var(--mint); }
.mlb-eyebrow--mint { color: var(--mint); }
.mlb-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgb(244 195 74 / .25); animation: mlb-pulse 2.4s infinite; }
@keyframes mlb-pulse { 50% { box-shadow: 0 0 0 9px rgb(244 195 74 / 0); } }
.mlb-h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.1; font-weight: 900; color: var(--g900); margin-bottom: 1.25rem; text-wrap: balance; }
.mlb-h2--light { color: #fff; }
.mlb-h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 800; color: var(--g900); }
.mlb-head { max-width: 760px; margin-bottom: 2.5rem; }
.mlb-head__lead { color: var(--muted); font-size: 1.125rem; }
.mlb-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--g700); text-decoration: none; border-bottom: 2px solid var(--mint); padding-bottom: 2px; transition: gap .25s var(--ease), border-color .25s; }
.mlb-link:hover { gap: .7rem; border-color: var(--g700); color: var(--g700); }

/* ---------- Boutons ---------- */
.mlb-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid transparent; font: 700 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s; }
.mlb-btn--lg { padding: 1rem 1.7rem; font-size: 1.0625rem; }
.mlb-btn--block { width: 100%; }
.mlb-btn--primary { background: var(--sun); color: var(--g900); box-shadow: 0 10px 24px -10px rgb(244 195 74 / .8); }
.mlb-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgb(244 195 74 / .9); color: var(--g900); }
.mlb-btn--primary svg { transition: transform .25s var(--ease); }
.mlb-btn--primary:hover svg { transform: translateX(4px); }
.mlb-btn--ghost { color: #fff; border-color: rgb(255 255 255 / .55); background: rgb(255 255 255 / .08); backdrop-filter: blur(6px); }
.mlb-btn--ghost:hover { background: #fff; color: var(--g900); }
.mlb-btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- Hero ---------- */
.mlb-hero { position: relative; min-height: min(88vh, 820px); display: grid; align-items: end; color: #fff; isolation: isolate; }
.mlb-hero__bg, .mlb-hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; }
.mlb-hero__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(1 40 35 / .15) 0%, rgb(1 40 35 / .35) 40%, rgb(1 50 43 / .92) 100%), linear-gradient(90deg, rgb(1 50 43 / .75) 0%, rgb(1 50 43 / 0) 65%); }
.mlb-hero__inner { display: grid; grid-template-columns: 1.35fr .65fr; gap: 2rem; align-items: end; padding-block: clamp(7rem, 14vw, 10rem) clamp(3rem, 6vw, 5rem); }
.mlb-hero__content { max-width: 720px; animation: mlb-rise .9s var(--ease) both .1s; }
.mlb-hero__title { font-size: clamp(2.4rem, 5.6vw, 4.4rem); line-height: 1.02; font-weight: 900; margin-bottom: 1.25rem; text-wrap: balance; color: #fff; }
.mlb-hero__title em { font-style: normal; color: var(--mint); background: linear-gradient(transparent 70%, rgb(244 195 74 / .45) 70%); }
.mlb-hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgb(255 255 255 / .9); max-width: 620px; margin-bottom: 2rem; }
.mlb-hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2rem; }
.mlb-hero__checks { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; padding: 0; margin: 0; font-weight: 600; font-size: .95rem; color: rgb(255 255 255 / .92); }
.mlb-hero__checks li { display: inline-flex; align-items: center; gap: .45rem; }
.mlb-hero__checks svg { color: var(--sun); stroke-width: 3; }
.mlb-hero__cards { display: grid; gap: 1rem; justify-items: end; }
.mlb-glass { display: grid; gap: .15rem; padding: 1.1rem 1.4rem; border-radius: var(--radius-sm); background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .28); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 20px 40px -20px rgb(0 0 0 / .45); max-width: 290px; animation: mlb-rise .9s var(--ease) both; }
.mlb-glass strong { font-family: var(--font-title); font-size: 1.15rem; }
.mlb-glass span { font-size: .9rem; color: rgb(255 255 255 / .85); }
.mlb-glass--a { animation-delay: .45s; }
.mlb-glass--b { animation-delay: .6s; margin-right: 2.5rem; }
@keyframes mlb-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Bandeau de réassurance : Nouveau design aéré & chic ---------- */
.mlb-trust {
  background: var(--sand50);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  z-index: 2;
  border-bottom: none;
}
.mlb-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.mlb-trust__card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.75rem 1.6rem;
  background: #ffffff;
  border: 1px solid rgba(1, 75, 65, 0.12);
  border-radius: 20px;
  box-shadow: 0 4px 20px -4px rgba(1, 75, 65, 0.06);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.mlb-trust__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -8px rgba(1, 75, 65, 0.12);
  border-color: var(--g700);
}
.mlb-trust__ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--mint50);
  color: var(--g700);
  flex-shrink: 0;
  border: 1px solid var(--mint);
}
.mlb-trust__ico svg {
  width: 26px;
  height: 26px;
}
.mlb-trust__info {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 0;
}
.mlb-trust__tit {
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--g900);
  line-height: 1.25;
}
.mlb-trust__txt {
  display: block;
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Ruban officiel ABC / TEN / OFB */
.mlb-trust__programs {
  margin-top: 2rem;
  padding: 1.25rem 2rem;
  background: #ffffff;
  border: 2px solid var(--mint);
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 4px 16px -4px rgba(1, 75, 65, 0.05);
}
.mlb-trust__prog-pill {
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: var(--g700);
  color: #ffffff !important;
  white-space: nowrap;
  flex-shrink: 0;
}
.mlb-trust__prog-desc {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.55;
}
.mlb-trust__prog-desc strong {
  color: var(--g900);
  font-weight: 800;
}

/* ---------- Pourquoi ---------- */
.mlb-why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.mlb-why__text p { color: var(--muted); font-size: 1.1rem; }
.mlb-why__text strong { color: var(--g900); }
.mlb-why__visual { position: relative; }
.mlb-why__visual > img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 1; object-fit: cover; width: 88%; margin-left: auto; display: block; }
.mlb-why__stats { position: absolute; left: 0; bottom: 8%; display: grid; gap: .85rem; width: min(340px, 75%); z-index: 2; pointer-events: auto; }
.mlb-stat {
  --p-dx: 0px;
  --p-dy: 0px;
  display: grid;
  gap: .15rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: .95rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 14px 32px -8px rgba(1, 75, 65, 0.18), 0 2px 6px rgba(0, 0, 0, 0.04);
  border-left: 4px solid var(--g700);
  transform: translate3d(var(--p-dx), var(--p-dy), 0);
  transition: box-shadow .35s var(--ease), background-color .3s, transform .2s ease-out;
  will-change: transform;
}
.mlb-stat:hover {
  transform: translate3d(var(--p-dx), calc(var(--p-dy) - 4px), 0) scale(1.02);
  box-shadow: 0 22px 42px -10px rgba(1, 75, 65, 0.28);
  background: #ffffff;
}
.mlb-stat:nth-child(1) { border-color: var(--g700); }
.mlb-stat:nth-child(2) { margin-left: 1.5rem; border-color: var(--sun); }
.mlb-stat:nth-child(3) { margin-left: .75rem; border-color: var(--sage); }
.mlb-stat__k { font-family: var(--font-title); font-weight: 800; font-size: 1.05rem; color: var(--g900); }
.mlb-stat__v { font-size: .9rem; color: var(--muted); line-height: 1.4; }

@keyframes mlb-card-entrance {
  0% {
    opacity: 0;
    transform: translate3d(calc(var(--p-dx) - 35px), calc(var(--p-dy) + 20px), 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(var(--p-dx), var(--p-dy), 0);
  }
}
.mlb-js .mlb-why__visual:not(.is-in) .mlb-stat {
  opacity: 0;
}
.mlb-js .mlb-why__visual.is-in .mlb-stat:nth-child(1) {
  animation: mlb-card-entrance 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
.mlb-js .mlb-why__visual.is-in .mlb-stat:nth-child(2) {
  animation: mlb-card-entrance 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}
.mlb-js .mlb-why__visual.is-in .mlb-stat:nth-child(3) {
  animation: mlb-card-entrance 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

/* ---------- Encadré Institutionnel ABC / TEN / OFB (Gros padding & aéré) ---------- */
.mlb-abc-box {
  margin-top: 5rem;
  margin-bottom: 3.5rem;
  padding: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(135deg, #ffffff 0%, #f4fbf7 100%);
  border: 2px solid var(--mint);
  border-radius: 28px;
  box-shadow: 0 16px 40px -12px rgba(1, 75, 65, 0.08);
}
.mlb-abc-box__header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.mlb-abc-pill {
  display: inline-block;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  background: var(--g700);
  color: #fff !important;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mlb-abc-title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--g900);
  margin: 0;
  line-height: 1.25;
}
.mlb-abc-desc {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 1020px;
  margin-bottom: 2.5rem;
}
.mlb-abc-desc strong {
  color: var(--g900);
  font-weight: 800;
}
.mlb-abc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.mlb-abc-card {
  padding: 1.8rem 1.75rem;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  box-shadow: 0 6px 20px -6px rgba(1, 75, 65, 0.06);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.mlb-abc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -8px rgba(1, 75, 65, 0.1);
}
.mlb-abc-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--mint50);
  color: var(--g900);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .6rem;
}
.mlb-abc-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mlb-abc-card strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--g900);
  line-height: 1.3;
}
.mlb-abc-card span {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Produits ---------- */
.mlb-products { background: #fff; border-radius: 40px 40px 0 0; }
.mlb-tabs { position: sticky; top: 12px; z-index: 5; display: flex; gap: .4rem; width: fit-content; max-width: 100%; overflow-x: auto; padding: .4rem; margin: 0 auto 3rem; border-radius: 999px; background: rgb(246 243 236 / .85); border: 1px solid var(--line); backdrop-filter: blur(10px); scrollbar-width: none; }
.mlb-tab { white-space: nowrap; padding: .65rem 1.2rem; border-radius: 999px; font-weight: 700; font-size: .95rem; color: var(--g900); text-decoration: none; transition: background-color .25s, color .25s; }
.mlb-tab:hover { background: var(--mint50); color: var(--g900); }
.mlb-tab.is-active { background: var(--g900); color: #fff; }
.mlb-tab__short { display: none; }
.mlb-group + .mlb-group { margin-top: 4.5rem; }

/* ---------- Bandeau d'en-tête de catégorie valorisé ---------- */
.mlb-cat-banner {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 24px -8px rgba(1, 75, 65, 0.06);
}
.mlb-cat-banner__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--sand);
  margin-bottom: 1.25rem;
}
.mlb-cat-banner__title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.mlb-cat-banner__badge {
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: var(--mint50);
  color: var(--g700);
  border: 1px solid var(--mint);
}
.mlb-cat-banner__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--g900);
  margin: 0;
}
.mlb-cat-banner__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
}
.mlb-cat-tag {
  font-size: .88rem;
  font-weight: 700;
  color: var(--g800);
  background: var(--sand50);
  padding: .4rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.mlb-cat-banner__body {
  display: grid;
  gap: 1rem;
}
.mlb-cat-banner__desc {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--g900);
  line-height: 1.55;
  margin: 0;
}
.mlb-cat-banner__callout {
  font-size: .98rem;
  color: var(--muted);
  line-height: 1.5;
  padding: .85rem 1.25rem;
  background: var(--sand50);
  border-left: 4px solid var(--g700);
  border-radius: 0 12px 12px 0;
}
.mlb-cat-banner__callout strong {
  color: var(--g900);
}

/* Grilles produits */
.mlb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 1.5rem; }
.mlb-grid--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.mlb-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); margin-top: 3rem; }

/* 6ème carte spéciale : Lot sur-mesure Collectivités */
.mlb-card--custom {
  background: linear-gradient(180deg, #fbfdfc 0%, #edf7f2 100%);
  border: 2px dashed var(--g700);
}
.mlb-card__media--custom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--mint50) 0%, #dcf3e4 100%);
  gap: .75rem;
  padding: 1.5rem;
}
.mlb-card__badge--custom {
  background: var(--sun) !important;
  color: var(--g900) !important;
  font-weight: 800;
}
.mlb-custom-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--g700);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px -4px rgba(1, 75, 65, 0.15);
}
.mlb-custom-icon svg {
  width: 38px;
  height: 38px;
}
.mlb-custom-label {
  font-size: .88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--g900);
}

/* Carte produit */
.mlb-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.mlb-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.mlb-card__media { position: relative; aspect-ratio: 1; background: var(--sand50); overflow: hidden; }
.mlb-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mlb-card:hover .mlb-card__media img { transform: scale(1.05); }
.mlb-card__badge { position: absolute; top: 14px; left: 14px; padding: .35rem .75rem; border-radius: 999px; background: var(--g900); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.mlb-card__badge--new { background: var(--sun); color: var(--g900); }
.mlb-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.4rem 1.5rem; }
.mlb-card__tag { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--g700); margin-bottom: .4rem; }
.mlb-card__title { font-size: 1.25rem; font-weight: 800; color: var(--g900); margin-bottom: .6rem; line-height: 1.2; }
.mlb-card__desc { font-size: .95rem; color: var(--muted); line-height: 1.55; }
.mlb-card__specs { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: auto 0 1.2rem; padding-top: .4rem; }
.mlb-card__specs li { font-size: .78rem; font-weight: 600; padding: .3rem .65rem; border-radius: 999px; background: var(--sand50); border: 1px solid var(--line); color: var(--ink); }
.mlb-card__actions { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.mlb-card__more { font-size: .88rem; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.mlb-card__more:hover { color: var(--g700); }

.mlb-add { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .6rem 1.05rem; border-radius: 999px; border: 2px solid var(--g700); background: transparent; color: var(--g700); font: 700 .92rem/1 var(--font-body); cursor: pointer; transition: background-color .25s, color .25s, transform .2s var(--ease); }
.mlb-add:hover { background: var(--mint50); }
.mlb-add:active { transform: scale(.96); }
.mlb-add__ok { display: none; }
.mlb-add[aria-pressed="true"] { background: var(--g700); color: #fff; }
.mlb-add[aria-pressed="true"] .mlb-add__plus { display: none; }
.mlb-add[aria-pressed="true"] .mlb-add__ok { display: block; }

/* Guide d'installation */
.mlb-guide { margin-top: 4.5rem; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--radius); background: var(--g900) url("../img/nichoir-mesange-scene.webp") right center / auto 100% no-repeat; background-blend-mode: soft-light; color: #fff; position: relative; overflow: hidden; }
.mlb-guide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--g900) 55%, rgb(1 75 65 / .6)); z-index: 0; }
.mlb-guide > * { position: relative; z-index: 1; }
.mlb-guide__title { font-size: 1.5rem; font-weight: 800; margin-bottom: 1.5rem; color: #fff; }
.mlb-guide__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.mlb-guide__grid strong { display: block; font-family: var(--font-title); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; color: var(--mint); }
.mlb-guide__grid span { font-size: .93rem; color: rgb(255 255 255 / .82); }

/* ---------- Processionnaire ---------- */
.mlb-proc { background: radial-gradient(1200px 600px at 85% 0%, rgb(18 138 119 / .35), transparent 60%), var(--g900); color: rgb(255 255 255 / .86); }
.mlb-proc__hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.mlb-proc__text p { font-size: 1.08rem; }
.mlb-proc__text strong { color: #fff; }
.mlb-badge { display: inline-block; padding: .25rem .65rem; border-radius: 999px; background: var(--sun); color: var(--g900); letter-spacing: .06em; }
.mlb-proc__points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.mlb-proc__points li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; color: #fff; }
.mlb-proc__points svg { color: var(--sun); stroke-width: 3; margin-top: .2rem; }
.mlb-proc__visual { position: relative; }
.mlb-proc__visual img { border-radius: var(--radius); box-shadow: 0 40px 80px -30px rgb(0 0 0 / .6); aspect-ratio: 1; object-fit: cover; }
.mlb-proc__visual::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; border: 2px solid rgb(197 235 211 / .25); border-radius: calc(var(--radius) + 6px); z-index: 0; }
.mlb-proc__visual img { position: relative; z-index: 1; }

.mlb-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: clamp(3rem, 6vw, 4.5rem); counter-reset: s; }
.mlb-step { padding: 1.6rem; border-radius: var(--radius-sm); background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); }
.mlb-step__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mint); color: var(--g900); font-family: var(--font-title); font-weight: 900; margin-bottom: 1rem; }
.mlb-step h3 { font-size: 1.15rem; color: #fff; margin-bottom: .4rem; }
.mlb-step p { margin: 0; font-size: .95rem; }

.mlb-proc__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 4rem;
}
.mlb-panel {
  padding: 2rem;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.25);
}
.mlb-panel__title { font-size: 1.3rem; font-weight: 800; color: var(--g900); margin-bottom: .5rem; }
.mlb-panel__sub { color: var(--muted); font-size: .95rem; }
.mlb-panel__note { margin: 1rem 0 0; font-size: .88rem; color: var(--muted); }
.mlb-sizes { width: 100%; border-collapse: separate; border-spacing: 0 .4rem; }
.mlb-sizes thead th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; padding: 0 1rem; }
.mlb-sizes tbody th, .mlb-sizes tbody td { padding: .75rem 1rem; background: var(--sand50); }
.mlb-sizes tbody th { width: 70px; border-radius: 10px 0 0 10px; font-family: var(--font-title); font-size: 1.15rem; color: #fff; background: var(--g700); text-align: center; }
.mlb-sizes tbody td { border-radius: 0 10px 10px 0; font-weight: 600; }
.mlb-timeline { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0; }
.mlb-timeline li { position: relative; padding: 0 0 1.25rem 1.75rem; border-left: 2px solid var(--mint); margin-left: .45rem; }
.mlb-timeline li:last-child { padding-bottom: 0; border-color: transparent; }
.mlb-timeline li::before { content: ""; position: absolute; left: -8px; top: .25rem; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--g700); }
.mlb-timeline span { display: block; font-weight: 800; color: var(--g900); font-size: .95rem; }
.mlb-timeline p { margin: .1rem 0 0; font-size: .92rem; color: var(--muted); }

.mlb-proc__products-head {
  text-align: center;
  margin: 4.5rem auto 2.25rem;
  max-width: 650px;
}
.mlb-proc__badge {
  display: inline-block;
  padding: .35rem 1rem;
  border-radius: 999px;
  background: rgba(197, 235, 211, 0.15);
  border: 1px solid rgba(197, 235, 211, 0.35);
  color: var(--mint);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.mlb-proc__products-title {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -.02em;
}
.mlb-proc .mlb-grid {
  margin-top: 0;
  margin-bottom: 2rem;
}
.mlb-card--dark {
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.35);
}

/* ---------- Pour qui ---------- */
.mlb-uses__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.mlb-use { padding: 1.8rem 1.6rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.mlb-use:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mlb-use h3 { font-size: 1.15rem; line-height: 1.25; font-weight: 800; color: var(--g900); margin: 1.2rem 0 .5rem; }
.mlb-use p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Commander ---------- */
.mlb-process { background: var(--sand); }
.mlb-process__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.mlb-process__list li { position: relative; padding: 2rem 1.75rem; background: rgb(255 255 255 / .7); border-radius: var(--radius); }
.mlb-process__n { display: block; font-family: var(--font-title); font-weight: 900; font-size: 3rem; line-height: 1; color: var(--g700); opacity: .25; margin-bottom: .75rem; }
.mlb-process__list h3 { font-size: 1.25rem; font-weight: 800; color: var(--g900); margin-bottom: .5rem; }
.mlb-process__list p { margin: 0; color: var(--muted); }

/* ---------- FAQ ---------- */
.mlb-faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.mlb-faq__intro { position: sticky; top: 100px; }
.mlb-faq__intro p { color: var(--muted); }
.mlb-faq__intro a { color: var(--g700); font-weight: 700; }
.mlb-faq__list { display: grid; gap: .75rem; }
.mlb-faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .25s, box-shadow .25s; }
.mlb-faq__item[open] { border-color: var(--sage); box-shadow: var(--shadow); }
.mlb-faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; font-weight: 700; color: var(--g900); font-size: 1.05rem; }
.mlb-faq__item summary::-webkit-details-marker { display: none; }
.mlb-faq__item summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--mint50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23016b5d' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .3s var(--ease); }
.mlb-faq__item[open] summary::after { transform: rotate(45deg); }
.mlb-faq__item p { margin: 0; padding: 0 1.4rem 1.3rem; color: var(--muted); }

/* ---------- Devis ---------- */
.mlb-quote { background: linear-gradient(160deg, var(--g900) 0%, var(--g800) 60%, #08362f 100%); color: rgb(255 255 255 / .86); }
.mlb-quote__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.mlb-quote__aside { position: sticky; top: 100px; }
.mlb-quote__aside > p { font-size: 1.1rem; }
.mlb-quote__perks { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .7rem; }
.mlb-quote__perks li { display: flex; gap: .65rem; align-items: center; color: #fff; font-weight: 600; }
.mlb-quote__perks svg { color: var(--sun); stroke-width: 3; }
.mlb-contact { padding: 1.5rem; border-radius: var(--radius-sm); background: var(--mint); color: var(--g900); }
.mlb-contact p { margin: 0 0 .4rem; }
.mlb-contact__title { font-family: var(--font-title); font-weight: 800; font-size: 1.15rem; }
.mlb-contact a { font-weight: 700; color: var(--g900); }

.mlb-quote__card { background: #fff; color: var(--ink); border-radius: 28px; padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: 0 40px 80px -30px rgb(0 0 0 / .5); }
.mlb-fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.mlb-fieldset legend { font-family: var(--font-title); font-weight: 800; font-size: 1.2rem; color: var(--g900); margin-bottom: 1rem; padding: 0; }
.mlb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.mlb-field { margin-bottom: 1.1rem; }
.mlb-field--short { max-width: 220px; }
.mlb-field label, .mlb-label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .35rem; color: var(--ink); }
.mlb-req { color: #b3261e; }
.mlb-hint { font-size: .85rem; color: var(--muted); margin: 0 0 .35rem; }
.mlb-form input[type="text"], .mlb-form input[type="email"], .mlb-form input[type="tel"], .mlb-form textarea, .mlb-qty input {
  width: 100%; min-height: 50px; padding: .75rem 1rem; font: 400 1rem/1.4 var(--font-body); color: var(--ink);
  background: var(--sand50); border: 1.5px solid #c9c1b0; border-radius: 12px; transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.mlb-form textarea { resize: vertical; min-height: 120px; }
.mlb-form input:focus, .mlb-form textarea:focus { outline: none; background: #fff; border-color: var(--g700); box-shadow: 0 0 0 4px rgb(1 107 93 / .15); }
.mlb-err { display: none; margin: .35rem 0 0; font-size: .85rem; font-weight: 600; color: #b3261e; }
.mlb-err::before { content: ""; }
.mlb-form input:user-invalid, .mlb-form textarea:user-invalid, .mlb-field.is-invalid input, .mlb-field.is-invalid textarea { border-color: #b3261e; background: #fdf1f0; }
.mlb-form input:user-invalid ~ .mlb-err, .mlb-field.is-invalid .mlb-err, .mlb-consent:has(input:user-invalid) .mlb-err { display: block; }
.mlb-form input:user-valid:not([type="checkbox"]):not([type="radio"]) { border-color: var(--g600); }
.mlb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mlb-alert { padding: .9rem 1.1rem; border-radius: 12px; background: #fdf1f0; color: #8c1d18; font-weight: 600; margin-bottom: 1.25rem; }

.mlb-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.mlb-chip { position: relative; margin: 0 !important; }
.mlb-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.mlb-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1.1rem; border-radius: 999px; border: 1.5px solid #c9c1b0; background: var(--sand50); font-weight: 600; font-size: .95rem; transition: all .2s; }
.mlb-chip input:checked + span { background: var(--g900); border-color: var(--g900); color: #fff; }
.mlb-chip input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }

.mlb-selection { margin-bottom: 1.1rem; padding: 1rem; border-radius: 14px; background: var(--mint50); border: 1.5px dashed var(--sage); }
.mlb-selection__empty { margin: 0; font-size: .92rem; color: var(--muted); }
.mlb-selection.has-items .mlb-selection__empty { display: none; }
.mlb-selection__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.mlb-selection__item { display: flex; align-items: center; gap: .75rem; padding: .5rem .5rem .5rem .9rem; background: #fff; border-radius: 12px; box-shadow: 0 1px 2px rgb(1 75 65 / .08); animation: mlb-rise .35s var(--ease) both; }
.mlb-selection__name { flex: 1; font-weight: 700; font-size: .95rem; color: var(--g900); }
.mlb-qty { display: flex; align-items: center; gap: .25rem; }
.mlb-qty button, .mlb-selection__rm { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--sand50); color: var(--g900); cursor: pointer; font-size: 1.1rem; font-weight: 700; transition: background-color .2s; }
.mlb-qty button:hover { background: var(--mint); }
.mlb-qty input { width: 72px; min-height: 36px; padding: .3rem; text-align: center; font-weight: 700; }
.mlb-selection__rm { background: transparent; color: var(--muted); }
.mlb-selection__rm:hover { background: #fdf1f0; color: #b3261e; }

.mlb-check { display: flex !important; gap: .75rem; align-items: flex-start; font-weight: 500 !important; font-size: .92rem !important; color: var(--muted) !important; cursor: pointer; }
.mlb-check input { width: 22px; height: 22px; margin-top: .1rem; accent-color: var(--g700); flex: none; }
.mlb-form__legal { margin: .9rem 0 0; text-align: center; font-size: .82rem; color: var(--muted); }
.mlb-btn.is-loading .mlb-btn__label::after { content: ""; display: inline-block; width: 1em; height: 1em; margin-left: .6rem; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: mlb-spin .7s linear infinite; }
@keyframes mlb-spin { to { transform: rotate(360deg); } }

.mlb-success { text-align: center; padding: 2.5rem 1rem; }
.mlb-success:focus { outline: none; }
.mlb-success__ico { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--mint); color: var(--g900); margin-bottom: 1.25rem; animation: mlb-pop .5s var(--ease) both; }
.mlb-success__ico svg { width: 38px; height: 38px; stroke-width: 3; }
.mlb-success h3 { font-size: 1.6rem; font-weight: 900; color: var(--g900); margin-bottom: .75rem; }
.mlb-success p { color: var(--muted); max-width: 440px; margin-inline: auto; }
@keyframes mlb-pop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Pastille flottante ---------- */
.mlb-floating { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50; display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.1rem .85rem 1.25rem; border-radius: 999px; background: var(--g900); color: #fff !important; text-decoration: none; font-weight: 700; box-shadow: 0 16px 36px -12px rgb(1 75 65 / .7); animation: mlb-rise .4s var(--ease) both; transition: transform .25s var(--ease); }
.mlb-floating:hover { transform: translateY(-3px); }
.mlb-floating[hidden] { display: none; }
.mlb-floating__count { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 .4rem; border-radius: 999px; background: var(--sun); color: var(--g900); font-size: .85rem; }
.mlb-floating.bump .mlb-floating__count { animation: mlb-pop .4s var(--ease); }

/* ---------- Apparition au scroll ---------- */
.mlb-js .mlb-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.mlb-js .mlb-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .mlb-trust__grid { grid-template-columns: repeat(2, 1fr); }
  .mlb-abc-grid { grid-template-columns: 1fr; }
  .mlb-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .mlb-uses__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .mlb-hero__inner { grid-template-columns: 1fr; }
  .mlb-hero__cards { display: none; }
  .mlb-why__grid, .mlb-proc__hero, .mlb-faq__grid, .mlb-quote__grid { grid-template-columns: 1fr; }
  .mlb-faq__intro, .mlb-quote__aside { position: static; }
  .mlb-guide__grid { grid-template-columns: repeat(2, 1fr); }
  .mlb-steps, .mlb-process__list, .mlb-proc__info { grid-template-columns: 1fr; }
  .mlb-trust__programs { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .mlbpro { font-size: 1rem; }
  .mlb-hero { min-height: auto; }
  .mlb-hero__cta .mlb-btn { width: 100%; }
  .mlb-trust__grid { grid-template-columns: 1fr; }
  .mlb-abc-box { padding: 1.75rem 1.25rem; }
  .mlb-uses__grid, .mlb-row { grid-template-columns: 1fr; }
  .mlb-why__visual > img { width: 100%; }
  .mlb-why__stats { position: static; width: 100%; margin-top: 1rem; }
  .mlb-stat:nth-child(n) { margin-left: 0; }
  .mlb-products { border-radius: 28px 28px 0 0; }
  .mlb-tabs { top: 8px; }
  .mlb-tab { padding: .6rem 1rem; font-size: .9rem; }
  .mlb-tab__long { display: none; }
  .mlb-tab__short { display: inline; }
  /* Fiches en carrousel horizontal : page beaucoup plus courte sur mobile */
  .mlb-grid, .mlb-grid--3, .mlb-grid--4 {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%;
    gap: 1rem; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 1.25rem;
    margin-inline: -1.25rem; padding: .25rem 1.25rem 1.25rem; scrollbar-width: none;
  }
  .mlb-grid::-webkit-scrollbar { display: none; }
  .mlb-grid > * { scroll-snap-align: start; }
  .mlb-js .mlb-grid > .mlb-reveal { opacity: 1; transform: none; }
  .mlb-floating { left: 1rem; right: 1rem; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .mlbpro *, .mlbpro *::before, .mlbpro *::after { animation: none !important; transition: none !important; }
  .mlb-js .mlb-reveal { opacity: 1; transform: none; }
}
