/* Comptoir du Robinet — homepage only. Loaded conditionally on the front page. */

.cdrt-home {
  overflow: hidden;
  background: var(--cdrt-paper);
}

.cdrt-home-eyebrow {
  margin: 0 0 12px;
  color: #876b3f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1.3;
  text-transform: uppercase;
}

.cdrt-home-hero {
  position: relative;
  border-bottom: 1px solid var(--cdrt-line);
  background:
    radial-gradient(circle at 82% 18%, rgba(167, 133, 80, .11), transparent 29%),
    linear-gradient(135deg, #fbfaf7 0%, #f4f4f1 58%, #eef1f2 100%);
}

.cdrt-home-hero::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% + 185px);
  width: 1px;
  background: rgba(15, 33, 51, .07);
  content: "";
}

.cdrt-home-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
  min-height: 620px;
  padding-block: clamp(64px, 8vw, 108px);
}

.cdrt-home-hero__copy {
  max-width: 690px;
}

.cdrt-home-hero h1 {
  max-width: 690px;
  margin-bottom: 24px;
  font-size: clamp(2.55rem, 5.2vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -.05em;
}

.cdrt-home-hero__lead {
  max-width: 630px;
  margin-bottom: 30px;
  color: #53616d;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

.cdrt-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.cdrt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}

.cdrt-button:hover {
  transform: translateY(-1px);
}

.cdrt-button--primary {
  color: #fff;
  background: var(--cdrt-navy-950);
  border-color: var(--cdrt-navy-950);
  box-shadow: 0 8px 24px rgba(15, 33, 51, .12);
}

.cdrt-button--primary:hover {
  color: #fff;
  background: var(--cdrt-navy-800);
  border-color: var(--cdrt-navy-800);
}

.cdrt-button--secondary {
  color: var(--cdrt-navy-950);
  background: rgba(255, 255, 255, .76);
  border-color: var(--cdrt-line-strong);
}

.cdrt-button--secondary:hover {
  color: var(--cdrt-navy-950);
  background: #fff;
  border-color: #aebac2;
}

.cdrt-home-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 650px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(15, 33, 51, .12);
}

.cdrt-home-proof li {
  padding: 18px 18px 0 0;
}

.cdrt-home-proof li + li {
  padding-left: 18px;
  border-left: 1px solid rgba(15, 33, 51, .1);
}

.cdrt-home-proof strong,
.cdrt-home-proof span {
  display: block;
}

.cdrt-home-proof strong {
  color: var(--cdrt-navy-950);
  font-size: 13px;
  line-height: 1.35;
}

.cdrt-home-proof span {
  margin-top: 3px;
  color: var(--cdrt-muted);
  font-size: 12px;
}

.cdrt-home-showcase {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  background: var(--cdrt-navy-950);
  box-shadow: 0 28px 70px rgba(15, 33, 51, .18);
}

.cdrt-home-showcase::before {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 64px;
  height: 2px;
  border-radius: 999px;
  background: var(--cdrt-brass);
  content: "";
  z-index: 2;
}

.cdrt-home-showcase__product {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  color: var(--cdrt-navy-950);
  background: #fff;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.cdrt-home-showcase__product:hover {
  color: var(--cdrt-navy-950);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .16);
}

.cdrt-home-showcase__product:first-child {
  margin-top: 26px;
  margin-bottom: -26px;
}

