/* Product catalogue and product detail shell. Loaded only for the nine opted-in pages. */

body.ecoch-product-page {
  --ecop-ink: #0a1a3a;
  --ecop-navy: #0c2466;
  --ecop-blue: #2e73bd;
  --ecop-muted: #5b6579;
  --ecop-paper: #f5f6f8;
  --ecop-line: rgba(10, 26, 58, .12);
  --ecop-blue-soft: #e8f0fa;
  --ecop-r: 16px;
  margin: 0;
  color: var(--ecop-ink);
  background: #fff;
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.ecoch-product-page .ecop-site,
body.ecoch-product-page .ecop-header *,
body.ecoch-product-page .ecop-topbar *,
body.ecoch-product-page .ecop-footer * { box-sizing: border-box; }
body.ecoch-product-page .ecop-site { display: flex; flex-direction: column; min-height: 100vh; }
body.ecoch-product-page .ecop-header a,
body.ecoch-product-page .ecop-footer a { text-decoration: none; }
body.ecoch-product-page .ecop-site a:focus-visible,
body.ecoch-product-page .ecop-site summary:focus-visible { outline: 2px solid var(--ecop-blue); outline-offset: 4px; border-radius: 5px; }
body.ecoch-product-page .ecop-skip {
  position: fixed;
  z-index: 1001;
  top: -70px;
  left: 16px;
  padding: 11px 17px;
  border-radius: 0 0 10px 10px;
  background: var(--ecop-navy);
  color: #fff;
}
body.ecoch-product-page .ecop-skip:focus { top: 0; }

/* Product pages share the same two-level navigation as the eight redesigned pages. */
body.ecoch-product-page .ecop-topbar {
  background: var(--ecop-ink);
  color: rgba(255, 255, 255, .8);
  font-size: 13.5px;
  line-height: 1.35;
}
body.ecoch-product-page .ecop-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 48px, 1200px);
  min-height: 40px;
  margin-inline: auto;
}
body.ecoch-product-page .ecop-topbar a { flex: 0 0 auto; color: inherit; text-decoration: none; }
body.ecoch-product-page .ecop-topbar a:hover { color: #fff; }
body.ecoch-product-page .ecop-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--ecop-line);
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}
body.admin-bar.ecoch-product-page .ecop-header { top: 32px; }
body.ecoch-product-page .ecop-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 48px, 1200px);
  min-height: 80px;
  margin-inline: auto;
}
body.ecoch-product-page .ecop-brand { display: inline-flex; flex: 0 0 auto; align-items: center; }
body.ecoch-product-page .ecop-brand img { display: block; width: auto; height: 58px; max-width: 116px; object-fit: contain; }
body.ecoch-product-page .ecop-nav { flex: 1 1 auto; min-width: 0; }
body.ecoch-product-page .ecop-nav-list,
body.ecoch-product-page .ecop-mobile-nav-list,
body.ecoch-product-page .ecop-footer-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
body.ecoch-product-page .ecop-nav-list { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2.2vw, 28px); }
body.ecoch-product-page .ecop-nav-list li { position: relative; margin: 0; }
body.ecoch-product-page .ecop-nav-list > li > a {
  display: inline-block;
  padding: 26px 0;
  color: var(--ecop-muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  transition: color .2s ease;
}
body.ecoch-product-page .ecop-nav-list a:hover,
body.ecoch-product-page .ecop-nav-list .current-menu-item > a,
body.ecoch-product-page .ecop-nav-list .current_page_item > a,
body.ecoch-product-page .ecop-nav-list a[href$="/produits/"] { color: var(--ecop-ink); }
body.ecoch-product-page .ecop-nav-list .sub-menu {
  display: none;
  position: absolute;
  z-index: 2;
  top: 100%;
  left: -16px;
  min-width: 200px;
  margin: 0;
  padding: 9px;
  border: 1px solid var(--ecop-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 20px 45px rgba(10, 26, 58, .12);
  list-style: none;
}
body.ecoch-product-page .ecop-nav-list li:hover > .sub-menu,
body.ecoch-product-page .ecop-nav-list li:focus-within > .sub-menu { display: block; }
body.ecoch-product-page .ecop-nav-list .sub-menu a { display: block; padding: 9px 11px; border-radius: 8px; color: var(--ecop-muted); font-size: 14px; }
body.ecoch-product-page .ecop-nav-list .sub-menu a:hover { background: #eff5fc; color: var(--ecop-navy); }
body.ecoch-product-page .ecop-header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 16px; }
body.ecoch-product-page .ecop-partner,
body.ecoch-product-page .ecop-mobile-partner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--ecop-navy);
  border-radius: 999px;
  background: var(--ecop-navy);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 12px 26px -14px rgba(12, 36, 102, .7);
  transition: background .2s ease, transform .2s ease;
}
body.ecoch-product-page .ecop-partner:hover,
body.ecoch-product-page .ecop-mobile-partner:hover { background: var(--ecop-ink); color: #fff; transform: translateY(-1px); }
body.ecoch-product-page .ecop-mobile-menu { display: none; position: relative; }
body.ecoch-product-page .ecop-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ecop-line);
  border-radius: 10px;
  color: var(--ecop-ink);
  background: #fff;
  cursor: pointer;
  list-style: none;
}
body.ecoch-product-page .ecop-menu-button::-webkit-details-marker { display: none; }
body.ecoch-product-page .ecop-mobile-menu[open] .ecop-menu-button { border-color: #cbdcf2; background: #eff5fc; }
body.ecoch-product-page .ecop-menu-lines { display: grid; gap: 4px; }
body.ecoch-product-page .ecop-menu-lines i { display: block; width: 19px; height: 2px; border-radius: 2px; background: var(--ecop-ink); }
body.ecoch-product-page .ecop-mobile-nav {
  position: absolute;
  z-index: 101;
  top: calc(100% + 12px);
  right: 0;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100dvh - 152px);
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--ecop-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 55px rgba(10, 26, 58, .16);
}
body.ecoch-product-page .ecop-mobile-menu:not([open]) .ecop-mobile-nav { display: none; }
body.ecoch-product-page .ecop-mobile-nav-list > li > a,
body.ecoch-product-page .ecop-mobile-nav-list .sub-menu a {
  display: block;
  padding: 13px 12px;
  border-radius: 8px;
  color: var(--ecop-ink);
  font-size: 16px;
  font-weight: 600;
}
body.ecoch-product-page .ecop-mobile-nav-list a:hover { background: #eff5fc; }
body.ecoch-product-page .ecop-mobile-nav-list .sub-menu { margin: 0 0 6px; padding-left: 14px; list-style: none; }
body.ecoch-product-page .ecop-mobile-nav-list .sub-menu a { color: var(--ecop-muted); font-size: 14px; }
body.ecoch-product-page .ecop-mobile-partner { width: 100%; margin-top: 18px; }

body.ecoch-product-page .ecop-main { flex: 1 0 auto; min-width: 0; }
body.ecoch-product-page .ecop-original-content { min-width: 0; }

/* Product detail: a restrained, shared editorial heading. The existing
   Elementor copy and proof points remain in place on every product page. */
body.ecoch-fiche-produit .ecop-main { background: #f6f8fb; }
body.ecoch-fiche-produit .ecop-original-content :is(#pdp, #pdp-terrain-2, #related-article) { scroll-margin-top: 108px; }
body.ecoch-fiche-produit .ecop-original-content header.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(235px, 29%);
  align-items: center;
  column-gap: clamp(28px, 4vw, 64px);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 250px;
  margin: 30px 0 28px;
  padding: clamp(28px, 3.6vw, 52px);
  overflow: visible;
  border: 1px solid #d9e1eb;
  border-left: 5px solid #2e73bd;
  border-radius: 6px;
  background: #fff;
  color: #0a1a3a;
  box-shadow: none;
}
body.ecoch-fiche-produit .ecop-original-content header.hero .hero-left {
  min-width: 0;
  max-width: 100%;
}
body.ecoch-fiche-produit .ecop-original-content header.hero .pill {
  display: block;
  margin: 0 0 18px;
  color: #2c6db4;
  font-size: 12px;
  line-height: 1.4;
}
body.ecoch-fiche-produit .ecop-original-content header.hero .pill .dot { display: none; }
body.ecoch-fiche-produit .ecop-original-content header.hero .pill .txt {
  font-weight: 700;
  letter-spacing: .025em;
}
body.ecoch-fiche-produit .ecop-original-content header.hero h1 {
  max-width: 19ch;
  margin: 0 0 15px;
  color: #0a1a3a;
  font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.08;
}
body.ecoch-fiche-produit .ecop-original-content header.hero .hero-sub {
  max-width: 60ch;
  margin: 0;
  color: #506078;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.6;
  opacity: 1;
}
body.ecoch-fiche-produit .ecop-original-content header.hero .hero-cert {
  position: static;
  z-index: 1;
  min-width: 0;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 5px 0 5px clamp(24px, 3vw, 42px);
  border: 0;
  border-left: 1px solid #d9e1eb;
  border-radius: 0;
  background: none;
  color: #0a1a3a;
  text-align: left;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
body.ecoch-fiche-produit .ecop-original-content header.hero .hero-cert .main {
  overflow-wrap: anywhere;
  color: #0c2466;
  font-size: clamp(19px, 1.75vw, 23px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
}
body.ecoch-fiche-produit .ecop-original-content header.hero .hero-cert .sub {
  margin-top: 6px;
  color: #506078;
  font-size: 14px;
  line-height: 1.4;
  opacity: 1;
}
body.ecoch-fiche-produit .ecop-original-content header.hero .hero-cert .chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px 16px;
  margin-top: 18px;
}
body.ecoch-fiche-produit .ecop-original-content header.hero .hero-cert .chips span {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #385378;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
body.ecoch-fiche-produit .ecop-original-content header.hero .blob { display: none; }
/* Elementor's original two-column terrain block has intrinsic 400px media.
   Allow its columns and photos to shrink without changing the content. */
body.ecoch-fiche-produit #pdp-terrain-2 .pt2-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.ecoch-fiche-produit #pdp-terrain-2 :is(.pt2-left, .pt2-right, .pt2-product-card, .pt2-gallery, .pt2-product-img) { min-width: 0; }
body.ecoch-fiche-produit #pdp-terrain-2 .pt2-product-img img { width: 100%; max-width: 400px; height: auto; }
@media (max-width: 980px) {
  body.ecoch-fiche-produit #pdp-terrain-2 .pt2-wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  body.ecoch-fiche-produit .ecop-original-content header.hero { grid-template-columns: minmax(0, 1fr); gap: 27px; min-height: 0; }
  body.ecoch-fiche-produit .ecop-original-content header.hero h1 { max-width: 28ch; }
  body.ecoch-fiche-produit .ecop-original-content header.hero .hero-cert {
    width: 100%;
    padding: 20px 0 0;
    border-left: 0;
    border-top: 1px solid #d9e1eb;
  }
}
@media (max-width: 640px) {
  body.ecoch-fiche-produit .ecop-original-content header.hero { gap: 22px; margin: 20px 0 24px; padding: 25px 22px; border-left-width: 4px; }
  body.ecoch-fiche-produit .ecop-original-content header.hero .pill { margin-bottom: 14px; }
  body.ecoch-fiche-produit .ecop-original-content header.hero h1 { font-size: clamp(28px, 8vw, 36px); }
  body.ecoch-fiche-produit .ecop-original-content header.hero .hero-sub { font-size: 15px; }
  body.ecoch-fiche-produit .ecop-original-content header.hero .hero-cert { padding-top: 18px; }
  body.ecoch-fiche-produit .ecop-original-content header.hero .hero-cert .chips { margin-top: 12px; }
  body.ecoch-fiche-produit #pdp .grid { grid-template-columns: minmax(0, 1fr); }
  body.ecoch-fiche-produit #pdp :is(.left, .right) { min-width: 0; }
  body.ecoch-fiche-produit #pdp .thumbs { max-width: 100%; overflow-x: auto; padding: 2px; }
  body.ecoch-fiche-produit #pdp .thumbs img { flex: 0 0 78px; }
  body.ecoch-fiche-produit #pdp-terrain-2 .pt2-wrap { gap: 28px; padding: 0 18px; }
  body.ecoch-fiche-produit #pdp-terrain-2 .pt2-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.ecoch-fiche-produit #pdp-terrain-2 .pt2-product-card { width: 100%; max-width: 100%; padding: 20px; }
}

/* Footer and qualification strip. */
body.ecoch-product-page .ecop-footer { background: #0a1a3a; color: #fff; }
body.ecoch-product-page .ecop-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .9fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  width: min(100% - 48px, 1180px);
  margin-inline: auto;
  padding: 72px 0 38px;
}
body.ecoch-product-page .ecop-footer-brand img { display: block; width: auto; height: 70px; max-width: 110px; object-fit: contain; filter: brightness(0) invert(1); opacity: .92; }
body.ecoch-product-page .ecop-footer-brand p { max-width: 33ch; margin: 20px 0 0; color: rgba(255, 255, 255, .72); font-size: 14px; line-height: 1.6; }
body.ecoch-product-page .ecop-footer-nav h2,
body.ecoch-product-page .ecop-footer-contact h2 { margin: 0 0 18px; color: #fff; font-size: 16px; font-weight: 650; letter-spacing: 0; }
body.ecoch-product-page .ecop-footer-nav-list { display: grid; gap: 9px; }
body.ecoch-product-page .ecop-footer-nav-list .sub-menu { display: grid; gap: 6px; margin: 7px 0 0 13px; padding: 0; list-style: none; }
body.ecoch-product-page .ecop-footer-nav a,
body.ecoch-product-page .ecop-footer-contact a { display: block; width: fit-content; margin-top: 9px; color: rgba(255, 255, 255, .74); font-size: 14px; line-height: 1.55; }
body.ecoch-product-page .ecop-footer-nav a:hover,
body.ecoch-product-page .ecop-footer-contact a:hover { color: #fff; }
body.ecoch-product-page .ecop-footer-proof {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 16px;
  padding: 17px 22px;
  border-radius: 16px;
  background: #fff;
  color: var(--ecop-ink);
}
body.ecoch-product-page .ecop-footer-proof > p { flex: 0 0 180px; margin: 0; font-size: 14px; font-weight: 650; line-height: 1.35; }
body.ecoch-product-page .ecop-footer-proof-logos { display: flex; flex: 1; flex-wrap: wrap; align-items: center; justify-content: space-around; gap: 14px 24px; min-width: 0; }
body.ecoch-product-page .ecop-footer-proof-logos img { display: block; width: auto; height: 43px; max-width: 100%; object-fit: contain; }
body.ecoch-product-page .ecop-footer-proof-logos img:last-child { height: 50px; }
body.ecoch-product-page .ecop-footer-bottom {
  width: min(100% - 48px, 1180px);
  margin-inline: auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
}

@media (max-width: 1050px) {
  body.ecoch-product-page .ecop-nav { display: none; }
  body.ecoch-product-page .ecop-mobile-menu { display: block; }
}
@media (max-width: 820px) {
  body.ecoch-product-page .ecop-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 35px; padding-top: 58px; }
  body.ecoch-product-page .ecop-footer-brand { grid-column: 1 / -1; }
  body.ecoch-product-page .ecop-footer-proof { flex-direction: column; align-items: flex-start; gap: 18px; }
  body.ecoch-product-page .ecop-footer-proof > p { flex: none; }
  body.ecoch-product-page .ecop-footer-proof-logos { justify-content: flex-start; width: 100%; }
}
@media (max-width: 640px) {
  body.ecoch-product-page .ecop-topbar-inner { justify-content: center; width: min(100% - 32px, 1200px); min-height: 34px; }
  body.ecoch-product-page .ecop-topbar-inner > span { display: none; }
  body.ecoch-product-page .ecop-header-inner { width: min(100% - 32px, 1200px); min-height: 68px; }
  body.ecoch-product-page .ecop-brand img { height: 48px; }
  body.ecoch-product-page .ecop-partner { display: none; }
  body.ecoch-product-page .ecop-footer-inner { grid-template-columns: 1fr; width: min(100% - 36px, 1180px); gap: 32px; padding-top: 48px; }
  body.ecoch-product-page .ecop-footer-brand { grid-column: auto; }
  body.ecoch-product-page .ecop-footer-proof { padding: 18px; }
  body.ecoch-product-page .ecop-footer-proof-logos { gap: 15px 20px; }
  body.ecoch-product-page .ecop-footer-proof-logos img { height: 38px; }
  body.ecoch-product-page .ecop-footer-proof-logos img:last-child { height: 45px; }
  body.ecoch-product-page .ecop-footer-bottom { width: min(100% - 36px, 1180px); }
}
@media (max-width: 782px) {
  body.admin-bar.ecoch-product-page .ecop-header { top: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  body.ecoch-product-page .ecop-site a,
  body.ecoch-product-page .ecop-site .cp-card { transition: none !important; }
}

/* 0.2.4 : même espacement pour les liens du menu et le lien Blog du pied de page. */
body.ecoch-product-page .ecop-footer-nav-list a { margin-top: 0; }

/* Pied de page : liens légaux (affichés seulement si les pages existent dans WordPress). */
body.ecoch-product-page .ecop-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; }
body.ecoch-product-page .ecop-legal-links { display: flex; gap: 10px; align-items: center; }
body.ecoch-product-page .ecop-legal-links a { color: rgba(255, 255, 255, .7); text-decoration: none; }
body.ecoch-product-page .ecop-legal-links a:hover { color: #fff; }
body.ecoch-product-page .ecop-legal-links span { color: rgba(255, 255, 255, .35); }
