/* Encart éditorial Click & Mesure, styles isolés du thème. */
.cm-contextual,
.cm-contextual * {
  box-sizing: border-box;
}
.cm-contextual,
#cek-facade .cm-contextual {
  padding: 28px 0 40px;
  background: #fff;
  color: #292b2e;
  scroll-margin-top: 90px;
}
.cm-contextual .cm-home-wrap,
#cek-facade .cm-contextual .cm-home-wrap {
  width: min(1112px, calc(100% - 32px));
  margin: 0 auto;
}
.cm-contextual .cm-home-in,
#cek-facade .cm-contextual .cm-home-in {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 22px;
  border: 1px solid #e4e8ed;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(22,34,48,.06);
}
.cm-contextual .cm-home-photo-frame,
#cek-facade .cm-contextual .cm-home-photo-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  background: #f2f3f1;
}
.cm-contextual .cm-home-photo,
#cek-facade .cm-contextual .cm-home-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% center;
  transform-origin: center;
}
.cm-contextual.cm-motion-pending .cm-home-photo,
#cek-facade .cm-contextual.cm-motion-pending .cm-home-photo {
  transform: translateY(12px) scale(1.09);
}
.cm-contextual.cm-motion-visible .cm-home-photo,
#cek-facade .cm-contextual.cm-motion-visible .cm-home-photo {
  animation: cek-cm-photo-in 760ms cubic-bezier(.2,.75,.25,1) 1 both;
}
.cm-contextual .cm-home-copy,
#cek-facade .cm-contextual .cm-home-copy {
  min-width: 0;
  opacity: 1;
  transform: translateY(0);
}
.cm-contextual.cm-motion-pending .cm-home-copy,
#cek-facade .cm-contextual.cm-motion-pending .cm-home-copy {
  opacity: .3;
  transform: translateY(16px);
}
.cm-contextual.cm-motion-visible .cm-home-copy,
#cek-facade .cm-contextual.cm-motion-visible .cm-home-copy {
  animation: cek-cm-copy-in 620ms cubic-bezier(.2,.75,.25,1) 90ms 1 both;
}
.cm-contextual .cm-home-brand,
#cek-facade .cm-contextual .cm-home-brand {
  margin: 0 0 6px;
  color: #292b2e;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.3px;
}
.cm-contextual .cm-home-brand span,
#cek-facade .cm-contextual .cm-home-brand span {
  color: #db6900;
}
.cm-contextual .cm-home-in h2,
#cek-facade .cm-contextual .cm-home-in h2 {
  margin: 0;
  color: #22272d;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.45px;
  text-wrap: initial;
}
.cm-contextual .cm-home-description,
#cek-facade .cm-contextual .cm-home-description,
.cm-contextual .cm-home-reassurance,
#cek-facade .cm-contextual .cm-home-reassurance {
  margin: 9px 0 0;
  color: #555b65;
  font-size: 14px;
  line-height: 1.45;
}
.cm-contextual .cm-home-reassurance,
#cek-facade .cm-contextual .cm-home-reassurance {
  margin-top: 5px;
  color: #292b2e;
}
.cm-contextual .cm-home-action,
#cek-facade .cm-contextual .cm-home-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  background: #0965ce;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color .18s ease;
}
.cm-contextual.cm-motion-pending .cm-home-action,
#cek-facade .cm-contextual.cm-motion-pending .cm-home-action {
  opacity: .3;
  transform: translateY(8px);
}
.cm-contextual.cm-motion-visible .cm-home-action,
#cek-facade .cm-contextual.cm-motion-visible .cm-home-action {
  animation: cek-cm-action-in 520ms cubic-bezier(.2,.75,.25,1) 170ms 1 both;
}
.cm-contextual .cm-home-action:hover,
#cek-facade .cm-contextual .cm-home-action:hover {
  background: #0756b1;
}
.cm-contextual .cm-home-action:focus-visible,
#cek-facade .cm-contextual .cm-home-action:focus-visible,
.cek-product__quote-tool.cm-product .cm-action:focus-visible,
.cek-cat-card--cm:focus-visible,
#cek-catalogue .cek-cat-card--cm:focus-visible {
  outline: 3px solid rgba(9,101,206,.35);
  outline-offset: 3px;
}
@keyframes cek-cm-photo-in {
  from {
    transform: translateY(12px) scale(1.09);
  }
  to {
    transform: translateY(0) scale(1);
  }
}
@keyframes cek-cm-copy-in {
  from {
    opacity: .3;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes cek-cm-action-in {
  from {
    opacity: .3;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Cartouche produit, posé dans le composant produit natif existant. */
.cek-product__quote-tool.cm-product {
  box-sizing: border-box;
  grid-template-columns: minmax(0,1.2fr) minmax(220px,.8fr);
  gap: 22px;
  align-items: center;
  margin-top: 20px;
  padding: 28px 32px;
  border-radius: 22px;
  background: #f2f6f5;
  color: #171719;
}
.cek-product__quote-tool.cm-product,
.cek-product__quote-tool.cm-product * {
  box-sizing: border-box;
}
.cek-product__quote-tool.cm-product .cm-copy {
  min-width: 0;
}
.cek-product__quote-tool.cm-product .cm-eyebrow {
  margin: 0 0 10px;
  color: #0f7d8a;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cek-product__quote-tool.cm-product h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(24px,3vw,32px);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.cek-product__quote-tool.cm-product .cm-description {
  max-width: 540px;
  margin: 12px 0 0;
  color: #67635f;
  font-size: 14px;
  line-height: 1.55;
}
.cek-product__quote-tool.cm-product .cm-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #1c71e3;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.cek-product__quote-tool.cm-product .cm-action:hover {
  background: #155fca;
}
.cek-product__quote-tool.cm-product .cm-photo {
  width: 100%;
  max-width: 330px;
  justify-self: end;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
}
.cek-product__quote-tool.cm-product .cm-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
}
/* Cartouche boutique, sans modifier les règles générales du catalogue. */
.cek-cat-card.cek-cat-card--cm {
  position: relative;
  isolation: isolate;
}
.cek-cat-card.cek-cat-card--cm::after,
#cek-catalogue .cek-cat-card.cek-cat-card--cm::after {
  background: linear-gradient(90deg,rgba(0,0,0,.03) 20%,rgba(0,0,0,.24) 48%,rgba(0,0,0,.83) 100%);
}
.cek-cat-card.cek-cat-card--cm .cek-cat-card-image,
#cek-catalogue .cek-cat-card.cek-cat-card--cm .cek-cat-card-image {
  object-position: center 46%;
}
.cek-cat-card.cek-cat-card--cm .cek-cat-badge,
#cek-catalogue .cek-cat-card.cek-cat-card--cm .cek-cat-badge,
.cek-cat-card.cek-cat-card--cm .cek-cat-card-copy,
#cek-catalogue .cek-cat-card.cek-cat-card--cm .cek-cat-card-copy,
.cek-cat-card.cek-cat-card--cm .cek-cat-card-action,
#cek-catalogue .cek-cat-card.cek-cat-card--cm .cek-cat-card-action {
  z-index: 1;
}
.cek-cat-card.cek-cat-card--cm .cek-cat-card-copy,
#cek-catalogue .cek-cat-card.cek-cat-card--cm .cek-cat-card-copy {
  max-width: 49%;
  margin-left: 51%;
  padding: 28px 28px 91px;
}
.cek-cat-card.cek-cat-card--cm .cek-cat-card-copy strong,
#cek-catalogue .cek-cat-card.cek-cat-card--cm .cek-cat-card-copy strong {
  color: #fff;
  font-size: clamp(23px,2.2vw,30px);
  line-height: 1.08;
}
.cek-cat-card.cek-cat-card--cm .cek-cat-card-copy small,
#cek-catalogue .cek-cat-card.cek-cat-card--cm .cek-cat-card-copy small {
  color: rgba(255,255,255,.9);
  font-size: 15px;
  line-height: 1.35;
}
.cek-cat-card.cek-cat-card--cm .cek-cat-card-action,
#cek-catalogue .cek-cat-card.cek-cat-card--cm .cek-cat-card-action {
  left: calc(51% + 28px);
  bottom: 25px;
  min-height: 44px;
  background: #1c71e3;
  color: #fff;
}
.cek-cat-card.cek-cat-card--cm:hover > .cek-cat-card-image,
#cek-catalogue .cek-cat-card.cek-cat-card--cm:hover > .cek-cat-card-image {
  transform: none;
}
.cek-cat-card.cek-cat-card--cm.cm-motion-pending .cm-copy,
#cek-catalogue .cek-cat-card.cek-cat-card--cm.cm-motion-pending .cm-copy,
.cek-cat-card.cek-cat-card--cm.cm-motion-pending .cm-action,
#cek-catalogue .cek-cat-card.cek-cat-card--cm.cm-motion-pending .cm-action {
  opacity: .3;
  transform: translateY(16px);
}
.cek-cat-card.cek-cat-card--cm.cm-motion-visible .cm-copy,
#cek-catalogue .cek-cat-card.cek-cat-card--cm.cm-motion-visible .cm-copy {
  animation: cek-cm-copy-in 620ms cubic-bezier(.2,.75,.25,1) 90ms both;
}
.cek-cat-card.cek-cat-card--cm.cm-motion-pending .cm-action,
#cek-catalogue .cek-cat-card.cek-cat-card--cm.cm-motion-pending .cm-action {
  transform: translateY(8px);
}
.cek-cat-card.cek-cat-card--cm.cm-motion-visible .cm-action,
#cek-catalogue .cek-cat-card.cek-cat-card--cm.cm-motion-visible .cm-action {
  animation: cek-cm-action-in 520ms cubic-bezier(.2,.75,.25,1) 170ms both;
}
.cek-cat-card.cek-cat-card--cm.cm-motion-pending .cm-photo,
#cek-catalogue .cek-cat-card.cek-cat-card--cm.cm-motion-pending .cm-photo {
  transform: translateY(10px) scale(1.03);
}
.cek-cat-card.cek-cat-card--cm.cm-motion-visible .cm-photo,
#cek-catalogue .cek-cat-card.cek-cat-card--cm.cm-motion-visible .cm-photo {
  animation: cek-cm-product-photo-in 760ms cubic-bezier(.2,.75,.25,1) both;
}
@media (max-width: 680px) {
  .cm-contextual,
#cek-facade .cm-contextual {
    padding: 20px 0 30px;
  }
  .cm-contextual .cm-home-in,