.cdrt-home-showcase__image {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: clamp(14px, 2vw, 24px);
  background: linear-gradient(180deg, #f8f8f6, #f0f2f2);
}

.cdrt-home-showcase__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.cdrt-home-showcase__meta {
  min-height: 102px;
  padding: 16px 16px 18px;
}

.cdrt-home-showcase__meta strong,
.cdrt-home-showcase__meta > span {
  display: block;
}

.cdrt-home-showcase__meta strong {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 8px;
  color: var(--cdrt-navy-950);
  font-size: 14px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cdrt-home-showcase__meta > span,
.cdrt-home-showcase__meta .price {
  color: var(--cdrt-navy-950);
  font-size: 14px;
  font-weight: 800;
}

.cdrt-home-showcase__meta del {
  margin-right: 5px;
  color: var(--cdrt-muted);
  font-size: 12px;
  font-weight: 500;
}

.cdrt-home-showcase__meta ins {
  color: inherit;
  text-decoration: none;
}

.cdrt-home-showcase__fallback {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 470px;
  padding: 48px;
  color: rgba(255, 255, 255, .8);
  text-align: center;
}

.cdrt-home-showcase__fallback svg {
  width: min(100%, 390px);
  fill: none;
  stroke: rgba(255, 255, 255, .82);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.cdrt-home-showcase__fallback p {
  max-width: 330px;
  margin: 18px auto 0;
}

.cdrt-home-image-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--cdrt-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cdrt-home-section {
  padding-block: clamp(72px, 9vw, 118px);
}

.cdrt-home-section__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 490px);
  gap: clamp(28px, 6vw, 82px);
  align-items: end;
  margin-bottom: 42px;
}

.cdrt-home-section__header h2 {
  max-width: 680px;
  margin-bottom: 0;
  font-size: clamp(1.85rem, 3.6vw, 3rem);
  letter-spacing: -.04em;
}

.cdrt-home-section__header > p,
.cdrt-home-section__header > a {
  margin: 0;
  align-self: end;
}

.cdrt-home-section__header > p {
  color: var(--cdrt-muted);
  line-height: 1.7;
}

.cdrt-home-section__header--center {
  grid-template-columns: 1fr;
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.cdrt-home-section__header--center h2 {
  margin-inline: auto;
}

.cdrt-home-section__header--center > p {
  max-width: 650px;
  margin-inline: auto;
}

.cdrt-text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--cdrt-navy-950);
  font-size: 14px;
  font-weight: 800;
  text-decoration-thickness: 1px;
}

.cdrt-home-section--categories {
  background: #fff;
}

.cdrt-home-categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cdrt-home-category {
  display: grid;
  grid-template-columns: 148px 1fr;
  min-height: 168px;
  overflow: hidden;
  border: 1px solid var(--cdrt-line);
  border-radius: 14px;
  color: var(--cdrt-navy-950);
  background: #fff;
  box-shadow: var(--cdrt-shadow-sm);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.cdrt-home-category:hover {
  color: var(--cdrt-navy-950);
  border-color: #c5cfd5;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 33, 51, .08);
}

.cdrt-home-category__visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--cdrt-soft);
}

.cdrt-home-category__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.cdrt-home-category:hover .cdrt-home-category__visual img {
  transform: scale(1.025);
}

.cdrt-home-category__monogram {
  color: rgba(15, 33, 51, .16);
  font-size: 64px;
  font-weight: 800;
}

.cdrt-home-category__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
}

.cdrt-home-category__body h3 {
  margin-bottom: 13px;
  font-size: 1.1rem;
}

.cdrt-home-category__body > span {
  color: var(--cdrt-muted);
  font-size: 12px;
  font-weight: 700;
}

.cdrt-home-empty {
  padding: 28px;
  border: 1px solid var(--cdrt-line);
  border-radius: 14px;
  background: var(--cdrt-soft);
}

.cdrt-home-empty p {
  margin-bottom: 8px;
}

.cdrt-home-section--guidance {
  border-block: 1px solid var(--cdrt-line);
  background: var(--cdrt-soft);
}

.cdrt-home-guidance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cdrt-home-guidance-card {
  position: relative;
  min-height: 260px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--cdrt-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .76);
}

.cdrt-home-guidance-card::after {
  position: absolute;
  right: -24px;
  bottom: -38px;
  width: 124px;
  height: 124px;
  border: 1px solid rgba(167, 133, 80, .2);
  border-radius: 50%;
  content: "";
}

