/* Comptoir du Robinet — homepage CTA polish.
 * Loaded after home.css so every conversion action shares the same alignment,
 * hierarchy and premium interaction language without changing global buttons.
 */

body.cdrt-theme .cdrt-home .cdrt-button,
body.cdrt-theme .cdrt-home .cdrt-home-product__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin: 0;
  border-width: 1px;
  border-style: solid;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: .005em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
  vertical-align: middle;
  box-shadow: none;
  transition:
    color .18s ease,
    background-color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

body.cdrt-theme .cdrt-home .cdrt-button {
  position: relative;
  min-width: 190px;
  padding: 14px 48px;
}

body.cdrt-theme .cdrt-home .cdrt-button::after {
  position: absolute;
  top: 50%;
  right: 18px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  content: "→";
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform .18s ease;
}

body.cdrt-theme .cdrt-home .cdrt-button:hover::after {
  transform: translate(3px, -50%);
}

body.cdrt-theme .cdrt-home .cdrt-button:focus-visible,
body.cdrt-theme .cdrt-home .cdrt-home-product__button:focus-visible,
body.cdrt-theme .cdrt-home .cdrt-text-link:focus-visible,
body.cdrt-theme .cdrt-home .cdrt-home-category:focus-visible,
body.cdrt-theme .cdrt-home .cdrt-home-colors__links a:focus-visible,
body.cdrt-theme .cdrt-home .cdrt-home-projects__grid > a:focus-visible,
body.cdrt-theme .cdrt-home .cdrt-home-trust-grid > a:focus-visible {
  outline: 3px solid rgba(198, 161, 91, .46);
  outline-offset: 3px;
}

/* Hero ----------------------------------------------------------------- */
body.cdrt-theme .cdrt-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

body.cdrt-theme .cdrt-home-hero__actions .cdrt-button {
  min-width: 214px;
}

body.cdrt-theme .cdrt-home-hero .cdrt-button--primary {
  border-color: #d8b96f;
  color: #0b1e2e;
  background: #e5c987;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
}

body.cdrt-theme .cdrt-home-hero .cdrt-button--primary::after {
  color: #0b1e2e;
  background: rgba(11, 30, 46, .08);
}

body.cdrt-theme .cdrt-home-hero .cdrt-button--secondary {
  border-color: rgba(255, 255, 255, .36);
  color: #fff;
  background: rgba(255, 255, 255, .055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(8px);
}

body.cdrt-theme .cdrt-home-hero .cdrt-button--secondary::after {
  color: #f1dfb4;
  background: rgba(255, 255, 255, .09);
}

@media (hover: hover) {
  body.cdrt-theme .cdrt-home-hero .cdrt-button--primary:hover {
    border-color: #efd99f;
    color: #0b1e2e;
    background: #efd99f;
    box-shadow: 0 15px 34px rgba(0, 0, 0, .2);
    transform: translateY(-2px);
  }

  body.cdrt-theme .cdrt-home-hero .cdrt-button--secondary:hover {
    border-color: rgba(255, 255, 255, .7);
    color: #fff;
    background: rgba(255, 255, 255, .11);
    transform: translateY(-2px);
  }
}

/* Light-surface buttons ------------------------------------------------ */
body.cdrt-theme .cdrt-home-guide__content .cdrt-button--primary {
  border-color: #10283d;
  color: #fff;
  background: #10283d;
  box-shadow: 0 10px 24px rgba(16, 40, 61, .12);
}

body.cdrt-theme .cdrt-home-guide__content .cdrt-button--primary::after {
  color: #f1dfb4;
  background: rgba(255, 255, 255, .08);
}

@media (hover: hover) {
  body.cdrt-theme .cdrt-home-guide__content .cdrt-button--primary:hover {
    border-color: #244a67;
    color: #fff;
    background: #244a67;
    transform: translateY(-2px);
  }
}

/* Product CTA ---------------------------------------------------------- */
body.cdrt-theme .cdrt-home .cdrt-home-product__button {
  width: 100%;
  min-height: 44px;
  padding: 11px 16px;
  border-color: #10283d;
  color: #fff;
  background: #10283d;
}

@media (hover: hover) {
  body.cdrt-theme .cdrt-home .cdrt-home-product__button:hover {
    border-color: #244a67;
    color: #fff;
    background: #244a67;
    box-shadow: 0 8px 18px rgba(16, 40, 61, .13);
    transform: translateY(-1px);
  }
}

/* Secondary catalogue CTA --------------------------------------------- */
body.cdrt-theme .cdrt-home .cdrt-text-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid #d7d0c3;
  border-radius: 999px;
  color: #142739;
  font-size: 12px;
  font-weight: 740;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  background: #f9f7f2;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

@media (hover: hover) {
  body.cdrt-theme .cdrt-home .cdrt-text-link:hover {
    border-color: #b9ab8d;
    color: #10283d;
    background: #f2ede3;
    transform: translateY(-1px);
  }
}

/* Clickable category cards -------------------------------------------- */
body.cdrt-theme .cdrt-home-category__body > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 8px;
  color: #735a2f;
  font-size: 11.5px;
  font-weight: 760;
}

