/* ==== v35 (21/11/2026) : rythme vertical + section budget de l'accueil ==== */
:root { --mb-section: 96px; --mb-sous: 44px; --mb-titre-bas: 20px; }
@media (max-width: 760px) { :root { --mb-section: 64px; --mb-sous: 32px; --mb-titre-bas: 16px; } }

/* Un seul ecart avant chaque section (h2 de contenu), plus grand au-dessus qu'en dessous */
.entry-content > h2,
.mb-pf-corps > h2,
.mb-layout > div > h2,
.mb-test > h2 { margin-top: var(--mb-section) !important; margin-bottom: var(--mb-titre-bas) !important; }
.entry-content > h2:first-child,
.mb-pf-corps > h2:first-child,
.mb-layout > div > h2:first-child { margin-top: 0 !important; }
.entry-content > h3,
.mb-pf-corps > h3,
.mb-layout > div > h3 { margin-top: var(--mb-sous); margin-bottom: 12px; }
/* le texte qui suit un titre colle au titre, pas au bloc precedent */
.entry-content > h2 + p, .mb-pf-corps > h2 + p, .mb-layout > div > h2 + p { margin-top: 0; }

/* Lecture : interligne et longueur de ligne de la prose courante */
.entry-content > p, .mb-pf-corps > p, .mb-layout > div > p,
.entry-content > ul:not([class]) li, .mb-pf-corps > ul:not([class]) li { line-height: 1.7; }
.entry-content > p:not([class]), .mb-pf-corps > p:not([class]) { max-width: 75ch; }
.entry-content > p + p, .mb-pf-corps > p + p, .mb-layout > div > p + p { margin-top: 1.1em; }

/* Blocs pleine largeur sans titre propre : meme respiration */
.entry-content > .mb-sel-nav, .entry-content > nav.mb-sel-nav { margin-top: var(--mb-section); }
.entry-content > .mb-saison3 { margin-top: 56px; margin-bottom: 8px; }
@media (max-width: 760px) { .entry-content > .mb-saison3 { margin-top: 40px; } }