.cdrt-home-guidance-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 42px;
  border: 1px solid rgba(167, 133, 80, .42);
  border-radius: 50%;
  color: #876b3f;
  font-size: 11px;
  font-weight: 800;
}

.cdrt-home-guidance-card h3 {
  margin-bottom: 10px;
}

.cdrt-home-guidance-card p {
  margin-bottom: 0;
  color: var(--cdrt-muted);
  font-size: 14px;
  line-height: 1.7;
}

.cdrt-home-section--products {
  background: #fff;
}

.cdrt-home-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.cdrt-home-product {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--cdrt-line);
  border-radius: 14px;
  background: #fff;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.cdrt-home-product:hover {
  border-color: #c5cfd5;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(15, 33, 51, .08);
}

.cdrt-home-product__image {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 30px);
  background: linear-gradient(180deg, #fafaf8, #f3f4f3);
}

.cdrt-home-product__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .24s ease;
}

.cdrt-home-product:hover .cdrt-home-product__image img {
  transform: scale(1.025);
}

.cdrt-home-product__body {
  padding: 20px 20px 22px;
}

.cdrt-home-product h3 {
  min-height: 2.9em;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.45;
}

.cdrt-home-product h3 a {
  color: inherit;
  text-decoration: none;
}

.cdrt-home-product__price,
.cdrt-home-product__price .price {
  min-height: 25px;
  margin-bottom: 15px;
  color: var(--cdrt-navy-950);
  font-size: 16px;
  font-weight: 800;
}

.cdrt-home-product__price del {
  margin-right: 5px;
  color: var(--cdrt-muted);
  font-size: 12px;
  font-weight: 500;
}

.cdrt-home-product__price ins {
  color: inherit;
  text-decoration: none;
}

.cdrt-home-product__link {
  color: var(--cdrt-navy-800);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.cdrt-home-section--expertise {
  padding-block: 0;
  background: #fff;
}

.cdrt-home-expertise {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: clamp(44px, 7vw, 92px);
  padding: clamp(48px, 7vw, 82px);
  border-radius: 22px;
  color: rgba(255, 255, 255, .72);
  background: var(--cdrt-navy-950);
  box-shadow: 0 24px 60px rgba(15, 33, 51, .12);
}

.cdrt-home-expertise .cdrt-home-eyebrow {
  color: #d1b887;
}

.cdrt-home-expertise h2 {
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(1.8rem, 3.4vw, 2.85rem);
  letter-spacing: -.04em;
}

.cdrt-home-expertise__intro > p:last-child {
  max-width: 650px;
  margin-bottom: 0;
  line-height: 1.75;
}

.cdrt-home-expertise__points {
  border-top: 1px solid rgba(255, 255, 255, .13);
}

.cdrt-home-expertise__points > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.cdrt-home-expertise__points strong {
  color: #fff;
  font-size: 13px;
}

.cdrt-home-expertise__points span {
  font-size: 13px;
  line-height: 1.6;
}

.cdrt-home-section--seo {
  background: #fff;
}

.cdrt-home-seo {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: clamp(46px, 8vw, 108px);
  align-items: start;
}

.cdrt-home-seo__content {
  max-width: 650px;
}

.cdrt-home-seo__content h2 {
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 3.3vw, 2.8rem);
  letter-spacing: -.04em;
}

.cdrt-home-seo__content p {
  color: #56636e;
  line-height: 1.8;
}

.cdrt-home-faq {
  border-top: 1px solid var(--cdrt-line-strong);
}

.cdrt-home-faq details {
  border-bottom: 1px solid var(--cdrt-line-strong);
}