#cek-facade .cm-contextual .cm-home-in {
    grid-template-columns: minmax(0,1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
  }
  .cm-contextual .cm-home-photo-frame,
#cek-facade .cm-contextual .cm-home-photo-frame {
    width: 100%;
    border-radius: 11px;
  }
  .cm-contextual .cm-home-copy,
#cek-facade .cm-contextual .cm-home-copy {
    padding: 0 3px 3px;
  }
  .cm-contextual .cm-home-brand,
#cek-facade .cm-contextual .cm-home-brand {
    margin-bottom: 4px;
    font-size: 13px;
  }
  .cm-contextual .cm-home-in h2,
#cek-facade .cm-contextual .cm-home-in h2 {
    font-size: 20px;
    line-height: 1.18;
    letter-spacing: -.35px;
  }
  .cm-contextual .cm-home-description,
#cek-facade .cm-contextual .cm-home-description,
.cm-contextual .cm-home-reassurance,
#cek-facade .cm-contextual .cm-home-reassurance {
    margin-top: 7px;
    font-size: 13.5px;
    line-height: 1.4;
  }
  .cm-contextual .cm-home-reassurance,
#cek-facade .cm-contextual .cm-home-reassurance {
    margin-top: 4px;
  }
  .cm-contextual .cm-home-action,
