/* =========================================================
   MAISON BAMBINS - OVERRIDES CSS
   Version réorganisée et harmonisée
   Compatible home + page livre + page article
   À charger après assets/css/theme.css
   ========================================================= */

:root {
  --mb-ink: #24195d;
  --mb-ink-soft: #63558d;
  --mb-lavender: #8c5fb7;

  --mb-bg: #fbfaf8;
  --mb-bg-soft: #fcfcff;
  --mb-bg-books: #f6f2fb;
  --mb-bg-cta: #f3eef9;

  --mb-border: rgba(36, 25, 93, 0.08);
  --mb-border-soft: rgba(36, 25, 93, 0.06);

  --mb-shadow: 0 18px 42px rgba(36, 25, 93, 0.10);
  --mb-shadow-soft: 0 10px 26px rgba(36, 25, 93, 0.08);

  --accent-purple: #7c55b5;
  --accent-green: #69bf4b;
  --accent-orange: #f28b2f;
  --accent-sky: #52bce8;
  --accent-lavender: #a06bc7;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--mb-bg);
  color: var(--mb-ink);
  font-family: "Roboto", sans-serif;
}

h1, h2, h3, h4, h5, h6,
.brand-name,
.section-heading,
.book-title,
.article-detail-title,
.signup-box h2 {
  font-family: "Quicksand", sans-serif;
}

.container {
  max-width: 1180px;
}

/* =========================================================
   LIENS TITRES
   ========================================================= */

.hero-title-link,
.catalog-title-link,
.blog-title-link {
  color: inherit;
  text-decoration: none;
}

.hero-title-link:hover,
.catalog-title-link:hover,
.blog-title-link:hover {
  color: inherit;
  text-decoration: none;
}

/* =========================================================
   BOUTONS
   ========================================================= */

.btn {
  border-radius: 999px;
  font-weight: 700;
  padding: 0.95rem 1.55rem;
  font-size: 0.96rem;
  box-shadow: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, #ef6a23, #f28b2f);
  border: none;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #df5d19, #ea7b21);
}

.btn-secondary,
.btn-outline-primary {
  background: #fff;
  color: #ef6a23;
  border: 2px solid rgba(239, 106, 35, 0.65);
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: rgba(242, 139, 47, 0.06);
  color: #ef6a23;
  border-color: rgba(239, 106, 35, 0.95);
}

/* =========================================================
   HERO GLOBAL
   ========================================================= */

.maisonbambins-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(82, 188, 232, 0.10), transparent 24%),
    radial-gradient(circle at top right, rgba(140, 95, 183, 0.10), transparent 24%),
    linear-gradient(180deg, #fcfcff 0%, #fbfaf8 100%);
  padding: 0 0 3.5rem;
}

.hero-top {
  padding: 0.4rem 0 1.2rem;
}

.hero-top-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.hero-brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.hero-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  padding-top: 2px;
}

.brand-name {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--mb-ink);
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--mb-ink-soft);
  margin-top: 4px;
}

.hero-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 8px;
  transform: translateX(-125px);
}

.hero-nav a {
  text-decoration: none;
  color: var(--mb-ink);
  font-weight: 700;
  font-size: 0.92rem;
  transition: color 0.25s ease, transform 0.25s ease;
}

.hero-nav a:hover,
.hero-nav a:focus {
  color: var(--mb-lavender);
  transform: translateY(-1px);
}

.hero-top,
.hero-top-inner,
.hero-nav {
  position: relative;
  z-index: 20;
}

.hero-nav a {
  position: relative;
  z-index: 21;
  pointer-events: auto;
}

.hero-main {
  padding-top: 0.15rem;
}

.hero-main-row {
  align-items: center !important;
}

.hero-copy {
  max-width: 575px;
  padding-top: 1.2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mb-lavender);
  margin-bottom: 1.1rem;
}

.hero-title {
  font-size: clamp(2.45rem, 4vw, 4.25rem);
  line-height: 1.03;
  color: var(--mb-ink);
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}

