@charset "UTF-8";

.merchant-page {
  --merchant-purple: #8125b5;
  --merchant-purple-soft: #f4dcff;
  --merchant-navy: #25386f;
  --merchant-text: #282936;
  --merchant-muted: #747582;
  --merchant-surface: #f7f7fb;
  --merchant-border: #e6e6ee;
  margin-top: 74px;
  padding: 30px 0 72px;
  color: var(--merchant-text);
  font-family: "Open Sans", sans-serif;
}

/* Le header du site reste celui d'Ouirésa ; seul le titre Drupal dupliqué est masqué. */
.page-node-type-client .title-content {
  display: none;
}

.page-node-type-client #block-ouiresa-market-theme-logoheader {
  display: block;
}

.page-node-type-client #block-ouiresa-market-theme-logoheader img {
  display: block;
}

.merchant-page *,
.merchant-page *::before,
.merchant-page *::after {
  box-sizing: border-box;
}

.merchant-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.merchant-breadcrumb {
  margin-bottom: 18px;
  color: #92929c;
  font-size: 14px;
}

.merchant-breadcrumb .block-system-breadcrumb-block {
  margin: 0;
}

.merchant-layout {
  display: grid;
  grid-template-columns: minmax(0, 820px) 310px;
  gap: 50px;
  align-items: start;
}

.merchant-main {
  min-width: 0;
}

.merchant-client-summary {
  margin-bottom: 18px;
}

.merchant-identity {
  display: flex;
  align-items: center;
  min-height: 114px;
  gap: 22px;
}

.merchant-logo {
  display: grid;
  flex: 0 0 124px;
  width: 124px;
  height: 104px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--merchant-border);
  border-radius: 50%;
  background: #fff;
}

.merchant-logo img {
  display: block;
  max-width: 92px;
  max-height: 78px;
  object-fit: contain;
}

.merchant-heading {
  min-width: 0;
}

.merchant-eyebrow {
  display: block;
  margin-bottom: 2px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 700;
}

.merchant-heading h1 {
  margin: 0 0 10px;
  color: #12131a;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(34px, 3vw, 40px);
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.merchant-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 14px;
  margin: -2px 0 9px;
  color: #6f707b;
  font-size: 13px;
}

.merchant-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.merchant-meta svg {
  width: 13px;
  fill: var(--merchant-purple);
}

.merchant-meta strong {
  color: var(--merchant-purple);
}

.merchant-trust-badges,
.merchant-service-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #71727d;
  font-size: 13px;
  line-height: 1.2;
}

.merchant-trust-badges > span,
.merchant-service-badges > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.merchant-trust-badges > span {
  min-height: 29px;
  padding: 4px 10px 4px 5px;
  border-radius: 16px;
  background: #f7f7fb;
}

