/*
Theme Name:   Mbodiène Fruits de Mer
Theme URI:    https://fruitsdemersenegal.com/
Description:  Thème enfant Kadence pour la boutique Mbodiène Fruits de Mer (bleu nuit, Fraunces et Figtree).
Author:       GIE Mbodiène Fruits de Mer
Template:     kadence
Version:      1.2.1
Text Domain:  mbodiene
*/

:root {
  --mbd-night: #0a1f38;
  --mbd-deep: #0f2947;
  --mbd-navy: #16375a;
  --mbd-ocean: #2b7ab5;
  --mbd-gold: #e8a11c;
  --mbd-gold2: #cf8b12;
  --mbd-sun: #f6c04a;
  --mbd-green: #4a8b3a;
  --mbd-pearl: #fbf7f0;
  --mbd-sand: #f3ebda;
  --mbd-cream: #ece0cc;
  --mbd-ink: #14263c;
  --mbd-muted: #5f6f80;
  --mbd-line: rgba(22, 55, 90, .13);
  --mbd-serif: "Fraunces", Georgia, serif;
  --mbd-sans: "Figtree", system-ui, sans-serif;

  /* Palette Kadence */
  --global-palette1: var(--mbd-navy);
  --global-palette2: var(--mbd-gold2);
  --global-palette3: var(--mbd-ink);
  --global-palette4: var(--mbd-ink);
  --global-palette5: var(--mbd-muted);
  --global-palette6: var(--mbd-muted);
  --global-palette7: var(--mbd-cream);
  --global-palette8: var(--mbd-sand);
  --global-palette9: var(--mbd-pearl);
}

body {
  font-family: var(--mbd-sans);
  color: var(--mbd-ink);
  background: var(--mbd-sand);
}

h1, h2, h3, h4, .entry-title, .woocommerce-loop-product__title, .product_title {
  font-family: var(--mbd-serif);
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--mbd-navy);
}

/* En-tête */
.site-header-wrap, #masthead { background: rgba(251, 247, 240, .95); }

/* Boutons */
.button, button.button, .wp-block-button__link, .single_add_to_cart_button, .checkout-button {
  border-radius: 999px !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, var(--mbd-sun), var(--mbd-gold)) !important;
  color: var(--mbd-night) !important;
  border: 0 !important;
}
.button:hover, .single_add_to_cart_button:hover { filter: brightness(1.05); transform: translateY(-1px); }

.mbd-btn-wa, a.mbd-btn-wa {
  display: inline-flex; align-items: center; gap: .5em;
  background: #25d366 !important; color: #06331a !important;
  border-radius: 999px; padding: .8em 1.4em; font-weight: 700; text-decoration: none;
}

/* Cartes produits */
.woocommerce ul.products li.product {
  background: var(--mbd-pearl);
  border: 1px solid var(--mbd-line);
  border-radius: 20px;
  padding-bottom: 16px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px -28px rgba(10, 31, 56, .5);
}
.woocommerce ul.products li.product .price, .woocommerce div.product p.price {
  color: var(--mbd-navy); font-weight: 700;
}

/* Encarts maison */
.mbd-note {
  background: var(--mbd-pearl);
  border: 1px solid var(--mbd-line);
  border-left: 4px solid var(--mbd-gold);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 12px 0;
  font-size: .95rem;
}
.mbd-note strong { color: var(--mbd-navy); }
.mbd-badge {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; background: var(--mbd-green); color: #fff;
  padding: .35em .7em; border-radius: 999px; margin-left: .4em; vertical-align: middle;
}