body.cdrt-theme .cdrt-home-category__body > span span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #10283d;
  background: #efe2c5;
  transition: transform .18s ease, background-color .18s ease;
}

@media (hover: hover) {
  body.cdrt-theme .cdrt-home-category:hover .cdrt-home-category__body > span span {
    background: #e5c987;
    transform: translateX(3px);
  }
}

/* Finish selector ------------------------------------------------------ */
body.cdrt-theme .cdrt-home-colors__links a {
  min-height: 38px;
  padding: 8px 13px;
  border-color: #d4cec3;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 720;
  line-height: 1.2;
  box-shadow: 0 3px 10px rgba(16, 40, 61, .03);
}

@media (hover: hover) {
  body.cdrt-theme .cdrt-home-colors__links a:hover {
    border-color: #b9ab8d;
    background: #f8f3e9;
    transform: translateY(-1px);
  }
}

/* Usage cards ---------------------------------------------------------- */
body.cdrt-theme .cdrt-home-projects__grid > a {
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

body.cdrt-theme .cdrt-home-projects__grid > a > i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(234, 216, 173, .22);
  border-radius: 50%;
  color: #f1dfb4;
  background: rgba(255, 255, 255, .06);
  font-size: 14px;
  line-height: 1;
  transition: transform .18s ease, background-color .18s ease;
}

@media (hover: hover) {
  body.cdrt-theme .cdrt-home-projects__grid > a:hover {
    transform: translateY(-2px);
  }

  body.cdrt-theme .cdrt-home-projects__grid > a:hover > i {
    background: rgba(255, 255, 255, .12);
    transform: translateX(3px);
  }
}

/* Trust links ---------------------------------------------------------- */
body.cdrt-theme .cdrt-home-trust-grid > a small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(125, 102, 56, .28);
}

@media (hover: hover) {
  body.cdrt-theme .cdrt-home-trust-grid > a:hover small {
    color: #5f4824;
    border-bottom-color: rgba(95, 72, 36, .6);
  }
}

/* Final CTA ------------------------------------------------------------ */
body.cdrt-theme .cdrt-home-final-cta {
  position: relative;
  background: #f3f0e9;
}

body.cdrt-theme .cdrt-home-final-cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
  overflow: hidden;
  padding: clamp(44px, 5vw, 66px) clamp(34px, 5vw, 64px);
  border: 1px solid rgba(213, 180, 111, .34);
  border-radius: 6px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 0%, rgba(213, 180, 111, .13), transparent 30%),
    linear-gradient(125deg, #091a28 0%, #10283d 58%, #15354e 100%);
  box-shadow: 0 22px 54px rgba(8, 27, 42, .12);
}

body.cdrt-theme .cdrt-home-final-cta__inner::before {
  position: absolute;
  top: 0;
  left: clamp(34px, 5vw, 64px);
  width: clamp(88px, 10vw, 150px);
  height: 3px;
  background: #d5b46f;
  content: "";
}

body.cdrt-theme .cdrt-home-final-cta__inner::after {
  position: absolute;
  top: -130px;
  right: -90px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(229, 201, 135, .1);
  transform: rotate(18deg);
  content: "";
  pointer-events: none;
}

