/**
 * Lieux de Retraites — Pages taxonomie « Types de retraites »
 * Scope : #ldr-type-retraite
 */

body.ldrt-ready .section.hero-type-tag,
body.ldrt-ready .section.hero-property-type,
body.ldrt-ready .section.hero-location,
body.ldrt-ready .section.hero-seminaire,
body.ldrt-ready .section.properties-in-locations,
body.ldrt-ready .grid-properties-halves,
body.ldrt-ready .section.grid-properties,
body.ldrt-ready .w-richtext:not(#ldr-type-retraite .ldrt-prose *) {
  display: none !important;
}

#ldr-type-retraite {
  --ldrt-green: #28420a;
  --ldrt-green-deep: #152406;
  --ldrt-green-mid: #3d5c3a;
  --ldrt-sage: #8fa67a;
  --ldrt-sage-light: #d4dfc8;
  --ldrt-cream: #f6f4ee;
  --ldrt-sand: #ece7db;
  --ldrt-white: #ffffff;
  --ldrt-ink: #141412;
  --ldrt-muted: #5c5c56;
  --ldrt-line: rgba(20, 20, 18, 0.08);
  --ldrt-accent: #d4645a;
  --ldrt-accent-soft: rgba(212, 100, 90, 0.12);
  --ldrt-shadow: 0 18px 50px rgba(20, 20, 18, 0.08);
  --ldrt-shadow-hover: 0 28px 70px rgba(20, 20, 18, 0.14);
  --ldrt-radius: 22px;
  --ldrt-radius-sm: 14px;
  --ldrt-radius-pill: 999px;
  --ldrt-font-serif: "Fraunces", "Georgia", serif;
  --ldrt-font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --ldrt-max: 1240px;
  --ldrt-gutter: clamp(18px, 4vw, 44px);
  --ldrt-ease: cubic-bezier(0.22, 1, 0.36, 1);

  box-sizing: border-box;
  width: 100%;
  font-family: var(--ldrt-font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ldrt-ink);
  background: var(--ldrt-cream);
  -webkit-font-smoothing: antialiased;
}

#ldr-type-retraite *,
#ldr-type-retraite *::before,
#ldr-type-retraite *::after {
  box-sizing: border-box;
}

#ldr-type-retraite img {
  max-width: 100%;
  height: auto;
  display: block;
}

#ldr-type-retraite a {
  color: inherit;
  text-decoration: none;
}

#ldr-type-retraite button {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

#ldr-type-retraite .ldrt-wrap {
  width: 100%;
  max-width: var(--ldrt-max);
  margin-inline: auto;
  padding-inline: var(--ldrt-gutter);
}

/* ——— Loader / error ——— */
#ldr-type-retraite.ldrt-loading {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#ldr-type-retraite .ldrt-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--ldrt-muted);
  font-size: 0.9375rem;
}

#ldr-type-retraite .ldrt-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--ldrt-sage-light);
  border-top-color: var(--ldrt-green);
  border-radius: 50%;
  animation: ldrt-spin 0.75s linear infinite;
}

@keyframes ldrt-spin {
  to { transform: rotate(360deg); }
}

#ldr-type-retraite .ldrt-error {
  padding: 48px 0;
  text-align: center;
  color: var(--ldrt-muted);
}

/* ——— Hero ——— */
#ldr-type-retraite .ldrt-hero {
  position: relative;
  padding-block: clamp(40px, 7vw, 88px) clamp(28px, 4vw, 48px);
  overflow: clip;
}

#ldr-type-retraite .ldrt-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(143, 166, 122, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 50% at 95% 15%, rgba(212, 100, 90, 0.14), transparent 50%),
    linear-gradient(180deg, #faf8f2 0%, var(--ldrt-cream) 100%);
}

#ldr-type-retraite .ldrt-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: end;
}

#ldr-type-retraite .ldrt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: var(--ldrt-radius-pill);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--ldrt-line);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ldrt-green-mid);
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}