#cek-facade .cm-contextual .cm-home-action {
    width: 100%;
    margin-top: 10px;
    font-size: 14px;
  }
  .cek-product__quote-tool.cm-product {
    grid-template-columns: minmax(0,1fr);
    gap: 18px;
    padding: 20px 17px;
    border-radius: 18px;
  }
  .cek-product__quote-tool.cm-product .cm-photo {
    grid-row: 1;
    max-width: none;
    aspect-ratio: 1.85;
  }
  .cek-product__quote-tool.cm-product .cm-action {
    width: 100%;
    margin-top: 16px;
  }
  .cek-product__quote-tool.cm-product h2 {
    font-size: 25px;
  }
  .cek-cat-card.cek-cat-card--cm::after,
#cek-catalogue .cek-cat-card.cek-cat-card--cm::after {
    background: linear-gradient(180deg,rgba(0,0,0,.03) 20%,rgba(0,0,0,.25) 40%,rgba(0,0,0,.93) 100%);
  }
  .cek-cat-card.cek-cat-card--cm .cek-cat-card-image,
#cek-catalogue .cek-cat-card.cek-cat-card--cm .cek-cat-card-image {
    object-position: 25% center;
  }
  .cek-cat-card.cek-cat-card--cm .cek-cat-card-copy,
#cek-catalogue .cek-cat-card.cek-cat-card--cm .cek-cat-card-copy {
    max-width: 100%;
    margin-left: 0;
    padding: 26px 22px 88px;
  }
  .cek-cat-card.cek-cat-card--cm .cek-cat-card-copy strong,
#cek-catalogue .cek-cat-card.cek-cat-card--cm .cek-cat-card-copy strong {
    font-size: 27px;
  }
  .cek-cat-card.cek-cat-card--cm .cek-cat-card-action,
#cek-catalogue .cek-cat-card.cek-cat-card--cm .cek-cat-card-action {
    right: 22px;
    bottom: 20px;
    left: 22px;
    min-height: 44px;
    padding: 0 12px;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cm-contextual .cm-home-photo,
