/* Comptoir du Robinet — premium storefront footer. */

body.cdrt-theme .cdrt-footer-trust {
  position: relative;
  border: 0;
  color: #142739;
  background: #f3f0e9;
}

body.cdrt-theme .cdrt-footer-trust::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: #ded8cd;
  content: "";
}

body.cdrt-theme .cdrt-footer-trust__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.cdrt-theme .cdrt-footer-trust__item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 24px clamp(22px, 3vw, 38px);
  text-align: left;
}

body.cdrt-theme .cdrt-footer-trust__item + .cdrt-footer-trust__item {
  border-left: 1px solid #ded8cd;
}

body.cdrt-theme .cdrt-footer-trust__icon {
  display: grid;
  width: 48px;
  height: 48px;
  min-width: 48px;
  place-items: center;
  align-self: center;
  justify-self: start;
  border: 1px solid #d8c8a6;
  border-radius: 50%;
  color: #806332;
  background: #fffdf9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72);
}

body.cdrt-theme .cdrt-footer-trust__icon svg {
  display: block;
  width: 20px;
  height: 20px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.cdrt-theme .cdrt-footer-trust__icon :where(path, rect, circle, line, polyline) {
  vector-effect: non-scaling-stroke;
}

body.cdrt-theme .cdrt-footer-trust__copy,
body.cdrt-theme .cdrt-footer-trust__copy > span {
  display: block;
  min-width: 0;
}

body.cdrt-theme .cdrt-footer-trust__item strong {
  display: block;
  margin: 0 0 3px;
  color: #10283d;
  font-size: 12.5px;
  font-weight: 780;
  line-height: 1.35;
}

body.cdrt-theme .cdrt-footer-trust__copy > span {
  color: #68747d;
  font-size: 11.5px;
  line-height: 1.5;
}

body.cdrt-theme .cdrt-site-footer {
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, .7);
  background:
    radial-gradient(circle at 9% 4%, rgba(213, 180, 111, .11), transparent 27%),
    linear-gradient(135deg, #081b2a 0%, #10283d 100%);
}

body.cdrt-theme .cdrt-site-footer::before {
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(to right, #000, transparent 72%);
}

body.cdrt-theme .cdrt-footer-main,
body.cdrt-theme .cdrt-footer-bottom {
  position: relative;
  z-index: 1;
}

body.cdrt-theme .cdrt-footer-main {
  display: grid;
  grid-template-columns: minmax(310px, 1.3fr) minmax(150px, .62fr) minmax(180px, .72fr) minmax(240px, .9fr);
  gap: clamp(34px, 4.7vw, 72px);
  padding-block: clamp(62px, 7vw, 84px) 56px;
}

body.cdrt-theme .cdrt-footer-brand {
  max-width: 410px;
}

body.cdrt-theme .cdrt-footer-logo-panel {
  display: inline-flex;
  width: min(100%, 330px);
  align-items: center;
  margin-bottom: 24px;
  padding: 0;
  border: 0;
  background: transparent;
}

body.cdrt-theme .cdrt-footer-logo {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

body.cdrt-theme .cdrt-footer-brand__copy {
  max-width: 390px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, .64);
  font-size: 13px;
  line-height: 1.72;
}

body.cdrt-theme .cdrt-footer-contact-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid rgba(229, 201, 135, .28);
  border-radius: 999px;
  color: #f0d79d;
  font-size: 11.5px;
  font-weight: 730;
  line-height: 1.2;
  text-decoration: none;
  background: rgba(255, 255, 255, .045);
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

body.cdrt-theme .cdrt-footer-contact-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.cdrt-theme .cdrt-footer-column__title {
  display: block;
  margin: 5px 0 19px;
  color: #fff;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .1em;
  line-height: 1.3;
  text-transform: uppercase;
}

body.cdrt-theme .cdrt-footer-links,
body.cdrt-theme .cdrt-footer-nav ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.cdrt-theme .cdrt-footer-links a,
body.cdrt-theme .cdrt-footer-nav a {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  color: rgba(255, 255, 255, .67);
  font-size: 12.5px;
  font-weight: 610;
  line-height: 1.35;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}

body.cdrt-theme .cdrt-footer-links a::after,
body.cdrt-theme .cdrt-footer-nav a::after {
  margin-left: 7px;
  color: #d5b46f;
  content: "→";
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .18s ease, transform .18s ease;
}

body.cdrt-theme .cdrt-footer-help {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 14px;
  background: rgba(255, 255, 255, .055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(8px);
}

body.cdrt-theme .cdrt-footer-help .cdrt-footer-column__title {
  margin-top: 0;
  margin-bottom: 12px;
  color: #f1dfb4;
}

body.cdrt-theme .cdrt-footer-help p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  line-height: 1.65;
}

body.cdrt-theme .cdrt-footer-help__cta {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid #d5b46f;
  border-radius: 9px;
  color: #0b1e2e;
  font-size: 11.5px;
  font-weight: 780;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  background: #e5c987;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

body.cdrt-theme .cdrt-footer-help__cta span {
  font-size: 15px;
  line-height: 1;
}

body.cdrt-theme .cdrt-footer-help__meta {
  display: block;
  margin-top: 13px;
  color: rgba(255, 255, 255, .46);
  font-size: 10px;
  line-height: 1.45;
}

body.cdrt-theme .cdrt-footer-help__meta a {
  min-height: 0;
  color: rgba(255, 255, 255, .58);
  font-size: inherit;
  font-weight: 620;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

body.cdrt-theme .cdrt-footer-help__meta a::after {
  display: none;
}

body.cdrt-theme .cdrt-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
}

body.cdrt-theme .cdrt-footer-bottom__inner {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-block: 18px;
  color: rgba(255, 255, 255, .46);
  font-size: 10.5px;
  line-height: 1.45;
}

body.cdrt-theme .cdrt-footer-bottom__signature {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

body.cdrt-theme .cdrt-footer-bottom__signature i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #d5b46f;
}

body.cdrt-theme .cdrt-footer-logo-panel:focus-visible,
body.cdrt-theme .cdrt-footer-contact-link:focus-visible,
body.cdrt-theme .cdrt-footer-links a:focus-visible,
body.cdrt-theme .cdrt-footer-nav a:focus-visible,
body.cdrt-theme .cdrt-footer-help__cta:focus-visible {
  outline: 3px solid rgba(229, 201, 135, .48);
  outline-offset: 3px;
}

@media (hover: hover) {
  body.cdrt-theme .cdrt-footer-contact-link:hover {
    border-color: rgba(229, 201, 135, .55);
    color: #fff;
    background: rgba(255, 255, 255, .09);
  }

  body.cdrt-theme .cdrt-footer-links a:hover,
  body.cdrt-theme .cdrt-footer-nav a:hover {
    color: #fff;
    transform: translateX(2px);
  }

  body.cdrt-theme .cdrt-footer-links a:hover::after,
  body.cdrt-theme .cdrt-footer-nav a:hover::after {
    opacity: 1;
    transform: translateX(0);
  }

  body.cdrt-theme .cdrt-footer-help__meta a:hover {
    color: #f1dfb4;
    border-bottom-color: rgba(241, 223, 180, .46);
    transform: none;
  }

  body.cdrt-theme .cdrt-footer-help__cta:hover {
    border-color: #f0d99f;
    color: #0b1e2e;
    background: #f0d99f;
    transform: translateY(-1px);
  }
}

@media (max-width: 1100px) {
  body.cdrt-theme .cdrt-footer-main {
    grid-template-columns: minmax(290px, 1.25fr) repeat(2, minmax(150px, .7fr));
  }

  body.cdrt-theme .cdrt-footer-help {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 28px;
    align-items: center;
  }

  body.cdrt-theme .cdrt-footer-help .cdrt-footer-column__title,
  body.cdrt-theme .cdrt-footer-help p,
  body.cdrt-theme .cdrt-footer-help__meta {
    grid-column: 1;
  }

  body.cdrt-theme .cdrt-footer-help p {
    margin-bottom: 0;
  }

  body.cdrt-theme .cdrt-footer-help__cta {
    grid-column: 2;
    grid-row: 1 / span 3;
    width: auto;
    min-width: 190px;
  }
}

@media (max-width: 820px) {
  body.cdrt-theme .cdrt-footer-trust__inner {
    grid-template-columns: 1fr;
  }

  body.cdrt-theme .cdrt-footer-trust__item {
    padding: 19px 4px;
  }

  body.cdrt-theme .cdrt-footer-trust__item + .cdrt-footer-trust__item {
    border-top: 1px solid #ded8cd;
    border-left: 0;
  }

  body.cdrt-theme .cdrt-footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 42px 28px;
    padding-block: 54px 42px;
  }

  body.cdrt-theme .cdrt-footer-brand {
    grid-column: 1 / -1;
    max-width: 520px;
  }

  body.cdrt-theme .cdrt-footer-help {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  body.cdrt-theme .cdrt-footer-trust__item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
  }

  body.cdrt-theme .cdrt-footer-trust__icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  body.cdrt-theme .cdrt-footer-trust__icon svg {
    width: 19px;
    height: 19px;
  }

  body.cdrt-theme .cdrt-footer-main {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-block: 46px 38px;
  }

  body.cdrt-theme .cdrt-footer-brand,
  body.cdrt-theme .cdrt-footer-help {
    grid-column: auto;
  }

  body.cdrt-theme .cdrt-footer-logo-panel {
    width: min(100%, 300px);
    min-height: 72px;
    margin-bottom: 20px;
    padding: 15px 17px;
  }

  body.cdrt-theme .cdrt-footer-column__title {
    margin-bottom: 14px;
  }

  body.cdrt-theme .cdrt-footer-help {
    display: block;
    padding: 20px;
  }

  body.cdrt-theme .cdrt-footer-help p {
    margin-bottom: 17px;
  }

  body.cdrt-theme .cdrt-footer-help__cta {
    width: 100%;
    min-width: 0;
  }

  body.cdrt-theme .cdrt-footer-bottom__inner {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding-block: 18px 22px;
  }

  body.cdrt-theme .cdrt-footer-bottom__signature {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.cdrt-theme .cdrt-footer-contact-link,
  body.cdrt-theme .cdrt-footer-links a,
  body.cdrt-theme .cdrt-footer-nav a,
  body.cdrt-theme .cdrt-footer-help__cta,
  body.cdrt-theme .cdrt-footer-links a::after,
  body.cdrt-theme .cdrt-footer-nav a::after {
    transition: none;
  }
}
