/* Office Fusion shop v2: presentation bridge over the live Blocksy/WooCommerce
 * templates. The opt-in body class keeps installation inert until QA passes. */
body.ofs-shop-v2 {
  --of-navy: #042958;
  --of-blue: #0b64a5;
  --of-cyan: #41b9f2;
  --of-ink: #10243c;
  --of-muted: #526a82;
  --of-line: #d8e4ee;
  --of-paper: #f4f8fc;
  --of-shadow: 0 18px 42px rgba(4, 41, 88, .10);
  background: #fff;
  color: var(--of-ink);
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
body.ofs-shop-v2 h1,
body.ofs-shop-v2 h2,
body.ofs-shop-v2 h3,
body.ofs-shop-v2 h4,
body.ofs-shop-v2 .entry-title {
  color: var(--of-navy);
  font-family: Lexend, 'Segoe UI', sans-serif;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.16;
  text-wrap: balance;
}
body.ofs-shop-v2 :focus-visible {
  outline: 3px solid var(--of-blue);
  outline-offset: 3px;
}
body.ofs-shop-v2 ::selection { background: var(--of-cyan); color: var(--of-ink); }
body.ofs-shop-v2 button,
body.ofs-shop-v2 input,
body.ofs-shop-v2 select,
body.ofs-shop-v2 textarea { font: inherit; }
body.ofs-shop-v2 .ofs-shell-container,
body.ofs-shop-v2 .site-main .ct-container { max-width: 1240px !important; }

/* Keep the real Max Mega Menu, search, account and cart. */
body.ofs-shop-v2 .ofs-shell-topbar { background: var(--of-navy); color: #e4effc; }
body.ofs-shop-v2 .ofs-shell-topbar-inner { min-height: 34px; gap: 12px 20px; }
body.ofs-shop-v2 .ofs-shell-topbar-contact { gap: 8px 12px; }
body.ofs-shop-v2 .ofs-shell-topbar strong { color: #fff; }
body.ofs-shop-v2 .ofs-shell-header {
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--of-line);
  box-shadow: none;
}
body.ofs-shop-v2 .ofs-shell-header-main { min-height: 80px; gap: 26px; }
body.ofs-shop-v2 .ofs-shell-brand-logo-frame { background: #fff; }
body.ofs-shop-v2 .ofs-shell-search {
  border: 1px solid var(--of-line);
  border-radius: 999px;
  background: var(--of-paper);
  box-shadow: none;
}
body.ofs-shop-v2 .ofs-shell-search:focus-within {
  border-color: var(--of-blue);
  box-shadow: 0 0 0 3px rgba(65, 185, 242, .20);
}
body.ofs-shop-v2 .ofs-shell-search button,
body.ofs-shop-v2 .ofs-shell-newsletter-form button { background: var(--of-blue); border-radius: 999px; }
body.ofs-shop-v2 .ofs-shell-search button:hover,
body.ofs-shop-v2 .ofs-shell-newsletter-form button:hover { background: #084783; }
body.ofs-shop-v2 .ofs-shell-action[aria-label="Ma sélection"] { display: none; }
body.ofs-shop-v2 .ofs-shell-action,
body.ofs-shop-v2 .ofs-shell-cart { min-height: 44px; border: 1px solid var(--of-line); border-radius: 999px; box-shadow: none; }
body.ofs-shop-v2 .ofs-shell-action:hover,
body.ofs-shop-v2 .ofs-shell-cart:hover { background: #e7f5fd; border-color: var(--of-blue); }
body.ofs-shop-v2 .ofs-shell-families {
  background: var(--of-paper);
  border-block: 1px solid var(--of-line);
}
body.ofs-shop-v2 .ofs-shell-families-inner { min-height: 54px; }
body.ofs-shop-v2 .ofs-shell-families .mega-menu-wrap { width: 100%; background: transparent; }
body.ofs-shop-v2 .ofs-shell-families .mega-menu > li.mega-menu-item > a.mega-menu-link {
  min-height: 48px;
  color: var(--of-ink);
  background: transparent;
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  font-weight: 700;
}
body.ofs-shop-v2 .ofs-shell-families .mega-menu > li.mega-menu-item > a.mega-menu-link:hover,
body.ofs-shop-v2 .ofs-shell-families .mega-menu > li.mega-current-menu-item > a.mega-menu-link { color: var(--of-blue); }

/* Preserve the live menu hierarchy, but replace its narrow grey desktop strip. */
@media (min-width: 861px) {
  body.ofs-shop-v2 .ofs-shell-families,
  body.ofs-shop-v2 .ofs-shell-families-inner,
  body.ofs-shop-v2 .ofs-shell-families .mega-menu-wrap,
  body.ofs-shop-v2 .ofs-shell-families .mega-menu { background: var(--of-paper) !important; }
  body.ofs-shop-v2 .ofs-shell-families .mega-menu-wrap,
  body.ofs-shop-v2 .ofs-shell-families .mega-menu { width: 100% !important; }
  body.ofs-shop-v2 .ofs-shell-families .mega-menu {
    display: flex !important;
    justify-content: space-between;
    padding-inline: 0 !important;
  }
  body.ofs-shop-v2 .ofs-shell-families .mega-menu > li.mega-menu-item > a.mega-menu-link {
    background: transparent !important;
    color: var(--of-ink) !important;
  }
  body.ofs-shop-v2 .ofs-shell-families .mega-menu > li.mega-menu-item > a.mega-menu-link:hover,
  body.ofs-shop-v2 .ofs-shell-families .mega-menu > li.mega-current-menu-item > a.mega-menu-link {
    background: #e7f5fd !important;
    color: var(--of-blue) !important;
  }
  body.ofs-shop-v2 .ofs-shell-families .mega-menu > li.ofs-menu-deal > a.mega-menu-link {
    background: var(--of-blue) !important;
    color: #fff !important;
  }
}

/* Home: retain the existing commercial content while adopting the approved
 * clear hero, imagery and rhythm. The old product collage is decorative here. */
body.ofs-shop-v2.home .hero { background: var(--of-paper); }
body.ofs-shop-v2.home .hero-grid {
  max-width: 1240px;
  min-height: 550px;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(48px, 5vw, 80px);
}
body.ofs-shop-v2.home .hero h1 {
  max-width: 700px;
  font-size: clamp(40px, 5vw, 70px);
  line-height: 1.05;
  letter-spacing: -.035em;
}
body.ofs-shop-v2.home .hero-copy > p:not(.eyebrow) { max-width: 64ch; color: var(--of-muted); font-size: clamp(17px, 1.5vw, 19px); }
body.ofs-shop-v2.home .hero-stage {
  width: 100%;
  min-height: 0;
  aspect-ratio: 1448 / 1160;
  border: 0;
  border-radius: 20px;
  background: var(--of-paper) url('office-fusion-familles-hero-v4-1448.webp') center / contain no-repeat;
  box-shadow: var(--of-shadow);
}
body.ofs-shop-v2.home .hero-stage > * { display: none !important; }
body.ofs-shop-v2.home .hero .button,
body.ofs-shop-v2.home .final-cta .button { min-height: 46px; border-radius: 999px; }
body.ofs-shop-v2.home .hero .button-primary { background: var(--of-blue); }
body.ofs-shop-v2.home .hero .button-primary:hover { background: #084783; }
body.ofs-shop-v2.home .service-strip { background: #fff; border-block: 1px solid var(--of-line); }
body.ofs-shop-v2.home .service-grid { max-width: 1240px; }
body.ofs-shop-v2.home .service-item { border-color: var(--of-line); }
body.ofs-shop-v2.home .service-item strong { color: var(--of-navy); font-family: Lexend, sans-serif; }
body.ofs-shop-v2.home .service-item p { color: var(--of-muted); }
body.ofs-shop-v2.home .section,
body.ofs-shop-v2.home .trust-section,
body.ofs-shop-v2.home .faq-section { padding-block: clamp(56px, 7vw, 96px); }
body.ofs-shop-v2.home .section-heading h2,
body.ofs-shop-v2.home .trust-section h2 { font-size: clamp(30px, 3.5vw, 48px); }
body.ofs-shop-v2.home #catalogue .category-grid { gap: 16px; }
body.ofs-shop-v2.home #catalogue .category-card {
  border: 1px solid var(--of-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(4, 41, 88, .05);
}
body.ofs-shop-v2.home .trust-section { background: var(--of-paper); }
body.ofs-shop-v2.home .trust-section .container { max-width: 1160px; }
body.ofs-shop-v2.home #bonnes-affaires { background: #fff; }
body.ofs-shop-v2.home #selection { background: var(--of-paper); }
body.ofs-shop-v2.home .product-card { border: 1px solid var(--of-line); border-radius: 16px; box-shadow: none; }

/* All real WooCommerce and information pages: a consistent light canvas.
 * Keep block markup, notices, variations, filters and payment controls intact. */
body.ofs-shop-v2.woocommerce,
body.ofs-shop-v2.woocommerce-page { background: #fff; }
body.ofs-shop-v2 .site-main { background: #fff; }
body.ofs-shop-v2 .entry-header,
body.ofs-shop-v2 .woocommerce-products-header { background: var(--of-paper); }
body.ofs-shop-v2 .entry-header h1,
body.ofs-shop-v2 .woocommerce-products-header h1 { color: var(--of-navy); }
body.ofs-shop-v2 .woocommerce-breadcrumb,
body.ofs-shop-v2 .woocommerce-breadcrumb a { color: var(--of-muted); }
body.ofs-shop-v2 .woocommerce a.button,
body.ofs-shop-v2 .woocommerce button.button,
body.ofs-shop-v2 .woocommerce input.button,
body.ofs-shop-v2 .wc-block-components-button:not(.is-link) {
  min-height: 44px;
  border-radius: 999px;
  background: var(--of-blue);
  color: #fff;
  font-weight: 700;
}
body.ofs-shop-v2 .woocommerce a.button:hover,
body.ofs-shop-v2 .woocommerce button.button:hover,
body.ofs-shop-v2 .wc-block-components-button:not(.is-link):hover { background: #084783; color: #fff; }
body.ofs-shop-v2 .woocommerce input.input-text,
body.ofs-shop-v2 .woocommerce textarea,
body.ofs-shop-v2 .wpcf7 input:not([type="submit"]),
body.ofs-shop-v2 .wpcf7 textarea {
  min-height: 44px;
  border: 1px solid var(--of-line);
  border-radius: 10px;
  background: #fff;
  color: var(--of-ink);
}
body.ofs-shop-v2 .woocommerce-error,
body.ofs-shop-v2 .woocommerce-info,
body.ofs-shop-v2 .woocommerce-message { border-radius: 12px; }
body.ofs-shop-v2 ul.products li.product,
body.ofs-shop-v2 .wc-block-grid__product { border-radius: 16px; }
body.ofs-shop-v2 .ofs-shell-footer { background: var(--of-navy); color: #e4effc; }
body.ofs-shop-v2 .ofs-shell-footer a { color: #fff; }
body.ofs-shop-v2 .ofs-shell-footer a:hover { color: #a8e2ff; }

@media (max-width: 1180px) {
  body.ofs-shop-v2 .ofs-shell-topbar-inner { align-items: flex-start; flex-direction: column; gap: 2px; padding-block: 7px; }
  body.ofs-shop-v2 .ofs-shell-topbar-contact { justify-content: flex-start; }
}
@media (max-width: 860px) {
  body.ofs-shop-v2 .ofs-shell-topbar-inner { align-items: flex-start; flex-direction: column; padding-block: 8px; }
  body.ofs-shop-v2.home .hero-grid { grid-template-columns: 1fr; }
  body.ofs-shop-v2.home .hero-stage { max-width: 600px; margin-inline: auto; }
}
@media (max-width: 620px) {
  body.ofs-shop-v2 .ofs-shell-container,
  body.ofs-shop-v2 .site-main .ct-container { width: min(calc(100% - 32px), 1240px) !important; }
  body.ofs-shop-v2 .ofs-shell-topbar { font-size: 11px; }
  body.ofs-shop-v2 .ofs-shell-header-main { min-height: 70px; gap: 10px; }
  body.ofs-shop-v2.home .hero-grid { padding-block: 42px 56px; }
  body.ofs-shop-v2.home .hero h1 { font-size: clamp(35px, 9vw, 50px); }
  body.ofs-shop-v2.home .hero-stage { background-image: url('office-fusion-familles-hero-v4-720.webp'); }
  body.ofs-shop-v2.home .service-grid { grid-template-columns: 1fr 1fr; }
  body.ofs-shop-v2.home .service-item { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  body.ofs-shop-v2 *, body.ofs-shop-v2 *::before, body.ofs-shop-v2 *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