#ldr-type-retraite .ldrt-h1 {
  margin: 0 0 16px;
  font-family: var(--ldrt-font-serif);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ldrt-green-deep);
}

#ldr-type-retraite .ldrt-h1 em {
  font-style: italic;
  color: var(--ldrt-green);
}

#ldr-type-retraite .ldrt-lead {
  margin: 0;
  max-width: 38ch;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--ldrt-muted);
  line-height: 1.65;
}

#ldr-type-retraite .ldrt-hero-panel {
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--ldrt-radius);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--ldrt-line);
  box-shadow: var(--ldrt-shadow);
  backdrop-filter: blur(12px);
}

#ldr-type-retraite .ldrt-stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

#ldr-type-retraite .ldrt-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#ldr-type-retraite .ldrt-stat-value {
  font-family: var(--ldrt-font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--ldrt-green-deep);
  line-height: 1;
}

#ldr-type-retraite .ldrt-stat-label {
  font-size: 0.8125rem;
  color: var(--ldrt-muted);
}

#ldr-type-retraite .ldrt-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--ldrt-line);
}

#ldr-type-retraite .ldrt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--ldrt-radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: transform 0.2s var(--ldrt-ease), box-shadow 0.2s var(--ldrt-ease), background 0.2s;
}

#ldr-type-retraite .ldrt-btn:active {
  transform: scale(0.98);
}

#ldr-type-retraite .ldrt-btn--primary {
  background: var(--ldrt-green);
  color: var(--ldrt-white);
  box-shadow: 0 10px 28px rgba(40, 66, 10, 0.22);
}

#ldr-type-retraite .ldrt-btn--primary:hover {
  background: var(--ldrt-green-deep);
}

#ldr-type-retraite .ldrt-btn--ghost {
  background: var(--ldrt-white);
  border: 1px solid var(--ldrt-line);
  color: var(--ldrt-ink);
}

#ldr-type-retraite .ldrt-btn--ghost:hover {
  border-color: rgba(40, 66, 10, 0.2);
  background: #fff;
}

/* ——— Type nav ——— */
#ldr-type-retraite .ldrt-nav-wrap {
  padding-block: 8px 20px;
}

#ldr-type-retraite .ldrt-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#ldr-type-retraite .ldrt-nav::-webkit-scrollbar {
  display: none;
}

#ldr-type-retraite .ldrt-pill {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: var(--ldrt-radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid var(--ldrt-line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ldrt-muted);
  transition: all 0.2s var(--ldrt-ease);
}

#ldr-type-retraite .ldrt-pill:hover {
  color: var(--ldrt-green);
  border-color: rgba(40, 66, 10, 0.18);
}

#ldr-type-retraite .ldrt-pill.is-active {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(40, 66, 10, 0.22);
  color: var(--ldrt-green-deep);
  font-weight: 600;
}

/* ——— Lieux grid ——— */
#ldr-type-retraite .ldrt-section {
  padding-block: clamp(28px, 4vw, 44px);
}

#ldr-type-retraite .ldrt-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

#ldr-type-retraite .ldrt-h2 {
  margin: 0;
  min-width: 0;
  font-family: var(--ldrt-font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--ldrt-green-deep);
}

#ldr-type-retraite .ldrt-count {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.9375rem;
  color: var(--ldrt-muted);
}

#ldr-type-retraite .ldrt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
}

#ldr-type-retraite .ldrt-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--ldrt-radius);
  overflow: hidden;
  background: var(--ldrt-white);
  border: 1px solid var(--ldrt-line);
  box-shadow: var(--ldrt-shadow);
  transition: transform 0.28s var(--ldrt-ease), box-shadow 0.28s var(--ldrt-ease);
}

#ldr-type-retraite .ldrt-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ldrt-shadow-hover);
}

#ldr-type-retraite .ldrt-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ldrt-sand);
}

#ldr-type-retraite .ldrt-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ldrt-ease);
}

#ldr-type-retraite .ldrt-card:hover .ldrt-card-media img {
  transform: scale(1.04);
}