/* Bouton WhatsApp flottant */
.mbd-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .8);
}
.mbd-fab svg { width: 28px; height: 28px; fill: #fff; }

/* Pied de page */
.site-footer { background: var(--mbd-night); color: #cdd8e2; }
.site-footer a { color: #cdd8e2; }
.site-footer a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

/* Logo : taille maîtrisée */
.site-branding .custom-logo, .site-header .custom-logo { max-height: 64px; width: auto; }
@media (max-width: 768px) { .site-branding .custom-logo, .site-header .custom-logo { max-height: 48px; } }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1.1rem; }
.woocommerce-privacy-policy-text { font-size: .85rem; color: var(--mbd-muted); }

/* ---------- Mouvement ---------- */
:root {
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.645, .045, .355, 1);
}
/* Apparition au défilement : active seulement si le script a chargé (classe mbd-js) */
.mbd-js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.mbd-js [data-reveal].is-in { opacity: 1; transform: none; }
.mbd-rise { animation: mbd-rise .8s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 120ms + 80ms); }
@keyframes mbd-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.mbd-btn-gold, .mbd-btn-wa, .button, .single_add_to_cart_button { transition: transform .15s ease-out, filter .15s ease, box-shadow .2s ease; }
.mbd-btn-gold:active, .mbd-btn-wa:active, .button:active, .single_add_to_cart_button:active { transform: scale(.97); }
.mbd-btn-gold:hover, .mbd-btn-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(10, 31, 56, .55); }

/* ---------- En-tête ---------- */
.site-header-row-container-inner { background: rgba(251, 247, 240, .96); backdrop-filter: blur(10px); }
.main-navigation .primary-menu-container > ul > li.menu-item > a { font-weight: 600; color: var(--mbd-navy); }
.main-navigation .primary-menu-container > ul > li.menu-item > a:hover { color: var(--mbd-gold2); }

/* ---------- Page d'accueil ---------- */
.home .entry-hero, .home .entry-header { display: none; }
.home .content-container, .home .entry-content-wrap { max-width: 1180px; }
.home .entry.content-bg { background: transparent; box-shadow: none; padding: 0; }
.home .content-area { margin-top: 12px; }
.mbd-eye { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--mbd-gold2); }

.mbd-hero { position: relative; isolation: isolate; color: #fff; border-radius: 28px; padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 64px) clamp(80px, 9vw, 120px); overflow: hidden; background: var(--mbd-deep); }
.mbd-hero-bg { position: absolute; inset: 0; z-index: -2; background: linear-gradient(160deg, rgba(15, 41, 71, .94), rgba(22, 55, 90, .86) 55%, rgba(10, 31, 56, .96)), url("/wp-content/uploads/mbodiene/lagune-mbodiene-fond.webp") center / cover; }
.mbd-hero-sun { position: absolute; z-index: -1; top: -18%; right: -6%; width: min(48vw, 520px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(246, 192, 74, .5), rgba(232, 161, 28, .14) 45%, transparent 68%); animation: mbd-glow 9s ease-in-out infinite alternate; }
@keyframes mbd-glow { from { transform: scale(.94); opacity: .8; } to { transform: scale(1.06); opacity: 1; } }
.mbd-hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.mbd-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.06; margin: .3em 0; }
.mbd-hero h1 em { color: var(--mbd-sun); font-style: italic; }
.mbd-hero p { color: #e7eef5; font-size: 1.08rem; max-width: 46ch; }
.mbd-hero .mbd-eye { color: var(--mbd-sun); }
.mbd-hero-img { position: relative; }
.mbd-hero-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7); }
.mbd-badge-float { position: absolute; background: var(--mbd-pearl); color: var(--mbd-navy); font-weight: 700; font-size: .9rem; padding: .6em 1em; border-radius: 14px; box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .5); animation: mbd-float 5s ease-in-out infinite alternate; }
.mbd-badge-float b { color: var(--mbd-gold2); }
.mbd-b1 { top: 18px; left: -18px; }
.mbd-b2 { bottom: -16px; right: 20px; animation-delay: -2.5s; }
@keyframes mbd-float { from { transform: translateY(0); } to { transform: translateY(-8px); } }
.mbd-waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(50px, 7vw, 90px); }
.mbd-waves .w1 { fill: rgba(242, 182, 50, .9); animation: mbd-swell 7s ease-in-out infinite alternate; transform-origin: center; }
.mbd-waves .w2 { fill: var(--mbd-sand); animation: mbd-swell 9s ease-in-out infinite alternate-reverse; transform-origin: center; }
@keyframes mbd-swell { from { transform: translateX(-2%) scaleY(1); } to { transform: translateX(2%) scaleY(1.12); } }
.mbd-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.4em; }
.mbd-btn-gold { display: inline-flex; align-items: center; background: linear-gradient(135deg, var(--mbd-sun), var(--mbd-gold)); color: var(--mbd-night) !important; font-weight: 700; padding: .85em 1.55em; border-radius: 999px; text-decoration: none; }

