/**
 * Trouver Dzigana / Find Dzigana — design + UX (couleurs d’origine conservées)
 * Scope : body.page-stores
 * Palette : #FFF · #FCD16F · #CABBCD · #94B283 · texte #1a1a1a
 * 2026-11-18
 */

/* ---- Base ---- */
body.page-stores #wrapper,
body.page-stores #content,
body.page-stores .page-content {
  font-family: "DM Sans", sans-serif;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.page-stores .breadcrumb {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

body.page-stores #content.page-content > .container {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  margin-bottom: 0 !important;
}

/* ---- Hero ---- */
body.page-stores #lazyload.ApRow.has-bg {
  position: relative;
  display: flex !important;
  align-items: flex-end;
  justify-content: center;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  height: 420px !important;
  min-height: 420px !important;
  max-height: 420px;
}

body.page-stores #lazyload.ApRow.has-bg::before {
  background-size: cover !important;
  background-position: 50% 42% !important;
  background-repeat: no-repeat !important;
  z-index: 0;
}

body.page-stores #lazyload.ApRow.has-bg::after {
  content: "" !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100% !important;
  padding: 0 1000px;
  margin-left: -1000px;
  box-sizing: content-box;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.58) 0%,
    rgba(0, 0, 0, 0.25) 42%,
    rgba(0, 0, 0, 0.06) 75%,
    transparent 100%
  );
}

body.page-stores #lazyload .ApColumn {
  position: relative;
  z-index: 2;
  width: 100%;
}

body.page-stores #lazyload .title-whoweare {
  margin: 0 auto clamp(28px, 5vh, 52px) !important;
  padding: 0 20px;
  color: #fff !important;
  font-family: "DM Sans", sans-serif !important;
  font-size: clamp(30px, 5vw, 50px) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  line-height: 1.1 !important;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

/* ---- Jump nav ---- */
body.page-stores .stores-jumpnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 1120px;
  margin: -28px auto 36px;
  padding: 0 16px;
  position: relative;
  z-index: 3;
}

body.page-stores .stores-jumpnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(26, 26, 26, 0.12);
  background: #fff;
  color: #1a1a1a !important;
  font-family: "DM Sans", sans-serif !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

body.page-stores .stores-jumpnav a:hover,
body.page-stores .stores-jumpnav a:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  color: #1a1a1a !important;
  outline: none;
}

body.page-stores .stores-jumpnav a[href="#market"] {
  background: #fff;
}

body.page-stores .stores-jumpnav a[href="#events"] {
  background: #FCD16F;
  border-color: transparent;
}

body.page-stores .stores-jumpnav a[href="#resellers"] {
  background: #CABBCD;
  border-color: transparent;
}

body.page-stores .stores-jumpnav a[href="#contactus"] {
  background: #94B283;
  border-color: transparent;
}

/* ---- Sections plein largeur (couleurs d’origine) ---- */
body.page-stores #market.ApRow.has-bg,
body.page-stores #events.ApRow.has-bg,
body.page-stores #resellers.ApRow.has-bg,
body.page-stores #contactus.ApRow.has-bg {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-bottom: 0 !important;
  padding: 48px 0 56px !important;
}

body.page-stores #market > .row,
body.page-stores #events > .row,
body.page-stores #resellers > .row {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

body.page-stores #market > .row + .row,
body.page-stores #events > .row + .row,
body.page-stores #resellers > .row + .row {
  margin-top: 8px;
}

/* ---- Titres de section ---- */
body.page-stores #market h3,
body.page-stores #events h3,
body.page-stores #resellers h3 {
  margin: 0 auto 8px !important;
  padding: 0 !important;
  font-family: "Playfair Display", serif !important;
  font-size: clamp(22px, 2.4vw, 28px) !important;
  font-weight: 400 !important;
  font-style: italic;
  line-height: 1.3 !important;
  text-align: center;
  color: #1a1a1a;
  letter-spacing: 0;
}