.hero-description {
  max-width: 520px;
  font-size: 1.08rem;
  line-height: 1.72;
  color: rgba(36, 25, 93, 0.78);
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 0;
}

.hero-book-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-book-wrapper {
  width: 100%;
  min-height: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-book-frame {
  position: relative;
  display: inline-block;
}

.hero-book-image,
.image-placeholder-hero {
  width: 100%;
  max-width: 300px;
  height: 420px;
  border-radius: 14px;
  display: block;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(36, 25, 93, 0.14);
  background: #d9d2f3;
}

.hero-book-link {
  display: inline-block;
  text-decoration: none;
}

.hero-book-link:hover .hero-book-image {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(36, 25, 93, 0.18);
  transition: all 0.25s ease;
}

.book-badge {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(145deg, #79c952, #5ab43f);
  color: #fff;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 0.84rem;
  line-height: 1.15;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  box-shadow: 0 12px 24px rgba(77, 155, 46, 0.30);
  z-index: 3;
}

.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px dashed rgba(36, 25, 93, 0.18);
  color: rgba(36, 25, 93, 0.72);
  font-weight: 700;
  line-height: 1.45;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

.image-placeholder span {
  padding: 1rem;
  font-size: 0.92rem;
}

/* =========================================================
   HERO PAGE LIVRE
   ========================================================= */

.hero-book-page .hero-main-row {
  align-items: flex-start !important;
}

.hero-book-page .hero-copy {
  padding-top: 0.4rem;
}

.hero-book-page .hero-book-col {
  justify-content: flex-end;
  align-items: flex-start;
}

.hero-book-page .hero-book-wrapper {
  min-height: auto;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 0.4rem;
}

.hero-book-page .hero-book-frame {
  width: auto;
}

.hero-book-page .hero-book-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-top: 0;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(36, 25, 93, 0.14);
  display: block;
}

.hero-book-page .book-badge {
  display: none;
}

.read-more-link {
  display: inline-block;
  margin-left: 8px;
  font-weight: 600;
  color: #f37021;
}

/* =========================================================
   HOVER EDGE
   ========================================================= */

.hover-edge {
  position: relative;
}

.hover-edge::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: -1px;
  border-left: 3px solid var(--hover-edge-color, var(--accent-orange));
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
  z-index: 2;
}

.hover-edge:hover::before,
.hover-edge:focus-within::before {
  opacity: 1;
}

.accent-purple { --hover-edge-color: var(--accent-purple); }
.accent-green { --hover-edge-color: var(--accent-green); }
.accent-orange { --hover-edge-color: var(--accent-orange); }
.accent-sky { --hover-edge-color: var(--accent-sky); }
.accent-lavender { --hover-edge-color: var(--accent-lavender); }

/* =========================================================
   SECTIONS HOME
   ========================================================= */

.catalog-section,
.blog-section,
.signup-section {
  position: relative;
}

#livres {
  background: var(--mb-bg-books);
}

#blog {
  background: #ffffff;
}

#extrait {
  background: linear-gradient(180deg, #ffffff 0%, var(--mb-bg-cta) 100%);
}

.home-section {
  position: relative;
  padding-top: 3.2rem;
  padding-bottom: 3.2rem;
}

.home-section-container {
  padding-top: 0;
  padding-bottom: 0;
}

.home-section-tight-top {
  padding-top: 2rem;
}

.home-section + .home-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(62%, 760px);
  height: 1px;
  background: rgba(36, 25, 93, 0.08);
}

.section-heading-wrap {
  max-width: 720px;
  margin: 0 auto 2.2rem;
}

.section-heading {
  font-size: clamp(2rem, 2.6vw, 3rem);
  letter-spacing: -0.03em;
  color: var(--mb-ink);
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.section-intro,
.section-subheading {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(36, 25, 93, 0.68);
  margin: 0 auto;
  max-width: 760px;
}

#livres .section-heading-wrap,
#blog .section-heading-wrap {
  margin-bottom: 2rem;
}