.mbd-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: var(--mbd-navy); color: #eaf1f7; border-radius: 16px; padding: 16px 20px; margin: 18px 0 8px; font-size: .92rem; text-align: center; }
.mbd-strip b { color: var(--mbd-sun); }
.mbd-sec { margin: clamp(48px, 7vw, 88px) 0; }
.mbd-head { text-align: center; max-width: 660px; margin: 0 auto 30px; }
.mbd-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: .2em 0 0; }
.mbd-head-light h2 { color: #fff; }

.mbd-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.mbd-card { display: flex; flex-direction: column; background: var(--mbd-pearl); border: 1px solid var(--mbd-line); border-radius: 22px; overflow: hidden; text-decoration: none !important; color: var(--mbd-ink); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.mbd-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(10, 31, 56, .55); }
.mbd-card-img { display: block; overflow: hidden; }
.mbd-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s var(--ease-out); }
.mbd-card:hover img { transform: scale(1.06); }
.mbd-card > div { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: .4em; flex: 1; }
.mbd-card h3 { margin: 0; font-size: 1.35rem; }
.mbd-card p { margin: 0; color: var(--mbd-muted); font-size: .93rem; flex: 1; }
.mbd-more { font-weight: 700; color: var(--mbd-gold2); font-size: .9rem; }
.mbd-more::after { content: " \2192"; display: inline-block; transition: transform .2s ease; }
.mbd-card:hover .mbd-more::after { transform: translateX(4px); }

.mbd-band { background: var(--mbd-deep); border-radius: 28px; padding: clamp(36px, 5vw, 60px) clamp(20px, 4vw, 48px); margin: clamp(48px, 7vw, 88px) 0; }
.mbd-gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.mbd-gallery a { display: block; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); }
.mbd-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s var(--ease-out); }
.mbd-gallery a:hover img { transform: scale(1.07) rotate(-1deg); }

.mbd-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; counter-reset: s; padding: 0; margin: 0; }
.mbd-steps li { counter-increment: s; background: var(--mbd-pearl); border: 1px solid var(--mbd-line); border-radius: 18px; padding: 22px; position: relative; }
.mbd-steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--mbd-gold); color: var(--mbd-night); font-weight: 800; margin-bottom: 12px; }

.mbd-zones { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--mbd-pearl); border: 1px solid var(--mbd-line); border-radius: 28px; padding: clamp(28px, 4vw, 48px); }
.mbd-zones h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: .2em 0 .4em; }
.mbd-zone-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mbd-zone-list li { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--mbd-line); transition: transform .2s var(--ease-out); }
.mbd-zone-list li:hover { transform: translateX(4px); }
.mbd-zone-list b { color: var(--mbd-navy); }