#ldr-type-retraite .ldrt-card-price {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: var(--ldrt-radius-pill);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ldrt-green-deep);
  backdrop-filter: blur(6px);
}

#ldr-type-retraite .ldrt-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 20px;
  flex: 1;
}

#ldr-type-retraite .ldrt-card-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#ldr-type-retraite .ldrt-card-title {
  margin: 0;
  font-family: var(--ldrt-font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ldrt-ink);
}

#ldr-type-retraite .ldrt-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--ldrt-muted);
}

#ldr-type-retraite .ldrt-card-meta svg {
  flex-shrink: 0;
  color: var(--ldrt-sage);
}

#ldr-type-retraite .ldrt-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--ldrt-line);
}

#ldr-type-retraite .ldrt-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--ldrt-radius-pill);
  background: var(--ldrt-cream);
  font-size: 0.75rem;
  color: var(--ldrt-muted);
}

#ldr-type-retraite .ldrt-chip svg {
  color: var(--ldrt-sage);
}

#ldr-type-retraite .ldrt-empty {
  padding: 48px 24px;
  text-align: center;
  border-radius: var(--ldrt-radius);
  background: var(--ldrt-white);
  border: 1px dashed rgba(40, 66, 10, 0.18);
  color: var(--ldrt-muted);
}

#ldr-type-retraite .ldrt-empty strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--ldrt-font-serif);
  font-size: 1.25rem;
  color: var(--ldrt-ink);
}

/* ——— Pagination ——— */
#ldr-type-retraite .ldrt-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

#ldr-type-retraite .ldrt-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--ldrt-radius-pill);
  border: 1px solid var(--ldrt-line);
  background: var(--ldrt-white);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ldrt-ink);
  transition: border-color 0.2s, background 0.2s;
}

#ldr-type-retraite .ldrt-page-btn:hover:not(:disabled) {
  border-color: rgba(40, 66, 10, 0.2);
  background: #fff;
}

#ldr-type-retraite .ldrt-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#ldr-type-retraite .ldrt-page-status {
  font-size: 0.875rem;
  color: var(--ldrt-muted);
  min-width: 8ch;
  text-align: center;
}

/* ——— Guide organisateur ——— */
#ldr-type-retraite .ldrt-guide {
  padding-block: clamp(28px, 4vw, 44px);
}

#ldr-type-retraite .ldrt-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2vw, 20px);
}

#ldr-type-retraite .ldrt-guide-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--ldrt-radius);
  background: var(--ldrt-white);
  border: 1px solid var(--ldrt-line);
  box-shadow: var(--ldrt-shadow);
  overflow: hidden;
}

#ldr-type-retraite .ldrt-guide-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px 0;
}

#ldr-type-retraite .ldrt-guide-index {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ldrt-sage);
  padding-top: 4px;
}

#ldr-type-retraite .ldrt-guide-card-title {
  margin: 0;
  font-family: var(--ldrt-font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ldrt-green-deep);
}

#ldr-type-retraite .ldrt-guide-card-body {
  padding: 22px 20px 20px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ldrt-muted);
}

#ldr-type-retraite .ldrt-prose h2,
#ldr-type-retraite .ldrt-prose h3 {
  font-family: var(--ldrt-font-serif);
  font-weight: 500;
  color: var(--ldrt-green-deep);
  margin: 1.25em 0 0.5em;
  line-height: 1.25;
}

#ldr-type-retraite .ldrt-guide-card-body.ldrt-prose h2:first-child,
#ldr-type-retraite .ldrt-guide-card-body.ldrt-prose h3:first-child {
  margin-top: 0;
}

#ldr-type-retraite .ldrt-prose h2 { font-size: 1.125rem; }
#ldr-type-retraite .ldrt-prose h3 { font-size: 1rem; }

#ldr-type-retraite .ldrt-prose p {
  margin: 0 0 0.85em;
}

#ldr-type-retraite .ldrt-prose p:last-child {
  margin-bottom: 0;
}