/* =========================================================
   CARTES HOME
   ========================================================= */

.image-placeholder-catalog,
.image-placeholder-blog {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #ede7fa;
  border-radius: 18px 18px 0 0;
}

.alt-1 { background: #dff2d6; }
.alt-2 { background: #f8e0cf; }
.alt-3 { background: #e4ebfb; }
.alt-4 { background: #efe3fb; }
.alt-5 { background: #d9f3ed; }

.card-image-link {
  display: block;
  text-decoration: none;
}

.blog-card-image {
  width: 100%;
  display: block;
  background: #ede7fa;
  border-radius: 18px 18px 0 0;
}

/* Articles : format paysage conservé */
.blog-card-image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Livres : couverture visible en entier */
.catalog-card-image {
  width: 100%;
  height: 260px;

  object-fit: contain;
  object-position: center;

  background: #eaf4fb;

  padding: 16px 18px;
  box-sizing: border-box;

  border-bottom: 1px solid rgba(36, 25, 93, 0.05);
}

.catalog-card,
.blog-card {
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--mb-border);
  border-radius: 18px;
  height: 100%;
  box-shadow: var(--mb-shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.catalog-card:hover,
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(36, 25, 93, 0.12);
}

.catalog-content,
.blog-content {
  padding: 1.15rem 1.15rem 1.2rem;
}

.catalog-type,
.blog-meta {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--mb-lavender);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.catalog-content h3,
.blog-card h3 {
  font-size: 1.48rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
  color: var(--mb-ink);
}

.catalog-content p,
.blog-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(36, 25, 93, 0.7);
  margin-bottom: 0.85rem;
}

.catalog-link,
.blog-link {
  color: var(--mb-ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.catalog-link:hover,
.blog-link:hover {
  color: var(--mb-lavender);
}

.blog-button {
  min-width: 180px;
}

/* =========================================================
   SIGNUP
   ========================================================= */

.signup-box {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--mb-border);
  border-radius: 20px;
  box-shadow: var(--mb-shadow-soft);
  padding: 2rem 2rem 1.6rem;
  text-align: center;
}

.signup-box h2 {
  font-size: clamp(1.9rem, 2.1vw, 2.45rem);
  color: var(--mb-ink);
  margin-bottom: 0.8rem;
}

.signup-intro,
.signup-note {
  color: rgba(36, 25, 93, 0.7);
  line-height: 1.7;
}

.signup-form {
  margin-top: 1.2rem;
  margin-bottom: 0.8rem;
}

.form-control {
  min-height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(36, 25, 93, 0.12);
  padding: 0.95rem 1rem;
  box-shadow: none !important;
}

.form-control:focus {
  border-color: rgba(82, 188, 232, 0.55);
}

/* =========================================================
   ABOUT
   ========================================================= */

.about-section {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  background: linear-gradient(135deg, #261a66 0%, #8c57b9 100%);
  color: #fff;
}

.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 25%),
    radial-gradient(circle at bottom left, rgba(82,188,232,0.10), transparent 22%);
  pointer-events: none;
}

.about-content {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  z-index: 1;
}

.about-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.about-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.12);
  padding: 10px;
}

.about-section h2 {
  font-size: clamp(2rem, 2.8vw, 3rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: #fff;
}

.about-section p {
  color: rgba(255,255,255,0.82);
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.about-tags {
  margin-top: 1.35rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background: #fff;
  padding: 1.4rem 0 1.3rem;
  border-top: 1px solid rgba(36, 25, 93, 0.06);
}

.site-footer p {
  margin-bottom: 0.2rem;
  font-size: 0.88rem;
  color: rgba(36, 25, 93, 0.62);
}

/* =========================================================
   PAGE LIVRE SIMPLE
   Image à gauche, contenu à droite
   ========================================================= */

.book-page {
  background:
    radial-gradient(circle at top left, rgba(82, 188, 232, 0.10), transparent 24%),
    radial-gradient(circle at top right, rgba(140, 95, 183, 0.10), transparent 24%),
    linear-gradient(180deg, #fcfcff 0%, #fbfaf8 100%);
  padding: 2rem 0 4rem;
}

.book-page-container {
  max-width: 1180px;
}

.book-page-row {
  align-items: flex-start;
}

.book-cover-col {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.book-cover-wrap {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.book-cover-image {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(36, 25, 93, 0.14);
}

.book-content-col {
  display: flex;
  align-items: flex-start;
}

.book-content-wrap {
  width: 100%;
  padding-top: 0.2rem;
}

.book-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mb-lavender);
  margin-bottom: 1rem;
}

.book-title {
  font-size: clamp(2.4rem, 4vw, 4.1rem);
  line-height: 1.03;
  color: var(--mb-ink);
  letter-spacing: -0.04em;
  margin-bottom: 1.3rem;
}

.book-meta {
  margin-bottom: 1rem;
  color: var(--mb-ink-soft);
  font-size: 0.95rem;
}

.book-chapo {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(36, 25, 93, 0.78);
  margin-bottom: 1.4rem;
}

.book-content {
  color: rgba(36, 25, 93, 0.82);
  font-size: 1.08rem;
  line-height: 1.85;
}

.book-content p {
  margin-bottom: 1rem;
}

.book-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.6rem;
}

.book-bottom-link {
  margin-top: 2rem;
}

/* =========================================================
   PAGE ARTICLE DETAIL
   ========================================================= */

.article-detail-page {
  padding: 3.5rem 0 4.5rem;
}

.article-detail-header {
  max-width: 900px;
  margin: 0 auto 2rem;
  text-align: center;
}

.article-detail-meta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  color: var(--mb-ink-soft);
  font-size: 0.95rem;
}

.article-detail-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mb-lavender);
}

.article-detail-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--mb-ink);
  margin-bottom: 1rem;
}