body.page-stores #market h2,
body.page-stores #events h2,
body.page-stores #resellers h2 {
  margin: 0 auto 28px !important;
  padding: 0 !important;
  font-family: "DM Sans", sans-serif !important;
  font-size: clamp(26px, 3.4vw, 36px) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  color: #1a1a1a;
}

/* ---- Listes = hauteur carte (scroll interne uniquement desktop) ---- */
body.page-stores {
  --stores-map-h: 420px;
  --stores-map-h-events: 500px; /* 1 fiche ouverte + 3 résumés sans scroll forcé */
}

/* Colonne liste : même hauteur que la carte, overflow dans #store-N */
@media (min-width: 992px) {
  body.page-stores #market > .row:nth-child(2),
  body.page-stores #events > .row:nth-child(2),
  body.page-stores #resellers > .row:nth-child(2) {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 20px; /* aération entre image / liste / carte */
  }

  body.page-stores #market > .row:nth-child(2) > [class*="col-"],
  body.page-stores #events > .row:nth-child(2) > [class*="col-"],
  body.page-stores #resellers > .row:nth-child(2) > [class*="col-"] {
    display: flex;
    flex-direction: column;
    float: none;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Largeurs stables avec gap (évite les 3 cellules collées) */
  body.page-stores #market > .row:nth-child(2) > .col-md-6,
  body.page-stores #resellers > .row:nth-child(2) > .col-md-6 {
    flex: 1 1 0;
    max-width: none;
    width: auto;
  }

  body.page-stores #events > .row:nth-child(2) > .col-md-4 {
    flex: 1 1 0;
    max-width: none;
    width: auto;
  }

  body.page-stores #store-1,
  body.page-stores #store-3 {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
    height: var(--stores-map-h);
    max-height: var(--stores-map-h);
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    padding: 0 4px 0 0;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.page-stores #store-2 {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
    height: var(--stores-map-h-events);
    max-height: var(--stores-map-h-events);
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    padding: 0 4px 0 0;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}

body.page-stores #store-1::-webkit-scrollbar,
body.page-stores #store-2::-webkit-scrollbar,
body.page-stores #store-3::-webkit-scrollbar {
  width: 6px;
}

body.page-stores #store-1::-webkit-scrollbar-thumb,
body.page-stores #store-2::-webkit-scrollbar-thumb,
body.page-stores #store-3::-webkit-scrollbar-thumb {
  background: rgba(26, 26, 26, 0.28);
}

/* Accordéon compact : résumé toujours visible, détail si .is-active */
body.page-stores .store-item-1.card,
body.page-stores .store-item-2.card,
body.page-stores .store-item-3.card {
  background: #fff !important;
  border: 1px solid rgba(26, 26, 26, 0.1) !important;
  border-left: 3px solid transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer;
  flex: 0 0 auto;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

body.page-stores .store-item-1.card:hover,
body.page-stores .store-item-2.card:hover,
body.page-stores .store-item-3.card:hover {
  border-color: rgba(26, 26, 26, 0.22) !important;
  border-left-color: #94B283 !important;
}

body.page-stores .store-item-1.card.is-active,
body.page-stores .store-item-2.card.is-active,
body.page-stores .store-item-3.card.is-active {
  border-color: rgba(26, 26, 26, 0.18) !important;
  border-left-color: #94B283 !important;
  background: #fff !important;
}

body.page-stores #events .store-item-2.card.is-active,
body.page-stores #events .store-item-2.card:hover {
  border-left-color: #1a1a1a !important;
}

body.page-stores #resellers .store-item-3.card.is-active,
body.page-stores #resellers .store-item-3.card:hover {
  border-left-color: #8a6f96 !important;
}

body.page-stores .store-item-1.card.highlight,
body.page-stores .store-item-2.card.highlight,
body.page-stores .store-item-3.card.highlight {
  background-color: #f3f7f0 !important;
}

body.page-stores .store-item-container.clearfix {
  padding: 0 !important;
}