.merchant-benefit-icon {
  display: inline-flex;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.merchant-benefit-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.merchant-benefit-reservation {
  background: #7022a4;
}

.merchant-benefit-ffv {
  background: #3d8cff;
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-style: italic;
  letter-spacing: -.5px;
}

.merchant-benefit-payment {
  background: #24bda9;
  font: 800 10px/1 Arial, sans-serif;
}

.merchant-benefit-insurance {
  background: #151c5b;
}

.merchant-intro {
  margin: 14px 0 0;
  color: #747580;
  font-size: 15px;
  font-style: italic;
  line-height: 24px;
}

.merchant-anchor-nav {
  position: sticky;
  z-index: 35;
  top: 70px;
  display: flex;
  min-height: 48px;
  margin-bottom: 30px;
  overflow: hidden;
  border: 1px solid #eeeeF4;
  border-radius: 24px;
  background: rgba(248, 248, 252, .97);
  box-shadow: 0 6px 20px rgba(30, 31, 46, .05);
  backdrop-filter: blur(8px);
}

.merchant-anchor-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  flex: 1 1 0;
  padding: 0 12px;
  color: var(--merchant-navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 46px;
  text-align: center;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}

.merchant-anchor-nav a:hover,
.merchant-anchor-nav a:focus-visible {
  color: var(--merchant-purple);
  background: #fff;
}

.merchant-anchor-nav svg {
  width: 17px;
  fill: currentColor;
}

.merchant-anchor-nav .merchant-home-link {
  flex: 0 0 48px;
}

.merchant-anchor-nav .merchant-nav-book {
  flex: 0 0 auto;
  margin: 7px;
  padding: 0 18px;
  border-radius: 16px;
  color: #fff;
  background: var(--merchant-purple);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 15px;
  font-style: italic;
  line-height: 32px;
  text-transform: uppercase;
}

.merchant-booking-card {
  position: sticky;
  top: 92px;
  padding: 28px 25px 24px;
  border-radius: 15px;
  background: #f8f8fc;
  text-align: center;
}

.merchant-booking-card h2 {
  margin: 0 0 13px;
  color: #242533;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 24px;
  font-style: italic;
  font-weight: 800;
  line-height: 1.1;
}

.merchant-booking-card p {
  margin: 0 auto 16px;
  color: #676874;
  font-size: 13px;
  line-height: 20px;
}

.merchant-payment-brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.merchant-payment-brands span {
  display: inline-flex;
  width: auto;
  height: 23px;
  align-items: center;
  justify-content: center;
}

.merchant-payment-logo svg {
  display: block;
  width: auto;
  height: 23px;
}

.merchant-payment-visa {
  color: #153f8c;
  font: italic 900 14px/1 Arial, sans-serif;
  letter-spacing: -.8px;
}

.merchant-payment-three {
  min-width: 24px;
  padding: 0 4px;
  border-radius: 3px;
  color: #fff;
  background: #25bda8;
  font: 800 12px/1 Arial, sans-serif;
}

.merchant-booking-card > a,
.merchant-owner-cta > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 22px;
  border-radius: 4px;
  color: var(--merchant-purple);
  background: var(--merchant-purple-soft);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, color .2s ease, background .2s ease;
}

.merchant-booking-card > a:hover,
.merchant-owner-cta > a:hover {
  transform: translateY(-2px);
  color: #fff;
  background: var(--merchant-purple);
}

.merchant-section {
  scroll-margin-top: 142px;
  padding: 0 0 38px;
  margin: 0 0 38px;
  border-bottom: 1px solid #ededf2;
}

.merchant-section h2,
.merchant-owner-cta h2 {
  margin: 0;
  color: #20212a;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 24px;
  font-style: italic;
  font-weight: 800;
  line-height: 1.15;
}

.merchant-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.merchant-result-count {
  color: #7d7e89;
  font-size: 14px;
  white-space: nowrap;
}

.merchant-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.merchant-filters label {
  display: grid;
  gap: 6px;
}

.merchant-filters label > span {
  color: #343541;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.merchant-filters select {
  width: 100%;
  height: 39px;
  padding: 0 38px 0 14px;
  border: 1px solid #dedee8;
  border-radius: 20px;
  outline: 0;
  color: #656671;
  background: #fff;
  font: 14px "Open Sans", sans-serif;
}

.merchant-filters select:focus-visible {
  border-color: var(--merchant-purple);
  box-shadow: 0 0 0 3px rgba(129, 37, 181, .12);
}

.merchant-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 28px;
}

.merchant-product-card {
  min-width: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid #ebebf1;
}

.merchant-product-image {
  position: relative;
  display: block;
  height: 210px;
  overflow: hidden;
  border: 1px solid #dedee7;
  border-radius: 13px;
  background: #eff0f4;
}

.merchant-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.merchant-product-card:hover .merchant-product-image img {
  transform: scale(1.045);
}

.merchant-product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  padding: 4px 9px;
  overflow: hidden;
  border-radius: 12px;
  color: #fff;
  background: rgba(129, 37, 181, .9);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.merchant-product-content {
  padding-top: 11px;
}

.merchant-product-content h3 {
  margin: 0 0 6px;
  line-height: 1.05;
}

.merchant-product-content h3 a {
  color: #171820;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.merchant-product-content h3 a:hover {
  color: var(--merchant-purple);
}