.article-detail-chapo {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.8;
  color: rgba(36, 25, 93, 0.78);
}

.article-detail-hero {
  margin: 2rem auto 2.4rem;
  max-width: 1040px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--mb-shadow);
}

.article-hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-height: 540px;
  object-fit: cover;
}

.article-detail-content {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--mb-border);
  border-radius: 24px;
  box-shadow: var(--mb-shadow-soft);
  padding: 2rem 1.6rem;
}

.article-detail-content h2,
.article-detail-content h3,
.article-detail-content h4 {
  color: var(--mb-ink);
  margin-top: 1.8rem;
}

.article-detail-content p {
  line-height: 1.85;
}

.article-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.article-detail-bottom-link {
  margin-top: 2rem;
}

.article-nav-section {
    margin-top: 80px;
    padding-top: 50px;
    border-top: 1px solid #ece7f2;
}

.article-nav-title {
    text-align: center;
    margin-bottom: 35px;
    font-size: 2rem;
    color: #2f2674;
}

.article-nav-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: stretch;
}

.article-nav-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(32, 24, 86, 0.08);
    padding: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-nav-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(32, 24, 86, 0.12);
}

.article-nav-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8d82c4;
    margin-bottom: 12px;
}

.article-nav-thumb-link {
    display: block;
    margin-bottom: 14px;
}

.article-nav-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.article-nav-card h3 {
    margin-top: 10px;
    font-size: 1.1rem;
    line-height: 1.4;
    min-height: 2.8em;
}

.article-nav-link {
    color: #2f2674;
    text-decoration: none;
}

.article-nav-link:hover {
    color: #f28c28;
}

.article-nav-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.article-nav-center-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.article-nav-center-image {
    width: 220px;
    max-width: 100%;
    height: auto;
    display: block;
    opacity: 0.95;
}