/* ---- Section budget de l'accueil (remplace mb-saison2) ---- */
.mb-saison3 { background: #FDFBF7; border: 1px solid #E4DACB; border-radius: 20px; padding: 28px 28px 30px; }
.mb-s3-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin: 0 0 20px; }
.mb-s3-sur { margin: 0 0 4px !important; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #43604D; }
.mb-saison3 h2 { margin: 0 !important; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; }
.mb-s3-cta { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 12px; background: #A65323; color: #FFFFFF !important; font-weight: 700; text-decoration: none !important; white-space: nowrap; transition: background .15s; }
.mb-s3-cta:hover, .mb-s3-cta:focus-visible { background: #8C4519; }
.mb-s3-cta .mb-ico { width: 20px; height: 20px; color: #F1B24A; }
.mb-s3-tuiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.mb-s3-tuile { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-areas: "ico type" "prix prix" "n n"; column-gap: 10px; row-gap: 6px; align-items: center; padding: 16px; background: #FFFFFF; border: 1px solid #E4DACB; border-radius: 14px; color: #2C221B !important; text-decoration: none !important; transition: border-color .15s, transform .15s, box-shadow .15s; min-width: 0; }
.mb-s3-tuile:hover, .mb-s3-tuile:focus-visible { border-color: #A65323; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(44,34,27,.08); }
.mb-s3-ico { grid-area: ico; display: flex; width: 34px; height: 34px; border-radius: 10px; background: #F8F1E9; color: #A65323; align-items: center; justify-content: center; }
.mb-s3-ico .mb-ico { width: 22px; height: 22px; }
.mb-s3-type { grid-area: type; font-size: 13px; font-weight: 700; color: #5A4E44; }
.mb-s3-prix { grid-area: prix; font-family: 'Young Serif', Georgia, serif; font-weight: 400; font-size: 20px; line-height: 1.15; margin-top: 4px; }
.mb-s3-n { grid-area: n; font-size: 14px; color: #43604D; font-weight: 600; }
@media (max-width: 1100px) {
  .mb-s3-tuiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 2px 2px 10px; margin: 0 -2px; scrollbar-width: thin; }
  .mb-s3-tuile { flex: 0 0 210px; scroll-snap-align: start; }
}
@media (max-width: 760px) {
  .mb-saison3 { padding: 22px 18px 20px; border-radius: 16px; }
  .mb-s3-tete { align-items: stretch; }
  .mb-s3-cta { width: 100%; justify-content: center; }
  .mb-s3-tuile { flex-basis: 74%; }
}

/* Ligne de reassurance sous la section budget (v34) : une ligne centree, pas une colonne */
.entry-content > p.mb-reassurance { max-width: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin: 20px 0 0 !important; text-align: center; }
@media (max-width: 760px) {
  .entry-content > p.mb-reassurance { flex-direction: column; align-items: center; gap: 4px; }
  .entry-content > p.mb-reassurance span { display: block !important; text-align: center; }
  .entry-content > p.mb-reassurance span::before { display: none !important; }
}

/* Un cadeau par budget (page cadeau) */
.mb-v35-cadeaux .mb-catalogue-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mb-v35-cadeau { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mb-v35-cadeau > .mb-carte-fiche { flex: 1; }
.mb-v35-cadeau-budget { margin: 0 !important; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #A65323; }
@media (max-width: 900px) { .mb-v35-cadeaux .mb-catalogue-grille { grid-template-columns: 1fr; max-width: 420px; } }

/* Tableau comparatif des selections : bouton par ligne + note en pastille (v35) */
.mb-sel-table td.mb-sel-acheter { text-align: right; white-space: nowrap; }
.mb-sel-table-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border-radius: 10px; background: #A65323; color: #FFFFFF !important; font-weight: 700; font-size: 14px; text-decoration: none !important; white-space: nowrap; }
.mb-sel-table-cta:hover, .mb-sel-table-cta:focus-visible { background: #8C4519; }
.mb-sel-table td[data-label="Notre note"] a { display: inline-block; padding: 3px 9px; border-radius: 6px; background: #2C221B; color: #F8F4EE !important; font-weight: 700; text-decoration: none !important; }
@media (max-width: 760px) {
  .mb-sel-table td.mb-sel-acheter { grid-column: 1 / -1; text-align: left; }
  .mb-sel-table td.mb-sel-acheter::before { display: none !important; content: none !important; }
  .mb-sel-table-cta { width: 100%; min-height: 44px; }
}

/* Tests : tableau « Face a la concurrence » et sommaire mobile colle (v35) */
.mb-v35-concurrence { margin: 28px 0 8px; }
.mb-v35-concurrence .mb-sel-table tbody tr:first-child { background: #FBF1EA; }
.mb-v35-concurrence .mb-sel-table tbody tr:first-child th a { font-weight: 800; }
@media (max-width: 1023px) {
  .mb-sommaire-mobile { position: sticky; top: 0; z-index: 40; box-shadow: 0 4px 14px rgba(44,34,27,.06); }
  .mb-sommaire-mobile[open] ul { max-height: 60vh; overflow-y: auto; }
  .mb-layout h2[id] { scroll-margin-top: 64px; }
}
.mb-v35-concurrence .mb-sel-table { font-size: 14px; }
.mb-v35-concurrence .mb-sel-table th, .mb-v35-concurrence .mb-sel-table td { padding: 10px 10px; }
.mb-v35-concurrence .mb-sel-table td.mb-sel-num { white-space: nowrap; }
@media (min-width: 761px) { .mb-v35-concurrence .mb-sel-table thead th:nth-child(4), .mb-v35-concurrence .mb-sel-table tbody td:nth-child(4) { display: none; } }

/* Tests en mobile : bouton Amazon dans le premier ecran (v35) */
@media (max-width: 760px) {
  .mb-test .mb-byline { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; margin-bottom: 10px; }
  .mb-test .mb-hero-photo { max-height: 180px; }
  .mb-test .mb-hero-photo img { max-height: 170px; width: auto; margin: 0 auto; object-fit: contain; }
  .mb-test .mb-hero-achat > .mb-pf-promesse { order: 6 !important; }
  .mb-test .mb-hero-achat > .mb-pour { order: 7 !important; }
  .mb-test .mb-hero-achat > .mb-contre { order: 8 !important; }
}

/* Mobile : en-tete plus compact et bandeau Black Friday sur une ligne (v35) */
@media (max-width: 760px) {
  .site-header .inside-header { padding-top: 6px !important; padding-bottom: 6px !important; }
  .mb-bandeau-bf { min-height: 40px !important; height: auto !important; }
  .mb-bandeau-bf .mb-bandeau-inner { padding-top: 9px !important; padding-bottom: 9px !important; min-height: 0 !important; }
  .mb-bandeau-bf .mb-bandeau-txt, .mb-bandeau-bf .mb-bandeau-sep, .mb-bandeau-bf .mb-bandeau-lien:not(.mb-bandeau-or) { display: none !important; }
  .mb-bandeau-bf .mb-bandeau-or::before { content: "Black Friday · "; color: #F8F4EE; }
}