body.cdrt-theme .cdrt-home-final-cta__inner > * {
  position: relative;
  z-index: 1;
}

body.cdrt-theme .cdrt-home-final-cta .cdrt-home-eyebrow {
  margin-bottom: 14px;
  color: #d9bd7b;
  font-size: 10px;
  letter-spacing: .16em;
}

body.cdrt-theme .cdrt-home-final-cta h2 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3.45vw, 3.35rem);
  font-weight: 760;
  letter-spacing: -.05em;
  line-height: 1.03;
}

body.cdrt-theme .cdrt-home-final-cta .cdrt-button--light {
  min-width: 256px;
  min-height: 58px;
  justify-content: flex-start;
  padding: 16px 64px 16px 22px;
  border-color: #e8ddca;
  border-radius: 6px;
  color: #10283d;
  background: #f7f2e8;
  box-shadow: none;
  font-size: 12.5px;
  letter-spacing: .01em;
}

body.cdrt-theme .cdrt-home-final-cta .cdrt-button--light::after {
  top: 0;
  right: 0;
  width: 50px;
  height: 100%;
  border-left: 1px solid #ddd1bc;
  border-radius: 0;
  color: #10283d;
  background: transparent;
  font-size: 17px;
  transform: none;
}

@media (hover: hover) {
  body.cdrt-theme .cdrt-home-final-cta .cdrt-button--light:hover {
    border-color: #e5c987;
    color: #0b1e2e;
    background: #e5c987;
    box-shadow: none;
    transform: none;
  }

  body.cdrt-theme .cdrt-home-final-cta .cdrt-button--light:hover::after {
    border-left-color: rgba(11, 30, 46, .16);
    transform: translateX(3px);
  }
}

/* Responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  body.cdrt-theme .cdrt-home-final-cta__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }

  body.cdrt-theme .cdrt-home-final-cta .cdrt-button--light {
    width: fit-content;
  }
}

@media (max-width: 700px) {
  body.cdrt-theme .cdrt-home-hero__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  body.cdrt-theme .cdrt-home-hero__actions .cdrt-button {
    width: 100%;
    min-width: 0;
    padding-inline: 42px;
  }

  body.cdrt-theme .cdrt-home .cdrt-text-link {
    width: fit-content;
  }

  body.cdrt-theme .cdrt-home-final-cta__inner {
    width: calc(100% - 28px);
    max-width: none;
    margin-inline: 14px;
    padding: 36px 24px 30px;
    border-radius: 6px;
  }

  body.cdrt-theme .cdrt-home-final-cta__inner::before {
    left: 24px;
  }

  body.cdrt-theme .cdrt-home-final-cta h2 {
    max-width: 560px;
    font-size: clamp(1.9rem, 8vw, 2.65rem);
  }

  body.cdrt-theme .cdrt-home-final-cta .cdrt-button--light {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  body.cdrt-theme .cdrt-home-hero__actions {
    grid-template-columns: 1fr;
  }

  body.cdrt-theme .cdrt-home-hero__actions .cdrt-button,
  body.cdrt-theme .cdrt-home-guide__content .cdrt-button,
  body.cdrt-theme .cdrt-home-final-cta .cdrt-button {
    width: 100%;
    min-width: 0;
  }

  body.cdrt-theme .cdrt-home .cdrt-button {
    min-height: 50px;
    padding-block: 13px;
  }

  body.cdrt-theme .cdrt-home .cdrt-text-link {
    width: 100%;
  }

  body.cdrt-theme .cdrt-home-final-cta .cdrt-button--light {
    min-height: 56px;
    padding: 14px 58px 14px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.cdrt-theme .cdrt-home .cdrt-button,
  body.cdrt-theme .cdrt-home .cdrt-button::after,
  body.cdrt-theme .cdrt-home .cdrt-home-product__button,
  body.cdrt-theme .cdrt-home .cdrt-text-link,
  body.cdrt-theme .cdrt-home-projects__grid > a,
  body.cdrt-theme .cdrt-home-projects__grid > a > i {
    transition: none;
  }
}