@media (max-width: 991px) {
    .article-nav-grid {
        grid-template-columns: 1fr;
    }

    .article-nav-center {
        order: 3;
    }
}
/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {
  .maisonbambins-hero {
    padding-bottom: 2.5rem;
  }

  .hero-top-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1rem 1.15rem;
    padding-top: 0;
    transform: none;
  }

  .hero-main-row {
    align-items: flex-start !important;
  }

  .hero-copy {
    max-width: 100%;
    padding-top: 0.6rem;
    margin-bottom: 1rem;
  }

  .hero-description {
    max-width: 100%;
  }

  .hero-book-col {
    margin-top: 1.2rem;
  }

  .hero-book-wrapper {
    min-height: auto;
  }

  .hero-book-image,
  .image-placeholder-hero {
    max-width: 280px;
    height: 390px;
  }

  .book-badge {
    top: -12px;
    right: -12px;
    width: 82px;
    height: 82px;
    font-size: 0.76rem;
  }

  .hero-book-page .hero-book-col,
  .hero-book-page .hero-book-wrapper {
    justify-content: center;
    align-items: flex-start;
  }

  .hero-book-page .hero-book-image {
    max-width: 260px;
    height: auto;
    margin-top: 20px;
  }

  .hover-edge::before {
    display: none;
  }

  .home-section {
    padding-top: 2.4rem;
    padding-bottom: 2.4rem;
  }

  .home-section-tight-top {
    padding-top: 1.4rem;
  }

.blog-card-image {
  aspect-ratio: 16 / 10;
}

.catalog-card-image {
  aspect-ratio: 4 / 5;
}
  .article-detail-page {
    padding: 2.5rem 0 3.5rem;
  }

  .article-detail-content {
    padding: 1.4rem 1rem;
    border-radius: 18px;
  }

  .book-page {
    padding: 1.5rem 0 3rem;
  }

  .book-page-row {
    row-gap: 2rem;
  }

  .book-cover-col,
  .book-cover-wrap {
    justify-content: center;
  }

  .book-cover-image {
    max-width: 260px;
  }

  .book-content-wrap {
    padding-top: 0;
  }

  .book-title {
    font-size: 2.4rem;
  }
}

@media (max-width: 767.98px) {
  .hero-top {
    padding-top: 0.4rem;
    padding-bottom: 0.8rem;
  }

  .hero-brand img {
    width: 46px;
    height: 46px;
  }

  .brand-name {
    font-size: 1.3rem;
  }

  .brand-tagline {
    font-size: 0.84rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-actions,
  .book-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-book-image,
  .image-placeholder-hero {
    height: 340px;
  }

  .book-badge {
    top: -10px;
    right: -10px;
    width: 74px;
    height: 74px;
    font-size: 0.72rem;
  }

  .hero-book-page .hero-book-image {
    max-width: 220px;
    height: auto;
    margin-top: 16px;
  }

  .signup-box {
    padding: 1.4rem 1rem 1.2rem;
  }

  .about-section {
    padding: 4rem 0;
  }

  .book-cover-image {
    max-width: 220px;
  }

  .book-title {
    font-size: 2rem;
  }

  .book-content {
    font-size: 1rem;
    line-height: 1.75;
  }
}

/* =========================================================
   categorie
   ========================================================= */

.pagination-wrap {
  margin-top: 2.5rem;
}

.pagination-wrap nav,
.pagination-wrap p {
  display: inline-block;
}

.pagination-wrap a,
.pagination-wrap span,
.pagination-wrap strong {
  display: inline-block;
  min-width: 42px;
  padding: 0.7rem 0.9rem;
  margin: 0 4px 6px;
  text-decoration: none;
  border: 1px solid rgba(36, 25, 93, 0.12);
  border-radius: 10px;
  background: #fff;
  color: var(--mb-ink);
  font-weight: 600;
}

.pagination-wrap a:hover {
  border-color: rgba(239, 106, 35, 0.45);
  color: #ef6a23;
}

.pagination-wrap .current,
.pagination-wrap strong {
  background: var(--mb-ink);
  color: #fff;
  border-color: var(--mb-ink);
}

/* =========================================================
   CATEGORY HERO ILLUSTRATIONS - RESPONSIVE FIX
   ========================================================= */

.category-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.category-hero-illustration,
.category-hero-illustration-catalog,
.category-hero-illustration-blog {
  display: block;
  width: 100%;
  height: auto;
  max-width: 800px;
  object-fit: contain;
  opacity: 0.95;
}

/* TABLETTE */
@media (max-width: 991.98px) {
  .category-hero-illustration,
  .category-hero-illustration-catalog,
  .category-hero-illustration-blog {
    max-width: 600px;
  }
}

/* MOBILE */
@media (max-width: 767.98px) {
  .category-hero {
    margin-bottom: 1.2rem;
  }

  .category-hero-illustration,
  .category-hero-illustration-catalog,
  .category-hero-illustration-blog {
    max-width: 100%;
  }
}

.category-hero-illustration {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInHero 0.6s ease forwards;
}

@keyframes fadeInHero {
  to {
    opacity: 0.95;
    transform: translateY(0);
  }
}

/* =========================================================
   HOME HERO ILLUSTRATION
   ========================================================= */

.hero-with-illustration {
  position: relative;
  overflow: hidden;
}

.hero-illustration-bg {
  position: absolute;
  top: 10px;

  left: 50%;
  transform: translateX(-50%); /* ← clé pour centrer */

  width: 100%;
  display: flex;
  justify-content: center;

  pointer-events: none;
  z-index: 1;
}

.hero-illustration-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  opacity: 0.3;
  filter: contrast(1.05) brightness(0.95);
  object-fit: contain;
}

