:root {
  --bf-aubergine: #2e1423;
  --bf-corail: #e5644c;
  --bf-rose: #d98479;
  --bf-beige: #f3e6d5;
  --bf-butter: #f2b644;
  --bf-brown: #6f5548;
  --bf-cream: #fff9f2;
  --bf-white: #fff;
  --bf-display: "Bodoni Moda", Didot, "Times New Roman", serif;
  --bf-body: Manrope, Arial, sans-serif;
  --bf-shadow: 0 22px 70px rgba(46, 20, 35, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
body, button, input, textarea, select { font-family: var(--bf-body); }
a { transition: color .2s ease, background-color .2s ease, transform .2s ease, opacity .2s ease; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--bf-butter);
  outline-offset: 3px;
}

.bf-shell {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

.bf-section { padding: clamp(5rem, 9vw, 8.5rem) 0; }
.bf-kicker {
  margin: 0 0 1rem;
  color: var(--bf-corail);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.bf-section-title {
  max-width: 820px;
  margin: 0;
  font-family: var(--bf-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .98;
}
.bf-section-intro {
  max-width: 660px;
  margin: 1.4rem 0 0;
  color: var(--bf-brown);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

/* Header */
.bf-header {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 9999;
  margin: 0;
  padding: 0;
  background: var(--bf-aubergine);
  color: var(--bf-white);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: box-shadow .25s ease;
}
.bf-header.bf-scrolled {
  box-shadow: 0 16px 34px rgba(0,0,0,.22);
}
.bf-header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.bf-logo-link { display: block; width: clamp(190px, 22vw, 285px); }
.bf-wordmark {
  display: block;
  width: 100%;
  aspect-ratio: 10 / 2;
  background: url('../images/logo-beautifood-principal.png') center / contain no-repeat;
}
.bf-header .wp-block-navigation { font-size: .86rem; font-weight: 700; letter-spacing: .02em; }
.bf-header .wp-block-navigation a { color: var(--bf-white); }
.bf-header .wp-block-navigation-item__content {
  display: inline-flex;
  align-items: center;
  padding: .55rem 1.05rem;
  border-radius: 999px;
  transition: background .25s ease, color .25s ease;
}
.bf-header .wp-block-navigation-item__content:hover {
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
  backdrop-filter: blur(6px);
  color: var(--bf-rose);
}
.bf-header .wp-block-navigation__responsive-container-open,
.bf-header .wp-block-navigation__responsive-container-close { color: var(--bf-white); }

/* Mobile menu: right-side drawer with dimmed backdrop instead of a full opaque takeover */
.bf-header .wp-block-navigation__responsive-container.is-menu-open {
  background: rgba(46,20,35,.55) !important;
  backdrop-filter: blur(3px);
}
.bf-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: min(86vw, 380px);
  height: 100%;
  margin: 0;
  padding: 5.5rem 2.2rem 2.5rem;
  background: var(--bf-aubergine) !important;
  box-shadow: -25px 0 60px rgba(0,0,0,.35);
  align-items: stretch;
  overflow-y: auto;
  animation: bf-drawer-in .38s cubic-bezier(.16,1,.3,1);
}
.bf-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  padding: .85rem 0;
  font-size: 1.05rem;
}
.bf-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover {
  background: none;
  backdrop-filter: none;
}
@keyframes bf-drawer-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .bf-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    animation: none;
  }
}
.bf-nav-cta a {
  padding: .65rem 1rem !important;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
}
.bf-nav-cta a:hover { background: var(--bf-corail); border-color: var(--bf-corail); color: var(--bf-white); }

/* Hero */
.bf-hero {
  position: relative;
  min-height: min(810px, calc(100vh - 92px));
  margin: 0;
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(5rem, 8vw, 7rem);
  overflow: hidden;
  background: var(--bf-aubergine);
  color: var(--bf-white);
}
.bf-hero::before {
  content: "";
  position: absolute;
  width: 36vw;
  height: 36vw;
  max-width: 560px;
  max-height: 560px;
  right: -9vw;
  top: -12vw;
  border: 1px solid rgba(217,132,121,.45);
  border-radius: 50%;
}
.bf-hero::after {
  content: "";
  position: absolute;
  left: -8rem;
  bottom: -9rem;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: var(--bf-corail);
  opacity: .08;
}
.bf-hero-grid {
  position: relative;
  z-index: 2;
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}
.bf-hero .bf-kicker { color: var(--bf-rose); }
.bf-hero-title {
  max-width: 850px;
  margin: 0;
  font-family: var(--bf-display);
  font-size: clamp(4rem, 8vw, 7.3rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .87;
}
.bf-hero-title em { color: var(--bf-rose); font-weight: 400; }
.bf-hero-copy {
  max-width: 670px;
  margin: 1.8rem 0 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(1.06rem, 1.6vw, 1.22rem);
  line-height: 1.75;
}
.bf-buttons { margin-top: 2.2rem; }
.bf-button .wp-block-button__link { box-shadow: none; }
.bf-button .wp-block-button__link:hover { transform: translateY(-2px); background: #ef755f; }
.bf-button-outline .wp-block-button__link {
  border: 1px solid rgba(255,255,255,.55);
  background: transparent !important;
  color: var(--bf-white) !important;
}
.bf-button-outline .wp-block-button__link:hover { border-color: var(--bf-white); background: rgba(255,255,255,.08) !important; }
.bf-manifesto {
  position: relative;
  max-width: 430px;
  justify-self: end;
  padding: clamp(2rem, 4vw, 3.4rem);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 160px 160px 24px 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.035));
  box-shadow: 0 40px 90px rgba(0,0,0,.22);
  backdrop-filter: blur(8px);
}
.bf-manifesto::before {
  content: "";
  position: absolute;
  width: 56px;
  height: 56px;
  right: 16%;
  top: -28px;
  border-radius: 50% 50% 50% 8px;
  background: var(--bf-butter);
  transform: rotate(18deg);
}
.bf-signature {
  margin: 0 0 .1rem;
  color: var(--bf-rose);
  font-family: var(--bf-body);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.3;
  text-align: center;
}
.bf-manifesto-title { margin: 1rem 0; color: var(--bf-white); font-family: var(--bf-display); font-size: 2.1rem; }
.bf-manifesto p { color: rgba(255,255,255,.76); }
.bf-emph { color: var(--bf-corail); font-style: normal; font-weight: 700; }

/* Light variant of the "porte" card, for use on light-background pages (e.g. Accompagnements) */
.bf-manifesto--light {
  border: 1px solid rgba(111,85,72,.14);
  background: linear-gradient(145deg, rgba(242,182,68,.22), rgba(242,182,68,.08));
  box-shadow: 0 30px 70px rgba(111,85,72,.1);
  backdrop-filter: none;
}
.bf-manifesto--light::before { background: var(--bf-corail); }
.bf-manifesto--light .bf-signature { color: var(--bf-corail); }
.bf-manifesto--light .bf-manifesto-title { color: var(--bf-aubergine); }
.bf-manifesto--light p { color: var(--bf-brown); }
.bf-manifesto--light .bf-emph { color: var(--bf-corail); }

/* Standalone wrapper for the light "porte" card when used outside the hero grid (e.g. via the bad-method pattern) */
.bf-bad-intro { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--bf-cream); }
.bf-bad-intro .bf-manifesto { max-width: 560px; margin: 0 auto; justify-self: auto; }
.bf-mini-list { display: grid; gap: .85rem; margin: 1.7rem 0 0; padding: 0; list-style: none; }
.bf-mini-list li { display: flex; align-items: center; gap: .75rem; font-size: .93rem; font-weight: 700; }
.bf-mini-list span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--bf-corail);
  color: var(--bf-white);
  font-family: var(--bf-display);
}