#cek-facade .cm-contextual .cm-home-photo,
.cm-contextual .cm-home-copy,
#cek-facade .cm-contextual .cm-home-copy,
.cm-contextual .cm-home-action,
#cek-facade .cm-contextual .cm-home-action,
.cek-product__quote-tool.cm-product .cm-photo img,
.cek-product__quote-tool.cm-product .cm-copy,
.cek-product__quote-tool.cm-product .cm-action,
.cek-cat-card.cek-cat-card--cm .cm-photo,
#cek-catalogue .cek-cat-card.cek-cat-card--cm .cm-photo,
.cek-cat-card.cek-cat-card--cm .cm-copy,
#cek-catalogue .cek-cat-card.cek-cat-card--cm .cm-copy,
.cek-cat-card.cek-cat-card--cm .cm-action,
#cek-catalogue .cek-cat-card.cek-cat-card--cm .cm-action {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Divi legacy widths must not shrink the new isolated card. */
[data-cek-cm-card].cm-contextual .cm-home-in{width:100%;min-width:0;margin-left:auto;margin-right:auto}

#cek-catalogue .cek-cat-card.cek-cat-card--cm{grid-column:1 / -1;width:100%}

/* Cartouche produit : CTA fixe et centré. */
.cek-product__quote-tool.cm-product .cm-copy > .cm-action { display:flex; width:fit-content; max-width:100%; margin-left:auto; margin-right:auto; }
.cek-product__quote-tool.cm-product .cm-action {
  position: relative;
  justify-self: center;
  transform: none;
  opacity: 1;
}
.cek-product__quote-tool.cm-product .cm-photo {
  position: relative;
}
.cm-contextual .cm-image-logo,
.cek-product__quote-tool.cm-product .cm-image-logo,
.cek-cat-card.cek-cat-card--cm .cm-image-logo,
#cek-catalogue .cek-cat-card.cek-cat-card--cm .cm-image-logo {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  width: 96px;
  height: auto;
  max-width: 35%;
  pointer-events: none;
}
.cm-contextual .cm-home-photo-frame {
  position: relative;
}
.cek-product__quote-tool.cm-product .cm-photo > img:not(.cm-image-logo) {
  position: relative;
  z-index: 0;
}
.cek-product__quote-tool.cm-product .cm-photo > .cm-image-logo {
  z-index: 2;
  width: 96px;
  max-width: 35%;
  height: auto;
  object-fit: contain;
  object-position: center;
  transform: none;
  animation: none;
}
.cm-contextual .cm-home-photo-frame > .cm-image-logo,
.cek-cat-card.cek-cat-card--cm > .cm-image-logo,
#cek-catalogue .cek-cat-card.cek-cat-card--cm > .cm-image-logo {
  width: 96px;
  max-width: 35%;
  height: auto;
  object-fit: contain;
  transform: none;
  animation: none;
}
.cek-cat-card.cek-cat-card--cm .cm-image-logo,
#cek-catalogue .cek-cat-card.cek-cat-card--cm .cm-image-logo {
  bottom: 12px;
}
.cm-product-reminder {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  margin: 18px 0;
  text-align: center;
}
.cm-product-reminder p {
  margin: 0;
}
.cm-product-reminder .cm-reminder-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: #1c71e3;
  color: #fff;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.cm-product-reminder .cm-reminder-action:hover {
  background: #155fca;
}
/* Desktop: aligner le rappel sur le titre de sa section. */
@media (min-width:1025px) {
  .cek-product__tutorials > .cm-product-reminder {
    justify-content: flex-start;
    text-align: left;
  }
}
@media (max-width:680px) {
  .cek-product__quote-tool.cm-product .cm-photo {
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }
  .cek-product__quote-tool.cm-product .cm-action {
    justify-self: center;
    width: auto;
    max-width: 100%;
  }
  .cek-cat-card.cek-cat-card--cm .cm-image-logo,
  #cek-catalogue .cek-cat-card.cek-cat-card--cm .cm-image-logo {
    top: 12px;
    bottom: auto;
  }
  .cm-product-reminder {
    flex-direction: column;
    gap: 8px;
  }
}

/* Tablet: keep the decorative logo clear of the action button. */
@media (min-width:681px) and (max-width:1024px){
 #cek-catalogue .cek-cat-card.cek-cat-card--cm > .cm-image-logo{top:12px;bottom:auto}
}

/* Boutique : le bouton 3D est suffisant, sans chevron supplémentaire. */
#cek-catalogue .cek-cat-card--complete > .cek-cat-arrow{display:none}

/* Petit bouton produit : mot d'action et logo blanc existant. */
.cm-product-reminder .cm-reminder-action{gap:8px}
.cm-product-reminder .cm-reminder-action .cm-reminder-logo{display:block;flex:0 0 auto;width:96px;height:auto;margin:0;object-fit:contain}