.hero-with-illustration .hero-main {
  position: relative;
  z-index: 2;
  padding-top: 90px;
}

@media (max-width: 991.98px) {
  .hero-illustration-image {
    max-width: 600px;
  }

  .hero-with-illustration .hero-main {
    padding-top: 70px;
  }
}

@media (max-width: 767.98px) {
  .hero-illustration-bg {
    top: 0;
    padding: 0 1rem;
  }

  .hero-illustration-image {
    max-width: 100%;
  }

  .hero-with-illustration .hero-main {
    padding-top: 40px;
  }
}

/* =========================================================
   FOOTER + OVERLAP EXTRACT
   ========================================================= */

/* le bloc extrait vient chevaucher le footer */
.signup-overlap {
  position: relative;
  z-index: 20;
  padding-bottom: 0;
  margin-bottom: 0;
}

.signup-overlap .signup-box {
  position: relative;
  z-index: 21;
  transform: translateY(60px);
  margin-bottom: -60px;
  box-shadow: 0 24px 48px rgba(36, 25, 93, 0.10);
}

/* footer global */
.site-footer {
  position: relative;
  margin-top: 0;
  background: transparent;
}

/* grande zone bleue */
.footer-main {
  position: relative;
  background: #67b9dd;
  border-top: 10px solid #67b9dd;
  padding: 140px 0 56px;
}

/* grille contenu */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.footer-col p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.55rem;
}

.footer-col a {
  color: #ffffff;
  text-decoration: none;
}

.footer-col a:hover {
  color: #24195d;
}

/* barre copyright en bas, inchangée dans l'esprit */
.footer-bottom {
  background: #f6f2fb;
  text-align: center;
  padding: 1rem;
  border-top: 1px solid rgba(36, 25, 93, 0.10);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(36, 25, 93, 0.62);
}

/* design logo */
.footer-logo img {
    height: 55px;
    opacity: 0.95;
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
}

/* email */
.signup-message {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
}

.signup-message.is-success {
    background: #eaf8ee;
    color: #1f6b38;
    border: 1px solid #b9e2c5;
}

.signup-message.is-error {
    background: #fff0f0;
    color: #a33a3a;
    border: 1px solid #efc2c2;
}

/* responsive */
@media (max-width: 991.98px) {
  .signup-overlap .signup-box {
    transform: translateY(56px);
    margin-bottom: -56px;
  }

  .footer-main {
    padding: 118px 0 48px;
  }
}

@media (max-width: 767.98px) {
  .signup-overlap .signup-box {
    transform: translateY(36px);
    margin-bottom: -36px;
  }

  .footer-main {
    padding: 92px 0 40px;
  }
}