.cdrt-home-faq summary {
  position: relative;
  padding: 22px 42px 22px 0;
  color: var(--cdrt-navy-950);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.cdrt-home-faq summary::-webkit-details-marker {
  display: none;
}

.cdrt-home-faq summary::after {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 24px;
  height: 24px;
  border: 1px solid var(--cdrt-line-strong);
  border-radius: 50%;
  color: var(--cdrt-navy-950);
  content: "+";
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 500;
  transform: translateY(-50%);
}

.cdrt-home-faq details[open] summary::after {
  content: "−";
}

.cdrt-home-faq details p {
  max-width: 650px;
  margin: -4px 40px 22px 0;
  color: var(--cdrt-muted);
  font-size: 14px;
  line-height: 1.75;
}

@media (max-width: 1080px) {
  .cdrt-home-hero::before {
    display: none;
  }

  .cdrt-home-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(340px, .8fr);
    gap: 42px;
  }

  .cdrt-home-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cdrt-home-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cdrt-home-product h3 {
    min-height: 0;
  }
}

@media (max-width: 860px) {
  .cdrt-home-hero__inner,
  .cdrt-home-expertise,
  .cdrt-home-seo {
    grid-template-columns: 1fr;
  }

  .cdrt-home-hero__inner {
    min-height: 0;
  }

  .cdrt-home-hero__copy {
    max-width: 760px;
  }

  .cdrt-home-showcase {
    max-width: 650px;
  }

  .cdrt-home-section__header {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cdrt-home-guidance-grid {
    grid-template-columns: 1fr;
  }

  .cdrt-home-guidance-card {
    min-height: 0;
  }

  .cdrt-home-guidance-card__number {
    margin-bottom: 24px;
  }

  .cdrt-home-expertise {
    padding: clamp(38px, 6vw, 58px);
  }

  .cdrt-home-seo {
    gap: 44px;
  }
}

@media (max-width: 620px) {
  .cdrt-home-hero__inner {
    padding-block: 50px 68px;
  }

  .cdrt-home-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.25rem);
  }

  .cdrt-home-hero__lead {
    font-size: 1rem;
  }

  .cdrt-home-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cdrt-button {
    width: 100%;
  }

  .cdrt-home-proof {
    grid-template-columns: 1fr;
  }

  .cdrt-home-proof li,
  .cdrt-home-proof li + li {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px 0;
    border-left: 0;
    border-bottom: 1px solid rgba(15, 33, 51, .08);
  }

  .cdrt-home-proof span {
    margin-top: 0;
    text-align: right;
  }

  .cdrt-home-showcase {
    gap: 8px;
    padding: 10px;
    border-radius: 16px;
  }

  .cdrt-home-showcase__product:first-child {
    margin-top: 18px;
    margin-bottom: -18px;
  }

  .cdrt-home-showcase__meta {
    min-height: 96px;
    padding: 13px;
  }

  .cdrt-home-showcase__meta strong {
    font-size: 12px;
  }

  .cdrt-home-showcase__fallback {
    min-height: 330px;
    padding: 26px;
  }

  .cdrt-home-section {
    padding-block: 68px;
  }

  .cdrt-home-section__header {
    margin-bottom: 28px;
  }

  .cdrt-home-categories,
  .cdrt-home-products {
    grid-template-columns: 1fr;
  }

  .cdrt-home-category {
    grid-template-columns: 112px 1fr;
    min-height: 130px;
  }

  .cdrt-home-category__body {
    padding: 18px;
  }

  .cdrt-home-category__body h3 {
    font-size: 1rem;
  }

  .cdrt-home-product {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .cdrt-home-product__image {
    aspect-ratio: auto;
    min-height: 164px;
    padding: 16px;
  }

  .cdrt-home-product__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
  }

  .cdrt-home-expertise {
    width: 100%;
    border-radius: 0;
    padding-inline: max(14px, calc((100vw - min(calc(100% - 28px), var(--cdrt-content))) / 2));
  }

  .cdrt-home-expertise__points > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cdrt-button,
  .cdrt-home-showcase__product,
  .cdrt-home-category,
  .cdrt-home-category__visual img,
  .cdrt-home-product,
  .cdrt-home-product__image img {
    transition: none;
  }
}