#ldr-type-retraite .ldrt-prose ul,
#ldr-type-retraite .ldrt-prose ol {
  margin: 0 0 0.85em;
  padding-left: 1.15em;
}

#ldr-type-retraite .ldrt-prose li {
  margin-bottom: 0.35em;
}

#ldr-type-retraite .ldrt-prose a {
  color: var(--ldrt-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#ldr-type-retraite .ldrt-prose strong {
  font-weight: 600;
  color: var(--ldrt-ink);
}

/* ——— Thématiques associées ——— */
#ldr-type-retraite .ldrt-theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#ldr-type-retraite .ldrt-prose a.ldrt-theme-pill,
#ldr-type-retraite .ldrt-theme-pill,
#ldr-type-retraite .ldrt-theme-pill:hover,
#ldr-type-retraite .ldrt-theme-pill-label {
  text-decoration: none;
}

#ldr-type-retraite .ldrt-theme-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  padding: 9px 11px;
  border-radius: var(--ldrt-radius-pill);
  background: linear-gradient(180deg, #faf9f5 0%, var(--ldrt-cream) 100%);
  border: 1px solid rgba(40, 66, 10, 0.12);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ldrt-green-deep);
  transition:
    transform 0.2s var(--ldrt-ease),
    border-color 0.2s var(--ldrt-ease),
    box-shadow 0.2s var(--ldrt-ease),
    background 0.2s var(--ldrt-ease);
}

#ldr-type-retraite .ldrt-theme-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(40, 66, 10, 0.22);
  background: var(--ldrt-white);
  box-shadow: 0 10px 24px rgba(20, 20, 18, 0.07);
}

#ldr-type-retraite .ldrt-theme-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(40, 66, 10, 0.08);
  color: var(--ldrt-green);
  flex-shrink: 0;
  transition: background 0.2s var(--ldrt-ease);
}

#ldr-type-retraite .ldrt-theme-pill:hover .ldrt-theme-pill-icon {
  background: var(--ldrt-green);
  color: var(--ldrt-white);
}

#ldr-type-retraite .ldrt-theme-pill-label {
  line-height: 1.2;
  min-width: 0;
}

/* ——— CTA band ——— */
#ldr-type-retraite .ldrt-cta {
  padding-block: clamp(28px, 4vw, 44px);
}

#ldr-type-retraite .ldrt-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: calc(var(--ldrt-radius) + 4px);
  background: var(--ldrt-green-deep);
  color: var(--ldrt-white);
  overflow: hidden;
  position: relative;
}

#ldr-type-retraite .ldrt-cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 100, 90, 0.25), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(143, 166, 122, 0.2), transparent 50%);
  pointer-events: none;
}

#ldr-type-retraite .ldrt-cta-copy {
  position: relative;
  max-width: 52ch;
}

#ldr-type-retraite .ldrt-cta-copy h2 {
  margin: 0 0 8px;
  font-family: var(--ldrt-font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
}

#ldr-type-retraite .ldrt-cta-copy p {
  margin: 0;
  opacity: 0.88;
  line-height: 1.6;
}

#ldr-type-retraite .ldrt-cta .ldrt-btn--primary {
  position: relative;
  background: var(--ldrt-white);
  color: var(--ldrt-green-deep);
  flex-shrink: 0;
}

#ldr-type-retraite .ldrt-cta .ldrt-btn--primary:hover {
  background: var(--ldrt-cream);
}

/* ——— Responsive ——— */
@media (max-width: 991px) {
  #ldr-type-retraite .ldrt-hero-grid {
    grid-template-columns: 1fr;
  }

  #ldr-type-retraite .ldrt-hero-panel {
    box-shadow: none;
  }

  #ldr-type-retraite .ldrt-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #ldr-type-retraite .ldrt-guide-grid {
    grid-template-columns: 1fr;
  }

  #ldr-type-retraite .ldrt-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 639px) {
  #ldr-type-retraite .ldrt-grid {
    grid-template-columns: 1fr;
  }

  #ldr-type-retraite .ldrt-stat-row {
    grid-template-columns: 1fr;
  }
}