body.page-stores .store-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  min-height: 52px;
}

body.page-stores #events .store-summary {
  min-height: 48px;
  padding: 9px 12px;
}

body.page-stores .store-summary-main {
  min-width: 0;
  flex: 1 1 auto;
}

body.page-stores .store-summary .card-title,
body.page-stores .store-summary .h3.card-title {
  margin: 0 0 2px !important;
  padding: 0 !important;
  font-family: "DM Sans", sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #1a1a1a !important;
  text-transform: none;
  letter-spacing: 0;
}

body.page-stores .store-summary-meta {
  margin: 0 !important;
  font-size: 12px;
  line-height: 1.35;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.page-stores .store-chevron {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid #1a1a1a;
  border-bottom: 2px solid #1a1a1a;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  opacity: 0.55;
}

body.page-stores .card.is-active .store-chevron {
  transform: rotate(225deg);
  opacity: 0.9;
}

body.page-stores .store-details {
  display: none;
  padding: 0 14px 14px;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
  margin: 0 14px;
  padding-top: 12px;
  padding-left: 0;
  padding-right: 0;
}

body.page-stores .card.is-active .store-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  align-items: start;
  animation: storesReveal 0.22s ease;
}

body.page-stores #store-2 .card.is-active .store-details {
  display: block;
  padding-top: 10px;
  padding-bottom: 10px;
}

body.page-stores #events .times-hours li {
  font-size: 12px;
  line-height: 1.35;
  margin: 0 0 2px;
}

body.page-stores #events .store-details address,
body.page-stores #events .store-details p {
  font-size: 12px;
  margin-bottom: 4px !important;
}

@keyframes storesReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

body.page-stores .store-details > .col-md-6,
body.page-stores .store-details > .col-md-12 {
  width: auto !important;
  float: none !important;
  padding: 0 !important;
  max-width: none !important;
  flex: none !important;
}

body.page-stores .store-details > .col-md-12 {
  grid-column: 1 / -1;
}

body.page-stores .store-details address {
  margin: 0 0 8px !important;
  font-style: normal;
  font-size: 13px;
  line-height: 1.45;
  color: #4a4a4a;
}

body.page-stores .store-details p {
  margin: 0 0 6px !important;
  font-size: 13px;
  line-height: 1.45;
  color: #4a4a4a;
}

body.page-stores .store-details a {
  color: #1a1a1a !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.page-stores .store-details a.store-phone {
  text-decoration: none;
  font-weight: 600;
}

body.page-stores .store-details a.store-phone:hover {
  text-decoration: underline;
}

body.page-stores .times-hours {
  margin: 0 !important;
  padding: 0;
  list-style: none !important;
}

body.page-stores .times-hours li {
  list-style: none !important;
  position: relative;
  padding-left: 12px;
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.45;
  color: #333;
}

body.page-stores .times-hours li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: #94B283;
}

body.page-stores #events .times-hours li::before {
  background: #1a1a1a;
}

body.page-stores #resellers .times-hours li::before {
  background: #CABBCD;
}

body.page-stores .store-note {
  margin-top: 8px !important;
  padding: 8px 10px;
  background: rgba(26, 26, 26, 0.04);
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: #333 !important;
}

body.page-stores .store-note .store-note-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
  color: #666;
}

/* ---- Cartes Google (hauteur fixe = référence liste) ---- */
body.page-stores #map-1,
body.page-stores #map-3 {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: 0 0 auto;
  min-height: var(--stores-map-h) !important;
  height: var(--stores-map-h) !important;
  max-height: var(--stores-map-h) !important;
  margin: 0 !important;
  border: 1px solid rgba(26, 26, 26, 0.1);
  background: #f4f1ec;
}

body.page-stores #map-2 {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: 0 0 auto;
  min-height: var(--stores-map-h-events) !important;
  height: var(--stores-map-h-events) !important;
  max-height: var(--stores-map-h-events) !important;
  margin: 0 !important;
  border: 1px solid rgba(26, 26, 26, 0.1);
  background: #f4f1ec;
}