.merchant-product-location {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  color: #70717c;
  font-size: 13px;
}

.merchant-product-location svg {
  width: 13px;
  fill: #70717c;
}

.merchant-product-description {
  display: -webkit-box;
  min-height: 60px;
  margin-bottom: 9px;
  overflow: hidden;
  color: #747580;
  font-size: 14px;
  line-height: 20px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.merchant-product-description p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.merchant-product-provider {
  display: block;
  min-height: 18px;
  margin-bottom: 8px;
  color: #41424d;
  font-size: 13px;
  font-weight: 700;
}

.merchant-product-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 44px;
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.merchant-product-price {
  display: grid;
}

.merchant-product-price small {
  color: #82838c;
  font-size: 11px;
  line-height: 1;
}

.merchant-product-price strong {
  color: #181921;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 30px;
  font-style: italic;
  line-height: 1;
}

.merchant-product-price sup {
  font-size: 14px;
}

.merchant-product-button {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 13px;
  border-radius: 3px;
  color: var(--merchant-purple);
  background: var(--merchant-purple-soft);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.merchant-product-button:hover {
  color: #fff;
  background: var(--merchant-purple);
}

.merchant-product-button span {
  margin-left: 4px;
  font-size: 18px;
  line-height: 10px;
}

.merchant-more-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.merchant-more-button,
.merchant-description-toggle {
  padding: 7px 15px;
  border: 0;
  color: var(--merchant-purple);
  background: transparent;
  cursor: pointer;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
}

.merchant-more-button:hover,
.merchant-description-toggle:hover {
  text-decoration: underline;
}

.merchant-empty-results {
  padding: 24px;
  border-radius: 8px;
  background: var(--merchant-surface);
  color: var(--merchant-muted);
  font-size: 15px;
  text-align: center;
}

.merchant-about h2,
.merchant-location h2,
.merchant-coordinates h2 {
  margin-bottom: 18px;
}

.merchant-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 135px);
  gap: 10px;
  margin-bottom: 12px;
}

.merchant-gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 13px;
  background: #eff0f4;
}

.merchant-gallery-item:first-child {
  grid-row: 1 / 3;
}

.merchant-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.merchant-gallery-item:hover img {
  transform: scale(1.04);
}

.merchant-gallery-count-1 {
  display: block;
}

.merchant-gallery-count-1 .merchant-gallery-item {
  height: 320px;
}

.merchant-gallery-count-2 {
  grid-template-rows: 280px;
  grid-template-columns: repeat(2, 1fr);
}

.merchant-gallery-count-2 .merchant-gallery-item:first-child {
  grid-row: auto;
}

.merchant-service-badges {
  margin: 13px 0 17px;
}

.merchant-description {
  position: relative;
  color: #565762;
  font-size: 15px;
  line-height: 28px;
}

.merchant-description p,
.merchant-description li {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.merchant-description.is-collapsed {
  max-height: 125px;
  overflow: hidden;
}

.merchant-description.is-collapsed::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 55px;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff);
  content: "";
}

.merchant-description-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 9px;
}

.merchant-map {
  width: 100%;
  height: 440px;
  overflow: hidden;
  border-radius: 14px;
  background: #e9edf0;
}

.page-node-type-client .ouiresa-map-marker {
  border: 0;
  background: transparent;
}

.page-node-type-client .ouiresa-map-marker span {
  position: relative;
  display: block;
  width: 23px;
  height: 23px;
  border: 4px solid var(--merchant-purple);
  border-radius: 50% 50% 50% 0;
  background: #fff;
  box-shadow: 0 2px 6px rgba(78, 37, 100, .25);
  transform: rotate(-45deg);
}

.merchant-map .leaflet-popup-content-wrapper {
  border-radius: 9px;
}

.merchant-map-popup h3 {
  margin: 0 0 4px;
  color: #242530;
  font: italic 800 16px/1.1 "Barlow Condensed", sans-serif;
}