/* Method */
.bf-method { background: var(--bf-cream); }
.bf-method-head { display: flex; align-items: end; justify-content: space-between; gap: 3rem; }
.bf-method-head .bf-section-intro { margin-bottom: .4rem; }
.bf-pillars {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.bf-pillar {
  position: relative;
  min-height: 360px;
  padding: 2rem;
  overflow: hidden;
  border-radius: 22px;
  background: var(--bf-white);
  box-shadow: 0 12px 35px rgba(46,20,35,.06);
}
.bf-pillar:nth-child(2) { background: var(--bf-beige); }
.bf-pillar:nth-child(3) { background: var(--bf-aubergine); color: var(--bf-white); }
.bf-pillar-letter {
  margin: 0;
  color: var(--bf-corail);
  font-family: var(--bf-display);
  font-size: clamp(5rem, 10vw, 8rem);
  line-height: .8;
}
.bf-pillar h3 { margin: 5rem 0 .6rem; font-size: 2rem; }
.bf-pillar p { margin: 0; color: var(--bf-brown); }
.bf-pillar:nth-child(3) p { color: rgba(255,255,255,.72); }
.bf-pillar::after {
  content: "";
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .16;
}

/* Routes */
.bf-routes { background: var(--bf-white); }
.bf-route-grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 1.35rem; margin-top: 3.5rem; }
.bf-route-card {
  position: relative;
  min-height: 470px;
  padding: clamp(2rem, 4vw, 3.5rem);
  overflow: hidden;
  border-radius: 26px;
  background: var(--bf-beige);
}
.bf-route-card--sport { background: var(--bf-butter); }
.bf-route-number { margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.bf-route-card h3 { max-width: 470px; margin: 5rem 0 1rem; font-size: clamp(2.4rem, 4vw, 4rem); }
.bf-route-card > p:not(.bf-route-number) { max-width: 520px; color: var(--bf-brown); }
.bf-text-link { display: inline-flex; align-items: center; gap: .55rem; margin-top: 2rem; font-weight: 800; }
.bf-text-link::after { content: "→"; font-size: 1.2rem; transition: transform .2s ease; }
.bf-text-link:hover::after { transform: translateX(5px); }
.bf-route-orbit {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 250px;
  height: 250px;
  border: 46px solid rgba(46,20,35,.07);
  border-radius: 50%;
}

/* Offers */
.bf-offers { background: var(--bf-aubergine); color: var(--bf-white); }
.bf-offers .bf-section-intro { color: rgba(255,255,255,.68); }
.bf-offer-grid { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 3.5rem; }
.bf-offer-card {
  min-height: 330px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 20px;
  background: rgba(255,255,255,.055);
}
.bf-offer-card:nth-child(2) { background: var(--bf-corail); border-color: var(--bf-corail); }
.bf-offer-tag { color: var(--bf-rose); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.bf-offer-card:nth-child(2) .bf-offer-tag { color: var(--bf-white); }
.bf-offer-card h3 { margin: 4.5rem 0 1rem; color: var(--bf-white); font-size: 2rem; }
.bf-offer-card p { color: rgba(255,255,255,.7); }
.bf-offer-card a { color: var(--bf-white); }

/* Blog */
.bf-blog { background: var(--bf-cream); }
.bf-blog .wp-block-query { margin-top: 3.5rem; }
.bf-post-grid { gap: 1.25rem !important; }
.bf-post-grid > li {
  padding: 1rem;
  border-radius: 20px;
  background: var(--bf-white);
  box-shadow: 0 10px 35px rgba(46,20,35,.055);
}
.bf-post-grid .wp-block-post-featured-image img { aspect-ratio: 4 / 3; border-radius: 14px; object-fit: cover; }
.bf-post-grid .wp-block-post-date { margin-top: 1.3rem; color: var(--bf-corail); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.bf-post-grid .wp-block-post-title { margin: .65rem 0; font-size: 1.75rem; line-height: 1.08; }
.bf-post-grid .wp-block-post-excerpt { color: var(--bf-brown); font-size: .92rem; }

.bf-js .bf-pillar,
.bf-js .bf-route-card,
.bf-js .bf-offer-card,
.bf-js .bf-post-grid > li {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease var(--bf-delay, 0ms), transform .65s ease var(--bf-delay, 0ms);
}
.bf-js .bf-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Newsletter CTA */
.bf-newsletter { background: var(--bf-rose); }
.bf-newsletter-card {
  position: relative;
  display: grid !important;
  grid-template-columns: 1.35fr .65fr;
  align-items: center;
  gap: 3rem;
  padding: clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
  border-radius: 28px;
  background: var(--bf-cream);
}
.bf-newsletter-card::after {
  content: "";
  position: absolute;
  right: -5rem;
  bottom: -8rem;
  width: 22rem;
  height: 22rem;
  border: 65px solid var(--bf-butter);
  border-radius: 50%;
  opacity: .65;
}
.bf-newsletter-card > * { position: relative; z-index: 2; }
.bf-newsletter-card h2 { margin: 0; font-size: clamp(2.6rem, 5vw, 5.2rem); }
.bf-newsletter-card p { max-width: 650px; color: var(--bf-brown); }
.bf-newsletter-action { justify-self: end; }

/* Content templates */
.bf-page-hero { padding: clamp(5rem, 9vw, 8rem) 0 4rem; background: var(--bf-beige); }
.bf-page-hero h1 { max-width: 920px; margin: 0; font-size: clamp(3.4rem, 7vw, 6.5rem); }
.bf-content { padding: clamp(3rem, 7vw, 6rem) 0; }
.bf-content :where(h2,h3,h4) { margin-top: 2em; }
.bf-content a { color: var(--bf-corail); text-decoration: underline; text-underline-offset: .16em; }
.bf-content img { border-radius: 18px; }
.bf-archive-grid { margin-block: 3rem; }
.bf-pagination { margin-top: 3rem; }
.bf-404 { min-height: 65vh; display: grid; place-items: center; text-align: center; }
.bf-404-code { margin: 0; color: var(--bf-rose); font-family: var(--bf-display); font-size: clamp(6rem, 15vw, 12rem); line-height: .8; }

/* WooCommerce */
.woocommerce ul.products li.product,
.wc-block-grid__product {
  padding: 1rem !important;
  border-radius: 18px;
  background: var(--bf-white);
}
.woocommerce ul.products li.product img,
.wc-block-grid__product-image img { border-radius: 12px; }
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  border-radius: 999px !important;
  background: var(--bf-corail) !important;
  color: var(--bf-white) !important;
}

/* Footer */
.bf-footer { margin: 0; padding: 4rem 0 1.5rem; background: var(--bf-aubergine); color: var(--bf-white); }
.bf-footer-top { display: grid !important; grid-template-columns: 1.3fr .7fr .7fr; gap: 3rem; align-items: start; }
.bf-footer .bf-logo-link { width: 260px; }
.bf-footer-copy { max-width: 430px; color: rgba(255,255,255,.62); font-size: .9rem; }
.bf-footer h3 { margin-top: 0; color: var(--bf-rose); font-family: var(--bf-body); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.bf-footer ul { margin: 0; padding: 0; list-style: none; }
.bf-footer li { margin: .55rem 0; }
.bf-footer a { color: rgba(255,255,255,.78); }
.bf-footer a:hover { color: var(--bf-rose); }
.bf-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.45);
  font-size: .75rem;
}

@media (max-width: 980px) {
  .bf-hero-grid { grid-template-columns: 1fr; }
  .bf-manifesto { max-width: 600px; justify-self: start; border-radius: 120px 120px 24px 24px; }
  .bf-method-head { display: block; }
  .bf-pillars, .bf-offer-grid { grid-template-columns: 1fr; }
  .bf-pillar { min-height: 300px; }
  .bf-pillar h3 { margin-top: 3rem; }
  .bf-footer-top { grid-template-columns: 1fr 1fr; }
  .bf-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .bf-shell { width: min(100% - 28px, 1240px); }
  .bf-header-inner { min-height: 76px; }
  .bf-logo-link { width: 205px; }
  .bf-hero { min-height: auto; padding-top: 4.5rem; }
  .bf-hero-title { font-size: clamp(3.6rem, 17vw, 5.1rem); }
  .bf-page-hero h1 { font-size: clamp(2.1rem, 9vw, 3.4rem); letter-spacing: -.02em; }
  .bf-route-grid, .bf-newsletter-card { grid-template-columns: 1fr; }
  .bf-route-card { min-height: 400px; }
  .bf-newsletter-action { justify-self: start; }
  .bf-footer-top { grid-template-columns: 1fr; }
  .bf-footer-brand { grid-column: auto; }
  .bf-footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