body.page-stores #imgfoundus {
  width: 100% !important;
  max-width: 100%;
  flex: 1 1 auto;
  height: var(--stores-map-h-events) !important;
  max-height: var(--stores-map-h-events) !important;
  margin: 0 !important;
  display: block;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(26, 26, 26, 0.08);
}

body.page-stores .col-md-4.maxheight {
  max-height: none !important;
}

/* ---- CTA contact ---- */
body.page-stores #contactus.ApRow.has-bg {
  padding: 56px 20px !important;
  text-align: center;
}

body.page-stores #contactus .footer-who-arewe {
  max-width: 42em;
  margin: 0 auto 20px !important;
  padding: 0 12px;
  font-family: "DM Sans", sans-serif !important;
  font-size: clamp(16px, 2.2vw, 20px) !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1a1a !important;
  text-align: center;
}

body.page-stores .AppButton.contact-btn.ApButton {
  margin: 0 auto !important;
  text-align: center;
}

body.page-stores .AppButton.contact-btn.ApButton .btn,
body.page-stores .AppButton.contact-btn.ApButton .btn.btn-primary {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  height: auto !important;
  padding: 14px 36px !important;
  border: none !important;
  border-radius: 0 !important;
  background: #FCD16F !important;
  color: #1a1a1a !important;
  font-family: "DM Sans", sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: none !important;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

body.page-stores .AppButton.contact-btn.ApButton .btn:hover,
body.page-stores .AppButton.contact-btn.ApButton .btn:focus {
  background: #f0c45a !important;
  color: #1a1a1a !important;
  transform: translateY(-1px);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  body.page-stores #lazyload.ApRow.has-bg {
    height: 320px !important;
    min-height: 320px !important;
    max-height: 320px;
  }

  body.page-stores .stores-jumpnav {
    margin-top: -20px;
    margin-bottom: 28px;
  }

  /* Mobile : accordéon sans hauteur forcée, puis carte */
  body.page-stores #store-1,
  body.page-stores #store-2,
  body.page-stores #store-3 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    margin-bottom: 16px;
    padding-right: 0;
  }

  body.page-stores .card.is-active .store-details {
    grid-template-columns: 1fr;
  }

  body.page-stores #map-1,
  body.page-stores #map-3 {
    min-height: 280px !important;
    height: 280px !important;
    max-height: 280px !important;
    margin-bottom: 8px !important;
  }

  body.page-stores #map-2 {
    min-height: 260px !important;
    height: 260px !important;
    max-height: 260px !important;
    margin-bottom: 8px !important;
  }

  body.page-stores #imgfoundus {
    height: auto !important;
    max-height: 240px !important;
    margin-bottom: 16px !important;
  }
}

@media (max-width: 575px) {
  body.page-stores .store-description {
    grid-template-columns: 1fr;
  }

  body.page-stores .stores-jumpnav {
    gap: 8px;
  }

  body.page-stores .stores-jumpnav a {
    flex: 1 1 calc(50% - 8px);
    padding: 10px 12px;
    font-size: 12px;
  }

  body.page-stores #market.ApRow.has-bg,
  body.page-stores #events.ApRow.has-bg,
  body.page-stores #resellers.ApRow.has-bg {
    padding: 36px 0 44px !important;
  }
}

/* Motion doux (respecte reduced-motion) */
@media (prefers-reduced-motion: reduce) {
  body.page-stores .stores-jumpnav a,
  body.page-stores .store-item-1.card,
  body.page-stores .store-item-2.card,
  body.page-stores .store-item-3.card,
  body.page-stores .AppButton.contact-btn.ApButton .btn {
    transition: none;
  }

  body.page-stores #store-1,
  body.page-stores #store-2,
  body.page-stores #store-3 {
    scroll-behavior: auto;
  }
}