.merchant-map-popup p {
  margin: 0 0 8px;
  color: #676874;
  font-size: 11px;
  line-height: 1.4;
}

.merchant-map-popup a {
  color: var(--merchant-purple);
  font-size: 11px;
  font-weight: 700;
}

.merchant-coordinate-list {
  display: grid;
  gap: 10px;
}

.merchant-coordinate-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 18px;
  padding: 13px 18px;
  border-radius: 13px;
  background: #f7f7fb;
}

.merchant-coordinate-card > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.merchant-coordinate-card strong {
  color: #282934;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 800;
}

.merchant-coordinate-card span {
  color: #747580;
  font-size: 14px;
}

.merchant-coordinate-contact {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.merchant-coordinate-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 4px;
  color: var(--merchant-purple);
  background: var(--merchant-purple-soft);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 15px;
  font-style: italic;
  font-weight: 800;
  text-decoration: none;
}

.merchant-coordinate-card svg {
  width: 14px;
  fill: currentColor;
}

.merchant-owner-cta {
  padding: 28px 34px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff4ff, #f6f0ff);
  text-align: center;
}

.merchant-owner-cta h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.merchant-owner-cta p {
  max-width: 670px;
  margin: 0 auto 16px;
  color: #62636f;
  font-size: 15px;
  line-height: 24px;
}

@media (max-width: 1050px) {
  .merchant-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
  }

  .merchant-shell {
    width: min(1040px, calc(100% - 36px));
  }

  .merchant-product-image {
    height: 190px;
  }
}

@media (max-width: 860px) {
  .merchant-page {
    padding-top: 22px;
  }

  .merchant-layout {
    display: flex;
    flex-direction: column;
  }

  .merchant-main {
    width: 100%;
  }

  .merchant-booking-card {
    position: static;
    order: -1;
    width: 100%;
    margin-bottom: 4px;
  }

  .merchant-anchor-nav {
    top: 64px;
  }
}

@media (max-width: 650px) {
  .merchant-shell {
    width: calc(100% - 24px);
  }

  .merchant-page {
    padding-bottom: 45px;
  }

  .merchant-identity {
    align-items: flex-start;
  }

  .merchant-logo {
    flex-basis: 88px;
    width: 88px;
    height: 82px;
    border-radius: 16px;
  }

  .merchant-logo img {
    max-width: 70px;
    max-height: 60px;
  }

  .merchant-heading h1 {
    font-size: 28px;
  }

  .merchant-trust-badges {
    gap: 6px 10px;
  }

  .merchant-anchor-nav {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    border-radius: 12px;
    scrollbar-width: none;
  }

  .merchant-anchor-nav::-webkit-scrollbar {
    display: none;
  }

  .merchant-anchor-nav a {
    flex: 0 0 auto;
    min-width: 100px;
  }

  .merchant-anchor-nav .merchant-home-link {
    min-width: 48px;
  }

  .merchant-anchor-nav .merchant-nav-book {
    line-height: 32px;
  }

  .merchant-section-heading {
    display: grid;
    gap: 5px;
  }

  .merchant-filters,
  .merchant-products {
    grid-template-columns: 1fr;
  }

  .merchant-product-image {
    height: clamp(210px, 58vw, 300px);
  }

  .merchant-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 120px;
  }

  .merchant-gallery-item:first-child {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .merchant-gallery-count-1 .merchant-gallery-item {
    height: 250px;
  }

  .merchant-gallery-count-2 {
    grid-template-rows: 220px 150px;
  }

  .merchant-gallery-count-2 .merchant-gallery-item:first-child {
    grid-column: 1 / 3;
  }

  .merchant-gallery-count-2 .merchant-gallery-item:last-child {
    grid-column: 1 / 3;
  }

  .merchant-map {
    height: 330px;
  }

  .merchant-coordinate-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .merchant-coordinate-contact {
    width: 100%;
  }

  .merchant-coordinate-contact a {
    width: 100%;
    justify-content: center;
  }

  .merchant-owner-cta {
    padding: 25px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .merchant-page *,
  .merchant-page *::before,
  .merchant-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