.mbd-story { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.mbd-story-imgs { position: relative; }
.mbd-story-imgs img { width: 100%; border-radius: 22px; aspect-ratio: 4/3; object-fit: cover; border: 4px solid #fff; box-shadow: 0 26px 60px -30px rgba(10, 31, 56, .5); }
.mbd-story-imgs .mbd-story-2 { position: absolute; width: 42%; aspect-ratio: 1; right: -18px; bottom: -28px; transform: rotate(3deg); }
.mbd-faq { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mbd-faq p { background: var(--mbd-pearl); border: 1px solid var(--mbd-line); border-radius: 16px; padding: 18px; margin: 0; }
.mbd-center { text-align: center; margin-top: 20px; }

.mbd-cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: linear-gradient(135deg, var(--mbd-navy), var(--mbd-night)); color: #fff; border-radius: 28px; padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px); margin: clamp(48px, 7vw, 80px) 0 20px; }
.mbd-cta-band h2 { color: #fff; margin: 0 0 .2em; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.mbd-cta-band p { margin: 0; color: #c6d4e2; }

/* ---------- Boutique ---------- */
.woocommerce ul.products li.product a img { border-radius: 16px 16px 0 0; transition: transform .5s var(--ease-out); }
.woocommerce ul.products li.product:hover a img { transform: scale(1.04); }
.woocommerce ul.products li.product .woocommerce-loop-product__link { overflow: hidden; display: block; }
.woocommerce ul.products li.product { animation: mbd-rise .6s var(--ease-out) both; }
.woocommerce ul.products li.product:nth-child(2) { animation-delay: .06s; }
.woocommerce ul.products li.product:nth-child(3) { animation-delay: .12s; }
.woocommerce ul.products li.product:nth-child(4) { animation-delay: .18s; }
.woocommerce ul.products li.product:nth-child(n+5) { animation-delay: .24s; }
.entry-hero .entry-hero-container-inner { background: linear-gradient(160deg, var(--mbd-deep), var(--mbd-navy)) !important; }
.entry-hero .entry-title, .entry-hero .archive-title, .entry-hero .kadence-breadcrumbs, .entry-hero .kadence-breadcrumbs a, .entry-hero .archive-description { color: #fff !important; }

/* ---------- Pied de page de marque ---------- */
.mbd-footer { background: var(--mbd-night); color: #cdd8e2; padding: 56px 0 26px; }
.mbd-footer .in { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.mbd-footer img.logo { max-width: 240px; height: auto; margin-bottom: 14px; }
.mbd-footer .brand-name { font-family: var(--mbd-serif); font-size: 1.5rem; color: #fff; margin: 0 0 8px; }
.mbd-footer h4 { color: var(--mbd-sun); font-family: var(--mbd-sans); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 12px; }
.mbd-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45em; }
.mbd-footer a { color: #cdd8e2; text-decoration: none; }
.mbd-footer a:hover { color: #fff; }
.mbd-footer .bot { max-width: 1180px; margin: 32px auto 0; padding: 18px 24px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; color: #8aa0b4; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.mbd-footer .bot a { color: #8aa0b4; text-decoration: underline; }
.site-footer .site-bottom-footer-wrap { display: none; }

@media (max-width: 940px) {
  .mbd-hero-in, .mbd-story, .mbd-zones { grid-template-columns: 1fr; }
  .mbd-cards, .mbd-steps, .mbd-strip { grid-template-columns: 1fr 1fr; }
  .mbd-gallery { grid-template-columns: repeat(3, 1fr); }
  .mbd-faq { grid-template-columns: 1fr; }
  .mbd-footer .in { grid-template-columns: 1fr 1fr; }
  .mbd-b1 { left: 10px; }
  .mbd-story-imgs .mbd-story-2 { right: 8px; }
}
@media (max-width: 520px) {
  .mbd-cards, .mbd-steps, .mbd-strip, .mbd-footer .in { grid-template-columns: 1fr; }
  .mbd-gallery { grid-template-columns: repeat(2, 1fr); }
  .mbd-hero { border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .mbd-js [data-reveal] { opacity: 1; transform: none; }
  .mbd-rise, .mbd-hero-sun, .mbd-badge-float, .mbd-waves path, .woocommerce ul.products li.product { animation: none !important; }
}

/* Logo horizontal dans l'entête */
.mbd-logo-h .site-branding .site-title-wrap { display: none; }
.mbd-logo-h .site-branding .custom-logo, .mbd-logo-h .site-branding a.brand img { height: 64px; max-height: none; width: auto !important; max-width: 280px !important; }
@media (max-width: 768px) { .mbd-logo-h .site-branding .custom-logo, .mbd-logo-h .site-branding a.brand img { height: 46px; max-width: 190px !important; } }
